show wxUSE_STL in the summary at the end too
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47765 2007-07-28 00:08:01Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 RANLIB
683 AR
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 STRIP
688 WINDRES
689 DLLTOOL
690 IF_GNU_MAKE
691 LN_S
692 subdirs
693 PKG_CONFIG
694 GTK_CFLAGS
695 GTK_LIBS
696 GTK_CONFIG
697 DIRECTFB_CFLAGS
698 DIRECTFB_LIBS
699 XMKMF
700 X_CFLAGS
701 X_PRE_LIBS
702 X_LIBS
703 X_EXTRA_LIBS
704 PANGOX_CFLAGS
705 PANGOX_LIBS
706 PANGOFT2_CFLAGS
707 PANGOFT2_LIBS
708 PANGOXFT_CFLAGS
709 PANGOXFT_LIBS
710 CFLAGS_VISIBILITY
711 CXXFLAGS_VISIBILITY
712 REZ
713 DEREZ
714 SETFILE
715 LIBICONV
716 SDL_CONFIG
717 SDL_CFLAGS
718 SDL_LIBS
719 LIBGNOMEPRINTUI_CFLAGS
720 LIBGNOMEPRINTUI_LIBS
721 GNOMEVFS_CFLAGS
722 GNOMEVFS_LIBS
723 HILDON_CFLAGS
724 HILDON_LIBS
725 CAIRO_CFLAGS
726 CAIRO_LIBS
727 GST_CFLAGS
728 GST_LIBS
729 ALL_WX_LIBS
730 BUILT_WX_LIBS
731 STD_BASE_LIBS
732 STD_GUI_LIBS
733 wxUSE_ZLIB
734 wxUSE_REGEX
735 wxUSE_EXPAT
736 wxUSE_ODBC
737 wxUSE_LIBJPEG
738 wxUSE_LIBPNG
739 wxUSE_LIBTIFF
740 VENDOR
741 OFFICIAL_BUILD
742 WX_FLAVOUR
743 WX_LIB_FLAVOUR
744 WXUNIV
745 MONOLITHIC
746 USE_PLUGINS
747 CXXWARNINGS
748 EXTRALIBS
749 EXTRALIBS_XML
750 EXTRALIBS_HTML
751 EXTRALIBS_ODBC
752 EXTRALIBS_GUI
753 EXTRALIBS_OPENGL
754 EXTRALIBS_SDL
755 WITH_PLUGIN_SDL
756 EXTRALIBS_GNOMEPRINT
757 EXTRALIBS_GNOMEVFS
758 EXTRALIBS_HILDON
759 UNICODE
760 BUILD
761 DEBUG_INFO
762 DEBUG_FLAG
763 TOOLKIT_LOWERCASE
764 TOOLKIT_VERSION
765 SAMPLES_RPATH_FLAG
766 SAMPLES_RPATH_POSTLINK
767 HOST_SUFFIX
768 CPPUNIT_CFLAGS
769 CPPUNIT_LIBS
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 NM
774 INSTALL_DIR
775 LDFLAGS_GUI
776 PLATFORM_UNIX
777 PLATFORM_WIN32
778 PLATFORM_MSDOS
779 PLATFORM_MAC
780 PLATFORM_MACOS
781 PLATFORM_MACOSX
782 PLATFORM_OS2
783 PLATFORM_BEOS
784 SO_SUFFIX
785 SO_SUFFIX_MODULE
786 DLLIMP_SUFFIX
787 LIBPREFIX
788 LIBEXT
789 DLLPREFIX
790 DLLPREFIX_MODULE
791 dlldir
792 AIX_CXX_LD
793 SHARED_LD_CC
794 SHARED_LD_CXX
795 SHARED_LD_MODULE_CC
796 SHARED_LD_MODULE_CXX
797 PIC_FLAG
798 WINDOWS_IMPLIB
799 USE_SOVERSION
800 USE_SOVERLINUX
801 USE_SOVERSOLARIS
802 USE_SOVERCYGWIN
803 USE_MACVERSION
804 USE_SOSYMLINKS
805 SONAME_FLAG
806 DEPS_TRACKING
807 BK_DEPS
808 GCC_PCH
809 ICC_PCH
810 BK_MAKE_PCH
811 COND_BUILD_DEBUG
812 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
813 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
814 COND_BUILD_DEBUG_UNICODE_0
815 COND_BUILD_DEBUG_UNICODE_1
816 COND_BUILD_RELEASE
817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
818 COND_BUILD_RELEASE_UNICODE_0
819 COND_BUILD_RELEASE_UNICODE_1
820 COND_DEBUG_FLAG_1
821 COND_DEBUG_INFO_0
822 COND_DEBUG_INFO_1
823 COND_DEPS_TRACKING_0
824 COND_DEPS_TRACKING_1
825 COND_GCC_PCH_1
826 COND_ICC_PCH_1
827 COND_MONOLITHIC_0
828 COND_MONOLITHIC_0_SHARED_0
829 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
837 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
838 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
839 COND_MONOLITHIC_0_SHARED_1
840 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
846 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
847 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
848 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
849 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
850 COND_MONOLITHIC_0_USE_AUI_1
851 COND_MONOLITHIC_0_USE_GUI_1
852 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
853 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
854 COND_MONOLITHIC_0_USE_HTML_1
855 COND_MONOLITHIC_0_USE_MEDIA_1
856 COND_MONOLITHIC_0_USE_ODBC_1
857 COND_MONOLITHIC_0_USE_QA_1
858 COND_MONOLITHIC_0_USE_RICHTEXT_1
859 COND_MONOLITHIC_0_USE_STC_1
860 COND_MONOLITHIC_0_USE_XRC_1
861 COND_MONOLITHIC_1
862 COND_MONOLITHIC_1_SHARED_0
863 COND_MONOLITHIC_1_SHARED_1
864 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
866 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
867 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
868 COND_PLATFORM_MACOSX_1
869 COND_PLATFORM_MACOSX_1_TOOLKIT_
870 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
871 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
872 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
873 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
874 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
875 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
876 COND_PLATFORM_MACOSX_1_USE_GUI_1
877 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
878 COND_PLATFORM_MACOS_1
879 COND_PLATFORM_MAC_1
880 COND_PLATFORM_MSDOS_0
881 COND_PLATFORM_MSDOS_1
882 COND_PLATFORM_OS2_1
883 COND_PLATFORM_UNIX_0
884 COND_PLATFORM_UNIX_1
885 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
886 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
887 COND_PLATFORM_UNIX_1_USE_GUI_1
888 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
889 COND_PLATFORM_WIN32_0
890 COND_PLATFORM_WIN32_1
891 COND_SHARED_0
892 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
893 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
894 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
895 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
899 COND_SHARED_0_USE_STC_1
900 COND_SHARED_0_USE_XRC_1
901 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
902 COND_SHARED_0_WXUSE_ODBC_BUILTIN
903 COND_SHARED_0_WXUSE_REGEX_BUILTIN
904 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
905 COND_SHARED_1
906 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_1_USE_XRC_1
908 COND_TOOLKIT_
909 COND_TOOLKIT_COCOA
910 COND_TOOLKIT_COCOA_USE_GUI_1
911 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
912 COND_TOOLKIT_DFB
913 COND_TOOLKIT_DFB_USE_GUI_1
914 COND_TOOLKIT_GTK
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
917 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
918 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
919 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_GTK_USE_GUI_1
922 COND_TOOLKIT_MAC
923 COND_TOOLKIT_MAC_USE_GUI_1
924 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_MGL
926 COND_TOOLKIT_MGL_USE_GUI_1
927 COND_TOOLKIT_MOTIF
928 COND_TOOLKIT_MOTIF_USE_GUI_1
929 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
930 COND_TOOLKIT_MSW
931 COND_TOOLKIT_MSW_USE_GUI_1
932 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW_WXUNIV_0
934 COND_TOOLKIT_PM
935 COND_TOOLKIT_PM_USE_GUI_1
936 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_WINCE
938 COND_TOOLKIT_WINCE_USE_GUI_1
939 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_WINCE_WXUNIV_0
941 COND_TOOLKIT_X11
942 COND_TOOLKIT_X11_USE_GUI_1
943 COND_UNICODE_1
944 COND_USE_EXCEPTIONS_0
945 COND_USE_EXCEPTIONS_1
946 COND_USE_GUI_0
947 COND_USE_GUI_1
948 COND_USE_GUI_1_USE_OPENGL_1
949 COND_USE_GUI_1_WXUNIV_0
950 COND_USE_GUI_1_WXUNIV_1
951 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
952 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
953 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
954 COND_USE_ODBC_1
955 COND_USE_OPENGL_1
956 COND_USE_PCH_1
957 COND_USE_PLUGINS_0
958 COND_USE_RTTI_0
959 COND_USE_RTTI_1
960 COND_USE_SOSYMLINKS_1
961 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
962 COND_USE_SOVERLINUX_1
963 COND_USE_SOVERSION_0
964 COND_USE_SOVERSOLARIS_1
965 COND_USE_STC_1
966 COND_USE_THREADS_0
967 COND_USE_THREADS_1
968 COND_USE_XRC_1
969 COND_WINDOWS_IMPLIB_1
970 COND_WITH_PLUGIN_SDL_1
971 COND_WXUNIV_0
972 COND_WXUNIV_1
973 COND_WXUSE_EXPAT_BUILTIN
974 COND_WXUSE_LIBJPEG_BUILTIN
975 COND_WXUSE_LIBPNG_BUILTIN
976 COND_WXUSE_LIBTIFF_BUILTIN
977 COND_WXUSE_ODBC_BUILTIN
978 COND_WXUSE_REGEX_BUILTIN
979 COND_WXUSE_ZLIB_BUILTIN
980 SHARED
981 WX_LIBRARY_BASENAME_NOGUI
982 WX_LIBRARY_BASENAME_GUI
983 USE_GUI
984 AFMINSTALL
985 WIN32INSTALL
986 TOOLKIT
987 TOOLKIT_DIR
988 TOOLCHAIN_NAME
989 TOOLCHAIN_FULLNAME
990 cross_compiling
991 WIDGET_SET
992 WX_RELEASE
993 WX_VERSION
994 WX_SUBVERSION
995 WX_CHARTYPE
996 WX_DEBUGTYPE
997 WXCONFIG_CPPFLAGS
998 WXCONFIG_CFLAGS
999 WXCONFIG_CXXFLAGS
1000 WXCONFIG_LIBS
1001 WXCONFIG_RPATH
1002 WXCONFIG_LDFLAGS_GUI
1003 WXCONFIG_RESFLAGS
1004 EXE_LINKER
1005 GUIDIST
1006 DISTDIR
1007 SAMPLES_SUBDIRS
1008 LDFLAGS_GL
1009 OPENGL_LIBS
1010 DMALLOC_LIBS
1011 WX_VERSION_TAG
1012 RESCOMP
1013 RESFLAGS
1014 RESPROGRAMOBJ
1015 WX_RESOURCES_MACOSX_ASCII
1016 WX_RESOURCES_MACOSX_DATA
1017 LIBWXMACRES
1018 POSTLINK_COMMAND
1019 MACSETFILE
1020 GCC
1021 CPPUNIT_CONFIG
1022 LIBOBJS
1023 LTLIBOBJS'
1024 ac_subst_files=''
1025       ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1028 CC
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1033 CPP
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 PKG_CONFIG
1038 DIRECTFB_CFLAGS
1039 DIRECTFB_LIBS
1040 XMKMF
1041 PANGOX_CFLAGS
1042 PANGOX_LIBS
1043 PANGOFT2_CFLAGS
1044 PANGOFT2_LIBS
1045 PANGOXFT_CFLAGS
1046 PANGOXFT_LIBS
1047 LIBGNOMEPRINTUI_CFLAGS
1048 LIBGNOMEPRINTUI_LIBS
1049 GNOMEVFS_CFLAGS
1050 GNOMEVFS_LIBS
1051 HILDON_CFLAGS
1052 HILDON_LIBS
1053 CAIRO_CFLAGS
1054 CAIRO_LIBS
1055 GST_CFLAGS
1056 GST_LIBS'
1057 ac_subdirs_all='src/expat'
1058
1059 # Initialize some variables set by options.
1060 ac_init_help=
1061 ac_init_version=false
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file=/dev/null
1065 exec_prefix=NONE
1066 no_create=
1067 no_recursion=
1068 prefix=NONE
1069 program_prefix=NONE
1070 program_suffix=NONE
1071 program_transform_name=s,x,x,
1072 silent=
1073 site=
1074 srcdir=
1075 verbose=
1076 x_includes=NONE
1077 x_libraries=NONE
1078
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir='${exec_prefix}/bin'
1086 sbindir='${exec_prefix}/sbin'
1087 libexecdir='${exec_prefix}/libexec'
1088 datarootdir='${prefix}/share'
1089 datadir='${datarootdir}'
1090 sysconfdir='${prefix}/etc'
1091 sharedstatedir='${prefix}/com'
1092 localstatedir='${prefix}/var'
1093 includedir='${prefix}/include'
1094 oldincludedir='/usr/include'
1095 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1096 infodir='${datarootdir}/info'
1097 htmldir='${docdir}'
1098 dvidir='${docdir}'
1099 pdfdir='${docdir}'
1100 psdir='${docdir}'
1101 libdir='${exec_prefix}/lib'
1102 localedir='${datarootdir}/locale'
1103 mandir='${datarootdir}/man'
1104
1105 ac_prev=
1106 ac_dashdash=
1107 for ac_option
1108 do
1109   # If the previous option needs an argument, assign it.
1110   if test -n "$ac_prev"; then
1111     eval $ac_prev=\$ac_option
1112     ac_prev=
1113     continue
1114   fi
1115
1116   case $ac_option in
1117   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1118   *)    ac_optarg=yes ;;
1119   esac
1120
1121   # Accept the important Cygnus configure options, so we can diagnose typos.
1122
1123   case $ac_dashdash$ac_option in
1124   --)
1125     ac_dashdash=yes ;;
1126
1127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1128     ac_prev=bindir ;;
1129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1130     bindir=$ac_optarg ;;
1131
1132   -build | --build | --buil | --bui | --bu)
1133     ac_prev=build_alias ;;
1134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1135     build_alias=$ac_optarg ;;
1136
1137   -cache-file | --cache-file | --cache-fil | --cache-fi \
1138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1139     ac_prev=cache_file ;;
1140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1142     cache_file=$ac_optarg ;;
1143
1144   --config-cache | -C)
1145     cache_file=config.cache ;;
1146
1147   -datadir | --datadir | --datadi | --datad)
1148     ac_prev=datadir ;;
1149   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1150     datadir=$ac_optarg ;;
1151
1152   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1153   | --dataroo | --dataro | --datar)
1154     ac_prev=datarootdir ;;
1155   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1156   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1157     datarootdir=$ac_optarg ;;
1158
1159   -disable-* | --disable-*)
1160     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1166     eval enable_$ac_feature=no ;;
1167
1168   -docdir | --docdir | --docdi | --doc | --do)
1169     ac_prev=docdir ;;
1170   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1171     docdir=$ac_optarg ;;
1172
1173   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1174     ac_prev=dvidir ;;
1175   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1176     dvidir=$ac_optarg ;;
1177
1178   -enable-* | --enable-*)
1179     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1183    { (exit 1); exit 1; }; }
1184     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1185     eval enable_$ac_feature=\$ac_optarg ;;
1186
1187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189   | --exec | --exe | --ex)
1190     ac_prev=exec_prefix ;;
1191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193   | --exec=* | --exe=* | --ex=*)
1194     exec_prefix=$ac_optarg ;;
1195
1196   -gas | --gas | --ga | --g)
1197     # Obsolete; use --with-gas.
1198     with_gas=yes ;;
1199
1200   -help | --help | --hel | --he | -h)
1201     ac_init_help=long ;;
1202   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203     ac_init_help=recursive ;;
1204   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205     ac_init_help=short ;;
1206
1207   -host | --host | --hos | --ho)
1208     ac_prev=host_alias ;;
1209   -host=* | --host=* | --hos=* | --ho=*)
1210     host_alias=$ac_optarg ;;
1211
1212   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213     ac_prev=htmldir ;;
1214   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215   | --ht=*)
1216     htmldir=$ac_optarg ;;
1217
1218   -includedir | --includedir | --includedi | --included | --include \
1219   | --includ | --inclu | --incl | --inc)
1220     ac_prev=includedir ;;
1221   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222   | --includ=* | --inclu=* | --incl=* | --inc=*)
1223     includedir=$ac_optarg ;;
1224
1225   -infodir | --infodir | --infodi | --infod | --info | --inf)
1226     ac_prev=infodir ;;
1227   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228     infodir=$ac_optarg ;;
1229
1230   -libdir | --libdir | --libdi | --libd)
1231     ac_prev=libdir ;;
1232   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233     libdir=$ac_optarg ;;
1234
1235   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236   | --libexe | --libex | --libe)
1237     ac_prev=libexecdir ;;
1238   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239   | --libexe=* | --libex=* | --libe=*)
1240     libexecdir=$ac_optarg ;;
1241
1242   -localedir | --localedir | --localedi | --localed | --locale)
1243     ac_prev=localedir ;;
1244   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245     localedir=$ac_optarg ;;
1246
1247   -localstatedir | --localstatedir | --localstatedi | --localstated \
1248   | --localstate | --localstat | --localsta | --localst | --locals)
1249     ac_prev=localstatedir ;;
1250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252     localstatedir=$ac_optarg ;;
1253
1254   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255     ac_prev=mandir ;;
1256   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257     mandir=$ac_optarg ;;
1258
1259   -nfp | --nfp | --nf)
1260     # Obsolete; use --without-fp.
1261     with_fp=no ;;
1262
1263   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264   | --no-cr | --no-c | -n)
1265     no_create=yes ;;
1266
1267   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269     no_recursion=yes ;;
1270
1271   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273   | --oldin | --oldi | --old | --ol | --o)
1274     ac_prev=oldincludedir ;;
1275   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278     oldincludedir=$ac_optarg ;;
1279
1280   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281     ac_prev=prefix ;;
1282   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283     prefix=$ac_optarg ;;
1284
1285   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286   | --program-pre | --program-pr | --program-p)
1287     ac_prev=program_prefix ;;
1288   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290     program_prefix=$ac_optarg ;;
1291
1292   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293   | --program-suf | --program-su | --program-s)
1294     ac_prev=program_suffix ;;
1295   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297     program_suffix=$ac_optarg ;;
1298
1299   -program-transform-name | --program-transform-name \
1300   | --program-transform-nam | --program-transform-na \
1301   | --program-transform-n | --program-transform- \
1302   | --program-transform | --program-transfor \
1303   | --program-transfo | --program-transf \
1304   | --program-trans | --program-tran \
1305   | --progr-tra | --program-tr | --program-t)
1306     ac_prev=program_transform_name ;;
1307   -program-transform-name=* | --program-transform-name=* \
1308   | --program-transform-nam=* | --program-transform-na=* \
1309   | --program-transform-n=* | --program-transform-=* \
1310   | --program-transform=* | --program-transfor=* \
1311   | --program-transfo=* | --program-transf=* \
1312   | --program-trans=* | --program-tran=* \
1313   | --progr-tra=* | --program-tr=* | --program-t=*)
1314     program_transform_name=$ac_optarg ;;
1315
1316   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317     ac_prev=pdfdir ;;
1318   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319     pdfdir=$ac_optarg ;;
1320
1321   -psdir | --psdir | --psdi | --psd | --ps)
1322     ac_prev=psdir ;;
1323   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324     psdir=$ac_optarg ;;
1325
1326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327   | -silent | --silent | --silen | --sile | --sil)
1328     silent=yes ;;
1329
1330   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331     ac_prev=sbindir ;;
1332   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333   | --sbi=* | --sb=*)
1334     sbindir=$ac_optarg ;;
1335
1336   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338   | --sharedst | --shareds | --shared | --share | --shar \
1339   | --sha | --sh)
1340     ac_prev=sharedstatedir ;;
1341   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344   | --sha=* | --sh=*)
1345     sharedstatedir=$ac_optarg ;;
1346
1347   -site | --site | --sit)
1348     ac_prev=site ;;
1349   -site=* | --site=* | --sit=*)
1350     site=$ac_optarg ;;
1351
1352   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353     ac_prev=srcdir ;;
1354   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355     srcdir=$ac_optarg ;;
1356
1357   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358   | --syscon | --sysco | --sysc | --sys | --sy)
1359     ac_prev=sysconfdir ;;
1360   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362     sysconfdir=$ac_optarg ;;
1363
1364   -target | --target | --targe | --targ | --tar | --ta | --t)
1365     ac_prev=target_alias ;;
1366   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367     target_alias=$ac_optarg ;;
1368
1369   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370     verbose=yes ;;
1371
1372   -version | --version | --versio | --versi | --vers | -V)
1373     ac_init_version=: ;;
1374
1375   -with-* | --with-*)
1376     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379       { echo "$as_me: error: invalid package name: $ac_package" >&2
1380    { (exit 1); exit 1; }; }
1381     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382     eval with_$ac_package=\$ac_optarg ;;
1383
1384   -without-* | --without-*)
1385     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=no ;;
1392
1393   --x)
1394     # Obsolete; use --with-x.
1395     with_x=yes ;;
1396
1397   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398   | --x-incl | --x-inc | --x-in | --x-i)
1399     ac_prev=x_includes ;;
1400   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402     x_includes=$ac_optarg ;;
1403
1404   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406     ac_prev=x_libraries ;;
1407   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409     x_libraries=$ac_optarg ;;
1410
1411   -*) { echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413    { (exit 1); exit 1; }; }
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1420       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421    { (exit 1); exit 1; }; }
1422     eval $ac_envvar=\$ac_optarg
1423     export $ac_envvar ;;
1424
1425   *)
1426     # FIXME: should be removed in autoconf 3.0.
1427     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431     ;;
1432
1433   esac
1434 done
1435
1436 if test -n "$ac_prev"; then
1437   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438   { echo "$as_me: error: missing argument to $ac_option" >&2
1439    { (exit 1); exit 1; }; }
1440 fi
1441
1442 # Be sure to have absolute directory names.
1443 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444                 datadir sysconfdir sharedstatedir localstatedir includedir \
1445                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446                 libdir localedir mandir
1447 do
1448   eval ac_val=\$$ac_var
1449   case $ac_val in
1450     [\\/$]* | ?:[\\/]* )  continue;;
1451     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452   esac
1453   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454    { (exit 1); exit 1; }; }
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   { echo "$as_me: error: Working directory cannot be determined" >&2
1485    { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   { echo "$as_me: error: pwd does not report name of working directory" >&2
1488    { (exit 1); exit 1; }; }
1489
1490
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493   ac_srcdir_defaulted=yes
1494   # Try the directory containing this script, then the parent directory.
1495   ac_confdir=`$as_dirname -- "$0" ||
1496 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497          X"$0" : 'X\(//\)[^/]' \| \
1498          X"$0" : 'X\(//\)$' \| \
1499          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1500 echo X"$0" |
1501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)[^/].*/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\).*/{
1514             s//\1/
1515             q
1516           }
1517           s/.*/./; q'`
1518   srcdir=$ac_confdir
1519   if test ! -r "$srcdir/$ac_unique_file"; then
1520     srcdir=..
1521   fi
1522 else
1523   ac_srcdir_defaulted=no
1524 fi
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1533    { (exit 1); exit 1; }; }
1534         pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537   srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_env_${ac_var}_value=\$${ac_var}
1548   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556   # Omit some internal or obsolete options to make the list less imposing.
1557   # This message is too long to be a string in the A/UX 3.1 sh.
1558   cat <<_ACEOF
1559 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569   -h, --help              display this help and exit
1570       --help=short        display options specific to this package
1571       --help=recursive    display the short help of all the included packages
1572   -V, --version           display version information and exit
1573   -q, --quiet, --silent   do not print \`checking...' messages
1574       --cache-file=FILE   cache test results in FILE [disabled]
1575   -C, --config-cache      alias for \`--cache-file=config.cache'
1576   -n, --no-create         do not create output files
1577       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580   --prefix=PREFIX         install architecture-independent files in PREFIX
1581                           [$ac_default_prefix]
1582   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                           [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593   --bindir=DIR           user executables [EPREFIX/bin]
1594   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1595   --libexecdir=DIR       program executables [EPREFIX/libexec]
1596   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1597   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1598   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1599   --libdir=DIR           object code libraries [EPREFIX/lib]
1600   --includedir=DIR       C header files [PREFIX/include]
1601   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR          info documentation [DATAROOTDIR/info]
1605   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR           man documentation [DATAROOTDIR/man]
1607   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1608   --htmldir=DIR          html documentation [DOCDIR]
1609   --dvidir=DIR           dvi documentation [DOCDIR]
1610   --pdfdir=DIR           pdf documentation [DOCDIR]
1611   --psdir=DIR            ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 X features:
1617   --x-includes=DIR    X include files are in DIR
1618   --x-libraries=DIR   X library files are in DIR
1619
1620 System types:
1621   --build=BUILD     configure for building on BUILD [guessed]
1622   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1623   --target=TARGET   configure for building compilers for TARGET [HOST]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628   case $ac_init_help in
1629      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1630    esac
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --disable-gui           don't build GUI parts of the library
1637   --enable-monolithic     build wxWidgets as single library
1638   --enable-plugins        build parts of wxWidgets as loadable components
1639   --enable-official_build official build of wxWidgets (win32 DLL only)
1640   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1641   --disable-all-features  disable all optional features to build minimal library
1642   --enable-universal      use wxWidgets GUI controls instead of native ones
1643   --enable-nanox          use NanoX
1644   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1645   --enable-gpe            use GNOME PDA Environment features if possible
1646   --disable-shared        create static library instead of shared
1647   --disable-optimise      create optimised code
1648   --enable-debug          same as debug_flag and debug_info
1649   --enable-stl            use STL for containers
1650   --enable-std_iostreams  use standard C++ stream classes
1651   --enable-std_string     use standard C++ string classes
1652   --disable-unicode       compile without Unicode support
1653   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1654   --enable-utf8           use UTF-8 representation for strings (Unix only)
1655   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1656   --enable-extended_rtti  use extended RTTI (XTI)
1657   --enable-omf            use OMF object format
1658   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1659   --enable-debug_info     create code with debugging information
1660   --enable-debug_gdb      create code with extra GDB debugging information
1661   --enable-debug_cntxt    use wxDebugContext
1662   --enable-mem_tracing    create code with memory tracing
1663   --enable-profile        create code with profiling information
1664   --enable-no_rtti        create code without RTTI information
1665   --enable-no_exceptions  create code without C++ exceptions handling
1666   --enable-permissive     compile code disregarding strict ANSI
1667   --enable-no_deps        create code without dependency information
1668   --disable-vararg_macros don't use vararg macros, even if they are supported
1669   --enable-universal_binary  create Mac PowerPC and Intel Universal binary (not yet working)
1670   --enable-compat26       enable wxWidgets 2.6 compatibility
1671   --disable-compat28      disable wxWidgets 2.8 compatibility
1672   --disable-rpath         disable use of rpath for uninstalled builds
1673   --enable-objc_uniquifying enable Objective-C class name uniquifying
1674   --disable-visibility    disable use of ELF symbols visibility even if supported
1675   --enable-intl           use internationalization system
1676   --enable-config         use wxConfig (and derived) classes
1677   --enable-protocols      use wxProtocol and derived classes
1678   --enable-ftp            use wxFTP (requires wxProtocol
1679   --enable-http           use wxHTTP (requires wxProtocol
1680   --enable-fileproto      use wxFileProto class (requires wxProtocol
1681   --enable-sockets        use socket/network classes
1682   --enable-ole            use OLE classes (Win32 only)
1683   --enable-dataobj        use data object classes
1684   --enable-ipc            use interprocess communication (wxSocket etc.)
1685   --enable-baseevtloop    use event loop in console programs too
1686   --enable-epoolloop      use wxEpollDispatcher class (Linux only)
1687   --enable-selectloop     use wxSelectDispatcher class
1688   --enable-apple_ieee     use the Apple IEEE codec
1689   --enable-arcstream      use wxArchive streams
1690   --enable-base64         use base64 encoding/decoding functions
1691   --enable-backtrace      use wxStackWalker class for getting backtraces
1692   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1693   --enable-cmdline        use wxCmdLineParser class
1694   --enable-datetime       use wxDateTime class
1695   --enable-debugreport    use wxDebugReport class
1696   --enable-dialupman      use dialup network classes
1697   --enable-dynlib         use wxLibrary class for DLL loading
1698   --enable-dynamicloader  use (new) wxDynamicLibrary class
1699   --enable-exceptions     build exception-safe library
1700   --enable-ffile          use wxFFile class
1701   --enable-file           use wxFile class
1702   --enable-filesystem     use virtual file systems classes
1703   --enable-fontenum       use wxFontEnumerator class
1704   --enable-fontmap        use font encodings conversion classes
1705   --enable-fs_archive     use virtual archive filesystems
1706   --enable-fs_inet        use virtual HTTP/FTP filesystems
1707   --enable-fs_zip         now replaced by fs_archive
1708   --enable-geometry       use geometry class
1709   --enable-log            use logging system
1710   --enable-longlong       use wxLongLong class
1711   --enable-mimetype       use wxMimeTypesManager
1712   --enable-snglinst       use wxSingleInstanceChecker class
1713   --enable-stdpaths       use wxStandardPaths class
1714   --enable-stopwatch      use wxStopWatch class
1715   --enable-streams        use wxStream etc classes
1716   --enable-sysoptions     use wxSystemOptions
1717   --enable-tarstream      use wxTar streams
1718   --enable-textbuf        use wxTextBuffer class
1719   --enable-textfile       use wxTextFile class
1720   --enable-timer          use wxTimer class
1721   --enable-sound          use wxSound class
1722   --enable-mediactrl      use wxMediaCtrl class
1723   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1724   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1725   --enable-zipstream      use wxZip streams
1726   --enable-url            use wxURL class
1727   --enable-variant        use wxVariant class
1728   --enable-protocol       use wxProtocol class
1729   --enable-protocol-http  HTTP support in wxProtocol
1730   --enable-protocol-ftp   FTP support in wxProtocol
1731   --enable-protocol-file  FILE support in wxProtocol
1732   --enable-threads        use threads
1733   --enable-docview        use document view architecture
1734   --enable-help           use help subsystem
1735   --enable-mshtmlhelp     use MS HTML Help (win32)
1736   --enable-html           use wxHTML sub-library
1737   --enable-htmlhelp       use wxHTML-based help
1738   --enable-xrc            use XRC resources sub-library
1739   --enable-aui            use AUI docking library
1740   --enable-stc            use wxStyledTextCtrl library
1741   --enable-constraints    use layout-constraints system
1742   --enable-printarch      use printing architecture
1743   --enable-mdi            use multiple document interface architecture
1744   --enable-mdidoc         use docview architecture with MDI
1745   --enable-loggui         use standard GUI logger
1746   --enable-logwin         use wxLogWindow
1747   --enable-logdialog      use wxLogDialog
1748   --enable-webkit         use wxWebKitCtrl (Mac)
1749   --enable-richtext       use wxRichTextCtrl
1750   --enable-graphics_ctx   use graphics context 2D drawing API
1751   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1752   --enable-svg            use wxSVGFileDC device context
1753   --enable-clipboard      use wxClipboard class
1754   --enable-dnd            use Drag'n'Drop classes
1755   --enable-metafile       use win32 metafiles
1756   --disable-controls      disable compilation of all standard controls
1757   --enable-accel          use accelerators
1758   --enable-animatectrl    use wxAnimationCtrl class
1759   --enable-button         use wxButton class
1760   --enable-bmpbutton      use wxBitmapButton class
1761   --enable-bmpcombobox    use wxBitmapComboBox class
1762   --enable-calendar       use wxCalendarCtrl class
1763   --enable-caret          use wxCaret class
1764   --enable-checkbox       use wxCheckBox class
1765   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1766   --enable-choice         use wxChoice class
1767   --enable-choicebook     use wxChoicebook class
1768   --enable-collpane       use wxCollapsiblePane class
1769   --enable-colourpicker   use wxColourPickerCtrl class
1770   --enable-combobox       use wxComboBox class
1771   --enable-comboctrl      use wxComboCtrl class
1772   --enable-datepick       use wxDatePickerCtrl class
1773   --enable-dirpicker      use wxDirPickerCtrl class
1774   --enable-display        use wxDisplay class
1775   --enable-detect_sm      use code to detect X11 session manager
1776   --enable-editablebox    use wxEditableListBox class
1777   --enable-filepicker     use wxFilePickerCtrl class
1778   --enable-fontpicker     use wxFontPickerCtrl class
1779   --enable-gauge          use wxGauge class
1780   --enable-grid           use wxGrid class
1781   --enable-dataviewctrl   use wxDataViewCtrl class
1782   --enable-hyperlink      use wxHyperlinkCtrl class
1783   --enable-imaglist       use wxImageList class
1784   --enable-listbook       use wxListbook class
1785   --enable-listbox        use wxListBox class
1786   --enable-listctrl       use wxListCtrl class
1787   --enable-notebook       use wxNotebook class
1788   --enable-odcombobox     use wxOwnerDrawnComboBox class
1789   --enable-radiobox       use wxRadioBox class
1790   --enable-radiobtn       use wxRadioButton class
1791   --enable-sash           use wxSashWindow class
1792   --enable-scrollbar      use wxScrollBar class and scrollable windows
1793   --enable-searchctrl     use wxSearchCtrl class
1794   --enable-slider         use wxSlider class
1795   --enable-spinbtn        use wxSpinButton class
1796   --enable-spinctrl       use wxSpinCtrl class
1797   --enable-splitter       use wxSplitterWindow class
1798   --enable-statbmp        use wxStaticBitmap class
1799   --enable-statbox        use wxStaticBox class
1800   --enable-statline       use wxStaticLine class
1801   --enable-stattext       use wxStaticText class
1802   --enable-statusbar      use wxStatusBar class
1803   --enable-tabdialog      use wxTabControl class
1804   --enable-taskbaricon    use wxTaskBarIcon class
1805   --enable-textctrl       use wxTextCtrl class
1806   --enable-togglebtn      use wxToggleButton class
1807   --enable-toolbar        use wxToolBar class
1808   --enable-tbarnative     use native wxToolBar class
1809   --enable-treebook       use wxTreebook class
1810   --enable-toolbook       use wxToolbook class
1811   --enable-treectrl       use wxTreeCtrl class
1812   --enable-tipwindow      use wxTipWindow class
1813   --enable-popupwin       use wxPopUpWindow class
1814   --enable-commondlg      use all common dialogs
1815   --enable-aboutdlg       use wxAboutBox
1816   --enable-choicedlg      use wxChoiceDialog
1817   --enable-coldlg         use wxColourDialog
1818   --enable-filedlg        use wxFileDialog
1819   --enable-finddlg        use wxFindReplaceDialog
1820   --enable-fontdlg        use wxFontDialog
1821   --enable-dirdlg         use wxDirDialog
1822   --enable-msgdlg         use wxMessageDialog
1823   --enable-numberdlg      use wxNumberEntryDialog
1824   --enable-splash         use wxSplashScreen
1825   --enable-textdlg        use wxTextDialog
1826   --enable-tipdlg         use startup tips
1827   --enable-progressdlg    use wxProgressDialog
1828   --enable-wizarddlg      use wxWizard
1829   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1830   --enable-miniframe      use wxMiniFrame class
1831   --enable-tooltips       use wxToolTip class
1832   --enable-splines        use spline drawing code
1833   --enable-mousewheel     use mousewheel
1834   --enable-validators     use wxValidator and derived classes
1835   --enable-busyinfo       use wxBusyInfo
1836   --enable-joystick       use wxJoystick
1837   --enable-metafiles      use wxMetaFile (Win32 only)
1838   --enable-dragimage      use wxDragImage
1839   --enable-accessibility  enable accessibility support
1840   --enable-palette        use wxPalette class
1841   --enable-image          use wxImage class
1842   --enable-gif            use gif images (GIF file format)
1843   --enable-pcx            use pcx images (PCX file format)
1844   --enable-tga            use tga images (TGA file format)
1845   --enable-iff            use iff images (IFF file format)
1846   --enable-pnm            use pnm images (PNM file format)
1847   --enable-xpm            use xpm images (XPM file format)
1848   --enable-icocur         use Windows ICO and CUR formats
1849   --enable-dccache        cache temporary wxDC objects (Win32 only)
1850   --enable-iniconf        use wxIniConfig (Win32 only)
1851   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1852   --enable-ownerdrawn     use owner drawn controls (Win32 only)
1853   --enable-regkey         use wxRegKey class (Win32 only)
1854   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1855   --enable-wxdib          use wxDIB class (Win32 only)
1856   --disable-largefile     omit support for large files
1857   --disable-gtktest       do not try to compile and run a test GTK+ program
1858   --disable-gtktest       Do not try to compile and run a test GTK program
1859   --disable-sdltest       Do not try to compile and run a test SDL program
1860   --enable-omf            use OMF object format (OS/2)
1861   --disable-dependency-tracking
1862                           don't use dependency tracking even if the compiler
1863                           can
1864   --disable-precomp-headers
1865                           don't use precompiled headers even if compiler can
1866
1867 Optional Packages:
1868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1870   --without-subdirs       don't generate makefiles for samples/demos/...
1871   --with-flavour=NAME     specify a name to identify this build
1872   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1873   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1874   --with-motif            use Motif/Lesstif
1875   --with-mac              use Mac OS X
1876   --with-cocoa            use Cocoa
1877   --with-wine             use Wine
1878   --with-msw              use MS-Windows
1879   --with-pm               use OS/2 Presentation Manager
1880   --with-mgl              use SciTech MGL
1881   --with-directfb         use DirectFB
1882   --with-microwin         use MicroWindows
1883   --with-x11              use X11
1884   --with-libpng           use libpng (PNG image format)
1885   --with-libjpeg          use libjpeg (JPEG file format)
1886   --with-libtiff          use libtiff (TIFF file format)
1887   --with-libxpm           use libxpm (XPM file format)
1888   --with-libmspack        use libmspack (CHM help files loading)
1889   --without-gnomeprint    don't use GNOME printing libraries
1890   --with-gnomevfs         use GNOME VFS for associating MIME types
1891   --with-hildon           use Hildon framework for Nokia 770
1892   --with-opengl           use OpenGL (or Mesa)
1893   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1894   --with-sdl              use SDL for audio on Unix
1895   --with-regex            enable support for wxRegEx class
1896   --with-zlib             use zlib for LZW compression
1897   --with-odbc             use the IODBC and wxODBC classes
1898   --with-expat            enable XML support using expat parser
1899   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1900   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1901   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1902   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1903   --with-x                use the X Window System
1904   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1905   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1906   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1907   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1908   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1909
1910 Some influential environment variables:
1911   CC          C compiler command
1912   CFLAGS      C compiler flags
1913   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1914               nonstandard directory <lib dir>
1915   LIBS        libraries to pass to the linker, e.g. -l<library>
1916   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1917               you have headers in a nonstandard directory <include dir>
1918   CPP         C preprocessor
1919   CXX         C++ compiler command
1920   CXXFLAGS    C++ compiler flags
1921   PKG_CONFIG  path to pkg-config utility
1922   DIRECTFB_CFLAGS
1923               C compiler flags for DIRECTFB, overriding pkg-config
1924   DIRECTFB_LIBS
1925               linker flags for DIRECTFB, overriding pkg-config
1926   XMKMF       Path to xmkmf, Makefile generator for X Window System
1927   PANGOX_CFLAGS
1928               C compiler flags for PANGOX, overriding pkg-config
1929   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1930   PANGOFT2_CFLAGS
1931               C compiler flags for PANGOFT2, overriding pkg-config
1932   PANGOFT2_LIBS
1933               linker flags for PANGOFT2, overriding pkg-config
1934   PANGOXFT_CFLAGS
1935               C compiler flags for PANGOXFT, overriding pkg-config
1936   PANGOXFT_LIBS
1937               linker flags for PANGOXFT, overriding pkg-config
1938   LIBGNOMEPRINTUI_CFLAGS
1939               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1940   LIBGNOMEPRINTUI_LIBS
1941               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1942   GNOMEVFS_CFLAGS
1943               C compiler flags for GNOMEVFS, overriding pkg-config
1944   GNOMEVFS_LIBS
1945               linker flags for GNOMEVFS, overriding pkg-config
1946   HILDON_CFLAGS
1947               C compiler flags for HILDON, overriding pkg-config
1948   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1949   CAIRO_CFLAGS
1950               C compiler flags for CAIRO, overriding pkg-config
1951   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1952   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1953   GST_LIBS    linker flags for GST, overriding pkg-config
1954
1955 Use these variables to override the choices made by `configure' or to help
1956 it to find libraries and programs with nonstandard names/locations.
1957
1958 Report bugs to <wx-dev@lists.wxwidgets.org>.
1959 _ACEOF
1960 ac_status=$?
1961 fi
1962
1963 if test "$ac_init_help" = "recursive"; then
1964   # If there are subdirs, report their specific --help.
1965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966     test -d "$ac_dir" || continue
1967     ac_builddir=.
1968
1969 case "$ac_dir" in
1970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 *)
1972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1973   # A ".." for each directory in $ac_dir_suffix.
1974   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1975   case $ac_top_builddir_sub in
1976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1978   esac ;;
1979 esac
1980 ac_abs_top_builddir=$ac_pwd
1981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1982 # for backward compatibility:
1983 ac_top_builddir=$ac_top_build_prefix
1984
1985 case $srcdir in
1986   .)  # We are building in place.
1987     ac_srcdir=.
1988     ac_top_srcdir=$ac_top_builddir_sub
1989     ac_abs_top_srcdir=$ac_pwd ;;
1990   [\\/]* | ?:[\\/]* )  # Absolute name.
1991     ac_srcdir=$srcdir$ac_dir_suffix;
1992     ac_top_srcdir=$srcdir
1993     ac_abs_top_srcdir=$srcdir ;;
1994   *) # Relative name.
1995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1996     ac_top_srcdir=$ac_top_build_prefix$srcdir
1997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1998 esac
1999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2000
2001     cd "$ac_dir" || { ac_status=$?; continue; }
2002     # Check for guested configure.
2003     if test -f "$ac_srcdir/configure.gnu"; then
2004       echo &&
2005       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2006     elif test -f "$ac_srcdir/configure"; then
2007       echo &&
2008       $SHELL "$ac_srcdir/configure" --help=recursive
2009     else
2010       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2011     fi || ac_status=$?
2012     cd "$ac_pwd" || { ac_status=$?; break; }
2013   done
2014 fi
2015
2016 test -n "$ac_init_help" && exit $ac_status
2017 if $ac_init_version; then
2018   cat <<\_ACEOF
2019 wxWidgets configure 2.9.0
2020 generated by GNU Autoconf 2.61
2021
2022 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2023 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2024 This configure script is free software; the Free Software Foundation
2025 gives unlimited permission to copy, distribute and modify it.
2026 _ACEOF
2027   exit
2028 fi
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2032
2033 It was created by wxWidgets $as_me 2.9.0, which was
2034 generated by GNU Autoconf 2.61.  Invocation command line was
2035
2036   $ $0 $@
2037
2038 _ACEOF
2039 exec 5>>config.log
2040 {
2041 cat <<_ASUNAME
2042 ## --------- ##
2043 ## Platform. ##
2044 ## --------- ##
2045
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2054
2055 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2056 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2059 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2060 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2061 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2062
2063 _ASUNAME
2064
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   echo "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2073
2074 } >&5
2075
2076 cat >&5 <<_ACEOF
2077
2078
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2082
2083 _ACEOF
2084
2085
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2096 do
2097   for ac_arg
2098   do
2099     case $ac_arg in
2100     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102     | -silent | --silent | --silen | --sile | --sil)
2103       continue ;;
2104     *\'*)
2105       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106     esac
2107     case $ac_pass in
2108     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2109     2)
2110       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2111       if test $ac_must_keep_next = true; then
2112         ac_must_keep_next=false # Got value, back to normal.
2113       else
2114         case $ac_arg in
2115           *=* | --config-cache | -C | -disable-* | --disable-* \
2116           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118           | -with-* | --with-* | -without-* | --without-* | --x)
2119             case "$ac_configure_args0 " in
2120               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121             esac
2122             ;;
2123           -* ) ac_must_keep_next=true ;;
2124         esac
2125       fi
2126       ac_configure_args="$ac_configure_args '$ac_arg'"
2127       ;;
2128     esac
2129   done
2130 done
2131 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2132 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2133
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log.  We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140   # Save into config.log some information that might help in debugging.
2141   {
2142     echo
2143
2144     cat <<\_ASBOX
2145 ## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##
2148 _ASBOX
2149     echo
2150     # The following way of writing the cache mishandles newlines in values,
2151 (
2152   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153     eval ac_val=\$$ac_var
2154     case $ac_val in #(
2155     *${as_nl}*)
2156       case $ac_var in #(
2157       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2158 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2159       esac
2160       case $ac_var in #(
2161       _ | IFS | as_nl) ;; #(
2162       *) $as_unset $ac_var ;;
2163       esac ;;
2164     esac
2165   done
2166   (set) 2>&1 |
2167     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168     *${as_nl}ac_space=\ *)
2169       sed -n \
2170         "s/'\''/'\''\\\\'\'''\''/g;
2171           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172       ;; #(
2173     *)
2174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175       ;;
2176     esac |
2177     sort
2178 )
2179     echo
2180
2181     cat <<\_ASBOX
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2185 _ASBOX
2186     echo
2187     for ac_var in $ac_subst_vars
2188     do
2189       eval ac_val=\$$ac_var
2190       case $ac_val in
2191       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192       esac
2193       echo "$ac_var='\''$ac_val'\''"
2194     done | sort
2195     echo
2196
2197     if test -n "$ac_subst_files"; then
2198       cat <<\_ASBOX
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2202 _ASBOX
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       cat <<\_ASBOX
2217 ## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##
2220 _ASBOX
2221       echo
2222       cat confdefs.h
2223       echo
2224     fi
2225     test "$ac_signal" != 0 &&
2226       echo "$as_me: caught signal $ac_signal"
2227     echo "$as_me: exit $exit_status"
2228   } >&5
2229   rm -f core *.core core.conftest.* &&
2230     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231     exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 # Predefined preprocessor variables.
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 _ACEOF
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 _ACEOF
2266
2267
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271   set x "$CONFIG_SITE"
2272 elif test "x$prefix" != xNONE; then
2273   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2274 else
2275   set x "$ac_default_prefix/share/config.site" \
2276         "$ac_default_prefix/etc/config.site"
2277 fi
2278 shift
2279 for ac_site_file
2280 do
2281   if test -r "$ac_site_file"; then
2282     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2283 echo "$as_me: loading site script $ac_site_file" >&6;}
2284     sed 's/^/| /' "$ac_site_file" >&5
2285     . "$ac_site_file"
2286   fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290   # Some versions of bash will fail to source /dev/null (special
2291   # files actually), so we avoid doing that.
2292   if test -f "$cache_file"; then
2293     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2294 echo "$as_me: loading cache $cache_file" >&6;}
2295     case $cache_file in
2296       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297       *)                      . "./$cache_file";;
2298     esac
2299   fi
2300 else
2301   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2302 echo "$as_me: creating cache $cache_file" >&6;}
2303   >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311   eval ac_new_set=\$ac_env_${ac_var}_set
2312   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313   eval ac_new_val=\$ac_env_${ac_var}_value
2314   case $ac_old_set,$ac_new_set in
2315     set,)
2316       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,set)
2320       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322       ac_cache_corrupted=: ;;
2323     ,);;
2324     *)
2325       if test "x$ac_old_val" != "x$ac_new_val"; then
2326         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2329 echo "$as_me:   former value:  $ac_old_val" >&2;}
2330         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2331 echo "$as_me:   current value: $ac_new_val" >&2;}
2332         ac_cache_corrupted=:
2333       fi;;
2334   esac
2335   # Pass precious variables to config.status.
2336   if test "$ac_new_set" = set; then
2337     case $ac_new_val in
2338     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339     *) ac_arg=$ac_var=$ac_new_val ;;
2340     esac
2341     case " $ac_configure_args " in
2342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2344     esac
2345   fi
2346 done
2347 if $ac_cache_corrupted; then
2348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386
2387
2388
2389 ac_aux_dir=
2390 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391   if test -f "$ac_dir/install-sh"; then
2392     ac_aux_dir=$ac_dir
2393     ac_install_sh="$ac_aux_dir/install-sh -c"
2394     break
2395   elif test -f "$ac_dir/install.sh"; then
2396     ac_aux_dir=$ac_dir
2397     ac_install_sh="$ac_aux_dir/install.sh -c"
2398     break
2399   elif test -f "$ac_dir/shtool"; then
2400     ac_aux_dir=$ac_dir
2401     ac_install_sh="$ac_aux_dir/shtool install -c"
2402     break
2403   fi
2404 done
2405 if test -z "$ac_aux_dir"; then
2406   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2407 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2408    { (exit 1); exit 1; }; }
2409 fi
2410
2411 # These three variables are undocumented and unsupported,
2412 # and are intended to be withdrawn in a future Autoconf release.
2413 # They can cause serious problems if a builder's source tree is in a directory
2414 # whose full name contains unusual characters.
2415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2417 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2418
2419
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2424    { (exit 1); exit 1; }; }
2425
2426 { echo "$as_me:$LINENO: checking build system type" >&5
2427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_build+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2437    { (exit 1); exit 1; }; }
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2441    { (exit 1); exit 1; }; }
2442
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2445 echo "${ECHO_T}$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2447 *-*-*) ;;
2448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2449 echo "$as_me: error: invalid value of canonical build" >&2;}
2450    { (exit 1); exit 1; }; };;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2464
2465
2466 { echo "$as_me:$LINENO: checking host system type" >&5
2467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2468 if test "${ac_cv_host+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test "x$host_alias" = x; then
2472   ac_cv_host=$ac_cv_build
2473 else
2474   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2477    { (exit 1); exit 1; }; }
2478 fi
2479
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2482 echo "${ECHO_T}$ac_cv_host" >&6; }
2483 case $ac_cv_host in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2486 echo "$as_me: error: invalid value of canonical host" >&2;}
2487    { (exit 1); exit 1; }; };;
2488 esac
2489 host=$ac_cv_host
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_host
2492 shift
2493 host_cpu=$1
2494 host_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 host_os=$*
2499 IFS=$ac_save_IFS
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 { echo "$as_me:$LINENO: checking target system type" >&5
2504 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2505 if test "${ac_cv_target+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test "x$target_alias" = x; then
2509   ac_cv_target=$ac_cv_host
2510 else
2511   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2512     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2513 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2514    { (exit 1); exit 1; }; }
2515 fi
2516
2517 fi
2518 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2519 echo "${ECHO_T}$ac_cv_target" >&6; }
2520 case $ac_cv_target in
2521 *-*-*) ;;
2522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2523 echo "$as_me: error: invalid value of canonical target" >&2;}
2524    { (exit 1); exit 1; }; };;
2525 esac
2526 target=$ac_cv_target
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_target
2529 shift
2530 target_cpu=$1
2531 target_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 target_os=$*
2536 IFS=$ac_save_IFS
2537 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 # The aliases save the names the user supplied, while $host etc.
2541 # will get canonicalized.
2542 test -n "$target_alias" &&
2543   test "$program_prefix$program_suffix$program_transform_name" = \
2544     NONENONEs,x,x, &&
2545   program_prefix=${target_alias}-
2546
2547
2548
2549 wx_major_version_number=2
2550 wx_minor_version_number=9
2551 wx_release_number=0
2552 wx_subrelease_number=0
2553
2554 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2555 WX_VERSION=$WX_RELEASE.$wx_release_number
2556 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2557
2558 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2559
2560
2561 wx_top_builddir="`pwd`"
2562
2563
2564
2565
2566 USE_UNIX=1
2567 USE_OS2=0
2568 USE_WIN32=0
2569 USE_DOS=0
2570 USE_BEOS=0
2571 USE_MAC=0
2572
2573 USE_AIX=
2574 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2575 USE_GNU=                            USE_HPUX=
2576 USE_LINUX=
2577 USE_NETBSD=
2578 USE_OPENBSD=
2579 USE_OSF=                            USE_SGI=
2580 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2581 USE_ULTRIX=
2582 USE_UNIXWARE=
2583
2584 USE_ALPHA=
2585
2586 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2587
2588 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2589
2590 DEFAULT_wxUSE_COCOA=0
2591 DEFAULT_wxUSE_GTK=0
2592 DEFAULT_wxUSE_MAC=0
2593 DEFAULT_wxUSE_MGL=0
2594 DEFAULT_wxUSE_MICROWIN=0
2595 DEFAULT_wxUSE_MOTIF=0
2596 DEFAULT_wxUSE_MSW=0
2597 DEFAULT_wxUSE_PM=0
2598 DEFAULT_wxUSE_X11=0
2599 DEFAULT_wxUSE_DFB=0
2600
2601 DEFAULT_DEFAULT_wxUSE_COCOA=0
2602 DEFAULT_DEFAULT_wxUSE_GTK=0
2603 DEFAULT_DEFAULT_wxUSE_MAC=0
2604 DEFAULT_DEFAULT_wxUSE_MGL=0
2605 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2606 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2607 DEFAULT_DEFAULT_wxUSE_MSW=0
2608 DEFAULT_DEFAULT_wxUSE_PM=0
2609 DEFAULT_DEFAULT_wxUSE_X11=0
2610 DEFAULT_DEFAULT_wxUSE_DFB=0
2611
2612 PROGRAM_EXT=
2613 SO_SUFFIX=so
2614 SAMPLES_RPATH_FLAG=
2615 SAMPLES_RPATH_POSTLINK=
2616
2617 DEFAULT_STD_FLAG=yes
2618
2619 case "${host}" in
2620   *-hp-hpux* )
2621     USE_HPUX=1
2622     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2623     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2624     SO_SUFFIX=sl
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __HPUX__ 1
2627 _ACEOF
2628
2629
2630             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2631   ;;
2632   *-*-linux* )
2633     USE_LINUX=1
2634     cat >>confdefs.h <<\_ACEOF
2635 #define __LINUX__ 1
2636 _ACEOF
2637
2638     TMP=`uname -m`
2639     if test "x$TMP" = "xalpha"; then
2640       USE_ALPHA=1
2641       cat >>confdefs.h <<\_ACEOF
2642 #define __ALPHA__ 1
2643 _ACEOF
2644
2645     fi
2646     DEFAULT_DEFAULT_wxUSE_GTK=1
2647   ;;
2648   *-*-gnu* | *-*-k*bsd*-gnu )
2649     USE_GNU=1
2650     TMP=`uname -m`
2651     if test "x$TMP" = "xalpha"; then
2652       USE_ALPHA=1
2653       cat >>confdefs.h <<\_ACEOF
2654 #define __ALPHA__ 1
2655 _ACEOF
2656
2657     fi
2658     DEFAULT_DEFAULT_wxUSE_GTK=1
2659   ;;
2660   *-*-irix5* | *-*-irix6* )
2661     USE_SGI=1
2662     USE_SVR4=1
2663     cat >>confdefs.h <<\_ACEOF
2664 #define __SGI__ 1
2665 _ACEOF
2666
2667     cat >>confdefs.h <<\_ACEOF
2668 #define __SVR4__ 1
2669 _ACEOF
2670
2671     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2672   ;;
2673   *-*-solaris2* )
2674     USE_SUN=1
2675     USE_SOLARIS=1
2676     USE_SVR4=1
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __SUN__ 1
2679 _ACEOF
2680
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __SOLARIS__ 1
2683 _ACEOF
2684
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SVR4__ 1
2687 _ACEOF
2688
2689     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2690     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2691   ;;
2692   *-*-sunos4* )
2693     USE_SUN=1
2694     USE_SUNOS=1
2695     USE_BSD=1
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __SUN__ 1
2698 _ACEOF
2699
2700     cat >>confdefs.h <<\_ACEOF
2701 #define __SUNOS__ 1
2702 _ACEOF
2703
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __BSD__ 1
2706 _ACEOF
2707
2708     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2709   ;;
2710   *-*-freebsd*)
2711     USE_BSD=1
2712     USE_FREEBSD=1
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __FREEBSD__ 1
2715 _ACEOF
2716
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __BSD__ 1
2719 _ACEOF
2720
2721     DEFAULT_DEFAULT_wxUSE_GTK=1
2722   ;;
2723   *-*-openbsd*|*-*-mirbsd*)
2724     USE_BSD=1
2725     USE_OPENBSD=1
2726     cat >>confdefs.h <<\_ACEOF
2727 #define __OPENBSD__ 1
2728 _ACEOF
2729
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __BSD__ 1
2732 _ACEOF
2733
2734     DEFAULT_DEFAULT_wxUSE_GTK=1
2735   ;;
2736   *-*-netbsd*)
2737     USE_BSD=1
2738     USE_NETBSD=1
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __NETBSD__ 1
2741 _ACEOF
2742
2743     cat >>confdefs.h <<\_ACEOF
2744 #define __BSD__ 1
2745 _ACEOF
2746
2747     DEFAULT_DEFAULT_wxUSE_GTK=1
2748     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2749
2750             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2751   ;;
2752   *-*-osf* )
2753     USE_ALPHA=1
2754     USE_OSF=1
2755     cat >>confdefs.h <<\_ACEOF
2756 #define __ALPHA__ 1
2757 _ACEOF
2758
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __OSF__ 1
2761 _ACEOF
2762
2763     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2764     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2765   ;;
2766   *-*-dgux5* )
2767     USE_ALPHA=1
2768     USE_SVR4=1
2769     cat >>confdefs.h <<\_ACEOF
2770 #define __ALPHA__ 1
2771 _ACEOF
2772
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __SVR4__ 1
2775 _ACEOF
2776
2777     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2778   ;;
2779   *-*-sysv5* )
2780     USE_SYSV=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __SYSV__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SVR4__ 1
2788 _ACEOF
2789
2790     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2791   ;;
2792   *-*-aix* )
2793     USE_AIX=1
2794     USE_SYSV=1
2795     USE_SVR4=1
2796                         SO_SUFFIX=a
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __AIX__ 1
2799 _ACEOF
2800
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __SYSV__ 1
2803 _ACEOF
2804
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __SVR4__ 1
2807 _ACEOF
2808
2809     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2810   ;;
2811
2812   *-*-*UnixWare*)
2813     USE_SYSV=1
2814     USE_SVR4=1
2815     USE_UNIXWARE=1
2816     cat >>confdefs.h <<\_ACEOF
2817 #define __UNIXWARE__ 1
2818 _ACEOF
2819
2820   ;;
2821
2822   *-*-cygwin* | *-*-mingw32* )
2823                 SO_SUFFIX=dll
2824     PROGRAM_EXT=".exe"
2825     DEFAULT_DEFAULT_wxUSE_MSW=1
2826   ;;
2827
2828   *-pc-msdosdjgpp )
2829     USE_UNIX=0
2830     USE_DOS=1
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __DOS__ 1
2833 _ACEOF
2834
2835     PROGRAM_EXT=".exe"
2836     DEFAULT_DEFAULT_wxUSE_MGL=1
2837   ;;
2838
2839   *-pc-os2_emx | *-pc-os2-emx )
2840     cat >>confdefs.h <<\_ACEOF
2841 #define __EMX__ 1
2842 _ACEOF
2843
2844     USE_OS2=1
2845     cat >>confdefs.h <<\_ACEOF
2846 #define __OS2__ 1
2847 _ACEOF
2848
2849     PROGRAM_EXT=".exe"
2850     DEFAULT_DEFAULT_wxUSE_PM=1
2851         CXX=gcc
2852     LDFLAGS="$LDFLAGS -Zcrtdll"
2853                         ac_executable_extensions=".exe"
2854     export ac_executable_extensions
2855             ac_save_IFS="$IFS"
2856     IFS='\\'
2857     ac_TEMP_PATH=
2858     for ac_dir in $PATH; do
2859       IFS=$ac_save_IFS
2860       if test -z "$ac_TEMP_PATH"; then
2861         ac_TEMP_PATH="$ac_dir"
2862       else
2863         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2864       fi
2865     done
2866     export PATH="$ac_TEMP_PATH"
2867     unset ac_TEMP_PATH
2868     DEFAULT_STD_FLAG=no
2869   ;;
2870
2871   *-*-darwin* )
2872         USE_BSD=1
2873     USE_DARWIN=1
2874     SO_SUFFIX=dylib
2875     cat >>confdefs.h <<\_ACEOF
2876 #define __BSD__ 1
2877 _ACEOF
2878
2879     cat >>confdefs.h <<\_ACEOF
2880 #define __DARWIN__ 1
2881 _ACEOF
2882
2883     cat >>confdefs.h <<\_ACEOF
2884 #define TARGET_CARBON 1
2885 _ACEOF
2886
2887     DEFAULT_DEFAULT_wxUSE_MAC=1
2888     DEFAULT_STD_FLAG=no
2889   ;;
2890   powerpc-apple-macos* )
2891         USE_UNIX=0
2892             ac_cv_c_bigendian=yes
2893     SO_SUFFIX=shlib
2894             DEFAULT_DEFAULT_wxUSE_MAC=1
2895     DEFAULT_STD_FLAG=no
2896   ;;
2897
2898   *-*-beos* )
2899         USE_BEOS=1
2900     cat >>confdefs.h <<\_ACEOF
2901 #define __BEOS__ 1
2902 _ACEOF
2903
2904   ;;
2905
2906   *)
2907     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2908 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2909     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2910 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2911
2912     DEFAULT_DEFAULT_wxUSE_X11=1
2913     DEFAULT_wxUSE_SHARED=no
2914 esac
2915
2916
2917
2918
2919           wx_arg_cache_file="configarg.cache"
2920           echo "loading argument cache $wx_arg_cache_file"
2921           rm -f ${wx_arg_cache_file}.tmp
2922           touch ${wx_arg_cache_file}.tmp
2923           touch ${wx_arg_cache_file}
2924
2925
2926 DEFAULT_wxUSE_ALL_FEATURES=yes
2927
2928 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2929 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2930
2931 DEFAULT_wxUSE_DMALLOC=no
2932 DEFAULT_wxUSE_LIBGNOMEVFS=no
2933 DEFAULT_wxUSE_LIBHILDON=no
2934 DEFAULT_wxUSE_LIBMSPACK=no
2935 DEFAULT_wxUSE_LIBSDL=no
2936 DEFAULT_wxUSE_ODBC=no
2937 DEFAULT_wxUSE_OPENGL=no
2938
2939 DEFAULT_wxUSE_ACCESSIBILITY=no
2940 DEFAULT_wxUSE_DATAVIEWCTRL=no
2941 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2942 DEFAULT_wxUSE_MEDIACTRL=no
2943 DEFAULT_wxUSE_TAB_DIALOG=no
2944
2945 DEFAULT_wxUSE_UNICODE_UTF8=auto
2946 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2947
2948 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2949
2950 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2951
2952 DEFAULT_wxUSE_GTK2=yes
2953
2954 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2955
2956
2957 for toolkit in `echo $ALL_TOOLKITS`; do
2958   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2959   if test "x$LINE" != "x" ; then
2960     has_toolkit_in_cache=1
2961     eval "DEFAULT_$LINE"
2962     eval "CACHE_$toolkit=1"
2963
2964     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2965     if test "x$LINE" != "x" ; then
2966         eval "DEFAULT_$LINE"
2967     fi
2968   fi
2969 done
2970
2971
2972
2973
2974
2975           enablestring=disable
2976           defaultval=
2977           if test -z "$defaultval"; then
2978               if test x"$enablestring" = xdisable; then
2979                   defaultval=yes
2980               else
2981                   defaultval=no
2982               fi
2983           fi
2984
2985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2986 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2987           # Check whether --enable-gui was given.
2988 if test "${enable_gui+set}" = set; then
2989   enableval=$enable_gui;
2990                           if test "$enableval" = yes; then
2991                             wx_cv_use_gui='wxUSE_GUI=yes'
2992                           else
2993                             wx_cv_use_gui='wxUSE_GUI=no'
2994                           fi
2995                           cache=yes
2996
2997 else
2998
2999                           cache=no
3000                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
3001                           if test "x$LINE" != x ; then
3002                             eval "DEFAULT_$LINE"
3003                           fi
3004
3005                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3006
3007 fi
3008
3009
3010           eval "$wx_cv_use_gui"
3011           if test "x$cache" = xyes; then
3012             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3013           fi
3014
3015           if test x"$enablestring" = xdisable; then
3016             if test $wxUSE_GUI = yes; then
3017               result=no
3018             else
3019               result=yes
3020             fi
3021           else
3022             result=$wxUSE_GUI
3023           fi
3024
3025           { echo "$as_me:$LINENO: result: $result" >&5
3026 echo "${ECHO_T}$result" >&6; }
3027
3028
3029           enablestring=
3030           defaultval=
3031           if test -z "$defaultval"; then
3032               if test x"$enablestring" = xdisable; then
3033                   defaultval=yes
3034               else
3035                   defaultval=no
3036               fi
3037           fi
3038
3039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3040 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3041           # Check whether --enable-monolithic was given.
3042 if test "${enable_monolithic+set}" = set; then
3043   enableval=$enable_monolithic;
3044                           if test "$enableval" = yes; then
3045                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3046                           else
3047                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3048                           fi
3049                           cache=yes
3050
3051 else
3052
3053                           cache=no
3054                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3055                           if test "x$LINE" != x ; then
3056                             eval "DEFAULT_$LINE"
3057                           fi
3058
3059                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3060
3061 fi
3062
3063
3064           eval "$wx_cv_use_monolithic"
3065           if test "x$cache" = xyes; then
3066             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3067           fi
3068
3069           if test x"$enablestring" = xdisable; then
3070             if test $wxUSE_MONOLITHIC = yes; then
3071               result=no
3072             else
3073               result=yes
3074             fi
3075           else
3076             result=$wxUSE_MONOLITHIC
3077           fi
3078
3079           { echo "$as_me:$LINENO: result: $result" >&5
3080 echo "${ECHO_T}$result" >&6; }
3081
3082
3083           enablestring=
3084           defaultval=
3085           if test -z "$defaultval"; then
3086               if test x"$enablestring" = xdisable; then
3087                   defaultval=yes
3088               else
3089                   defaultval=no
3090               fi
3091           fi
3092
3093           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3094 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3095           # Check whether --enable-plugins was given.
3096 if test "${enable_plugins+set}" = set; then
3097   enableval=$enable_plugins;
3098                           if test "$enableval" = yes; then
3099                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3100                           else
3101                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3102                           fi
3103                           cache=yes
3104
3105 else
3106
3107                           cache=no
3108                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3109                           if test "x$LINE" != x ; then
3110                             eval "DEFAULT_$LINE"
3111                           fi
3112
3113                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3114
3115 fi
3116
3117
3118           eval "$wx_cv_use_plugins"
3119           if test "x$cache" = xyes; then
3120             echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
3121           fi
3122
3123           if test x"$enablestring" = xdisable; then
3124             if test $wxUSE_PLUGINS = yes; then
3125               result=no
3126             else
3127               result=yes
3128             fi
3129           else
3130             result=$wxUSE_PLUGINS
3131           fi
3132
3133           { echo "$as_me:$LINENO: result: $result" >&5
3134 echo "${ECHO_T}$result" >&6; }
3135
3136
3137           withstring=without
3138           defaultval=$wxUSE_ALL_FEATURES
3139           if test -z "$defaultval"; then
3140               if test x"$withstring" = xwithout; then
3141                   defaultval=yes
3142               else
3143                   defaultval=no
3144               fi
3145           fi
3146           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3147 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3148
3149 # Check whether --with-subdirs was given.
3150 if test "${with_subdirs+set}" = set; then
3151   withval=$with_subdirs;
3152                         if test "$withval" = yes; then
3153                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3154                         else
3155                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3156                         fi
3157                         cache=yes
3158
3159 else
3160
3161                         cache=no
3162                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3163                         if test "x$LINE" != x ; then
3164                           eval "DEFAULT_$LINE"
3165                         fi
3166
3167                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3168
3169 fi
3170
3171
3172           eval "$wx_cv_use_subdirs"
3173           if test "x$cache" = xyes; then
3174             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3175           fi
3176
3177           if test x"$withstring" = xwithout; then
3178             if test $wxWITH_SUBDIRS = yes; then
3179               result=no
3180             else
3181               result=yes
3182             fi
3183           else
3184             result=$wxWITH_SUBDIRS
3185           fi
3186
3187           { echo "$as_me:$LINENO: result: $result" >&5
3188 echo "${ECHO_T}$result" >&6; }
3189
3190
3191 # Check whether --with-flavour was given.
3192 if test "${with_flavour+set}" = set; then
3193   withval=$with_flavour; WX_FLAVOUR="$withval"
3194 fi
3195
3196
3197           enablestring=
3198           defaultval=
3199           if test -z "$defaultval"; then
3200               if test x"$enablestring" = xdisable; then
3201                   defaultval=yes
3202               else
3203                   defaultval=no
3204               fi
3205           fi
3206
3207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3208 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3209           # Check whether --enable-official_build was given.
3210 if test "${enable_official_build+set}" = set; then
3211   enableval=$enable_official_build;
3212                           if test "$enableval" = yes; then
3213                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3214                           else
3215                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3216                           fi
3217                           cache=yes
3218
3219 else
3220
3221                           cache=no
3222                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3223                           if test "x$LINE" != x ; then
3224                             eval "DEFAULT_$LINE"
3225                           fi
3226
3227                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3228
3229 fi
3230
3231
3232           eval "$wx_cv_use_official_build"
3233           if test "x$cache" = xyes; then
3234             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3235           fi
3236
3237           if test x"$enablestring" = xdisable; then
3238             if test $wxUSE_OFFICIAL_BUILD = yes; then
3239               result=no
3240             else
3241               result=yes
3242             fi
3243           else
3244             result=$wxUSE_OFFICIAL_BUILD
3245           fi
3246
3247           { echo "$as_me:$LINENO: result: $result" >&5
3248 echo "${ECHO_T}$result" >&6; }
3249
3250 # Check whether --enable-vendor was given.
3251 if test "${enable_vendor+set}" = set; then
3252   enableval=$enable_vendor; VENDOR="$enableval"
3253 fi
3254
3255 if test "x$VENDOR" = "x"; then
3256     VENDOR="custom"
3257 fi
3258
3259
3260           enablestring=disable
3261           defaultval=
3262           if test -z "$defaultval"; then
3263               if test x"$enablestring" = xdisable; then
3264                   defaultval=yes
3265               else
3266                   defaultval=no
3267               fi
3268           fi
3269
3270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3271 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3272           # Check whether --enable-all-features was given.
3273 if test "${enable_all_features+set}" = set; then
3274   enableval=$enable_all_features;
3275                           if test "$enableval" = yes; then
3276                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3277                           else
3278                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3279                           fi
3280                           cache=yes
3281
3282 else
3283
3284                           cache=no
3285                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3286                           if test "x$LINE" != x ; then
3287                             eval "DEFAULT_$LINE"
3288                           fi
3289
3290                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3291
3292 fi
3293
3294
3295           eval "$wx_cv_use_all_features"
3296           if test "x$cache" = xyes; then
3297             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3298           fi
3299
3300           if test x"$enablestring" = xdisable; then
3301             if test $wxUSE_ALL_FEATURES = yes; then
3302               result=no
3303             else
3304               result=yes
3305             fi
3306           else
3307             result=$wxUSE_ALL_FEATURES
3308           fi
3309
3310           { echo "$as_me:$LINENO: result: $result" >&5
3311 echo "${ECHO_T}$result" >&6; }
3312
3313
3314
3315 if test "$wxUSE_GUI" = "yes"; then
3316
3317
3318           enablestring=
3319           defaultval=
3320           if test -z "$defaultval"; then
3321               if test x"$enablestring" = xdisable; then
3322                   defaultval=yes
3323               else
3324                   defaultval=no
3325               fi
3326           fi
3327
3328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3329 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3330           # Check whether --enable-universal was given.
3331 if test "${enable_universal+set}" = set; then
3332   enableval=$enable_universal;
3333                           if test "$enableval" = yes; then
3334                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3335                           else
3336                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3337                           fi
3338                           cache=yes
3339
3340 else
3341
3342                           cache=no
3343                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3344                           if test "x$LINE" != x ; then
3345                             eval "DEFAULT_$LINE"
3346                           fi
3347
3348                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3349
3350 fi
3351
3352
3353           eval "$wx_cv_use_universal"
3354           if test "x$cache" = xyes; then
3355             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3356           fi
3357
3358           if test x"$enablestring" = xdisable; then
3359             if test $wxUSE_UNIVERSAL = yes; then
3360               result=no
3361             else
3362               result=yes
3363             fi
3364           else
3365             result=$wxUSE_UNIVERSAL
3366           fi
3367
3368           { echo "$as_me:$LINENO: result: $result" >&5
3369 echo "${ECHO_T}$result" >&6; }
3370
3371 if test "$wxUSE_UNIVERSAL" = "yes"; then
3372
3373 # Check whether --with-themes was given.
3374 if test "${with_themes+set}" = set; then
3375   withval=$with_themes; wxUNIV_THEMES="$withval"
3376 fi
3377
3378 fi
3379
3380
3381 # Check whether --with-gtk was given.
3382 if test "${with_gtk+set}" = set; then
3383   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3384 fi
3385
3386
3387 # Check whether --with-motif was given.
3388 if test "${with_motif+set}" = set; then
3389   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3390 fi
3391
3392
3393 # Check whether --with-mac was given.
3394 if test "${with_mac+set}" = set; then
3395   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3396 fi
3397
3398
3399 # Check whether --with-cocoa was given.
3400 if test "${with_cocoa+set}" = set; then
3401   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3402 fi
3403
3404
3405 # Check whether --with-wine was given.
3406 if test "${with_wine+set}" = set; then
3407   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3408 fi
3409
3410
3411 # Check whether --with-msw was given.
3412 if test "${with_msw+set}" = set; then
3413   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3414 fi
3415
3416
3417 # Check whether --with-pm was given.
3418 if test "${with_pm+set}" = set; then
3419   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3420 fi
3421
3422
3423 # Check whether --with-mgl was given.
3424 if test "${with_mgl+set}" = set; then
3425   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3426 fi
3427
3428
3429 # Check whether --with-directfb was given.
3430 if test "${with_directfb+set}" = set; then
3431   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3432 fi
3433
3434
3435 # Check whether --with-microwin was given.
3436 if test "${with_microwin+set}" = set; then
3437   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3438 fi
3439
3440
3441 # Check whether --with-x11 was given.
3442 if test "${with_x11+set}" = set; then
3443   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3444 fi
3445
3446
3447           enablestring=
3448           defaultval=
3449           if test -z "$defaultval"; then
3450               if test x"$enablestring" = xdisable; then
3451                   defaultval=yes
3452               else
3453                   defaultval=no
3454               fi
3455           fi
3456
3457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3458 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3459           # Check whether --enable-nanox was given.
3460 if test "${enable_nanox+set}" = set; then
3461   enableval=$enable_nanox;
3462                           if test "$enableval" = yes; then
3463                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3464                           else
3465                             wx_cv_use_nanox='wxUSE_NANOX=no'
3466                           fi
3467                           cache=yes
3468
3469 else
3470
3471                           cache=no
3472                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3473                           if test "x$LINE" != x ; then
3474                             eval "DEFAULT_$LINE"
3475                           fi
3476
3477                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3478
3479 fi
3480
3481
3482           eval "$wx_cv_use_nanox"
3483           if test "x$cache" = xyes; then
3484             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3485           fi
3486
3487           if test x"$enablestring" = xdisable; then
3488             if test $wxUSE_NANOX = yes; then
3489               result=no
3490             else
3491               result=yes
3492             fi
3493           else
3494             result=$wxUSE_NANOX
3495           fi
3496
3497           { echo "$as_me:$LINENO: result: $result" >&5
3498 echo "${ECHO_T}$result" >&6; }
3499
3500
3501 # Check whether --enable-gtk2 was given.
3502 if test "${enable_gtk2+set}" = set; then
3503   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3504 fi
3505
3506
3507           enablestring=
3508           defaultval=
3509           if test -z "$defaultval"; then
3510               if test x"$enablestring" = xdisable; then
3511                   defaultval=yes
3512               else
3513                   defaultval=no
3514               fi
3515           fi
3516
3517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3518 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3519           # Check whether --enable-gpe was given.
3520 if test "${enable_gpe+set}" = set; then
3521   enableval=$enable_gpe;
3522                           if test "$enableval" = yes; then
3523                             wx_cv_use_gpe='wxUSE_GPE=yes'
3524                           else
3525                             wx_cv_use_gpe='wxUSE_GPE=no'
3526                           fi
3527                           cache=yes
3528
3529 else
3530
3531                           cache=no
3532                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3533                           if test "x$LINE" != x ; then
3534                             eval "DEFAULT_$LINE"
3535                           fi
3536
3537                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3538
3539 fi
3540
3541
3542           eval "$wx_cv_use_gpe"
3543           if test "x$cache" = xyes; then
3544             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3545           fi
3546
3547           if test x"$enablestring" = xdisable; then
3548             if test $wxUSE_GPE = yes; then
3549               result=no
3550             else
3551               result=yes
3552             fi
3553           else
3554             result=$wxUSE_GPE
3555           fi
3556
3557           { echo "$as_me:$LINENO: result: $result" >&5
3558 echo "${ECHO_T}$result" >&6; }
3559
3560
3561
3562
3563           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3564 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3565
3566 # Check whether --with-libpng was given.
3567 if test "${with_libpng+set}" = set; then
3568   withval=$with_libpng;
3569                         if test "$withval" = yes; then
3570                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3571                         elif test "$withval" = no; then
3572                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3573                         elif test "$withval" = sys; then
3574                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3575                         elif test "$withval" = builtin; then
3576                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3577                         else
3578                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3579 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3580    { (exit 1); exit 1; }; }
3581                         fi
3582                         cache=yes
3583
3584 else
3585
3586                         cache=no
3587                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3588                         if test "x$LINE" != x ; then
3589                           eval "DEFAULT_$LINE"
3590                         fi
3591
3592                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3593
3594 fi
3595
3596
3597           eval "$wx_cv_use_libpng"
3598           if test "x$cache" = xyes; then
3599             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3600           fi
3601
3602           if test "$wxUSE_LIBPNG" = yes; then
3603             { echo "$as_me:$LINENO: result: yes" >&5
3604 echo "${ECHO_T}yes" >&6; }
3605           elif test "$wxUSE_LIBPNG" = no; then
3606             { echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6; }
3608           elif test "$wxUSE_LIBPNG" = sys; then
3609             { echo "$as_me:$LINENO: result: system version" >&5
3610 echo "${ECHO_T}system version" >&6; }
3611           elif test "$wxUSE_LIBPNG" = builtin; then
3612             { echo "$as_me:$LINENO: result: builtin version" >&5
3613 echo "${ECHO_T}builtin version" >&6; }
3614           else
3615             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3616 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3617    { (exit 1); exit 1; }; }
3618           fi
3619
3620
3621           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3622 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3623
3624 # Check whether --with-libjpeg was given.
3625 if test "${with_libjpeg+set}" = set; then
3626   withval=$with_libjpeg;
3627                         if test "$withval" = yes; then
3628                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3629                         elif test "$withval" = no; then
3630                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3631                         elif test "$withval" = sys; then
3632                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3633                         elif test "$withval" = builtin; then
3634                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3635                         else
3636                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3637 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3638    { (exit 1); exit 1; }; }
3639                         fi
3640                         cache=yes
3641
3642 else
3643
3644                         cache=no
3645                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3646                         if test "x$LINE" != x ; then
3647                           eval "DEFAULT_$LINE"
3648                         fi
3649
3650                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3651
3652 fi
3653
3654
3655           eval "$wx_cv_use_libjpeg"
3656           if test "x$cache" = xyes; then
3657             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3658           fi
3659
3660           if test "$wxUSE_LIBJPEG" = yes; then
3661             { echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6; }
3663           elif test "$wxUSE_LIBJPEG" = no; then
3664             { echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6; }
3666           elif test "$wxUSE_LIBJPEG" = sys; then
3667             { echo "$as_me:$LINENO: result: system version" >&5
3668 echo "${ECHO_T}system version" >&6; }
3669           elif test "$wxUSE_LIBJPEG" = builtin; then
3670             { echo "$as_me:$LINENO: result: builtin version" >&5
3671 echo "${ECHO_T}builtin version" >&6; }
3672           else
3673             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3674 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3675    { (exit 1); exit 1; }; }
3676           fi
3677
3678
3679           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3680 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3681
3682 # Check whether --with-libtiff was given.
3683 if test "${with_libtiff+set}" = set; then
3684   withval=$with_libtiff;
3685                         if test "$withval" = yes; then
3686                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3687                         elif test "$withval" = no; then
3688                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3689                         elif test "$withval" = sys; then
3690                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3691                         elif test "$withval" = builtin; then
3692                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3693                         else
3694                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3695 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3696    { (exit 1); exit 1; }; }
3697                         fi
3698                         cache=yes
3699
3700 else
3701
3702                         cache=no
3703                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3704                         if test "x$LINE" != x ; then
3705                           eval "DEFAULT_$LINE"
3706                         fi
3707
3708                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3709
3710 fi
3711
3712
3713           eval "$wx_cv_use_libtiff"
3714           if test "x$cache" = xyes; then
3715             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3716           fi
3717
3718           if test "$wxUSE_LIBTIFF" = yes; then
3719             { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3721           elif test "$wxUSE_LIBTIFF" = no; then
3722             { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3724           elif test "$wxUSE_LIBTIFF" = sys; then
3725             { echo "$as_me:$LINENO: result: system version" >&5
3726 echo "${ECHO_T}system version" >&6; }
3727           elif test "$wxUSE_LIBTIFF" = builtin; then
3728             { echo "$as_me:$LINENO: result: builtin version" >&5
3729 echo "${ECHO_T}builtin version" >&6; }
3730           else
3731             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3732 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3733    { (exit 1); exit 1; }; }
3734           fi
3735
3736
3737           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3738 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3739
3740 # Check whether --with-libxpm was given.
3741 if test "${with_libxpm+set}" = set; then
3742   withval=$with_libxpm;
3743                         if test "$withval" = yes; then
3744                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3745                         elif test "$withval" = no; then
3746                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3747                         elif test "$withval" = sys; then
3748                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3749                         elif test "$withval" = builtin; then
3750                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3751                         else
3752                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3753 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3754    { (exit 1); exit 1; }; }
3755                         fi
3756                         cache=yes
3757
3758 else
3759
3760                         cache=no
3761                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3762                         if test "x$LINE" != x ; then
3763                           eval "DEFAULT_$LINE"
3764                         fi
3765
3766                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3767
3768 fi
3769
3770
3771           eval "$wx_cv_use_libxpm"
3772           if test "x$cache" = xyes; then
3773             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3774           fi
3775
3776           if test "$wxUSE_LIBXPM" = yes; then
3777             { echo "$as_me:$LINENO: result: yes" >&5
3778 echo "${ECHO_T}yes" >&6; }
3779           elif test "$wxUSE_LIBXPM" = no; then
3780             { echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6; }
3782           elif test "$wxUSE_LIBXPM" = sys; then
3783             { echo "$as_me:$LINENO: result: system version" >&5
3784 echo "${ECHO_T}system version" >&6; }
3785           elif test "$wxUSE_LIBXPM" = builtin; then
3786             { echo "$as_me:$LINENO: result: builtin version" >&5
3787 echo "${ECHO_T}builtin version" >&6; }
3788           else
3789             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3790 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3791    { (exit 1); exit 1; }; }
3792           fi
3793
3794
3795           withstring=
3796           defaultval=$wxUSE_ALL_FEATURES
3797           if test -z "$defaultval"; then
3798               if test x"$withstring" = xwithout; then
3799                   defaultval=yes
3800               else
3801                   defaultval=no
3802               fi
3803           fi
3804           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3805 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3806
3807 # Check whether --with-libmspack was given.
3808 if test "${with_libmspack+set}" = set; then
3809   withval=$with_libmspack;
3810                         if test "$withval" = yes; then
3811                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3812                         else
3813                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3814                         fi
3815                         cache=yes
3816
3817 else
3818
3819                         cache=no
3820                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3821                         if test "x$LINE" != x ; then
3822                           eval "DEFAULT_$LINE"
3823                         fi
3824
3825                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3826
3827 fi
3828
3829
3830           eval "$wx_cv_use_libmspack"
3831           if test "x$cache" = xyes; then
3832             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3833           fi
3834
3835           if test x"$withstring" = xwithout; then
3836             if test $wxUSE_LIBMSPACK = yes; then
3837               result=no
3838             else
3839               result=yes
3840             fi
3841           else
3842             result=$wxUSE_LIBMSPACK
3843           fi
3844
3845           { echo "$as_me:$LINENO: result: $result" >&5
3846 echo "${ECHO_T}$result" >&6; }
3847
3848
3849           withstring=without
3850           defaultval=$wxUSE_ALL_FEATURES
3851           if test -z "$defaultval"; then
3852               if test x"$withstring" = xwithout; then
3853                   defaultval=yes
3854               else
3855                   defaultval=no
3856               fi
3857           fi
3858           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3859 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3860
3861 # Check whether --with-gnomeprint was given.
3862 if test "${with_gnomeprint+set}" = set; then
3863   withval=$with_gnomeprint;
3864                         if test "$withval" = yes; then
3865                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3866                         else
3867                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3868                         fi
3869                         cache=yes
3870
3871 else
3872
3873                         cache=no
3874                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3875                         if test "x$LINE" != x ; then
3876                           eval "DEFAULT_$LINE"
3877                         fi
3878
3879                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3880
3881 fi
3882
3883
3884           eval "$wx_cv_use_gnomeprint"
3885           if test "x$cache" = xyes; then
3886             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3887           fi
3888
3889           if test x"$withstring" = xwithout; then
3890             if test $wxUSE_LIBGNOMEPRINT = yes; then
3891               result=no
3892             else
3893               result=yes
3894             fi
3895           else
3896             result=$wxUSE_LIBGNOMEPRINT
3897           fi
3898
3899           { echo "$as_me:$LINENO: result: $result" >&5
3900 echo "${ECHO_T}$result" >&6; }
3901
3902
3903           withstring=
3904           defaultval=$wxUSE_ALL_FEATURES
3905           if test -z "$defaultval"; then
3906               if test x"$withstring" = xwithout; then
3907                   defaultval=yes
3908               else
3909                   defaultval=no
3910               fi
3911           fi
3912           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3913 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3914
3915 # Check whether --with-gnomevfs was given.
3916 if test "${with_gnomevfs+set}" = set; then
3917   withval=$with_gnomevfs;
3918                         if test "$withval" = yes; then
3919                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3920                         else
3921                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3922                         fi
3923                         cache=yes
3924
3925 else
3926
3927                         cache=no
3928                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3929                         if test "x$LINE" != x ; then
3930                           eval "DEFAULT_$LINE"
3931                         fi
3932
3933                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3934
3935 fi
3936
3937
3938           eval "$wx_cv_use_gnomevfs"
3939           if test "x$cache" = xyes; then
3940             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
3941           fi
3942
3943           if test x"$withstring" = xwithout; then
3944             if test $wxUSE_LIBGNOMEVFS = yes; then
3945               result=no
3946             else
3947               result=yes
3948             fi
3949           else
3950             result=$wxUSE_LIBGNOMEVFS
3951           fi
3952
3953           { echo "$as_me:$LINENO: result: $result" >&5
3954 echo "${ECHO_T}$result" >&6; }
3955
3956
3957           withstring=
3958           defaultval=$wxUSE_ALL_FEATURES
3959           if test -z "$defaultval"; then
3960               if test x"$withstring" = xwithout; then
3961                   defaultval=yes
3962               else
3963                   defaultval=no
3964               fi
3965           fi
3966           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3967 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3968
3969 # Check whether --with-hildon was given.
3970 if test "${with_hildon+set}" = set; then
3971   withval=$with_hildon;
3972                         if test "$withval" = yes; then
3973                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3974                         else
3975                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3976                         fi
3977                         cache=yes
3978
3979 else
3980
3981                         cache=no
3982                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3983                         if test "x$LINE" != x ; then
3984                           eval "DEFAULT_$LINE"
3985                         fi
3986
3987                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3988
3989 fi
3990
3991
3992           eval "$wx_cv_use_hildon"
3993           if test "x$cache" = xyes; then
3994             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
3995           fi
3996
3997           if test x"$withstring" = xwithout; then
3998             if test $wxUSE_LIBHILDON = yes; then
3999               result=no
4000             else
4001               result=yes
4002             fi
4003           else
4004             result=$wxUSE_LIBHILDON
4005           fi
4006
4007           { echo "$as_me:$LINENO: result: $result" >&5
4008 echo "${ECHO_T}$result" >&6; }
4009
4010
4011           withstring=
4012           defaultval=$wxUSE_ALL_FEATURES
4013           if test -z "$defaultval"; then
4014               if test x"$withstring" = xwithout; then
4015                   defaultval=yes
4016               else
4017                   defaultval=no
4018               fi
4019           fi
4020           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4021 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4022
4023 # Check whether --with-opengl was given.
4024 if test "${with_opengl+set}" = set; then
4025   withval=$with_opengl;
4026                         if test "$withval" = yes; then
4027                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4028                         else
4029                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4030                         fi
4031                         cache=yes
4032
4033 else
4034
4035                         cache=no
4036                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4037                         if test "x$LINE" != x ; then
4038                           eval "DEFAULT_$LINE"
4039                         fi
4040
4041                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4042
4043 fi
4044
4045
4046           eval "$wx_cv_use_opengl"
4047           if test "x$cache" = xyes; then
4048             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4049           fi
4050
4051           if test x"$withstring" = xwithout; then
4052             if test $wxUSE_OPENGL = yes; then
4053               result=no
4054             else
4055               result=yes
4056             fi
4057           else
4058             result=$wxUSE_OPENGL
4059           fi
4060
4061           { echo "$as_me:$LINENO: result: $result" >&5
4062 echo "${ECHO_T}$result" >&6; }
4063
4064
4065 fi
4066
4067
4068           withstring=
4069           defaultval=$wxUSE_ALL_FEATURES
4070           if test -z "$defaultval"; then
4071               if test x"$withstring" = xwithout; then
4072                   defaultval=yes
4073               else
4074                   defaultval=no
4075               fi
4076           fi
4077           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4078 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4079
4080 # Check whether --with-dmalloc was given.
4081 if test "${with_dmalloc+set}" = set; then
4082   withval=$with_dmalloc;
4083                         if test "$withval" = yes; then
4084                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4085                         else
4086                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4087                         fi
4088                         cache=yes
4089
4090 else
4091
4092                         cache=no
4093                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4094                         if test "x$LINE" != x ; then
4095                           eval "DEFAULT_$LINE"
4096                         fi
4097
4098                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4099
4100 fi
4101
4102
4103           eval "$wx_cv_use_dmalloc"
4104           if test "x$cache" = xyes; then
4105             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4106           fi
4107
4108           if test x"$withstring" = xwithout; then
4109             if test $wxUSE_DMALLOC = yes; then
4110               result=no
4111             else
4112               result=yes
4113             fi
4114           else
4115             result=$wxUSE_DMALLOC
4116           fi
4117
4118           { echo "$as_me:$LINENO: result: $result" >&5
4119 echo "${ECHO_T}$result" >&6; }
4120
4121
4122           withstring=
4123           defaultval=$wxUSE_ALL_FEATURES
4124           if test -z "$defaultval"; then
4125               if test x"$withstring" = xwithout; then
4126                   defaultval=yes
4127               else
4128                   defaultval=no
4129               fi
4130           fi
4131           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4132 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4133
4134 # Check whether --with-sdl was given.
4135 if test "${with_sdl+set}" = set; then
4136   withval=$with_sdl;
4137                         if test "$withval" = yes; then
4138                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4139                         else
4140                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4141                         fi
4142                         cache=yes
4143
4144 else
4145
4146                         cache=no
4147                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4148                         if test "x$LINE" != x ; then
4149                           eval "DEFAULT_$LINE"
4150                         fi
4151
4152                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4153
4154 fi
4155
4156
4157           eval "$wx_cv_use_sdl"
4158           if test "x$cache" = xyes; then
4159             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4160           fi
4161
4162           if test x"$withstring" = xwithout; then
4163             if test $wxUSE_LIBSDL = yes; then
4164               result=no
4165             else
4166               result=yes
4167             fi
4168           else
4169             result=$wxUSE_LIBSDL
4170           fi
4171
4172           { echo "$as_me:$LINENO: result: $result" >&5
4173 echo "${ECHO_T}$result" >&6; }
4174
4175
4176           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4177 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4178
4179 # Check whether --with-regex was given.
4180 if test "${with_regex+set}" = set; then
4181   withval=$with_regex;
4182                         if test "$withval" = yes; then
4183                           wx_cv_use_regex='wxUSE_REGEX=yes'
4184                         elif test "$withval" = no; then
4185                           wx_cv_use_regex='wxUSE_REGEX=no'
4186                         elif test "$withval" = sys; then
4187                           wx_cv_use_regex='wxUSE_REGEX=sys'
4188                         elif test "$withval" = builtin; then
4189                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4190                         else
4191                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4192 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4193    { (exit 1); exit 1; }; }
4194                         fi
4195                         cache=yes
4196
4197 else
4198
4199                         cache=no
4200                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4201                         if test "x$LINE" != x ; then
4202                           eval "DEFAULT_$LINE"
4203                         fi
4204
4205                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4206
4207 fi
4208
4209
4210           eval "$wx_cv_use_regex"
4211           if test "x$cache" = xyes; then
4212             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4213           fi
4214
4215           if test "$wxUSE_REGEX" = yes; then
4216             { echo "$as_me:$LINENO: result: yes" >&5
4217 echo "${ECHO_T}yes" >&6; }
4218           elif test "$wxUSE_REGEX" = no; then
4219             { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4221           elif test "$wxUSE_REGEX" = sys; then
4222             { echo "$as_me:$LINENO: result: system version" >&5
4223 echo "${ECHO_T}system version" >&6; }
4224           elif test "$wxUSE_REGEX" = builtin; then
4225             { echo "$as_me:$LINENO: result: builtin version" >&5
4226 echo "${ECHO_T}builtin version" >&6; }
4227           else
4228             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4229 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4230    { (exit 1); exit 1; }; }
4231           fi
4232
4233
4234           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4235 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4236
4237 # Check whether --with-zlib was given.
4238 if test "${with_zlib+set}" = set; then
4239   withval=$with_zlib;
4240                         if test "$withval" = yes; then
4241                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4242                         elif test "$withval" = no; then
4243                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4244                         elif test "$withval" = sys; then
4245                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4246                         elif test "$withval" = builtin; then
4247                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4248                         else
4249                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4250 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4251    { (exit 1); exit 1; }; }
4252                         fi
4253                         cache=yes
4254
4255 else
4256
4257                         cache=no
4258                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4259                         if test "x$LINE" != x ; then
4260                           eval "DEFAULT_$LINE"
4261                         fi
4262
4263                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4264
4265 fi
4266
4267
4268           eval "$wx_cv_use_zlib"
4269           if test "x$cache" = xyes; then
4270             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4271           fi
4272
4273           if test "$wxUSE_ZLIB" = yes; then
4274             { echo "$as_me:$LINENO: result: yes" >&5
4275 echo "${ECHO_T}yes" >&6; }
4276           elif test "$wxUSE_ZLIB" = no; then
4277             { echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6; }
4279           elif test "$wxUSE_ZLIB" = sys; then
4280             { echo "$as_me:$LINENO: result: system version" >&5
4281 echo "${ECHO_T}system version" >&6; }
4282           elif test "$wxUSE_ZLIB" = builtin; then
4283             { echo "$as_me:$LINENO: result: builtin version" >&5
4284 echo "${ECHO_T}builtin version" >&6; }
4285           else
4286             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4287 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4288    { (exit 1); exit 1; }; }
4289           fi
4290
4291
4292           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4293 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4294
4295 # Check whether --with-odbc was given.
4296 if test "${with_odbc+set}" = set; then
4297   withval=$with_odbc;
4298                         if test "$withval" = yes; then
4299                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4300                         elif test "$withval" = no; then
4301                           wx_cv_use_odbc='wxUSE_ODBC=no'
4302                         elif test "$withval" = sys; then
4303                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4304                         elif test "$withval" = builtin; then
4305                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4306                         else
4307                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4308 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4309    { (exit 1); exit 1; }; }
4310                         fi
4311                         cache=yes
4312
4313 else
4314
4315                         cache=no
4316                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4317                         if test "x$LINE" != x ; then
4318                           eval "DEFAULT_$LINE"
4319                         fi
4320
4321                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4322
4323 fi
4324
4325
4326           eval "$wx_cv_use_odbc"
4327           if test "x$cache" = xyes; then
4328             echo "wxUSE_ODBC=$wxUSE_ODBC" >> ${wx_arg_cache_file}.tmp
4329           fi
4330
4331           if test "$wxUSE_ODBC" = yes; then
4332             { echo "$as_me:$LINENO: result: yes" >&5
4333 echo "${ECHO_T}yes" >&6; }
4334           elif test "$wxUSE_ODBC" = no; then
4335             { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4337           elif test "$wxUSE_ODBC" = sys; then
4338             { echo "$as_me:$LINENO: result: system version" >&5
4339 echo "${ECHO_T}system version" >&6; }
4340           elif test "$wxUSE_ODBC" = builtin; then
4341             { echo "$as_me:$LINENO: result: builtin version" >&5
4342 echo "${ECHO_T}builtin version" >&6; }
4343           else
4344             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4345 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4346    { (exit 1); exit 1; }; }
4347           fi
4348
4349
4350           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4351 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4352
4353 # Check whether --with-expat was given.
4354 if test "${with_expat+set}" = set; then
4355   withval=$with_expat;
4356                         if test "$withval" = yes; then
4357                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4358                         elif test "$withval" = no; then
4359                           wx_cv_use_expat='wxUSE_EXPAT=no'
4360                         elif test "$withval" = sys; then
4361                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4362                         elif test "$withval" = builtin; then
4363                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4364                         else
4365                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4366 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4367    { (exit 1); exit 1; }; }
4368                         fi
4369                         cache=yes
4370
4371 else
4372
4373                         cache=no
4374                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4375                         if test "x$LINE" != x ; then
4376                           eval "DEFAULT_$LINE"
4377                         fi
4378
4379                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4380
4381 fi
4382
4383
4384           eval "$wx_cv_use_expat"
4385           if test "x$cache" = xyes; then
4386             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4387           fi
4388
4389           if test "$wxUSE_EXPAT" = yes; then
4390             { echo "$as_me:$LINENO: result: yes" >&5
4391 echo "${ECHO_T}yes" >&6; }
4392           elif test "$wxUSE_EXPAT" = no; then
4393             { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4395           elif test "$wxUSE_EXPAT" = sys; then
4396             { echo "$as_me:$LINENO: result: system version" >&5
4397 echo "${ECHO_T}system version" >&6; }
4398           elif test "$wxUSE_EXPAT" = builtin; then
4399             { echo "$as_me:$LINENO: result: builtin version" >&5
4400 echo "${ECHO_T}builtin version" >&6; }
4401           else
4402             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4403 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4404    { (exit 1); exit 1; }; }
4405           fi
4406
4407
4408 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4409 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4410
4411 # Check whether --with-macosx-sdk was given.
4412 if test "${with_macosx_sdk+set}" = set; then
4413   withval=$with_macosx_sdk;
4414         wxUSE_MACOSX_SDK=$withval
4415         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4416         echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4417
4418 else
4419
4420         # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4421         # will override --enable-universal_binary's automatic SDK usage.
4422         wxUSE_MACOSX_SDK=
4423         LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4424         if test "x$LINE" != x ; then
4425             eval "$LINE"
4426             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4427         fi
4428
4429 fi
4430
4431 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4432 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4433
4434 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4435 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4436
4437 # Check whether --with-macosx-version-min was given.
4438 if test "${with_macosx_version_min+set}" = set; then
4439   withval=$with_macosx_version_min;
4440         wxUSE_MACOSX_VERSION_MIN=$withval
4441         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4442         echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4443
4444 else
4445
4446         # default "yes" because when not using an SDK it means the same as no
4447         # but when using an SDK it means to use the SDK version
4448         wxUSE_MACOSX_VERSION_MIN=yes
4449         # See if there is a value in the cache
4450         LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4451         if test "x$LINE" != x ; then
4452             eval "$LINE"
4453             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4454         fi
4455
4456 fi
4457
4458 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4459 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4460
4461
4462
4463           enablestring=disable
4464           defaultval=
4465           if test -z "$defaultval"; then
4466               if test x"$enablestring" = xdisable; then
4467                   defaultval=yes
4468               else
4469                   defaultval=no
4470               fi
4471           fi
4472
4473           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4474 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4475           # Check whether --enable-shared was given.
4476 if test "${enable_shared+set}" = set; then
4477   enableval=$enable_shared;
4478                           if test "$enableval" = yes; then
4479                             wx_cv_use_shared='wxUSE_SHARED=yes'
4480                           else
4481                             wx_cv_use_shared='wxUSE_SHARED=no'
4482                           fi
4483                           cache=yes
4484
4485 else
4486
4487                           cache=no
4488                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4489                           if test "x$LINE" != x ; then
4490                             eval "DEFAULT_$LINE"
4491                           fi
4492
4493                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4494
4495 fi
4496
4497
4498           eval "$wx_cv_use_shared"
4499           if test "x$cache" = xyes; then
4500             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4501           fi
4502
4503           if test x"$enablestring" = xdisable; then
4504             if test $wxUSE_SHARED = yes; then
4505               result=no
4506             else
4507               result=yes
4508             fi
4509           else
4510             result=$wxUSE_SHARED
4511           fi
4512
4513           { echo "$as_me:$LINENO: result: $result" >&5
4514 echo "${ECHO_T}$result" >&6; }
4515
4516
4517           enablestring=disable
4518           defaultval=
4519           if test -z "$defaultval"; then
4520               if test x"$enablestring" = xdisable; then
4521                   defaultval=yes
4522               else
4523                   defaultval=no
4524               fi
4525           fi
4526
4527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4528 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4529           # Check whether --enable-optimise was given.
4530 if test "${enable_optimise+set}" = set; then
4531   enableval=$enable_optimise;
4532                           if test "$enableval" = yes; then
4533                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4534                           else
4535                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4536                           fi
4537                           cache=yes
4538
4539 else
4540
4541                           cache=no
4542                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4543                           if test "x$LINE" != x ; then
4544                             eval "DEFAULT_$LINE"
4545                           fi
4546
4547                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4548
4549 fi
4550
4551
4552           eval "$wx_cv_use_optimise"
4553           if test "x$cache" = xyes; then
4554             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4555           fi
4556
4557           if test x"$enablestring" = xdisable; then
4558             if test $wxUSE_OPTIMISE = yes; then
4559               result=no
4560             else
4561               result=yes
4562             fi
4563           else
4564             result=$wxUSE_OPTIMISE
4565           fi
4566
4567           { echo "$as_me:$LINENO: result: $result" >&5
4568 echo "${ECHO_T}$result" >&6; }
4569
4570
4571           enablestring=
4572           defaultval=
4573           if test -z "$defaultval"; then
4574               if test x"$enablestring" = xdisable; then
4575                   defaultval=yes
4576               else
4577                   defaultval=no
4578               fi
4579           fi
4580
4581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4582 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4583           # Check whether --enable-debug was given.
4584 if test "${enable_debug+set}" = set; then
4585   enableval=$enable_debug;
4586                           if test "$enableval" = yes; then
4587                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4588                           else
4589                             wx_cv_use_debug='wxUSE_DEBUG=no'
4590                           fi
4591                           cache=yes
4592
4593 else
4594
4595                           cache=no
4596                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4597                           if test "x$LINE" != x ; then
4598                             eval "DEFAULT_$LINE"
4599                           fi
4600
4601                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4602
4603 fi
4604
4605
4606           eval "$wx_cv_use_debug"
4607           if test "x$cache" = xyes; then
4608             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4609           fi
4610
4611           if test x"$enablestring" = xdisable; then
4612             if test $wxUSE_DEBUG = yes; then
4613               result=no
4614             else
4615               result=yes
4616             fi
4617           else
4618             result=$wxUSE_DEBUG
4619           fi
4620
4621           { echo "$as_me:$LINENO: result: $result" >&5
4622 echo "${ECHO_T}$result" >&6; }
4623
4624
4625           enablestring=
4626           defaultval=
4627           if test -z "$defaultval"; then
4628               if test x"$enablestring" = xdisable; then
4629                   defaultval=yes
4630               else
4631                   defaultval=no
4632               fi
4633           fi
4634
4635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4636 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4637           # Check whether --enable-stl was given.
4638 if test "${enable_stl+set}" = set; then
4639   enableval=$enable_stl;
4640                           if test "$enableval" = yes; then
4641                             wx_cv_use_stl='wxUSE_STL=yes'
4642                           else
4643                             wx_cv_use_stl='wxUSE_STL=no'
4644                           fi
4645                           cache=yes
4646
4647 else
4648
4649                           cache=no
4650                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4651                           if test "x$LINE" != x ; then
4652                             eval "DEFAULT_$LINE"
4653                           fi
4654
4655                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4656
4657 fi
4658
4659
4660           eval "$wx_cv_use_stl"
4661           if test "x$cache" = xyes; then
4662             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4663           fi
4664
4665           if test x"$enablestring" = xdisable; then
4666             if test $wxUSE_STL = yes; then
4667               result=no
4668             else
4669               result=yes
4670             fi
4671           else
4672             result=$wxUSE_STL
4673           fi
4674
4675           { echo "$as_me:$LINENO: result: $result" >&5
4676 echo "${ECHO_T}$result" >&6; }
4677
4678
4679           enablestring=
4680           defaultval=
4681           if test -z "$defaultval"; then
4682               if test x"$enablestring" = xdisable; then
4683                   defaultval=yes
4684               else
4685                   defaultval=no
4686               fi
4687           fi
4688
4689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4690 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4691           # Check whether --enable-std_iostreams was given.
4692 if test "${enable_std_iostreams+set}" = set; then
4693   enableval=$enable_std_iostreams;
4694                           if test "$enableval" = yes; then
4695                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4696                           else
4697                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4698                           fi
4699                           cache=yes
4700
4701 else
4702
4703                           cache=no
4704                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4705                           if test "x$LINE" != x ; then
4706                             eval "DEFAULT_$LINE"
4707                           fi
4708
4709                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4710
4711 fi
4712
4713
4714           eval "$wx_cv_use_std_iostreams"
4715           if test "x$cache" = xyes; then
4716             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4717           fi
4718
4719           if test x"$enablestring" = xdisable; then
4720             if test $wxUSE_STD_IOSTREAM = yes; then
4721               result=no
4722             else
4723               result=yes
4724             fi
4725           else
4726             result=$wxUSE_STD_IOSTREAM
4727           fi
4728
4729           { echo "$as_me:$LINENO: result: $result" >&5
4730 echo "${ECHO_T}$result" >&6; }
4731
4732
4733           enablestring=
4734           defaultval=
4735           if test -z "$defaultval"; then
4736               if test x"$enablestring" = xdisable; then
4737                   defaultval=yes
4738               else
4739                   defaultval=no
4740               fi
4741           fi
4742
4743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4744 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4745           # Check whether --enable-std_string was given.
4746 if test "${enable_std_string+set}" = set; then
4747   enableval=$enable_std_string;
4748                           if test "$enableval" = yes; then
4749                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4750                           else
4751                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4752                           fi
4753                           cache=yes
4754
4755 else
4756
4757                           cache=no
4758                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4759                           if test "x$LINE" != x ; then
4760                             eval "DEFAULT_$LINE"
4761                           fi
4762
4763                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4764
4765 fi
4766
4767
4768           eval "$wx_cv_use_std_string"
4769           if test "x$cache" = xyes; then
4770             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4771           fi
4772
4773           if test x"$enablestring" = xdisable; then
4774             if test $wxUSE_STD_STRING = yes; then
4775               result=no
4776             else
4777               result=yes
4778             fi
4779           else
4780             result=$wxUSE_STD_STRING
4781           fi
4782
4783           { echo "$as_me:$LINENO: result: $result" >&5
4784 echo "${ECHO_T}$result" >&6; }
4785
4786
4787           enablestring=disable
4788           defaultval=
4789           if test -z "$defaultval"; then
4790               if test x"$enablestring" = xdisable; then
4791                   defaultval=yes
4792               else
4793                   defaultval=no
4794               fi
4795           fi
4796
4797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4798 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4799           # Check whether --enable-unicode was given.
4800 if test "${enable_unicode+set}" = set; then
4801   enableval=$enable_unicode;
4802                           if test "$enableval" = yes; then
4803                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4804                           else
4805                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4806                           fi
4807                           cache=yes
4808
4809 else
4810
4811                           cache=no
4812                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4813                           if test "x$LINE" != x ; then
4814                             eval "DEFAULT_$LINE"
4815                           fi
4816
4817                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4818
4819 fi
4820
4821
4822           eval "$wx_cv_use_unicode"
4823           if test "x$cache" = xyes; then
4824             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4825           fi
4826
4827           if test x"$enablestring" = xdisable; then
4828             if test $wxUSE_UNICODE = yes; then
4829               result=no
4830             else
4831               result=yes
4832             fi
4833           else
4834             result=$wxUSE_UNICODE
4835           fi
4836
4837           { echo "$as_me:$LINENO: result: $result" >&5
4838 echo "${ECHO_T}$result" >&6; }
4839
4840
4841           enablestring=
4842           defaultval=
4843           if test -z "$defaultval"; then
4844               if test x"$enablestring" = xdisable; then
4845                   defaultval=yes
4846               else
4847                   defaultval=no
4848               fi
4849           fi
4850
4851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4852 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4853           # Check whether --enable-mslu was given.
4854 if test "${enable_mslu+set}" = set; then
4855   enableval=$enable_mslu;
4856                           if test "$enableval" = yes; then
4857                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4858                           else
4859                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4860                           fi
4861                           cache=yes
4862
4863 else
4864
4865                           cache=no
4866                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4867                           if test "x$LINE" != x ; then
4868                             eval "DEFAULT_$LINE"
4869                           fi
4870
4871                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4872
4873 fi
4874
4875
4876           eval "$wx_cv_use_mslu"
4877           if test "x$cache" = xyes; then
4878             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
4879           fi
4880
4881           if test x"$enablestring" = xdisable; then
4882             if test $wxUSE_UNICODE_MSLU = yes; then
4883               result=no
4884             else
4885               result=yes
4886             fi
4887           else
4888             result=$wxUSE_UNICODE_MSLU
4889           fi
4890
4891           { echo "$as_me:$LINENO: result: $result" >&5
4892 echo "${ECHO_T}$result" >&6; }
4893
4894
4895           enablestring=
4896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4897 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4898           # Check whether --enable-utf8 was given.
4899 if test "${enable_utf8+set}" = set; then
4900   enableval=$enable_utf8;
4901                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4902                           cache=yes
4903
4904 else
4905
4906                           cache=no
4907                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4908                           if test "x$LINE" != x ; then
4909                             eval "DEFAULT_$LINE"
4910                           fi
4911
4912                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4913
4914 fi
4915
4916
4917           eval "$wx_cv_use_utf8"
4918           if test "x$cache" = xyes; then
4919             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
4920           fi
4921
4922           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4923 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4924
4925
4926           enablestring=
4927           defaultval=
4928           if test -z "$defaultval"; then
4929               if test x"$enablestring" = xdisable; then
4930                   defaultval=yes
4931               else
4932                   defaultval=no
4933               fi
4934           fi
4935
4936           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4937 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4938           # Check whether --enable-utf8only was given.
4939 if test "${enable_utf8only+set}" = set; then
4940   enableval=$enable_utf8only;
4941                           if test "$enableval" = yes; then
4942                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4943                           else
4944                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4945                           fi
4946                           cache=yes
4947
4948 else
4949
4950                           cache=no
4951                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
4952                           if test "x$LINE" != x ; then
4953                             eval "DEFAULT_$LINE"
4954                           fi
4955
4956                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4957
4958 fi
4959
4960
4961           eval "$wx_cv_use_utf8only"
4962           if test "x$cache" = xyes; then
4963             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
4964           fi
4965
4966           if test x"$enablestring" = xdisable; then
4967             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4968               result=no
4969             else
4970               result=yes
4971             fi
4972           else
4973             result=$wxUSE_UNICODE_UTF8_LOCALE
4974           fi
4975
4976           { echo "$as_me:$LINENO: result: $result" >&5
4977 echo "${ECHO_T}$result" >&6; }
4978
4979
4980           enablestring=
4981           defaultval=
4982           if test -z "$defaultval"; then
4983               if test x"$enablestring" = xdisable; then
4984                   defaultval=yes
4985               else
4986                   defaultval=no
4987               fi
4988           fi
4989
4990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4991 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4992           # Check whether --enable-extended_rtti was given.
4993 if test "${enable_extended_rtti+set}" = set; then
4994   enableval=$enable_extended_rtti;
4995                           if test "$enableval" = yes; then
4996                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4997                           else
4998                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4999                           fi
5000                           cache=yes
5001
5002 else
5003
5004                           cache=no
5005                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5006                           if test "x$LINE" != x ; then
5007                             eval "DEFAULT_$LINE"
5008                           fi
5009
5010                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5011
5012 fi
5013
5014
5015           eval "$wx_cv_use_extended_rtti"
5016           if test "x$cache" = xyes; then
5017             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
5018           fi
5019
5020           if test x"$enablestring" = xdisable; then
5021             if test $wxUSE_EXTENDED_RTTI = yes; then
5022               result=no
5023             else
5024               result=yes
5025             fi
5026           else
5027             result=$wxUSE_EXTENDED_RTTI
5028           fi
5029
5030           { echo "$as_me:$LINENO: result: $result" >&5
5031 echo "${ECHO_T}$result" >&6; }
5032
5033 if test "$USE_OS2" = "1"; then
5034     DEFAULT_wxUSE_OMF=no
5035
5036           enablestring=
5037           defaultval=
5038           if test -z "$defaultval"; then
5039               if test x"$enablestring" = xdisable; then
5040                   defaultval=yes
5041               else
5042                   defaultval=no
5043               fi
5044           fi
5045
5046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5047 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5048           # Check whether --enable-omf was given.
5049 if test "${enable_omf+set}" = set; then
5050   enableval=$enable_omf;
5051                           if test "$enableval" = yes; then
5052                             wx_cv_use_omf='wxUSE_OMF=yes'
5053                           else
5054                             wx_cv_use_omf='wxUSE_OMF=no'
5055                           fi
5056                           cache=yes
5057
5058 else
5059
5060                           cache=no
5061                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5062                           if test "x$LINE" != x ; then
5063                             eval "DEFAULT_$LINE"
5064                           fi
5065
5066                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5067
5068 fi
5069
5070
5071           eval "$wx_cv_use_omf"
5072           if test "x$cache" = xyes; then
5073             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
5074           fi
5075
5076           if test x"$enablestring" = xdisable; then
5077             if test $wxUSE_OMF = yes; then
5078               result=no
5079             else
5080               result=yes
5081             fi
5082           else
5083             result=$wxUSE_OMF
5084           fi
5085
5086           { echo "$as_me:$LINENO: result: $result" >&5
5087 echo "${ECHO_T}$result" >&6; }
5088
5089 fi
5090
5091 if test "$wxUSE_DEBUG" = "yes"; then
5092   DEFAULT_wxUSE_DEBUG_FLAG=yes
5093   DEFAULT_wxUSE_DEBUG_INFO=yes
5094   BUILD=debug
5095 elif test "$wxUSE_DEBUG" = "no"; then
5096   DEFAULT_wxUSE_DEBUG_FLAG=no
5097   DEFAULT_wxUSE_DEBUG_INFO=no
5098   BUILD=release
5099 fi
5100
5101
5102           enablestring=
5103           defaultval=
5104           if test -z "$defaultval"; then
5105               if test x"$enablestring" = xdisable; then
5106                   defaultval=yes
5107               else
5108                   defaultval=no
5109               fi
5110           fi
5111
5112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5113 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5114           # Check whether --enable-debug_flag was given.
5115 if test "${enable_debug_flag+set}" = set; then
5116   enableval=$enable_debug_flag;
5117                           if test "$enableval" = yes; then
5118                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5119                           else
5120                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5121                           fi
5122                           cache=yes
5123
5124 else
5125
5126                           cache=no
5127                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5128                           if test "x$LINE" != x ; then
5129                             eval "DEFAULT_$LINE"
5130                           fi
5131
5132                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5133
5134 fi
5135
5136
5137           eval "$wx_cv_use_debug_flag"
5138           if test "x$cache" = xyes; then
5139             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5140           fi
5141
5142           if test x"$enablestring" = xdisable; then
5143             if test $wxUSE_DEBUG_FLAG = yes; then
5144               result=no
5145             else
5146               result=yes
5147             fi
5148           else
5149             result=$wxUSE_DEBUG_FLAG
5150           fi
5151
5152           { echo "$as_me:$LINENO: result: $result" >&5
5153 echo "${ECHO_T}$result" >&6; }
5154
5155
5156           enablestring=
5157           defaultval=
5158           if test -z "$defaultval"; then
5159               if test x"$enablestring" = xdisable; then
5160                   defaultval=yes
5161               else
5162                   defaultval=no
5163               fi
5164           fi
5165
5166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5167 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5168           # Check whether --enable-debug_info was given.
5169 if test "${enable_debug_info+set}" = set; then
5170   enableval=$enable_debug_info;
5171                           if test "$enableval" = yes; then
5172                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5173                           else
5174                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5175                           fi
5176                           cache=yes
5177
5178 else
5179
5180                           cache=no
5181                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5182                           if test "x$LINE" != x ; then
5183                             eval "DEFAULT_$LINE"
5184                           fi
5185
5186                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5187
5188 fi
5189
5190
5191           eval "$wx_cv_use_debug_info"
5192           if test "x$cache" = xyes; then
5193             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5194           fi
5195
5196           if test x"$enablestring" = xdisable; then
5197             if test $wxUSE_DEBUG_INFO = yes; then
5198               result=no
5199             else
5200               result=yes
5201             fi
5202           else
5203             result=$wxUSE_DEBUG_INFO
5204           fi
5205
5206           { echo "$as_me:$LINENO: result: $result" >&5
5207 echo "${ECHO_T}$result" >&6; }
5208
5209
5210           enablestring=
5211           defaultval=
5212           if test -z "$defaultval"; then
5213               if test x"$enablestring" = xdisable; then
5214                   defaultval=yes
5215               else
5216                   defaultval=no
5217               fi
5218           fi
5219
5220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5221 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5222           # Check whether --enable-debug_gdb was given.
5223 if test "${enable_debug_gdb+set}" = set; then
5224   enableval=$enable_debug_gdb;
5225                           if test "$enableval" = yes; then
5226                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5227                           else
5228                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5229                           fi
5230                           cache=yes
5231
5232 else
5233
5234                           cache=no
5235                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5236                           if test "x$LINE" != x ; then
5237                             eval "DEFAULT_$LINE"
5238                           fi
5239
5240                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5241
5242 fi
5243
5244
5245           eval "$wx_cv_use_debug_gdb"
5246           if test "x$cache" = xyes; then
5247             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5248           fi
5249
5250           if test x"$enablestring" = xdisable; then
5251             if test $wxUSE_DEBUG_GDB = yes; then
5252               result=no
5253             else
5254               result=yes
5255             fi
5256           else
5257             result=$wxUSE_DEBUG_GDB
5258           fi
5259
5260           { echo "$as_me:$LINENO: result: $result" >&5
5261 echo "${ECHO_T}$result" >&6; }
5262
5263
5264           enablestring=
5265           defaultval=
5266           if test -z "$defaultval"; then
5267               if test x"$enablestring" = xdisable; then
5268                   defaultval=yes
5269               else
5270                   defaultval=no
5271               fi
5272           fi
5273
5274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5275 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5276           # Check whether --enable-debug_cntxt was given.
5277 if test "${enable_debug_cntxt+set}" = set; then
5278   enableval=$enable_debug_cntxt;
5279                           if test "$enableval" = yes; then
5280                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5281                           else
5282                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5283                           fi
5284                           cache=yes
5285
5286 else
5287
5288                           cache=no
5289                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5290                           if test "x$LINE" != x ; then
5291                             eval "DEFAULT_$LINE"
5292                           fi
5293
5294                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5295
5296 fi
5297
5298
5299           eval "$wx_cv_use_debug_cntxt"
5300           if test "x$cache" = xyes; then
5301             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5302           fi
5303
5304           if test x"$enablestring" = xdisable; then
5305             if test $wxUSE_DEBUG_CONTEXT = yes; then
5306               result=no
5307             else
5308               result=yes
5309             fi
5310           else
5311             result=$wxUSE_DEBUG_CONTEXT
5312           fi
5313
5314           { echo "$as_me:$LINENO: result: $result" >&5
5315 echo "${ECHO_T}$result" >&6; }
5316
5317
5318           enablestring=
5319           defaultval=
5320           if test -z "$defaultval"; then
5321               if test x"$enablestring" = xdisable; then
5322                   defaultval=yes
5323               else
5324                   defaultval=no
5325               fi
5326           fi
5327
5328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5329 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5330           # Check whether --enable-mem_tracing was given.
5331 if test "${enable_mem_tracing+set}" = set; then
5332   enableval=$enable_mem_tracing;
5333                           if test "$enableval" = yes; then
5334                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5335                           else
5336                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5337                           fi
5338                           cache=yes
5339
5340 else
5341
5342                           cache=no
5343                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5344                           if test "x$LINE" != x ; then
5345                             eval "DEFAULT_$LINE"
5346                           fi
5347
5348                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5349
5350 fi
5351
5352
5353           eval "$wx_cv_use_mem_tracing"
5354           if test "x$cache" = xyes; then
5355             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5356           fi
5357
5358           if test x"$enablestring" = xdisable; then
5359             if test $wxUSE_MEM_TRACING = yes; then
5360               result=no
5361             else
5362               result=yes
5363             fi
5364           else
5365             result=$wxUSE_MEM_TRACING
5366           fi
5367
5368           { echo "$as_me:$LINENO: result: $result" >&5
5369 echo "${ECHO_T}$result" >&6; }
5370
5371
5372           enablestring=
5373           defaultval=
5374           if test -z "$defaultval"; then
5375               if test x"$enablestring" = xdisable; then
5376                   defaultval=yes
5377               else
5378                   defaultval=no
5379               fi
5380           fi
5381
5382           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5383 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5384           # Check whether --enable-profile was given.
5385 if test "${enable_profile+set}" = set; then
5386   enableval=$enable_profile;
5387                           if test "$enableval" = yes; then
5388                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5389                           else
5390                             wx_cv_use_profile='wxUSE_PROFILE=no'
5391                           fi
5392                           cache=yes
5393
5394 else
5395
5396                           cache=no
5397                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5398                           if test "x$LINE" != x ; then
5399                             eval "DEFAULT_$LINE"
5400                           fi
5401
5402                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5403
5404 fi
5405
5406
5407           eval "$wx_cv_use_profile"
5408           if test "x$cache" = xyes; then
5409             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5410           fi
5411
5412           if test x"$enablestring" = xdisable; then
5413             if test $wxUSE_PROFILE = yes; then
5414               result=no
5415             else
5416               result=yes
5417             fi
5418           else
5419             result=$wxUSE_PROFILE
5420           fi
5421
5422           { echo "$as_me:$LINENO: result: $result" >&5
5423 echo "${ECHO_T}$result" >&6; }
5424
5425
5426           enablestring=
5427           defaultval=
5428           if test -z "$defaultval"; then
5429               if test x"$enablestring" = xdisable; then
5430                   defaultval=yes
5431               else
5432                   defaultval=no
5433               fi
5434           fi
5435
5436           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5437 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5438           # Check whether --enable-no_rtti was given.
5439 if test "${enable_no_rtti+set}" = set; then
5440   enableval=$enable_no_rtti;
5441                           if test "$enableval" = yes; then
5442                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5443                           else
5444                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5445                           fi
5446                           cache=yes
5447
5448 else
5449
5450                           cache=no
5451                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5452                           if test "x$LINE" != x ; then
5453                             eval "DEFAULT_$LINE"
5454                           fi
5455
5456                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5457
5458 fi
5459
5460
5461           eval "$wx_cv_use_no_rtti"
5462           if test "x$cache" = xyes; then
5463             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5464           fi
5465
5466           if test x"$enablestring" = xdisable; then
5467             if test $wxUSE_NO_RTTI = yes; then
5468               result=no
5469             else
5470               result=yes
5471             fi
5472           else
5473             result=$wxUSE_NO_RTTI
5474           fi
5475
5476           { echo "$as_me:$LINENO: result: $result" >&5
5477 echo "${ECHO_T}$result" >&6; }
5478
5479
5480           enablestring=
5481           defaultval=
5482           if test -z "$defaultval"; then
5483               if test x"$enablestring" = xdisable; then
5484                   defaultval=yes
5485               else
5486                   defaultval=no
5487               fi
5488           fi
5489
5490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5491 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5492           # Check whether --enable-no_exceptions was given.
5493 if test "${enable_no_exceptions+set}" = set; then
5494   enableval=$enable_no_exceptions;
5495                           if test "$enableval" = yes; then
5496                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5497                           else
5498                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5499                           fi
5500                           cache=yes
5501
5502 else
5503
5504                           cache=no
5505                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5506                           if test "x$LINE" != x ; then
5507                             eval "DEFAULT_$LINE"
5508                           fi
5509
5510                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5511
5512 fi
5513
5514
5515           eval "$wx_cv_use_no_exceptions"
5516           if test "x$cache" = xyes; then
5517             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5518           fi
5519
5520           if test x"$enablestring" = xdisable; then
5521             if test $wxUSE_NO_EXCEPTIONS = yes; then
5522               result=no
5523             else
5524               result=yes
5525             fi
5526           else
5527             result=$wxUSE_NO_EXCEPTIONS
5528           fi
5529
5530           { echo "$as_me:$LINENO: result: $result" >&5
5531 echo "${ECHO_T}$result" >&6; }
5532
5533
5534           enablestring=
5535           defaultval=
5536           if test -z "$defaultval"; then
5537               if test x"$enablestring" = xdisable; then
5538                   defaultval=yes
5539               else
5540                   defaultval=no
5541               fi
5542           fi
5543
5544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5545 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5546           # Check whether --enable-permissive was given.
5547 if test "${enable_permissive+set}" = set; then
5548   enableval=$enable_permissive;
5549                           if test "$enableval" = yes; then
5550                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5551                           else
5552                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5553                           fi
5554                           cache=yes
5555
5556 else
5557
5558                           cache=no
5559                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5560                           if test "x$LINE" != x ; then
5561                             eval "DEFAULT_$LINE"
5562                           fi
5563
5564                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5565
5566 fi
5567
5568
5569           eval "$wx_cv_use_permissive"
5570           if test "x$cache" = xyes; then
5571             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5572           fi
5573
5574           if test x"$enablestring" = xdisable; then
5575             if test $wxUSE_PERMISSIVE = yes; then
5576               result=no
5577             else
5578               result=yes
5579             fi
5580           else
5581             result=$wxUSE_PERMISSIVE
5582           fi
5583
5584           { echo "$as_me:$LINENO: result: $result" >&5
5585 echo "${ECHO_T}$result" >&6; }
5586
5587
5588           enablestring=
5589           defaultval=
5590           if test -z "$defaultval"; then
5591               if test x"$enablestring" = xdisable; then
5592                   defaultval=yes
5593               else
5594                   defaultval=no
5595               fi
5596           fi
5597
5598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5599 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5600           # Check whether --enable-no_deps was given.
5601 if test "${enable_no_deps+set}" = set; then
5602   enableval=$enable_no_deps;
5603                           if test "$enableval" = yes; then
5604                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5605                           else
5606                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5607                           fi
5608                           cache=yes
5609
5610 else
5611
5612                           cache=no
5613                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5614                           if test "x$LINE" != x ; then
5615                             eval "DEFAULT_$LINE"
5616                           fi
5617
5618                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5619
5620 fi
5621
5622
5623           eval "$wx_cv_use_no_deps"
5624           if test "x$cache" = xyes; then
5625             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5626           fi
5627
5628           if test x"$enablestring" = xdisable; then
5629             if test $wxUSE_NO_DEPS = yes; then
5630               result=no
5631             else
5632               result=yes
5633             fi
5634           else
5635             result=$wxUSE_NO_DEPS
5636           fi
5637
5638           { echo "$as_me:$LINENO: result: $result" >&5
5639 echo "${ECHO_T}$result" >&6; }
5640
5641
5642           enablestring=disable
5643           defaultval=
5644           if test -z "$defaultval"; then
5645               if test x"$enablestring" = xdisable; then
5646                   defaultval=yes
5647               else
5648                   defaultval=no
5649               fi
5650           fi
5651
5652           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5653 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5654           # Check whether --enable-vararg_macros was given.
5655 if test "${enable_vararg_macros+set}" = set; then
5656   enableval=$enable_vararg_macros;
5657                           if test "$enableval" = yes; then
5658                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5659                           else
5660                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5661                           fi
5662                           cache=yes
5663
5664 else
5665
5666                           cache=no
5667                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5668                           if test "x$LINE" != x ; then
5669                             eval "DEFAULT_$LINE"
5670                           fi
5671
5672                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5673
5674 fi
5675
5676
5677           eval "$wx_cv_use_vararg_macros"
5678           if test "x$cache" = xyes; then
5679             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5680           fi
5681
5682           if test x"$enablestring" = xdisable; then
5683             if test $wxUSE_VARARG_MACROS = yes; then
5684               result=no
5685             else
5686               result=yes
5687             fi
5688           else
5689             result=$wxUSE_VARARG_MACROS
5690           fi
5691
5692           { echo "$as_me:$LINENO: result: $result" >&5
5693 echo "${ECHO_T}$result" >&6; }
5694
5695
5696           enablestring=
5697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5698 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5699           # Check whether --enable-universal_binary was given.
5700 if test "${enable_universal_binary+set}" = set; then
5701   enableval=$enable_universal_binary;
5702                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5703                           cache=yes
5704
5705 else
5706
5707                           cache=no
5708                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5709                           if test "x$LINE" != x ; then
5710                             eval "DEFAULT_$LINE"
5711                           fi
5712
5713                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5714
5715 fi
5716
5717
5718           eval "$wx_cv_use_universal_binary"
5719           if test "x$cache" = xyes; then
5720             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5721           fi
5722
5723           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5724 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5725
5726
5727
5728           enablestring=
5729           defaultval=
5730           if test -z "$defaultval"; then
5731               if test x"$enablestring" = xdisable; then
5732                   defaultval=yes
5733               else
5734                   defaultval=no
5735               fi
5736           fi
5737
5738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5739 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5740           # Check whether --enable-compat26 was given.
5741 if test "${enable_compat26+set}" = set; then
5742   enableval=$enable_compat26;
5743                           if test "$enableval" = yes; then
5744                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5745                           else
5746                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5747                           fi
5748                           cache=yes
5749
5750 else
5751
5752                           cache=no
5753                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5754                           if test "x$LINE" != x ; then
5755                             eval "DEFAULT_$LINE"
5756                           fi
5757
5758                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5759
5760 fi
5761
5762
5763           eval "$wx_cv_use_compat26"
5764           if test "x$cache" = xyes; then
5765             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5766           fi
5767
5768           if test x"$enablestring" = xdisable; then
5769             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5770               result=no
5771             else
5772               result=yes
5773             fi
5774           else
5775             result=$WXWIN_COMPATIBILITY_2_6
5776           fi
5777
5778           { echo "$as_me:$LINENO: result: $result" >&5
5779 echo "${ECHO_T}$result" >&6; }
5780
5781
5782           enablestring=disable
5783           defaultval=
5784           if test -z "$defaultval"; then
5785               if test x"$enablestring" = xdisable; then
5786                   defaultval=yes
5787               else
5788                   defaultval=no
5789               fi
5790           fi
5791
5792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5793 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5794           # Check whether --enable-compat28 was given.
5795 if test "${enable_compat28+set}" = set; then
5796   enableval=$enable_compat28;
5797                           if test "$enableval" = yes; then
5798                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5799                           else
5800                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5801                           fi
5802                           cache=yes
5803
5804 else
5805
5806                           cache=no
5807                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5808                           if test "x$LINE" != x ; then
5809                             eval "DEFAULT_$LINE"
5810                           fi
5811
5812                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5813
5814 fi
5815
5816
5817           eval "$wx_cv_use_compat28"
5818           if test "x$cache" = xyes; then
5819             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5820           fi
5821
5822           if test x"$enablestring" = xdisable; then
5823             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5824               result=no
5825             else
5826               result=yes
5827             fi
5828           else
5829             result=$WXWIN_COMPATIBILITY_2_8
5830           fi
5831
5832           { echo "$as_me:$LINENO: result: $result" >&5
5833 echo "${ECHO_T}$result" >&6; }
5834
5835
5836
5837           enablestring=disable
5838           defaultval=
5839           if test -z "$defaultval"; then
5840               if test x"$enablestring" = xdisable; then
5841                   defaultval=yes
5842               else
5843                   defaultval=no
5844               fi
5845           fi
5846
5847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5848 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5849           # Check whether --enable-rpath was given.
5850 if test "${enable_rpath+set}" = set; then
5851   enableval=$enable_rpath;
5852                           if test "$enableval" = yes; then
5853                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5854                           else
5855                             wx_cv_use_rpath='wxUSE_RPATH=no'
5856                           fi
5857                           cache=yes
5858
5859 else
5860
5861                           cache=no
5862                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5863                           if test "x$LINE" != x ; then
5864                             eval "DEFAULT_$LINE"
5865                           fi
5866
5867                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5868
5869 fi
5870
5871
5872           eval "$wx_cv_use_rpath"
5873           if test "x$cache" = xyes; then
5874             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
5875           fi
5876
5877           if test x"$enablestring" = xdisable; then
5878             if test $wxUSE_RPATH = yes; then
5879               result=no
5880             else
5881               result=yes
5882             fi
5883           else
5884             result=$wxUSE_RPATH
5885           fi
5886
5887           { echo "$as_me:$LINENO: result: $result" >&5
5888 echo "${ECHO_T}$result" >&6; }
5889
5890
5891
5892           enablestring=
5893           defaultval=
5894           if test -z "$defaultval"; then
5895               if test x"$enablestring" = xdisable; then
5896                   defaultval=yes
5897               else
5898                   defaultval=no
5899               fi
5900           fi
5901
5902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5903 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5904           # Check whether --enable-objc_uniquifying was given.
5905 if test "${enable_objc_uniquifying+set}" = set; then
5906   enableval=$enable_objc_uniquifying;
5907                           if test "$enableval" = yes; then
5908                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5909                           else
5910                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5911                           fi
5912                           cache=yes
5913
5914 else
5915
5916                           cache=no
5917                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5918                           if test "x$LINE" != x ; then
5919                             eval "DEFAULT_$LINE"
5920                           fi
5921
5922                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5923
5924 fi
5925
5926
5927           eval "$wx_cv_use_objc_uniquifying"
5928           if test "x$cache" = xyes; then
5929             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
5930           fi
5931
5932           if test x"$enablestring" = xdisable; then
5933             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5934               result=no
5935             else
5936               result=yes
5937             fi
5938           else
5939             result=$wxUSE_OBJC_UNIQUIFYING
5940           fi
5941
5942           { echo "$as_me:$LINENO: result: $result" >&5
5943 echo "${ECHO_T}$result" >&6; }
5944
5945
5946
5947           enablestring=disable
5948           defaultval=
5949           if test -z "$defaultval"; then
5950               if test x"$enablestring" = xdisable; then
5951                   defaultval=yes
5952               else
5953                   defaultval=no
5954               fi
5955           fi
5956
5957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5958 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5959           # Check whether --enable-visibility was given.
5960 if test "${enable_visibility+set}" = set; then
5961   enableval=$enable_visibility;
5962                           if test "$enableval" = yes; then
5963                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5964                           else
5965                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5966                           fi
5967                           cache=yes
5968
5969 else
5970
5971                           cache=no
5972                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
5973                           if test "x$LINE" != x ; then
5974                             eval "DEFAULT_$LINE"
5975                           fi
5976
5977                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5978
5979 fi
5980
5981
5982           eval "$wx_cv_use_visibility"
5983           if test "x$cache" = xyes; then
5984             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
5985           fi
5986
5987           if test x"$enablestring" = xdisable; then
5988             if test $wxUSE_VISIBILITY = yes; then
5989               result=no
5990             else
5991               result=yes
5992             fi
5993           else
5994             result=$wxUSE_VISIBILITY
5995           fi
5996
5997           { echo "$as_me:$LINENO: result: $result" >&5
5998 echo "${ECHO_T}$result" >&6; }
5999
6000
6001
6002
6003           enablestring=
6004           defaultval=$wxUSE_ALL_FEATURES
6005           if test -z "$defaultval"; then
6006               if test x"$enablestring" = xdisable; then
6007                   defaultval=yes
6008               else
6009                   defaultval=no
6010               fi
6011           fi
6012
6013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6014 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6015           # Check whether --enable-intl was given.
6016 if test "${enable_intl+set}" = set; then
6017   enableval=$enable_intl;
6018                           if test "$enableval" = yes; then
6019                             wx_cv_use_intl='wxUSE_INTL=yes'
6020                           else
6021                             wx_cv_use_intl='wxUSE_INTL=no'
6022                           fi
6023                           cache=yes
6024
6025 else
6026
6027                           cache=no
6028                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6029                           if test "x$LINE" != x ; then
6030                             eval "DEFAULT_$LINE"
6031                           fi
6032
6033                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6034
6035 fi
6036
6037
6038           eval "$wx_cv_use_intl"
6039           if test "x$cache" = xyes; then
6040             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
6041           fi
6042
6043           if test x"$enablestring" = xdisable; then
6044             if test $wxUSE_INTL = yes; then
6045               result=no
6046             else
6047               result=yes
6048             fi
6049           else
6050             result=$wxUSE_INTL
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}-config" >&5
6068 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6069           # Check whether --enable-config was given.
6070 if test "${enable_config+set}" = set; then
6071   enableval=$enable_config;
6072                           if test "$enableval" = yes; then
6073                             wx_cv_use_config='wxUSE_CONFIG=yes'
6074                           else
6075                             wx_cv_use_config='wxUSE_CONFIG=no'
6076                           fi
6077                           cache=yes
6078
6079 else
6080
6081                           cache=no
6082                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6083                           if test "x$LINE" != x ; then
6084                             eval "DEFAULT_$LINE"
6085                           fi
6086
6087                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6088
6089 fi
6090
6091
6092           eval "$wx_cv_use_config"
6093           if test "x$cache" = xyes; then
6094             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
6095           fi
6096
6097           if test x"$enablestring" = xdisable; then
6098             if test $wxUSE_CONFIG = yes; then
6099               result=no
6100             else
6101               result=yes
6102             fi
6103           else
6104             result=$wxUSE_CONFIG
6105           fi
6106
6107           { echo "$as_me:$LINENO: result: $result" >&5
6108 echo "${ECHO_T}$result" >&6; }
6109
6110
6111
6112           enablestring=
6113           defaultval=$wxUSE_ALL_FEATURES
6114           if test -z "$defaultval"; then
6115               if test x"$enablestring" = xdisable; then
6116                   defaultval=yes
6117               else
6118                   defaultval=no
6119               fi
6120           fi
6121
6122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6123 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6124           # Check whether --enable-protocols was given.
6125 if test "${enable_protocols+set}" = set; then
6126   enableval=$enable_protocols;
6127                           if test "$enableval" = yes; then
6128                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6129                           else
6130                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6131                           fi
6132                           cache=yes
6133
6134 else
6135
6136                           cache=no
6137                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6138                           if test "x$LINE" != x ; then
6139                             eval "DEFAULT_$LINE"
6140                           fi
6141
6142                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6143
6144 fi
6145
6146
6147           eval "$wx_cv_use_protocols"
6148           if test "x$cache" = xyes; then
6149             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6150           fi
6151
6152           if test x"$enablestring" = xdisable; then
6153             if test $wxUSE_PROTOCOL = yes; then
6154               result=no
6155             else
6156               result=yes
6157             fi
6158           else
6159             result=$wxUSE_PROTOCOL
6160           fi
6161
6162           { echo "$as_me:$LINENO: result: $result" >&5
6163 echo "${ECHO_T}$result" >&6; }
6164
6165
6166           enablestring=
6167           defaultval=$wxUSE_ALL_FEATURES
6168           if test -z "$defaultval"; then
6169               if test x"$enablestring" = xdisable; then
6170                   defaultval=yes
6171               else
6172                   defaultval=no
6173               fi
6174           fi
6175
6176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6177 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6178           # Check whether --enable-ftp was given.
6179 if test "${enable_ftp+set}" = set; then
6180   enableval=$enable_ftp;
6181                           if test "$enableval" = yes; then
6182                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6183                           else
6184                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6185                           fi
6186                           cache=yes
6187
6188 else
6189
6190                           cache=no
6191                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6192                           if test "x$LINE" != x ; then
6193                             eval "DEFAULT_$LINE"
6194                           fi
6195
6196                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6197
6198 fi
6199
6200
6201           eval "$wx_cv_use_ftp"
6202           if test "x$cache" = xyes; then
6203             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6204           fi
6205
6206           if test x"$enablestring" = xdisable; then
6207             if test $wxUSE_PROTOCOL_FTP = yes; then
6208               result=no
6209             else
6210               result=yes
6211             fi
6212           else
6213             result=$wxUSE_PROTOCOL_FTP
6214           fi
6215
6216           { echo "$as_me:$LINENO: result: $result" >&5
6217 echo "${ECHO_T}$result" >&6; }
6218
6219
6220           enablestring=
6221           defaultval=$wxUSE_ALL_FEATURES
6222           if test -z "$defaultval"; then
6223               if test x"$enablestring" = xdisable; then
6224                   defaultval=yes
6225               else
6226                   defaultval=no
6227               fi
6228           fi
6229
6230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6231 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6232           # Check whether --enable-http was given.
6233 if test "${enable_http+set}" = set; then
6234   enableval=$enable_http;
6235                           if test "$enableval" = yes; then
6236                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6237                           else
6238                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6239                           fi
6240                           cache=yes
6241
6242 else
6243
6244                           cache=no
6245                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6246                           if test "x$LINE" != x ; then
6247                             eval "DEFAULT_$LINE"
6248                           fi
6249
6250                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6251
6252 fi
6253
6254
6255           eval "$wx_cv_use_http"
6256           if test "x$cache" = xyes; then
6257             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6258           fi
6259
6260           if test x"$enablestring" = xdisable; then
6261             if test $wxUSE_PROTOCOL_HTTP = yes; then
6262               result=no
6263             else
6264               result=yes
6265             fi
6266           else
6267             result=$wxUSE_PROTOCOL_HTTP
6268           fi
6269
6270           { echo "$as_me:$LINENO: result: $result" >&5
6271 echo "${ECHO_T}$result" >&6; }
6272
6273
6274           enablestring=
6275           defaultval=$wxUSE_ALL_FEATURES
6276           if test -z "$defaultval"; then
6277               if test x"$enablestring" = xdisable; then
6278                   defaultval=yes
6279               else
6280                   defaultval=no
6281               fi
6282           fi
6283
6284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6285 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6286           # Check whether --enable-fileproto was given.
6287 if test "${enable_fileproto+set}" = set; then
6288   enableval=$enable_fileproto;
6289                           if test "$enableval" = yes; then
6290                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6291                           else
6292                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6293                           fi
6294                           cache=yes
6295
6296 else
6297
6298                           cache=no
6299                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6300                           if test "x$LINE" != x ; then
6301                             eval "DEFAULT_$LINE"
6302                           fi
6303
6304                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6305
6306 fi
6307
6308
6309           eval "$wx_cv_use_fileproto"
6310           if test "x$cache" = xyes; then
6311             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6312           fi
6313
6314           if test x"$enablestring" = xdisable; then
6315             if test $wxUSE_PROTOCOL_FILE = yes; then
6316               result=no
6317             else
6318               result=yes
6319             fi
6320           else
6321             result=$wxUSE_PROTOCOL_FILE
6322           fi
6323
6324           { echo "$as_me:$LINENO: result: $result" >&5
6325 echo "${ECHO_T}$result" >&6; }
6326
6327
6328           enablestring=
6329           defaultval=$wxUSE_ALL_FEATURES
6330           if test -z "$defaultval"; then
6331               if test x"$enablestring" = xdisable; then
6332                   defaultval=yes
6333               else
6334                   defaultval=no
6335               fi
6336           fi
6337
6338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6339 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6340           # Check whether --enable-sockets was given.
6341 if test "${enable_sockets+set}" = set; then
6342   enableval=$enable_sockets;
6343                           if test "$enableval" = yes; then
6344                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6345                           else
6346                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6347                           fi
6348                           cache=yes
6349
6350 else
6351
6352                           cache=no
6353                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6354                           if test "x$LINE" != x ; then
6355                             eval "DEFAULT_$LINE"
6356                           fi
6357
6358                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6359
6360 fi
6361
6362
6363           eval "$wx_cv_use_sockets"
6364           if test "x$cache" = xyes; then
6365             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6366           fi
6367
6368           if test x"$enablestring" = xdisable; then
6369             if test $wxUSE_SOCKETS = yes; then
6370               result=no
6371             else
6372               result=yes
6373             fi
6374           else
6375             result=$wxUSE_SOCKETS
6376           fi
6377
6378           { echo "$as_me:$LINENO: result: $result" >&5
6379 echo "${ECHO_T}$result" >&6; }
6380
6381
6382           enablestring=
6383           defaultval=$wxUSE_ALL_FEATURES
6384           if test -z "$defaultval"; then
6385               if test x"$enablestring" = xdisable; then
6386                   defaultval=yes
6387               else
6388                   defaultval=no
6389               fi
6390           fi
6391
6392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6393 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6394           # Check whether --enable-ole was given.
6395 if test "${enable_ole+set}" = set; then
6396   enableval=$enable_ole;
6397                           if test "$enableval" = yes; then
6398                             wx_cv_use_ole='wxUSE_OLE=yes'
6399                           else
6400                             wx_cv_use_ole='wxUSE_OLE=no'
6401                           fi
6402                           cache=yes
6403
6404 else
6405
6406                           cache=no
6407                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6408                           if test "x$LINE" != x ; then
6409                             eval "DEFAULT_$LINE"
6410                           fi
6411
6412                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6413
6414 fi
6415
6416
6417           eval "$wx_cv_use_ole"
6418           if test "x$cache" = xyes; then
6419             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6420           fi
6421
6422           if test x"$enablestring" = xdisable; then
6423             if test $wxUSE_OLE = yes; then
6424               result=no
6425             else
6426               result=yes
6427             fi
6428           else
6429             result=$wxUSE_OLE
6430           fi
6431
6432           { echo "$as_me:$LINENO: result: $result" >&5
6433 echo "${ECHO_T}$result" >&6; }
6434
6435
6436           enablestring=
6437           defaultval=$wxUSE_ALL_FEATURES
6438           if test -z "$defaultval"; then
6439               if test x"$enablestring" = xdisable; then
6440                   defaultval=yes
6441               else
6442                   defaultval=no
6443               fi
6444           fi
6445
6446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6447 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6448           # Check whether --enable-dataobj was given.
6449 if test "${enable_dataobj+set}" = set; then
6450   enableval=$enable_dataobj;
6451                           if test "$enableval" = yes; then
6452                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6453                           else
6454                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6455                           fi
6456                           cache=yes
6457
6458 else
6459
6460                           cache=no
6461                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6462                           if test "x$LINE" != x ; then
6463                             eval "DEFAULT_$LINE"
6464                           fi
6465
6466                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6467
6468 fi
6469
6470
6471           eval "$wx_cv_use_dataobj"
6472           if test "x$cache" = xyes; then
6473             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6474           fi
6475
6476           if test x"$enablestring" = xdisable; then
6477             if test $wxUSE_DATAOBJ = yes; then
6478               result=no
6479             else
6480               result=yes
6481             fi
6482           else
6483             result=$wxUSE_DATAOBJ
6484           fi
6485
6486           { echo "$as_me:$LINENO: result: $result" >&5
6487 echo "${ECHO_T}$result" >&6; }
6488
6489
6490
6491           enablestring=
6492           defaultval=$wxUSE_ALL_FEATURES
6493           if test -z "$defaultval"; then
6494               if test x"$enablestring" = xdisable; then
6495                   defaultval=yes
6496               else
6497                   defaultval=no
6498               fi
6499           fi
6500
6501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6502 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6503           # Check whether --enable-ipc was given.
6504 if test "${enable_ipc+set}" = set; then
6505   enableval=$enable_ipc;
6506                           if test "$enableval" = yes; then
6507                             wx_cv_use_ipc='wxUSE_IPC=yes'
6508                           else
6509                             wx_cv_use_ipc='wxUSE_IPC=no'
6510                           fi
6511                           cache=yes
6512
6513 else
6514
6515                           cache=no
6516                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6517                           if test "x$LINE" != x ; then
6518                             eval "DEFAULT_$LINE"
6519                           fi
6520
6521                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6522
6523 fi
6524
6525
6526           eval "$wx_cv_use_ipc"
6527           if test "x$cache" = xyes; then
6528             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6529           fi
6530
6531           if test x"$enablestring" = xdisable; then
6532             if test $wxUSE_IPC = yes; then
6533               result=no
6534             else
6535               result=yes
6536             fi
6537           else
6538             result=$wxUSE_IPC
6539           fi
6540
6541           { echo "$as_me:$LINENO: result: $result" >&5
6542 echo "${ECHO_T}$result" >&6; }
6543
6544
6545
6546           enablestring=
6547           defaultval=$wxUSE_ALL_FEATURES
6548           if test -z "$defaultval"; then
6549               if test x"$enablestring" = xdisable; then
6550                   defaultval=yes
6551               else
6552                   defaultval=no
6553               fi
6554           fi
6555
6556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6557 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6558           # Check whether --enable-baseevtloop was given.
6559 if test "${enable_baseevtloop+set}" = set; then
6560   enableval=$enable_baseevtloop;
6561                           if test "$enableval" = yes; then
6562                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6563                           else
6564                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6565                           fi
6566                           cache=yes
6567
6568 else
6569
6570                           cache=no
6571                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6572                           if test "x$LINE" != x ; then
6573                             eval "DEFAULT_$LINE"
6574                           fi
6575
6576                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6577
6578 fi
6579
6580
6581           eval "$wx_cv_use_baseevtloop"
6582           if test "x$cache" = xyes; then
6583             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6584           fi
6585
6586           if test x"$enablestring" = xdisable; then
6587             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6588               result=no
6589             else
6590               result=yes
6591             fi
6592           else
6593             result=$wxUSE_CONSOLE_EVENTLOOP
6594           fi
6595
6596           { echo "$as_me:$LINENO: result: $result" >&5
6597 echo "${ECHO_T}$result" >&6; }
6598
6599
6600           enablestring=
6601           defaultval=$wxUSE_ALL_FEATURES
6602           if test -z "$defaultval"; then
6603               if test x"$enablestring" = xdisable; then
6604                   defaultval=yes
6605               else
6606                   defaultval=no
6607               fi
6608           fi
6609
6610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epoolloop" >&5
6611 echo $ECHO_N "checking for --${enablestring:-enable}-epoolloop... $ECHO_C" >&6; }
6612           # Check whether --enable-epoolloop was given.
6613 if test "${enable_epoolloop+set}" = set; then
6614   enableval=$enable_epoolloop;
6615                           if test "$enableval" = yes; then
6616                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=yes'
6617                           else
6618                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=no'
6619                           fi
6620                           cache=yes
6621
6622 else
6623
6624                           cache=no
6625                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6626                           if test "x$LINE" != x ; then
6627                             eval "DEFAULT_$LINE"
6628                           fi
6629
6630                           wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6631
6632 fi
6633
6634
6635           eval "$wx_cv_use_epoolloop"
6636           if test "x$cache" = xyes; then
6637             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6638           fi
6639
6640           if test x"$enablestring" = xdisable; then
6641             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6642               result=no
6643             else
6644               result=yes
6645             fi
6646           else
6647             result=$wxUSE_EPOLL_DISPATCHER
6648           fi
6649
6650           { echo "$as_me:$LINENO: result: $result" >&5
6651 echo "${ECHO_T}$result" >&6; }
6652
6653
6654           enablestring=
6655           defaultval=$wxUSE_ALL_FEATURES
6656           if test -z "$defaultval"; then
6657               if test x"$enablestring" = xdisable; then
6658                   defaultval=yes
6659               else
6660                   defaultval=no
6661               fi
6662           fi
6663
6664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6665 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6666           # Check whether --enable-selectloop was given.
6667 if test "${enable_selectloop+set}" = set; then
6668   enableval=$enable_selectloop;
6669                           if test "$enableval" = yes; then
6670                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6671                           else
6672                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6673                           fi
6674                           cache=yes
6675
6676 else
6677
6678                           cache=no
6679                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6680                           if test "x$LINE" != x ; then
6681                             eval "DEFAULT_$LINE"
6682                           fi
6683
6684                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6685
6686 fi
6687
6688
6689           eval "$wx_cv_use_selectloop"
6690           if test "x$cache" = xyes; then
6691             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6692           fi
6693
6694           if test x"$enablestring" = xdisable; then
6695             if test $wxUSE_SELECT_DISPATCHER = yes; then
6696               result=no
6697             else
6698               result=yes
6699             fi
6700           else
6701             result=$wxUSE_SELECT_DISPATCHER
6702           fi
6703
6704           { echo "$as_me:$LINENO: result: $result" >&5
6705 echo "${ECHO_T}$result" >&6; }
6706
6707
6708
6709           enablestring=
6710           defaultval=$wxUSE_ALL_FEATURES
6711           if test -z "$defaultval"; then
6712               if test x"$enablestring" = xdisable; then
6713                   defaultval=yes
6714               else
6715                   defaultval=no
6716               fi
6717           fi
6718
6719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6720 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6721           # Check whether --enable-apple_ieee was given.
6722 if test "${enable_apple_ieee+set}" = set; then
6723   enableval=$enable_apple_ieee;
6724                           if test "$enableval" = yes; then
6725                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6726                           else
6727                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6728                           fi
6729                           cache=yes
6730
6731 else
6732
6733                           cache=no
6734                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6735                           if test "x$LINE" != x ; then
6736                             eval "DEFAULT_$LINE"
6737                           fi
6738
6739                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6740
6741 fi
6742
6743
6744           eval "$wx_cv_use_apple_ieee"
6745           if test "x$cache" = xyes; then
6746             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6747           fi
6748
6749           if test x"$enablestring" = xdisable; then
6750             if test $wxUSE_APPLE_IEEE = yes; then
6751               result=no
6752             else
6753               result=yes
6754             fi
6755           else
6756             result=$wxUSE_APPLE_IEEE
6757           fi
6758
6759           { echo "$as_me:$LINENO: result: $result" >&5
6760 echo "${ECHO_T}$result" >&6; }
6761
6762
6763           enablestring=
6764           defaultval=$wxUSE_ALL_FEATURES
6765           if test -z "$defaultval"; then
6766               if test x"$enablestring" = xdisable; then
6767                   defaultval=yes
6768               else
6769                   defaultval=no
6770               fi
6771           fi
6772
6773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6774 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6775           # Check whether --enable-arcstream was given.
6776 if test "${enable_arcstream+set}" = set; then
6777   enableval=$enable_arcstream;
6778                           if test "$enableval" = yes; then
6779                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6780                           else
6781                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6782                           fi
6783                           cache=yes
6784
6785 else
6786
6787                           cache=no
6788                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6789                           if test "x$LINE" != x ; then
6790                             eval "DEFAULT_$LINE"
6791                           fi
6792
6793                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6794
6795 fi
6796
6797
6798           eval "$wx_cv_use_arcstream"
6799           if test "x$cache" = xyes; then
6800             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
6801           fi
6802
6803           if test x"$enablestring" = xdisable; then
6804             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6805               result=no
6806             else
6807               result=yes
6808             fi
6809           else
6810             result=$wxUSE_ARCHIVE_STREAMS
6811           fi
6812
6813           { echo "$as_me:$LINENO: result: $result" >&5
6814 echo "${ECHO_T}$result" >&6; }
6815
6816
6817           enablestring=
6818           defaultval=$wxUSE_ALL_FEATURES
6819           if test -z "$defaultval"; then
6820               if test x"$enablestring" = xdisable; then
6821                   defaultval=yes
6822               else
6823                   defaultval=no
6824               fi
6825           fi
6826
6827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6828 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6829           # Check whether --enable-base64 was given.
6830 if test "${enable_base64+set}" = set; then
6831   enableval=$enable_base64;
6832                           if test "$enableval" = yes; then
6833                             wx_cv_use_base64='wxUSE_BASE64=yes'
6834                           else
6835                             wx_cv_use_base64='wxUSE_BASE64=no'
6836                           fi
6837                           cache=yes
6838
6839 else
6840
6841                           cache=no
6842                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6843                           if test "x$LINE" != x ; then
6844                             eval "DEFAULT_$LINE"
6845                           fi
6846
6847                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6848
6849 fi
6850
6851
6852           eval "$wx_cv_use_base64"
6853           if test "x$cache" = xyes; then
6854             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
6855           fi
6856
6857           if test x"$enablestring" = xdisable; then
6858             if test $wxUSE_BASE64 = yes; then
6859               result=no
6860             else
6861               result=yes
6862             fi
6863           else
6864             result=$wxUSE_BASE64
6865           fi
6866
6867           { echo "$as_me:$LINENO: result: $result" >&5
6868 echo "${ECHO_T}$result" >&6; }
6869
6870
6871           enablestring=
6872           defaultval=$wxUSE_ALL_FEATURES
6873           if test -z "$defaultval"; then
6874               if test x"$enablestring" = xdisable; then
6875                   defaultval=yes
6876               else
6877                   defaultval=no
6878               fi
6879           fi
6880
6881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6882 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6883           # Check whether --enable-backtrace was given.
6884 if test "${enable_backtrace+set}" = set; then
6885   enableval=$enable_backtrace;
6886                           if test "$enableval" = yes; then
6887                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6888                           else
6889                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6890                           fi
6891                           cache=yes
6892
6893 else
6894
6895                           cache=no
6896                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
6897                           if test "x$LINE" != x ; then
6898                             eval "DEFAULT_$LINE"
6899                           fi
6900
6901                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6902
6903 fi
6904
6905
6906           eval "$wx_cv_use_backtrace"
6907           if test "x$cache" = xyes; then
6908             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
6909           fi
6910
6911           if test x"$enablestring" = xdisable; then
6912             if test $wxUSE_STACKWALKER = yes; then
6913               result=no
6914             else
6915               result=yes
6916             fi
6917           else
6918             result=$wxUSE_STACKWALKER
6919           fi
6920
6921           { echo "$as_me:$LINENO: result: $result" >&5
6922 echo "${ECHO_T}$result" >&6; }
6923
6924
6925           enablestring=
6926           defaultval=$wxUSE_ALL_FEATURES
6927           if test -z "$defaultval"; then
6928               if test x"$enablestring" = xdisable; then
6929                   defaultval=yes
6930               else
6931                   defaultval=no
6932               fi
6933           fi
6934
6935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6936 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6937           # Check whether --enable-catch_segvs was given.
6938 if test "${enable_catch_segvs+set}" = set; then
6939   enableval=$enable_catch_segvs;
6940                           if test "$enableval" = yes; then
6941                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6942                           else
6943                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6944                           fi
6945                           cache=yes
6946
6947 else
6948
6949                           cache=no
6950                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
6951                           if test "x$LINE" != x ; then
6952                             eval "DEFAULT_$LINE"
6953                           fi
6954
6955                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6956
6957 fi
6958
6959
6960           eval "$wx_cv_use_catch_segvs"
6961           if test "x$cache" = xyes; then
6962             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
6963           fi
6964
6965           if test x"$enablestring" = xdisable; then
6966             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6967               result=no
6968             else
6969               result=yes
6970             fi
6971           else
6972             result=$wxUSE_ON_FATAL_EXCEPTION
6973           fi
6974
6975           { echo "$as_me:$LINENO: result: $result" >&5
6976 echo "${ECHO_T}$result" >&6; }
6977
6978
6979           enablestring=
6980           defaultval=$wxUSE_ALL_FEATURES
6981           if test -z "$defaultval"; then
6982               if test x"$enablestring" = xdisable; then
6983                   defaultval=yes
6984               else
6985                   defaultval=no
6986               fi
6987           fi
6988
6989           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6990 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6991           # Check whether --enable-cmdline was given.
6992 if test "${enable_cmdline+set}" = set; then
6993   enableval=$enable_cmdline;
6994                           if test "$enableval" = yes; then
6995                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6996                           else
6997                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6998                           fi
6999                           cache=yes
7000
7001 else
7002
7003                           cache=no
7004                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7005                           if test "x$LINE" != x ; then
7006                             eval "DEFAULT_$LINE"
7007                           fi
7008
7009                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7010
7011 fi
7012
7013
7014           eval "$wx_cv_use_cmdline"
7015           if test "x$cache" = xyes; then
7016             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
7017           fi
7018
7019           if test x"$enablestring" = xdisable; then
7020             if test $wxUSE_CMDLINE_PARSER = yes; then
7021               result=no
7022             else
7023               result=yes
7024             fi
7025           else
7026             result=$wxUSE_CMDLINE_PARSER
7027           fi
7028
7029           { echo "$as_me:$LINENO: result: $result" >&5
7030 echo "${ECHO_T}$result" >&6; }
7031
7032
7033           enablestring=
7034           defaultval=$wxUSE_ALL_FEATURES
7035           if test -z "$defaultval"; then
7036               if test x"$enablestring" = xdisable; then
7037                   defaultval=yes
7038               else
7039                   defaultval=no
7040               fi
7041           fi
7042
7043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7044 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7045           # Check whether --enable-datetime was given.
7046 if test "${enable_datetime+set}" = set; then
7047   enableval=$enable_datetime;
7048                           if test "$enableval" = yes; then
7049                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7050                           else
7051                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7052                           fi
7053                           cache=yes
7054
7055 else
7056
7057                           cache=no
7058                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7059                           if test "x$LINE" != x ; then
7060                             eval "DEFAULT_$LINE"
7061                           fi
7062
7063                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7064
7065 fi
7066
7067
7068           eval "$wx_cv_use_datetime"
7069           if test "x$cache" = xyes; then
7070             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
7071           fi
7072
7073           if test x"$enablestring" = xdisable; then
7074             if test $wxUSE_DATETIME = yes; then
7075               result=no
7076             else
7077               result=yes
7078             fi
7079           else
7080             result=$wxUSE_DATETIME
7081           fi
7082
7083           { echo "$as_me:$LINENO: result: $result" >&5
7084 echo "${ECHO_T}$result" >&6; }
7085
7086
7087           enablestring=
7088           defaultval=$wxUSE_ALL_FEATURES
7089           if test -z "$defaultval"; then
7090               if test x"$enablestring" = xdisable; then
7091                   defaultval=yes
7092               else
7093                   defaultval=no
7094               fi
7095           fi
7096
7097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7098 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7099           # Check whether --enable-debugreport was given.
7100 if test "${enable_debugreport+set}" = set; then
7101   enableval=$enable_debugreport;
7102                           if test "$enableval" = yes; then
7103                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7104                           else
7105                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7106                           fi
7107                           cache=yes
7108
7109 else
7110
7111                           cache=no
7112                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7113                           if test "x$LINE" != x ; then
7114                             eval "DEFAULT_$LINE"
7115                           fi
7116
7117                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7118
7119 fi
7120
7121
7122           eval "$wx_cv_use_debugreport"
7123           if test "x$cache" = xyes; then
7124             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
7125           fi
7126
7127           if test x"$enablestring" = xdisable; then
7128             if test $wxUSE_DEBUGREPORT = yes; then
7129               result=no
7130             else
7131               result=yes
7132             fi
7133           else
7134             result=$wxUSE_DEBUGREPORT
7135           fi
7136
7137           { echo "$as_me:$LINENO: result: $result" >&5
7138 echo "${ECHO_T}$result" >&6; }
7139
7140
7141           enablestring=
7142           defaultval=$wxUSE_ALL_FEATURES
7143           if test -z "$defaultval"; then
7144               if test x"$enablestring" = xdisable; then
7145                   defaultval=yes
7146               else
7147                   defaultval=no
7148               fi
7149           fi
7150
7151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7152 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7153           # Check whether --enable-dialupman was given.
7154 if test "${enable_dialupman+set}" = set; then
7155   enableval=$enable_dialupman;
7156                           if test "$enableval" = yes; then
7157                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7158                           else
7159                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7160                           fi
7161                           cache=yes
7162
7163 else
7164
7165                           cache=no
7166                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7167                           if test "x$LINE" != x ; then
7168                             eval "DEFAULT_$LINE"
7169                           fi
7170
7171                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7172
7173 fi
7174
7175
7176           eval "$wx_cv_use_dialupman"
7177           if test "x$cache" = xyes; then
7178             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7179           fi
7180
7181           if test x"$enablestring" = xdisable; then
7182             if test $wxUSE_DIALUP_MANAGER = yes; then
7183               result=no
7184             else
7185               result=yes
7186             fi
7187           else
7188             result=$wxUSE_DIALUP_MANAGER
7189           fi
7190
7191           { echo "$as_me:$LINENO: result: $result" >&5
7192 echo "${ECHO_T}$result" >&6; }
7193
7194
7195           enablestring=
7196           defaultval=$wxUSE_ALL_FEATURES
7197           if test -z "$defaultval"; then
7198               if test x"$enablestring" = xdisable; then
7199                   defaultval=yes
7200               else
7201                   defaultval=no
7202               fi
7203           fi
7204
7205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7206 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7207           # Check whether --enable-dynlib was given.
7208 if test "${enable_dynlib+set}" = set; then
7209   enableval=$enable_dynlib;
7210                           if test "$enableval" = yes; then
7211                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7212                           else
7213                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7214                           fi
7215                           cache=yes
7216
7217 else
7218
7219                           cache=no
7220                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7221                           if test "x$LINE" != x ; then
7222                             eval "DEFAULT_$LINE"
7223                           fi
7224
7225                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7226
7227 fi
7228
7229
7230           eval "$wx_cv_use_dynlib"
7231           if test "x$cache" = xyes; then
7232             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7233           fi
7234
7235           if test x"$enablestring" = xdisable; then
7236             if test $wxUSE_DYNLIB_CLASS = yes; then
7237               result=no
7238             else
7239               result=yes
7240             fi
7241           else
7242             result=$wxUSE_DYNLIB_CLASS
7243           fi
7244
7245           { echo "$as_me:$LINENO: result: $result" >&5
7246 echo "${ECHO_T}$result" >&6; }
7247
7248
7249           enablestring=
7250           defaultval=$wxUSE_ALL_FEATURES
7251           if test -z "$defaultval"; then
7252               if test x"$enablestring" = xdisable; then
7253                   defaultval=yes
7254               else
7255                   defaultval=no
7256               fi
7257           fi
7258
7259           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7260 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7261           # Check whether --enable-dynamicloader was given.
7262 if test "${enable_dynamicloader+set}" = set; then
7263   enableval=$enable_dynamicloader;
7264                           if test "$enableval" = yes; then
7265                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7266                           else
7267                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7268                           fi
7269                           cache=yes
7270
7271 else
7272
7273                           cache=no
7274                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7275                           if test "x$LINE" != x ; then
7276                             eval "DEFAULT_$LINE"
7277                           fi
7278
7279                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7280
7281 fi
7282
7283
7284           eval "$wx_cv_use_dynamicloader"
7285           if test "x$cache" = xyes; then
7286             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7287           fi
7288
7289           if test x"$enablestring" = xdisable; then
7290             if test $wxUSE_DYNAMIC_LOADER = yes; then
7291               result=no
7292             else
7293               result=yes
7294             fi
7295           else
7296             result=$wxUSE_DYNAMIC_LOADER
7297           fi
7298
7299           { echo "$as_me:$LINENO: result: $result" >&5
7300 echo "${ECHO_T}$result" >&6; }
7301
7302
7303           enablestring=
7304           defaultval=$wxUSE_ALL_FEATURES
7305           if test -z "$defaultval"; then
7306               if test x"$enablestring" = xdisable; then
7307                   defaultval=yes
7308               else
7309                   defaultval=no
7310               fi
7311           fi
7312
7313           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7314 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7315           # Check whether --enable-exceptions was given.
7316 if test "${enable_exceptions+set}" = set; then
7317   enableval=$enable_exceptions;
7318                           if test "$enableval" = yes; then
7319                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7320                           else
7321                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7322                           fi
7323                           cache=yes
7324
7325 else
7326
7327                           cache=no
7328                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7329                           if test "x$LINE" != x ; then
7330                             eval "DEFAULT_$LINE"
7331                           fi
7332
7333                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7334
7335 fi
7336
7337
7338           eval "$wx_cv_use_exceptions"
7339           if test "x$cache" = xyes; then
7340             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7341           fi
7342
7343           if test x"$enablestring" = xdisable; then
7344             if test $wxUSE_EXCEPTIONS = yes; then
7345               result=no
7346             else
7347               result=yes
7348             fi
7349           else
7350             result=$wxUSE_EXCEPTIONS
7351           fi
7352
7353           { echo "$as_me:$LINENO: result: $result" >&5
7354 echo "${ECHO_T}$result" >&6; }
7355
7356
7357           enablestring=
7358           defaultval=$wxUSE_ALL_FEATURES
7359           if test -z "$defaultval"; then
7360               if test x"$enablestring" = xdisable; then
7361                   defaultval=yes
7362               else
7363                   defaultval=no
7364               fi
7365           fi
7366
7367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7368 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7369           # Check whether --enable-ffile was given.
7370 if test "${enable_ffile+set}" = set; then
7371   enableval=$enable_ffile;
7372                           if test "$enableval" = yes; then
7373                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7374                           else
7375                             wx_cv_use_ffile='wxUSE_FFILE=no'
7376                           fi
7377                           cache=yes
7378
7379 else
7380
7381                           cache=no
7382                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7383                           if test "x$LINE" != x ; then
7384                             eval "DEFAULT_$LINE"
7385                           fi
7386
7387                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7388
7389 fi
7390
7391
7392           eval "$wx_cv_use_ffile"
7393           if test "x$cache" = xyes; then
7394             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7395           fi
7396
7397           if test x"$enablestring" = xdisable; then
7398             if test $wxUSE_FFILE = yes; then
7399               result=no
7400             else
7401               result=yes
7402             fi
7403           else
7404             result=$wxUSE_FFILE
7405           fi
7406
7407           { echo "$as_me:$LINENO: result: $result" >&5
7408 echo "${ECHO_T}$result" >&6; }
7409
7410
7411           enablestring=
7412           defaultval=$wxUSE_ALL_FEATURES
7413           if test -z "$defaultval"; then
7414               if test x"$enablestring" = xdisable; then
7415                   defaultval=yes
7416               else
7417                   defaultval=no
7418               fi
7419           fi
7420
7421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7422 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7423           # Check whether --enable-file was given.
7424 if test "${enable_file+set}" = set; then
7425   enableval=$enable_file;
7426                           if test "$enableval" = yes; then
7427                             wx_cv_use_file='wxUSE_FILE=yes'
7428                           else
7429                             wx_cv_use_file='wxUSE_FILE=no'
7430                           fi
7431                           cache=yes
7432
7433 else
7434
7435                           cache=no
7436                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7437                           if test "x$LINE" != x ; then
7438                             eval "DEFAULT_$LINE"
7439                           fi
7440
7441                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7442
7443 fi
7444
7445
7446           eval "$wx_cv_use_file"
7447           if test "x$cache" = xyes; then
7448             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7449           fi
7450
7451           if test x"$enablestring" = xdisable; then
7452             if test $wxUSE_FILE = yes; then
7453               result=no
7454             else
7455               result=yes
7456             fi
7457           else
7458             result=$wxUSE_FILE
7459           fi
7460
7461           { echo "$as_me:$LINENO: result: $result" >&5
7462 echo "${ECHO_T}$result" >&6; }
7463
7464
7465           enablestring=
7466           defaultval=$wxUSE_ALL_FEATURES
7467           if test -z "$defaultval"; then
7468               if test x"$enablestring" = xdisable; then
7469                   defaultval=yes
7470               else
7471                   defaultval=no
7472               fi
7473           fi
7474
7475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7476 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7477           # Check whether --enable-filesystem was given.
7478 if test "${enable_filesystem+set}" = set; then
7479   enableval=$enable_filesystem;
7480                           if test "$enableval" = yes; then
7481                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7482                           else
7483                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7484                           fi
7485                           cache=yes
7486
7487 else
7488
7489                           cache=no
7490                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7491                           if test "x$LINE" != x ; then
7492                             eval "DEFAULT_$LINE"
7493                           fi
7494
7495                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7496
7497 fi
7498
7499
7500           eval "$wx_cv_use_filesystem"
7501           if test "x$cache" = xyes; then
7502             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7503           fi
7504
7505           if test x"$enablestring" = xdisable; then
7506             if test $wxUSE_FILESYSTEM = yes; then
7507               result=no
7508             else
7509               result=yes
7510             fi
7511           else
7512             result=$wxUSE_FILESYSTEM
7513           fi
7514
7515           { echo "$as_me:$LINENO: result: $result" >&5
7516 echo "${ECHO_T}$result" >&6; }
7517
7518
7519           enablestring=
7520           defaultval=$wxUSE_ALL_FEATURES
7521           if test -z "$defaultval"; then
7522               if test x"$enablestring" = xdisable; then
7523                   defaultval=yes
7524               else
7525                   defaultval=no
7526               fi
7527           fi
7528
7529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7530 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7531           # Check whether --enable-fontenum was given.
7532 if test "${enable_fontenum+set}" = set; then
7533   enableval=$enable_fontenum;
7534                           if test "$enableval" = yes; then
7535                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7536                           else
7537                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7538                           fi
7539                           cache=yes
7540
7541 else
7542
7543                           cache=no
7544                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7545                           if test "x$LINE" != x ; then
7546                             eval "DEFAULT_$LINE"
7547                           fi
7548
7549                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7550
7551 fi
7552
7553
7554           eval "$wx_cv_use_fontenum"
7555           if test "x$cache" = xyes; then
7556             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7557           fi
7558
7559           if test x"$enablestring" = xdisable; then
7560             if test $wxUSE_FONTENUM = yes; then
7561               result=no
7562             else
7563               result=yes
7564             fi
7565           else
7566             result=$wxUSE_FONTENUM
7567           fi
7568
7569           { echo "$as_me:$LINENO: result: $result" >&5
7570 echo "${ECHO_T}$result" >&6; }
7571
7572
7573           enablestring=
7574           defaultval=$wxUSE_ALL_FEATURES
7575           if test -z "$defaultval"; then
7576               if test x"$enablestring" = xdisable; then
7577                   defaultval=yes
7578               else
7579                   defaultval=no
7580               fi
7581           fi
7582
7583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7584 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7585           # Check whether --enable-fontmap was given.
7586 if test "${enable_fontmap+set}" = set; then
7587   enableval=$enable_fontmap;
7588                           if test "$enableval" = yes; then
7589                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7590                           else
7591                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7592                           fi
7593                           cache=yes
7594
7595 else
7596
7597                           cache=no
7598                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7599                           if test "x$LINE" != x ; then
7600                             eval "DEFAULT_$LINE"
7601                           fi
7602
7603                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7604
7605 fi
7606
7607
7608           eval "$wx_cv_use_fontmap"
7609           if test "x$cache" = xyes; then
7610             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7611           fi
7612
7613           if test x"$enablestring" = xdisable; then
7614             if test $wxUSE_FONTMAP = yes; then
7615               result=no
7616             else
7617               result=yes
7618             fi
7619           else
7620             result=$wxUSE_FONTMAP
7621           fi
7622
7623           { echo "$as_me:$LINENO: result: $result" >&5
7624 echo "${ECHO_T}$result" >&6; }
7625
7626
7627           enablestring=
7628           defaultval=$wxUSE_ALL_FEATURES
7629           if test -z "$defaultval"; then
7630               if test x"$enablestring" = xdisable; then
7631                   defaultval=yes
7632               else
7633                   defaultval=no
7634               fi
7635           fi
7636
7637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7638 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7639           # Check whether --enable-fs_archive was given.
7640 if test "${enable_fs_archive+set}" = set; then
7641   enableval=$enable_fs_archive;
7642                           if test "$enableval" = yes; then
7643                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7644                           else
7645                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7646                           fi
7647                           cache=yes
7648
7649 else
7650
7651                           cache=no
7652                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7653                           if test "x$LINE" != x ; then
7654                             eval "DEFAULT_$LINE"
7655                           fi
7656
7657                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7658
7659 fi
7660
7661
7662           eval "$wx_cv_use_fs_archive"
7663           if test "x$cache" = xyes; then
7664             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7665           fi
7666
7667           if test x"$enablestring" = xdisable; then
7668             if test $wxUSE_FS_ARCHIVE = yes; then
7669               result=no
7670             else
7671               result=yes
7672             fi
7673           else
7674             result=$wxUSE_FS_ARCHIVE
7675           fi
7676
7677           { echo "$as_me:$LINENO: result: $result" >&5
7678 echo "${ECHO_T}$result" >&6; }
7679
7680
7681           enablestring=
7682           defaultval=$wxUSE_ALL_FEATURES
7683           if test -z "$defaultval"; then
7684               if test x"$enablestring" = xdisable; then
7685                   defaultval=yes
7686               else
7687                   defaultval=no
7688               fi
7689           fi
7690
7691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7692 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7693           # Check whether --enable-fs_inet was given.
7694 if test "${enable_fs_inet+set}" = set; then
7695   enableval=$enable_fs_inet;
7696                           if test "$enableval" = yes; then
7697                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7698                           else
7699                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7700                           fi
7701                           cache=yes
7702
7703 else
7704
7705                           cache=no
7706                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7707                           if test "x$LINE" != x ; then
7708                             eval "DEFAULT_$LINE"
7709                           fi
7710
7711                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7712
7713 fi
7714
7715
7716           eval "$wx_cv_use_fs_inet"
7717           if test "x$cache" = xyes; then
7718             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7719           fi
7720
7721           if test x"$enablestring" = xdisable; then
7722             if test $wxUSE_FS_INET = yes; then
7723               result=no
7724             else
7725               result=yes
7726             fi
7727           else
7728             result=$wxUSE_FS_INET
7729           fi
7730
7731           { echo "$as_me:$LINENO: result: $result" >&5
7732 echo "${ECHO_T}$result" >&6; }
7733
7734
7735           enablestring=
7736           defaultval=$wxUSE_ALL_FEATURES
7737           if test -z "$defaultval"; then
7738               if test x"$enablestring" = xdisable; then
7739                   defaultval=yes
7740               else
7741                   defaultval=no
7742               fi
7743           fi
7744
7745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7746 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7747           # Check whether --enable-fs_zip was given.
7748 if test "${enable_fs_zip+set}" = set; then
7749   enableval=$enable_fs_zip;
7750                           if test "$enableval" = yes; then
7751                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7752                           else
7753                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7754                           fi
7755                           cache=yes
7756
7757 else
7758
7759                           cache=no
7760                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7761                           if test "x$LINE" != x ; then
7762                             eval "DEFAULT_$LINE"
7763                           fi
7764
7765                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7766
7767 fi
7768
7769
7770           eval "$wx_cv_use_fs_zip"
7771           if test "x$cache" = xyes; then
7772             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
7773           fi
7774
7775           if test x"$enablestring" = xdisable; then
7776             if test $wxUSE_FS_ZIP = yes; then
7777               result=no
7778             else
7779               result=yes
7780             fi
7781           else
7782             result=$wxUSE_FS_ZIP
7783           fi
7784
7785           { echo "$as_me:$LINENO: result: $result" >&5
7786 echo "${ECHO_T}$result" >&6; }
7787
7788
7789           enablestring=
7790           defaultval=$wxUSE_ALL_FEATURES
7791           if test -z "$defaultval"; then
7792               if test x"$enablestring" = xdisable; then
7793                   defaultval=yes
7794               else
7795                   defaultval=no
7796               fi
7797           fi
7798
7799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7800 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7801           # Check whether --enable-geometry was given.
7802 if test "${enable_geometry+set}" = set; then
7803   enableval=$enable_geometry;
7804                           if test "$enableval" = yes; then
7805                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7806                           else
7807                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7808                           fi
7809                           cache=yes
7810
7811 else
7812
7813                           cache=no
7814                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7815                           if test "x$LINE" != x ; then
7816                             eval "DEFAULT_$LINE"
7817                           fi
7818
7819                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7820
7821 fi
7822
7823
7824           eval "$wx_cv_use_geometry"
7825           if test "x$cache" = xyes; then
7826             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
7827           fi
7828
7829           if test x"$enablestring" = xdisable; then
7830             if test $wxUSE_GEOMETRY = yes; then
7831               result=no
7832             else
7833               result=yes
7834             fi
7835           else
7836             result=$wxUSE_GEOMETRY
7837           fi
7838
7839           { echo "$as_me:$LINENO: result: $result" >&5
7840 echo "${ECHO_T}$result" >&6; }
7841
7842
7843           enablestring=
7844           defaultval=$wxUSE_ALL_FEATURES
7845           if test -z "$defaultval"; then
7846               if test x"$enablestring" = xdisable; then
7847                   defaultval=yes
7848               else
7849                   defaultval=no
7850               fi
7851           fi
7852
7853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7854 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7855           # Check whether --enable-log was given.
7856 if test "${enable_log+set}" = set; then
7857   enableval=$enable_log;
7858                           if test "$enableval" = yes; then
7859                             wx_cv_use_log='wxUSE_LOG=yes'
7860                           else
7861                             wx_cv_use_log='wxUSE_LOG=no'
7862                           fi
7863                           cache=yes
7864
7865 else
7866
7867                           cache=no
7868                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
7869                           if test "x$LINE" != x ; then
7870                             eval "DEFAULT_$LINE"
7871                           fi
7872
7873                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7874
7875 fi
7876
7877
7878           eval "$wx_cv_use_log"
7879           if test "x$cache" = xyes; then
7880             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
7881           fi
7882
7883           if test x"$enablestring" = xdisable; then
7884             if test $wxUSE_LOG = yes; then
7885               result=no
7886             else
7887               result=yes
7888             fi
7889           else
7890             result=$wxUSE_LOG
7891           fi
7892
7893           { echo "$as_me:$LINENO: result: $result" >&5
7894 echo "${ECHO_T}$result" >&6; }
7895
7896
7897           enablestring=
7898           defaultval=$wxUSE_ALL_FEATURES
7899           if test -z "$defaultval"; then
7900               if test x"$enablestring" = xdisable; then
7901                   defaultval=yes
7902               else
7903                   defaultval=no
7904               fi
7905           fi
7906
7907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7908 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7909           # Check whether --enable-longlong was given.
7910 if test "${enable_longlong+set}" = set; then
7911   enableval=$enable_longlong;
7912                           if test "$enableval" = yes; then
7913                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7914                           else
7915                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7916                           fi
7917                           cache=yes
7918
7919 else
7920
7921                           cache=no
7922                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
7923                           if test "x$LINE" != x ; then
7924                             eval "DEFAULT_$LINE"
7925                           fi
7926
7927                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7928
7929 fi
7930
7931
7932           eval "$wx_cv_use_longlong"
7933           if test "x$cache" = xyes; then
7934             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
7935           fi
7936
7937           if test x"$enablestring" = xdisable; then
7938             if test $wxUSE_LONGLONG = yes; then
7939               result=no
7940             else
7941               result=yes
7942             fi
7943           else
7944             result=$wxUSE_LONGLONG
7945           fi
7946
7947           { echo "$as_me:$LINENO: result: $result" >&5
7948 echo "${ECHO_T}$result" >&6; }
7949
7950
7951           enablestring=
7952           defaultval=$wxUSE_ALL_FEATURES
7953           if test -z "$defaultval"; then
7954               if test x"$enablestring" = xdisable; then
7955                   defaultval=yes
7956               else
7957                   defaultval=no
7958               fi
7959           fi
7960
7961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7962 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7963           # Check whether --enable-mimetype was given.
7964 if test "${enable_mimetype+set}" = set; then
7965   enableval=$enable_mimetype;
7966                           if test "$enableval" = yes; then
7967                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7968                           else
7969                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7970                           fi
7971                           cache=yes
7972
7973 else
7974
7975                           cache=no
7976                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
7977                           if test "x$LINE" != x ; then
7978                             eval "DEFAULT_$LINE"
7979                           fi
7980
7981                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7982
7983 fi
7984
7985
7986           eval "$wx_cv_use_mimetype"
7987           if test "x$cache" = xyes; then
7988             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
7989           fi
7990
7991           if test x"$enablestring" = xdisable; then
7992             if test $wxUSE_MIMETYPE = yes; then
7993               result=no
7994             else
7995               result=yes
7996             fi
7997           else
7998             result=$wxUSE_MIMETYPE
7999           fi
8000
8001           { echo "$as_me:$LINENO: result: $result" >&5
8002 echo "${ECHO_T}$result" >&6; }
8003
8004
8005           enablestring=
8006           defaultval=$wxUSE_ALL_FEATURES
8007           if test -z "$defaultval"; then
8008               if test x"$enablestring" = xdisable; then
8009                   defaultval=yes
8010               else
8011                   defaultval=no
8012               fi
8013           fi
8014
8015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8016 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8017           # Check whether --enable-snglinst was given.
8018 if test "${enable_snglinst+set}" = set; then
8019   enableval=$enable_snglinst;
8020                           if test "$enableval" = yes; then
8021                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
8022                           else
8023                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
8024                           fi
8025                           cache=yes
8026
8027 else
8028
8029                           cache=no
8030                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8031                           if test "x$LINE" != x ; then
8032                             eval "DEFAULT_$LINE"
8033                           fi
8034
8035                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8036
8037 fi
8038
8039
8040           eval "$wx_cv_use_snglinst"
8041           if test "x$cache" = xyes; then
8042             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
8043           fi
8044
8045           if test x"$enablestring" = xdisable; then
8046             if test $wxUSE_SNGLINST_CHECKER = yes; then
8047               result=no
8048             else
8049               result=yes
8050             fi
8051           else
8052             result=$wxUSE_SNGLINST_CHECKER
8053           fi
8054
8055           { echo "$as_me:$LINENO: result: $result" >&5
8056 echo "${ECHO_T}$result" >&6; }
8057
8058
8059           enablestring=
8060           defaultval=$wxUSE_ALL_FEATURES
8061           if test -z "$defaultval"; then
8062               if test x"$enablestring" = xdisable; then
8063                   defaultval=yes
8064               else
8065                   defaultval=no
8066               fi
8067           fi
8068
8069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8070 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8071           # Check whether --enable-stdpaths was given.
8072 if test "${enable_stdpaths+set}" = set; then
8073   enableval=$enable_stdpaths;
8074                           if test "$enableval" = yes; then
8075                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8076                           else
8077                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8078                           fi
8079                           cache=yes
8080
8081 else
8082
8083                           cache=no
8084                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8085                           if test "x$LINE" != x ; then
8086                             eval "DEFAULT_$LINE"
8087                           fi
8088
8089                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8090
8091 fi
8092
8093
8094           eval "$wx_cv_use_stdpaths"
8095           if test "x$cache" = xyes; then
8096             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
8097           fi
8098
8099           if test x"$enablestring" = xdisable; then
8100             if test $wxUSE_STDPATHS = yes; then
8101               result=no
8102             else
8103               result=yes
8104             fi
8105           else
8106             result=$wxUSE_STDPATHS
8107           fi
8108
8109           { echo "$as_me:$LINENO: result: $result" >&5
8110 echo "${ECHO_T}$result" >&6; }
8111
8112
8113           enablestring=
8114           defaultval=$wxUSE_ALL_FEATURES
8115           if test -z "$defaultval"; then
8116               if test x"$enablestring" = xdisable; then
8117                   defaultval=yes
8118               else
8119                   defaultval=no
8120               fi
8121           fi
8122
8123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8124 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8125           # Check whether --enable-stopwatch was given.
8126 if test "${enable_stopwatch+set}" = set; then
8127   enableval=$enable_stopwatch;
8128                           if test "$enableval" = yes; then
8129                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8130                           else
8131                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8132                           fi
8133                           cache=yes
8134
8135 else
8136
8137                           cache=no
8138                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8139                           if test "x$LINE" != x ; then
8140                             eval "DEFAULT_$LINE"
8141                           fi
8142
8143                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8144
8145 fi
8146
8147
8148           eval "$wx_cv_use_stopwatch"
8149           if test "x$cache" = xyes; then
8150             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
8151           fi
8152
8153           if test x"$enablestring" = xdisable; then
8154             if test $wxUSE_STOPWATCH = yes; then
8155               result=no
8156             else
8157               result=yes
8158             fi
8159           else
8160             result=$wxUSE_STOPWATCH
8161           fi
8162
8163           { echo "$as_me:$LINENO: result: $result" >&5
8164 echo "${ECHO_T}$result" >&6; }
8165
8166
8167           enablestring=
8168           defaultval=$wxUSE_ALL_FEATURES
8169           if test -z "$defaultval"; then
8170               if test x"$enablestring" = xdisable; then
8171                   defaultval=yes
8172               else
8173                   defaultval=no
8174               fi
8175           fi
8176
8177           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8178 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8179           # Check whether --enable-streams was given.
8180 if test "${enable_streams+set}" = set; then
8181   enableval=$enable_streams;
8182                           if test "$enableval" = yes; then
8183                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8184                           else
8185                             wx_cv_use_streams='wxUSE_STREAMS=no'
8186                           fi
8187                           cache=yes
8188
8189 else
8190
8191                           cache=no
8192                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8193                           if test "x$LINE" != x ; then
8194                             eval "DEFAULT_$LINE"
8195                           fi
8196
8197                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8198
8199 fi
8200
8201
8202           eval "$wx_cv_use_streams"
8203           if test "x$cache" = xyes; then
8204             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8205           fi
8206
8207           if test x"$enablestring" = xdisable; then
8208             if test $wxUSE_STREAMS = yes; then
8209               result=no
8210             else
8211               result=yes
8212             fi
8213           else
8214             result=$wxUSE_STREAMS
8215           fi
8216
8217           { echo "$as_me:$LINENO: result: $result" >&5
8218 echo "${ECHO_T}$result" >&6; }
8219
8220
8221           enablestring=
8222           defaultval=$wxUSE_ALL_FEATURES
8223           if test -z "$defaultval"; then
8224               if test x"$enablestring" = xdisable; then
8225                   defaultval=yes
8226               else
8227                   defaultval=no
8228               fi
8229           fi
8230
8231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8232 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8233           # Check whether --enable-system_options was given.
8234 if test "${enable_system_options+set}" = set; then
8235   enableval=$enable_system_options;
8236                           if test "$enableval" = yes; then
8237                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8238                           else
8239                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8240                           fi
8241                           cache=yes
8242
8243 else
8244
8245                           cache=no
8246                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8247                           if test "x$LINE" != x ; then
8248                             eval "DEFAULT_$LINE"
8249                           fi
8250
8251                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8252
8253 fi
8254
8255
8256           eval "$wx_cv_use_system_options"
8257           if test "x$cache" = xyes; then
8258             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8259           fi
8260
8261           if test x"$enablestring" = xdisable; then
8262             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8263               result=no
8264             else
8265               result=yes
8266             fi
8267           else
8268             result=$wxUSE_SYSTEM_OPTIONS
8269           fi
8270
8271           { echo "$as_me:$LINENO: result: $result" >&5
8272 echo "${ECHO_T}$result" >&6; }
8273
8274
8275           enablestring=
8276           defaultval=$wxUSE_ALL_FEATURES
8277           if test -z "$defaultval"; then
8278               if test x"$enablestring" = xdisable; then
8279                   defaultval=yes
8280               else
8281                   defaultval=no
8282               fi
8283           fi
8284
8285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8286 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8287           # Check whether --enable-tarstream was given.
8288 if test "${enable_tarstream+set}" = set; then
8289   enableval=$enable_tarstream;
8290                           if test "$enableval" = yes; then
8291                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8292                           else
8293                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8294                           fi
8295                           cache=yes
8296
8297 else
8298
8299                           cache=no
8300                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8301                           if test "x$LINE" != x ; then
8302                             eval "DEFAULT_$LINE"
8303                           fi
8304
8305                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8306
8307 fi
8308
8309
8310           eval "$wx_cv_use_tarstream"
8311           if test "x$cache" = xyes; then
8312             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8313           fi
8314
8315           if test x"$enablestring" = xdisable; then
8316             if test $wxUSE_TARSTREAM = yes; then
8317               result=no
8318             else
8319               result=yes
8320             fi
8321           else
8322             result=$wxUSE_TARSTREAM
8323           fi
8324
8325           { echo "$as_me:$LINENO: result: $result" >&5
8326 echo "${ECHO_T}$result" >&6; }
8327
8328
8329           enablestring=
8330           defaultval=$wxUSE_ALL_FEATURES
8331           if test -z "$defaultval"; then
8332               if test x"$enablestring" = xdisable; then
8333                   defaultval=yes
8334               else
8335                   defaultval=no
8336               fi
8337           fi
8338
8339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8340 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8341           # Check whether --enable-textbuf was given.
8342 if test "${enable_textbuf+set}" = set; then
8343   enableval=$enable_textbuf;
8344                           if test "$enableval" = yes; then
8345                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8346                           else
8347                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8348                           fi
8349                           cache=yes
8350
8351 else
8352
8353                           cache=no
8354                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8355                           if test "x$LINE" != x ; then
8356                             eval "DEFAULT_$LINE"
8357                           fi
8358
8359                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8360
8361 fi
8362
8363
8364           eval "$wx_cv_use_textbuf"
8365           if test "x$cache" = xyes; then
8366             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8367           fi
8368
8369           if test x"$enablestring" = xdisable; then
8370             if test $wxUSE_TEXTBUFFER = yes; then
8371               result=no
8372             else
8373               result=yes
8374             fi
8375           else
8376             result=$wxUSE_TEXTBUFFER
8377           fi
8378
8379           { echo "$as_me:$LINENO: result: $result" >&5
8380 echo "${ECHO_T}$result" >&6; }
8381
8382
8383           enablestring=
8384           defaultval=$wxUSE_ALL_FEATURES
8385           if test -z "$defaultval"; then
8386               if test x"$enablestring" = xdisable; then
8387                   defaultval=yes
8388               else
8389                   defaultval=no
8390               fi
8391           fi
8392
8393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8394 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8395           # Check whether --enable-textfile was given.
8396 if test "${enable_textfile+set}" = set; then
8397   enableval=$enable_textfile;
8398                           if test "$enableval" = yes; then
8399                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8400                           else
8401                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8402                           fi
8403                           cache=yes
8404
8405 else
8406
8407                           cache=no
8408                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8409                           if test "x$LINE" != x ; then
8410                             eval "DEFAULT_$LINE"
8411                           fi
8412
8413                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8414
8415 fi
8416
8417
8418           eval "$wx_cv_use_textfile"
8419           if test "x$cache" = xyes; then
8420             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8421           fi
8422
8423           if test x"$enablestring" = xdisable; then
8424             if test $wxUSE_TEXTFILE = yes; then
8425               result=no
8426             else
8427               result=yes
8428             fi
8429           else
8430             result=$wxUSE_TEXTFILE
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}-timer" >&5
8448 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8449           # Check whether --enable-timer was given.
8450 if test "${enable_timer+set}" = set; then
8451   enableval=$enable_timer;
8452                           if test "$enableval" = yes; then
8453                             wx_cv_use_timer='wxUSE_TIMER=yes'
8454                           else
8455                             wx_cv_use_timer='wxUSE_TIMER=no'
8456                           fi
8457                           cache=yes
8458
8459 else
8460
8461                           cache=no
8462                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8463                           if test "x$LINE" != x ; then
8464                             eval "DEFAULT_$LINE"
8465                           fi
8466
8467                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8468
8469 fi
8470
8471
8472           eval "$wx_cv_use_timer"
8473           if test "x$cache" = xyes; then
8474             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8475           fi
8476
8477           if test x"$enablestring" = xdisable; then
8478             if test $wxUSE_TIMER = yes; then
8479               result=no
8480             else
8481               result=yes
8482             fi
8483           else
8484             result=$wxUSE_TIMER
8485           fi
8486
8487           { echo "$as_me:$LINENO: result: $result" >&5
8488 echo "${ECHO_T}$result" >&6; }
8489
8490
8491           enablestring=
8492           defaultval=$wxUSE_ALL_FEATURES
8493           if test -z "$defaultval"; then
8494               if test x"$enablestring" = xdisable; then
8495                   defaultval=yes
8496               else
8497                   defaultval=no
8498               fi
8499           fi
8500
8501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8502 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8503           # Check whether --enable-sound was given.
8504 if test "${enable_sound+set}" = set; then
8505   enableval=$enable_sound;
8506                           if test "$enableval" = yes; then
8507                             wx_cv_use_sound='wxUSE_SOUND=yes'
8508                           else
8509                             wx_cv_use_sound='wxUSE_SOUND=no'
8510                           fi
8511                           cache=yes
8512
8513 else
8514
8515                           cache=no
8516                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8517                           if test "x$LINE" != x ; then
8518                             eval "DEFAULT_$LINE"
8519                           fi
8520
8521                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8522
8523 fi
8524
8525
8526           eval "$wx_cv_use_sound"
8527           if test "x$cache" = xyes; then
8528             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8529           fi
8530
8531           if test x"$enablestring" = xdisable; then
8532             if test $wxUSE_SOUND = yes; then
8533               result=no
8534             else
8535               result=yes
8536             fi
8537           else
8538             result=$wxUSE_SOUND
8539           fi
8540
8541           { echo "$as_me:$LINENO: result: $result" >&5
8542 echo "${ECHO_T}$result" >&6; }
8543
8544
8545           enablestring=
8546           defaultval=$wxUSE_ALL_FEATURES
8547           if test -z "$defaultval"; then
8548               if test x"$enablestring" = xdisable; then
8549                   defaultval=yes
8550               else
8551                   defaultval=no
8552               fi
8553           fi
8554
8555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8556 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8557           # Check whether --enable-mediactrl was given.
8558 if test "${enable_mediactrl+set}" = set; then
8559   enableval=$enable_mediactrl;
8560                           if test "$enableval" = yes; then
8561                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8562                           else
8563                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8564                           fi
8565                           cache=yes
8566
8567 else
8568
8569                           cache=no
8570                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8571                           if test "x$LINE" != x ; then
8572                             eval "DEFAULT_$LINE"
8573                           fi
8574
8575                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8576
8577 fi
8578
8579
8580           eval "$wx_cv_use_mediactrl"
8581           if test "x$cache" = xyes; then
8582             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8583           fi
8584
8585           if test x"$enablestring" = xdisable; then
8586             if test $wxUSE_MEDIACTRL = yes; then
8587               result=no
8588             else
8589               result=yes
8590             fi
8591           else
8592             result=$wxUSE_MEDIACTRL
8593           fi
8594
8595           { echo "$as_me:$LINENO: result: $result" >&5
8596 echo "${ECHO_T}$result" >&6; }
8597
8598
8599           enablestring=
8600           defaultval=$wxUSE_ALL_FEATURES
8601           if test -z "$defaultval"; then
8602               if test x"$enablestring" = xdisable; then
8603                   defaultval=yes
8604               else
8605                   defaultval=no
8606               fi
8607           fi
8608
8609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8610 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8611           # Check whether --enable-gstreamer8 was given.
8612 if test "${enable_gstreamer8+set}" = set; then
8613   enableval=$enable_gstreamer8;
8614                           if test "$enableval" = yes; then
8615                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8616                           else
8617                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8618                           fi
8619                           cache=yes
8620
8621 else
8622
8623                           cache=no
8624                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8625                           if test "x$LINE" != x ; then
8626                             eval "DEFAULT_$LINE"
8627                           fi
8628
8629                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8630
8631 fi
8632
8633
8634           eval "$wx_cv_use_gstreamer8"
8635           if test "x$cache" = xyes; then
8636             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8637           fi
8638
8639           if test x"$enablestring" = xdisable; then
8640             if test $wxUSE_GSTREAMER8 = yes; then
8641               result=no
8642             else
8643               result=yes
8644             fi
8645           else
8646             result=$wxUSE_GSTREAMER8
8647           fi
8648
8649           { echo "$as_me:$LINENO: result: $result" >&5
8650 echo "${ECHO_T}$result" >&6; }
8651
8652
8653           enablestring=
8654           defaultval=$wxUSE_ALL_FEATURES
8655           if test -z "$defaultval"; then
8656               if test x"$enablestring" = xdisable; then
8657                   defaultval=yes
8658               else
8659                   defaultval=no
8660               fi
8661           fi
8662
8663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8664 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8665           # Check whether --enable-printfposparam was given.
8666 if test "${enable_printfposparam+set}" = set; then
8667   enableval=$enable_printfposparam;
8668                           if test "$enableval" = yes; then
8669                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8670                           else
8671                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8672                           fi
8673                           cache=yes
8674
8675 else
8676
8677                           cache=no
8678                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8679                           if test "x$LINE" != x ; then
8680                             eval "DEFAULT_$LINE"
8681                           fi
8682
8683                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8684
8685 fi
8686
8687
8688           eval "$wx_cv_use_printfposparam"
8689           if test "x$cache" = xyes; then
8690             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8691           fi
8692
8693           if test x"$enablestring" = xdisable; then
8694             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8695               result=no
8696             else
8697               result=yes
8698             fi
8699           else
8700             result=$wxUSE_PRINTF_POS_PARAMS
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}-zipstream" >&5
8718 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8719           # Check whether --enable-zipstream was given.
8720 if test "${enable_zipstream+set}" = set; then
8721   enableval=$enable_zipstream;
8722                           if test "$enableval" = yes; then
8723                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8724                           else
8725                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8726                           fi
8727                           cache=yes
8728
8729 else
8730
8731                           cache=no
8732                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8733                           if test "x$LINE" != x ; then
8734                             eval "DEFAULT_$LINE"
8735                           fi
8736
8737                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8738
8739 fi
8740
8741
8742           eval "$wx_cv_use_zipstream"
8743           if test "x$cache" = xyes; then
8744             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
8745           fi
8746
8747           if test x"$enablestring" = xdisable; then
8748             if test $wxUSE_ZIPSTREAM = yes; then
8749               result=no
8750             else
8751               result=yes
8752             fi
8753           else
8754             result=$wxUSE_ZIPSTREAM
8755           fi
8756
8757           { echo "$as_me:$LINENO: result: $result" >&5
8758 echo "${ECHO_T}$result" >&6; }
8759
8760
8761
8762           enablestring=
8763           defaultval=$wxUSE_ALL_FEATURES
8764           if test -z "$defaultval"; then
8765               if test x"$enablestring" = xdisable; then
8766                   defaultval=yes
8767               else
8768                   defaultval=no
8769               fi
8770           fi
8771
8772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8773 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8774           # Check whether --enable-url was given.
8775 if test "${enable_url+set}" = set; then
8776   enableval=$enable_url;
8777                           if test "$enableval" = yes; then
8778                             wx_cv_use_url='wxUSE_URL=yes'
8779                           else
8780                             wx_cv_use_url='wxUSE_URL=no'
8781                           fi
8782                           cache=yes
8783
8784 else
8785
8786                           cache=no
8787                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8788                           if test "x$LINE" != x ; then
8789                             eval "DEFAULT_$LINE"
8790                           fi
8791
8792                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8793
8794 fi
8795
8796
8797           eval "$wx_cv_use_url"
8798           if test "x$cache" = xyes; then
8799             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
8800           fi
8801
8802           if test x"$enablestring" = xdisable; then
8803             if test $wxUSE_URL = yes; then
8804               result=no
8805             else
8806               result=yes
8807             fi
8808           else
8809             result=$wxUSE_URL
8810           fi
8811
8812           { echo "$as_me:$LINENO: result: $result" >&5
8813 echo "${ECHO_T}$result" >&6; }
8814
8815
8816           enablestring=
8817           defaultval=$wxUSE_ALL_FEATURES
8818           if test -z "$defaultval"; then
8819               if test x"$enablestring" = xdisable; then
8820                   defaultval=yes
8821               else
8822                   defaultval=no
8823               fi
8824           fi
8825
8826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8827 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8828           # Check whether --enable-variant was given.
8829 if test "${enable_variant+set}" = set; then
8830   enableval=$enable_variant;
8831                           if test "$enableval" = yes; then
8832                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8833                           else
8834                             wx_cv_use_variant='wxUSE_VARIANT=no'
8835                           fi
8836                           cache=yes
8837
8838 else
8839
8840                           cache=no
8841                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
8842                           if test "x$LINE" != x ; then
8843                             eval "DEFAULT_$LINE"
8844                           fi
8845
8846                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8847
8848 fi
8849
8850
8851           eval "$wx_cv_use_variant"
8852           if test "x$cache" = xyes; then
8853             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
8854           fi
8855
8856           if test x"$enablestring" = xdisable; then
8857             if test $wxUSE_VARIANT = yes; then
8858               result=no
8859             else
8860               result=yes
8861             fi
8862           else
8863             result=$wxUSE_VARIANT
8864           fi
8865
8866           { echo "$as_me:$LINENO: result: $result" >&5
8867 echo "${ECHO_T}$result" >&6; }
8868
8869
8870           enablestring=
8871           defaultval=$wxUSE_ALL_FEATURES
8872           if test -z "$defaultval"; then
8873               if test x"$enablestring" = xdisable; then
8874                   defaultval=yes
8875               else
8876                   defaultval=no
8877               fi
8878           fi
8879
8880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8881 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8882           # Check whether --enable-protocol was given.
8883 if test "${enable_protocol+set}" = set; then
8884   enableval=$enable_protocol;
8885                           if test "$enableval" = yes; then
8886                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8887                           else
8888                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8889                           fi
8890                           cache=yes
8891
8892 else
8893
8894                           cache=no
8895                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
8896                           if test "x$LINE" != x ; then
8897                             eval "DEFAULT_$LINE"
8898                           fi
8899
8900                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8901
8902 fi
8903
8904
8905           eval "$wx_cv_use_protocol"
8906           if test "x$cache" = xyes; then
8907             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
8908           fi
8909
8910           if test x"$enablestring" = xdisable; then
8911             if test $wxUSE_PROTOCOL = yes; then
8912               result=no
8913             else
8914               result=yes
8915             fi
8916           else
8917             result=$wxUSE_PROTOCOL
8918           fi
8919
8920           { echo "$as_me:$LINENO: result: $result" >&5
8921 echo "${ECHO_T}$result" >&6; }
8922
8923
8924           enablestring=
8925           defaultval=$wxUSE_ALL_FEATURES
8926           if test -z "$defaultval"; then
8927               if test x"$enablestring" = xdisable; then
8928                   defaultval=yes
8929               else
8930                   defaultval=no
8931               fi
8932           fi
8933
8934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8935 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8936           # Check whether --enable-protocol_http was given.
8937 if test "${enable_protocol_http+set}" = set; then
8938   enableval=$enable_protocol_http;
8939                           if test "$enableval" = yes; then
8940                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8941                           else
8942                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8943                           fi
8944                           cache=yes
8945
8946 else
8947
8948                           cache=no
8949                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
8950                           if test "x$LINE" != x ; then
8951                             eval "DEFAULT_$LINE"
8952                           fi
8953
8954                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8955
8956 fi
8957
8958
8959           eval "$wx_cv_use_protocol_http"
8960           if test "x$cache" = xyes; then
8961             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
8962           fi
8963
8964           if test x"$enablestring" = xdisable; then
8965             if test $wxUSE_PROTOCOL_HTTP = yes; then
8966               result=no
8967             else
8968               result=yes
8969             fi
8970           else
8971             result=$wxUSE_PROTOCOL_HTTP
8972           fi
8973
8974           { echo "$as_me:$LINENO: result: $result" >&5
8975 echo "${ECHO_T}$result" >&6; }
8976
8977
8978           enablestring=
8979           defaultval=$wxUSE_ALL_FEATURES
8980           if test -z "$defaultval"; then
8981               if test x"$enablestring" = xdisable; then
8982                   defaultval=yes
8983               else
8984                   defaultval=no
8985               fi
8986           fi
8987
8988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8989 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8990           # Check whether --enable-protocol_ftp was given.
8991 if test "${enable_protocol_ftp+set}" = set; then
8992   enableval=$enable_protocol_ftp;
8993                           if test "$enableval" = yes; then
8994                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8995                           else
8996                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8997                           fi
8998                           cache=yes
8999
9000 else
9001
9002                           cache=no
9003                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
9004                           if test "x$LINE" != x ; then
9005                             eval "DEFAULT_$LINE"
9006                           fi
9007
9008                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
9009
9010 fi
9011
9012
9013           eval "$wx_cv_use_protocol_ftp"
9014           if test "x$cache" = xyes; then
9015             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
9016           fi
9017
9018           if test x"$enablestring" = xdisable; then
9019             if test $wxUSE_PROTOCOL_FTP = yes; then
9020               result=no
9021             else
9022               result=yes
9023             fi
9024           else
9025             result=$wxUSE_PROTOCOL_FTP
9026           fi
9027
9028           { echo "$as_me:$LINENO: result: $result" >&5
9029 echo "${ECHO_T}$result" >&6; }
9030
9031
9032           enablestring=
9033           defaultval=$wxUSE_ALL_FEATURES
9034           if test -z "$defaultval"; then
9035               if test x"$enablestring" = xdisable; then
9036                   defaultval=yes
9037               else
9038                   defaultval=no
9039               fi
9040           fi
9041
9042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9043 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9044           # Check whether --enable-protocol_file was given.
9045 if test "${enable_protocol_file+set}" = set; then
9046   enableval=$enable_protocol_file;
9047                           if test "$enableval" = yes; then
9048                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9049                           else
9050                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9051                           fi
9052                           cache=yes
9053
9054 else
9055
9056                           cache=no
9057                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9058                           if test "x$LINE" != x ; then
9059                             eval "DEFAULT_$LINE"
9060                           fi
9061
9062                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9063
9064 fi
9065
9066
9067           eval "$wx_cv_use_protocol_file"
9068           if test "x$cache" = xyes; then
9069             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
9070           fi
9071
9072           if test x"$enablestring" = xdisable; then
9073             if test $wxUSE_PROTOCOL_FILE = yes; then
9074               result=no
9075             else
9076               result=yes
9077             fi
9078           else
9079             result=$wxUSE_PROTOCOL_FILE
9080           fi
9081
9082           { echo "$as_me:$LINENO: result: $result" >&5
9083 echo "${ECHO_T}$result" >&6; }
9084
9085
9086
9087           enablestring=
9088           defaultval=$wxUSE_ALL_FEATURES
9089           if test -z "$defaultval"; then
9090               if test x"$enablestring" = xdisable; then
9091                   defaultval=yes
9092               else
9093                   defaultval=no
9094               fi
9095           fi
9096
9097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9098 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9099           # Check whether --enable-threads was given.
9100 if test "${enable_threads+set}" = set; then
9101   enableval=$enable_threads;
9102                           if test "$enableval" = yes; then
9103                             wx_cv_use_threads='wxUSE_THREADS=yes'
9104                           else
9105                             wx_cv_use_threads='wxUSE_THREADS=no'
9106                           fi
9107                           cache=yes
9108
9109 else
9110
9111                           cache=no
9112                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9113                           if test "x$LINE" != x ; then
9114                             eval "DEFAULT_$LINE"
9115                           fi
9116
9117                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9118
9119 fi
9120
9121
9122           eval "$wx_cv_use_threads"
9123           if test "x$cache" = xyes; then
9124             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
9125           fi
9126
9127           if test x"$enablestring" = xdisable; then
9128             if test $wxUSE_THREADS = yes; then
9129               result=no
9130             else
9131               result=yes
9132             fi
9133           else
9134             result=$wxUSE_THREADS
9135           fi
9136
9137           { echo "$as_me:$LINENO: result: $result" >&5
9138 echo "${ECHO_T}$result" >&6; }
9139
9140
9141 if test "$wxUSE_GUI" = "yes"; then
9142
9143
9144
9145           enablestring=
9146           defaultval=$wxUSE_ALL_FEATURES
9147           if test -z "$defaultval"; then
9148               if test x"$enablestring" = xdisable; then
9149                   defaultval=yes
9150               else
9151                   defaultval=no
9152               fi
9153           fi
9154
9155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9156 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9157           # Check whether --enable-docview was given.
9158 if test "${enable_docview+set}" = set; then
9159   enableval=$enable_docview;
9160                           if test "$enableval" = yes; then
9161                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9162                           else
9163                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9164                           fi
9165                           cache=yes
9166
9167 else
9168
9169                           cache=no
9170                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9171                           if test "x$LINE" != x ; then
9172                             eval "DEFAULT_$LINE"
9173                           fi
9174
9175                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9176
9177 fi
9178
9179
9180           eval "$wx_cv_use_docview"
9181           if test "x$cache" = xyes; then
9182             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9183           fi
9184
9185           if test x"$enablestring" = xdisable; then
9186             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9187               result=no
9188             else
9189               result=yes
9190             fi
9191           else
9192             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9193           fi
9194
9195           { echo "$as_me:$LINENO: result: $result" >&5
9196 echo "${ECHO_T}$result" >&6; }
9197
9198
9199           enablestring=
9200           defaultval=$wxUSE_ALL_FEATURES
9201           if test -z "$defaultval"; then
9202               if test x"$enablestring" = xdisable; then
9203                   defaultval=yes
9204               else
9205                   defaultval=no
9206               fi
9207           fi
9208
9209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9210 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9211           # Check whether --enable-help was given.
9212 if test "${enable_help+set}" = set; then
9213   enableval=$enable_help;
9214                           if test "$enableval" = yes; then
9215                             wx_cv_use_help='wxUSE_HELP=yes'
9216                           else
9217                             wx_cv_use_help='wxUSE_HELP=no'
9218                           fi
9219                           cache=yes
9220
9221 else
9222
9223                           cache=no
9224                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9225                           if test "x$LINE" != x ; then
9226                             eval "DEFAULT_$LINE"
9227                           fi
9228
9229                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9230
9231 fi
9232
9233
9234           eval "$wx_cv_use_help"
9235           if test "x$cache" = xyes; then
9236             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9237           fi
9238
9239           if test x"$enablestring" = xdisable; then
9240             if test $wxUSE_HELP = yes; then
9241               result=no
9242             else
9243               result=yes
9244             fi
9245           else
9246             result=$wxUSE_HELP
9247           fi
9248
9249           { echo "$as_me:$LINENO: result: $result" >&5
9250 echo "${ECHO_T}$result" >&6; }
9251
9252
9253           enablestring=
9254           defaultval=$wxUSE_ALL_FEATURES
9255           if test -z "$defaultval"; then
9256               if test x"$enablestring" = xdisable; then
9257                   defaultval=yes
9258               else
9259                   defaultval=no
9260               fi
9261           fi
9262
9263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9265           # Check whether --enable-mshtmlhelp was given.
9266 if test "${enable_mshtmlhelp+set}" = set; then
9267   enableval=$enable_mshtmlhelp;
9268                           if test "$enableval" = yes; then
9269                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9270                           else
9271                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9272                           fi
9273                           cache=yes
9274
9275 else
9276
9277                           cache=no
9278                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9279                           if test "x$LINE" != x ; then
9280                             eval "DEFAULT_$LINE"
9281                           fi
9282
9283                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9284
9285 fi
9286
9287
9288           eval "$wx_cv_use_mshtmlhelp"
9289           if test "x$cache" = xyes; then
9290             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9291           fi
9292
9293           if test x"$enablestring" = xdisable; then
9294             if test $wxUSE_MS_HTML_HELP = yes; then
9295               result=no
9296             else
9297               result=yes
9298             fi
9299           else
9300             result=$wxUSE_MS_HTML_HELP
9301           fi
9302
9303           { echo "$as_me:$LINENO: result: $result" >&5
9304 echo "${ECHO_T}$result" >&6; }
9305
9306
9307           enablestring=
9308           defaultval=$wxUSE_ALL_FEATURES
9309           if test -z "$defaultval"; then
9310               if test x"$enablestring" = xdisable; then
9311                   defaultval=yes
9312               else
9313                   defaultval=no
9314               fi
9315           fi
9316
9317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9318 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9319           # Check whether --enable-html was given.
9320 if test "${enable_html+set}" = set; then
9321   enableval=$enable_html;
9322                           if test "$enableval" = yes; then
9323                             wx_cv_use_html='wxUSE_HTML=yes'
9324                           else
9325                             wx_cv_use_html='wxUSE_HTML=no'
9326                           fi
9327                           cache=yes
9328
9329 else
9330
9331                           cache=no
9332                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9333                           if test "x$LINE" != x ; then
9334                             eval "DEFAULT_$LINE"
9335                           fi
9336
9337                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9338
9339 fi
9340
9341
9342           eval "$wx_cv_use_html"
9343           if test "x$cache" = xyes; then
9344             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9345           fi
9346
9347           if test x"$enablestring" = xdisable; then
9348             if test $wxUSE_HTML = yes; then
9349               result=no
9350             else
9351               result=yes
9352             fi
9353           else
9354             result=$wxUSE_HTML
9355           fi
9356
9357           { echo "$as_me:$LINENO: result: $result" >&5
9358 echo "${ECHO_T}$result" >&6; }
9359
9360
9361           enablestring=
9362           defaultval=$wxUSE_ALL_FEATURES
9363           if test -z "$defaultval"; then
9364               if test x"$enablestring" = xdisable; then
9365                   defaultval=yes
9366               else
9367                   defaultval=no
9368               fi
9369           fi
9370
9371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9372 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9373           # Check whether --enable-htmlhelp was given.
9374 if test "${enable_htmlhelp+set}" = set; then
9375   enableval=$enable_htmlhelp;
9376                           if test "$enableval" = yes; then
9377                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9378                           else
9379                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9380                           fi
9381                           cache=yes
9382
9383 else
9384
9385                           cache=no
9386                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9387                           if test "x$LINE" != x ; then
9388                             eval "DEFAULT_$LINE"
9389                           fi
9390
9391                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9392
9393 fi
9394
9395
9396           eval "$wx_cv_use_htmlhelp"
9397           if test "x$cache" = xyes; then
9398             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9399           fi
9400
9401           if test x"$enablestring" = xdisable; then
9402             if test $wxUSE_WXHTML_HELP = yes; then
9403               result=no
9404             else
9405               result=yes
9406             fi
9407           else
9408             result=$wxUSE_WXHTML_HELP
9409           fi
9410
9411           { echo "$as_me:$LINENO: result: $result" >&5
9412 echo "${ECHO_T}$result" >&6; }
9413
9414
9415           enablestring=
9416           defaultval=$wxUSE_ALL_FEATURES
9417           if test -z "$defaultval"; then
9418               if test x"$enablestring" = xdisable; then
9419                   defaultval=yes
9420               else
9421                   defaultval=no
9422               fi
9423           fi
9424
9425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9426 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9427           # Check whether --enable-xrc was given.
9428 if test "${enable_xrc+set}" = set; then
9429   enableval=$enable_xrc;
9430                           if test "$enableval" = yes; then
9431                             wx_cv_use_xrc='wxUSE_XRC=yes'
9432                           else
9433                             wx_cv_use_xrc='wxUSE_XRC=no'
9434                           fi
9435                           cache=yes
9436
9437 else
9438
9439                           cache=no
9440                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9441                           if test "x$LINE" != x ; then
9442                             eval "DEFAULT_$LINE"
9443                           fi
9444
9445                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9446
9447 fi
9448
9449
9450           eval "$wx_cv_use_xrc"
9451           if test "x$cache" = xyes; then
9452             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9453           fi
9454
9455           if test x"$enablestring" = xdisable; then
9456             if test $wxUSE_XRC = yes; then
9457               result=no
9458             else
9459               result=yes
9460             fi
9461           else
9462             result=$wxUSE_XRC
9463           fi
9464
9465           { echo "$as_me:$LINENO: result: $result" >&5
9466 echo "${ECHO_T}$result" >&6; }
9467
9468
9469           enablestring=
9470           defaultval=$wxUSE_ALL_FEATURES
9471           if test -z "$defaultval"; then
9472               if test x"$enablestring" = xdisable; then
9473                   defaultval=yes
9474               else
9475                   defaultval=no
9476               fi
9477           fi
9478
9479           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9480 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9481           # Check whether --enable-aui was given.
9482 if test "${enable_aui+set}" = set; then
9483   enableval=$enable_aui;
9484                           if test "$enableval" = yes; then
9485                             wx_cv_use_aui='wxUSE_AUI=yes'
9486                           else
9487                             wx_cv_use_aui='wxUSE_AUI=no'
9488                           fi
9489                           cache=yes
9490
9491 else
9492
9493                           cache=no
9494                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9495                           if test "x$LINE" != x ; then
9496                             eval "DEFAULT_$LINE"
9497                           fi
9498
9499                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9500
9501 fi
9502
9503
9504           eval "$wx_cv_use_aui"
9505           if test "x$cache" = xyes; then
9506             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9507           fi
9508
9509           if test x"$enablestring" = xdisable; then
9510             if test $wxUSE_AUI = yes; then
9511               result=no
9512             else
9513               result=yes
9514             fi
9515           else
9516             result=$wxUSE_AUI
9517           fi
9518
9519           { echo "$as_me:$LINENO: result: $result" >&5
9520 echo "${ECHO_T}$result" >&6; }
9521
9522
9523           enablestring=
9524           defaultval=$wxUSE_ALL_FEATURES
9525           if test -z "$defaultval"; then
9526               if test x"$enablestring" = xdisable; then
9527                   defaultval=yes
9528               else
9529                   defaultval=no
9530               fi
9531           fi
9532
9533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9534 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9535           # Check whether --enable-stc was given.
9536 if test "${enable_stc+set}" = set; then
9537   enableval=$enable_stc;
9538                           if test "$enableval" = yes; then
9539                             wx_cv_use_stc='wxUSE_STC=yes'
9540                           else
9541                             wx_cv_use_stc='wxUSE_STC=no'
9542                           fi
9543                           cache=yes
9544
9545 else
9546
9547                           cache=no
9548                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9549                           if test "x$LINE" != x ; then
9550                             eval "DEFAULT_$LINE"
9551                           fi
9552
9553                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9554
9555 fi
9556
9557
9558           eval "$wx_cv_use_stc"
9559           if test "x$cache" = xyes; then
9560             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9561           fi
9562
9563           if test x"$enablestring" = xdisable; then
9564             if test $wxUSE_STC = yes; then
9565               result=no
9566             else
9567               result=yes
9568             fi
9569           else
9570             result=$wxUSE_STC
9571           fi
9572
9573           { echo "$as_me:$LINENO: result: $result" >&5
9574 echo "${ECHO_T}$result" >&6; }
9575
9576
9577           enablestring=
9578           defaultval=$wxUSE_ALL_FEATURES
9579           if test -z "$defaultval"; then
9580               if test x"$enablestring" = xdisable; then
9581                   defaultval=yes
9582               else
9583                   defaultval=no
9584               fi
9585           fi
9586
9587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9588 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9589           # Check whether --enable-constraints was given.
9590 if test "${enable_constraints+set}" = set; then
9591   enableval=$enable_constraints;
9592                           if test "$enableval" = yes; then
9593                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9594                           else
9595                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9596                           fi
9597                           cache=yes
9598
9599 else
9600
9601                           cache=no
9602                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9603                           if test "x$LINE" != x ; then
9604                             eval "DEFAULT_$LINE"
9605                           fi
9606
9607                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9608
9609 fi
9610
9611
9612           eval "$wx_cv_use_constraints"
9613           if test "x$cache" = xyes; then
9614             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
9615           fi
9616
9617           if test x"$enablestring" = xdisable; then
9618             if test $wxUSE_CONSTRAINTS = yes; then
9619               result=no
9620             else
9621               result=yes
9622             fi
9623           else
9624             result=$wxUSE_CONSTRAINTS
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}-printarch" >&5
9642 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9643           # Check whether --enable-printarch was given.
9644 if test "${enable_printarch+set}" = set; then
9645   enableval=$enable_printarch;
9646                           if test "$enableval" = yes; then
9647                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9648                           else
9649                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9650                           fi
9651                           cache=yes
9652
9653 else
9654
9655                           cache=no
9656                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9657                           if test "x$LINE" != x ; then
9658                             eval "DEFAULT_$LINE"
9659                           fi
9660
9661                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9662
9663 fi
9664
9665
9666           eval "$wx_cv_use_printarch"
9667           if test "x$cache" = xyes; then
9668             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9669           fi
9670
9671           if test x"$enablestring" = xdisable; then
9672             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9673               result=no
9674             else
9675               result=yes
9676             fi
9677           else
9678             result=$wxUSE_PRINTING_ARCHITECTURE
9679           fi
9680
9681           { echo "$as_me:$LINENO: result: $result" >&5
9682 echo "${ECHO_T}$result" >&6; }
9683
9684
9685           enablestring=
9686           defaultval=$wxUSE_ALL_FEATURES
9687           if test -z "$defaultval"; then
9688               if test x"$enablestring" = xdisable; then
9689                   defaultval=yes
9690               else
9691                   defaultval=no
9692               fi
9693           fi
9694
9695           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9696 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9697           # Check whether --enable-mdi was given.
9698 if test "${enable_mdi+set}" = set; then
9699   enableval=$enable_mdi;
9700                           if test "$enableval" = yes; then
9701                             wx_cv_use_mdi='wxUSE_MDI=yes'
9702                           else
9703                             wx_cv_use_mdi='wxUSE_MDI=no'
9704                           fi
9705                           cache=yes
9706
9707 else
9708
9709                           cache=no
9710                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
9711                           if test "x$LINE" != x ; then
9712                             eval "DEFAULT_$LINE"
9713                           fi
9714
9715                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9716
9717 fi
9718
9719
9720           eval "$wx_cv_use_mdi"
9721           if test "x$cache" = xyes; then
9722             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
9723           fi
9724
9725           if test x"$enablestring" = xdisable; then
9726             if test $wxUSE_MDI = yes; then
9727               result=no
9728             else
9729               result=yes
9730             fi
9731           else
9732             result=$wxUSE_MDI
9733           fi
9734
9735           { echo "$as_me:$LINENO: result: $result" >&5
9736 echo "${ECHO_T}$result" >&6; }
9737
9738
9739           enablestring=
9740           defaultval=$wxUSE_ALL_FEATURES
9741           if test -z "$defaultval"; then
9742               if test x"$enablestring" = xdisable; then
9743                   defaultval=yes
9744               else
9745                   defaultval=no
9746               fi
9747           fi
9748
9749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9750 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9751           # Check whether --enable-mdidoc was given.
9752 if test "${enable_mdidoc+set}" = set; then
9753   enableval=$enable_mdidoc;
9754                           if test "$enableval" = yes; then
9755                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9756                           else
9757                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9758                           fi
9759                           cache=yes
9760
9761 else
9762
9763                           cache=no
9764                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
9765                           if test "x$LINE" != x ; then
9766                             eval "DEFAULT_$LINE"
9767                           fi
9768
9769                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9770
9771 fi
9772
9773
9774           eval "$wx_cv_use_mdidoc"
9775           if test "x$cache" = xyes; then
9776             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9777           fi
9778
9779           if test x"$enablestring" = xdisable; then
9780             if test $wxUSE_MDI_ARCHITECTURE = yes; then
9781               result=no
9782             else
9783               result=yes
9784             fi
9785           else
9786             result=$wxUSE_MDI_ARCHITECTURE
9787           fi
9788
9789           { echo "$as_me:$LINENO: result: $result" >&5
9790 echo "${ECHO_T}$result" >&6; }
9791
9792
9793           enablestring=
9794           defaultval=$wxUSE_ALL_FEATURES
9795           if test -z "$defaultval"; then
9796               if test x"$enablestring" = xdisable; then
9797                   defaultval=yes
9798               else
9799                   defaultval=no
9800               fi
9801           fi
9802
9803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9804 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9805           # Check whether --enable-loggui was given.
9806 if test "${enable_loggui+set}" = set; then
9807   enableval=$enable_loggui;
9808                           if test "$enableval" = yes; then
9809                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9810                           else
9811                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9812                           fi
9813                           cache=yes
9814
9815 else
9816
9817                           cache=no
9818                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
9819                           if test "x$LINE" != x ; then
9820                             eval "DEFAULT_$LINE"
9821                           fi
9822
9823                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9824
9825 fi
9826
9827
9828           eval "$wx_cv_use_loggui"
9829           if test "x$cache" = xyes; then
9830             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
9831           fi
9832
9833           if test x"$enablestring" = xdisable; then
9834             if test $wxUSE_LOGGUI = yes; then
9835               result=no
9836             else
9837               result=yes
9838             fi
9839           else
9840             result=$wxUSE_LOGGUI
9841           fi
9842
9843           { echo "$as_me:$LINENO: result: $result" >&5
9844 echo "${ECHO_T}$result" >&6; }
9845
9846
9847           enablestring=
9848           defaultval=$wxUSE_ALL_FEATURES
9849           if test -z "$defaultval"; then
9850               if test x"$enablestring" = xdisable; then
9851                   defaultval=yes
9852               else
9853                   defaultval=no
9854               fi
9855           fi
9856
9857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9858 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9859           # Check whether --enable-logwin was given.
9860 if test "${enable_logwin+set}" = set; then
9861   enableval=$enable_logwin;
9862                           if test "$enableval" = yes; then
9863                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9864                           else
9865                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9866                           fi
9867                           cache=yes
9868
9869 else
9870
9871                           cache=no
9872                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
9873                           if test "x$LINE" != x ; then
9874                             eval "DEFAULT_$LINE"
9875                           fi
9876
9877                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9878
9879 fi
9880
9881
9882           eval "$wx_cv_use_logwin"
9883           if test "x$cache" = xyes; then
9884             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
9885           fi
9886
9887           if test x"$enablestring" = xdisable; then
9888             if test $wxUSE_LOGWINDOW = yes; then
9889               result=no
9890             else
9891               result=yes
9892             fi
9893           else
9894             result=$wxUSE_LOGWINDOW
9895           fi
9896
9897           { echo "$as_me:$LINENO: result: $result" >&5
9898 echo "${ECHO_T}$result" >&6; }
9899
9900
9901           enablestring=
9902           defaultval=$wxUSE_ALL_FEATURES
9903           if test -z "$defaultval"; then
9904               if test x"$enablestring" = xdisable; then
9905                   defaultval=yes
9906               else
9907                   defaultval=no
9908               fi
9909           fi
9910
9911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9912 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9913           # Check whether --enable-logdialog was given.
9914 if test "${enable_logdialog+set}" = set; then
9915   enableval=$enable_logdialog;
9916                           if test "$enableval" = yes; then
9917                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9918                           else
9919                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9920                           fi
9921                           cache=yes
9922
9923 else
9924
9925                           cache=no
9926                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
9927                           if test "x$LINE" != x ; then
9928                             eval "DEFAULT_$LINE"
9929                           fi
9930
9931                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9932
9933 fi
9934
9935
9936           eval "$wx_cv_use_logdialog"
9937           if test "x$cache" = xyes; then
9938             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
9939           fi
9940
9941           if test x"$enablestring" = xdisable; then
9942             if test $wxUSE_LOGDIALOG = yes; then
9943               result=no
9944             else
9945               result=yes
9946             fi
9947           else
9948             result=$wxUSE_LOGDIALOG
9949           fi
9950
9951           { echo "$as_me:$LINENO: result: $result" >&5
9952 echo "${ECHO_T}$result" >&6; }
9953
9954
9955           enablestring=
9956           defaultval=$wxUSE_ALL_FEATURES
9957           if test -z "$defaultval"; then
9958               if test x"$enablestring" = xdisable; then
9959                   defaultval=yes
9960               else
9961                   defaultval=no
9962               fi
9963           fi
9964
9965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9966 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9967           # Check whether --enable-webkit was given.
9968 if test "${enable_webkit+set}" = set; then
9969   enableval=$enable_webkit;
9970                           if test "$enableval" = yes; then
9971                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9972                           else
9973                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9974                           fi
9975                           cache=yes
9976
9977 else
9978
9979                           cache=no
9980                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
9981                           if test "x$LINE" != x ; then
9982                             eval "DEFAULT_$LINE"
9983                           fi
9984
9985                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9986
9987 fi
9988
9989
9990           eval "$wx_cv_use_webkit"
9991           if test "x$cache" = xyes; then
9992             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
9993           fi
9994
9995           if test x"$enablestring" = xdisable; then
9996             if test $wxUSE_WEBKIT = yes; then
9997               result=no
9998             else
9999               result=yes
10000             fi
10001           else
10002             result=$wxUSE_WEBKIT
10003           fi
10004
10005           { echo "$as_me:$LINENO: result: $result" >&5
10006 echo "${ECHO_T}$result" >&6; }
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}-richtext" >&5
10020 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10021           # Check whether --enable-richtext was given.
10022 if test "${enable_richtext+set}" = set; then
10023   enableval=$enable_richtext;
10024                           if test "$enableval" = yes; then
10025                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10026                           else
10027                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10028                           fi
10029                           cache=yes
10030
10031 else
10032
10033                           cache=no
10034                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10035                           if test "x$LINE" != x ; then
10036                             eval "DEFAULT_$LINE"
10037                           fi
10038
10039                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10040
10041 fi
10042
10043
10044           eval "$wx_cv_use_richtext"
10045           if test "x$cache" = xyes; then
10046             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
10047           fi
10048
10049           if test x"$enablestring" = xdisable; then
10050             if test $wxUSE_RICHTEXT = yes; then
10051               result=no
10052             else
10053               result=yes
10054             fi
10055           else
10056             result=$wxUSE_RICHTEXT
10057           fi
10058
10059           { echo "$as_me:$LINENO: result: $result" >&5
10060 echo "${ECHO_T}$result" >&6; }
10061
10062
10063           enablestring=
10064           defaultval=$wxUSE_ALL_FEATURES
10065           if test -z "$defaultval"; then
10066               if test x"$enablestring" = xdisable; then
10067                   defaultval=yes
10068               else
10069                   defaultval=no
10070               fi
10071           fi
10072
10073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10074 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10075           # Check whether --enable-graphics_ctx was given.
10076 if test "${enable_graphics_ctx+set}" = set; then
10077   enableval=$enable_graphics_ctx;
10078                           if test "$enableval" = yes; then
10079                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10080                           else
10081                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10082                           fi
10083                           cache=yes
10084
10085 else
10086
10087                           cache=no
10088                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10089                           if test "x$LINE" != x ; then
10090                             eval "DEFAULT_$LINE"
10091                           fi
10092
10093                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10094
10095 fi
10096
10097
10098           eval "$wx_cv_use_graphics_ctx"
10099           if test "x$cache" = xyes; then
10100             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
10101           fi
10102
10103           if test x"$enablestring" = xdisable; then
10104             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10105               result=no
10106             else
10107               result=yes
10108             fi
10109           else
10110             result=$wxUSE_GRAPHICS_CONTEXT
10111           fi
10112
10113           { echo "$as_me:$LINENO: result: $result" >&5
10114 echo "${ECHO_T}$result" >&6; }
10115
10116
10117           enablestring=
10118           defaultval=$wxUSE_ALL_FEATURES
10119           if test -z "$defaultval"; then
10120               if test x"$enablestring" = xdisable; then
10121                   defaultval=yes
10122               else
10123                   defaultval=no
10124               fi
10125           fi
10126
10127           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10128 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10129           # Check whether --enable-postscript was given.
10130 if test "${enable_postscript+set}" = set; then
10131   enableval=$enable_postscript;
10132                           if test "$enableval" = yes; then
10133                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10134                           else
10135                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10136                           fi
10137                           cache=yes
10138
10139 else
10140
10141                           cache=no
10142                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10143                           if test "x$LINE" != x ; then
10144                             eval "DEFAULT_$LINE"
10145                           fi
10146
10147                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10148
10149 fi
10150
10151
10152           eval "$wx_cv_use_postscript"
10153           if test "x$cache" = xyes; then
10154             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
10155           fi
10156
10157           if test x"$enablestring" = xdisable; then
10158             if test $wxUSE_POSTSCRIPT = yes; then
10159               result=no
10160             else
10161               result=yes
10162             fi
10163           else
10164             result=$wxUSE_POSTSCRIPT
10165           fi
10166
10167           { echo "$as_me:$LINENO: result: $result" >&5
10168 echo "${ECHO_T}$result" >&6; }
10169
10170
10171           enablestring=
10172           defaultval=$wxUSE_ALL_FEATURES
10173           if test -z "$defaultval"; then
10174               if test x"$enablestring" = xdisable; then
10175                   defaultval=yes
10176               else
10177                   defaultval=no
10178               fi
10179           fi
10180
10181           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10182 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10183           # Check whether --enable-svg was given.
10184 if test "${enable_svg+set}" = set; then
10185   enableval=$enable_svg;
10186                           if test "$enableval" = yes; then
10187                             wx_cv_use_svg='wxUSE_SVG=yes'
10188                           else
10189                             wx_cv_use_svg='wxUSE_SVG=no'
10190                           fi
10191                           cache=yes
10192
10193 else
10194
10195                           cache=no
10196                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10197                           if test "x$LINE" != x ; then
10198                             eval "DEFAULT_$LINE"
10199                           fi
10200
10201                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10202
10203 fi
10204
10205
10206           eval "$wx_cv_use_svg"
10207           if test "x$cache" = xyes; then
10208             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10209           fi
10210
10211           if test x"$enablestring" = xdisable; then
10212             if test $wxUSE_SVG = yes; then
10213               result=no
10214             else
10215               result=yes
10216             fi
10217           else
10218             result=$wxUSE_SVG
10219           fi
10220
10221           { echo "$as_me:$LINENO: result: $result" >&5
10222 echo "${ECHO_T}$result" >&6; }
10223
10224
10225
10226
10227           enablestring=
10228           defaultval=$wxUSE_ALL_FEATURES
10229           if test -z "$defaultval"; then
10230               if test x"$enablestring" = xdisable; then
10231                   defaultval=yes
10232               else
10233                   defaultval=no
10234               fi
10235           fi
10236
10237           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10238 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10239           # Check whether --enable-clipboard was given.
10240 if test "${enable_clipboard+set}" = set; then
10241   enableval=$enable_clipboard;
10242                           if test "$enableval" = yes; then
10243                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10244                           else
10245                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10246                           fi
10247                           cache=yes
10248
10249 else
10250
10251                           cache=no
10252                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10253                           if test "x$LINE" != x ; then
10254                             eval "DEFAULT_$LINE"
10255                           fi
10256
10257                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10258
10259 fi
10260
10261
10262           eval "$wx_cv_use_clipboard"
10263           if test "x$cache" = xyes; then
10264             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10265           fi
10266
10267           if test x"$enablestring" = xdisable; then
10268             if test $wxUSE_CLIPBOARD = yes; then
10269               result=no
10270             else
10271               result=yes
10272             fi
10273           else
10274             result=$wxUSE_CLIPBOARD
10275           fi
10276
10277           { echo "$as_me:$LINENO: result: $result" >&5
10278 echo "${ECHO_T}$result" >&6; }
10279
10280
10281           enablestring=
10282           defaultval=$wxUSE_ALL_FEATURES
10283           if test -z "$defaultval"; then
10284               if test x"$enablestring" = xdisable; then
10285                   defaultval=yes
10286               else
10287                   defaultval=no
10288               fi
10289           fi
10290
10291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10292 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10293           # Check whether --enable-dnd was given.
10294 if test "${enable_dnd+set}" = set; then
10295   enableval=$enable_dnd;
10296                           if test "$enableval" = yes; then
10297                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10298                           else
10299                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10300                           fi
10301                           cache=yes
10302
10303 else
10304
10305                           cache=no
10306                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10307                           if test "x$LINE" != x ; then
10308                             eval "DEFAULT_$LINE"
10309                           fi
10310
10311                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10312
10313 fi
10314
10315
10316           eval "$wx_cv_use_dnd"
10317           if test "x$cache" = xyes; then
10318             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10319           fi
10320
10321           if test x"$enablestring" = xdisable; then
10322             if test $wxUSE_DRAG_AND_DROP = yes; then
10323               result=no
10324             else
10325               result=yes
10326             fi
10327           else
10328             result=$wxUSE_DRAG_AND_DROP
10329           fi
10330
10331           { echo "$as_me:$LINENO: result: $result" >&5
10332 echo "${ECHO_T}$result" >&6; }
10333
10334
10335           enablestring=
10336           defaultval=$wxUSE_ALL_FEATURES
10337           if test -z "$defaultval"; then
10338               if test x"$enablestring" = xdisable; then
10339                   defaultval=yes
10340               else
10341                   defaultval=no
10342               fi
10343           fi
10344
10345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10346 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10347           # Check whether --enable-metafile was given.
10348 if test "${enable_metafile+set}" = set; then
10349   enableval=$enable_metafile;
10350                           if test "$enableval" = yes; then
10351                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10352                           else
10353                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10354                           fi
10355                           cache=yes
10356
10357 else
10358
10359                           cache=no
10360                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10361                           if test "x$LINE" != x ; then
10362                             eval "DEFAULT_$LINE"
10363                           fi
10364
10365                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10366
10367 fi
10368
10369
10370           eval "$wx_cv_use_metafile"
10371           if test "x$cache" = xyes; then
10372             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10373           fi
10374
10375           if test x"$enablestring" = xdisable; then
10376             if test $wxUSE_METAFILE = yes; then
10377               result=no
10378             else
10379               result=yes
10380             fi
10381           else
10382             result=$wxUSE_METAFILE
10383           fi
10384
10385           { echo "$as_me:$LINENO: result: $result" >&5
10386 echo "${ECHO_T}$result" >&6; }
10387
10388
10389
10390 DEFAULT_wxUSE_CONTROLS=none
10391
10392           enablestring=disable
10393           defaultval=
10394           if test -z "$defaultval"; then
10395               if test x"$enablestring" = xdisable; then
10396                   defaultval=yes
10397               else
10398                   defaultval=no
10399               fi
10400           fi
10401
10402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10403 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10404           # Check whether --enable-controls was given.
10405 if test "${enable_controls+set}" = set; then
10406   enableval=$enable_controls;
10407                           if test "$enableval" = yes; then
10408                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10409                           else
10410                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10411                           fi
10412                           cache=yes
10413
10414 else
10415
10416                           cache=no
10417                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10418                           if test "x$LINE" != x ; then
10419                             eval "DEFAULT_$LINE"
10420                           fi
10421
10422                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10423
10424 fi
10425
10426
10427           eval "$wx_cv_use_controls"
10428           if test "x$cache" = xyes; then
10429             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10430           fi
10431
10432           if test x"$enablestring" = xdisable; then
10433             if test $wxUSE_CONTROLS = yes; then
10434               result=no
10435             else
10436               result=yes
10437             fi
10438           else
10439             result=$wxUSE_CONTROLS
10440           fi
10441
10442           { echo "$as_me:$LINENO: result: $result" >&5
10443 echo "${ECHO_T}$result" >&6; }
10444
10445
10446 if test "$wxUSE_CONTROLS" = "yes"; then
10447   DEFAULT_wxUSE_ACCEL=yes
10448   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10449   DEFAULT_wxUSE_BMPBUTTON=yes
10450   DEFAULT_wxUSE_BUTTON=yes
10451   DEFAULT_wxUSE_CALCTRL=yes
10452   DEFAULT_wxUSE_CARET=yes
10453   DEFAULT_wxUSE_COMBOBOX=yes
10454   DEFAULT_wxUSE_CHECKBOX=yes
10455   DEFAULT_wxUSE_CHECKLISTBOX=yes
10456   DEFAULT_wxUSE_CHOICE=yes
10457   DEFAULT_wxUSE_CHOICEBOOK=yes
10458   DEFAULT_wxUSE_COLLPANE=yes
10459   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10460   DEFAULT_wxUSE_COMBOBOX=yes
10461   DEFAULT_wxUSE_DATEPICKCTRL=yes
10462   DEFAULT_wxUSE_DISPLAY=yes
10463   DEFAULT_wxUSE_DETECT_SM=yes
10464   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10465   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10466   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10467   DEFAULT_wxUSE_GAUGE=yes
10468   DEFAULT_wxUSE_GRID=yes
10469   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10470   DEFAULT_wxUSE_DATAVIEWCTRL=no
10471   DEFAULT_wxUSE_IMAGLIST=yes
10472   DEFAULT_wxUSE_LISTBOOK=yes
10473   DEFAULT_wxUSE_LISTBOX=yes
10474   DEFAULT_wxUSE_LISTCTRL=yes
10475   DEFAULT_wxUSE_NOTEBOOK=yes
10476   DEFAULT_wxUSE_RADIOBOX=yes
10477   DEFAULT_wxUSE_RADIOBTN=yes
10478   DEFAULT_wxUSE_SASH=yes
10479   DEFAULT_wxUSE_SCROLLBAR=yes
10480   DEFAULT_wxUSE_SEARCHCTRL=yes
10481   DEFAULT_wxUSE_SLIDER=yes
10482   DEFAULT_wxUSE_SPINBTN=yes
10483   DEFAULT_wxUSE_SPINCTRL=yes
10484   DEFAULT_wxUSE_SPLITTER=yes
10485   DEFAULT_wxUSE_STATBMP=yes
10486   DEFAULT_wxUSE_STATBOX=yes
10487   DEFAULT_wxUSE_STATLINE=yes
10488   DEFAULT_wxUSE_STATUSBAR=yes
10489   DEFAULT_wxUSE_TAB_DIALOG=yes
10490   DEFAULT_wxUSE_TOGGLEBTN=yes
10491   DEFAULT_wxUSE_TOOLBAR=yes
10492   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10493   DEFAULT_wxUSE_TOOLTIPS=yes
10494   DEFAULT_wxUSE_TREEBOOK=yes
10495   DEFAULT_wxUSE_TOOLBOOK=yes
10496   DEFAULT_wxUSE_TREECTRL=yes
10497   DEFAULT_wxUSE_POPUPWIN=yes
10498   DEFAULT_wxUSE_TIPWINDOW=yes
10499 elif test "$wxUSE_CONTROLS" = "no"; then
10500   DEFAULT_wxUSE_ACCEL=no
10501   DEFAULT_wxUSE_ANIMATIONCTRL=no
10502   DEFAULT_wxUSE_BMPBUTTON=no
10503   DEFAULT_wxUSE_BUTTON=no
10504   DEFAULT_wxUSE_CALCTRL=no
10505   DEFAULT_wxUSE_CARET=no
10506   DEFAULT_wxUSE_COLLPANE=no
10507   DEFAULT_wxUSE_COMBOBOX=no
10508   DEFAULT_wxUSE_CHECKBOX=no
10509   DEFAULT_wxUSE_CHECKLISTBOX=no
10510   DEFAULT_wxUSE_CHOICE=no
10511   DEFAULT_wxUSE_CHOICEBOOK=no
10512   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10513   DEFAULT_wxUSE_COMBOBOX=no
10514   DEFAULT_wxUSE_DATEPICKCTRL=no
10515   DEFAULT_wxUSE_DISPLAY=no
10516   DEFAULT_wxUSE_DETECT_SM=no
10517   DEFAULT_wxUSE_DIRPICKERCTRL=no
10518   DEFAULT_wxUSE_FILEPICKERCTRL=no
10519   DEFAULT_wxUSE_FONTPICKERCTRL=no
10520   DEFAULT_wxUSE_GAUGE=no
10521   DEFAULT_wxUSE_GRID=no
10522   DEFAULT_wxUSE_HYPERLINKCTRL=no
10523   DEFAULT_wxUSE_DATAVIEWCTRL=no
10524   DEFAULT_wxUSE_IMAGLIST=no
10525   DEFAULT_wxUSE_LISTBOOK=no
10526   DEFAULT_wxUSE_LISTBOX=no
10527   DEFAULT_wxUSE_LISTCTRL=no
10528   DEFAULT_wxUSE_NOTEBOOK=no
10529   DEFAULT_wxUSE_RADIOBOX=no
10530   DEFAULT_wxUSE_RADIOBTN=no
10531   DEFAULT_wxUSE_SASH=no
10532   DEFAULT_wxUSE_SCROLLBAR=no
10533   DEFAULT_wxUSE_SEARCHCTRL=no
10534   DEFAULT_wxUSE_SLIDER=no
10535   DEFAULT_wxUSE_SPINBTN=no
10536   DEFAULT_wxUSE_SPINCTRL=no
10537   DEFAULT_wxUSE_SPLITTER=no
10538   DEFAULT_wxUSE_STATBMP=no
10539   DEFAULT_wxUSE_STATBOX=no
10540   DEFAULT_wxUSE_STATLINE=no
10541   DEFAULT_wxUSE_STATUSBAR=no
10542   DEFAULT_wxUSE_TAB_DIALOG=no
10543   DEFAULT_wxUSE_TOGGLEBTN=no
10544   DEFAULT_wxUSE_TOOLBAR=no
10545   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10546   DEFAULT_wxUSE_TOOLTIPS=no
10547   DEFAULT_wxUSE_TREEBOOK=no
10548   DEFAULT_wxUSE_TOOLBOOK=no
10549   DEFAULT_wxUSE_TREECTRL=no
10550   DEFAULT_wxUSE_POPUPWIN=no
10551   DEFAULT_wxUSE_TIPWINDOW=no
10552 fi
10553
10554
10555           enablestring=
10556           defaultval=$wxUSE_ALL_FEATURES
10557           if test -z "$defaultval"; then
10558               if test x"$enablestring" = xdisable; then
10559                   defaultval=yes
10560               else
10561                   defaultval=no
10562               fi
10563           fi
10564
10565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10566 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10567           # Check whether --enable-accel was given.
10568 if test "${enable_accel+set}" = set; then
10569   enableval=$enable_accel;
10570                           if test "$enableval" = yes; then
10571                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10572                           else
10573                             wx_cv_use_accel='wxUSE_ACCEL=no'
10574                           fi
10575                           cache=yes
10576
10577 else
10578
10579                           cache=no
10580                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10581                           if test "x$LINE" != x ; then
10582                             eval "DEFAULT_$LINE"
10583                           fi
10584
10585                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10586
10587 fi
10588
10589
10590           eval "$wx_cv_use_accel"
10591           if test "x$cache" = xyes; then
10592             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
10593           fi
10594
10595           if test x"$enablestring" = xdisable; then
10596             if test $wxUSE_ACCEL = yes; then
10597               result=no
10598             else
10599               result=yes
10600             fi
10601           else
10602             result=$wxUSE_ACCEL
10603           fi
10604
10605           { echo "$as_me:$LINENO: result: $result" >&5
10606 echo "${ECHO_T}$result" >&6; }
10607
10608
10609           enablestring=
10610           defaultval=$wxUSE_ALL_FEATURES
10611           if test -z "$defaultval"; then
10612               if test x"$enablestring" = xdisable; then
10613                   defaultval=yes
10614               else
10615                   defaultval=no
10616               fi
10617           fi
10618
10619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10620 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10621           # Check whether --enable-animatectrl was given.
10622 if test "${enable_animatectrl+set}" = set; then
10623   enableval=$enable_animatectrl;
10624                           if test "$enableval" = yes; then
10625                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10626                           else
10627                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10628                           fi
10629                           cache=yes
10630
10631 else
10632
10633                           cache=no
10634                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
10635                           if test "x$LINE" != x ; then
10636                             eval "DEFAULT_$LINE"
10637                           fi
10638
10639                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10640
10641 fi
10642
10643
10644           eval "$wx_cv_use_animatectrl"
10645           if test "x$cache" = xyes; then
10646             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
10647           fi
10648
10649           if test x"$enablestring" = xdisable; then
10650             if test $wxUSE_ANIMATIONCTRL = yes; then
10651               result=no
10652             else
10653               result=yes
10654             fi
10655           else
10656             result=$wxUSE_ANIMATIONCTRL
10657           fi
10658
10659           { echo "$as_me:$LINENO: result: $result" >&5
10660 echo "${ECHO_T}$result" >&6; }
10661
10662
10663           enablestring=
10664           defaultval=$wxUSE_ALL_FEATURES
10665           if test -z "$defaultval"; then
10666               if test x"$enablestring" = xdisable; then
10667                   defaultval=yes
10668               else
10669                   defaultval=no
10670               fi
10671           fi
10672
10673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10674 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10675           # Check whether --enable-button was given.
10676 if test "${enable_button+set}" = set; then
10677   enableval=$enable_button;
10678                           if test "$enableval" = yes; then
10679                             wx_cv_use_button='wxUSE_BUTTON=yes'
10680                           else
10681                             wx_cv_use_button='wxUSE_BUTTON=no'
10682                           fi
10683                           cache=yes
10684
10685 else
10686
10687                           cache=no
10688                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
10689                           if test "x$LINE" != x ; then
10690                             eval "DEFAULT_$LINE"
10691                           fi
10692
10693                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10694
10695 fi
10696
10697
10698           eval "$wx_cv_use_button"
10699           if test "x$cache" = xyes; then
10700             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
10701           fi
10702
10703           if test x"$enablestring" = xdisable; then
10704             if test $wxUSE_BUTTON = yes; then
10705               result=no
10706             else
10707               result=yes
10708             fi
10709           else
10710             result=$wxUSE_BUTTON
10711           fi
10712
10713           { echo "$as_me:$LINENO: result: $result" >&5
10714 echo "${ECHO_T}$result" >&6; }
10715
10716
10717           enablestring=
10718           defaultval=$wxUSE_ALL_FEATURES
10719           if test -z "$defaultval"; then
10720               if test x"$enablestring" = xdisable; then
10721                   defaultval=yes
10722               else
10723                   defaultval=no
10724               fi
10725           fi
10726
10727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10728 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10729           # Check whether --enable-bmpbutton was given.
10730 if test "${enable_bmpbutton+set}" = set; then
10731   enableval=$enable_bmpbutton;
10732                           if test "$enableval" = yes; then
10733                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10734                           else
10735                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10736                           fi
10737                           cache=yes
10738
10739 else
10740
10741                           cache=no
10742                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
10743                           if test "x$LINE" != x ; then
10744                             eval "DEFAULT_$LINE"
10745                           fi
10746
10747                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10748
10749 fi
10750
10751
10752           eval "$wx_cv_use_bmpbutton"
10753           if test "x$cache" = xyes; then
10754             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
10755           fi
10756
10757           if test x"$enablestring" = xdisable; then
10758             if test $wxUSE_BMPBUTTON = yes; then
10759               result=no
10760             else
10761               result=yes
10762             fi
10763           else
10764             result=$wxUSE_BMPBUTTON
10765           fi
10766
10767           { echo "$as_me:$LINENO: result: $result" >&5
10768 echo "${ECHO_T}$result" >&6; }
10769
10770
10771           enablestring=
10772           defaultval=$wxUSE_ALL_FEATURES
10773           if test -z "$defaultval"; then
10774               if test x"$enablestring" = xdisable; then
10775                   defaultval=yes
10776               else
10777                   defaultval=no
10778               fi
10779           fi
10780
10781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10782 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10783           # Check whether --enable-bmpcombobox was given.
10784 if test "${enable_bmpcombobox+set}" = set; then
10785   enableval=$enable_bmpcombobox;
10786                           if test "$enableval" = yes; then
10787                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10788                           else
10789                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10790                           fi
10791                           cache=yes
10792
10793 else
10794
10795                           cache=no
10796                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
10797                           if test "x$LINE" != x ; then
10798                             eval "DEFAULT_$LINE"
10799                           fi
10800
10801                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10802
10803 fi
10804
10805
10806           eval "$wx_cv_use_bmpcombobox"
10807           if test "x$cache" = xyes; then
10808             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
10809           fi
10810
10811           if test x"$enablestring" = xdisable; then
10812             if test $wxUSE_BITMAPCOMBOBOX = yes; then
10813               result=no
10814             else
10815               result=yes
10816             fi
10817           else
10818             result=$wxUSE_BITMAPCOMBOBOX
10819           fi
10820
10821           { echo "$as_me:$LINENO: result: $result" >&5
10822 echo "${ECHO_T}$result" >&6; }
10823
10824
10825           enablestring=
10826           defaultval=$wxUSE_ALL_FEATURES
10827           if test -z "$defaultval"; then
10828               if test x"$enablestring" = xdisable; then
10829                   defaultval=yes
10830               else
10831                   defaultval=no
10832               fi
10833           fi
10834
10835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10836 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10837           # Check whether --enable-calendar was given.
10838 if test "${enable_calendar+set}" = set; then
10839   enableval=$enable_calendar;
10840                           if test "$enableval" = yes; then
10841                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10842                           else
10843                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10844                           fi
10845                           cache=yes
10846
10847 else
10848
10849                           cache=no
10850                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
10851                           if test "x$LINE" != x ; then
10852                             eval "DEFAULT_$LINE"
10853                           fi
10854
10855                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10856
10857 fi
10858
10859
10860           eval "$wx_cv_use_calendar"
10861           if test "x$cache" = xyes; then
10862             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
10863           fi
10864
10865           if test x"$enablestring" = xdisable; then
10866             if test $wxUSE_CALCTRL = yes; then
10867               result=no
10868             else
10869               result=yes
10870             fi
10871           else
10872             result=$wxUSE_CALCTRL
10873           fi
10874
10875           { echo "$as_me:$LINENO: result: $result" >&5
10876 echo "${ECHO_T}$result" >&6; }
10877
10878
10879           enablestring=
10880           defaultval=$wxUSE_ALL_FEATURES
10881           if test -z "$defaultval"; then
10882               if test x"$enablestring" = xdisable; then
10883                   defaultval=yes
10884               else
10885                   defaultval=no
10886               fi
10887           fi
10888
10889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10890 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10891           # Check whether --enable-caret was given.
10892 if test "${enable_caret+set}" = set; then
10893   enableval=$enable_caret;
10894                           if test "$enableval" = yes; then
10895                             wx_cv_use_caret='wxUSE_CARET=yes'
10896                           else
10897                             wx_cv_use_caret='wxUSE_CARET=no'
10898                           fi
10899                           cache=yes
10900
10901 else
10902
10903                           cache=no
10904                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
10905                           if test "x$LINE" != x ; then
10906                             eval "DEFAULT_$LINE"
10907                           fi
10908
10909                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10910
10911 fi
10912
10913
10914           eval "$wx_cv_use_caret"
10915           if test "x$cache" = xyes; then
10916             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
10917           fi
10918
10919           if test x"$enablestring" = xdisable; then
10920             if test $wxUSE_CARET = yes; then
10921               result=no
10922             else
10923               result=yes
10924             fi
10925           else
10926             result=$wxUSE_CARET
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}-checkbox" >&5
10944 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10945           # Check whether --enable-checkbox was given.
10946 if test "${enable_checkbox+set}" = set; then
10947   enableval=$enable_checkbox;
10948                           if test "$enableval" = yes; then
10949                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10950                           else
10951                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10952                           fi
10953                           cache=yes
10954
10955 else
10956
10957                           cache=no
10958                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
10959                           if test "x$LINE" != x ; then
10960                             eval "DEFAULT_$LINE"
10961                           fi
10962
10963                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10964
10965 fi
10966
10967
10968           eval "$wx_cv_use_checkbox"
10969           if test "x$cache" = xyes; then
10970             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
10971           fi
10972
10973           if test x"$enablestring" = xdisable; then
10974             if test $wxUSE_CHECKBOX = yes; then
10975               result=no
10976             else
10977               result=yes
10978             fi
10979           else
10980             result=$wxUSE_CHECKBOX
10981           fi
10982
10983           { echo "$as_me:$LINENO: result: $result" >&5
10984 echo "${ECHO_T}$result" >&6; }
10985
10986
10987           enablestring=
10988           defaultval=$wxUSE_ALL_FEATURES
10989           if test -z "$defaultval"; then
10990               if test x"$enablestring" = xdisable; then
10991                   defaultval=yes
10992               else
10993                   defaultval=no
10994               fi
10995           fi
10996
10997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10998 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10999           # Check whether --enable-checklst was given.
11000 if test "${enable_checklst+set}" = set; then
11001   enableval=$enable_checklst;
11002                           if test "$enableval" = yes; then
11003                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11004                           else
11005                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11006                           fi
11007                           cache=yes
11008
11009 else
11010
11011                           cache=no
11012                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11013                           if test "x$LINE" != x ; then
11014                             eval "DEFAULT_$LINE"
11015                           fi
11016
11017                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11018
11019 fi
11020
11021
11022           eval "$wx_cv_use_checklst"
11023           if test "x$cache" = xyes; then
11024             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
11025           fi
11026
11027           if test x"$enablestring" = xdisable; then
11028             if test $wxUSE_CHECKLST = yes; then
11029               result=no
11030             else
11031               result=yes
11032             fi
11033           else
11034             result=$wxUSE_CHECKLST
11035           fi
11036
11037           { echo "$as_me:$LINENO: result: $result" >&5
11038 echo "${ECHO_T}$result" >&6; }
11039
11040
11041           enablestring=
11042           defaultval=$wxUSE_ALL_FEATURES
11043           if test -z "$defaultval"; then
11044               if test x"$enablestring" = xdisable; then
11045                   defaultval=yes
11046               else
11047                   defaultval=no
11048               fi
11049           fi
11050
11051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11052 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11053           # Check whether --enable-choice was given.
11054 if test "${enable_choice+set}" = set; then
11055   enableval=$enable_choice;
11056                           if test "$enableval" = yes; then
11057                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11058                           else
11059                             wx_cv_use_choice='wxUSE_CHOICE=no'
11060                           fi
11061                           cache=yes
11062
11063 else
11064
11065                           cache=no
11066                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11067                           if test "x$LINE" != x ; then
11068                             eval "DEFAULT_$LINE"
11069                           fi
11070
11071                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11072
11073 fi
11074
11075
11076           eval "$wx_cv_use_choice"
11077           if test "x$cache" = xyes; then
11078             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
11079           fi
11080
11081           if test x"$enablestring" = xdisable; then
11082             if test $wxUSE_CHOICE = yes; then
11083               result=no
11084             else
11085               result=yes
11086             fi
11087           else
11088             result=$wxUSE_CHOICE
11089           fi
11090
11091           { echo "$as_me:$LINENO: result: $result" >&5
11092 echo "${ECHO_T}$result" >&6; }
11093
11094
11095           enablestring=
11096           defaultval=$wxUSE_ALL_FEATURES
11097           if test -z "$defaultval"; then
11098               if test x"$enablestring" = xdisable; then
11099                   defaultval=yes
11100               else
11101                   defaultval=no
11102               fi
11103           fi
11104
11105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11106 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11107           # Check whether --enable-choicebook was given.
11108 if test "${enable_choicebook+set}" = set; then
11109   enableval=$enable_choicebook;
11110                           if test "$enableval" = yes; then
11111                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11112                           else
11113                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11114                           fi
11115                           cache=yes
11116
11117 else
11118
11119                           cache=no
11120                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11121                           if test "x$LINE" != x ; then
11122                             eval "DEFAULT_$LINE"
11123                           fi
11124
11125                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11126
11127 fi
11128
11129
11130           eval "$wx_cv_use_choicebook"
11131           if test "x$cache" = xyes; then
11132             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
11133           fi
11134
11135           if test x"$enablestring" = xdisable; then
11136             if test $wxUSE_CHOICEBOOK = yes; then
11137               result=no
11138             else
11139               result=yes
11140             fi
11141           else
11142             result=$wxUSE_CHOICEBOOK
11143           fi
11144
11145           { echo "$as_me:$LINENO: result: $result" >&5
11146 echo "${ECHO_T}$result" >&6; }
11147
11148
11149           enablestring=
11150           defaultval=$wxUSE_ALL_FEATURES
11151           if test -z "$defaultval"; then
11152               if test x"$enablestring" = xdisable; then
11153                   defaultval=yes
11154               else
11155                   defaultval=no
11156               fi
11157           fi
11158
11159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11160 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11161           # Check whether --enable-collpane was given.
11162 if test "${enable_collpane+set}" = set; then
11163   enableval=$enable_collpane;
11164                           if test "$enableval" = yes; then
11165                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11166                           else
11167                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11168                           fi
11169                           cache=yes
11170
11171 else
11172
11173                           cache=no
11174                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11175                           if test "x$LINE" != x ; then
11176                             eval "DEFAULT_$LINE"
11177                           fi
11178
11179                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11180
11181 fi
11182
11183
11184           eval "$wx_cv_use_collpane"
11185           if test "x$cache" = xyes; then
11186             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
11187           fi
11188
11189           if test x"$enablestring" = xdisable; then
11190             if test $wxUSE_COLLPANE = yes; then
11191               result=no
11192             else
11193               result=yes
11194             fi
11195           else
11196             result=$wxUSE_COLLPANE
11197           fi
11198
11199           { echo "$as_me:$LINENO: result: $result" >&5
11200 echo "${ECHO_T}$result" >&6; }
11201
11202
11203           enablestring=
11204           defaultval=$wxUSE_ALL_FEATURES
11205           if test -z "$defaultval"; then
11206               if test x"$enablestring" = xdisable; then
11207                   defaultval=yes
11208               else
11209                   defaultval=no
11210               fi
11211           fi
11212
11213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11214 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11215           # Check whether --enable-colourpicker was given.
11216 if test "${enable_colourpicker+set}" = set; then
11217   enableval=$enable_colourpicker;
11218                           if test "$enableval" = yes; then
11219                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11220                           else
11221                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11222                           fi
11223                           cache=yes
11224
11225 else
11226
11227                           cache=no
11228                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11229                           if test "x$LINE" != x ; then
11230                             eval "DEFAULT_$LINE"
11231                           fi
11232
11233                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11234
11235 fi
11236
11237
11238           eval "$wx_cv_use_colourpicker"
11239           if test "x$cache" = xyes; then
11240             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11241           fi
11242
11243           if test x"$enablestring" = xdisable; then
11244             if test $wxUSE_COLOURPICKERCTRL = yes; then
11245               result=no
11246             else
11247               result=yes
11248             fi
11249           else
11250             result=$wxUSE_COLOURPICKERCTRL
11251           fi
11252
11253           { echo "$as_me:$LINENO: result: $result" >&5
11254 echo "${ECHO_T}$result" >&6; }
11255
11256
11257           enablestring=
11258           defaultval=$wxUSE_ALL_FEATURES
11259           if test -z "$defaultval"; then
11260               if test x"$enablestring" = xdisable; then
11261                   defaultval=yes
11262               else
11263                   defaultval=no
11264               fi
11265           fi
11266
11267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11268 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11269           # Check whether --enable-combobox was given.
11270 if test "${enable_combobox+set}" = set; then
11271   enableval=$enable_combobox;
11272                           if test "$enableval" = yes; then
11273                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11274                           else
11275                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11276                           fi
11277                           cache=yes
11278
11279 else
11280
11281                           cache=no
11282                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11283                           if test "x$LINE" != x ; then
11284                             eval "DEFAULT_$LINE"
11285                           fi
11286
11287                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11288
11289 fi
11290
11291
11292           eval "$wx_cv_use_combobox"
11293           if test "x$cache" = xyes; then
11294             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11295           fi
11296
11297           if test x"$enablestring" = xdisable; then
11298             if test $wxUSE_COMBOBOX = yes; then
11299               result=no
11300             else
11301               result=yes
11302             fi
11303           else
11304             result=$wxUSE_COMBOBOX
11305           fi
11306
11307           { echo "$as_me:$LINENO: result: $result" >&5
11308 echo "${ECHO_T}$result" >&6; }
11309
11310
11311           enablestring=
11312           defaultval=$wxUSE_ALL_FEATURES
11313           if test -z "$defaultval"; then
11314               if test x"$enablestring" = xdisable; then
11315                   defaultval=yes
11316               else
11317                   defaultval=no
11318               fi
11319           fi
11320
11321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11322 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11323           # Check whether --enable-comboctrl was given.
11324 if test "${enable_comboctrl+set}" = set; then
11325   enableval=$enable_comboctrl;
11326                           if test "$enableval" = yes; then
11327                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11328                           else
11329                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11330                           fi
11331                           cache=yes
11332
11333 else
11334
11335                           cache=no
11336                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11337                           if test "x$LINE" != x ; then
11338                             eval "DEFAULT_$LINE"
11339                           fi
11340
11341                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11342
11343 fi
11344
11345
11346           eval "$wx_cv_use_comboctrl"
11347           if test "x$cache" = xyes; then
11348             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11349           fi
11350
11351           if test x"$enablestring" = xdisable; then
11352             if test $wxUSE_COMBOCTRL = yes; then
11353               result=no
11354             else
11355               result=yes
11356             fi
11357           else
11358             result=$wxUSE_COMBOCTRL
11359           fi
11360
11361           { echo "$as_me:$LINENO: result: $result" >&5
11362 echo "${ECHO_T}$result" >&6; }
11363
11364
11365           enablestring=
11366           defaultval=$wxUSE_ALL_FEATURES
11367           if test -z "$defaultval"; then
11368               if test x"$enablestring" = xdisable; then
11369                   defaultval=yes
11370               else
11371                   defaultval=no
11372               fi
11373           fi
11374
11375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11376 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11377           # Check whether --enable-datepick was given.
11378 if test "${enable_datepick+set}" = set; then
11379   enableval=$enable_datepick;
11380                           if test "$enableval" = yes; then
11381                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11382                           else
11383                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11384                           fi
11385                           cache=yes
11386
11387 else
11388
11389                           cache=no
11390                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11391                           if test "x$LINE" != x ; then
11392                             eval "DEFAULT_$LINE"
11393                           fi
11394
11395                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11396
11397 fi
11398
11399
11400           eval "$wx_cv_use_datepick"
11401           if test "x$cache" = xyes; then
11402             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11403           fi
11404
11405           if test x"$enablestring" = xdisable; then
11406             if test $wxUSE_DATEPICKCTRL = yes; then
11407               result=no
11408             else
11409               result=yes
11410             fi
11411           else
11412             result=$wxUSE_DATEPICKCTRL
11413           fi
11414
11415           { echo "$as_me:$LINENO: result: $result" >&5
11416 echo "${ECHO_T}$result" >&6; }
11417
11418
11419           enablestring=
11420           defaultval=$wxUSE_ALL_FEATURES
11421           if test -z "$defaultval"; then
11422               if test x"$enablestring" = xdisable; then
11423                   defaultval=yes
11424               else
11425                   defaultval=no
11426               fi
11427           fi
11428
11429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11430 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11431           # Check whether --enable-dirpicker was given.
11432 if test "${enable_dirpicker+set}" = set; then
11433   enableval=$enable_dirpicker;
11434                           if test "$enableval" = yes; then
11435                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11436                           else
11437                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11438                           fi
11439                           cache=yes
11440
11441 else
11442
11443                           cache=no
11444                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11445                           if test "x$LINE" != x ; then
11446                             eval "DEFAULT_$LINE"
11447                           fi
11448
11449                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11450
11451 fi
11452
11453
11454           eval "$wx_cv_use_dirpicker"
11455           if test "x$cache" = xyes; then
11456             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11457           fi
11458
11459           if test x"$enablestring" = xdisable; then
11460             if test $wxUSE_DIRPICKERCTRL = yes; then
11461               result=no
11462             else
11463               result=yes
11464             fi
11465           else
11466             result=$wxUSE_DIRPICKERCTRL
11467           fi
11468
11469           { echo "$as_me:$LINENO: result: $result" >&5
11470 echo "${ECHO_T}$result" >&6; }
11471
11472
11473           enablestring=
11474           defaultval=$wxUSE_ALL_FEATURES
11475           if test -z "$defaultval"; then
11476               if test x"$enablestring" = xdisable; then
11477                   defaultval=yes
11478               else
11479                   defaultval=no
11480               fi
11481           fi
11482
11483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11484 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11485           # Check whether --enable-display was given.
11486 if test "${enable_display+set}" = set; then
11487   enableval=$enable_display;
11488                           if test "$enableval" = yes; then
11489                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11490                           else
11491                             wx_cv_use_display='wxUSE_DISPLAY=no'
11492                           fi
11493                           cache=yes
11494
11495 else
11496
11497                           cache=no
11498                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11499                           if test "x$LINE" != x ; then
11500                             eval "DEFAULT_$LINE"
11501                           fi
11502
11503                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11504
11505 fi
11506
11507
11508           eval "$wx_cv_use_display"
11509           if test "x$cache" = xyes; then
11510             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11511           fi
11512
11513           if test x"$enablestring" = xdisable; then
11514             if test $wxUSE_DISPLAY = yes; then
11515               result=no
11516             else
11517               result=yes
11518             fi
11519           else
11520             result=$wxUSE_DISPLAY
11521           fi
11522
11523           { echo "$as_me:$LINENO: result: $result" >&5
11524 echo "${ECHO_T}$result" >&6; }
11525
11526
11527           enablestring=
11528           defaultval=$wxUSE_ALL_FEATURES
11529           if test -z "$defaultval"; then
11530               if test x"$enablestring" = xdisable; then
11531                   defaultval=yes
11532               else
11533                   defaultval=no
11534               fi
11535           fi
11536
11537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11538 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11539           # Check whether --enable-detect_sm was given.
11540 if test "${enable_detect_sm+set}" = set; then
11541   enableval=$enable_detect_sm;
11542                           if test "$enableval" = yes; then
11543                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11544                           else
11545                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11546                           fi
11547                           cache=yes
11548
11549 else
11550
11551                           cache=no
11552                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11553                           if test "x$LINE" != x ; then
11554                             eval "DEFAULT_$LINE"
11555                           fi
11556
11557                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11558
11559 fi
11560
11561
11562           eval "$wx_cv_use_detect_sm"
11563           if test "x$cache" = xyes; then
11564             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
11565           fi
11566
11567           if test x"$enablestring" = xdisable; then
11568             if test $wxUSE_DETECT_SM = yes; then
11569               result=no
11570             else
11571               result=yes
11572             fi
11573           else
11574             result=$wxUSE_DETECT_SM
11575           fi
11576
11577           { echo "$as_me:$LINENO: result: $result" >&5
11578 echo "${ECHO_T}$result" >&6; }
11579
11580
11581           enablestring=
11582           defaultval=$wxUSE_ALL_FEATURES
11583           if test -z "$defaultval"; then
11584               if test x"$enablestring" = xdisable; then
11585                   defaultval=yes
11586               else
11587                   defaultval=no
11588               fi
11589           fi
11590
11591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11592 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11593           # Check whether --enable-editablebox was given.
11594 if test "${enable_editablebox+set}" = set; then
11595   enableval=$enable_editablebox;
11596                           if test "$enableval" = yes; then
11597                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11598                           else
11599                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11600                           fi
11601                           cache=yes
11602
11603 else
11604
11605                           cache=no
11606                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
11607                           if test "x$LINE" != x ; then
11608                             eval "DEFAULT_$LINE"
11609                           fi
11610
11611                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11612
11613 fi
11614
11615
11616           eval "$wx_cv_use_editablebox"
11617           if test "x$cache" = xyes; then
11618             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
11619           fi
11620
11621           if test x"$enablestring" = xdisable; then
11622             if test $wxUSE_EDITABLELISTBOX = yes; then
11623               result=no
11624             else
11625               result=yes
11626             fi
11627           else
11628             result=$wxUSE_EDITABLELISTBOX
11629           fi
11630
11631           { echo "$as_me:$LINENO: result: $result" >&5
11632 echo "${ECHO_T}$result" >&6; }
11633
11634
11635           enablestring=
11636           defaultval=$wxUSE_ALL_FEATURES
11637           if test -z "$defaultval"; then
11638               if test x"$enablestring" = xdisable; then
11639                   defaultval=yes
11640               else
11641                   defaultval=no
11642               fi
11643           fi
11644
11645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11646 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11647           # Check whether --enable-filepicker was given.
11648 if test "${enable_filepicker+set}" = set; then
11649   enableval=$enable_filepicker;
11650                           if test "$enableval" = yes; then
11651                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11652                           else
11653                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11654                           fi
11655                           cache=yes
11656
11657 else
11658
11659                           cache=no
11660                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
11661                           if test "x$LINE" != x ; then
11662                             eval "DEFAULT_$LINE"
11663                           fi
11664
11665                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11666
11667 fi
11668
11669
11670           eval "$wx_cv_use_filepicker"
11671           if test "x$cache" = xyes; then
11672             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11673           fi
11674
11675           if test x"$enablestring" = xdisable; then
11676             if test $wxUSE_FILEPICKERCTRL = yes; then
11677               result=no
11678             else
11679               result=yes
11680             fi
11681           else
11682             result=$wxUSE_FILEPICKERCTRL
11683           fi
11684
11685           { echo "$as_me:$LINENO: result: $result" >&5
11686 echo "${ECHO_T}$result" >&6; }
11687
11688
11689           enablestring=
11690           defaultval=$wxUSE_ALL_FEATURES
11691           if test -z "$defaultval"; then
11692               if test x"$enablestring" = xdisable; then
11693                   defaultval=yes
11694               else
11695                   defaultval=no
11696               fi
11697           fi
11698
11699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11700 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11701           # Check whether --enable-fontpicker was given.
11702 if test "${enable_fontpicker+set}" = set; then
11703   enableval=$enable_fontpicker;
11704                           if test "$enableval" = yes; then
11705                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11706                           else
11707                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11708                           fi
11709                           cache=yes
11710
11711 else
11712
11713                           cache=no
11714                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
11715                           if test "x$LINE" != x ; then
11716                             eval "DEFAULT_$LINE"
11717                           fi
11718
11719                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11720
11721 fi
11722
11723
11724           eval "$wx_cv_use_fontpicker"
11725           if test "x$cache" = xyes; then
11726             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11727           fi
11728
11729           if test x"$enablestring" = xdisable; then
11730             if test $wxUSE_FONTPICKERCTRL = yes; then
11731               result=no
11732             else
11733               result=yes
11734             fi
11735           else
11736             result=$wxUSE_FONTPICKERCTRL
11737           fi
11738
11739           { echo "$as_me:$LINENO: result: $result" >&5
11740 echo "${ECHO_T}$result" >&6; }
11741
11742
11743           enablestring=
11744           defaultval=$wxUSE_ALL_FEATURES
11745           if test -z "$defaultval"; then
11746               if test x"$enablestring" = xdisable; then
11747                   defaultval=yes
11748               else
11749                   defaultval=no
11750               fi
11751           fi
11752
11753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11754 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11755           # Check whether --enable-gauge was given.
11756 if test "${enable_gauge+set}" = set; then
11757   enableval=$enable_gauge;
11758                           if test "$enableval" = yes; then
11759                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11760                           else
11761                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11762                           fi
11763                           cache=yes
11764
11765 else
11766
11767                           cache=no
11768                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
11769                           if test "x$LINE" != x ; then
11770                             eval "DEFAULT_$LINE"
11771                           fi
11772
11773                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11774
11775 fi
11776
11777
11778           eval "$wx_cv_use_gauge"
11779           if test "x$cache" = xyes; then
11780             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
11781           fi
11782
11783           if test x"$enablestring" = xdisable; then
11784             if test $wxUSE_GAUGE = yes; then
11785               result=no
11786             else
11787               result=yes
11788             fi
11789           else
11790             result=$wxUSE_GAUGE
11791           fi
11792
11793           { echo "$as_me:$LINENO: result: $result" >&5
11794 echo "${ECHO_T}$result" >&6; }
11795
11796
11797           enablestring=
11798           defaultval=$wxUSE_ALL_FEATURES
11799           if test -z "$defaultval"; then
11800               if test x"$enablestring" = xdisable; then
11801                   defaultval=yes
11802               else
11803                   defaultval=no
11804               fi
11805           fi
11806
11807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11808 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11809           # Check whether --enable-grid was given.
11810 if test "${enable_grid+set}" = set; then
11811   enableval=$enable_grid;
11812                           if test "$enableval" = yes; then
11813                             wx_cv_use_grid='wxUSE_GRID=yes'
11814                           else
11815                             wx_cv_use_grid='wxUSE_GRID=no'
11816                           fi
11817                           cache=yes
11818
11819 else
11820
11821                           cache=no
11822                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
11823                           if test "x$LINE" != x ; then
11824                             eval "DEFAULT_$LINE"
11825                           fi
11826
11827                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11828
11829 fi
11830
11831
11832           eval "$wx_cv_use_grid"
11833           if test "x$cache" = xyes; then
11834             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
11835           fi
11836
11837           if test x"$enablestring" = xdisable; then
11838             if test $wxUSE_GRID = yes; then
11839               result=no
11840             else
11841               result=yes
11842             fi
11843           else
11844             result=$wxUSE_GRID
11845           fi
11846
11847           { echo "$as_me:$LINENO: result: $result" >&5
11848 echo "${ECHO_T}$result" >&6; }
11849
11850
11851           enablestring=
11852           defaultval=$wxUSE_ALL_FEATURES
11853           if test -z "$defaultval"; then
11854               if test x"$enablestring" = xdisable; then
11855                   defaultval=yes
11856               else
11857                   defaultval=no
11858               fi
11859           fi
11860
11861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
11862 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
11863           # Check whether --enable-dataviewctrl was given.
11864 if test "${enable_dataviewctrl+set}" = set; then
11865   enableval=$enable_dataviewctrl;
11866                           if test "$enableval" = yes; then
11867                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
11868                           else
11869                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
11870                           fi
11871                           cache=yes
11872
11873 else
11874
11875                           cache=no
11876                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
11877                           if test "x$LINE" != x ; then
11878                             eval "DEFAULT_$LINE"
11879                           fi
11880
11881                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
11882
11883 fi
11884
11885
11886           eval "$wx_cv_use_dataviewctrl"
11887           if test "x$cache" = xyes; then
11888             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
11889           fi
11890
11891           if test x"$enablestring" = xdisable; then
11892             if test $wxUSE_DATAVIEWCTRL = yes; then
11893               result=no
11894             else
11895               result=yes
11896             fi
11897           else
11898             result=$wxUSE_DATAVIEWCTRL
11899           fi
11900
11901           { echo "$as_me:$LINENO: result: $result" >&5
11902 echo "${ECHO_T}$result" >&6; }
11903
11904
11905           enablestring=
11906           defaultval=$wxUSE_ALL_FEATURES
11907           if test -z "$defaultval"; then
11908               if test x"$enablestring" = xdisable; then
11909                   defaultval=yes
11910               else
11911                   defaultval=no
11912               fi
11913           fi
11914
11915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11916 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11917           # Check whether --enable-hyperlink was given.
11918 if test "${enable_hyperlink+set}" = set; then
11919   enableval=$enable_hyperlink;
11920                           if test "$enableval" = yes; then
11921                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11922                           else
11923                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11924                           fi
11925                           cache=yes
11926
11927 else
11928
11929                           cache=no
11930                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
11931                           if test "x$LINE" != x ; then
11932                             eval "DEFAULT_$LINE"
11933                           fi
11934
11935                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11936
11937 fi
11938
11939
11940           eval "$wx_cv_use_hyperlink"
11941           if test "x$cache" = xyes; then
11942             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
11943           fi
11944
11945           if test x"$enablestring" = xdisable; then
11946             if test $wxUSE_HYPERLINKCTRL = yes; then
11947               result=no
11948             else
11949               result=yes
11950             fi
11951           else
11952             result=$wxUSE_HYPERLINKCTRL
11953           fi
11954
11955           { echo "$as_me:$LINENO: result: $result" >&5
11956 echo "${ECHO_T}$result" >&6; }
11957
11958
11959           enablestring=
11960           defaultval=$wxUSE_ALL_FEATURES
11961           if test -z "$defaultval"; then
11962               if test x"$enablestring" = xdisable; then
11963                   defaultval=yes
11964               else
11965                   defaultval=no
11966               fi
11967           fi
11968
11969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11970 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11971           # Check whether --enable-imaglist was given.
11972 if test "${enable_imaglist+set}" = set; then
11973   enableval=$enable_imaglist;
11974                           if test "$enableval" = yes; then
11975                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11976                           else
11977                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11978                           fi
11979                           cache=yes
11980
11981 else
11982
11983                           cache=no
11984                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
11985                           if test "x$LINE" != x ; then
11986                             eval "DEFAULT_$LINE"
11987                           fi
11988
11989                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11990
11991 fi
11992
11993
11994           eval "$wx_cv_use_imaglist"
11995           if test "x$cache" = xyes; then
11996             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
11997           fi
11998
11999           if test x"$enablestring" = xdisable; then
12000             if test $wxUSE_IMAGLIST = yes; then
12001               result=no
12002             else
12003               result=yes
12004             fi
12005           else
12006             result=$wxUSE_IMAGLIST
12007           fi
12008
12009           { echo "$as_me:$LINENO: result: $result" >&5
12010 echo "${ECHO_T}$result" >&6; }
12011
12012
12013           enablestring=
12014           defaultval=$wxUSE_ALL_FEATURES
12015           if test -z "$defaultval"; then
12016               if test x"$enablestring" = xdisable; then
12017                   defaultval=yes
12018               else
12019                   defaultval=no
12020               fi
12021           fi
12022
12023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12024 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12025           # Check whether --enable-listbook was given.
12026 if test "${enable_listbook+set}" = set; then
12027   enableval=$enable_listbook;
12028                           if test "$enableval" = yes; then
12029                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12030                           else
12031                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12032                           fi
12033                           cache=yes
12034
12035 else
12036
12037                           cache=no
12038                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12039                           if test "x$LINE" != x ; then
12040                             eval "DEFAULT_$LINE"
12041                           fi
12042
12043                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12044
12045 fi
12046
12047
12048           eval "$wx_cv_use_listbook"
12049           if test "x$cache" = xyes; then
12050             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
12051           fi
12052
12053           if test x"$enablestring" = xdisable; then
12054             if test $wxUSE_LISTBOOK = yes; then
12055               result=no
12056             else
12057               result=yes
12058             fi
12059           else
12060             result=$wxUSE_LISTBOOK
12061           fi
12062
12063           { echo "$as_me:$LINENO: result: $result" >&5
12064 echo "${ECHO_T}$result" >&6; }
12065
12066
12067           enablestring=
12068           defaultval=$wxUSE_ALL_FEATURES
12069           if test -z "$defaultval"; then
12070               if test x"$enablestring" = xdisable; then
12071                   defaultval=yes
12072               else
12073                   defaultval=no
12074               fi
12075           fi
12076
12077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12078 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12079           # Check whether --enable-listbox was given.
12080 if test "${enable_listbox+set}" = set; then
12081   enableval=$enable_listbox;
12082                           if test "$enableval" = yes; then
12083                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12084                           else
12085                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12086                           fi
12087                           cache=yes
12088
12089 else
12090
12091                           cache=no
12092                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12093                           if test "x$LINE" != x ; then
12094                             eval "DEFAULT_$LINE"
12095                           fi
12096
12097                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12098
12099 fi
12100
12101
12102           eval "$wx_cv_use_listbox"
12103           if test "x$cache" = xyes; then
12104             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
12105           fi
12106
12107           if test x"$enablestring" = xdisable; then
12108             if test $wxUSE_LISTBOX = yes; then
12109               result=no
12110             else
12111               result=yes
12112             fi
12113           else
12114             result=$wxUSE_LISTBOX
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}-listctrl" >&5
12132 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12133           # Check whether --enable-listctrl was given.
12134 if test "${enable_listctrl+set}" = set; then
12135   enableval=$enable_listctrl;
12136                           if test "$enableval" = yes; then
12137                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12138                           else
12139                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12140                           fi
12141                           cache=yes
12142
12143 else
12144
12145                           cache=no
12146                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12147                           if test "x$LINE" != x ; then
12148                             eval "DEFAULT_$LINE"
12149                           fi
12150
12151                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12152
12153 fi
12154
12155
12156           eval "$wx_cv_use_listctrl"
12157           if test "x$cache" = xyes; then
12158             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
12159           fi
12160
12161           if test x"$enablestring" = xdisable; then
12162             if test $wxUSE_LISTCTRL = yes; then
12163               result=no
12164             else
12165               result=yes
12166             fi
12167           else
12168             result=$wxUSE_LISTCTRL
12169           fi
12170
12171           { echo "$as_me:$LINENO: result: $result" >&5
12172 echo "${ECHO_T}$result" >&6; }
12173
12174
12175           enablestring=
12176           defaultval=$wxUSE_ALL_FEATURES
12177           if test -z "$defaultval"; then
12178               if test x"$enablestring" = xdisable; then
12179                   defaultval=yes
12180               else
12181                   defaultval=no
12182               fi
12183           fi
12184
12185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12186 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12187           # Check whether --enable-notebook was given.
12188 if test "${enable_notebook+set}" = set; then
12189   enableval=$enable_notebook;
12190                           if test "$enableval" = yes; then
12191                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12192                           else
12193                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12194                           fi
12195                           cache=yes
12196
12197 else
12198
12199                           cache=no
12200                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12201                           if test "x$LINE" != x ; then
12202                             eval "DEFAULT_$LINE"
12203                           fi
12204
12205                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12206
12207 fi
12208
12209
12210           eval "$wx_cv_use_notebook"
12211           if test "x$cache" = xyes; then
12212             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
12213           fi
12214
12215           if test x"$enablestring" = xdisable; then
12216             if test $wxUSE_NOTEBOOK = yes; then
12217               result=no
12218             else
12219               result=yes
12220             fi
12221           else
12222             result=$wxUSE_NOTEBOOK
12223           fi
12224
12225           { echo "$as_me:$LINENO: result: $result" >&5
12226 echo "${ECHO_T}$result" >&6; }
12227
12228
12229           enablestring=
12230           defaultval=$wxUSE_ALL_FEATURES
12231           if test -z "$defaultval"; then
12232               if test x"$enablestring" = xdisable; then
12233                   defaultval=yes
12234               else
12235                   defaultval=no
12236               fi
12237           fi
12238
12239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12240 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12241           # Check whether --enable-odcombobox was given.
12242 if test "${enable_odcombobox+set}" = set; then
12243   enableval=$enable_odcombobox;
12244                           if test "$enableval" = yes; then
12245                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12246                           else
12247                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12248                           fi
12249                           cache=yes
12250
12251 else
12252
12253                           cache=no
12254                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12255                           if test "x$LINE" != x ; then
12256                             eval "DEFAULT_$LINE"
12257                           fi
12258
12259                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12260
12261 fi
12262
12263
12264           eval "$wx_cv_use_odcombobox"
12265           if test "x$cache" = xyes; then
12266             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12267           fi
12268
12269           if test x"$enablestring" = xdisable; then
12270             if test $wxUSE_ODCOMBOBOX = yes; then
12271               result=no
12272             else
12273               result=yes
12274             fi
12275           else
12276             result=$wxUSE_ODCOMBOBOX
12277           fi
12278
12279           { echo "$as_me:$LINENO: result: $result" >&5
12280 echo "${ECHO_T}$result" >&6; }
12281
12282
12283           enablestring=
12284           defaultval=$wxUSE_ALL_FEATURES
12285           if test -z "$defaultval"; then
12286               if test x"$enablestring" = xdisable; then
12287                   defaultval=yes
12288               else
12289                   defaultval=no
12290               fi
12291           fi
12292
12293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12294 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12295           # Check whether --enable-radiobox was given.
12296 if test "${enable_radiobox+set}" = set; then
12297   enableval=$enable_radiobox;
12298                           if test "$enableval" = yes; then
12299                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12300                           else
12301                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12302                           fi
12303                           cache=yes
12304
12305 else
12306
12307                           cache=no
12308                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12309                           if test "x$LINE" != x ; then
12310                             eval "DEFAULT_$LINE"
12311                           fi
12312
12313                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12314
12315 fi
12316
12317
12318           eval "$wx_cv_use_radiobox"
12319           if test "x$cache" = xyes; then
12320             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12321           fi
12322
12323           if test x"$enablestring" = xdisable; then
12324             if test $wxUSE_RADIOBOX = yes; then
12325               result=no
12326             else
12327               result=yes
12328             fi
12329           else
12330             result=$wxUSE_RADIOBOX
12331           fi
12332
12333           { echo "$as_me:$LINENO: result: $result" >&5
12334 echo "${ECHO_T}$result" >&6; }
12335
12336
12337           enablestring=
12338           defaultval=$wxUSE_ALL_FEATURES
12339           if test -z "$defaultval"; then
12340               if test x"$enablestring" = xdisable; then
12341                   defaultval=yes
12342               else
12343                   defaultval=no
12344               fi
12345           fi
12346
12347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12348 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12349           # Check whether --enable-radiobtn was given.
12350 if test "${enable_radiobtn+set}" = set; then
12351   enableval=$enable_radiobtn;
12352                           if test "$enableval" = yes; then
12353                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12354                           else
12355                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12356                           fi
12357                           cache=yes
12358
12359 else
12360
12361                           cache=no
12362                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12363                           if test "x$LINE" != x ; then
12364                             eval "DEFAULT_$LINE"
12365                           fi
12366
12367                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12368
12369 fi
12370
12371
12372           eval "$wx_cv_use_radiobtn"
12373           if test "x$cache" = xyes; then
12374             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12375           fi
12376
12377           if test x"$enablestring" = xdisable; then
12378             if test $wxUSE_RADIOBTN = yes; then
12379               result=no
12380             else
12381               result=yes
12382             fi
12383           else
12384             result=$wxUSE_RADIOBTN
12385           fi
12386
12387           { echo "$as_me:$LINENO: result: $result" >&5
12388 echo "${ECHO_T}$result" >&6; }
12389
12390
12391           enablestring=
12392           defaultval=$wxUSE_ALL_FEATURES
12393           if test -z "$defaultval"; then
12394               if test x"$enablestring" = xdisable; then
12395                   defaultval=yes
12396               else
12397                   defaultval=no
12398               fi
12399           fi
12400
12401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12402 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12403           # Check whether --enable-sash was given.
12404 if test "${enable_sash+set}" = set; then
12405   enableval=$enable_sash;
12406                           if test "$enableval" = yes; then
12407                             wx_cv_use_sash='wxUSE_SASH=yes'
12408                           else
12409                             wx_cv_use_sash='wxUSE_SASH=no'
12410                           fi
12411                           cache=yes
12412
12413 else
12414
12415                           cache=no
12416                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12417                           if test "x$LINE" != x ; then
12418                             eval "DEFAULT_$LINE"
12419                           fi
12420
12421                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12422
12423 fi
12424
12425
12426           eval "$wx_cv_use_sash"
12427           if test "x$cache" = xyes; then
12428             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
12429           fi
12430
12431           if test x"$enablestring" = xdisable; then
12432             if test $wxUSE_SASH = yes; then
12433               result=no
12434             else
12435               result=yes
12436             fi
12437           else
12438             result=$wxUSE_SASH
12439           fi
12440
12441           { echo "$as_me:$LINENO: result: $result" >&5
12442 echo "${ECHO_T}$result" >&6; }
12443
12444
12445           enablestring=
12446           defaultval=$wxUSE_ALL_FEATURES
12447           if test -z "$defaultval"; then
12448               if test x"$enablestring" = xdisable; then
12449                   defaultval=yes
12450               else
12451                   defaultval=no
12452               fi
12453           fi
12454
12455           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12456 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12457           # Check whether --enable-scrollbar was given.
12458 if test "${enable_scrollbar+set}" = set; then
12459   enableval=$enable_scrollbar;
12460                           if test "$enableval" = yes; then
12461                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12462                           else
12463                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12464                           fi
12465                           cache=yes
12466
12467 else
12468
12469                           cache=no
12470                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12471                           if test "x$LINE" != x ; then
12472                             eval "DEFAULT_$LINE"
12473                           fi
12474
12475                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12476
12477 fi
12478
12479
12480           eval "$wx_cv_use_scrollbar"
12481           if test "x$cache" = xyes; then
12482             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
12483           fi
12484
12485           if test x"$enablestring" = xdisable; then
12486             if test $wxUSE_SCROLLBAR = yes; then
12487               result=no
12488             else
12489               result=yes
12490             fi
12491           else
12492             result=$wxUSE_SCROLLBAR
12493           fi
12494
12495           { echo "$as_me:$LINENO: result: $result" >&5
12496 echo "${ECHO_T}$result" >&6; }
12497
12498
12499           enablestring=
12500           defaultval=$wxUSE_ALL_FEATURES
12501           if test -z "$defaultval"; then
12502               if test x"$enablestring" = xdisable; then
12503                   defaultval=yes
12504               else
12505                   defaultval=no
12506               fi
12507           fi
12508
12509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12510 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12511           # Check whether --enable-searchctrl was given.
12512 if test "${enable_searchctrl+set}" = set; then
12513   enableval=$enable_searchctrl;
12514                           if test "$enableval" = yes; then
12515                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12516                           else
12517                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12518                           fi
12519                           cache=yes
12520
12521 else
12522
12523                           cache=no
12524                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
12525                           if test "x$LINE" != x ; then
12526                             eval "DEFAULT_$LINE"
12527                           fi
12528
12529                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12530
12531 fi
12532
12533
12534           eval "$wx_cv_use_searchctrl"
12535           if test "x$cache" = xyes; then
12536             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
12537           fi
12538
12539           if test x"$enablestring" = xdisable; then
12540             if test $wxUSE_SEARCHCTRL = yes; then
12541               result=no
12542             else
12543               result=yes
12544             fi
12545           else
12546             result=$wxUSE_SEARCHCTRL
12547           fi
12548
12549           { echo "$as_me:$LINENO: result: $result" >&5
12550 echo "${ECHO_T}$result" >&6; }
12551
12552
12553           enablestring=
12554           defaultval=$wxUSE_ALL_FEATURES
12555           if test -z "$defaultval"; then
12556               if test x"$enablestring" = xdisable; then
12557                   defaultval=yes
12558               else
12559                   defaultval=no
12560               fi
12561           fi
12562
12563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12564 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12565           # Check whether --enable-slider was given.
12566 if test "${enable_slider+set}" = set; then
12567   enableval=$enable_slider;
12568                           if test "$enableval" = yes; then
12569                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12570                           else
12571                             wx_cv_use_slider='wxUSE_SLIDER=no'
12572                           fi
12573                           cache=yes
12574
12575 else
12576
12577                           cache=no
12578                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
12579                           if test "x$LINE" != x ; then
12580                             eval "DEFAULT_$LINE"
12581                           fi
12582
12583                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12584
12585 fi
12586
12587
12588           eval "$wx_cv_use_slider"
12589           if test "x$cache" = xyes; then
12590             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
12591           fi
12592
12593           if test x"$enablestring" = xdisable; then
12594             if test $wxUSE_SLIDER = yes; then
12595               result=no
12596             else
12597               result=yes
12598             fi
12599           else
12600             result=$wxUSE_SLIDER
12601           fi
12602
12603           { echo "$as_me:$LINENO: result: $result" >&5
12604 echo "${ECHO_T}$result" >&6; }
12605
12606
12607           enablestring=
12608           defaultval=$wxUSE_ALL_FEATURES
12609           if test -z "$defaultval"; then
12610               if test x"$enablestring" = xdisable; then
12611                   defaultval=yes
12612               else
12613                   defaultval=no
12614               fi
12615           fi
12616
12617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12618 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12619           # Check whether --enable-spinbtn was given.
12620 if test "${enable_spinbtn+set}" = set; then
12621   enableval=$enable_spinbtn;
12622                           if test "$enableval" = yes; then
12623                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12624                           else
12625                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12626                           fi
12627                           cache=yes
12628
12629 else
12630
12631                           cache=no
12632                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
12633                           if test "x$LINE" != x ; then
12634                             eval "DEFAULT_$LINE"
12635                           fi
12636
12637                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12638
12639 fi
12640
12641
12642           eval "$wx_cv_use_spinbtn"
12643           if test "x$cache" = xyes; then
12644             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
12645           fi
12646
12647           if test x"$enablestring" = xdisable; then
12648             if test $wxUSE_SPINBTN = yes; then
12649               result=no
12650             else
12651               result=yes
12652             fi
12653           else
12654             result=$wxUSE_SPINBTN
12655           fi
12656
12657           { echo "$as_me:$LINENO: result: $result" >&5
12658 echo "${ECHO_T}$result" >&6; }
12659
12660
12661           enablestring=
12662           defaultval=$wxUSE_ALL_FEATURES
12663           if test -z "$defaultval"; then
12664               if test x"$enablestring" = xdisable; then
12665                   defaultval=yes
12666               else
12667                   defaultval=no
12668               fi
12669           fi
12670
12671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12672 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12673           # Check whether --enable-spinctrl was given.
12674 if test "${enable_spinctrl+set}" = set; then
12675   enableval=$enable_spinctrl;
12676                           if test "$enableval" = yes; then
12677                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12678                           else
12679                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12680                           fi
12681                           cache=yes
12682
12683 else
12684
12685                           cache=no
12686                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
12687                           if test "x$LINE" != x ; then
12688                             eval "DEFAULT_$LINE"
12689                           fi
12690
12691                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12692
12693 fi
12694
12695
12696           eval "$wx_cv_use_spinctrl"
12697           if test "x$cache" = xyes; then
12698             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
12699           fi
12700
12701           if test x"$enablestring" = xdisable; then
12702             if test $wxUSE_SPINCTRL = yes; then
12703               result=no
12704             else
12705               result=yes
12706             fi
12707           else
12708             result=$wxUSE_SPINCTRL
12709           fi
12710
12711           { echo "$as_me:$LINENO: result: $result" >&5
12712 echo "${ECHO_T}$result" >&6; }
12713
12714
12715           enablestring=
12716           defaultval=$wxUSE_ALL_FEATURES
12717           if test -z "$defaultval"; then
12718               if test x"$enablestring" = xdisable; then
12719                   defaultval=yes
12720               else
12721                   defaultval=no
12722               fi
12723           fi
12724
12725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12726 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12727           # Check whether --enable-splitter was given.
12728 if test "${enable_splitter+set}" = set; then
12729   enableval=$enable_splitter;
12730                           if test "$enableval" = yes; then
12731                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12732                           else
12733                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12734                           fi
12735                           cache=yes
12736
12737 else
12738
12739                           cache=no
12740                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
12741                           if test "x$LINE" != x ; then
12742                             eval "DEFAULT_$LINE"
12743                           fi
12744
12745                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12746
12747 fi
12748
12749
12750           eval "$wx_cv_use_splitter"
12751           if test "x$cache" = xyes; then
12752             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
12753           fi
12754
12755           if test x"$enablestring" = xdisable; then
12756             if test $wxUSE_SPLITTER = yes; then
12757               result=no
12758             else
12759               result=yes
12760             fi
12761           else
12762             result=$wxUSE_SPLITTER
12763           fi
12764
12765           { echo "$as_me:$LINENO: result: $result" >&5
12766 echo "${ECHO_T}$result" >&6; }
12767
12768
12769           enablestring=
12770           defaultval=$wxUSE_ALL_FEATURES
12771           if test -z "$defaultval"; then
12772               if test x"$enablestring" = xdisable; then
12773                   defaultval=yes
12774               else
12775                   defaultval=no
12776               fi
12777           fi
12778
12779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12780 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12781           # Check whether --enable-statbmp was given.
12782 if test "${enable_statbmp+set}" = set; then
12783   enableval=$enable_statbmp;
12784                           if test "$enableval" = yes; then
12785                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12786                           else
12787                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12788                           fi
12789                           cache=yes
12790
12791 else
12792
12793                           cache=no
12794                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
12795                           if test "x$LINE" != x ; then
12796                             eval "DEFAULT_$LINE"
12797                           fi
12798
12799                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12800
12801 fi
12802
12803
12804           eval "$wx_cv_use_statbmp"
12805           if test "x$cache" = xyes; then
12806             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
12807           fi
12808
12809           if test x"$enablestring" = xdisable; then
12810             if test $wxUSE_STATBMP = yes; then
12811               result=no
12812             else
12813               result=yes
12814             fi
12815           else
12816             result=$wxUSE_STATBMP
12817           fi
12818
12819           { echo "$as_me:$LINENO: result: $result" >&5
12820 echo "${ECHO_T}$result" >&6; }
12821
12822
12823           enablestring=
12824           defaultval=$wxUSE_ALL_FEATURES
12825           if test -z "$defaultval"; then
12826               if test x"$enablestring" = xdisable; then
12827                   defaultval=yes
12828               else
12829                   defaultval=no
12830               fi
12831           fi
12832
12833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12834 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12835           # Check whether --enable-statbox was given.
12836 if test "${enable_statbox+set}" = set; then
12837   enableval=$enable_statbox;
12838                           if test "$enableval" = yes; then
12839                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12840                           else
12841                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12842                           fi
12843                           cache=yes
12844
12845 else
12846
12847                           cache=no
12848                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
12849                           if test "x$LINE" != x ; then
12850                             eval "DEFAULT_$LINE"
12851                           fi
12852
12853                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12854
12855 fi
12856
12857
12858           eval "$wx_cv_use_statbox"
12859           if test "x$cache" = xyes; then
12860             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
12861           fi
12862
12863           if test x"$enablestring" = xdisable; then
12864             if test $wxUSE_STATBOX = yes; then
12865               result=no
12866             else
12867               result=yes
12868             fi
12869           else
12870             result=$wxUSE_STATBOX
12871           fi
12872
12873           { echo "$as_me:$LINENO: result: $result" >&5
12874 echo "${ECHO_T}$result" >&6; }
12875
12876
12877           enablestring=
12878           defaultval=$wxUSE_ALL_FEATURES
12879           if test -z "$defaultval"; then
12880               if test x"$enablestring" = xdisable; then
12881                   defaultval=yes
12882               else
12883                   defaultval=no
12884               fi
12885           fi
12886
12887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12888 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12889           # Check whether --enable-statline was given.
12890 if test "${enable_statline+set}" = set; then
12891   enableval=$enable_statline;
12892                           if test "$enableval" = yes; then
12893                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12894                           else
12895                             wx_cv_use_statline='wxUSE_STATLINE=no'
12896                           fi
12897                           cache=yes
12898
12899 else
12900
12901                           cache=no
12902                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
12903                           if test "x$LINE" != x ; then
12904                             eval "DEFAULT_$LINE"
12905                           fi
12906
12907                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12908
12909 fi
12910
12911
12912           eval "$wx_cv_use_statline"
12913           if test "x$cache" = xyes; then
12914             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
12915           fi
12916
12917           if test x"$enablestring" = xdisable; then
12918             if test $wxUSE_STATLINE = yes; then
12919               result=no
12920             else
12921               result=yes
12922             fi
12923           else
12924             result=$wxUSE_STATLINE
12925           fi
12926
12927           { echo "$as_me:$LINENO: result: $result" >&5
12928 echo "${ECHO_T}$result" >&6; }
12929
12930
12931           enablestring=
12932           defaultval=$wxUSE_ALL_FEATURES
12933           if test -z "$defaultval"; then
12934               if test x"$enablestring" = xdisable; then
12935                   defaultval=yes
12936               else
12937                   defaultval=no
12938               fi
12939           fi
12940
12941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12942 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12943           # Check whether --enable-stattext was given.
12944 if test "${enable_stattext+set}" = set; then
12945   enableval=$enable_stattext;
12946                           if test "$enableval" = yes; then
12947                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12948                           else
12949                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12950                           fi
12951                           cache=yes
12952
12953 else
12954
12955                           cache=no
12956                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
12957                           if test "x$LINE" != x ; then
12958                             eval "DEFAULT_$LINE"
12959                           fi
12960
12961                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12962
12963 fi
12964
12965
12966           eval "$wx_cv_use_stattext"
12967           if test "x$cache" = xyes; then
12968             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
12969           fi
12970
12971           if test x"$enablestring" = xdisable; then
12972             if test $wxUSE_STATTEXT = yes; then
12973               result=no
12974             else
12975               result=yes
12976             fi
12977           else
12978             result=$wxUSE_STATTEXT
12979           fi
12980
12981           { echo "$as_me:$LINENO: result: $result" >&5
12982 echo "${ECHO_T}$result" >&6; }
12983
12984
12985           enablestring=
12986           defaultval=$wxUSE_ALL_FEATURES
12987           if test -z "$defaultval"; then
12988               if test x"$enablestring" = xdisable; then
12989                   defaultval=yes
12990               else
12991                   defaultval=no
12992               fi
12993           fi
12994
12995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12996 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12997           # Check whether --enable-statusbar was given.
12998 if test "${enable_statusbar+set}" = set; then
12999   enableval=$enable_statusbar;
13000                           if test "$enableval" = yes; then
13001                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13002                           else
13003                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13004                           fi
13005                           cache=yes
13006
13007 else
13008
13009                           cache=no
13010                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13011                           if test "x$LINE" != x ; then
13012                             eval "DEFAULT_$LINE"
13013                           fi
13014
13015                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13016
13017 fi
13018
13019
13020           eval "$wx_cv_use_statusbar"
13021           if test "x$cache" = xyes; then
13022             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
13023           fi
13024
13025           if test x"$enablestring" = xdisable; then
13026             if test $wxUSE_STATUSBAR = yes; then
13027               result=no
13028             else
13029               result=yes
13030             fi
13031           else
13032             result=$wxUSE_STATUSBAR
13033           fi
13034
13035           { echo "$as_me:$LINENO: result: $result" >&5
13036 echo "${ECHO_T}$result" >&6; }
13037
13038
13039           enablestring=
13040           defaultval=$wxUSE_ALL_FEATURES
13041           if test -z "$defaultval"; then
13042               if test x"$enablestring" = xdisable; then
13043                   defaultval=yes
13044               else
13045                   defaultval=no
13046               fi
13047           fi
13048
13049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13050 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13051           # Check whether --enable-tabdialog was given.
13052 if test "${enable_tabdialog+set}" = set; then
13053   enableval=$enable_tabdialog;
13054                           if test "$enableval" = yes; then
13055                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13056                           else
13057                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13058                           fi
13059                           cache=yes
13060
13061 else
13062
13063                           cache=no
13064                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13065                           if test "x$LINE" != x ; then
13066                             eval "DEFAULT_$LINE"
13067                           fi
13068
13069                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13070
13071 fi
13072
13073
13074           eval "$wx_cv_use_tabdialog"
13075           if test "x$cache" = xyes; then
13076             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
13077           fi
13078
13079           if test x"$enablestring" = xdisable; then
13080             if test $wxUSE_TAB_DIALOG = yes; then
13081               result=no
13082             else
13083               result=yes
13084             fi
13085           else
13086             result=$wxUSE_TAB_DIALOG
13087           fi
13088
13089           { echo "$as_me:$LINENO: result: $result" >&5
13090 echo "${ECHO_T}$result" >&6; }
13091
13092
13093           enablestring=
13094           defaultval=$wxUSE_ALL_FEATURES
13095           if test -z "$defaultval"; then
13096               if test x"$enablestring" = xdisable; then
13097                   defaultval=yes
13098               else
13099                   defaultval=no
13100               fi
13101           fi
13102
13103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13104 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13105           # Check whether --enable-taskbaricon was given.
13106 if test "${enable_taskbaricon+set}" = set; then
13107   enableval=$enable_taskbaricon;
13108                           if test "$enableval" = yes; then
13109                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13110                           else
13111                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13112                           fi
13113                           cache=yes
13114
13115 else
13116
13117                           cache=no
13118                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13119                           if test "x$LINE" != x ; then
13120                             eval "DEFAULT_$LINE"
13121                           fi
13122
13123                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13124
13125 fi
13126
13127
13128           eval "$wx_cv_use_taskbaricon"
13129           if test "x$cache" = xyes; then
13130             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
13131           fi
13132
13133           if test x"$enablestring" = xdisable; then
13134             if test $wxUSE_TASKBARICON = yes; then
13135               result=no
13136             else
13137               result=yes
13138             fi
13139           else
13140             result=$wxUSE_TASKBARICON
13141           fi
13142
13143           { echo "$as_me:$LINENO: result: $result" >&5
13144 echo "${ECHO_T}$result" >&6; }
13145
13146
13147           enablestring=
13148           defaultval=$wxUSE_ALL_FEATURES
13149           if test -z "$defaultval"; then
13150               if test x"$enablestring" = xdisable; then
13151                   defaultval=yes
13152               else
13153                   defaultval=no
13154               fi
13155           fi
13156
13157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13158 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13159           # Check whether --enable-textctrl was given.
13160 if test "${enable_textctrl+set}" = set; then
13161   enableval=$enable_textctrl;
13162                           if test "$enableval" = yes; then
13163                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13164                           else
13165                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13166                           fi
13167                           cache=yes
13168
13169 else
13170
13171                           cache=no
13172                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13173                           if test "x$LINE" != x ; then
13174                             eval "DEFAULT_$LINE"
13175                           fi
13176
13177                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13178
13179 fi
13180
13181
13182           eval "$wx_cv_use_textctrl"
13183           if test "x$cache" = xyes; then
13184             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
13185           fi
13186
13187           if test x"$enablestring" = xdisable; then
13188             if test $wxUSE_TEXTCTRL = yes; then
13189               result=no
13190             else
13191               result=yes
13192             fi
13193           else
13194             result=$wxUSE_TEXTCTRL
13195           fi
13196
13197           { echo "$as_me:$LINENO: result: $result" >&5
13198 echo "${ECHO_T}$result" >&6; }
13199
13200
13201           enablestring=
13202           defaultval=$wxUSE_ALL_FEATURES
13203           if test -z "$defaultval"; then
13204               if test x"$enablestring" = xdisable; then
13205                   defaultval=yes
13206               else
13207                   defaultval=no
13208               fi
13209           fi
13210
13211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13212 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13213           # Check whether --enable-togglebtn was given.
13214 if test "${enable_togglebtn+set}" = set; then
13215   enableval=$enable_togglebtn;
13216                           if test "$enableval" = yes; then
13217                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13218                           else
13219                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13220                           fi
13221                           cache=yes
13222
13223 else
13224
13225                           cache=no
13226                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13227                           if test "x$LINE" != x ; then
13228                             eval "DEFAULT_$LINE"
13229                           fi
13230
13231                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13232
13233 fi
13234
13235
13236           eval "$wx_cv_use_togglebtn"
13237           if test "x$cache" = xyes; then
13238             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
13239           fi
13240
13241           if test x"$enablestring" = xdisable; then
13242             if test $wxUSE_TOGGLEBTN = yes; then
13243               result=no
13244             else
13245               result=yes
13246             fi
13247           else
13248             result=$wxUSE_TOGGLEBTN
13249           fi
13250
13251           { echo "$as_me:$LINENO: result: $result" >&5
13252 echo "${ECHO_T}$result" >&6; }
13253
13254
13255           enablestring=
13256           defaultval=$wxUSE_ALL_FEATURES
13257           if test -z "$defaultval"; then
13258               if test x"$enablestring" = xdisable; then
13259                   defaultval=yes
13260               else
13261                   defaultval=no
13262               fi
13263           fi
13264
13265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13266 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13267           # Check whether --enable-toolbar was given.
13268 if test "${enable_toolbar+set}" = set; then
13269   enableval=$enable_toolbar;
13270                           if test "$enableval" = yes; then
13271                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13272                           else
13273                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13274                           fi
13275                           cache=yes
13276
13277 else
13278
13279                           cache=no
13280                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13281                           if test "x$LINE" != x ; then
13282                             eval "DEFAULT_$LINE"
13283                           fi
13284
13285                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13286
13287 fi
13288
13289
13290           eval "$wx_cv_use_toolbar"
13291           if test "x$cache" = xyes; then
13292             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13293           fi
13294
13295           if test x"$enablestring" = xdisable; then
13296             if test $wxUSE_TOOLBAR = yes; then
13297               result=no
13298             else
13299               result=yes
13300             fi
13301           else
13302             result=$wxUSE_TOOLBAR
13303           fi
13304
13305           { echo "$as_me:$LINENO: result: $result" >&5
13306 echo "${ECHO_T}$result" >&6; }
13307
13308
13309           enablestring=
13310           defaultval=$wxUSE_ALL_FEATURES
13311           if test -z "$defaultval"; then
13312               if test x"$enablestring" = xdisable; then
13313                   defaultval=yes
13314               else
13315                   defaultval=no
13316               fi
13317           fi
13318
13319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13320 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13321           # Check whether --enable-tbarnative was given.
13322 if test "${enable_tbarnative+set}" = set; then
13323   enableval=$enable_tbarnative;
13324                           if test "$enableval" = yes; then
13325                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13326                           else
13327                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13328                           fi
13329                           cache=yes
13330
13331 else
13332
13333                           cache=no
13334                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13335                           if test "x$LINE" != x ; then
13336                             eval "DEFAULT_$LINE"
13337                           fi
13338
13339                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13340
13341 fi
13342
13343
13344           eval "$wx_cv_use_tbarnative"
13345           if test "x$cache" = xyes; then
13346             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13347           fi
13348
13349           if test x"$enablestring" = xdisable; then
13350             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13351               result=no
13352             else
13353               result=yes
13354             fi
13355           else
13356             result=$wxUSE_TOOLBAR_NATIVE
13357           fi
13358
13359           { echo "$as_me:$LINENO: result: $result" >&5
13360 echo "${ECHO_T}$result" >&6; }
13361
13362
13363           enablestring=
13364           defaultval=$wxUSE_ALL_FEATURES
13365           if test -z "$defaultval"; then
13366               if test x"$enablestring" = xdisable; then
13367                   defaultval=yes
13368               else
13369                   defaultval=no
13370               fi
13371           fi
13372
13373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13374 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13375           # Check whether --enable-treebook was given.
13376 if test "${enable_treebook+set}" = set; then
13377   enableval=$enable_treebook;
13378                           if test "$enableval" = yes; then
13379                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13380                           else
13381                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13382                           fi
13383                           cache=yes
13384
13385 else
13386
13387                           cache=no
13388                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13389                           if test "x$LINE" != x ; then
13390                             eval "DEFAULT_$LINE"
13391                           fi
13392
13393                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13394
13395 fi
13396
13397
13398           eval "$wx_cv_use_treebook"
13399           if test "x$cache" = xyes; then
13400             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
13401           fi
13402
13403           if test x"$enablestring" = xdisable; then
13404             if test $wxUSE_TREEBOOK = yes; then
13405               result=no
13406             else
13407               result=yes
13408             fi
13409           else
13410             result=$wxUSE_TREEBOOK
13411           fi
13412
13413           { echo "$as_me:$LINENO: result: $result" >&5
13414 echo "${ECHO_T}$result" >&6; }
13415
13416
13417           enablestring=
13418           defaultval=$wxUSE_ALL_FEATURES
13419           if test -z "$defaultval"; then
13420               if test x"$enablestring" = xdisable; then
13421                   defaultval=yes
13422               else
13423                   defaultval=no
13424               fi
13425           fi
13426
13427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13428 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13429           # Check whether --enable-toolbook was given.
13430 if test "${enable_toolbook+set}" = set; then
13431   enableval=$enable_toolbook;
13432                           if test "$enableval" = yes; then
13433                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13434                           else
13435                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13436                           fi
13437                           cache=yes
13438
13439 else
13440
13441                           cache=no
13442                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13443                           if test "x$LINE" != x ; then
13444                             eval "DEFAULT_$LINE"
13445                           fi
13446
13447                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13448
13449 fi
13450
13451
13452           eval "$wx_cv_use_toolbook"
13453           if test "x$cache" = xyes; then
13454             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
13455           fi
13456
13457           if test x"$enablestring" = xdisable; then
13458             if test $wxUSE_TOOLBOOK = yes; then
13459               result=no
13460             else
13461               result=yes
13462             fi
13463           else
13464             result=$wxUSE_TOOLBOOK
13465           fi
13466
13467           { echo "$as_me:$LINENO: result: $result" >&5
13468 echo "${ECHO_T}$result" >&6; }
13469
13470
13471           enablestring=
13472           defaultval=$wxUSE_ALL_FEATURES
13473           if test -z "$defaultval"; then
13474               if test x"$enablestring" = xdisable; then
13475                   defaultval=yes
13476               else
13477                   defaultval=no
13478               fi
13479           fi
13480
13481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
13482 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
13483           # Check whether --enable-treectrl was given.
13484 if test "${enable_treectrl+set}" = set; then
13485   enableval=$enable_treectrl;
13486                           if test "$enableval" = yes; then
13487                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
13488                           else
13489                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
13490                           fi
13491                           cache=yes
13492
13493 else
13494
13495                           cache=no
13496                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
13497                           if test "x$LINE" != x ; then
13498                             eval "DEFAULT_$LINE"
13499                           fi
13500
13501                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
13502
13503 fi
13504
13505
13506           eval "$wx_cv_use_treectrl"
13507           if test "x$cache" = xyes; then
13508             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
13509           fi
13510
13511           if test x"$enablestring" = xdisable; then
13512             if test $wxUSE_TREECTRL = yes; then
13513               result=no
13514             else
13515               result=yes
13516             fi
13517           else
13518             result=$wxUSE_TREECTRL
13519           fi
13520
13521           { echo "$as_me:$LINENO: result: $result" >&5
13522 echo "${ECHO_T}$result" >&6; }
13523
13524
13525           enablestring=
13526           defaultval=$wxUSE_ALL_FEATURES
13527           if test -z "$defaultval"; then
13528               if test x"$enablestring" = xdisable; then
13529                   defaultval=yes
13530               else
13531                   defaultval=no
13532               fi
13533           fi
13534
13535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
13536 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
13537           # Check whether --enable-tipwindow was given.
13538 if test "${enable_tipwindow+set}" = set; then
13539   enableval=$enable_tipwindow;
13540                           if test "$enableval" = yes; then
13541                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
13542                           else
13543                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
13544                           fi
13545                           cache=yes
13546
13547 else
13548
13549                           cache=no
13550                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
13551                           if test "x$LINE" != x ; then
13552                             eval "DEFAULT_$LINE"
13553                           fi
13554
13555                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
13556
13557 fi
13558
13559
13560           eval "$wx_cv_use_tipwindow"
13561           if test "x$cache" = xyes; then
13562             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
13563           fi
13564
13565           if test x"$enablestring" = xdisable; then
13566             if test $wxUSE_TIPWINDOW = yes; then
13567               result=no
13568             else
13569               result=yes
13570             fi
13571           else
13572             result=$wxUSE_TIPWINDOW
13573           fi
13574
13575           { echo "$as_me:$LINENO: result: $result" >&5
13576 echo "${ECHO_T}$result" >&6; }
13577
13578
13579           enablestring=
13580           defaultval=$wxUSE_ALL_FEATURES
13581           if test -z "$defaultval"; then
13582               if test x"$enablestring" = xdisable; then
13583                   defaultval=yes
13584               else
13585                   defaultval=no
13586               fi
13587           fi
13588
13589           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
13590 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
13591           # Check whether --enable-popupwin was given.
13592 if test "${enable_popupwin+set}" = set; then
13593   enableval=$enable_popupwin;
13594                           if test "$enableval" = yes; then
13595                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
13596                           else
13597                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
13598                           fi
13599                           cache=yes
13600
13601 else
13602
13603                           cache=no
13604                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
13605                           if test "x$LINE" != x ; then
13606                             eval "DEFAULT_$LINE"
13607                           fi
13608
13609                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
13610
13611 fi
13612
13613
13614           eval "$wx_cv_use_popupwin"
13615           if test "x$cache" = xyes; then
13616             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
13617           fi
13618
13619           if test x"$enablestring" = xdisable; then
13620             if test $wxUSE_POPUPWIN = yes; then
13621               result=no
13622             else
13623               result=yes
13624             fi
13625           else
13626             result=$wxUSE_POPUPWIN
13627           fi
13628
13629           { echo "$as_me:$LINENO: result: $result" >&5
13630 echo "${ECHO_T}$result" >&6; }
13631
13632
13633
13634
13635           enablestring=
13636           defaultval=$wxUSE_ALL_FEATURES
13637           if test -z "$defaultval"; then
13638               if test x"$enablestring" = xdisable; then
13639                   defaultval=yes
13640               else
13641                   defaultval=no
13642               fi
13643           fi
13644
13645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13646 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13647           # Check whether --enable-commondlg was given.
13648 if test "${enable_commondlg+set}" = set; then
13649   enableval=$enable_commondlg;
13650                           if test "$enableval" = yes; then
13651                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13652                           else
13653                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13654                           fi
13655                           cache=yes
13656
13657 else
13658
13659                           cache=no
13660                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
13661                           if test "x$LINE" != x ; then
13662                             eval "DEFAULT_$LINE"
13663                           fi
13664
13665                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13666
13667 fi
13668
13669
13670           eval "$wx_cv_use_commondlg"
13671           if test "x$cache" = xyes; then
13672             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
13673           fi
13674
13675           if test x"$enablestring" = xdisable; then
13676             if test $wxUSE_COMMONDLGS = yes; then
13677               result=no
13678             else
13679               result=yes
13680             fi
13681           else
13682             result=$wxUSE_COMMONDLGS
13683           fi
13684
13685           { echo "$as_me:$LINENO: result: $result" >&5
13686 echo "${ECHO_T}$result" >&6; }
13687
13688
13689           enablestring=
13690           defaultval=$wxUSE_ALL_FEATURES
13691           if test -z "$defaultval"; then
13692               if test x"$enablestring" = xdisable; then
13693                   defaultval=yes
13694               else
13695                   defaultval=no
13696               fi
13697           fi
13698
13699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13700 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13701           # Check whether --enable-aboutdlg was given.
13702 if test "${enable_aboutdlg+set}" = set; then
13703   enableval=$enable_aboutdlg;
13704                           if test "$enableval" = yes; then
13705                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13706                           else
13707                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13708                           fi
13709                           cache=yes
13710
13711 else
13712
13713                           cache=no
13714                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
13715                           if test "x$LINE" != x ; then
13716                             eval "DEFAULT_$LINE"
13717                           fi
13718
13719                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13720
13721 fi
13722
13723
13724           eval "$wx_cv_use_aboutdlg"
13725           if test "x$cache" = xyes; then
13726             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
13727           fi
13728
13729           if test x"$enablestring" = xdisable; then
13730             if test $wxUSE_ABOUTDLG = yes; then
13731               result=no
13732             else
13733               result=yes
13734             fi
13735           else
13736             result=$wxUSE_ABOUTDLG
13737           fi
13738
13739           { echo "$as_me:$LINENO: result: $result" >&5
13740 echo "${ECHO_T}$result" >&6; }
13741
13742
13743           enablestring=
13744           defaultval=$wxUSE_ALL_FEATURES
13745           if test -z "$defaultval"; then
13746               if test x"$enablestring" = xdisable; then
13747                   defaultval=yes
13748               else
13749                   defaultval=no
13750               fi
13751           fi
13752
13753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13754 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13755           # Check whether --enable-choicedlg was given.
13756 if test "${enable_choicedlg+set}" = set; then
13757   enableval=$enable_choicedlg;
13758                           if test "$enableval" = yes; then
13759                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13760                           else
13761                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13762                           fi
13763                           cache=yes
13764
13765 else
13766
13767                           cache=no
13768                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
13769                           if test "x$LINE" != x ; then
13770                             eval "DEFAULT_$LINE"
13771                           fi
13772
13773                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13774
13775 fi
13776
13777
13778           eval "$wx_cv_use_choicedlg"
13779           if test "x$cache" = xyes; then
13780             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
13781           fi
13782
13783           if test x"$enablestring" = xdisable; then
13784             if test $wxUSE_CHOICEDLG = yes; then
13785               result=no
13786             else
13787               result=yes
13788             fi
13789           else
13790             result=$wxUSE_CHOICEDLG
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}-coldlg" >&5
13808 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13809           # Check whether --enable-coldlg was given.
13810 if test "${enable_coldlg+set}" = set; then
13811   enableval=$enable_coldlg;
13812                           if test "$enableval" = yes; then
13813                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13814                           else
13815                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13816                           fi
13817                           cache=yes
13818
13819 else
13820
13821                           cache=no
13822                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
13823                           if test "x$LINE" != x ; then
13824                             eval "DEFAULT_$LINE"
13825                           fi
13826
13827                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13828
13829 fi
13830
13831
13832           eval "$wx_cv_use_coldlg"
13833           if test "x$cache" = xyes; then
13834             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
13835           fi
13836
13837           if test x"$enablestring" = xdisable; then
13838             if test $wxUSE_COLOURDLG = yes; then
13839               result=no
13840             else
13841               result=yes
13842             fi
13843           else
13844             result=$wxUSE_COLOURDLG
13845           fi
13846
13847           { echo "$as_me:$LINENO: result: $result" >&5
13848 echo "${ECHO_T}$result" >&6; }
13849
13850
13851           enablestring=
13852           defaultval=$wxUSE_ALL_FEATURES
13853           if test -z "$defaultval"; then
13854               if test x"$enablestring" = xdisable; then
13855                   defaultval=yes
13856               else
13857                   defaultval=no
13858               fi
13859           fi
13860
13861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13862 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13863           # Check whether --enable-filedlg was given.
13864 if test "${enable_filedlg+set}" = set; then
13865   enableval=$enable_filedlg;
13866                           if test "$enableval" = yes; then
13867                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13868                           else
13869                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13870                           fi
13871                           cache=yes
13872
13873 else
13874
13875                           cache=no
13876                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
13877                           if test "x$LINE" != x ; then
13878                             eval "DEFAULT_$LINE"
13879                           fi
13880
13881                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13882
13883 fi
13884
13885
13886           eval "$wx_cv_use_filedlg"
13887           if test "x$cache" = xyes; then
13888             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
13889           fi
13890
13891           if test x"$enablestring" = xdisable; then
13892             if test $wxUSE_FILEDLG = yes; then
13893               result=no
13894             else
13895               result=yes
13896             fi
13897           else
13898             result=$wxUSE_FILEDLG
13899           fi
13900
13901           { echo "$as_me:$LINENO: result: $result" >&5
13902 echo "${ECHO_T}$result" >&6; }
13903
13904
13905           enablestring=
13906           defaultval=$wxUSE_ALL_FEATURES
13907           if test -z "$defaultval"; then
13908               if test x"$enablestring" = xdisable; then
13909                   defaultval=yes
13910               else
13911                   defaultval=no
13912               fi
13913           fi
13914
13915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13916 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13917           # Check whether --enable-finddlg was given.
13918 if test "${enable_finddlg+set}" = set; then
13919   enableval=$enable_finddlg;
13920                           if test "$enableval" = yes; then
13921                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13922                           else
13923                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13924                           fi
13925                           cache=yes
13926
13927 else
13928
13929                           cache=no
13930                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
13931                           if test "x$LINE" != x ; then
13932                             eval "DEFAULT_$LINE"
13933                           fi
13934
13935                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13936
13937 fi
13938
13939
13940           eval "$wx_cv_use_finddlg"
13941           if test "x$cache" = xyes; then
13942             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
13943           fi
13944
13945           if test x"$enablestring" = xdisable; then
13946             if test $wxUSE_FINDREPLDLG = yes; then
13947               result=no
13948             else
13949               result=yes
13950             fi
13951           else
13952             result=$wxUSE_FINDREPLDLG
13953           fi
13954
13955           { echo "$as_me:$LINENO: result: $result" >&5
13956 echo "${ECHO_T}$result" >&6; }
13957
13958
13959           enablestring=
13960           defaultval=$wxUSE_ALL_FEATURES
13961           if test -z "$defaultval"; then
13962               if test x"$enablestring" = xdisable; then
13963                   defaultval=yes
13964               else
13965                   defaultval=no
13966               fi
13967           fi
13968
13969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13970 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13971           # Check whether --enable-fontdlg was given.
13972 if test "${enable_fontdlg+set}" = set; then
13973   enableval=$enable_fontdlg;
13974                           if test "$enableval" = yes; then
13975                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13976                           else
13977                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13978                           fi
13979                           cache=yes
13980
13981 else
13982
13983                           cache=no
13984                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
13985                           if test "x$LINE" != x ; then
13986                             eval "DEFAULT_$LINE"
13987                           fi
13988
13989                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13990
13991 fi
13992
13993
13994           eval "$wx_cv_use_fontdlg"
13995           if test "x$cache" = xyes; then
13996             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
13997           fi
13998
13999           if test x"$enablestring" = xdisable; then
14000             if test $wxUSE_FONTDLG = yes; then
14001               result=no
14002             else
14003               result=yes
14004             fi
14005           else
14006             result=$wxUSE_FONTDLG
14007           fi
14008
14009           { echo "$as_me:$LINENO: result: $result" >&5
14010 echo "${ECHO_T}$result" >&6; }
14011
14012
14013           enablestring=
14014           defaultval=$wxUSE_ALL_FEATURES
14015           if test -z "$defaultval"; then
14016               if test x"$enablestring" = xdisable; then
14017                   defaultval=yes
14018               else
14019                   defaultval=no
14020               fi
14021           fi
14022
14023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14024 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14025           # Check whether --enable-dirdlg was given.
14026 if test "${enable_dirdlg+set}" = set; then
14027   enableval=$enable_dirdlg;
14028                           if test "$enableval" = yes; then
14029                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14030                           else
14031                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14032                           fi
14033                           cache=yes
14034
14035 else
14036
14037                           cache=no
14038                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14039                           if test "x$LINE" != x ; then
14040                             eval "DEFAULT_$LINE"
14041                           fi
14042
14043                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14044
14045 fi
14046
14047
14048           eval "$wx_cv_use_dirdlg"
14049           if test "x$cache" = xyes; then
14050             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
14051           fi
14052
14053           if test x"$enablestring" = xdisable; then
14054             if test $wxUSE_DIRDLG = yes; then
14055               result=no
14056             else
14057               result=yes
14058             fi
14059           else
14060             result=$wxUSE_DIRDLG
14061           fi
14062
14063           { echo "$as_me:$LINENO: result: $result" >&5
14064 echo "${ECHO_T}$result" >&6; }
14065
14066
14067           enablestring=
14068           defaultval=$wxUSE_ALL_FEATURES
14069           if test -z "$defaultval"; then
14070               if test x"$enablestring" = xdisable; then
14071                   defaultval=yes
14072               else
14073                   defaultval=no
14074               fi
14075           fi
14076
14077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14078 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14079           # Check whether --enable-msgdlg was given.
14080 if test "${enable_msgdlg+set}" = set; then
14081   enableval=$enable_msgdlg;
14082                           if test "$enableval" = yes; then
14083                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14084                           else
14085                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14086                           fi
14087                           cache=yes
14088
14089 else
14090
14091                           cache=no
14092                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14093                           if test "x$LINE" != x ; then
14094                             eval "DEFAULT_$LINE"
14095                           fi
14096
14097                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14098
14099 fi
14100
14101
14102           eval "$wx_cv_use_msgdlg"
14103           if test "x$cache" = xyes; then
14104             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
14105           fi
14106
14107           if test x"$enablestring" = xdisable; then
14108             if test $wxUSE_MSGDLG = yes; then
14109               result=no
14110             else
14111               result=yes
14112             fi
14113           else
14114             result=$wxUSE_MSGDLG
14115           fi
14116
14117           { echo "$as_me:$LINENO: result: $result" >&5
14118 echo "${ECHO_T}$result" >&6; }
14119
14120
14121           enablestring=
14122           defaultval=$wxUSE_ALL_FEATURES
14123           if test -z "$defaultval"; then
14124               if test x"$enablestring" = xdisable; then
14125                   defaultval=yes
14126               else
14127                   defaultval=no
14128               fi
14129           fi
14130
14131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14132 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14133           # Check whether --enable-numberdlg was given.
14134 if test "${enable_numberdlg+set}" = set; then
14135   enableval=$enable_numberdlg;
14136                           if test "$enableval" = yes; then
14137                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14138                           else
14139                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14140                           fi
14141                           cache=yes
14142
14143 else
14144
14145                           cache=no
14146                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14147                           if test "x$LINE" != x ; then
14148                             eval "DEFAULT_$LINE"
14149                           fi
14150
14151                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14152
14153 fi
14154
14155
14156           eval "$wx_cv_use_numberdlg"
14157           if test "x$cache" = xyes; then
14158             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
14159           fi
14160
14161           if test x"$enablestring" = xdisable; then
14162             if test $wxUSE_NUMBERDLG = yes; then
14163               result=no
14164             else
14165               result=yes
14166             fi
14167           else
14168             result=$wxUSE_NUMBERDLG
14169           fi
14170
14171           { echo "$as_me:$LINENO: result: $result" >&5
14172 echo "${ECHO_T}$result" >&6; }
14173
14174
14175           enablestring=
14176           defaultval=$wxUSE_ALL_FEATURES
14177           if test -z "$defaultval"; then
14178               if test x"$enablestring" = xdisable; then
14179                   defaultval=yes
14180               else
14181                   defaultval=no
14182               fi
14183           fi
14184
14185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14186 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14187           # Check whether --enable-splash was given.
14188 if test "${enable_splash+set}" = set; then
14189   enableval=$enable_splash;
14190                           if test "$enableval" = yes; then
14191                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14192                           else
14193                             wx_cv_use_splash='wxUSE_SPLASH=no'
14194                           fi
14195                           cache=yes
14196
14197 else
14198
14199                           cache=no
14200                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14201                           if test "x$LINE" != x ; then
14202                             eval "DEFAULT_$LINE"
14203                           fi
14204
14205                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14206
14207 fi
14208
14209
14210           eval "$wx_cv_use_splash"
14211           if test "x$cache" = xyes; then
14212             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
14213           fi
14214
14215           if test x"$enablestring" = xdisable; then
14216             if test $wxUSE_SPLASH = yes; then
14217               result=no
14218             else
14219               result=yes
14220             fi
14221           else
14222             result=$wxUSE_SPLASH
14223           fi
14224
14225           { echo "$as_me:$LINENO: result: $result" >&5
14226 echo "${ECHO_T}$result" >&6; }
14227
14228
14229           enablestring=
14230           defaultval=$wxUSE_ALL_FEATURES
14231           if test -z "$defaultval"; then
14232               if test x"$enablestring" = xdisable; then
14233                   defaultval=yes
14234               else
14235                   defaultval=no
14236               fi
14237           fi
14238
14239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14240 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14241           # Check whether --enable-textdlg was given.
14242 if test "${enable_textdlg+set}" = set; then
14243   enableval=$enable_textdlg;
14244                           if test "$enableval" = yes; then
14245                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14246                           else
14247                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14248                           fi
14249                           cache=yes
14250
14251 else
14252
14253                           cache=no
14254                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14255                           if test "x$LINE" != x ; then
14256                             eval "DEFAULT_$LINE"
14257                           fi
14258
14259                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14260
14261 fi
14262
14263
14264           eval "$wx_cv_use_textdlg"
14265           if test "x$cache" = xyes; then
14266             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14267           fi
14268
14269           if test x"$enablestring" = xdisable; then
14270             if test $wxUSE_TEXTDLG = yes; then
14271               result=no
14272             else
14273               result=yes
14274             fi
14275           else
14276             result=$wxUSE_TEXTDLG
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}-tipdlg" >&5
14294 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14295           # Check whether --enable-tipdlg was given.
14296 if test "${enable_tipdlg+set}" = set; then
14297   enableval=$enable_tipdlg;
14298                           if test "$enableval" = yes; then
14299                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14300                           else
14301                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14302                           fi
14303                           cache=yes
14304
14305 else
14306
14307                           cache=no
14308                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14309                           if test "x$LINE" != x ; then
14310                             eval "DEFAULT_$LINE"
14311                           fi
14312
14313                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14314
14315 fi
14316
14317
14318           eval "$wx_cv_use_tipdlg"
14319           if test "x$cache" = xyes; then
14320             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14321           fi
14322
14323           if test x"$enablestring" = xdisable; then
14324             if test $wxUSE_STARTUP_TIPS = yes; then
14325               result=no
14326             else
14327               result=yes
14328             fi
14329           else
14330             result=$wxUSE_STARTUP_TIPS
14331           fi
14332
14333           { echo "$as_me:$LINENO: result: $result" >&5
14334 echo "${ECHO_T}$result" >&6; }
14335
14336
14337           enablestring=
14338           defaultval=$wxUSE_ALL_FEATURES
14339           if test -z "$defaultval"; then
14340               if test x"$enablestring" = xdisable; then
14341                   defaultval=yes
14342               else
14343                   defaultval=no
14344               fi
14345           fi
14346
14347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14348 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14349           # Check whether --enable-progressdlg was given.
14350 if test "${enable_progressdlg+set}" = set; then
14351   enableval=$enable_progressdlg;
14352                           if test "$enableval" = yes; then
14353                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14354                           else
14355                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14356                           fi
14357                           cache=yes
14358
14359 else
14360
14361                           cache=no
14362                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14363                           if test "x$LINE" != x ; then
14364                             eval "DEFAULT_$LINE"
14365                           fi
14366
14367                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14368
14369 fi
14370
14371
14372           eval "$wx_cv_use_progressdlg"
14373           if test "x$cache" = xyes; then
14374             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
14375           fi
14376
14377           if test x"$enablestring" = xdisable; then
14378             if test $wxUSE_PROGRESSDLG = yes; then
14379               result=no
14380             else
14381               result=yes
14382             fi
14383           else
14384             result=$wxUSE_PROGRESSDLG
14385           fi
14386
14387           { echo "$as_me:$LINENO: result: $result" >&5
14388 echo "${ECHO_T}$result" >&6; }
14389
14390
14391           enablestring=
14392           defaultval=$wxUSE_ALL_FEATURES
14393           if test -z "$defaultval"; then
14394               if test x"$enablestring" = xdisable; then
14395                   defaultval=yes
14396               else
14397                   defaultval=no
14398               fi
14399           fi
14400
14401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14402 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14403           # Check whether --enable-wizarddlg was given.
14404 if test "${enable_wizarddlg+set}" = set; then
14405   enableval=$enable_wizarddlg;
14406                           if test "$enableval" = yes; then
14407                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14408                           else
14409                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14410                           fi
14411                           cache=yes
14412
14413 else
14414
14415                           cache=no
14416                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14417                           if test "x$LINE" != x ; then
14418                             eval "DEFAULT_$LINE"
14419                           fi
14420
14421                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14422
14423 fi
14424
14425
14426           eval "$wx_cv_use_wizarddlg"
14427           if test "x$cache" = xyes; then
14428             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
14429           fi
14430
14431           if test x"$enablestring" = xdisable; then
14432             if test $wxUSE_WIZARDDLG = yes; then
14433               result=no
14434             else
14435               result=yes
14436             fi
14437           else
14438             result=$wxUSE_WIZARDDLG
14439           fi
14440
14441           { echo "$as_me:$LINENO: result: $result" >&5
14442 echo "${ECHO_T}$result" >&6; }
14443
14444
14445
14446
14447           enablestring=
14448           defaultval=$wxUSE_ALL_FEATURES
14449           if test -z "$defaultval"; then
14450               if test x"$enablestring" = xdisable; then
14451                   defaultval=yes
14452               else
14453                   defaultval=no
14454               fi
14455           fi
14456
14457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
14458 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
14459           # Check whether --enable-menus was given.
14460 if test "${enable_menus+set}" = set; then
14461   enableval=$enable_menus;
14462                           if test "$enableval" = yes; then
14463                             wx_cv_use_menus='wxUSE_MENUS=yes'
14464                           else
14465                             wx_cv_use_menus='wxUSE_MENUS=no'
14466                           fi
14467                           cache=yes
14468
14469 else
14470
14471                           cache=no
14472                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
14473                           if test "x$LINE" != x ; then
14474                             eval "DEFAULT_$LINE"
14475                           fi
14476
14477                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
14478
14479 fi
14480
14481
14482           eval "$wx_cv_use_menus"
14483           if test "x$cache" = xyes; then
14484             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
14485           fi
14486
14487           if test x"$enablestring" = xdisable; then
14488             if test $wxUSE_MENUS = yes; then
14489               result=no
14490             else
14491               result=yes
14492             fi
14493           else
14494             result=$wxUSE_MENUS
14495           fi
14496
14497           { echo "$as_me:$LINENO: result: $result" >&5
14498 echo "${ECHO_T}$result" >&6; }
14499
14500
14501           enablestring=
14502           defaultval=$wxUSE_ALL_FEATURES
14503           if test -z "$defaultval"; then
14504               if test x"$enablestring" = xdisable; then
14505                   defaultval=yes
14506               else
14507                   defaultval=no
14508               fi
14509           fi
14510
14511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
14512 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
14513           # Check whether --enable-miniframe was given.
14514 if test "${enable_miniframe+set}" = set; then
14515   enableval=$enable_miniframe;
14516                           if test "$enableval" = yes; then
14517                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
14518                           else
14519                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
14520                           fi
14521                           cache=yes
14522
14523 else
14524
14525                           cache=no
14526                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
14527                           if test "x$LINE" != x ; then
14528                             eval "DEFAULT_$LINE"
14529                           fi
14530
14531                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
14532
14533 fi
14534
14535
14536           eval "$wx_cv_use_miniframe"
14537           if test "x$cache" = xyes; then
14538             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
14539           fi
14540
14541           if test x"$enablestring" = xdisable; then
14542             if test $wxUSE_MINIFRAME = yes; then
14543               result=no
14544             else
14545               result=yes
14546             fi
14547           else
14548             result=$wxUSE_MINIFRAME
14549           fi
14550
14551           { echo "$as_me:$LINENO: result: $result" >&5
14552 echo "${ECHO_T}$result" >&6; }
14553
14554
14555           enablestring=
14556           defaultval=$wxUSE_ALL_FEATURES
14557           if test -z "$defaultval"; then
14558               if test x"$enablestring" = xdisable; then
14559                   defaultval=yes
14560               else
14561                   defaultval=no
14562               fi
14563           fi
14564
14565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
14566 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
14567           # Check whether --enable-tooltips was given.
14568 if test "${enable_tooltips+set}" = set; then
14569   enableval=$enable_tooltips;
14570                           if test "$enableval" = yes; then
14571                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
14572                           else
14573                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
14574                           fi
14575                           cache=yes
14576
14577 else
14578
14579                           cache=no
14580                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
14581                           if test "x$LINE" != x ; then
14582                             eval "DEFAULT_$LINE"
14583                           fi
14584
14585                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
14586
14587 fi
14588
14589
14590           eval "$wx_cv_use_tooltips"
14591           if test "x$cache" = xyes; then
14592             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
14593           fi
14594
14595           if test x"$enablestring" = xdisable; then
14596             if test $wxUSE_TOOLTIPS = yes; then
14597               result=no
14598             else
14599               result=yes
14600             fi
14601           else
14602             result=$wxUSE_TOOLTIPS
14603           fi
14604
14605           { echo "$as_me:$LINENO: result: $result" >&5
14606 echo "${ECHO_T}$result" >&6; }
14607
14608
14609           enablestring=
14610           defaultval=$wxUSE_ALL_FEATURES
14611           if test -z "$defaultval"; then
14612               if test x"$enablestring" = xdisable; then
14613                   defaultval=yes
14614               else
14615                   defaultval=no
14616               fi
14617           fi
14618
14619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
14620 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
14621           # Check whether --enable-splines was given.
14622 if test "${enable_splines+set}" = set; then
14623   enableval=$enable_splines;
14624                           if test "$enableval" = yes; then
14625                             wx_cv_use_splines='wxUSE_SPLINES=yes'
14626                           else
14627                             wx_cv_use_splines='wxUSE_SPLINES=no'
14628                           fi
14629                           cache=yes
14630
14631 else
14632
14633                           cache=no
14634                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
14635                           if test "x$LINE" != x ; then
14636                             eval "DEFAULT_$LINE"
14637                           fi
14638
14639                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
14640
14641 fi
14642
14643
14644           eval "$wx_cv_use_splines"
14645           if test "x$cache" = xyes; then
14646             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
14647           fi
14648
14649           if test x"$enablestring" = xdisable; then
14650             if test $wxUSE_SPLINES = yes; then
14651               result=no
14652             else
14653               result=yes
14654             fi
14655           else
14656             result=$wxUSE_SPLINES
14657           fi
14658
14659           { echo "$as_me:$LINENO: result: $result" >&5
14660 echo "${ECHO_T}$result" >&6; }
14661
14662
14663           enablestring=
14664           defaultval=$wxUSE_ALL_FEATURES
14665           if test -z "$defaultval"; then
14666               if test x"$enablestring" = xdisable; then
14667                   defaultval=yes
14668               else
14669                   defaultval=no
14670               fi
14671           fi
14672
14673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
14674 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
14675           # Check whether --enable-mousewheel was given.
14676 if test "${enable_mousewheel+set}" = set; then
14677   enableval=$enable_mousewheel;
14678                           if test "$enableval" = yes; then
14679                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
14680                           else
14681                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
14682                           fi
14683                           cache=yes
14684
14685 else
14686
14687                           cache=no
14688                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
14689                           if test "x$LINE" != x ; then
14690                             eval "DEFAULT_$LINE"
14691                           fi
14692
14693                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
14694
14695 fi
14696
14697
14698           eval "$wx_cv_use_mousewheel"
14699           if test "x$cache" = xyes; then
14700             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
14701           fi
14702
14703           if test x"$enablestring" = xdisable; then
14704             if test $wxUSE_MOUSEWHEEL = yes; then
14705               result=no
14706             else
14707               result=yes
14708             fi
14709           else
14710             result=$wxUSE_MOUSEWHEEL
14711           fi
14712
14713           { echo "$as_me:$LINENO: result: $result" >&5
14714 echo "${ECHO_T}$result" >&6; }
14715
14716
14717           enablestring=
14718           defaultval=$wxUSE_ALL_FEATURES
14719           if test -z "$defaultval"; then
14720               if test x"$enablestring" = xdisable; then
14721                   defaultval=yes
14722               else
14723                   defaultval=no
14724               fi
14725           fi
14726
14727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
14728 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
14729           # Check whether --enable-validators was given.
14730 if test "${enable_validators+set}" = set; then
14731   enableval=$enable_validators;
14732                           if test "$enableval" = yes; then
14733                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
14734                           else
14735                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
14736                           fi
14737                           cache=yes
14738
14739 else
14740
14741                           cache=no
14742                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
14743                           if test "x$LINE" != x ; then
14744                             eval "DEFAULT_$LINE"
14745                           fi
14746
14747                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
14748
14749 fi
14750
14751
14752           eval "$wx_cv_use_validators"
14753           if test "x$cache" = xyes; then
14754             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
14755           fi
14756
14757           if test x"$enablestring" = xdisable; then
14758             if test $wxUSE_VALIDATORS = yes; then
14759               result=no
14760             else
14761               result=yes
14762             fi
14763           else
14764             result=$wxUSE_VALIDATORS
14765           fi
14766
14767           { echo "$as_me:$LINENO: result: $result" >&5
14768 echo "${ECHO_T}$result" >&6; }
14769
14770
14771           enablestring=
14772           defaultval=$wxUSE_ALL_FEATURES
14773           if test -z "$defaultval"; then
14774               if test x"$enablestring" = xdisable; then
14775                   defaultval=yes
14776               else
14777                   defaultval=no
14778               fi
14779           fi
14780
14781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
14782 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
14783           # Check whether --enable-busyinfo was given.
14784 if test "${enable_busyinfo+set}" = set; then
14785   enableval=$enable_busyinfo;
14786                           if test "$enableval" = yes; then
14787                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
14788                           else
14789                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
14790                           fi
14791                           cache=yes
14792
14793 else
14794
14795                           cache=no
14796                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
14797                           if test "x$LINE" != x ; then
14798                             eval "DEFAULT_$LINE"
14799                           fi
14800
14801                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14802
14803 fi
14804
14805
14806           eval "$wx_cv_use_busyinfo"
14807           if test "x$cache" = xyes; then
14808             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
14809           fi
14810
14811           if test x"$enablestring" = xdisable; then
14812             if test $wxUSE_BUSYINFO = yes; then
14813               result=no
14814             else
14815               result=yes
14816             fi
14817           else
14818             result=$wxUSE_BUSYINFO
14819           fi
14820
14821           { echo "$as_me:$LINENO: result: $result" >&5
14822 echo "${ECHO_T}$result" >&6; }
14823
14824
14825           enablestring=
14826           defaultval=$wxUSE_ALL_FEATURES
14827           if test -z "$defaultval"; then
14828               if test x"$enablestring" = xdisable; then
14829                   defaultval=yes
14830               else
14831                   defaultval=no
14832               fi
14833           fi
14834
14835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14836 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14837           # Check whether --enable-joystick was given.
14838 if test "${enable_joystick+set}" = set; then
14839   enableval=$enable_joystick;
14840                           if test "$enableval" = yes; then
14841                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14842                           else
14843                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14844                           fi
14845                           cache=yes
14846
14847 else
14848
14849                           cache=no
14850                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
14851                           if test "x$LINE" != x ; then
14852                             eval "DEFAULT_$LINE"
14853                           fi
14854
14855                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14856
14857 fi
14858
14859
14860           eval "$wx_cv_use_joystick"
14861           if test "x$cache" = xyes; then
14862             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
14863           fi
14864
14865           if test x"$enablestring" = xdisable; then
14866             if test $wxUSE_JOYSTICK = yes; then
14867               result=no
14868             else
14869               result=yes
14870             fi
14871           else
14872             result=$wxUSE_JOYSTICK
14873           fi
14874
14875           { echo "$as_me:$LINENO: result: $result" >&5
14876 echo "${ECHO_T}$result" >&6; }
14877
14878
14879           enablestring=
14880           defaultval=$wxUSE_ALL_FEATURES
14881           if test -z "$defaultval"; then
14882               if test x"$enablestring" = xdisable; then
14883                   defaultval=yes
14884               else
14885                   defaultval=no
14886               fi
14887           fi
14888
14889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14890 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14891           # Check whether --enable-metafile was given.
14892 if test "${enable_metafile+set}" = set; then
14893   enableval=$enable_metafile;
14894                           if test "$enableval" = yes; then
14895                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14896                           else
14897                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14898                           fi
14899                           cache=yes
14900
14901 else
14902
14903                           cache=no
14904                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
14905                           if test "x$LINE" != x ; then
14906                             eval "DEFAULT_$LINE"
14907                           fi
14908
14909                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14910
14911 fi
14912
14913
14914           eval "$wx_cv_use_metafile"
14915           if test "x$cache" = xyes; then
14916             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
14917           fi
14918
14919           if test x"$enablestring" = xdisable; then
14920             if test $wxUSE_METAFILE = yes; then
14921               result=no
14922             else
14923               result=yes
14924             fi
14925           else
14926             result=$wxUSE_METAFILE
14927           fi
14928
14929           { echo "$as_me:$LINENO: result: $result" >&5
14930 echo "${ECHO_T}$result" >&6; }
14931
14932
14933           enablestring=
14934           defaultval=$wxUSE_ALL_FEATURES
14935           if test -z "$defaultval"; then
14936               if test x"$enablestring" = xdisable; then
14937                   defaultval=yes
14938               else
14939                   defaultval=no
14940               fi
14941           fi
14942
14943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14944 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14945           # Check whether --enable-dragimage was given.
14946 if test "${enable_dragimage+set}" = set; then
14947   enableval=$enable_dragimage;
14948                           if test "$enableval" = yes; then
14949                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14950                           else
14951                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14952                           fi
14953                           cache=yes
14954
14955 else
14956
14957                           cache=no
14958                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
14959                           if test "x$LINE" != x ; then
14960                             eval "DEFAULT_$LINE"
14961                           fi
14962
14963                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14964
14965 fi
14966
14967
14968           eval "$wx_cv_use_dragimage"
14969           if test "x$cache" = xyes; then
14970             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
14971           fi
14972
14973           if test x"$enablestring" = xdisable; then
14974             if test $wxUSE_DRAGIMAGE = yes; then
14975               result=no
14976             else
14977               result=yes
14978             fi
14979           else
14980             result=$wxUSE_DRAGIMAGE
14981           fi
14982
14983           { echo "$as_me:$LINENO: result: $result" >&5
14984 echo "${ECHO_T}$result" >&6; }
14985
14986
14987           enablestring=
14988           defaultval=$wxUSE_ALL_FEATURES
14989           if test -z "$defaultval"; then
14990               if test x"$enablestring" = xdisable; then
14991                   defaultval=yes
14992               else
14993                   defaultval=no
14994               fi
14995           fi
14996
14997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14998 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14999           # Check whether --enable-accessibility was given.
15000 if test "${enable_accessibility+set}" = set; then
15001   enableval=$enable_accessibility;
15002                           if test "$enableval" = yes; then
15003                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15004                           else
15005                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15006                           fi
15007                           cache=yes
15008
15009 else
15010
15011                           cache=no
15012                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15013                           if test "x$LINE" != x ; then
15014                             eval "DEFAULT_$LINE"
15015                           fi
15016
15017                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15018
15019 fi
15020
15021
15022           eval "$wx_cv_use_accessibility"
15023           if test "x$cache" = xyes; then
15024             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
15025           fi
15026
15027           if test x"$enablestring" = xdisable; then
15028             if test $wxUSE_ACCESSIBILITY = yes; then
15029               result=no
15030             else
15031               result=yes
15032             fi
15033           else
15034             result=$wxUSE_ACCESSIBILITY
15035           fi
15036
15037           { echo "$as_me:$LINENO: result: $result" >&5
15038 echo "${ECHO_T}$result" >&6; }
15039
15040
15041
15042
15043           enablestring=
15044           defaultval=$wxUSE_ALL_FEATURES
15045           if test -z "$defaultval"; then
15046               if test x"$enablestring" = xdisable; then
15047                   defaultval=yes
15048               else
15049                   defaultval=no
15050               fi
15051           fi
15052
15053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15054 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15055           # Check whether --enable-palette was given.
15056 if test "${enable_palette+set}" = set; then
15057   enableval=$enable_palette;
15058                           if test "$enableval" = yes; then
15059                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15060                           else
15061                             wx_cv_use_palette='wxUSE_PALETTE=no'
15062                           fi
15063                           cache=yes
15064
15065 else
15066
15067                           cache=no
15068                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15069                           if test "x$LINE" != x ; then
15070                             eval "DEFAULT_$LINE"
15071                           fi
15072
15073                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15074
15075 fi
15076
15077
15078           eval "$wx_cv_use_palette"
15079           if test "x$cache" = xyes; then
15080             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
15081           fi
15082
15083           if test x"$enablestring" = xdisable; then
15084             if test $wxUSE_PALETTE = yes; then
15085               result=no
15086             else
15087               result=yes
15088             fi
15089           else
15090             result=$wxUSE_PALETTE
15091           fi
15092
15093           { echo "$as_me:$LINENO: result: $result" >&5
15094 echo "${ECHO_T}$result" >&6; }
15095
15096
15097           enablestring=
15098           defaultval=$wxUSE_ALL_FEATURES
15099           if test -z "$defaultval"; then
15100               if test x"$enablestring" = xdisable; then
15101                   defaultval=yes
15102               else
15103                   defaultval=no
15104               fi
15105           fi
15106
15107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15108 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15109           # Check whether --enable-image was given.
15110 if test "${enable_image+set}" = set; then
15111   enableval=$enable_image;
15112                           if test "$enableval" = yes; then
15113                             wx_cv_use_image='wxUSE_IMAGE=yes'
15114                           else
15115                             wx_cv_use_image='wxUSE_IMAGE=no'
15116                           fi
15117                           cache=yes
15118
15119 else
15120
15121                           cache=no
15122                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15123                           if test "x$LINE" != x ; then
15124                             eval "DEFAULT_$LINE"
15125                           fi
15126
15127                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15128
15129 fi
15130
15131
15132           eval "$wx_cv_use_image"
15133           if test "x$cache" = xyes; then
15134             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
15135           fi
15136
15137           if test x"$enablestring" = xdisable; then
15138             if test $wxUSE_IMAGE = yes; then
15139               result=no
15140             else
15141               result=yes
15142             fi
15143           else
15144             result=$wxUSE_IMAGE
15145           fi
15146
15147           { echo "$as_me:$LINENO: result: $result" >&5
15148 echo "${ECHO_T}$result" >&6; }
15149
15150
15151           enablestring=
15152           defaultval=$wxUSE_ALL_FEATURES
15153           if test -z "$defaultval"; then
15154               if test x"$enablestring" = xdisable; then
15155                   defaultval=yes
15156               else
15157                   defaultval=no
15158               fi
15159           fi
15160
15161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15162 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15163           # Check whether --enable-gif was given.
15164 if test "${enable_gif+set}" = set; then
15165   enableval=$enable_gif;
15166                           if test "$enableval" = yes; then
15167                             wx_cv_use_gif='wxUSE_GIF=yes'
15168                           else
15169                             wx_cv_use_gif='wxUSE_GIF=no'
15170                           fi
15171                           cache=yes
15172
15173 else
15174
15175                           cache=no
15176                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15177                           if test "x$LINE" != x ; then
15178                             eval "DEFAULT_$LINE"
15179                           fi
15180
15181                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15182
15183 fi
15184
15185
15186           eval "$wx_cv_use_gif"
15187           if test "x$cache" = xyes; then
15188             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
15189           fi
15190
15191           if test x"$enablestring" = xdisable; then
15192             if test $wxUSE_GIF = yes; then
15193               result=no
15194             else
15195               result=yes
15196             fi
15197           else
15198             result=$wxUSE_GIF
15199           fi
15200
15201           { echo "$as_me:$LINENO: result: $result" >&5
15202 echo "${ECHO_T}$result" >&6; }
15203
15204
15205           enablestring=
15206           defaultval=$wxUSE_ALL_FEATURES
15207           if test -z "$defaultval"; then
15208               if test x"$enablestring" = xdisable; then
15209                   defaultval=yes
15210               else
15211                   defaultval=no
15212               fi
15213           fi
15214
15215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15216 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15217           # Check whether --enable-pcx was given.
15218 if test "${enable_pcx+set}" = set; then
15219   enableval=$enable_pcx;
15220                           if test "$enableval" = yes; then
15221                             wx_cv_use_pcx='wxUSE_PCX=yes'
15222                           else
15223                             wx_cv_use_pcx='wxUSE_PCX=no'
15224                           fi
15225                           cache=yes
15226
15227 else
15228
15229                           cache=no
15230                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15231                           if test "x$LINE" != x ; then
15232                             eval "DEFAULT_$LINE"
15233                           fi
15234
15235                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15236
15237 fi
15238
15239
15240           eval "$wx_cv_use_pcx"
15241           if test "x$cache" = xyes; then
15242             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
15243           fi
15244
15245           if test x"$enablestring" = xdisable; then
15246             if test $wxUSE_PCX = yes; then
15247               result=no
15248             else
15249               result=yes
15250             fi
15251           else
15252             result=$wxUSE_PCX
15253           fi
15254
15255           { echo "$as_me:$LINENO: result: $result" >&5
15256 echo "${ECHO_T}$result" >&6; }
15257
15258
15259           enablestring=
15260           defaultval=$wxUSE_ALL_FEATURES
15261           if test -z "$defaultval"; then
15262               if test x"$enablestring" = xdisable; then
15263                   defaultval=yes
15264               else
15265                   defaultval=no
15266               fi
15267           fi
15268
15269           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15270 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15271           # Check whether --enable-tga was given.
15272 if test "${enable_tga+set}" = set; then
15273   enableval=$enable_tga;
15274                           if test "$enableval" = yes; then
15275                             wx_cv_use_tga='wxUSE_TGA=yes'
15276                           else
15277                             wx_cv_use_tga='wxUSE_TGA=no'
15278                           fi
15279                           cache=yes
15280
15281 else
15282
15283                           cache=no
15284                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15285                           if test "x$LINE" != x ; then
15286                             eval "DEFAULT_$LINE"
15287                           fi
15288
15289                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15290
15291 fi
15292
15293
15294           eval "$wx_cv_use_tga"
15295           if test "x$cache" = xyes; then
15296             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15297           fi
15298
15299           if test x"$enablestring" = xdisable; then
15300             if test $wxUSE_TGA = yes; then
15301               result=no
15302             else
15303               result=yes
15304             fi
15305           else
15306             result=$wxUSE_TGA
15307           fi
15308
15309           { echo "$as_me:$LINENO: result: $result" >&5
15310 echo "${ECHO_T}$result" >&6; }
15311
15312
15313           enablestring=
15314           defaultval=$wxUSE_ALL_FEATURES
15315           if test -z "$defaultval"; then
15316               if test x"$enablestring" = xdisable; then
15317                   defaultval=yes
15318               else
15319                   defaultval=no
15320               fi
15321           fi
15322
15323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15324 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15325           # Check whether --enable-iff was given.
15326 if test "${enable_iff+set}" = set; then
15327   enableval=$enable_iff;
15328                           if test "$enableval" = yes; then
15329                             wx_cv_use_iff='wxUSE_IFF=yes'
15330                           else
15331                             wx_cv_use_iff='wxUSE_IFF=no'
15332                           fi
15333                           cache=yes
15334
15335 else
15336
15337                           cache=no
15338                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15339                           if test "x$LINE" != x ; then
15340                             eval "DEFAULT_$LINE"
15341                           fi
15342
15343                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15344
15345 fi
15346
15347
15348           eval "$wx_cv_use_iff"
15349           if test "x$cache" = xyes; then
15350             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
15351           fi
15352
15353           if test x"$enablestring" = xdisable; then
15354             if test $wxUSE_IFF = yes; then
15355               result=no
15356             else
15357               result=yes
15358             fi
15359           else
15360             result=$wxUSE_IFF
15361           fi
15362
15363           { echo "$as_me:$LINENO: result: $result" >&5
15364 echo "${ECHO_T}$result" >&6; }
15365
15366
15367           enablestring=
15368           defaultval=$wxUSE_ALL_FEATURES
15369           if test -z "$defaultval"; then
15370               if test x"$enablestring" = xdisable; then
15371                   defaultval=yes
15372               else
15373                   defaultval=no
15374               fi
15375           fi
15376
15377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15378 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15379           # Check whether --enable-pnm was given.
15380 if test "${enable_pnm+set}" = set; then
15381   enableval=$enable_pnm;
15382                           if test "$enableval" = yes; then
15383                             wx_cv_use_pnm='wxUSE_PNM=yes'
15384                           else
15385                             wx_cv_use_pnm='wxUSE_PNM=no'
15386                           fi
15387                           cache=yes
15388
15389 else
15390
15391                           cache=no
15392                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15393                           if test "x$LINE" != x ; then
15394                             eval "DEFAULT_$LINE"
15395                           fi
15396
15397                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
15398
15399 fi
15400
15401
15402           eval "$wx_cv_use_pnm"
15403           if test "x$cache" = xyes; then
15404             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
15405           fi
15406
15407           if test x"$enablestring" = xdisable; then
15408             if test $wxUSE_PNM = yes; then
15409               result=no
15410             else
15411               result=yes
15412             fi
15413           else
15414             result=$wxUSE_PNM
15415           fi
15416
15417           { echo "$as_me:$LINENO: result: $result" >&5
15418 echo "${ECHO_T}$result" >&6; }
15419
15420
15421           enablestring=
15422           defaultval=$wxUSE_ALL_FEATURES
15423           if test -z "$defaultval"; then
15424               if test x"$enablestring" = xdisable; then
15425                   defaultval=yes
15426               else
15427                   defaultval=no
15428               fi
15429           fi
15430
15431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
15432 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
15433           # Check whether --enable-xpm was given.
15434 if test "${enable_xpm+set}" = set; then
15435   enableval=$enable_xpm;
15436                           if test "$enableval" = yes; then
15437                             wx_cv_use_xpm='wxUSE_XPM=yes'
15438                           else
15439                             wx_cv_use_xpm='wxUSE_XPM=no'
15440                           fi
15441                           cache=yes
15442
15443 else
15444
15445                           cache=no
15446                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
15447                           if test "x$LINE" != x ; then
15448                             eval "DEFAULT_$LINE"
15449                           fi
15450
15451                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
15452
15453 fi
15454
15455
15456           eval "$wx_cv_use_xpm"
15457           if test "x$cache" = xyes; then
15458             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
15459           fi
15460
15461           if test x"$enablestring" = xdisable; then
15462             if test $wxUSE_XPM = yes; then
15463               result=no
15464             else
15465               result=yes
15466             fi
15467           else
15468             result=$wxUSE_XPM
15469           fi
15470
15471           { echo "$as_me:$LINENO: result: $result" >&5
15472 echo "${ECHO_T}$result" >&6; }
15473
15474
15475           enablestring=
15476           defaultval=$wxUSE_ALL_FEATURES
15477           if test -z "$defaultval"; then
15478               if test x"$enablestring" = xdisable; then
15479                   defaultval=yes
15480               else
15481                   defaultval=no
15482               fi
15483           fi
15484
15485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
15486 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
15487           # Check whether --enable-ico_cur was given.
15488 if test "${enable_ico_cur+set}" = set; then
15489   enableval=$enable_ico_cur;
15490                           if test "$enableval" = yes; then
15491                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
15492                           else
15493                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
15494                           fi
15495                           cache=yes
15496
15497 else
15498
15499                           cache=no
15500                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
15501                           if test "x$LINE" != x ; then
15502                             eval "DEFAULT_$LINE"
15503                           fi
15504
15505                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
15506
15507 fi
15508
15509
15510           eval "$wx_cv_use_ico_cur"
15511           if test "x$cache" = xyes; then
15512             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
15513           fi
15514
15515           if test x"$enablestring" = xdisable; then
15516             if test $wxUSE_ICO_CUR = yes; then
15517               result=no
15518             else
15519               result=yes
15520             fi
15521           else
15522             result=$wxUSE_ICO_CUR
15523           fi
15524
15525           { echo "$as_me:$LINENO: result: $result" >&5
15526 echo "${ECHO_T}$result" >&6; }
15527
15528
15529
15530
15531           enablestring=
15532           defaultval=$wxUSE_ALL_FEATURES
15533           if test -z "$defaultval"; then
15534               if test x"$enablestring" = xdisable; then
15535                   defaultval=yes
15536               else
15537                   defaultval=no
15538               fi
15539           fi
15540
15541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
15542 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
15543           # Check whether --enable-dccache was given.
15544 if test "${enable_dccache+set}" = set; then
15545   enableval=$enable_dccache;
15546                           if test "$enableval" = yes; then
15547                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
15548                           else
15549                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
15550                           fi
15551                           cache=yes
15552
15553 else
15554
15555                           cache=no
15556                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
15557                           if test "x$LINE" != x ; then
15558                             eval "DEFAULT_$LINE"
15559                           fi
15560
15561                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
15562
15563 fi
15564
15565
15566           eval "$wx_cv_use_dccache"
15567           if test "x$cache" = xyes; then
15568             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
15569           fi
15570
15571           if test x"$enablestring" = xdisable; then
15572             if test $wxUSE_DC_CACHEING = yes; then
15573               result=no
15574             else
15575               result=yes
15576             fi
15577           else
15578             result=$wxUSE_DC_CACHEING
15579           fi
15580
15581           { echo "$as_me:$LINENO: result: $result" >&5
15582 echo "${ECHO_T}$result" >&6; }
15583
15584
15585           enablestring=
15586           defaultval=
15587           if test -z "$defaultval"; then
15588               if test x"$enablestring" = xdisable; then
15589                   defaultval=yes
15590               else
15591                   defaultval=no
15592               fi
15593           fi
15594
15595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
15596 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
15597           # Check whether --enable-iniconf was given.
15598 if test "${enable_iniconf+set}" = set; then
15599   enableval=$enable_iniconf;
15600                           if test "$enableval" = yes; then
15601                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
15602                           else
15603                             wx_cv_use_iniconf='wxUSE_INICONF=no'
15604                           fi
15605                           cache=yes
15606
15607 else
15608
15609                           cache=no
15610                           LINE=`grep "^wxUSE_INICONF=" ${wx_arg_cache_file}`
15611                           if test "x$LINE" != x ; then
15612                             eval "DEFAULT_$LINE"
15613                           fi
15614
15615                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
15616
15617 fi
15618
15619
15620           eval "$wx_cv_use_iniconf"
15621           if test "x$cache" = xyes; then
15622             echo "wxUSE_INICONF=$wxUSE_INICONF" >> ${wx_arg_cache_file}.tmp
15623           fi
15624
15625           if test x"$enablestring" = xdisable; then
15626             if test $wxUSE_INICONF = yes; then
15627               result=no
15628             else
15629               result=yes
15630             fi
15631           else
15632             result=$wxUSE_INICONF
15633           fi
15634
15635           { echo "$as_me:$LINENO: result: $result" >&5
15636 echo "${ECHO_T}$result" >&6; }
15637
15638
15639           enablestring=
15640           defaultval=$wxUSE_ALL_FEATURES
15641           if test -z "$defaultval"; then
15642               if test x"$enablestring" = xdisable; then
15643                   defaultval=yes
15644               else
15645                   defaultval=no
15646               fi
15647           fi
15648
15649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
15650 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
15651           # Check whether --enable-ps-in-msw was given.
15652 if test "${enable_ps_in_msw+set}" = set; then
15653   enableval=$enable_ps_in_msw;
15654                           if test "$enableval" = yes; then
15655                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
15656                           else
15657                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
15658                           fi
15659                           cache=yes
15660
15661 else
15662
15663                           cache=no
15664                           LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
15665                           if test "x$LINE" != x ; then
15666                             eval "DEFAULT_$LINE"
15667                           fi
15668
15669                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
15670
15671 fi
15672
15673
15674           eval "$wx_cv_use_ps_in_msw"
15675           if test "x$cache" = xyes; then
15676             echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
15677           fi
15678
15679           if test x"$enablestring" = xdisable; then
15680             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
15681               result=no
15682             else
15683               result=yes
15684             fi
15685           else
15686             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
15687           fi
15688
15689           { echo "$as_me:$LINENO: result: $result" >&5
15690 echo "${ECHO_T}$result" >&6; }
15691
15692
15693           enablestring=
15694           defaultval=$wxUSE_ALL_FEATURES
15695           if test -z "$defaultval"; then
15696               if test x"$enablestring" = xdisable; then
15697                   defaultval=yes
15698               else
15699                   defaultval=no
15700               fi
15701           fi
15702
15703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
15704 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
15705           # Check whether --enable-ownerdrawn was given.
15706 if test "${enable_ownerdrawn+set}" = set; then
15707   enableval=$enable_ownerdrawn;
15708                           if test "$enableval" = yes; then
15709                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
15710                           else
15711                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
15712                           fi
15713                           cache=yes
15714
15715 else
15716
15717                           cache=no
15718                           LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
15719                           if test "x$LINE" != x ; then
15720                             eval "DEFAULT_$LINE"
15721                           fi
15722
15723                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
15724
15725 fi
15726
15727
15728           eval "$wx_cv_use_ownerdrawn"
15729           if test "x$cache" = xyes; then
15730             echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
15731           fi
15732
15733           if test x"$enablestring" = xdisable; then
15734             if test $wxUSE_OWNER_DRAWN = yes; then
15735               result=no
15736             else
15737               result=yes
15738             fi
15739           else
15740             result=$wxUSE_OWNER_DRAWN
15741           fi
15742
15743           { echo "$as_me:$LINENO: result: $result" >&5
15744 echo "${ECHO_T}$result" >&6; }
15745
15746
15747           enablestring=
15748           defaultval=$wxUSE_ALL_FEATURES
15749           if test -z "$defaultval"; then
15750               if test x"$enablestring" = xdisable; then
15751                   defaultval=yes
15752               else
15753                   defaultval=no
15754               fi
15755           fi
15756
15757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
15758 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
15759           # Check whether --enable-regkey was given.
15760 if test "${enable_regkey+set}" = set; then
15761   enableval=$enable_regkey;
15762                           if test "$enableval" = yes; then
15763                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
15764                           else
15765                             wx_cv_use_regkey='wxUSE_REGKEY=no'
15766                           fi
15767                           cache=yes
15768
15769 else
15770
15771                           cache=no
15772                           LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
15773                           if test "x$LINE" != x ; then
15774                             eval "DEFAULT_$LINE"
15775                           fi
15776
15777                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
15778
15779 fi
15780
15781
15782           eval "$wx_cv_use_regkey"
15783           if test "x$cache" = xyes; then
15784             echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
15785           fi
15786
15787           if test x"$enablestring" = xdisable; then
15788             if test $wxUSE_REGKEY = yes; then
15789               result=no
15790             else
15791               result=yes
15792             fi
15793           else
15794             result=$wxUSE_REGKEY
15795           fi
15796
15797           { echo "$as_me:$LINENO: result: $result" >&5
15798 echo "${ECHO_T}$result" >&6; }
15799
15800
15801           enablestring=
15802           defaultval=$wxUSE_ALL_FEATURES
15803           if test -z "$defaultval"; then
15804               if test x"$enablestring" = xdisable; then
15805                   defaultval=yes
15806               else
15807                   defaultval=no
15808               fi
15809           fi
15810
15811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
15812 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
15813           # Check whether --enable-uxtheme was given.
15814 if test "${enable_uxtheme+set}" = set; then
15815   enableval=$enable_uxtheme;
15816                           if test "$enableval" = yes; then
15817                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
15818                           else
15819                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
15820                           fi
15821                           cache=yes
15822
15823 else
15824
15825                           cache=no
15826                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
15827                           if test "x$LINE" != x ; then
15828                             eval "DEFAULT_$LINE"
15829                           fi
15830
15831                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
15832
15833 fi
15834
15835
15836           eval "$wx_cv_use_uxtheme"
15837           if test "x$cache" = xyes; then
15838             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
15839           fi
15840
15841           if test x"$enablestring" = xdisable; then
15842             if test $wxUSE_UXTHEME = yes; then
15843               result=no
15844             else
15845               result=yes
15846             fi
15847           else
15848             result=$wxUSE_UXTHEME
15849           fi
15850
15851           { echo "$as_me:$LINENO: result: $result" >&5
15852 echo "${ECHO_T}$result" >&6; }
15853
15854
15855           enablestring=
15856           defaultval=$wxUSE_ALL_FEATURES
15857           if test -z "$defaultval"; then
15858               if test x"$enablestring" = xdisable; then
15859                   defaultval=yes
15860               else
15861                   defaultval=no
15862               fi
15863           fi
15864
15865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
15866 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
15867           # Check whether --enable-wxdib was given.
15868 if test "${enable_wxdib+set}" = set; then
15869   enableval=$enable_wxdib;
15870                           if test "$enableval" = yes; then
15871                             wx_cv_use_wxdib='wxUSE_DIB=yes'
15872                           else
15873                             wx_cv_use_wxdib='wxUSE_DIB=no'
15874                           fi
15875                           cache=yes
15876
15877 else
15878
15879                           cache=no
15880                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
15881                           if test "x$LINE" != x ; then
15882                             eval "DEFAULT_$LINE"
15883                           fi
15884
15885                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
15886
15887 fi
15888
15889
15890           eval "$wx_cv_use_wxdib"
15891           if test "x$cache" = xyes; then
15892             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
15893           fi
15894
15895           if test x"$enablestring" = xdisable; then
15896             if test $wxUSE_DIB = yes; then
15897               result=no
15898             else
15899               result=yes
15900             fi
15901           else
15902             result=$wxUSE_DIB
15903           fi
15904
15905           { echo "$as_me:$LINENO: result: $result" >&5
15906 echo "${ECHO_T}$result" >&6; }
15907
15908
15909 fi
15910
15911
15912           echo "saving argument cache $wx_arg_cache_file"
15913           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
15914
15915
15916
15917 { echo "$as_me:$LINENO: checking for toolkit" >&5
15918 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
15919
15920 # In Wine, we need to default to MSW, not GTK or MOTIF
15921 if test "$wxUSE_WINE" = "yes"; then
15922     DEFAULT_DEFAULT_wxUSE_GTK=0
15923     DEFAULT_DEFAULT_wxUSE_MOTIF=0
15924     DEFAULT_DEFAULT_wxUSE_MSW=1
15925     wxUSE_SHARED=no
15926     CC=${CC:-winegcc}
15927     CXX=${CXX:-wineg++}
15928 fi
15929
15930
15931 if test "$wxUSE_GUI" = "yes"; then
15932
15933     if test "$USE_BEOS" = 1; then
15934         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
15935 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
15936    { (exit 1); exit 1; }; }
15937     fi
15938
15939     if test "$TOOLKIT_GIVEN" = 1; then
15940             for toolkit in `echo $ALL_TOOLKITS`; do
15941         var=wxUSE_$toolkit
15942         eval "value=\$${var}"
15943         if test "x$value" = "xno"; then
15944           eval "$var=0"
15945         elif test "x$value" != "x"; then
15946           eval "$var=1"
15947         fi
15948
15949         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
15950           eval "wx${toolkit}_VERSION=$value"
15951         fi
15952       done
15953     else
15954             for toolkit in `echo $ALL_TOOLKITS`; do
15955         if test "$has_toolkit_in_cache" != 1; then
15956           var=DEFAULT_DEFAULT_wxUSE_$toolkit
15957         else
15958           var=DEFAULT_wxUSE_$toolkit
15959
15960           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
15961           if test "x$version" != "x"; then
15962             eval "wx${toolkit}_VERSION=$version"
15963           fi
15964         fi
15965         eval "wxUSE_$toolkit=\$${var}"
15966       done
15967     fi
15968
15969             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
15970                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
15971                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
15972
15973         case "${host}" in
15974       *-pc-os2_emx | *-pc-os2-emx )
15975         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
15976     esac
15977
15978     case "$NUM_TOOLKITS" in
15979       1)
15980       ;;
15981       0)
15982         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
15983 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
15984    { (exit 1); exit 1; }; }
15985       ;;
15986       *)
15987         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
15988 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
15989    { (exit 1); exit 1; }; }
15990     esac
15991
15992     # to be removed when --disable-gtk2 isn't needed
15993     if test "x$wxUSE_GTK2" = "xyes"; then
15994         wxGTK_VERSION=2
15995     elif test "x$wxUSE_GTK2" = "xno"; then
15996         wxGTK_VERSION=1
15997     fi
15998
15999         for toolkit in `echo $ALL_TOOLKITS`; do
16000       var=wxUSE_$toolkit
16001       eval "value=\$${var}"
16002       if test "x$value" != x; then
16003         cache_var=CACHE_$toolkit
16004         eval "cache=\$${cache_var}"
16005         if test "$cache" = 1; then
16006           echo "$var=$value" >> ${wx_arg_cache_file}
16007           eval "version=\$wx${toolkit}_VERSION"
16008           if test "x$version" != "x"; then
16009             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
16010           fi
16011         fi
16012         if test "$value" = 1; then
16013           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
16014           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
16015 echo "${ECHO_T}$toolkit_echo" >&6; }
16016         fi
16017       fi
16018     done
16019 else
16020     if test "x$host_alias" != "x"; then
16021         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
16022 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
16023     else
16024         { echo "$as_me:$LINENO: result: base only" >&5
16025 echo "${ECHO_T}base only" >&6; }
16026     fi
16027 fi
16028
16029
16030 cat >confcache <<\_ACEOF
16031 # This file is a shell script that caches the results of configure
16032 # tests run on this system so they can be shared between configure
16033 # scripts and configure runs, see configure's option --config-cache.
16034 # It is not useful on other systems.  If it contains results you don't
16035 # want to keep, you may remove or edit it.
16036 #
16037 # config.status only pays attention to the cache file if you give it
16038 # the --recheck option to rerun configure.
16039 #
16040 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16041 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16042 # following values.
16043
16044 _ACEOF
16045
16046 # The following way of writing the cache mishandles newlines in values,
16047 # but we know of no workaround that is simple, portable, and efficient.
16048 # So, we kill variables containing newlines.
16049 # Ultrix sh set writes to stderr and can't be redirected directly,
16050 # and sets the high bit in the cache file unless we assign to the vars.
16051 (
16052   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16053     eval ac_val=\$$ac_var
16054     case $ac_val in #(
16055     *${as_nl}*)
16056       case $ac_var in #(
16057       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16058 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16059       esac
16060       case $ac_var in #(
16061       _ | IFS | as_nl) ;; #(
16062       *) $as_unset $ac_var ;;
16063       esac ;;
16064     esac
16065   done
16066
16067   (set) 2>&1 |
16068     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16069     *${as_nl}ac_space=\ *)
16070       # `set' does not quote correctly, so add quotes (double-quote
16071       # substitution turns \\\\ into \\, and sed turns \\ into \).
16072       sed -n \
16073         "s/'/'\\\\''/g;
16074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16075       ;; #(
16076     *)
16077       # `set' quotes correctly as required by POSIX, so do not add quotes.
16078       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16079       ;;
16080     esac |
16081     sort
16082 ) |
16083   sed '
16084      /^ac_cv_env_/b end
16085      t clear
16086      :clear
16087      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16088      t end
16089      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16090      :end' >>confcache
16091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16092   if test -w "$cache_file"; then
16093     test "x$cache_file" != "x/dev/null" &&
16094       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16095 echo "$as_me: updating cache $cache_file" >&6;}
16096     cat confcache >$cache_file
16097   else
16098     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16099 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16100   fi
16101 fi
16102 rm -f confcache
16103
16104 CFLAGS=${CFLAGS:=}
16105
16106
16107
16108     ac_ext=c
16109 ac_cpp='$CPP $CPPFLAGS'
16110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16113 if test -n "$ac_tool_prefix"; then
16114   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16118 if test "${ac_cv_prog_CC+set}" = set; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   if test -n "$CC"; then
16122   ac_cv_prog_CC="$CC" # Let the user override the test.
16123 else
16124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16126 do
16127   IFS=$as_save_IFS
16128   test -z "$as_dir" && as_dir=.
16129   for ac_exec_ext in '' $ac_executable_extensions; do
16130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16131     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16133     break 2
16134   fi
16135 done
16136 done
16137 IFS=$as_save_IFS
16138
16139 fi
16140 fi
16141 CC=$ac_cv_prog_CC
16142 if test -n "$CC"; then
16143   { echo "$as_me:$LINENO: result: $CC" >&5
16144 echo "${ECHO_T}$CC" >&6; }
16145 else
16146   { echo "$as_me:$LINENO: result: no" >&5
16147 echo "${ECHO_T}no" >&6; }
16148 fi
16149
16150
16151 fi
16152 if test -z "$ac_cv_prog_CC"; then
16153   ac_ct_CC=$CC
16154   # Extract the first word of "gcc", so it can be a program name with args.
16155 set dummy gcc; ac_word=$2
16156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   if test -n "$ac_ct_CC"; then
16162   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16163 else
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $PATH
16166 do
16167   IFS=$as_save_IFS
16168   test -z "$as_dir" && as_dir=.
16169   for ac_exec_ext in '' $ac_executable_extensions; do
16170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16171     ac_cv_prog_ac_ct_CC="gcc"
16172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16173     break 2
16174   fi
16175 done
16176 done
16177 IFS=$as_save_IFS
16178
16179 fi
16180 fi
16181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16182 if test -n "$ac_ct_CC"; then
16183   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16184 echo "${ECHO_T}$ac_ct_CC" >&6; }
16185 else
16186   { echo "$as_me:$LINENO: result: no" >&5
16187 echo "${ECHO_T}no" >&6; }
16188 fi
16189
16190   if test "x$ac_ct_CC" = x; then
16191     CC=""
16192   else
16193     case $cross_compiling:$ac_tool_warned in
16194 yes:)
16195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16196 whose name does not start with the host triplet.  If you think this
16197 configuration is useful to you, please write to autoconf@gnu.org." >&5
16198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16199 whose name does not start with the host triplet.  If you think this
16200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16201 ac_tool_warned=yes ;;
16202 esac
16203     CC=$ac_ct_CC
16204   fi
16205 else
16206   CC="$ac_cv_prog_CC"
16207 fi
16208
16209 if test -z "$CC"; then
16210           if test -n "$ac_tool_prefix"; then
16211     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16212 set dummy ${ac_tool_prefix}cc; ac_word=$2
16213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16215 if test "${ac_cv_prog_CC+set}" = set; then
16216   echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218   if test -n "$CC"; then
16219   ac_cv_prog_CC="$CC" # Let the user override the test.
16220 else
16221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222 for as_dir in $PATH
16223 do
16224   IFS=$as_save_IFS
16225   test -z "$as_dir" && as_dir=.
16226   for ac_exec_ext in '' $ac_executable_extensions; do
16227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16228     ac_cv_prog_CC="${ac_tool_prefix}cc"
16229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16230     break 2
16231   fi
16232 done
16233 done
16234 IFS=$as_save_IFS
16235
16236 fi
16237 fi
16238 CC=$ac_cv_prog_CC
16239 if test -n "$CC"; then
16240   { echo "$as_me:$LINENO: result: $CC" >&5
16241 echo "${ECHO_T}$CC" >&6; }
16242 else
16243   { echo "$as_me:$LINENO: result: no" >&5
16244 echo "${ECHO_T}no" >&6; }
16245 fi
16246
16247
16248   fi
16249 fi
16250 if test -z "$CC"; then
16251   # Extract the first word of "cc", so it can be a program name with args.
16252 set dummy cc; ac_word=$2
16253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16255 if test "${ac_cv_prog_CC+set}" = set; then
16256   echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258   if test -n "$CC"; then
16259   ac_cv_prog_CC="$CC" # Let the user override the test.
16260 else
16261   ac_prog_rejected=no
16262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16263 for as_dir in $PATH
16264 do
16265   IFS=$as_save_IFS
16266   test -z "$as_dir" && as_dir=.
16267   for ac_exec_ext in '' $ac_executable_extensions; do
16268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16269     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16270        ac_prog_rejected=yes
16271        continue
16272      fi
16273     ac_cv_prog_CC="cc"
16274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16275     break 2
16276   fi
16277 done
16278 done
16279 IFS=$as_save_IFS
16280
16281 if test $ac_prog_rejected = yes; then
16282   # We found a bogon in the path, so make sure we never use it.
16283   set dummy $ac_cv_prog_CC
16284   shift
16285   if test $# != 0; then
16286     # We chose a different compiler from the bogus one.
16287     # However, it has the same basename, so the bogon will be chosen
16288     # first if we set CC to just the basename; use the full file name.
16289     shift
16290     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16291   fi
16292 fi
16293 fi
16294 fi
16295 CC=$ac_cv_prog_CC
16296 if test -n "$CC"; then
16297   { echo "$as_me:$LINENO: result: $CC" >&5
16298 echo "${ECHO_T}$CC" >&6; }
16299 else
16300   { echo "$as_me:$LINENO: result: no" >&5
16301 echo "${ECHO_T}no" >&6; }
16302 fi
16303
16304
16305 fi
16306 if test -z "$CC"; then
16307   if test -n "$ac_tool_prefix"; then
16308   for ac_prog in cl.exe
16309   do
16310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16314 if test "${ac_cv_prog_CC+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   if test -n "$CC"; then
16318   ac_cv_prog_CC="$CC" # Let the user override the test.
16319 else
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16322 do
16323   IFS=$as_save_IFS
16324   test -z "$as_dir" && as_dir=.
16325   for ac_exec_ext in '' $ac_executable_extensions; do
16326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16327     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16329     break 2
16330   fi
16331 done
16332 done
16333 IFS=$as_save_IFS
16334
16335 fi
16336 fi
16337 CC=$ac_cv_prog_CC
16338 if test -n "$CC"; then
16339   { echo "$as_me:$LINENO: result: $CC" >&5
16340 echo "${ECHO_T}$CC" >&6; }
16341 else
16342   { echo "$as_me:$LINENO: result: no" >&5
16343 echo "${ECHO_T}no" >&6; }
16344 fi
16345
16346
16347     test -n "$CC" && break
16348   done
16349 fi
16350 if test -z "$CC"; then
16351   ac_ct_CC=$CC
16352   for ac_prog in cl.exe
16353 do
16354   # Extract the first word of "$ac_prog", so it can be a program name with args.
16355 set dummy $ac_prog; ac_word=$2
16356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16358 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   if test -n "$ac_ct_CC"; then
16362   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16363 else
16364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16365 for as_dir in $PATH
16366 do
16367   IFS=$as_save_IFS
16368   test -z "$as_dir" && as_dir=.
16369   for ac_exec_ext in '' $ac_executable_extensions; do
16370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16371     ac_cv_prog_ac_ct_CC="$ac_prog"
16372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16373     break 2
16374   fi
16375 done
16376 done
16377 IFS=$as_save_IFS
16378
16379 fi
16380 fi
16381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16382 if test -n "$ac_ct_CC"; then
16383   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16384 echo "${ECHO_T}$ac_ct_CC" >&6; }
16385 else
16386   { echo "$as_me:$LINENO: result: no" >&5
16387 echo "${ECHO_T}no" >&6; }
16388 fi
16389
16390
16391   test -n "$ac_ct_CC" && break
16392 done
16393
16394   if test "x$ac_ct_CC" = x; then
16395     CC=""
16396   else
16397     case $cross_compiling:$ac_tool_warned in
16398 yes:)
16399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16400 whose name does not start with the host triplet.  If you think this
16401 configuration is useful to you, please write to autoconf@gnu.org." >&5
16402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16403 whose name does not start with the host triplet.  If you think this
16404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16405 ac_tool_warned=yes ;;
16406 esac
16407     CC=$ac_ct_CC
16408   fi
16409 fi
16410
16411 fi
16412
16413
16414 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16415 See \`config.log' for more details." >&5
16416 echo "$as_me: error: no acceptable C compiler found in \$PATH
16417 See \`config.log' for more details." >&2;}
16418    { (exit 1); exit 1; }; }
16419
16420 # Provide some information about the compiler.
16421 echo "$as_me:$LINENO: checking for C compiler version" >&5
16422 ac_compiler=`set X $ac_compile; echo $2`
16423 { (ac_try="$ac_compiler --version >&5"
16424 case "(($ac_try" in
16425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426   *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429   (eval "$ac_compiler --version >&5") 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }
16433 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); }
16443 { (ac_try="$ac_compiler -V >&5"
16444 case "(($ac_try" in
16445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446   *) ac_try_echo=$ac_try;;
16447 esac
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449   (eval "$ac_compiler -V >&5") 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); }
16453
16454 cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460
16461 int
16462 main ()
16463 {
16464
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 ac_clean_files_save=$ac_clean_files
16470 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16471 # Try to create an executable without -o first, disregard a.out.
16472 # It will help us diagnose broken compilers, and finding out an intuition
16473 # of exeext.
16474 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16475 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16477 #
16478 # List of possible output files, starting from the most likely.
16479 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16480 # only as a last resort.  b.out is created by i960 compilers.
16481 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16482 #
16483 # The IRIX 6 linker writes into existing files which may not be
16484 # executable, retaining their permissions.  Remove them first so a
16485 # subsequent execution test works.
16486 ac_rmfiles=
16487 for ac_file in $ac_files
16488 do
16489   case $ac_file in
16490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16491     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
16492   esac
16493 done
16494 rm -f $ac_rmfiles
16495
16496 if { (ac_try="$ac_link_default"
16497 case "(($ac_try" in
16498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499   *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502   (eval "$ac_link_default") 2>&5
16503   ac_status=$?
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); }; then
16506   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
16507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
16508 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
16509 # so that the user can short-circuit this test for compilers unknown to
16510 # Autoconf.
16511 for ac_file in $ac_files ''
16512 do
16513   test -f "$ac_file" || continue
16514   case $ac_file in
16515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
16516         ;;
16517     [ab].out )
16518         # We found the default executable, but exeext='' is most
16519         # certainly right.
16520         break;;
16521     *.* )
16522         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
16523         then :; else
16524            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16525         fi
16526         # We set ac_cv_exeext here because the later test for it is not
16527         # safe: cross compilers may not add the suffix if given an `-o'
16528         # argument, so we may need to know it at that point already.
16529         # Even if this section looks crufty: it has the advantage of
16530         # actually working.
16531         break;;
16532     * )
16533         break;;
16534   esac
16535 done
16536 test "$ac_cv_exeext" = no && ac_cv_exeext=
16537
16538 else
16539   ac_file=''
16540 fi
16541
16542 { echo "$as_me:$LINENO: result: $ac_file" >&5
16543 echo "${ECHO_T}$ac_file" >&6; }
16544 if test -z "$ac_file"; then
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
16549 See \`config.log' for more details." >&5
16550 echo "$as_me: error: C compiler cannot create executables
16551 See \`config.log' for more details." >&2;}
16552    { (exit 77); exit 77; }; }
16553 fi
16554
16555 ac_exeext=$ac_cv_exeext
16556
16557 # Check that the compiler produces executables we can run.  If not, either
16558 # the compiler is broken, or we cross compile.
16559 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
16560 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
16561 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
16562 # If not cross compiling, check that we can run a simple program.
16563 if test "$cross_compiling" != yes; then
16564   if { ac_try='./$ac_file'
16565   { (case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_try") 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; }; then
16574     cross_compiling=no
16575   else
16576     if test "$cross_compiling" = maybe; then
16577         cross_compiling=yes
16578     else
16579         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
16580 If you meant to cross compile, use \`--host'.
16581 See \`config.log' for more details." >&5
16582 echo "$as_me: error: cannot run C compiled programs.
16583 If you meant to cross compile, use \`--host'.
16584 See \`config.log' for more details." >&2;}
16585    { (exit 1); exit 1; }; }
16586     fi
16587   fi
16588 fi
16589 { echo "$as_me:$LINENO: result: yes" >&5
16590 echo "${ECHO_T}yes" >&6; }
16591
16592 rm -f a.out a.exe conftest$ac_cv_exeext b.out
16593 ac_clean_files=$ac_clean_files_save
16594 # Check that the compiler produces executables we can run.  If not, either
16595 # the compiler is broken, or we cross compile.
16596 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
16597 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
16598 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
16599 echo "${ECHO_T}$cross_compiling" >&6; }
16600
16601 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
16602 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
16603 if { (ac_try="$ac_link"
16604 case "(($ac_try" in
16605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606   *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609   (eval "$ac_link") 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; then
16613   # If both `conftest.exe' and `conftest' are `present' (well, observable)
16614 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
16615 # work properly (i.e., refer to `conftest.exe'), while it won't with
16616 # `rm'.
16617 for ac_file in conftest.exe conftest conftest.*; do
16618   test -f "$ac_file" || continue
16619   case $ac_file in
16620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16621     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16622           break;;
16623     * ) break;;
16624   esac
16625 done
16626 else
16627   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
16628 See \`config.log' for more details." >&5
16629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
16630 See \`config.log' for more details." >&2;}
16631    { (exit 1); exit 1; }; }
16632 fi
16633
16634 rm -f conftest$ac_cv_exeext
16635 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
16636 echo "${ECHO_T}$ac_cv_exeext" >&6; }
16637
16638 rm -f conftest.$ac_ext
16639 EXEEXT=$ac_cv_exeext
16640 ac_exeext=$EXEEXT
16641 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
16642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
16643 if test "${ac_cv_objext+set}" = set; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646   cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h.  */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h.  */
16652
16653 int
16654 main ()
16655 {
16656
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.o conftest.obj
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_compile") 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; then
16672   for ac_file in conftest.o conftest.obj conftest.*; do
16673   test -f "$ac_file" || continue;
16674   case $ac_file in
16675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
16676     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
16677        break;;
16678   esac
16679 done
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
16685 See \`config.log' for more details." >&5
16686 echo "$as_me: error: cannot compute suffix of object files: cannot compile
16687 See \`config.log' for more details." >&2;}
16688    { (exit 1); exit 1; }; }
16689 fi
16690
16691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
16692 fi
16693 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
16694 echo "${ECHO_T}$ac_cv_objext" >&6; }
16695 OBJEXT=$ac_cv_objext
16696 ac_objext=$OBJEXT
16697 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
16698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
16699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708
16709 int
16710 main ()
16711 {
16712 #ifndef __GNUC__
16713        choke me
16714 #endif
16715
16716   ;
16717   return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (ac_try="$ac_compile"
16722 case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_compile") 2>conftest.er1
16728   ac_status=$?
16729   grep -v '^ *+' conftest.er1 >conftest.err
16730   rm -f conftest.er1
16731   cat conftest.err >&5
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); } && {
16734          test -z "$ac_c_werror_flag" ||
16735          test ! -s conftest.err
16736        } && test -s conftest.$ac_objext; then
16737   ac_compiler_gnu=yes
16738 else
16739   echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16741
16742         ac_compiler_gnu=no
16743 fi
16744
16745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16747
16748 fi
16749 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
16750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
16751 GCC=`test $ac_compiler_gnu = yes && echo yes`
16752 ac_test_CFLAGS=${CFLAGS+set}
16753 ac_save_CFLAGS=$CFLAGS
16754 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16756 if test "${ac_cv_prog_cc_g+set}" = set; then
16757   echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759   ac_save_c_werror_flag=$ac_c_werror_flag
16760    ac_c_werror_flag=yes
16761    ac_cv_prog_cc_g=no
16762    CFLAGS="-g"
16763    cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769
16770 int
16771 main ()
16772 {
16773
16774   ;
16775   return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782   *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785   (eval "$ac_compile") 2>conftest.er1
16786   ac_status=$?
16787   grep -v '^ *+' conftest.er1 >conftest.err
16788   rm -f conftest.er1
16789   cat conftest.err >&5
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); } && {
16792          test -z "$ac_c_werror_flag" ||
16793          test ! -s conftest.err
16794        } && test -s conftest.$ac_objext; then
16795   ac_cv_prog_cc_g=yes
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800         CFLAGS=""
16801       cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h.  */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h.  */
16807
16808 int
16809 main ()
16810 {
16811
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (ac_try="$ac_compile"
16818 case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_compile") 2>conftest.er1
16824   ac_status=$?
16825   grep -v '^ *+' conftest.er1 >conftest.err
16826   rm -f conftest.er1
16827   cat conftest.err >&5
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); } && {
16830          test -z "$ac_c_werror_flag" ||
16831          test ! -s conftest.err
16832        } && test -s conftest.$ac_objext; then
16833   :
16834 else
16835   echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838         ac_c_werror_flag=$ac_save_c_werror_flag
16839          CFLAGS="-g"
16840          cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h.  */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h.  */
16846
16847 int
16848 main ()
16849 {
16850
16851   ;
16852   return 0;
16853 }
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862   (eval "$ac_compile") 2>conftest.er1
16863   ac_status=$?
16864   grep -v '^ *+' conftest.er1 >conftest.err
16865   rm -f conftest.er1
16866   cat conftest.err >&5
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); } && {
16869          test -z "$ac_c_werror_flag" ||
16870          test ! -s conftest.err
16871        } && test -s conftest.$ac_objext; then
16872   ac_cv_prog_cc_g=yes
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877
16878 fi
16879
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 fi
16882
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 fi
16885
16886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887    ac_c_werror_flag=$ac_save_c_werror_flag
16888 fi
16889 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16890 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16891 if test "$ac_test_CFLAGS" = set; then
16892   CFLAGS=$ac_save_CFLAGS
16893 elif test $ac_cv_prog_cc_g = yes; then
16894   if test "$GCC" = yes; then
16895     CFLAGS="-g -O2"
16896   else
16897     CFLAGS="-g"
16898   fi
16899 else
16900   if test "$GCC" = yes; then
16901     CFLAGS="-O2"
16902   else
16903     CFLAGS=
16904   fi
16905 fi
16906 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
16907 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
16908 if test "${ac_cv_prog_cc_c89+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   ac_cv_prog_cc_c89=no
16912 ac_save_CC=$CC
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919 #include <stdarg.h>
16920 #include <stdio.h>
16921 #include <sys/types.h>
16922 #include <sys/stat.h>
16923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16924 struct buf { int x; };
16925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16926 static char *e (p, i)
16927      char **p;
16928      int i;
16929 {
16930   return p[i];
16931 }
16932 static char *f (char * (*g) (char **, int), char **p, ...)
16933 {
16934   char *s;
16935   va_list v;
16936   va_start (v,p);
16937   s = g (p, va_arg (v,int));
16938   va_end (v);
16939   return s;
16940 }
16941
16942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16943    function prototypes and stuff, but not '\xHH' hex character constants.
16944    These don't provoke an error unfortunately, instead are silently treated
16945    as 'x'.  The following induces an error, until -std is added to get
16946    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16947    array size at least.  It's necessary to write '\x00'==0 to get something
16948    that's true only with -std.  */
16949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16950
16951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16952    inside strings and character constants.  */
16953 #define FOO(x) 'x'
16954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16955
16956 int test (int i, double x);
16957 struct s1 {int (*f) (int a);};
16958 struct s2 {int (*f) (double a);};
16959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16960 int argc;
16961 char **argv;
16962 int
16963 main ()
16964 {
16965 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16966   ;
16967   return 0;
16968 }
16969 _ACEOF
16970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16971         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16972 do
16973   CC="$ac_save_CC $ac_arg"
16974   rm -f conftest.$ac_objext
16975 if { (ac_try="$ac_compile"
16976 case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_compile") 2>conftest.er1
16982   ac_status=$?
16983   grep -v '^ *+' conftest.er1 >conftest.err
16984   rm -f conftest.er1
16985   cat conftest.err >&5
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } && {
16988          test -z "$ac_c_werror_flag" ||
16989          test ! -s conftest.err
16990        } && test -s conftest.$ac_objext; then
16991   ac_cv_prog_cc_c89=$ac_arg
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996
16997 fi
16998
16999 rm -f core conftest.err conftest.$ac_objext
17000   test "x$ac_cv_prog_cc_c89" != "xno" && break
17001 done
17002 rm -f conftest.$ac_ext
17003 CC=$ac_save_CC
17004
17005 fi
17006 # AC_CACHE_VAL
17007 case "x$ac_cv_prog_cc_c89" in
17008   x)
17009     { echo "$as_me:$LINENO: result: none needed" >&5
17010 echo "${ECHO_T}none needed" >&6; } ;;
17011   xno)
17012     { echo "$as_me:$LINENO: result: unsupported" >&5
17013 echo "${ECHO_T}unsupported" >&6; } ;;
17014   *)
17015     CC="$CC $ac_cv_prog_cc_c89"
17016     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
17017 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
17018 esac
17019
17020
17021 ac_ext=c
17022 ac_cpp='$CPP $CPPFLAGS'
17023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17026
17027
17028
17029
17030     ac_ext=c
17031 ac_cpp='$CPP $CPPFLAGS'
17032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17035
17036     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
17037 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
17038 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047
17048 int
17049 main ()
17050 {
17051
17052              #ifndef __INTEL_COMPILER
17053                 choke me
17054              #endif
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_compile") 2>conftest.er1
17068   ac_status=$?
17069   grep -v '^ *+' conftest.er1 >conftest.err
17070   rm -f conftest.er1
17071   cat conftest.err >&5
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } && {
17074          test -z "$ac_c_werror_flag" ||
17075          test ! -s conftest.err
17076        } && test -s conftest.$ac_objext; then
17077   bakefile_cv_c_compiler___INTEL_COMPILER=yes
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         bakefile_cv_c_compiler___INTEL_COMPILER=no
17083
17084 fi
17085
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087
17088
17089 fi
17090 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17091 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
17092     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17093         :; INTELCC=yes
17094     else
17095         :;
17096     fi
17097     ac_ext=c
17098 ac_cpp='$CPP $CPPFLAGS'
17099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17102
17103
17104
17105
17106         if test "x$GCC" != "xyes"; then
17107         if test "xCC" = "xC"; then
17108             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17109 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17110 if test "${bakefile_cv_c_exto+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119
17120 int
17121 main ()
17122 {
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest.$ac_ext.o
17129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17130   (eval $ac_compile) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; then
17134   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17135     case $ac_file in
17136         conftest.$ac_ext.o)
17137             bakefile_cv_c_exto="-ext o"
17138             ;;
17139         *)
17140             ;;
17141     esac
17142 done
17143 else
17144   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17145 See \`config.log' for more details." >&5
17146 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17147 See \`config.log' for more details." >&2;}
17148    { (exit 1); exit 1; }; }
17149
17150 fi
17151
17152 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17153
17154 fi
17155 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17156 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17157 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17158     if test "c" = "c"; then
17159         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17160     fi
17161     if test "c" = "cxx"; then
17162         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17163     fi
17164 fi
17165
17166             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17167                 unset ac_cv_prog_cc_g
17168                 ac_test_CFLAGS=${CFLAGS+set}
17169 ac_save_CFLAGS=$CFLAGS
17170 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17171 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17172 if test "${ac_cv_prog_cc_g+set}" = set; then
17173   echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175   ac_save_c_werror_flag=$ac_c_werror_flag
17176    ac_c_werror_flag=yes
17177    ac_cv_prog_cc_g=no
17178    CFLAGS="-g"
17179    cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185
17186 int
17187 main ()
17188 {
17189
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 rm -f conftest.$ac_objext
17195 if { (ac_try="$ac_compile"
17196 case "(($ac_try" in
17197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198   *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201   (eval "$ac_compile") 2>conftest.er1
17202   ac_status=$?
17203   grep -v '^ *+' conftest.er1 >conftest.err
17204   rm -f conftest.er1
17205   cat conftest.err >&5
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); } && {
17208          test -z "$ac_c_werror_flag" ||
17209          test ! -s conftest.err
17210        } && test -s conftest.$ac_objext; then
17211   ac_cv_prog_cc_g=yes
17212 else
17213   echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216         CFLAGS=""
17217       cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h.  */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h.  */
17223
17224 int
17225 main ()
17226 {
17227
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext
17233 if { (ac_try="$ac_compile"
17234 case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_compile") 2>conftest.er1
17240   ac_status=$?
17241   grep -v '^ *+' conftest.er1 >conftest.err
17242   rm -f conftest.er1
17243   cat conftest.err >&5
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); } && {
17246          test -z "$ac_c_werror_flag" ||
17247          test ! -s conftest.err
17248        } && test -s conftest.$ac_objext; then
17249   :
17250 else
17251   echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254         ac_c_werror_flag=$ac_save_c_werror_flag
17255          CFLAGS="-g"
17256          cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262
17263 int
17264 main ()
17265 {
17266
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (ac_try="$ac_compile"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_compile") 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } && {
17285          test -z "$ac_c_werror_flag" ||
17286          test ! -s conftest.err
17287        } && test -s conftest.$ac_objext; then
17288   ac_cv_prog_cc_g=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 fi
17298
17299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17300 fi
17301
17302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303    ac_c_werror_flag=$ac_save_c_werror_flag
17304 fi
17305 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17307 if test "$ac_test_CFLAGS" = set; then
17308   CFLAGS=$ac_save_CFLAGS
17309 elif test $ac_cv_prog_cc_g = yes; then
17310   if test "$GCC" = yes; then
17311     CFLAGS="-g -O2"
17312   else
17313     CFLAGS="-g"
17314   fi
17315 else
17316   if test "$GCC" = yes; then
17317     CFLAGS="-O2"
17318   else
17319     CFLAGS=
17320   fi
17321 fi
17322             fi
17323         fi
17324
17325                         case `uname -s` in
17326             AIX*)
17327
17328
17329     ac_ext=c
17330 ac_cpp='$CPP $CPPFLAGS'
17331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17334
17335     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17336 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17337 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346
17347 int
17348 main ()
17349 {
17350
17351              #ifndef __xlC__
17352                 choke me
17353              #endif
17354
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext
17360 if { (ac_try="$ac_compile"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_compile") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest.$ac_objext; then
17376   bakefile_cv_c_compiler___xlC__=yes
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381         bakefile_cv_c_compiler___xlC__=no
17382
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386
17387
17388 fi
17389 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17390 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17391     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17392         :; XLCC=yes
17393     else
17394         :;
17395     fi
17396     ac_ext=c
17397 ac_cpp='$CPP $CPPFLAGS'
17398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17401
17402
17403
17404                 ;;
17405
17406             Darwin)
17407
17408
17409     ac_ext=c
17410 ac_cpp='$CPP $CPPFLAGS'
17411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17414
17415     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17416 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17417 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426
17427 int
17428 main ()
17429 {
17430
17431              #ifndef __MWERKS__
17432                 choke me
17433              #endif
17434
17435   ;
17436   return 0;
17437 }
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (ac_try="$ac_compile"
17441 case "(($ac_try" in
17442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443   *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446   (eval "$ac_compile") 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } && {
17453          test -z "$ac_c_werror_flag" ||
17454          test ! -s conftest.err
17455        } && test -s conftest.$ac_objext; then
17456   bakefile_cv_c_compiler___MWERKS__=yes
17457 else
17458   echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17460
17461         bakefile_cv_c_compiler___MWERKS__=no
17462
17463 fi
17464
17465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466
17467
17468 fi
17469 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17470 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17471     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17472         :; MWCC=yes
17473     else
17474         :;
17475     fi
17476     ac_ext=c
17477 ac_cpp='$CPP $CPPFLAGS'
17478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17481
17482
17483
17484
17485
17486     ac_ext=c
17487 ac_cpp='$CPP $CPPFLAGS'
17488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17491
17492     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17493 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17494 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17495   echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497   cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503
17504 int
17505 main ()
17506 {
17507
17508              #ifndef __xlC__
17509                 choke me
17510              #endif
17511
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523   (eval "$ac_compile") 2>conftest.er1
17524   ac_status=$?
17525   grep -v '^ *+' conftest.er1 >conftest.err
17526   rm -f conftest.er1
17527   cat conftest.err >&5
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); } && {
17530          test -z "$ac_c_werror_flag" ||
17531          test ! -s conftest.err
17532        } && test -s conftest.$ac_objext; then
17533   bakefile_cv_c_compiler___xlC__=yes
17534 else
17535   echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17537
17538         bakefile_cv_c_compiler___xlC__=no
17539
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543
17544
17545 fi
17546 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17547 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17548     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17549         :; XLCC=yes
17550     else
17551         :;
17552     fi
17553     ac_ext=c
17554 ac_cpp='$CPP $CPPFLAGS'
17555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17558
17559
17560
17561                 ;;
17562
17563             IRIX*)
17564
17565
17566     ac_ext=c
17567 ac_cpp='$CPP $CPPFLAGS'
17568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17571
17572     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
17573 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
17574 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
17575   echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577   cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583
17584 int
17585 main ()
17586 {
17587
17588              #ifndef _SGI_COMPILER_VERSION
17589                 choke me
17590              #endif
17591
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596 rm -f conftest.$ac_objext
17597 if { (ac_try="$ac_compile"
17598 case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603   (eval "$ac_compile") 2>conftest.er1
17604   ac_status=$?
17605   grep -v '^ *+' conftest.er1 >conftest.err
17606   rm -f conftest.er1
17607   cat conftest.err >&5
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } && {
17610          test -z "$ac_c_werror_flag" ||
17611          test ! -s conftest.err
17612        } && test -s conftest.$ac_objext; then
17613   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
17614 else
17615   echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
17619
17620 fi
17621
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623
17624
17625 fi
17626 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
17627 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
17628     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17629         :; SGICC=yes
17630     else
17631         :;
17632     fi
17633     ac_ext=c
17634 ac_cpp='$CPP $CPPFLAGS'
17635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17638
17639
17640
17641                 ;;
17642
17643             Linux*)
17644
17645
17646     ac_ext=c
17647 ac_cpp='$CPP $CPPFLAGS'
17648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17651
17652     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17653 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17654 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663
17664 int
17665 main ()
17666 {
17667
17668              #ifndef __SUNPRO_C
17669                 choke me
17670              #endif
17671
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680   *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683   (eval "$ac_compile") 2>conftest.er1
17684   ac_status=$?
17685   grep -v '^ *+' conftest.er1 >conftest.err
17686   rm -f conftest.er1
17687   cat conftest.err >&5
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } && {
17690          test -z "$ac_c_werror_flag" ||
17691          test ! -s conftest.err
17692        } && test -s conftest.$ac_objext; then
17693   bakefile_cv_c_compiler___SUNPRO_C=yes
17694 else
17695   echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17697
17698         bakefile_cv_c_compiler___SUNPRO_C=no
17699
17700 fi
17701
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703
17704
17705 fi
17706 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17707 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17708     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17709         :; SUNCC=yes
17710     else
17711         :;
17712     fi
17713     ac_ext=c
17714 ac_cpp='$CPP $CPPFLAGS'
17715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17718
17719
17720
17721                 ;;
17722
17723             HP-UX*)
17724
17725
17726     ac_ext=c
17727 ac_cpp='$CPP $CPPFLAGS'
17728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17731
17732     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
17733 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
17734 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737   cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743
17744 int
17745 main ()
17746 {
17747
17748              #ifndef __HP_cc
17749                 choke me
17750              #endif
17751
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext
17757 if { (ac_try="$ac_compile"
17758 case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_compile") 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } && {
17770          test -z "$ac_c_werror_flag" ||
17771          test ! -s conftest.err
17772        } && test -s conftest.$ac_objext; then
17773   bakefile_cv_c_compiler___HP_cc=yes
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778         bakefile_cv_c_compiler___HP_cc=no
17779
17780 fi
17781
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783
17784
17785 fi
17786 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17787 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17788     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17789         :; HPCC=yes
17790     else
17791         :;
17792     fi
17793     ac_ext=c
17794 ac_cpp='$CPP $CPPFLAGS'
17795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798
17799
17800
17801                 ;;
17802
17803             OSF1)
17804
17805
17806     ac_ext=c
17807 ac_cpp='$CPP $CPPFLAGS'
17808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17811
17812     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17813 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17814 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823
17824 int
17825 main ()
17826 {
17827
17828              #ifndef __DECC
17829                 choke me
17830              #endif
17831
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_compile") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } && {
17850          test -z "$ac_c_werror_flag" ||
17851          test ! -s conftest.err
17852        } && test -s conftest.$ac_objext; then
17853   bakefile_cv_c_compiler___DECC=yes
17854 else
17855   echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858         bakefile_cv_c_compiler___DECC=no
17859
17860 fi
17861
17862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17863
17864
17865 fi
17866 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17867 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17868     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17869         :; COMPAQCC=yes
17870     else
17871         :;
17872     fi
17873     ac_ext=c
17874 ac_cpp='$CPP $CPPFLAGS'
17875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17878
17879
17880
17881                 ;;
17882
17883             SunOS)
17884
17885
17886     ac_ext=c
17887 ac_cpp='$CPP $CPPFLAGS'
17888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17891
17892     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17893 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17894 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17895   echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897   cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903
17904 int
17905 main ()
17906 {
17907
17908              #ifndef __SUNPRO_C
17909                 choke me
17910              #endif
17911
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext
17917 if { (ac_try="$ac_compile"
17918 case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_compile") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && {
17930          test -z "$ac_c_werror_flag" ||
17931          test ! -s conftest.err
17932        } && test -s conftest.$ac_objext; then
17933   bakefile_cv_c_compiler___SUNPRO_C=yes
17934 else
17935   echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938         bakefile_cv_c_compiler___SUNPRO_C=no
17939
17940 fi
17941
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943
17944
17945 fi
17946 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17947 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17948     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17949         :; SUNCC=yes
17950     else
17951         :;
17952     fi
17953     ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959
17960
17961                 ;;
17962         esac
17963     fi
17964
17965
17966
17967 ac_ext=c
17968 ac_cpp='$CPP $CPPFLAGS'
17969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17974 # On Suns, sometimes $CPP names a directory.
17975 if test -n "$CPP" && test -d "$CPP"; then
17976   CPP=
17977 fi
17978 if test -z "$CPP"; then
17979   if test "${ac_cv_prog_CPP+set}" = set; then
17980   echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982       # Double quotes because CPP needs to be expanded
17983     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17984     do
17985       ac_preproc_ok=false
17986 for ac_c_preproc_warn_flag in '' yes
17987 do
17988   # Use a header file that comes with gcc, so configuring glibc
17989   # with a fresh cross-compiler works.
17990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17991   # <limits.h> exists even on freestanding compilers.
17992   # On the NeXT, cc -E runs the code through the compiler's parser,
17993   # not just through cpp. "Syntax error" is here to catch this case.
17994   cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000 #ifdef __STDC__
18001 # include <limits.h>
18002 #else
18003 # include <assert.h>
18004 #endif
18005                      Syntax error
18006 _ACEOF
18007 if { (ac_try="$ac_cpp conftest.$ac_ext"
18008 case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } >/dev/null && {
18020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18021          test ! -s conftest.err
18022        }; then
18023   :
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028   # Broken: fails on valid input.
18029 continue
18030 fi
18031
18032 rm -f conftest.err conftest.$ac_ext
18033
18034   # OK, works on sane cases.  Now check whether nonexistent headers
18035   # can be detected and how.
18036   cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042 #include <ac_nonexistent.h>
18043 _ACEOF
18044 if { (ac_try="$ac_cpp conftest.$ac_ext"
18045 case "(($ac_try" in
18046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047   *) ac_try_echo=$ac_try;;
18048 esac
18049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18051   ac_status=$?
18052   grep -v '^ *+' conftest.er1 >conftest.err
18053   rm -f conftest.er1
18054   cat conftest.err >&5
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); } >/dev/null && {
18057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18058          test ! -s conftest.err
18059        }; then
18060   # Broken: success on invalid input.
18061 continue
18062 else
18063   echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066   # Passes both tests.
18067 ac_preproc_ok=:
18068 break
18069 fi
18070
18071 rm -f conftest.err conftest.$ac_ext
18072
18073 done
18074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18075 rm -f conftest.err conftest.$ac_ext
18076 if $ac_preproc_ok; then
18077   break
18078 fi
18079
18080     done
18081     ac_cv_prog_CPP=$CPP
18082
18083 fi
18084   CPP=$ac_cv_prog_CPP
18085 else
18086   ac_cv_prog_CPP=$CPP
18087 fi
18088 { echo "$as_me:$LINENO: result: $CPP" >&5
18089 echo "${ECHO_T}$CPP" >&6; }
18090 ac_preproc_ok=false
18091 for ac_c_preproc_warn_flag in '' yes
18092 do
18093   # Use a header file that comes with gcc, so configuring glibc
18094   # with a fresh cross-compiler works.
18095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18096   # <limits.h> exists even on freestanding compilers.
18097   # On the NeXT, cc -E runs the code through the compiler's parser,
18098   # not just through cpp. "Syntax error" is here to catch this case.
18099   cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 #ifdef __STDC__
18106 # include <limits.h>
18107 #else
18108 # include <assert.h>
18109 #endif
18110                      Syntax error
18111 _ACEOF
18112 if { (ac_try="$ac_cpp conftest.$ac_ext"
18113 case "(($ac_try" in
18114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115   *) ac_try_echo=$ac_try;;
18116 esac
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } >/dev/null && {
18125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18126          test ! -s conftest.err
18127        }; then
18128   :
18129 else
18130   echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133   # Broken: fails on valid input.
18134 continue
18135 fi
18136
18137 rm -f conftest.err conftest.$ac_ext
18138
18139   # OK, works on sane cases.  Now check whether nonexistent headers
18140   # can be detected and how.
18141   cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h.  */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h.  */
18147 #include <ac_nonexistent.h>
18148 _ACEOF
18149 if { (ac_try="$ac_cpp conftest.$ac_ext"
18150 case "(($ac_try" in
18151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152   *) ac_try_echo=$ac_try;;
18153 esac
18154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18156   ac_status=$?
18157   grep -v '^ *+' conftest.er1 >conftest.err
18158   rm -f conftest.er1
18159   cat conftest.err >&5
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); } >/dev/null && {
18162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18163          test ! -s conftest.err
18164        }; then
18165   # Broken: success on invalid input.
18166 continue
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171   # Passes both tests.
18172 ac_preproc_ok=:
18173 break
18174 fi
18175
18176 rm -f conftest.err conftest.$ac_ext
18177
18178 done
18179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18180 rm -f conftest.err conftest.$ac_ext
18181 if $ac_preproc_ok; then
18182   :
18183 else
18184   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18185 See \`config.log' for more details." >&5
18186 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18187 See \`config.log' for more details." >&2;}
18188    { (exit 1); exit 1; }; }
18189 fi
18190
18191 ac_ext=c
18192 ac_cpp='$CPP $CPPFLAGS'
18193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18196
18197
18198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18200 if test "${ac_cv_path_GREP+set}" = set; then
18201   echo $ECHO_N "(cached) $ECHO_C" >&6
18202 else
18203   # Extract the first word of "grep ggrep" to use in msg output
18204 if test -z "$GREP"; then
18205 set dummy grep ggrep; ac_prog_name=$2
18206 if test "${ac_cv_path_GREP+set}" = set; then
18207   echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209   ac_path_GREP_found=false
18210 # Loop through the user's path and test for each of PROGNAME-LIST
18211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18213 do
18214   IFS=$as_save_IFS
18215   test -z "$as_dir" && as_dir=.
18216   for ac_prog in grep ggrep; do
18217   for ac_exec_ext in '' $ac_executable_extensions; do
18218     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18219     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18220     # Check for GNU ac_path_GREP and select it if it is found.
18221   # Check for GNU $ac_path_GREP
18222 case `"$ac_path_GREP" --version 2>&1` in
18223 *GNU*)
18224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18225 *)
18226   ac_count=0
18227   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18228   while :
18229   do
18230     cat "conftest.in" "conftest.in" >"conftest.tmp"
18231     mv "conftest.tmp" "conftest.in"
18232     cp "conftest.in" "conftest.nl"
18233     echo 'GREP' >> "conftest.nl"
18234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18236     ac_count=`expr $ac_count + 1`
18237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18238       # Best one so far, save it but keep looking for a better one
18239       ac_cv_path_GREP="$ac_path_GREP"
18240       ac_path_GREP_max=$ac_count
18241     fi
18242     # 10*(2^10) chars as input seems more than enough
18243     test $ac_count -gt 10 && break
18244   done
18245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18246 esac
18247
18248
18249     $ac_path_GREP_found && break 3
18250   done
18251 done
18252
18253 done
18254 IFS=$as_save_IFS
18255
18256
18257 fi
18258
18259 GREP="$ac_cv_path_GREP"
18260 if test -z "$GREP"; then
18261   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18263    { (exit 1); exit 1; }; }
18264 fi
18265
18266 else
18267   ac_cv_path_GREP=$GREP
18268 fi
18269
18270
18271 fi
18272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18274  GREP="$ac_cv_path_GREP"
18275
18276
18277 { echo "$as_me:$LINENO: checking for egrep" >&5
18278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18279 if test "${ac_cv_path_EGREP+set}" = set; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18283    then ac_cv_path_EGREP="$GREP -E"
18284    else
18285      # Extract the first word of "egrep" to use in msg output
18286 if test -z "$EGREP"; then
18287 set dummy egrep; ac_prog_name=$2
18288 if test "${ac_cv_path_EGREP+set}" = set; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291   ac_path_EGREP_found=false
18292 # Loop through the user's path and test for each of PROGNAME-LIST
18293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18295 do
18296   IFS=$as_save_IFS
18297   test -z "$as_dir" && as_dir=.
18298   for ac_prog in egrep; do
18299   for ac_exec_ext in '' $ac_executable_extensions; do
18300     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18301     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18302     # Check for GNU ac_path_EGREP and select it if it is found.
18303   # Check for GNU $ac_path_EGREP
18304 case `"$ac_path_EGREP" --version 2>&1` in
18305 *GNU*)
18306   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18307 *)
18308   ac_count=0
18309   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18310   while :
18311   do
18312     cat "conftest.in" "conftest.in" >"conftest.tmp"
18313     mv "conftest.tmp" "conftest.in"
18314     cp "conftest.in" "conftest.nl"
18315     echo 'EGREP' >> "conftest.nl"
18316     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18318     ac_count=`expr $ac_count + 1`
18319     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18320       # Best one so far, save it but keep looking for a better one
18321       ac_cv_path_EGREP="$ac_path_EGREP"
18322       ac_path_EGREP_max=$ac_count
18323     fi
18324     # 10*(2^10) chars as input seems more than enough
18325     test $ac_count -gt 10 && break
18326   done
18327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18328 esac
18329
18330
18331     $ac_path_EGREP_found && break 3
18332   done
18333 done
18334
18335 done
18336 IFS=$as_save_IFS
18337
18338
18339 fi
18340
18341 EGREP="$ac_cv_path_EGREP"
18342 if test -z "$EGREP"; then
18343   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18345    { (exit 1); exit 1; }; }
18346 fi
18347
18348 else
18349   ac_cv_path_EGREP=$EGREP
18350 fi
18351
18352
18353    fi
18354 fi
18355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18357  EGREP="$ac_cv_path_EGREP"
18358
18359
18360 if test $ac_cv_c_compiler_gnu = yes; then
18361     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18362 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18363 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18364   echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366     ac_pattern="Autoconf.*'x'"
18367   cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h.  */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h.  */
18373 #include <sgtty.h>
18374 Autoconf TIOCGETP
18375 _ACEOF
18376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18377   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18378   ac_cv_prog_gcc_traditional=yes
18379 else
18380   ac_cv_prog_gcc_traditional=no
18381 fi
18382 rm -f conftest*
18383
18384
18385   if test $ac_cv_prog_gcc_traditional = no; then
18386     cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392 #include <termio.h>
18393 Autoconf TCGETA
18394 _ACEOF
18395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18396   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18397   ac_cv_prog_gcc_traditional=yes
18398 fi
18399 rm -f conftest*
18400
18401   fi
18402 fi
18403 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18404 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18405   if test $ac_cv_prog_gcc_traditional = yes; then
18406     CC="$CC -traditional"
18407   fi
18408 fi
18409
18410
18411 CXXFLAGS=${CXXFLAGS:=}
18412
18413
18414
18415     ac_ext=cpp
18416 ac_cpp='$CXXCPP $CPPFLAGS'
18417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420 if test -z "$CXX"; then
18421   if test -n "$CCC"; then
18422     CXX=$CCC
18423   else
18424     if test -n "$ac_tool_prefix"; then
18425   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18426   do
18427     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18431 if test "${ac_cv_prog_CXX+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   if test -n "$CXX"; then
18435   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18436 else
18437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18438 for as_dir in $PATH
18439 do
18440   IFS=$as_save_IFS
18441   test -z "$as_dir" && as_dir=.
18442   for ac_exec_ext in '' $ac_executable_extensions; do
18443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18444     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18446     break 2
18447   fi
18448 done
18449 done
18450 IFS=$as_save_IFS
18451
18452 fi
18453 fi
18454 CXX=$ac_cv_prog_CXX
18455 if test -n "$CXX"; then
18456   { echo "$as_me:$LINENO: result: $CXX" >&5
18457 echo "${ECHO_T}$CXX" >&6; }
18458 else
18459   { echo "$as_me:$LINENO: result: no" >&5
18460 echo "${ECHO_T}no" >&6; }
18461 fi
18462
18463
18464     test -n "$CXX" && break
18465   done
18466 fi
18467 if test -z "$CXX"; then
18468   ac_ct_CXX=$CXX
18469   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18470 do
18471   # Extract the first word of "$ac_prog", so it can be a program name with args.
18472 set dummy $ac_prog; ac_word=$2
18473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18475 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478   if test -n "$ac_ct_CXX"; then
18479   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18480 else
18481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482 for as_dir in $PATH
18483 do
18484   IFS=$as_save_IFS
18485   test -z "$as_dir" && as_dir=.
18486   for ac_exec_ext in '' $ac_executable_extensions; do
18487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18488     ac_cv_prog_ac_ct_CXX="$ac_prog"
18489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18490     break 2
18491   fi
18492 done
18493 done
18494 IFS=$as_save_IFS
18495
18496 fi
18497 fi
18498 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18499 if test -n "$ac_ct_CXX"; then
18500   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18501 echo "${ECHO_T}$ac_ct_CXX" >&6; }
18502 else
18503   { echo "$as_me:$LINENO: result: no" >&5
18504 echo "${ECHO_T}no" >&6; }
18505 fi
18506
18507
18508   test -n "$ac_ct_CXX" && break
18509 done
18510
18511   if test "x$ac_ct_CXX" = x; then
18512     CXX="g++"
18513   else
18514     case $cross_compiling:$ac_tool_warned in
18515 yes:)
18516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18517 whose name does not start with the host triplet.  If you think this
18518 configuration is useful to you, please write to autoconf@gnu.org." >&5
18519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18520 whose name does not start with the host triplet.  If you think this
18521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18522 ac_tool_warned=yes ;;
18523 esac
18524     CXX=$ac_ct_CXX
18525   fi
18526 fi
18527
18528   fi
18529 fi
18530 # Provide some information about the compiler.
18531 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18532 ac_compiler=`set X $ac_compile; echo $2`
18533 { (ac_try="$ac_compiler --version >&5"
18534 case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_compiler --version >&5") 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }
18543 { (ac_try="$ac_compiler -v >&5"
18544 case "(($ac_try" in
18545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546   *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549   (eval "$ac_compiler -v >&5") 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }
18553 { (ac_try="$ac_compiler -V >&5"
18554 case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_compiler -V >&5") 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }
18563
18564 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18565 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
18566 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h.  */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h.  */
18575
18576 int
18577 main ()
18578 {
18579 #ifndef __GNUC__
18580        choke me
18581 #endif
18582
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 rm -f conftest.$ac_objext
18588 if { (ac_try="$ac_compile"
18589 case "(($ac_try" in
18590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591   *) ac_try_echo=$ac_try;;
18592 esac
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594   (eval "$ac_compile") 2>conftest.er1
18595   ac_status=$?
18596   grep -v '^ *+' conftest.er1 >conftest.err
18597   rm -f conftest.er1
18598   cat conftest.err >&5
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); } && {
18601          test -z "$ac_cxx_werror_flag" ||
18602          test ! -s conftest.err
18603        } && test -s conftest.$ac_objext; then
18604   ac_compiler_gnu=yes
18605 else
18606   echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609         ac_compiler_gnu=no
18610 fi
18611
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18614
18615 fi
18616 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18617 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
18618 GXX=`test $ac_compiler_gnu = yes && echo yes`
18619 ac_test_CXXFLAGS=${CXXFLAGS+set}
18620 ac_save_CXXFLAGS=$CXXFLAGS
18621 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
18623 if test "${ac_cv_prog_cxx_g+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18627    ac_cxx_werror_flag=yes
18628    ac_cv_prog_cxx_g=no
18629    CXXFLAGS="-g"
18630    cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636
18637 int
18638 main ()
18639 {
18640
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (ac_try="$ac_compile"
18647 case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_compile") 2>conftest.er1
18653   ac_status=$?
18654   grep -v '^ *+' conftest.er1 >conftest.err
18655   rm -f conftest.er1
18656   cat conftest.err >&5
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); } && {
18659          test -z "$ac_cxx_werror_flag" ||
18660          test ! -s conftest.err
18661        } && test -s conftest.$ac_objext; then
18662   ac_cv_prog_cxx_g=yes
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667         CXXFLAGS=""
18668       cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674
18675 int
18676 main ()
18677 {
18678
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (ac_try="$ac_compile"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_compile") 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } && {
18697          test -z "$ac_cxx_werror_flag" ||
18698          test ! -s conftest.err
18699        } && test -s conftest.$ac_objext; then
18700   :
18701 else
18702   echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18706          CXXFLAGS="-g"
18707          cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713
18714 int
18715 main ()
18716 {
18717
18718   ;
18719   return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext
18723 if { (ac_try="$ac_compile"
18724 case "(($ac_try" in
18725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726   *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729   (eval "$ac_compile") 2>conftest.er1
18730   ac_status=$?
18731   grep -v '^ *+' conftest.er1 >conftest.err
18732   rm -f conftest.er1
18733   cat conftest.err >&5
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); } && {
18736          test -z "$ac_cxx_werror_flag" ||
18737          test ! -s conftest.err
18738        } && test -s conftest.$ac_objext; then
18739   ac_cv_prog_cxx_g=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744
18745 fi
18746
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 fi
18749
18750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751 fi
18752
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18755 fi
18756 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18757 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
18758 if test "$ac_test_CXXFLAGS" = set; then
18759   CXXFLAGS=$ac_save_CXXFLAGS
18760 elif test $ac_cv_prog_cxx_g = yes; then
18761   if test "$GXX" = yes; then
18762     CXXFLAGS="-g -O2"
18763   else
18764     CXXFLAGS="-g"
18765   fi
18766 else
18767   if test "$GXX" = yes; then
18768     CXXFLAGS="-O2"
18769   else
18770     CXXFLAGS=
18771   fi
18772 fi
18773 ac_ext=c
18774 ac_cpp='$CPP $CPPFLAGS'
18775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18778
18779
18780
18781
18782     ac_ext=cpp
18783 ac_cpp='$CXXCPP $CPPFLAGS'
18784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787
18788     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18789 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18790 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h.  */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h.  */
18799
18800 int
18801 main ()
18802 {
18803
18804              #ifndef __INTEL_COMPILER
18805                 choke me
18806              #endif
18807
18808   ;
18809   return 0;
18810 }
18811 _ACEOF
18812 rm -f conftest.$ac_objext
18813 if { (ac_try="$ac_compile"
18814 case "(($ac_try" in
18815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816   *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819   (eval "$ac_compile") 2>conftest.er1
18820   ac_status=$?
18821   grep -v '^ *+' conftest.er1 >conftest.err
18822   rm -f conftest.er1
18823   cat conftest.err >&5
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); } && {
18826          test -z "$ac_cxx_werror_flag" ||
18827          test ! -s conftest.err
18828        } && test -s conftest.$ac_objext; then
18829   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18830 else
18831   echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18833
18834         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18835
18836 fi
18837
18838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18839
18840
18841 fi
18842 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18843 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18844     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18845         :; INTELCXX=yes
18846     else
18847         :;
18848     fi
18849     ac_ext=c
18850 ac_cpp='$CPP $CPPFLAGS'
18851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18854
18855
18856
18857
18858         if test "x$GCXX" != "xyes"; then
18859         if test "xCXX" = "xC"; then
18860             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18861 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18862 if test "${bakefile_cv_c_exto+set}" = set; then
18863   echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865   cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h.  */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h.  */
18871
18872 int
18873 main ()
18874 {
18875
18876   ;
18877   return 0;
18878 }
18879 _ACEOF
18880 rm -f conftest.$ac_objext conftest.$ac_ext.o
18881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18882   (eval $ac_compile) 2>&5
18883   ac_status=$?
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; then
18886   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18887     case $ac_file in
18888         conftest.$ac_ext.o)
18889             bakefile_cv_c_exto="-ext o"
18890             ;;
18891         *)
18892             ;;
18893     esac
18894 done
18895 else
18896   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18897 See \`config.log' for more details." >&5
18898 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18899 See \`config.log' for more details." >&2;}
18900    { (exit 1); exit 1; }; }
18901
18902 fi
18903
18904 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18905
18906 fi
18907 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18908 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18909 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18910     if test "c" = "c"; then
18911         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18912     fi
18913     if test "c" = "cxx"; then
18914         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18915     fi
18916 fi
18917
18918             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18919                 unset ac_cv_prog_cc_g
18920                 ac_test_CFLAGS=${CFLAGS+set}
18921 ac_save_CFLAGS=$CFLAGS
18922 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18923 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18924 if test "${ac_cv_prog_cc_g+set}" = set; then
18925   echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927   ac_save_c_werror_flag=$ac_c_werror_flag
18928    ac_c_werror_flag=yes
18929    ac_cv_prog_cc_g=no
18930    CFLAGS="-g"
18931    cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937
18938 int
18939 main ()
18940 {
18941
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (ac_try="$ac_compile"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_compile") 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } && {
18960          test -z "$ac_c_werror_flag" ||
18961          test ! -s conftest.err
18962        } && test -s conftest.$ac_objext; then
18963   ac_cv_prog_cc_g=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         CFLAGS=""
18969       cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975
18976 int
18977 main ()
18978 {
18979
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (ac_try="$ac_compile"
18986 case "(($ac_try" in
18987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988   *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991   (eval "$ac_compile") 2>conftest.er1
18992   ac_status=$?
18993   grep -v '^ *+' conftest.er1 >conftest.err
18994   rm -f conftest.er1
18995   cat conftest.err >&5
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); } && {
18998          test -z "$ac_c_werror_flag" ||
18999          test ! -s conftest.err
19000        } && test -s conftest.$ac_objext; then
19001   :
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006         ac_c_werror_flag=$ac_save_c_werror_flag
19007          CFLAGS="-g"
19008          cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014
19015 int
19016 main ()
19017 {
19018
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext
19024 if { (ac_try="$ac_compile"
19025 case "(($ac_try" in
19026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027   *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030   (eval "$ac_compile") 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } && {
19037          test -z "$ac_c_werror_flag" ||
19038          test ! -s conftest.err
19039        } && test -s conftest.$ac_objext; then
19040   ac_cv_prog_cc_g=yes
19041 else
19042   echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045
19046 fi
19047
19048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19049 fi
19050
19051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052 fi
19053
19054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19055    ac_c_werror_flag=$ac_save_c_werror_flag
19056 fi
19057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19058 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19059 if test "$ac_test_CFLAGS" = set; then
19060   CFLAGS=$ac_save_CFLAGS
19061 elif test $ac_cv_prog_cc_g = yes; then
19062   if test "$GCC" = yes; then
19063     CFLAGS="-g -O2"
19064   else
19065     CFLAGS="-g"
19066   fi
19067 else
19068   if test "$GCC" = yes; then
19069     CFLAGS="-O2"
19070   else
19071     CFLAGS=
19072   fi
19073 fi
19074             fi
19075         fi
19076
19077                         case `uname -s` in
19078             AIX*)
19079
19080
19081     ac_ext=cpp
19082 ac_cpp='$CXXCPP $CPPFLAGS'
19083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19086
19087     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19088 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19089 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098
19099 int
19100 main ()
19101 {
19102
19103              #ifndef __xlC__
19104                 choke me
19105              #endif
19106
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (ac_try="$ac_compile"
19113 case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118   (eval "$ac_compile") 2>conftest.er1
19119   ac_status=$?
19120   grep -v '^ *+' conftest.er1 >conftest.err
19121   rm -f conftest.er1
19122   cat conftest.err >&5
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); } && {
19125          test -z "$ac_cxx_werror_flag" ||
19126          test ! -s conftest.err
19127        } && test -s conftest.$ac_objext; then
19128   bakefile_cv_cxx_compiler___xlC__=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         bakefile_cv_cxx_compiler___xlC__=no
19134
19135 fi
19136
19137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138
19139
19140 fi
19141 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19142 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19143     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19144         :; XLCXX=yes
19145     else
19146         :;
19147     fi
19148     ac_ext=c
19149 ac_cpp='$CPP $CPPFLAGS'
19150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153
19154
19155
19156                 ;;
19157
19158             Darwin)
19159
19160
19161     ac_ext=cpp
19162 ac_cpp='$CXXCPP $CPPFLAGS'
19163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19166
19167     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19168 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
19169 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19170   echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172   cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178
19179 int
19180 main ()
19181 {
19182
19183              #ifndef __MWERKS__
19184                 choke me
19185              #endif
19186
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (ac_try="$ac_compile"
19193 case "(($ac_try" in
19194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195   *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198   (eval "$ac_compile") 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } && {
19205          test -z "$ac_cxx_werror_flag" ||
19206          test ! -s conftest.err
19207        } && test -s conftest.$ac_objext; then
19208   bakefile_cv_cxx_compiler___MWERKS__=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         bakefile_cv_cxx_compiler___MWERKS__=no
19214
19215 fi
19216
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218
19219
19220 fi
19221 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19222 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19223     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19224         :; MWCXX=yes
19225     else
19226         :;
19227     fi
19228     ac_ext=c
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234
19235
19236
19237
19238     ac_ext=cpp
19239 ac_cpp='$CXXCPP $CPPFLAGS'
19240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19243
19244     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19245 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19246 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255
19256 int
19257 main ()
19258 {
19259
19260              #ifndef __xlC__
19261                 choke me
19262              #endif
19263
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_compile") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } && {
19282          test -z "$ac_cxx_werror_flag" ||
19283          test ! -s conftest.err
19284        } && test -s conftest.$ac_objext; then
19285   bakefile_cv_cxx_compiler___xlC__=yes
19286 else
19287   echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290         bakefile_cv_cxx_compiler___xlC__=no
19291
19292 fi
19293
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295
19296
19297 fi
19298 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19299 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19300     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19301         :; XLCXX=yes
19302     else
19303         :;
19304     fi
19305     ac_ext=c
19306 ac_cpp='$CPP $CPPFLAGS'
19307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19310
19311
19312
19313                 ;;
19314
19315             IRIX*)
19316
19317
19318     ac_ext=cpp
19319 ac_cpp='$CXXCPP $CPPFLAGS'
19320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323
19324     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19325 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19326 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329   cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335
19336 int
19337 main ()
19338 {
19339
19340              #ifndef _SGI_COMPILER_VERSION
19341                 choke me
19342              #endif
19343
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (ac_try="$ac_compile"
19350 case "(($ac_try" in
19351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352   *) ac_try_echo=$ac_try;;
19353 esac
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355   (eval "$ac_compile") 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } && {
19362          test -z "$ac_cxx_werror_flag" ||
19363          test ! -s conftest.err
19364        } && test -s conftest.$ac_objext; then
19365   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19371
19372 fi
19373
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375
19376
19377 fi
19378 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19379 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19380     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19381         :; SGICXX=yes
19382     else
19383         :;
19384     fi
19385     ac_ext=c
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391
19392
19393                 ;;
19394
19395             Linux*)
19396
19397
19398     ac_ext=cpp
19399 ac_cpp='$CXXCPP $CPPFLAGS'
19400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19403
19404     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19405 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19406 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19407   echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409   cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416 int
19417 main ()
19418 {
19419
19420              #ifndef __SUNPRO_CC
19421                 choke me
19422              #endif
19423
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_compile") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } && {
19442          test -z "$ac_cxx_werror_flag" ||
19443          test ! -s conftest.err
19444        } && test -s conftest.$ac_objext; then
19445   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19451
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455
19456
19457 fi
19458 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19459 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19460     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19461         :; SUNCXX=yes
19462     else
19463         :;
19464     fi
19465     ac_ext=c
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19470
19471
19472
19473                 ;;
19474
19475             HP-UX*)
19476
19477
19478     ac_ext=cpp
19479 ac_cpp='$CXXCPP $CPPFLAGS'
19480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19483
19484     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
19485 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
19486 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
19487   echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489   cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495
19496 int
19497 main ()
19498 {
19499
19500              #ifndef __HP_aCC
19501                 choke me
19502              #endif
19503
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (ac_try="$ac_compile"
19510 case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_compile") 2>conftest.er1
19516   ac_status=$?
19517   grep -v '^ *+' conftest.er1 >conftest.err
19518   rm -f conftest.er1
19519   cat conftest.err >&5
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); } && {
19522          test -z "$ac_cxx_werror_flag" ||
19523          test ! -s conftest.err
19524        } && test -s conftest.$ac_objext; then
19525   bakefile_cv_cxx_compiler___HP_aCC=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530         bakefile_cv_cxx_compiler___HP_aCC=no
19531
19532 fi
19533
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535
19536
19537 fi
19538 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
19539 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
19540     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
19541         :; HPCXX=yes
19542     else
19543         :;
19544     fi
19545     ac_ext=c
19546 ac_cpp='$CPP $CPPFLAGS'
19547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19550
19551
19552
19553                 ;;
19554
19555             OSF1)
19556
19557
19558     ac_ext=cpp
19559 ac_cpp='$CXXCPP $CPPFLAGS'
19560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19563
19564     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
19565 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
19566 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h.  */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h.  */
19575
19576 int
19577 main ()
19578 {
19579
19580              #ifndef __DECCXX
19581                 choke me
19582              #endif
19583
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_compile") 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } && {
19602          test -z "$ac_cxx_werror_flag" ||
19603          test ! -s conftest.err
19604        } && test -s conftest.$ac_objext; then
19605   bakefile_cv_cxx_compiler___DECCXX=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610         bakefile_cv_cxx_compiler___DECCXX=no
19611
19612 fi
19613
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615
19616
19617 fi
19618 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19619 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19620     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19621         :; COMPAQCXX=yes
19622     else
19623         :;
19624     fi
19625     ac_ext=c
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631
19632
19633                 ;;
19634
19635             SunOS)
19636
19637
19638     ac_ext=cpp
19639 ac_cpp='$CXXCPP $CPPFLAGS'
19640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19643
19644     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19645 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19646 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655
19656 int
19657 main ()
19658 {
19659
19660              #ifndef __SUNPRO_CC
19661                 choke me
19662              #endif
19663
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext
19669 if { (ac_try="$ac_compile"
19670 case "(($ac_try" in
19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672   *) ac_try_echo=$ac_try;;
19673 esac
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675   (eval "$ac_compile") 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } && {
19682          test -z "$ac_cxx_werror_flag" ||
19683          test ! -s conftest.err
19684        } && test -s conftest.$ac_objext; then
19685   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19686 else
19687   echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19691
19692 fi
19693
19694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695
19696
19697 fi
19698 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19699 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19700     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19701         :; SUNCXX=yes
19702     else
19703         :;
19704     fi
19705     ac_ext=c
19706 ac_cpp='$CPP $CPPFLAGS'
19707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19710
19711
19712
19713                 ;;
19714         esac
19715     fi
19716
19717
19718
19719 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19720     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19721 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19722    { (exit 1); exit 1; }; }
19723 fi
19724
19725 if test -n "$ac_tool_prefix"; then
19726   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19730 if test "${ac_cv_prog_RANLIB+set}" = set; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733   if test -n "$RANLIB"; then
19734   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19735 else
19736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19737 for as_dir in $PATH
19738 do
19739   IFS=$as_save_IFS
19740   test -z "$as_dir" && as_dir=.
19741   for ac_exec_ext in '' $ac_executable_extensions; do
19742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19743     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19745     break 2
19746   fi
19747 done
19748 done
19749 IFS=$as_save_IFS
19750
19751 fi
19752 fi
19753 RANLIB=$ac_cv_prog_RANLIB
19754 if test -n "$RANLIB"; then
19755   { echo "$as_me:$LINENO: result: $RANLIB" >&5
19756 echo "${ECHO_T}$RANLIB" >&6; }
19757 else
19758   { echo "$as_me:$LINENO: result: no" >&5
19759 echo "${ECHO_T}no" >&6; }
19760 fi
19761
19762
19763 fi
19764 if test -z "$ac_cv_prog_RANLIB"; then
19765   ac_ct_RANLIB=$RANLIB
19766   # Extract the first word of "ranlib", so it can be a program name with args.
19767 set dummy ranlib; ac_word=$2
19768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773   if test -n "$ac_ct_RANLIB"; then
19774   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19775 else
19776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777 for as_dir in $PATH
19778 do
19779   IFS=$as_save_IFS
19780   test -z "$as_dir" && as_dir=.
19781   for ac_exec_ext in '' $ac_executable_extensions; do
19782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19783     ac_cv_prog_ac_ct_RANLIB="ranlib"
19784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19785     break 2
19786   fi
19787 done
19788 done
19789 IFS=$as_save_IFS
19790
19791 fi
19792 fi
19793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19794 if test -n "$ac_ct_RANLIB"; then
19795   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19796 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19797 else
19798   { echo "$as_me:$LINENO: result: no" >&5
19799 echo "${ECHO_T}no" >&6; }
19800 fi
19801
19802   if test "x$ac_ct_RANLIB" = x; then
19803     RANLIB=":"
19804   else
19805     case $cross_compiling:$ac_tool_warned in
19806 yes:)
19807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19808 whose name does not start with the host triplet.  If you think this
19809 configuration is useful to you, please write to autoconf@gnu.org." >&5
19810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19811 whose name does not start with the host triplet.  If you think this
19812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19813 ac_tool_warned=yes ;;
19814 esac
19815     RANLIB=$ac_ct_RANLIB
19816   fi
19817 else
19818   RANLIB="$ac_cv_prog_RANLIB"
19819 fi
19820
19821
19822 if test "x$SUNCXX" != xyes; then
19823     if test -n "$ac_tool_prefix"; then
19824   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19825 set dummy ${ac_tool_prefix}ar; ac_word=$2
19826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19828 if test "${ac_cv_prog_AR+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831   if test -n "$AR"; then
19832   ac_cv_prog_AR="$AR" # Let the user override the test.
19833 else
19834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19836 do
19837   IFS=$as_save_IFS
19838   test -z "$as_dir" && as_dir=.
19839   for ac_exec_ext in '' $ac_executable_extensions; do
19840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19841     ac_cv_prog_AR="${ac_tool_prefix}ar"
19842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19843     break 2
19844   fi
19845 done
19846 done
19847 IFS=$as_save_IFS
19848
19849 fi
19850 fi
19851 AR=$ac_cv_prog_AR
19852 if test -n "$AR"; then
19853   { echo "$as_me:$LINENO: result: $AR" >&5
19854 echo "${ECHO_T}$AR" >&6; }
19855 else
19856   { echo "$as_me:$LINENO: result: no" >&5
19857 echo "${ECHO_T}no" >&6; }
19858 fi
19859
19860
19861 fi
19862 if test -z "$ac_cv_prog_AR"; then
19863   ac_ct_AR=$AR
19864   # Extract the first word of "ar", so it can be a program name with args.
19865 set dummy ar; ac_word=$2
19866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19869   echo $ECHO_N "(cached) $ECHO_C" >&6
19870 else
19871   if test -n "$ac_ct_AR"; then
19872   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19873 else
19874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875 for as_dir in $PATH
19876 do
19877   IFS=$as_save_IFS
19878   test -z "$as_dir" && as_dir=.
19879   for ac_exec_ext in '' $ac_executable_extensions; do
19880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19881     ac_cv_prog_ac_ct_AR="ar"
19882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19883     break 2
19884   fi
19885 done
19886 done
19887 IFS=$as_save_IFS
19888
19889 fi
19890 fi
19891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19892 if test -n "$ac_ct_AR"; then
19893   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19894 echo "${ECHO_T}$ac_ct_AR" >&6; }
19895 else
19896   { echo "$as_me:$LINENO: result: no" >&5
19897 echo "${ECHO_T}no" >&6; }
19898 fi
19899
19900   if test "x$ac_ct_AR" = x; then
19901     AR=""
19902   else
19903     case $cross_compiling:$ac_tool_warned in
19904 yes:)
19905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19906 whose name does not start with the host triplet.  If you think this
19907 configuration is useful to you, please write to autoconf@gnu.org." >&5
19908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19909 whose name does not start with the host triplet.  If you think this
19910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19911 ac_tool_warned=yes ;;
19912 esac
19913     AR=$ac_ct_AR
19914   fi
19915 else
19916   AR="$ac_cv_prog_AR"
19917 fi
19918
19919     if test "x$AR" = "x" ; then
19920         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19921 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19922    { (exit 1); exit 1; }; }
19923     fi
19924 fi
19925
19926 # Find a good install program.  We prefer a C program (faster),
19927 # so one script is as good as another.  But avoid the broken or
19928 # incompatible versions:
19929 # SysV /etc/install, /usr/sbin/install
19930 # SunOS /usr/etc/install
19931 # IRIX /sbin/install
19932 # AIX /bin/install
19933 # AmigaOS /C/install, which installs bootblocks on floppy discs
19934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19937 # OS/2's system install, which has a completely different semantic
19938 # ./install, which can be erroneously created by make from ./install.sh.
19939 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19941 if test -z "$INSTALL"; then
19942 if test "${ac_cv_path_install+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19946 for as_dir in $PATH
19947 do
19948   IFS=$as_save_IFS
19949   test -z "$as_dir" && as_dir=.
19950   # Account for people who put trailing slashes in PATH elements.
19951 case $as_dir/ in
19952   ./ | .// | /cC/* | \
19953   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19954   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19955   /usr/ucb/* ) ;;
19956   *)
19957     # OSF1 and SCO ODT 3.0 have their own names for install.
19958     # Don't use installbsd from OSF since it installs stuff as root
19959     # by default.
19960     for ac_prog in ginstall scoinst install; do
19961       for ac_exec_ext in '' $ac_executable_extensions; do
19962         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19963           if test $ac_prog = install &&
19964             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19965             # AIX install.  It has an incompatible calling convention.
19966             :
19967           elif test $ac_prog = install &&
19968             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19969             # program-specific install script used by HP pwplus--don't use.
19970             :
19971           else
19972             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19973             break 3
19974           fi
19975         fi
19976       done
19977     done
19978     ;;
19979 esac
19980 done
19981 IFS=$as_save_IFS
19982
19983
19984 fi
19985   if test "${ac_cv_path_install+set}" = set; then
19986     INSTALL=$ac_cv_path_install
19987   else
19988     # As a last resort, use the slow shell script.  Don't cache a
19989     # value for INSTALL within a source directory, because that will
19990     # break other packages using the cache if that directory is
19991     # removed, or if the value is a relative name.
19992     INSTALL=$ac_install_sh
19993   fi
19994 fi
19995 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19996 echo "${ECHO_T}$INSTALL" >&6; }
19997
19998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19999 # It thinks the first close brace ends the variable substitution.
20000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20001
20002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20003
20004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20005
20006
20007 case ${INSTALL} in
20008   /* ) # Absolute
20009      ;;
20010   ?:* ) # Drive letter, considered as absolute.
20011      ;;
20012   *)
20013      INSTALL=`pwd`/${INSTALL} ;;
20014 esac
20015
20016 retest_macosx_linking=no
20017
20018 #if test "$wxUSE_MAC" = 1; then
20019     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
20020                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
20021             # Implicitly turn on the new --with-macosx-sdk using the default
20022             # SDK which provides the behavior this option has always had.
20023             if test "x$wxUSE_MACOSX_SDK" = "x"; then
20024                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
20025 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
20026                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
20027 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
20028                 wxUSE_MACOSX_SDK=yes
20029             fi
20030         else
20031             # Complain to user if he specified an argument to --enable-universal_binary
20032             # and also 1) specified --with-macosx-sdk using the default (yes) or
20033             # 2) specified --with-macosx-sdk using a path or 3) specified
20034             # --without-macosx-sdk (no).
20035             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
20036                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20037 See \`config.log' for more details." >&5
20038 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20039 See \`config.log' for more details." >&2;}
20040    { (exit 1); exit 1; }; }
20041             else
20042                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
20043                 # special-case the empty string because the below test simply
20044                 # converts "no" to the empty string anyway.
20045                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
20046                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
20047 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
20048             fi
20049         fi
20050                 OSX_UNIV_OPTS="-arch ppc -arch i386"
20051         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
20052         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
20053         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
20054                                                                                                                 retest_macosx_linking=yes
20055
20056                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20057 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20058         bk_use_pch=no
20059     fi
20060 #fi
20061
20062 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20063     wxUSE_MACOSX_SDK=
20064 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20065     # TODO: Search for most recent SDK and use it.
20066     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20067 fi
20068
20069
20070 if test "x$wxUSE_MACOSX_SDK" != "x"; then
20071     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20072 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
20073     if ! test -d "$wxUSE_MACOSX_SDK"; then
20074         { { echo "$as_me:$LINENO: error: not found
20075 See \`config.log' for more details." >&5
20076 echo "$as_me: error: not found
20077 See \`config.log' for more details." >&2;}
20078    { (exit 1); exit 1; }; }
20079     else
20080         { echo "$as_me:$LINENO: result: exists" >&5
20081 echo "${ECHO_T}exists" >&6; }
20082     fi
20083     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20084     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20085     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20086     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20087     retest_macosx_linking=yes
20088             fi
20089
20090 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20091     wxUSE_MACOSX_VERSION_MIN=
20092 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20093     if test "x$wxUSE_MACOSX_SDK" != "x"; then
20094         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20095 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
20096
20097         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/'`
20098
20099         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20100             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
20101             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20102 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
20103         else
20104             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20105 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20106             wxUSE_MACOSX_VERSION_MIN=
20107         fi
20108     else
20109         wxUSE_MACOSX_VERSION_MIN=
20110     fi
20111 fi
20112
20113 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20114     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20115     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20116     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20117     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20118     retest_macosx_linking=yes
20119 fi
20120
20121 if test "x$retest_macosx_linking" = "xyes"; then
20122     ac_ext=c
20123 ac_cpp='$CPP $CPPFLAGS'
20124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20127
20128     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20129 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
20130     cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136
20137 int
20138 main ()
20139 {
20140
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_link") 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } && {
20159          test -z "$ac_c_werror_flag" ||
20160          test ! -s conftest.err
20161        } && test -s conftest$ac_exeext &&
20162        $as_test_x conftest$ac_exeext; then
20163   { echo "$as_me:$LINENO: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6; }
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20170 See \`config.log' for more details." >&5
20171 echo "$as_me: error: no.  Try a different SDK
20172 See \`config.log' for more details." >&2;}
20173    { (exit 1); exit 1; }; }; exit 1
20174 fi
20175
20176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20177       conftest$ac_exeext conftest.$ac_ext
20178     ac_ext=c
20179 ac_cpp='$CPP $CPPFLAGS'
20180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20183
20184
20185     ac_ext=cpp
20186 ac_cpp='$CXXCPP $CPPFLAGS'
20187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20190
20191     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20192 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
20193     cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199
20200 int
20201 main ()
20202 {
20203
20204   ;
20205   return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212   *) ac_try_echo=$ac_try;;
20213 esac
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215   (eval "$ac_link") 2>conftest.er1
20216   ac_status=$?
20217   grep -v '^ *+' conftest.er1 >conftest.err
20218   rm -f conftest.er1
20219   cat conftest.err >&5
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); } && {
20222          test -z "$ac_cxx_werror_flag" ||
20223          test ! -s conftest.err
20224        } && test -s conftest$ac_exeext &&
20225        $as_test_x conftest$ac_exeext; then
20226   { echo "$as_me:$LINENO: result: yes" >&5
20227 echo "${ECHO_T}yes" >&6; }
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20233 See \`config.log' for more details." >&5
20234 echo "$as_me: error: no.  Try a different SDK
20235 See \`config.log' for more details." >&2;}
20236    { (exit 1); exit 1; }; }; exit 1
20237 fi
20238
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240       conftest$ac_exeext conftest.$ac_ext
20241     ac_ext=c
20242 ac_cpp='$CPP $CPPFLAGS'
20243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20246
20247 fi
20248
20249
20250 case "${host}" in
20251
20252                 *-*-darwin* )
20253         INSTALL_PROGRAM="cp -fp"
20254         INSTALL_DATA="cp -fp"
20255         ;;
20256     *)
20257         ;;
20258 esac
20259
20260 if test -n "$ac_tool_prefix"; then
20261   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20262 set dummy ${ac_tool_prefix}strip; ac_word=$2
20263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20265 if test "${ac_cv_prog_STRIP+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   if test -n "$STRIP"; then
20269   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20270 else
20271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272 for as_dir in $PATH
20273 do
20274   IFS=$as_save_IFS
20275   test -z "$as_dir" && as_dir=.
20276   for ac_exec_ext in '' $ac_executable_extensions; do
20277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20278     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20280     break 2
20281   fi
20282 done
20283 done
20284 IFS=$as_save_IFS
20285
20286 fi
20287 fi
20288 STRIP=$ac_cv_prog_STRIP
20289 if test -n "$STRIP"; then
20290   { echo "$as_me:$LINENO: result: $STRIP" >&5
20291 echo "${ECHO_T}$STRIP" >&6; }
20292 else
20293   { echo "$as_me:$LINENO: result: no" >&5
20294 echo "${ECHO_T}no" >&6; }
20295 fi
20296
20297
20298 fi
20299 if test -z "$ac_cv_prog_STRIP"; then
20300   ac_ct_STRIP=$STRIP
20301   # Extract the first word of "strip", so it can be a program name with args.
20302 set dummy strip; ac_word=$2
20303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   if test -n "$ac_ct_STRIP"; then
20309   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20310 else
20311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20312 for as_dir in $PATH
20313 do
20314   IFS=$as_save_IFS
20315   test -z "$as_dir" && as_dir=.
20316   for ac_exec_ext in '' $ac_executable_extensions; do
20317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20318     ac_cv_prog_ac_ct_STRIP="strip"
20319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320     break 2
20321   fi
20322 done
20323 done
20324 IFS=$as_save_IFS
20325
20326 fi
20327 fi
20328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20329 if test -n "$ac_ct_STRIP"; then
20330   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
20331 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
20332 else
20333   { echo "$as_me:$LINENO: result: no" >&5
20334 echo "${ECHO_T}no" >&6; }
20335 fi
20336
20337   if test "x$ac_ct_STRIP" = x; then
20338     STRIP="true"
20339   else
20340     case $cross_compiling:$ac_tool_warned in
20341 yes:)
20342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20343 whose name does not start with the host triplet.  If you think this
20344 configuration is useful to you, please write to autoconf@gnu.org." >&5
20345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20346 whose name does not start with the host triplet.  If you think this
20347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20348 ac_tool_warned=yes ;;
20349 esac
20350     STRIP=$ac_ct_STRIP
20351   fi
20352 else
20353   STRIP="$ac_cv_prog_STRIP"
20354 fi
20355
20356
20357 if test "$wxUSE_WINE" = "yes"; then
20358     if test -n "$ac_tool_prefix"; then
20359   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
20360 set dummy ${ac_tool_prefix}wrc; ac_word=$2
20361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20363 if test "${ac_cv_prog_WINDRES+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   if test -n "$WINDRES"; then
20367   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20368 else
20369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20370 for as_dir in $PATH
20371 do
20372   IFS=$as_save_IFS
20373   test -z "$as_dir" && as_dir=.
20374   for ac_exec_ext in '' $ac_executable_extensions; do
20375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20376     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
20377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20378     break 2
20379   fi
20380 done
20381 done
20382 IFS=$as_save_IFS
20383
20384 fi
20385 fi
20386 WINDRES=$ac_cv_prog_WINDRES
20387 if test -n "$WINDRES"; then
20388   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20389 echo "${ECHO_T}$WINDRES" >&6; }
20390 else
20391   { echo "$as_me:$LINENO: result: no" >&5
20392 echo "${ECHO_T}no" >&6; }
20393 fi
20394
20395
20396 fi
20397 if test -z "$ac_cv_prog_WINDRES"; then
20398   ac_ct_WINDRES=$WINDRES
20399   # Extract the first word of "wrc", so it can be a program name with args.
20400 set dummy wrc; ac_word=$2
20401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20403 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   if test -n "$ac_ct_WINDRES"; then
20407   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20408 else
20409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20410 for as_dir in $PATH
20411 do
20412   IFS=$as_save_IFS
20413   test -z "$as_dir" && as_dir=.
20414   for ac_exec_ext in '' $ac_executable_extensions; do
20415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20416     ac_cv_prog_ac_ct_WINDRES="wrc"
20417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20418     break 2
20419   fi
20420 done
20421 done
20422 IFS=$as_save_IFS
20423
20424 fi
20425 fi
20426 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20427 if test -n "$ac_ct_WINDRES"; then
20428   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20429 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20430 else
20431   { echo "$as_me:$LINENO: result: no" >&5
20432 echo "${ECHO_T}no" >&6; }
20433 fi
20434
20435   if test "x$ac_ct_WINDRES" = x; then
20436     WINDRES=""
20437   else
20438     case $cross_compiling:$ac_tool_warned in
20439 yes:)
20440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20441 whose name does not start with the host triplet.  If you think this
20442 configuration is useful to you, please write to autoconf@gnu.org." >&5
20443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20444 whose name does not start with the host triplet.  If you think this
20445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20446 ac_tool_warned=yes ;;
20447 esac
20448     WINDRES=$ac_ct_WINDRES
20449   fi
20450 else
20451   WINDRES="$ac_cv_prog_WINDRES"
20452 fi
20453
20454     RESCOMP="$WINDRES"
20455 else
20456     case "${host}" in
20457     *-*-cygwin* | *-*-mingw32* )
20458                                 if test -n "$ac_tool_prefix"; then
20459   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20460 set dummy ${ac_tool_prefix}windres; ac_word=$2
20461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20463 if test "${ac_cv_prog_WINDRES+set}" = set; then
20464   echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466   if test -n "$WINDRES"; then
20467   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20468 else
20469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20470 for as_dir in $PATH
20471 do
20472   IFS=$as_save_IFS
20473   test -z "$as_dir" && as_dir=.
20474   for ac_exec_ext in '' $ac_executable_extensions; do
20475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20476     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20478     break 2
20479   fi
20480 done
20481 done
20482 IFS=$as_save_IFS
20483
20484 fi
20485 fi
20486 WINDRES=$ac_cv_prog_WINDRES
20487 if test -n "$WINDRES"; then
20488   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20489 echo "${ECHO_T}$WINDRES" >&6; }
20490 else
20491   { echo "$as_me:$LINENO: result: no" >&5
20492 echo "${ECHO_T}no" >&6; }
20493 fi
20494
20495
20496 fi
20497 if test -z "$ac_cv_prog_WINDRES"; then
20498   ac_ct_WINDRES=$WINDRES
20499   # Extract the first word of "windres", so it can be a program name with args.
20500 set dummy windres; ac_word=$2
20501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20503 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20504   echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506   if test -n "$ac_ct_WINDRES"; then
20507   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20508 else
20509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20511 do
20512   IFS=$as_save_IFS
20513   test -z "$as_dir" && as_dir=.
20514   for ac_exec_ext in '' $ac_executable_extensions; do
20515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20516     ac_cv_prog_ac_ct_WINDRES="windres"
20517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20518     break 2
20519   fi
20520 done
20521 done
20522 IFS=$as_save_IFS
20523
20524 fi
20525 fi
20526 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20527 if test -n "$ac_ct_WINDRES"; then
20528   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20529 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20530 else
20531   { echo "$as_me:$LINENO: result: no" >&5
20532 echo "${ECHO_T}no" >&6; }
20533 fi
20534
20535   if test "x$ac_ct_WINDRES" = x; then
20536     WINDRES=""
20537   else
20538     case $cross_compiling:$ac_tool_warned in
20539 yes:)
20540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20541 whose name does not start with the host triplet.  If you think this
20542 configuration is useful to you, please write to autoconf@gnu.org." >&5
20543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20544 whose name does not start with the host triplet.  If you think this
20545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20546 ac_tool_warned=yes ;;
20547 esac
20548     WINDRES=$ac_ct_WINDRES
20549   fi
20550 else
20551   WINDRES="$ac_cv_prog_WINDRES"
20552 fi
20553
20554         RESCOMP="$WINDRES"
20555         if test -n "$ac_tool_prefix"; then
20556   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20557 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
20558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20560 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   if test -n "$DLLTOOL"; then
20564   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
20565 else
20566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20567 for as_dir in $PATH
20568 do
20569   IFS=$as_save_IFS
20570   test -z "$as_dir" && as_dir=.
20571   for ac_exec_ext in '' $ac_executable_extensions; do
20572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20573     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
20574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20575     break 2
20576   fi
20577 done
20578 done
20579 IFS=$as_save_IFS
20580
20581 fi
20582 fi
20583 DLLTOOL=$ac_cv_prog_DLLTOOL
20584 if test -n "$DLLTOOL"; then
20585   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
20586 echo "${ECHO_T}$DLLTOOL" >&6; }
20587 else
20588   { echo "$as_me:$LINENO: result: no" >&5
20589 echo "${ECHO_T}no" >&6; }
20590 fi
20591
20592
20593 fi
20594 if test -z "$ac_cv_prog_DLLTOOL"; then
20595   ac_ct_DLLTOOL=$DLLTOOL
20596   # Extract the first word of "dlltool", so it can be a program name with args.
20597 set dummy dlltool; ac_word=$2
20598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20600 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603   if test -n "$ac_ct_DLLTOOL"; then
20604   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
20605 else
20606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20607 for as_dir in $PATH
20608 do
20609   IFS=$as_save_IFS
20610   test -z "$as_dir" && as_dir=.
20611   for ac_exec_ext in '' $ac_executable_extensions; do
20612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20613     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
20614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20615     break 2
20616   fi
20617 done
20618 done
20619 IFS=$as_save_IFS
20620
20621 fi
20622 fi
20623 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
20624 if test -n "$ac_ct_DLLTOOL"; then
20625   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
20626 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
20627 else
20628   { echo "$as_me:$LINENO: result: no" >&5
20629 echo "${ECHO_T}no" >&6; }
20630 fi
20631
20632   if test "x$ac_ct_DLLTOOL" = x; then
20633     DLLTOOL=""
20634   else
20635     case $cross_compiling:$ac_tool_warned in
20636 yes:)
20637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20638 whose name does not start with the host triplet.  If you think this
20639 configuration is useful to you, please write to autoconf@gnu.org." >&5
20640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20641 whose name does not start with the host triplet.  If you think this
20642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20643 ac_tool_warned=yes ;;
20644 esac
20645     DLLTOOL=$ac_ct_DLLTOOL
20646   fi
20647 else
20648   DLLTOOL="$ac_cv_prog_DLLTOOL"
20649 fi
20650
20651         ;;
20652     esac
20653 fi
20654
20655 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
20656 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
20657 if test "${wx_cv_prog_makeisgnu+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660
20661     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
20662             $EGREP -s GNU > /dev/null); then
20663         wx_cv_prog_makeisgnu="yes"
20664     else
20665         wx_cv_prog_makeisgnu="no"
20666     fi
20667
20668 fi
20669 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
20670 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
20671
20672 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
20673     IF_GNU_MAKE=""
20674 else
20675     IF_GNU_MAKE="#"
20676 fi
20677
20678
20679
20680 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
20681 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
20682 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
20683 if test "${wx_cv_prog_makevpath+set}" = set; then
20684   echo $ECHO_N "(cached) $ECHO_C" >&6
20685 else
20686
20687 cat - << EOF > confMake
20688 check : file
20689         cp \$? \$@
20690         cp \$? final_file
20691 EOF
20692
20693 if test ! -d sub ; then
20694   mkdir sub
20695 fi
20696 echo dummy > sub/file
20697 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
20698 RESULT=$?
20699 rm -f sub/file check final_file confMake
20700 rmdir sub
20701 if test "$RESULT" = 0; then
20702   wx_cv_prog_makevpath="yes"
20703 else
20704   wx_cv_prog_makevpath="no"
20705 fi
20706
20707 fi
20708 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
20709 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
20710
20711 if test "x$wx_cv_prog_makevpath" != "xyes"; then
20712 { { echo "$as_me:$LINENO: error:
20713 You need a make-utility that is able to use the variable
20714 VPATH correctly.
20715 If your version of make does not support VPATH correctly,
20716 please install GNU-make (possibly as gmake), and start
20717 configure with the following command:
20718 export MAKE=gmake; ./configure  for sh-type shells
20719 setenv MAKE gmake; ./configure  for csh-type shells
20720 Also please do remember to use gmake in this case every time
20721 you are trying to compile.
20722 " >&5
20723 echo "$as_me: error:
20724 You need a make-utility that is able to use the variable
20725 VPATH correctly.
20726 If your version of make does not support VPATH correctly,
20727 please install GNU-make (possibly as gmake), and start
20728 configure with the following command:
20729 export MAKE=gmake; ./configure  for sh-type shells
20730 setenv MAKE gmake; ./configure  for csh-type shells
20731 Also please do remember to use gmake in this case every time
20732 you are trying to compile.
20733 " >&2;}
20734    { (exit 1); exit 1; }; }
20735 fi fi
20736 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
20737 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
20738 LN_S=$as_ln_s
20739 if test "$LN_S" = "ln -s"; then
20740   { echo "$as_me:$LINENO: result: yes" >&5
20741 echo "${ECHO_T}yes" >&6; }
20742 else
20743   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20744 echo "${ECHO_T}no, using $LN_S" >&6; }
20745 fi
20746
20747
20748
20749
20750 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20751     CXXFLAGS="-qunique $CXXFLAGS"
20752 fi
20753
20754 case "${host}" in
20755   powerpc-*-darwin* )
20756     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20757 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20758     cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764
20765 int
20766 main ()
20767 {
20768 #ifndef __POWERPC__
20769         choke me for lack of PowerPC
20770 #endif
20771
20772   ;
20773   return 0;
20774 }
20775 _ACEOF
20776 rm -f conftest.$ac_objext
20777 if { (ac_try="$ac_compile"
20778 case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783   (eval "$ac_compile") 2>conftest.er1
20784   ac_status=$?
20785   grep -v '^ *+' conftest.er1 >conftest.err
20786   rm -f conftest.er1
20787   cat conftest.err >&5
20788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); } && {
20790          test -z "$ac_c_werror_flag" ||
20791          test ! -s conftest.err
20792        } && test -s conftest.$ac_objext; then
20793   { echo "$as_me:$LINENO: result: yes" >&5
20794 echo "${ECHO_T}yes" >&6; }
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         { echo "$as_me:$LINENO: result: no" >&5
20800 echo "${ECHO_T}no" >&6; }
20801         cat >>confdefs.h <<\_ACEOF
20802 #define __POWERPC__ 1
20803 _ACEOF
20804
20805
20806 fi
20807
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809   ;;
20810 esac
20811
20812 case "${host}" in
20813   *-*-darwin* )
20814     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20815 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20816     cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822 #include <CoreFoundation/CFBase.h>
20823
20824 int
20825 main ()
20826 {
20827
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (ac_try="$ac_compile"
20834 case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_compile") 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } && {
20846          test -z "$ac_c_werror_flag" ||
20847          test ! -s conftest.err
20848        } && test -s conftest.$ac_objext; then
20849   { echo "$as_me:$LINENO: result: yes" >&5
20850 echo "${ECHO_T}yes" >&6; }
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         { echo "$as_me:$LINENO: result: no" >&5
20856 echo "${ECHO_T}no" >&6; }
20857         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20858 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20859         cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 #define __CF_USE_FRAMEWORK_INCLUDES__
20866 #include <CoreFoundation/CFBase.h>
20867
20868 int
20869 main ()
20870 {
20871
20872   ;
20873   return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880   *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883   (eval "$ac_compile") 2>conftest.er1
20884   ac_status=$?
20885   grep -v '^ *+' conftest.er1 >conftest.err
20886   rm -f conftest.er1
20887   cat conftest.err >&5
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); } && {
20890          test -z "$ac_c_werror_flag" ||
20891          test ! -s conftest.err
20892        } && test -s conftest.$ac_objext; then
20893   { echo "$as_me:$LINENO: result: yes" >&5
20894 echo "${ECHO_T}yes" >&6; }
20895                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20901 See \`config.log' for more details." >&5
20902 echo "$as_me: error: no.  CoreFoundation not available.
20903 See \`config.log' for more details." >&2;}
20904    { (exit 1); exit 1; }; }
20905
20906 fi
20907
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909
20910
20911 fi
20912
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914   ;;
20915 esac
20916
20917 wants_win32=0
20918 doesnt_want_win32=0
20919 case "${host}" in
20920   *-*-cygwin*)
20921       if test "$wxUSE_MSW" = 1 ; then
20922         wants_win32=1
20923       else
20924                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20925 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20926 if test "${wx_cv_nocygwin+set}" = set; then
20927   echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929
20930                 cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936
20937 int
20938 main ()
20939 {
20940
20941                         #ifdef __MINGW32__
20942                             choke me
20943                         #endif
20944
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953   *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956   (eval "$ac_compile") 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } && {
20963          test -z "$ac_c_werror_flag" ||
20964          test ! -s conftest.err
20965        } && test -s conftest.$ac_objext; then
20966   wx_cv_nocygwin=no
20967 else
20968   echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         wx_cv_nocygwin=yes
20972
20973 fi
20974
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976
20977
20978 fi
20979 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20980 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20981
20982         if test "$wx_cv_nocygwin" = "yes"; then
20983             wants_win32=1
20984         else
20985             doesnt_want_win32=1
20986         fi
20987       fi
20988       if test "$wants_win32" = 1 ; then
20989         BAKEFILE_FORCE_PLATFORM=win32
20990       fi
20991   ;;
20992   *-*-mingw*)
20993       wants_win32=1
20994   ;;
20995 esac
20996
20997 if test "$wxUSE_WINE" = "yes"; then
20998     wants_win32=1
20999     LDFLAGS_GUI="-mwindows"
21000 fi
21001
21002 if test "$wants_win32" = 1 ; then
21003     USE_UNIX=0
21004     USE_WIN32=1
21005     cat >>confdefs.h <<\_ACEOF
21006 #define __WIN32__ 1
21007 _ACEOF
21008
21009     cat >>confdefs.h <<\_ACEOF
21010 #define __WIN95__ 1
21011 _ACEOF
21012
21013     cat >>confdefs.h <<\_ACEOF
21014 #define __WINDOWS__ 1
21015 _ACEOF
21016
21017     cat >>confdefs.h <<\_ACEOF
21018 #define __GNUWIN32__ 1
21019 _ACEOF
21020
21021     cat >>confdefs.h <<\_ACEOF
21022 #define STRICT 1
21023 _ACEOF
21024
21025 fi
21026 if test "$doesnt_want_win32" = 1 ; then
21027     USE_UNIX=1
21028     USE_WIN32=0
21029 fi
21030
21031 if test "$USE_UNIX" = 1 ; then
21032     wxUSE_UNIX=yes
21033     cat >>confdefs.h <<\_ACEOF
21034 #define __UNIX__ 1
21035 _ACEOF
21036
21037 fi
21038
21039 case "${host}" in
21040   *-pc-os2_emx | *-pc-os2-emx )
21041                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
21042                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
21043 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
21044 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047   ac_check_lib_save_LIBS=$LIBS
21048 LIBS="-lcExt  $LIBS"
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h.  */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h.  */
21055
21056 /* Override any GCC internal prototype to avoid an error.
21057    Use char because int might match the return type of a GCC
21058    builtin and then its argument prototype would still apply.  */
21059 #ifdef __cplusplus
21060 extern "C"
21061 #endif
21062 char drand48 ();
21063 int
21064 main ()
21065 {
21066 return drand48 ();
21067   ;
21068   return 0;
21069 }
21070 _ACEOF
21071 rm -f conftest.$ac_objext conftest$ac_exeext
21072 if { (ac_try="$ac_link"
21073 case "(($ac_try" in
21074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075   *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078   (eval "$ac_link") 2>conftest.er1
21079   ac_status=$?
21080   grep -v '^ *+' conftest.er1 >conftest.err
21081   rm -f conftest.er1
21082   cat conftest.err >&5
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } && {
21085          test -z "$ac_c_werror_flag" ||
21086          test ! -s conftest.err
21087        } && test -s conftest$ac_exeext &&
21088        $as_test_x conftest$ac_exeext; then
21089   ac_cv_lib_cExt_drand48=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_cv_lib_cExt_drand48=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21098       conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21100 fi
21101 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
21102 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
21103 if test $ac_cv_lib_cExt_drand48 = yes; then
21104   LIBS="$LIBS -lcExt"
21105 fi
21106
21107       else
21108                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
21109       fi
21110                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
21111 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
21112 if test "${wx_cv_gccversion+set}" = set; then
21113   echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115
21116           if test "$cross_compiling" = yes; then
21117                 wx_cv_gccversion="EMX2"
21118
21119 else
21120   cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126
21127                   #include <stdio.h>
21128
21129                   int main()
21130                   {
21131                       FILE *f=fopen("conftestval", "w");
21132                       if (!f) exit(1);
21133                       fprintf(f,
21134                   #if (__GNUC__ < 3)
21135                               "EMX2"
21136                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
21137                               "EMX3"
21138                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
21139                               "Innotek5"
21140                   #else
21141                               "Innotek6"
21142                   #endif
21143                       );
21144                       exit(0);
21145                   }
21146
21147 _ACEOF
21148 rm -f conftest$ac_exeext
21149 if { (ac_try="$ac_link"
21150 case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_link") 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21159   { (case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164   (eval "$ac_try") 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; }; then
21168   wx_cv_gccversion=`cat conftestval`
21169 else
21170   echo "$as_me: program exited with status $ac_status" >&5
21171 echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174 ( exit $ac_status )
21175 wx_cv_gccversion="EMX2"
21176 fi
21177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21178 fi
21179
21180
21181
21182 fi
21183 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21184 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
21185       if test "$wx_cv_gccversion" = "EMX2"; then
21186           LIBS="$LIBS -lstdcpp"
21187           LDFLAGS="$LDFLAGS -Zsysv-signals"
21188       else
21189           if test "$wx_cv_gccversion" = "EMX3"; then
21190               LIBS="$LIBS -lstdcxx -lgcc"
21191               LDFLAGS="$LDFLAGS -Zsysv-signals"
21192           else
21193               LIBS="$LIBS -lstdc++"
21194           fi
21195       fi
21196       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21197         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21198 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21199         wxUSE_OMF=yes
21200         enable_omf=yes
21201       fi
21202         ;;
21203   *)
21204
21205       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21206 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
21207 if test "${ac_cv_string_strcasecmp+set}" = set; then
21208   echo $ECHO_N "(cached) $ECHO_C" >&6
21209 else
21210
21211           cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217
21218               #include <string.h>
21219
21220 int
21221 main ()
21222 {
21223
21224                   strcasecmp("foo", "bar");
21225
21226   ;
21227   return 0;
21228 }
21229 _ACEOF
21230 rm -f conftest.$ac_objext conftest$ac_exeext
21231 if { (ac_try="$ac_link"
21232 case "(($ac_try" in
21233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234   *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237   (eval "$ac_link") 2>conftest.er1
21238   ac_status=$?
21239   grep -v '^ *+' conftest.er1 >conftest.err
21240   rm -f conftest.er1
21241   cat conftest.err >&5
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); } && {
21244          test -z "$ac_c_werror_flag" ||
21245          test ! -s conftest.err
21246        } && test -s conftest$ac_exeext &&
21247        $as_test_x conftest$ac_exeext; then
21248   ac_cv_string_strcasecmp=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253         ac_cv_string_strcasecmp=no
21254
21255 fi
21256
21257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21258       conftest$ac_exeext conftest.$ac_ext
21259
21260 fi
21261 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21262 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
21263
21264       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21265           cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_STRCASECMP_IN_STRING_H 1
21267 _ACEOF
21268
21269       else
21270           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21271 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
21272 if test "${ac_cv_strings_strcasecmp+set}" = set; then
21273   echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275
21276               cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282
21283                   #include <strings.h>
21284
21285 int
21286 main ()
21287 {
21288
21289                       strcasecmp("foo", "bar");
21290
21291   ;
21292   return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext conftest$ac_exeext
21296 if { (ac_try="$ac_link"
21297 case "(($ac_try" in
21298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299   *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302   (eval "$ac_link") 2>conftest.er1
21303   ac_status=$?
21304   grep -v '^ *+' conftest.er1 >conftest.err
21305   rm -f conftest.er1
21306   cat conftest.err >&5
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } && {
21309          test -z "$ac_c_werror_flag" ||
21310          test ! -s conftest.err
21311        } && test -s conftest$ac_exeext &&
21312        $as_test_x conftest$ac_exeext; then
21313   ac_cv_strings_strcasecmp=yes
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318         ac_cv_strings_strcasecmp=no
21319
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21323       conftest$ac_exeext conftest.$ac_ext
21324
21325 fi
21326 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21327 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
21328
21329           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
21330               cat >>confdefs.h <<\_ACEOF
21331 #define HAVE_STRCASECMP_IN_STRINGS_H 1
21332 _ACEOF
21333
21334           else
21335               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21336 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21337    { (exit 1); exit 1; }; }
21338           fi
21339       fi
21340
21341         ;;
21342 esac
21343
21344
21345 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21346 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21347 if test "${ac_cv_header_stdc+set}" = set; then
21348   echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350   cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356 #include <stdlib.h>
21357 #include <stdarg.h>
21358 #include <string.h>
21359 #include <float.h>
21360
21361 int
21362 main ()
21363 {
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373   *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376   (eval "$ac_compile") 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } && {
21383          test -z "$ac_c_werror_flag" ||
21384          test ! -s conftest.err
21385        } && test -s conftest.$ac_objext; then
21386   ac_cv_header_stdc=yes
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391         ac_cv_header_stdc=no
21392 fi
21393
21394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395
21396 if test $ac_cv_header_stdc = yes; then
21397   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21398   cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 #include <string.h>
21405
21406 _ACEOF
21407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21408   $EGREP "memchr" >/dev/null 2>&1; then
21409   :
21410 else
21411   ac_cv_header_stdc=no
21412 fi
21413 rm -f conftest*
21414
21415 fi
21416
21417 if test $ac_cv_header_stdc = yes; then
21418   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21419   cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 #include <stdlib.h>
21426
21427 _ACEOF
21428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21429   $EGREP "free" >/dev/null 2>&1; then
21430   :
21431 else
21432   ac_cv_header_stdc=no
21433 fi
21434 rm -f conftest*
21435
21436 fi
21437
21438 if test $ac_cv_header_stdc = yes; then
21439   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21440   if test "$cross_compiling" = yes; then
21441   :
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 #include <ctype.h>
21450 #include <stdlib.h>
21451 #if ((' ' & 0x0FF) == 0x020)
21452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21454 #else
21455 # define ISLOWER(c) \
21456                    (('a' <= (c) && (c) <= 'i') \
21457                      || ('j' <= (c) && (c) <= 'r') \
21458                      || ('s' <= (c) && (c) <= 'z'))
21459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21460 #endif
21461
21462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21463 int
21464 main ()
21465 {
21466   int i;
21467   for (i = 0; i < 256; i++)
21468     if (XOR (islower (i), ISLOWER (i))
21469         || toupper (i) != TOUPPER (i))
21470       return 2;
21471   return 0;
21472 }
21473 _ACEOF
21474 rm -f conftest$ac_exeext
21475 if { (ac_try="$ac_link"
21476 case "(($ac_try" in
21477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478   *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481   (eval "$ac_link") 2>&5
21482   ac_status=$?
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21485   { (case "(($ac_try" in
21486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487   *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490   (eval "$ac_try") 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); }; }; then
21494   :
21495 else
21496   echo "$as_me: program exited with status $ac_status" >&5
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500 ( exit $ac_status )
21501 ac_cv_header_stdc=no
21502 fi
21503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21504 fi
21505
21506
21507 fi
21508 fi
21509 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21510 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21511 if test $ac_cv_header_stdc = yes; then
21512
21513 cat >>confdefs.h <<\_ACEOF
21514 #define STDC_HEADERS 1
21515 _ACEOF
21516
21517 fi
21518
21519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21530                   inttypes.h stdint.h unistd.h
21531 do
21532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 $ac_includes_default
21545
21546 #include <$ac_header>
21547 _ACEOF
21548 rm -f conftest.$ac_objext
21549 if { (ac_try="$ac_compile"
21550 case "(($ac_try" in
21551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552   *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555   (eval "$ac_compile") 2>conftest.er1
21556   ac_status=$?
21557   grep -v '^ *+' conftest.er1 >conftest.err
21558   rm -f conftest.er1
21559   cat conftest.err >&5
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); } && {
21562          test -z "$ac_c_werror_flag" ||
21563          test ! -s conftest.err
21564        } && test -s conftest.$ac_objext; then
21565   eval "$as_ac_Header=yes"
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570         eval "$as_ac_Header=no"
21571 fi
21572
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21574 fi
21575 ac_res=`eval echo '${'$as_ac_Header'}'`
21576                { echo "$as_me:$LINENO: result: $ac_res" >&5
21577 echo "${ECHO_T}$ac_res" >&6; }
21578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21579   cat >>confdefs.h <<_ACEOF
21580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21581 _ACEOF
21582
21583 fi
21584
21585 done
21586
21587
21588
21589
21590
21591
21592
21593
21594 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
21595 do
21596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21600   echo $ECHO_N "(cached) $ECHO_C" >&6
21601 else
21602   cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 $ac_includes_default
21609
21610 #include <$ac_header>
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619   (eval "$ac_compile") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } && {
21626          test -z "$ac_c_werror_flag" ||
21627          test ! -s conftest.err
21628        } && test -s conftest.$ac_objext; then
21629   eval "$as_ac_Header=yes"
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634         eval "$as_ac_Header=no"
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 fi
21639 ac_res=`eval echo '${'$as_ac_Header'}'`
21640                { echo "$as_me:$LINENO: result: $ac_res" >&5
21641 echo "${ECHO_T}$ac_res" >&6; }
21642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21643   cat >>confdefs.h <<_ACEOF
21644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21645 _ACEOF
21646
21647 fi
21648
21649 done
21650
21651
21652 if test "$ac_cv_header_wchar_h" != "yes"; then
21653
21654 for ac_header in wcstr.h
21655 do
21656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662   cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h.  */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h.  */
21668 $ac_includes_default
21669
21670 #include <$ac_header>
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_compile") 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } && {
21686          test -z "$ac_c_werror_flag" ||
21687          test ! -s conftest.err
21688        } && test -s conftest.$ac_objext; then
21689   eval "$as_ac_Header=yes"
21690 else
21691   echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21693
21694         eval "$as_ac_Header=no"
21695 fi
21696
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 fi
21699 ac_res=`eval echo '${'$as_ac_Header'}'`
21700                { echo "$as_me:$LINENO: result: $ac_res" >&5
21701 echo "${ECHO_T}$ac_res" >&6; }
21702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21703   cat >>confdefs.h <<_ACEOF
21704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21705 _ACEOF
21706
21707 fi
21708
21709 done
21710
21711 fi
21712
21713 case "${host}" in
21714   *-pc-os2_emx | *-pc-os2-emx )
21715                   if test $ac_cv_header_langinfo_h = "yes" \
21716                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21717                      -o "$wx_cv_gccversion" = "EMX3" \
21718                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21719           LIBS="$LIBS -lintl"
21720       fi
21721   ;;
21722 esac
21723
21724 if test "$USE_UNIX" = 1 ; then
21725
21726 for ac_header in sys/select.h
21727 do
21728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740 $ac_includes_default
21741
21742 #include <$ac_header>
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748   *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751   (eval "$ac_compile") 2>conftest.er1
21752   ac_status=$?
21753   grep -v '^ *+' conftest.er1 >conftest.err
21754   rm -f conftest.er1
21755   cat conftest.err >&5
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } && {
21758          test -z "$ac_c_werror_flag" ||
21759          test ! -s conftest.err
21760        } && test -s conftest.$ac_objext; then
21761   eval "$as_ac_Header=yes"
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766         eval "$as_ac_Header=no"
21767 fi
21768
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 fi
21771 ac_res=`eval echo '${'$as_ac_Header'}'`
21772                { echo "$as_me:$LINENO: result: $ac_res" >&5
21773 echo "${ECHO_T}$ac_res" >&6; }
21774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21775   cat >>confdefs.h <<_ACEOF
21776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21777 _ACEOF
21778
21779 fi
21780
21781 done
21782
21783 fi
21784
21785
21786 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21787 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21788 if test "${ac_cv_c_const+set}" = set; then
21789   echo $ECHO_N "(cached) $ECHO_C" >&6
21790 else
21791   cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797
21798 int
21799 main ()
21800 {
21801 /* FIXME: Include the comments suggested by Paul. */
21802 #ifndef __cplusplus
21803   /* Ultrix mips cc rejects this.  */
21804   typedef int charset[2];
21805   const charset cs;
21806   /* SunOS 4.1.1 cc rejects this.  */
21807   char const *const *pcpcc;
21808   char **ppc;
21809   /* NEC SVR4.0.2 mips cc rejects this.  */
21810   struct point {int x, y;};
21811   static struct point const zero = {0,0};
21812   /* AIX XL C 1.02.0.0 rejects this.
21813      It does not let you subtract one const X* pointer from another in
21814      an arm of an if-expression whose if-part is not a constant
21815      expression */
21816   const char *g = "string";
21817   pcpcc = &g + (g ? g-g : 0);
21818   /* HPUX 7.0 cc rejects these. */
21819   ++pcpcc;
21820   ppc = (char**) pcpcc;
21821   pcpcc = (char const *const *) ppc;
21822   { /* SCO 3.2v4 cc rejects this.  */
21823     char *t;
21824     char const *s = 0 ? (char *) 0 : (char const *) 0;
21825
21826     *t++ = 0;
21827     if (s) return 0;
21828   }
21829   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21830     int x[] = {25, 17};
21831     const int *foo = &x[0];
21832     ++foo;
21833   }
21834   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21835     typedef const int *iptr;
21836     iptr p = 0;
21837     ++p;
21838   }
21839   { /* AIX XL C 1.02.0.0 rejects this saying
21840        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21841     struct s { int j; const int *ap[3]; };
21842     struct s *b; b->j = 5;
21843   }
21844   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21845     const int foo = 10;
21846     if (!foo) return 0;
21847   }
21848   return !cs[0] && !zero.x;
21849 #endif
21850
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859   *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862   (eval "$ac_compile") 2>conftest.er1
21863   ac_status=$?
21864   grep -v '^ *+' conftest.er1 >conftest.err
21865   rm -f conftest.er1
21866   cat conftest.err >&5
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); } && {
21869          test -z "$ac_c_werror_flag" ||
21870          test ! -s conftest.err
21871        } && test -s conftest.$ac_objext; then
21872   ac_cv_c_const=yes
21873 else
21874   echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877         ac_cv_c_const=no
21878 fi
21879
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 fi
21882 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21883 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21884 if test $ac_cv_c_const = no; then
21885
21886 cat >>confdefs.h <<\_ACEOF
21887 #define const
21888 _ACEOF
21889
21890 fi
21891
21892 { echo "$as_me:$LINENO: checking for inline" >&5
21893 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21894 if test "${ac_cv_c_inline+set}" = set; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897   ac_cv_c_inline=no
21898 for ac_kw in inline __inline__ __inline; do
21899   cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h.  */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h.  */
21905 #ifndef __cplusplus
21906 typedef int foo_t;
21907 static $ac_kw foo_t static_foo () {return 0; }
21908 $ac_kw foo_t foo () {return 0; }
21909 #endif
21910
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (ac_try="$ac_compile"
21914 case "(($ac_try" in
21915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916   *) ac_try_echo=$ac_try;;
21917 esac
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919   (eval "$ac_compile") 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } && {
21926          test -z "$ac_c_werror_flag" ||
21927          test ! -s conftest.err
21928        } && test -s conftest.$ac_objext; then
21929   ac_cv_c_inline=$ac_kw
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934
21935 fi
21936
21937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938   test "$ac_cv_c_inline" != no && break
21939 done
21940
21941 fi
21942 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21943 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21944
21945
21946 case $ac_cv_c_inline in
21947   inline | yes) ;;
21948   *)
21949     case $ac_cv_c_inline in
21950       no) ac_val=;;
21951       *) ac_val=$ac_cv_c_inline;;
21952     esac
21953     cat >>confdefs.h <<_ACEOF
21954 #ifndef __cplusplus
21955 #define inline $ac_val
21956 #endif
21957 _ACEOF
21958     ;;
21959 esac
21960
21961
21962 { echo "$as_me:$LINENO: checking for short" >&5
21963 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21964 if test "${ac_cv_type_short+set}" = set; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967   cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 $ac_includes_default
21974 typedef short ac__type_new_;
21975 int
21976 main ()
21977 {
21978 if ((ac__type_new_ *) 0)
21979   return 0;
21980 if (sizeof (ac__type_new_))
21981   return 0;
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_compile") 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } && {
22000          test -z "$ac_c_werror_flag" ||
22001          test ! -s conftest.err
22002        } && test -s conftest.$ac_objext; then
22003   ac_cv_type_short=yes
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008         ac_cv_type_short=no
22009 fi
22010
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 fi
22013 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22014 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22015
22016 # The cast to long int works around a bug in the HP C Compiler
22017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22019 # This bug is HP SR number 8606223364.
22020 { echo "$as_me:$LINENO: checking size of short" >&5
22021 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22022 if test "${ac_cv_sizeof_short+set}" = set; then
22023   echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025   if test "$cross_compiling" = yes; then
22026   # Depending upon the size, compute the lo and hi bounds.
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h.  */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h.  */
22033 $ac_includes_default
22034    typedef short ac__type_sizeof_;
22035 int
22036 main ()
22037 {
22038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22039 test_array [0] = 0
22040
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext
22046 if { (ac_try="$ac_compile"
22047 case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_compile") 2>conftest.er1
22053   ac_status=$?
22054   grep -v '^ *+' conftest.er1 >conftest.err
22055   rm -f conftest.er1
22056   cat conftest.err >&5
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } && {
22059          test -z "$ac_c_werror_flag" ||
22060          test ! -s conftest.err
22061        } && test -s conftest.$ac_objext; then
22062   ac_lo=0 ac_mid=0
22063   while :; do
22064     cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 $ac_includes_default
22071    typedef short ac__type_sizeof_;
22072 int
22073 main ()
22074 {
22075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22076 test_array [0] = 0
22077
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_compile") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && {
22096          test -z "$ac_c_werror_flag" ||
22097          test ! -s conftest.err
22098        } && test -s conftest.$ac_objext; then
22099   ac_hi=$ac_mid; break
22100 else
22101   echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104         ac_lo=`expr $ac_mid + 1`
22105                         if test $ac_lo -le $ac_mid; then
22106                           ac_lo= ac_hi=
22107                           break
22108                         fi
22109                         ac_mid=`expr 2 '*' $ac_mid + 1`
22110 fi
22111
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113   done
22114 else
22115   echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118         cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124 $ac_includes_default
22125    typedef short ac__type_sizeof_;
22126 int
22127 main ()
22128 {
22129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22130 test_array [0] = 0
22131
22132   ;
22133   return 0;
22134 }
22135 _ACEOF
22136 rm -f conftest.$ac_objext
22137 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22144   ac_status=$?
22145   grep -v '^ *+' conftest.er1 >conftest.err
22146   rm -f conftest.er1
22147   cat conftest.err >&5
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); } && {
22150          test -z "$ac_c_werror_flag" ||
22151          test ! -s conftest.err
22152        } && test -s conftest.$ac_objext; then
22153   ac_hi=-1 ac_mid=-1
22154   while :; do
22155     cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 $ac_includes_default
22162    typedef short ac__type_sizeof_;
22163 int
22164 main ()
22165 {
22166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22167 test_array [0] = 0
22168
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_compile") 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } && {
22187          test -z "$ac_c_werror_flag" ||
22188          test ! -s conftest.err
22189        } && test -s conftest.$ac_objext; then
22190   ac_lo=$ac_mid; break
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195         ac_hi=`expr '(' $ac_mid ')' - 1`
22196                         if test $ac_mid -le $ac_hi; then
22197                           ac_lo= ac_hi=
22198                           break
22199                         fi
22200                         ac_mid=`expr 2 '*' $ac_mid`
22201 fi
22202
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204   done
22205 else
22206   echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209         ac_lo= ac_hi=
22210 fi
22211
22212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213 fi
22214
22215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22216 # Binary search between lo and hi bounds.
22217 while test "x$ac_lo" != "x$ac_hi"; do
22218   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225 $ac_includes_default
22226    typedef short ac__type_sizeof_;
22227 int
22228 main ()
22229 {
22230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22231 test_array [0] = 0
22232
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext
22238 if { (ac_try="$ac_compile"
22239 case "(($ac_try" in
22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241   *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244   (eval "$ac_compile") 2>conftest.er1
22245   ac_status=$?
22246   grep -v '^ *+' conftest.er1 >conftest.err
22247   rm -f conftest.er1
22248   cat conftest.err >&5
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } && {
22251          test -z "$ac_c_werror_flag" ||
22252          test ! -s conftest.err
22253        } && test -s conftest.$ac_objext; then
22254   ac_hi=$ac_mid
22255 else
22256   echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259         ac_lo=`expr '(' $ac_mid ')' + 1`
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 done
22264 case $ac_lo in
22265 ?*) ac_cv_sizeof_short=$ac_lo;;
22266 '') if test "$ac_cv_type_short" = yes; then
22267      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22268 See \`config.log' for more details." >&5
22269 echo "$as_me: error: cannot compute sizeof (short)
22270 See \`config.log' for more details." >&2;}
22271    { (exit 77); exit 77; }; }
22272    else
22273      ac_cv_sizeof_short=0
22274    fi ;;
22275 esac
22276 else
22277   cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h.  */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h.  */
22283 $ac_includes_default
22284    typedef short ac__type_sizeof_;
22285 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22286 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22287 #include <stdio.h>
22288 #include <stdlib.h>
22289 int
22290 main ()
22291 {
22292
22293   FILE *f = fopen ("conftest.val", "w");
22294   if (! f)
22295     return 1;
22296   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22297     {
22298       long int i = longval ();
22299       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22300         return 1;
22301       fprintf (f, "%ld\n", i);
22302     }
22303   else
22304     {
22305       unsigned long int i = ulongval ();
22306       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22307         return 1;
22308       fprintf (f, "%lu\n", i);
22309     }
22310   return ferror (f) || fclose (f) != 0;
22311
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 rm -f conftest$ac_exeext
22317 if { (ac_try="$ac_link"
22318 case "(($ac_try" in
22319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320   *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323   (eval "$ac_link") 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22327   { (case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332   (eval "$ac_try") 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); }; }; then
22336   ac_cv_sizeof_short=`cat conftest.val`
22337 else
22338   echo "$as_me: program exited with status $ac_status" >&5
22339 echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22341
22342 ( exit $ac_status )
22343 if test "$ac_cv_type_short" = yes; then
22344      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22345 See \`config.log' for more details." >&5
22346 echo "$as_me: error: cannot compute sizeof (short)
22347 See \`config.log' for more details." >&2;}
22348    { (exit 77); exit 77; }; }
22349    else
22350      ac_cv_sizeof_short=0
22351    fi
22352 fi
22353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22354 fi
22355 rm -f conftest.val
22356 fi
22357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22358 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22359
22360
22361
22362 cat >>confdefs.h <<_ACEOF
22363 #define SIZEOF_SHORT $ac_cv_sizeof_short
22364 _ACEOF
22365
22366
22367 { echo "$as_me:$LINENO: checking for void *" >&5
22368 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22369 if test "${ac_cv_type_void_p+set}" = set; then
22370   echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372   cat >conftest.$ac_ext <<_ACEOF
22373 /* confdefs.h.  */
22374 _ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h.  */
22378 $ac_includes_default
22379 typedef void * ac__type_new_;
22380 int
22381 main ()
22382 {
22383 if ((ac__type_new_ *) 0)
22384   return 0;
22385 if (sizeof (ac__type_new_))
22386   return 0;
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 rm -f conftest.$ac_objext
22392 if { (ac_try="$ac_compile"
22393 case "(($ac_try" in
22394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395   *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398   (eval "$ac_compile") 2>conftest.er1
22399   ac_status=$?
22400   grep -v '^ *+' conftest.er1 >conftest.err
22401   rm -f conftest.er1
22402   cat conftest.err >&5
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } && {
22405          test -z "$ac_c_werror_flag" ||
22406          test ! -s conftest.err
22407        } && test -s conftest.$ac_objext; then
22408   ac_cv_type_void_p=yes
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413         ac_cv_type_void_p=no
22414 fi
22415
22416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 fi
22418 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22419 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22420
22421 # The cast to long int works around a bug in the HP C Compiler
22422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22424 # This bug is HP SR number 8606223364.
22425 { echo "$as_me:$LINENO: checking size of void *" >&5
22426 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22427 if test "${ac_cv_sizeof_void_p+set}" = set; then
22428   echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430   if test "$cross_compiling" = yes; then
22431   # Depending upon the size, compute the lo and hi bounds.
22432 cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438 $ac_includes_default
22439    typedef void * ac__type_sizeof_;
22440 int
22441 main ()
22442 {
22443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22444 test_array [0] = 0
22445
22446   ;
22447   return 0;
22448 }
22449 _ACEOF
22450 rm -f conftest.$ac_objext
22451 if { (ac_try="$ac_compile"
22452 case "(($ac_try" in
22453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454   *) ac_try_echo=$ac_try;;
22455 esac
22456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457   (eval "$ac_compile") 2>conftest.er1
22458   ac_status=$?
22459   grep -v '^ *+' conftest.er1 >conftest.err
22460   rm -f conftest.er1
22461   cat conftest.err >&5
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); } && {
22464          test -z "$ac_c_werror_flag" ||
22465          test ! -s conftest.err
22466        } && test -s conftest.$ac_objext; then
22467   ac_lo=0 ac_mid=0
22468   while :; do
22469     cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 $ac_includes_default
22476    typedef void * ac__type_sizeof_;
22477 int
22478 main ()
22479 {
22480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22481 test_array [0] = 0
22482
22483   ;
22484   return 0;
22485 }
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491   *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494   (eval "$ac_compile") 2>conftest.er1
22495   ac_status=$?
22496   grep -v '^ *+' conftest.er1 >conftest.err
22497   rm -f conftest.er1
22498   cat conftest.err >&5
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } && {
22501          test -z "$ac_c_werror_flag" ||
22502          test ! -s conftest.err
22503        } && test -s conftest.$ac_objext; then
22504   ac_hi=$ac_mid; break
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509         ac_lo=`expr $ac_mid + 1`
22510                         if test $ac_lo -le $ac_mid; then
22511                           ac_lo= ac_hi=
22512                           break
22513                         fi
22514                         ac_mid=`expr 2 '*' $ac_mid + 1`
22515 fi
22516
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518   done
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523         cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529 $ac_includes_default
22530    typedef void * ac__type_sizeof_;
22531 int
22532 main ()
22533 {
22534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22535 test_array [0] = 0
22536
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest.$ac_objext
22542 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22549   ac_status=$?
22550   grep -v '^ *+' conftest.er1 >conftest.err
22551   rm -f conftest.er1
22552   cat conftest.err >&5
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); } && {
22555          test -z "$ac_c_werror_flag" ||
22556          test ! -s conftest.err
22557        } && test -s conftest.$ac_objext; then
22558   ac_hi=-1 ac_mid=-1
22559   while :; do
22560     cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566 $ac_includes_default
22567    typedef void * ac__type_sizeof_;
22568 int
22569 main ()
22570 {
22571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22572 test_array [0] = 0
22573
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 rm -f conftest.$ac_objext
22579 if { (ac_try="$ac_compile"
22580 case "(($ac_try" in
22581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582   *) ac_try_echo=$ac_try;;
22583 esac
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585   (eval "$ac_compile") 2>conftest.er1
22586   ac_status=$?
22587   grep -v '^ *+' conftest.er1 >conftest.err
22588   rm -f conftest.er1
22589   cat conftest.err >&5
22590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591   (exit $ac_status); } && {
22592          test -z "$ac_c_werror_flag" ||
22593          test ! -s conftest.err
22594        } && test -s conftest.$ac_objext; then
22595   ac_lo=$ac_mid; break
22596 else
22597   echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22599
22600         ac_hi=`expr '(' $ac_mid ')' - 1`
22601                         if test $ac_mid -le $ac_hi; then
22602                           ac_lo= ac_hi=
22603                           break
22604                         fi
22605                         ac_mid=`expr 2 '*' $ac_mid`
22606 fi
22607
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609   done
22610 else
22611   echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614         ac_lo= ac_hi=
22615 fi
22616
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 fi
22619
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 # Binary search between lo and hi bounds.
22622 while test "x$ac_lo" != "x$ac_hi"; do
22623   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22624   cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h.  */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h.  */
22630 $ac_includes_default
22631    typedef void * ac__type_sizeof_;
22632 int
22633 main ()
22634 {
22635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22636 test_array [0] = 0
22637
22638   ;
22639   return 0;
22640 }
22641 _ACEOF
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646   *) ac_try_echo=$ac_try;;
22647 esac
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649   (eval "$ac_compile") 2>conftest.er1
22650   ac_status=$?
22651   grep -v '^ *+' conftest.er1 >conftest.err
22652   rm -f conftest.er1
22653   cat conftest.err >&5
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } && {
22656          test -z "$ac_c_werror_flag" ||
22657          test ! -s conftest.err
22658        } && test -s conftest.$ac_objext; then
22659   ac_hi=$ac_mid
22660 else
22661   echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22663
22664         ac_lo=`expr '(' $ac_mid ')' + 1`
22665 fi
22666
22667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22668 done
22669 case $ac_lo in
22670 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22671 '') if test "$ac_cv_type_void_p" = yes; then
22672      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22673 See \`config.log' for more details." >&5
22674 echo "$as_me: error: cannot compute sizeof (void *)
22675 See \`config.log' for more details." >&2;}
22676    { (exit 77); exit 77; }; }
22677    else
22678      ac_cv_sizeof_void_p=0
22679    fi ;;
22680 esac
22681 else
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 $ac_includes_default
22689    typedef void * ac__type_sizeof_;
22690 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22691 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22692 #include <stdio.h>
22693 #include <stdlib.h>
22694 int
22695 main ()
22696 {
22697
22698   FILE *f = fopen ("conftest.val", "w");
22699   if (! f)
22700     return 1;
22701   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22702     {
22703       long int i = longval ();
22704       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22705         return 1;
22706       fprintf (f, "%ld\n", i);
22707     }
22708   else
22709     {
22710       unsigned long int i = ulongval ();
22711       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22712         return 1;
22713       fprintf (f, "%lu\n", i);
22714     }
22715   return ferror (f) || fclose (f) != 0;
22716
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725   *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728   (eval "$ac_link") 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22732   { (case "(($ac_try" in
22733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734   *) ac_try_echo=$ac_try;;
22735 esac
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737   (eval "$ac_try") 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); }; }; then
22741   ac_cv_sizeof_void_p=`cat conftest.val`
22742 else
22743   echo "$as_me: program exited with status $ac_status" >&5
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ( exit $ac_status )
22748 if test "$ac_cv_type_void_p" = yes; then
22749      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22750 See \`config.log' for more details." >&5
22751 echo "$as_me: error: cannot compute sizeof (void *)
22752 See \`config.log' for more details." >&2;}
22753    { (exit 77); exit 77; }; }
22754    else
22755      ac_cv_sizeof_void_p=0
22756    fi
22757 fi
22758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22759 fi
22760 rm -f conftest.val
22761 fi
22762 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22763 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22764
22765
22766
22767 cat >>confdefs.h <<_ACEOF
22768 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22769 _ACEOF
22770
22771
22772 { echo "$as_me:$LINENO: checking for int" >&5
22773 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22774 if test "${ac_cv_type_int+set}" = set; then
22775   echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777   cat >conftest.$ac_ext <<_ACEOF
22778 /* confdefs.h.  */
22779 _ACEOF
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h.  */
22783 $ac_includes_default
22784 typedef int ac__type_new_;
22785 int
22786 main ()
22787 {
22788 if ((ac__type_new_ *) 0)
22789   return 0;
22790 if (sizeof (ac__type_new_))
22791   return 0;
22792   ;
22793   return 0;
22794 }
22795 _ACEOF
22796 rm -f conftest.$ac_objext
22797 if { (ac_try="$ac_compile"
22798 case "(($ac_try" in
22799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800   *) ac_try_echo=$ac_try;;
22801 esac
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803   (eval "$ac_compile") 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } && {
22810          test -z "$ac_c_werror_flag" ||
22811          test ! -s conftest.err
22812        } && test -s conftest.$ac_objext; then
22813   ac_cv_type_int=yes
22814 else
22815   echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22817
22818         ac_cv_type_int=no
22819 fi
22820
22821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822 fi
22823 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22824 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22825
22826 # The cast to long int works around a bug in the HP C Compiler
22827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22829 # This bug is HP SR number 8606223364.
22830 { echo "$as_me:$LINENO: checking size of int" >&5
22831 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22832 if test "${ac_cv_sizeof_int+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835   if test "$cross_compiling" = yes; then
22836   # Depending upon the size, compute the lo and hi bounds.
22837 cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843 $ac_includes_default
22844    typedef int ac__type_sizeof_;
22845 int
22846 main ()
22847 {
22848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22849 test_array [0] = 0
22850
22851   ;
22852   return 0;
22853 }
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_compile") 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } && {
22869          test -z "$ac_c_werror_flag" ||
22870          test ! -s conftest.err
22871        } && test -s conftest.$ac_objext; then
22872   ac_lo=0 ac_mid=0
22873   while :; do
22874     cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880 $ac_includes_default
22881    typedef int ac__type_sizeof_;
22882 int
22883 main ()
22884 {
22885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22886 test_array [0] = 0
22887
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896   *) ac_try_echo=$ac_try;;
22897 esac
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899   (eval "$ac_compile") 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } && {
22906          test -z "$ac_c_werror_flag" ||
22907          test ! -s conftest.err
22908        } && test -s conftest.$ac_objext; then
22909   ac_hi=$ac_mid; break
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914         ac_lo=`expr $ac_mid + 1`
22915                         if test $ac_lo -le $ac_mid; then
22916                           ac_lo= ac_hi=
22917                           break
22918                         fi
22919                         ac_mid=`expr 2 '*' $ac_mid + 1`
22920 fi
22921
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923   done
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928         cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934 $ac_includes_default
22935    typedef int ac__type_sizeof_;
22936 int
22937 main ()
22938 {
22939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22940 test_array [0] = 0
22941
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_compile") 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } && {
22960          test -z "$ac_c_werror_flag" ||
22961          test ! -s conftest.err
22962        } && test -s conftest.$ac_objext; then
22963   ac_hi=-1 ac_mid=-1
22964   while :; do
22965     cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 $ac_includes_default
22972    typedef int ac__type_sizeof_;
22973 int
22974 main ()
22975 {
22976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22977 test_array [0] = 0
22978
22979   ;
22980   return 0;
22981 }
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987   *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990   (eval "$ac_compile") 2>conftest.er1
22991   ac_status=$?
22992   grep -v '^ *+' conftest.er1 >conftest.err
22993   rm -f conftest.er1
22994   cat conftest.err >&5
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); } && {
22997          test -z "$ac_c_werror_flag" ||
22998          test ! -s conftest.err
22999        } && test -s conftest.$ac_objext; then
23000   ac_lo=$ac_mid; break
23001 else
23002   echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23004
23005         ac_hi=`expr '(' $ac_mid ')' - 1`
23006                         if test $ac_mid -le $ac_hi; then
23007                           ac_lo= ac_hi=
23008                           break
23009                         fi
23010                         ac_mid=`expr 2 '*' $ac_mid`
23011 fi
23012
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014   done
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019         ac_lo= ac_hi=
23020 fi
23021
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023 fi
23024
23025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 # Binary search between lo and hi bounds.
23027 while test "x$ac_lo" != "x$ac_hi"; do
23028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23029   cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035 $ac_includes_default
23036    typedef int ac__type_sizeof_;
23037 int
23038 main ()
23039 {
23040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23041 test_array [0] = 0
23042
23043   ;
23044   return 0;
23045 }
23046 _ACEOF
23047 rm -f conftest.$ac_objext
23048 if { (ac_try="$ac_compile"
23049 case "(($ac_try" in
23050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051   *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054   (eval "$ac_compile") 2>conftest.er1
23055   ac_status=$?
23056   grep -v '^ *+' conftest.er1 >conftest.err
23057   rm -f conftest.er1
23058   cat conftest.err >&5
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); } && {
23061          test -z "$ac_c_werror_flag" ||
23062          test ! -s conftest.err
23063        } && test -s conftest.$ac_objext; then
23064   ac_hi=$ac_mid
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069         ac_lo=`expr '(' $ac_mid ')' + 1`
23070 fi
23071
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 done
23074 case $ac_lo in
23075 ?*) ac_cv_sizeof_int=$ac_lo;;
23076 '') if test "$ac_cv_type_int" = yes; then
23077      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23078 See \`config.log' for more details." >&5
23079 echo "$as_me: error: cannot compute sizeof (int)
23080 See \`config.log' for more details." >&2;}
23081    { (exit 77); exit 77; }; }
23082    else
23083      ac_cv_sizeof_int=0
23084    fi ;;
23085 esac
23086 else
23087   cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 $ac_includes_default
23094    typedef int ac__type_sizeof_;
23095 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23096 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23097 #include <stdio.h>
23098 #include <stdlib.h>
23099 int
23100 main ()
23101 {
23102
23103   FILE *f = fopen ("conftest.val", "w");
23104   if (! f)
23105     return 1;
23106   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23107     {
23108       long int i = longval ();
23109       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23110         return 1;
23111       fprintf (f, "%ld\n", i);
23112     }
23113   else
23114     {
23115       unsigned long int i = ulongval ();
23116       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23117         return 1;
23118       fprintf (f, "%lu\n", i);
23119     }
23120   return ferror (f) || fclose (f) != 0;
23121
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest$ac_exeext
23127 if { (ac_try="$ac_link"
23128 case "(($ac_try" in
23129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130   *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133   (eval "$ac_link") 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23137   { (case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_try") 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); }; }; then
23146   ac_cv_sizeof_int=`cat conftest.val`
23147 else
23148   echo "$as_me: program exited with status $ac_status" >&5
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ( exit $ac_status )
23153 if test "$ac_cv_type_int" = yes; then
23154      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23155 See \`config.log' for more details." >&5
23156 echo "$as_me: error: cannot compute sizeof (int)
23157 See \`config.log' for more details." >&2;}
23158    { (exit 77); exit 77; }; }
23159    else
23160      ac_cv_sizeof_int=0
23161    fi
23162 fi
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23164 fi
23165 rm -f conftest.val
23166 fi
23167 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23168 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23169
23170
23171
23172 cat >>confdefs.h <<_ACEOF
23173 #define SIZEOF_INT $ac_cv_sizeof_int
23174 _ACEOF
23175
23176
23177 { echo "$as_me:$LINENO: checking for long" >&5
23178 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23179 if test "${ac_cv_type_long+set}" = set; then
23180   echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182   cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 $ac_includes_default
23189 typedef long ac__type_new_;
23190 int
23191 main ()
23192 {
23193 if ((ac__type_new_ *) 0)
23194   return 0;
23195 if (sizeof (ac__type_new_))
23196   return 0;
23197   ;
23198   return 0;
23199 }
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205   *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208   (eval "$ac_compile") 2>conftest.er1
23209   ac_status=$?
23210   grep -v '^ *+' conftest.er1 >conftest.err
23211   rm -f conftest.er1
23212   cat conftest.err >&5
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); } && {
23215          test -z "$ac_c_werror_flag" ||
23216          test ! -s conftest.err
23217        } && test -s conftest.$ac_objext; then
23218   ac_cv_type_long=yes
23219 else
23220   echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223         ac_cv_type_long=no
23224 fi
23225
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 fi
23228 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23229 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23230
23231 # The cast to long int works around a bug in the HP C Compiler
23232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23234 # This bug is HP SR number 8606223364.
23235 { echo "$as_me:$LINENO: checking size of long" >&5
23236 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23237 if test "${ac_cv_sizeof_long+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   if test "$cross_compiling" = yes; then
23241   # Depending upon the size, compute the lo and hi bounds.
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248 $ac_includes_default
23249    typedef long ac__type_sizeof_;
23250 int
23251 main ()
23252 {
23253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23254 test_array [0] = 0
23255
23256   ;
23257   return 0;
23258 }
23259 _ACEOF
23260 rm -f conftest.$ac_objext
23261 if { (ac_try="$ac_compile"
23262 case "(($ac_try" in
23263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264   *) ac_try_echo=$ac_try;;
23265 esac
23266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23267   (eval "$ac_compile") 2>conftest.er1
23268   ac_status=$?
23269   grep -v '^ *+' conftest.er1 >conftest.err
23270   rm -f conftest.er1
23271   cat conftest.err >&5
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } && {
23274          test -z "$ac_c_werror_flag" ||
23275          test ! -s conftest.err
23276        } && test -s conftest.$ac_objext; then
23277   ac_lo=0 ac_mid=0
23278   while :; do
23279     cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h.  */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h.  */
23285 $ac_includes_default
23286    typedef long ac__type_sizeof_;
23287 int
23288 main ()
23289 {
23290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23291 test_array [0] = 0
23292
23293   ;
23294   return 0;
23295 }
23296 _ACEOF
23297 rm -f conftest.$ac_objext
23298 if { (ac_try="$ac_compile"
23299 case "(($ac_try" in
23300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301   *) ac_try_echo=$ac_try;;
23302 esac
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304   (eval "$ac_compile") 2>conftest.er1
23305   ac_status=$?
23306   grep -v '^ *+' conftest.er1 >conftest.err
23307   rm -f conftest.er1
23308   cat conftest.err >&5
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); } && {
23311          test -z "$ac_c_werror_flag" ||
23312          test ! -s conftest.err
23313        } && test -s conftest.$ac_objext; then
23314   ac_hi=$ac_mid; break
23315 else
23316   echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23318
23319         ac_lo=`expr $ac_mid + 1`
23320                         if test $ac_lo -le $ac_mid; then
23321                           ac_lo= ac_hi=
23322                           break
23323                         fi
23324                         ac_mid=`expr 2 '*' $ac_mid + 1`
23325 fi
23326
23327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23328   done
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333         cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h.  */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h.  */
23339 $ac_includes_default
23340    typedef long ac__type_sizeof_;
23341 int
23342 main ()
23343 {
23344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23345 test_array [0] = 0
23346
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355   *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358   (eval "$ac_compile") 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } && {
23365          test -z "$ac_c_werror_flag" ||
23366          test ! -s conftest.err
23367        } && test -s conftest.$ac_objext; then
23368   ac_hi=-1 ac_mid=-1
23369   while :; do
23370     cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 $ac_includes_default
23377    typedef long ac__type_sizeof_;
23378 int
23379 main ()
23380 {
23381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23382 test_array [0] = 0
23383
23384   ;
23385   return 0;
23386 }
23387 _ACEOF
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392   *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395   (eval "$ac_compile") 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } && {
23402          test -z "$ac_c_werror_flag" ||
23403          test ! -s conftest.err
23404        } && test -s conftest.$ac_objext; then
23405   ac_lo=$ac_mid; break
23406 else
23407   echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23409
23410         ac_hi=`expr '(' $ac_mid ')' - 1`
23411                         if test $ac_mid -le $ac_hi; then
23412                           ac_lo= ac_hi=
23413                           break
23414                         fi
23415                         ac_mid=`expr 2 '*' $ac_mid`
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419   done
23420 else
23421   echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424         ac_lo= ac_hi=
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 # Binary search between lo and hi bounds.
23432 while test "x$ac_lo" != "x$ac_hi"; do
23433   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23434   cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440 $ac_includes_default
23441    typedef long ac__type_sizeof_;
23442 int
23443 main ()
23444 {
23445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23446 test_array [0] = 0
23447
23448   ;
23449   return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest.$ac_objext
23453 if { (ac_try="$ac_compile"
23454 case "(($ac_try" in
23455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456   *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459   (eval "$ac_compile") 2>conftest.er1
23460   ac_status=$?
23461   grep -v '^ *+' conftest.er1 >conftest.err
23462   rm -f conftest.er1
23463   cat conftest.err >&5
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); } && {
23466          test -z "$ac_c_werror_flag" ||
23467          test ! -s conftest.err
23468        } && test -s conftest.$ac_objext; then
23469   ac_hi=$ac_mid
23470 else
23471   echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23473
23474         ac_lo=`expr '(' $ac_mid ')' + 1`
23475 fi
23476
23477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23478 done
23479 case $ac_lo in
23480 ?*) ac_cv_sizeof_long=$ac_lo;;
23481 '') if test "$ac_cv_type_long" = yes; then
23482      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23483 See \`config.log' for more details." >&5
23484 echo "$as_me: error: cannot compute sizeof (long)
23485 See \`config.log' for more details." >&2;}
23486    { (exit 77); exit 77; }; }
23487    else
23488      ac_cv_sizeof_long=0
23489    fi ;;
23490 esac
23491 else
23492   cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h.  */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h.  */
23498 $ac_includes_default
23499    typedef long ac__type_sizeof_;
23500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23502 #include <stdio.h>
23503 #include <stdlib.h>
23504 int
23505 main ()
23506 {
23507
23508   FILE *f = fopen ("conftest.val", "w");
23509   if (! f)
23510     return 1;
23511   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23512     {
23513       long int i = longval ();
23514       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23515         return 1;
23516       fprintf (f, "%ld\n", i);
23517     }
23518   else
23519     {
23520       unsigned long int i = ulongval ();
23521       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23522         return 1;
23523       fprintf (f, "%lu\n", i);
23524     }
23525   return ferror (f) || fclose (f) != 0;
23526
23527   ;
23528   return 0;
23529 }
23530 _ACEOF
23531 rm -f conftest$ac_exeext
23532 if { (ac_try="$ac_link"
23533 case "(($ac_try" in
23534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535   *) ac_try_echo=$ac_try;;
23536 esac
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538   (eval "$ac_link") 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23542   { (case "(($ac_try" in
23543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544   *) ac_try_echo=$ac_try;;
23545 esac
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547   (eval "$ac_try") 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); }; }; then
23551   ac_cv_sizeof_long=`cat conftest.val`
23552 else
23553   echo "$as_me: program exited with status $ac_status" >&5
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 ( exit $ac_status )
23558 if test "$ac_cv_type_long" = yes; then
23559      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23560 See \`config.log' for more details." >&5
23561 echo "$as_me: error: cannot compute sizeof (long)
23562 See \`config.log' for more details." >&2;}
23563    { (exit 77); exit 77; }; }
23564    else
23565      ac_cv_sizeof_long=0
23566    fi
23567 fi
23568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23569 fi
23570 rm -f conftest.val
23571 fi
23572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23573 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23574
23575
23576
23577 cat >>confdefs.h <<_ACEOF
23578 #define SIZEOF_LONG $ac_cv_sizeof_long
23579 _ACEOF
23580
23581
23582 { echo "$as_me:$LINENO: checking for size_t" >&5
23583 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23584 if test "${ac_cv_type_size_t+set}" = set; then
23585   echo $ECHO_N "(cached) $ECHO_C" >&6
23586 else
23587   cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h.  */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h.  */
23593 $ac_includes_default
23594 typedef size_t ac__type_new_;
23595 int
23596 main ()
23597 {
23598 if ((ac__type_new_ *) 0)
23599   return 0;
23600 if (sizeof (ac__type_new_))
23601   return 0;
23602   ;
23603   return 0;
23604 }
23605 _ACEOF
23606 rm -f conftest.$ac_objext
23607 if { (ac_try="$ac_compile"
23608 case "(($ac_try" in
23609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610   *) ac_try_echo=$ac_try;;
23611 esac
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613   (eval "$ac_compile") 2>conftest.er1
23614   ac_status=$?
23615   grep -v '^ *+' conftest.er1 >conftest.err
23616   rm -f conftest.er1
23617   cat conftest.err >&5
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); } && {
23620          test -z "$ac_c_werror_flag" ||
23621          test ! -s conftest.err
23622        } && test -s conftest.$ac_objext; then
23623   ac_cv_type_size_t=yes
23624 else
23625   echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628         ac_cv_type_size_t=no
23629 fi
23630
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 fi
23633 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23634 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23635
23636 # The cast to long int works around a bug in the HP C Compiler
23637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23639 # This bug is HP SR number 8606223364.
23640 { echo "$as_me:$LINENO: checking size of size_t" >&5
23641 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23642 if test "${ac_cv_sizeof_size_t+set}" = set; then
23643   echo $ECHO_N "(cached) $ECHO_C" >&6
23644 else
23645   if test "$cross_compiling" = yes; then
23646   # Depending upon the size, compute the lo and hi bounds.
23647 cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 $ac_includes_default
23654    typedef size_t ac__type_sizeof_;
23655 int
23656 main ()
23657 {
23658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23659 test_array [0] = 0
23660
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 rm -f conftest.$ac_objext
23666 if { (ac_try="$ac_compile"
23667 case "(($ac_try" in
23668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669   *) ac_try_echo=$ac_try;;
23670 esac
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672   (eval "$ac_compile") 2>conftest.er1
23673   ac_status=$?
23674   grep -v '^ *+' conftest.er1 >conftest.err
23675   rm -f conftest.er1
23676   cat conftest.err >&5
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } && {
23679          test -z "$ac_c_werror_flag" ||
23680          test ! -s conftest.err
23681        } && test -s conftest.$ac_objext; then
23682   ac_lo=0 ac_mid=0
23683   while :; do
23684     cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690 $ac_includes_default
23691    typedef size_t ac__type_sizeof_;
23692 int
23693 main ()
23694 {
23695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23696 test_array [0] = 0
23697
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext
23703 if { (ac_try="$ac_compile"
23704 case "(($ac_try" in
23705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706   *) ac_try_echo=$ac_try;;
23707 esac
23708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709   (eval "$ac_compile") 2>conftest.er1
23710   ac_status=$?
23711   grep -v '^ *+' conftest.er1 >conftest.err
23712   rm -f conftest.er1
23713   cat conftest.err >&5
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); } && {
23716          test -z "$ac_c_werror_flag" ||
23717          test ! -s conftest.err
23718        } && test -s conftest.$ac_objext; then
23719   ac_hi=$ac_mid; break
23720 else
23721   echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23723
23724         ac_lo=`expr $ac_mid + 1`
23725                         if test $ac_lo -le $ac_mid; then
23726                           ac_lo= ac_hi=
23727                           break
23728                         fi
23729                         ac_mid=`expr 2 '*' $ac_mid + 1`
23730 fi
23731
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733   done
23734 else
23735   echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23737
23738         cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744 $ac_includes_default
23745    typedef size_t ac__type_sizeof_;
23746 int
23747 main ()
23748 {
23749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23750 test_array [0] = 0
23751
23752   ;
23753   return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760   *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763   (eval "$ac_compile") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_c_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest.$ac_objext; then
23773   ac_hi=-1 ac_mid=-1
23774   while :; do
23775     cat >conftest.$ac_ext <<_ACEOF
23776 /* confdefs.h.  */
23777 _ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h.  */
23781 $ac_includes_default
23782    typedef size_t ac__type_sizeof_;
23783 int
23784 main ()
23785 {
23786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23787 test_array [0] = 0
23788
23789   ;
23790   return 0;
23791 }
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797   *) ac_try_echo=$ac_try;;
23798 esac
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800   (eval "$ac_compile") 2>conftest.er1
23801   ac_status=$?
23802   grep -v '^ *+' conftest.er1 >conftest.err
23803   rm -f conftest.er1
23804   cat conftest.err >&5
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); } && {
23807          test -z "$ac_c_werror_flag" ||
23808          test ! -s conftest.err
23809        } && test -s conftest.$ac_objext; then
23810   ac_lo=$ac_mid; break
23811 else
23812   echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815         ac_hi=`expr '(' $ac_mid ')' - 1`
23816                         if test $ac_mid -le $ac_hi; then
23817                           ac_lo= ac_hi=
23818                           break
23819                         fi
23820                         ac_mid=`expr 2 '*' $ac_mid`
23821 fi
23822
23823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23824   done
23825 else
23826   echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23828
23829         ac_lo= ac_hi=
23830 fi
23831
23832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23833 fi
23834
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836 # Binary search between lo and hi bounds.
23837 while test "x$ac_lo" != "x$ac_hi"; do
23838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23839   cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h.  */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h.  */
23845 $ac_includes_default
23846    typedef size_t ac__type_sizeof_;
23847 int
23848 main ()
23849 {
23850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23851 test_array [0] = 0
23852
23853   ;
23854   return 0;
23855 }
23856 _ACEOF
23857 rm -f conftest.$ac_objext
23858 if { (ac_try="$ac_compile"
23859 case "(($ac_try" in
23860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861   *) ac_try_echo=$ac_try;;
23862 esac
23863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23864   (eval "$ac_compile") 2>conftest.er1
23865   ac_status=$?
23866   grep -v '^ *+' conftest.er1 >conftest.err
23867   rm -f conftest.er1
23868   cat conftest.err >&5
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); } && {
23871          test -z "$ac_c_werror_flag" ||
23872          test ! -s conftest.err
23873        } && test -s conftest.$ac_objext; then
23874   ac_hi=$ac_mid
23875 else
23876   echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23878
23879         ac_lo=`expr '(' $ac_mid ')' + 1`
23880 fi
23881
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 done
23884 case $ac_lo in
23885 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23886 '') if test "$ac_cv_type_size_t" = yes; then
23887      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23888 See \`config.log' for more details." >&5
23889 echo "$as_me: error: cannot compute sizeof (size_t)
23890 See \`config.log' for more details." >&2;}
23891    { (exit 77); exit 77; }; }
23892    else
23893      ac_cv_sizeof_size_t=0
23894    fi ;;
23895 esac
23896 else
23897   cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h.  */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h.  */
23903 $ac_includes_default
23904    typedef size_t ac__type_sizeof_;
23905 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23906 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23907 #include <stdio.h>
23908 #include <stdlib.h>
23909 int
23910 main ()
23911 {
23912
23913   FILE *f = fopen ("conftest.val", "w");
23914   if (! f)
23915     return 1;
23916   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23917     {
23918       long int i = longval ();
23919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23920         return 1;
23921       fprintf (f, "%ld\n", i);
23922     }
23923   else
23924     {
23925       unsigned long int i = ulongval ();
23926       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23927         return 1;
23928       fprintf (f, "%lu\n", i);
23929     }
23930   return ferror (f) || fclose (f) != 0;
23931
23932   ;
23933   return 0;
23934 }
23935 _ACEOF
23936 rm -f conftest$ac_exeext
23937 if { (ac_try="$ac_link"
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_link") 2>&5
23944   ac_status=$?
23945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23947   { (case "(($ac_try" in
23948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949   *) ac_try_echo=$ac_try;;
23950 esac
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952   (eval "$ac_try") 2>&5
23953   ac_status=$?
23954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); }; }; then
23956   ac_cv_sizeof_size_t=`cat conftest.val`
23957 else
23958   echo "$as_me: program exited with status $ac_status" >&5
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23961
23962 ( exit $ac_status )
23963 if test "$ac_cv_type_size_t" = yes; then
23964      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23965 See \`config.log' for more details." >&5
23966 echo "$as_me: error: cannot compute sizeof (size_t)
23967 See \`config.log' for more details." >&2;}
23968    { (exit 77); exit 77; }; }
23969    else
23970      ac_cv_sizeof_size_t=0
23971    fi
23972 fi
23973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23974 fi
23975 rm -f conftest.val
23976 fi
23977 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23978 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23979
23980
23981
23982 cat >>confdefs.h <<_ACEOF
23983 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23984 _ACEOF
23985
23986
23987
23988 case "${host}" in
23989     arm-*-linux* )
23990         { echo "$as_me:$LINENO: checking for long long" >&5
23991 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23992 if test "${ac_cv_type_long_long+set}" = set; then
23993   echo $ECHO_N "(cached) $ECHO_C" >&6
23994 else
23995   cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001 $ac_includes_default
24002 typedef long long ac__type_new_;
24003 int
24004 main ()
24005 {
24006 if ((ac__type_new_ *) 0)
24007   return 0;
24008 if (sizeof (ac__type_new_))
24009   return 0;
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext
24015 if { (ac_try="$ac_compile"
24016 case "(($ac_try" in
24017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018   *) ac_try_echo=$ac_try;;
24019 esac
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021   (eval "$ac_compile") 2>conftest.er1
24022   ac_status=$?
24023   grep -v '^ *+' conftest.er1 >conftest.err
24024   rm -f conftest.er1
24025   cat conftest.err >&5
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); } && {
24028          test -z "$ac_c_werror_flag" ||
24029          test ! -s conftest.err
24030        } && test -s conftest.$ac_objext; then
24031   ac_cv_type_long_long=yes
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036         ac_cv_type_long_long=no
24037 fi
24038
24039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 fi
24041 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24042 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24043
24044 # The cast to long int works around a bug in the HP C Compiler
24045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24047 # This bug is HP SR number 8606223364.
24048 { echo "$as_me:$LINENO: checking size of long long" >&5
24049 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24050 if test "${ac_cv_sizeof_long_long+set}" = set; then
24051   echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053   if test "$cross_compiling" = yes; then
24054   # Depending upon the size, compute the lo and hi bounds.
24055 cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061 $ac_includes_default
24062    typedef long long ac__type_sizeof_;
24063 int
24064 main ()
24065 {
24066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24067 test_array [0] = 0
24068
24069   ;
24070   return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest.$ac_objext
24074 if { (ac_try="$ac_compile"
24075 case "(($ac_try" in
24076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077   *) ac_try_echo=$ac_try;;
24078 esac
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080   (eval "$ac_compile") 2>conftest.er1
24081   ac_status=$?
24082   grep -v '^ *+' conftest.er1 >conftest.err
24083   rm -f conftest.er1
24084   cat conftest.err >&5
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); } && {
24087          test -z "$ac_c_werror_flag" ||
24088          test ! -s conftest.err
24089        } && test -s conftest.$ac_objext; then
24090   ac_lo=0 ac_mid=0
24091   while :; do
24092     cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098 $ac_includes_default
24099    typedef long long ac__type_sizeof_;
24100 int
24101 main ()
24102 {
24103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24104 test_array [0] = 0
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114   *) ac_try_echo=$ac_try;;
24115 esac
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117   (eval "$ac_compile") 2>conftest.er1
24118   ac_status=$?
24119   grep -v '^ *+' conftest.er1 >conftest.err
24120   rm -f conftest.er1
24121   cat conftest.err >&5
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); } && {
24124          test -z "$ac_c_werror_flag" ||
24125          test ! -s conftest.err
24126        } && test -s conftest.$ac_objext; then
24127   ac_hi=$ac_mid; break
24128 else
24129   echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24131
24132         ac_lo=`expr $ac_mid + 1`
24133                         if test $ac_lo -le $ac_mid; then
24134                           ac_lo= ac_hi=
24135                           break
24136                         fi
24137                         ac_mid=`expr 2 '*' $ac_mid + 1`
24138 fi
24139
24140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141   done
24142 else
24143   echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24145
24146         cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152 $ac_includes_default
24153    typedef long long ac__type_sizeof_;
24154 int
24155 main ()
24156 {
24157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24158 test_array [0] = 0
24159
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168   *) ac_try_echo=$ac_try;;
24169 esac
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171   (eval "$ac_compile") 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } && {
24178          test -z "$ac_c_werror_flag" ||
24179          test ! -s conftest.err
24180        } && test -s conftest.$ac_objext; then
24181   ac_hi=-1 ac_mid=-1
24182   while :; do
24183     cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h.  */
24185 _ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h.  */
24189 $ac_includes_default
24190    typedef long long ac__type_sizeof_;
24191 int
24192 main ()
24193 {
24194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24195 test_array [0] = 0
24196
24197   ;
24198   return 0;
24199 }
24200 _ACEOF
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205   *) ac_try_echo=$ac_try;;
24206 esac
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208   (eval "$ac_compile") 2>conftest.er1
24209   ac_status=$?
24210   grep -v '^ *+' conftest.er1 >conftest.err
24211   rm -f conftest.er1
24212   cat conftest.err >&5
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); } && {
24215          test -z "$ac_c_werror_flag" ||
24216          test ! -s conftest.err
24217        } && test -s conftest.$ac_objext; then
24218   ac_lo=$ac_mid; break
24219 else
24220   echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24222
24223         ac_hi=`expr '(' $ac_mid ')' - 1`
24224                         if test $ac_mid -le $ac_hi; then
24225                           ac_lo= ac_hi=
24226                           break
24227                         fi
24228                         ac_mid=`expr 2 '*' $ac_mid`
24229 fi
24230
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24232   done
24233 else
24234   echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237         ac_lo= ac_hi=
24238 fi
24239
24240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24241 fi
24242
24243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24244 # Binary search between lo and hi bounds.
24245 while test "x$ac_lo" != "x$ac_hi"; do
24246   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24247   cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253 $ac_includes_default
24254    typedef long long ac__type_sizeof_;
24255 int
24256 main ()
24257 {
24258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24259 test_array [0] = 0
24260
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269   *) ac_try_echo=$ac_try;;
24270 esac
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272   (eval "$ac_compile") 2>conftest.er1
24273   ac_status=$?
24274   grep -v '^ *+' conftest.er1 >conftest.err
24275   rm -f conftest.er1
24276   cat conftest.err >&5
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); } && {
24279          test -z "$ac_c_werror_flag" ||
24280          test ! -s conftest.err
24281        } && test -s conftest.$ac_objext; then
24282   ac_hi=$ac_mid
24283 else
24284   echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287         ac_lo=`expr '(' $ac_mid ')' + 1`
24288 fi
24289
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 done
24292 case $ac_lo in
24293 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24294 '') if test "$ac_cv_type_long_long" = yes; then
24295      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24296 See \`config.log' for more details." >&5
24297 echo "$as_me: error: cannot compute sizeof (long long)
24298 See \`config.log' for more details." >&2;}
24299    { (exit 77); exit 77; }; }
24300    else
24301      ac_cv_sizeof_long_long=0
24302    fi ;;
24303 esac
24304 else
24305   cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 $ac_includes_default
24312    typedef long long ac__type_sizeof_;
24313 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24314 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24315 #include <stdio.h>
24316 #include <stdlib.h>
24317 int
24318 main ()
24319 {
24320
24321   FILE *f = fopen ("conftest.val", "w");
24322   if (! f)
24323     return 1;
24324   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24325     {
24326       long int i = longval ();
24327       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24328         return 1;
24329       fprintf (f, "%ld\n", i);
24330     }
24331   else
24332     {
24333       unsigned long int i = ulongval ();
24334       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24335         return 1;
24336       fprintf (f, "%lu\n", i);
24337     }
24338   return ferror (f) || fclose (f) != 0;
24339
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest$ac_exeext
24345 if { (ac_try="$ac_link"
24346 case "(($ac_try" in
24347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348   *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351   (eval "$ac_link") 2>&5
24352   ac_status=$?
24353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24355   { (case "(($ac_try" in
24356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357   *) ac_try_echo=$ac_try;;
24358 esac
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360   (eval "$ac_try") 2>&5
24361   ac_status=$?
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); }; }; then
24364   ac_cv_sizeof_long_long=`cat conftest.val`
24365 else
24366   echo "$as_me: program exited with status $ac_status" >&5
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24369
24370 ( exit $ac_status )
24371 if test "$ac_cv_type_long_long" = yes; then
24372      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24373 See \`config.log' for more details." >&5
24374 echo "$as_me: error: cannot compute sizeof (long long)
24375 See \`config.log' for more details." >&2;}
24376    { (exit 77); exit 77; }; }
24377    else
24378      ac_cv_sizeof_long_long=0
24379    fi
24380 fi
24381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24382 fi
24383 rm -f conftest.val
24384 fi
24385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24386 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24387
24388
24389
24390 cat >>confdefs.h <<_ACEOF
24391 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24392 _ACEOF
24393
24394
24395     ;;
24396     *-hp-hpux* )
24397         { echo "$as_me:$LINENO: checking for long long" >&5
24398 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24399 if test "${ac_cv_type_long_long+set}" = set; then
24400   echo $ECHO_N "(cached) $ECHO_C" >&6
24401 else
24402   cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h.  */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h.  */
24408 $ac_includes_default
24409 typedef long long ac__type_new_;
24410 int
24411 main ()
24412 {
24413 if ((ac__type_new_ *) 0)
24414   return 0;
24415 if (sizeof (ac__type_new_))
24416   return 0;
24417   ;
24418   return 0;
24419 }
24420 _ACEOF
24421 rm -f conftest.$ac_objext
24422 if { (ac_try="$ac_compile"
24423 case "(($ac_try" in
24424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425   *) ac_try_echo=$ac_try;;
24426 esac
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428   (eval "$ac_compile") 2>conftest.er1
24429   ac_status=$?
24430   grep -v '^ *+' conftest.er1 >conftest.err
24431   rm -f conftest.er1
24432   cat conftest.err >&5
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); } && {
24435          test -z "$ac_c_werror_flag" ||
24436          test ! -s conftest.err
24437        } && test -s conftest.$ac_objext; then
24438   ac_cv_type_long_long=yes
24439 else
24440   echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443         ac_cv_type_long_long=no
24444 fi
24445
24446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447 fi
24448 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24449 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24450
24451 # The cast to long int works around a bug in the HP C Compiler
24452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24454 # This bug is HP SR number 8606223364.
24455 { echo "$as_me:$LINENO: checking size of long long" >&5
24456 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24457 if test "${ac_cv_sizeof_long_long+set}" = set; then
24458   echo $ECHO_N "(cached) $ECHO_C" >&6
24459 else
24460   if test "$cross_compiling" = yes; then
24461   # Depending upon the size, compute the lo and hi bounds.
24462 cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h.  */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h.  */
24468 $ac_includes_default
24469    typedef long long ac__type_sizeof_;
24470 int
24471 main ()
24472 {
24473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24474 test_array [0] = 0
24475
24476   ;
24477   return 0;
24478 }
24479 _ACEOF
24480 rm -f conftest.$ac_objext
24481 if { (ac_try="$ac_compile"
24482 case "(($ac_try" in
24483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484   *) ac_try_echo=$ac_try;;
24485 esac
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487   (eval "$ac_compile") 2>conftest.er1
24488   ac_status=$?
24489   grep -v '^ *+' conftest.er1 >conftest.err
24490   rm -f conftest.er1
24491   cat conftest.err >&5
24492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493   (exit $ac_status); } && {
24494          test -z "$ac_c_werror_flag" ||
24495          test ! -s conftest.err
24496        } && test -s conftest.$ac_objext; then
24497   ac_lo=0 ac_mid=0
24498   while :; do
24499     cat >conftest.$ac_ext <<_ACEOF
24500 /* confdefs.h.  */
24501 _ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h.  */
24505 $ac_includes_default
24506    typedef long long ac__type_sizeof_;
24507 int
24508 main ()
24509 {
24510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24511 test_array [0] = 0
24512
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 rm -f conftest.$ac_objext
24518 if { (ac_try="$ac_compile"
24519 case "(($ac_try" in
24520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521   *) ac_try_echo=$ac_try;;
24522 esac
24523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24524   (eval "$ac_compile") 2>conftest.er1
24525   ac_status=$?
24526   grep -v '^ *+' conftest.er1 >conftest.err
24527   rm -f conftest.er1
24528   cat conftest.err >&5
24529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530   (exit $ac_status); } && {
24531          test -z "$ac_c_werror_flag" ||
24532          test ! -s conftest.err
24533        } && test -s conftest.$ac_objext; then
24534   ac_hi=$ac_mid; break
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539         ac_lo=`expr $ac_mid + 1`
24540                         if test $ac_lo -le $ac_mid; then
24541                           ac_lo= ac_hi=
24542                           break
24543                         fi
24544                         ac_mid=`expr 2 '*' $ac_mid + 1`
24545 fi
24546
24547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24548   done
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553         cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h.  */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h.  */
24559 $ac_includes_default
24560    typedef long long ac__type_sizeof_;
24561 int
24562 main ()
24563 {
24564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24565 test_array [0] = 0
24566
24567   ;
24568   return 0;
24569 }
24570 _ACEOF
24571 rm -f conftest.$ac_objext
24572 if { (ac_try="$ac_compile"
24573 case "(($ac_try" in
24574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575   *) ac_try_echo=$ac_try;;
24576 esac
24577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24578   (eval "$ac_compile") 2>conftest.er1
24579   ac_status=$?
24580   grep -v '^ *+' conftest.er1 >conftest.err
24581   rm -f conftest.er1
24582   cat conftest.err >&5
24583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584   (exit $ac_status); } && {
24585          test -z "$ac_c_werror_flag" ||
24586          test ! -s conftest.err
24587        } && test -s conftest.$ac_objext; then
24588   ac_hi=-1 ac_mid=-1
24589   while :; do
24590     cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h.  */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h.  */
24596 $ac_includes_default
24597    typedef long long ac__type_sizeof_;
24598 int
24599 main ()
24600 {
24601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24602 test_array [0] = 0
24603
24604   ;
24605   return 0;
24606 }
24607 _ACEOF
24608 rm -f conftest.$ac_objext
24609 if { (ac_try="$ac_compile"
24610 case "(($ac_try" in
24611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612   *) ac_try_echo=$ac_try;;
24613 esac
24614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24615   (eval "$ac_compile") 2>conftest.er1
24616   ac_status=$?
24617   grep -v '^ *+' conftest.er1 >conftest.err
24618   rm -f conftest.er1
24619   cat conftest.err >&5
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); } && {
24622          test -z "$ac_c_werror_flag" ||
24623          test ! -s conftest.err
24624        } && test -s conftest.$ac_objext; then
24625   ac_lo=$ac_mid; break
24626 else
24627   echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24629
24630         ac_hi=`expr '(' $ac_mid ')' - 1`
24631                         if test $ac_mid -le $ac_hi; then
24632                           ac_lo= ac_hi=
24633                           break
24634                         fi
24635                         ac_mid=`expr 2 '*' $ac_mid`
24636 fi
24637
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639   done
24640 else
24641   echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24643
24644         ac_lo= ac_hi=
24645 fi
24646
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648 fi
24649
24650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24651 # Binary search between lo and hi bounds.
24652 while test "x$ac_lo" != "x$ac_hi"; do
24653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24654   cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660 $ac_includes_default
24661    typedef long long ac__type_sizeof_;
24662 int
24663 main ()
24664 {
24665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24666 test_array [0] = 0
24667
24668   ;
24669   return 0;
24670 }
24671 _ACEOF
24672 rm -f conftest.$ac_objext
24673 if { (ac_try="$ac_compile"
24674 case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679   (eval "$ac_compile") 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } && {
24686          test -z "$ac_c_werror_flag" ||
24687          test ! -s conftest.err
24688        } && test -s conftest.$ac_objext; then
24689   ac_hi=$ac_mid
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694         ac_lo=`expr '(' $ac_mid ')' + 1`
24695 fi
24696
24697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698 done
24699 case $ac_lo in
24700 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24701 '') if test "$ac_cv_type_long_long" = yes; then
24702      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24703 See \`config.log' for more details." >&5
24704 echo "$as_me: error: cannot compute sizeof (long long)
24705 See \`config.log' for more details." >&2;}
24706    { (exit 77); exit 77; }; }
24707    else
24708      ac_cv_sizeof_long_long=0
24709    fi ;;
24710 esac
24711 else
24712   cat >conftest.$ac_ext <<_ACEOF
24713 /* confdefs.h.  */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h.  */
24718 $ac_includes_default
24719    typedef long long ac__type_sizeof_;
24720 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24721 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24722 #include <stdio.h>
24723 #include <stdlib.h>
24724 int
24725 main ()
24726 {
24727
24728   FILE *f = fopen ("conftest.val", "w");
24729   if (! f)
24730     return 1;
24731   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24732     {
24733       long int i = longval ();
24734       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24735         return 1;
24736       fprintf (f, "%ld\n", i);
24737     }
24738   else
24739     {
24740       unsigned long int i = ulongval ();
24741       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24742         return 1;
24743       fprintf (f, "%lu\n", i);
24744     }
24745   return ferror (f) || fclose (f) != 0;
24746
24747   ;
24748   return 0;
24749 }
24750 _ACEOF
24751 rm -f conftest$ac_exeext
24752 if { (ac_try="$ac_link"
24753 case "(($ac_try" in
24754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24755   *) ac_try_echo=$ac_try;;
24756 esac
24757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24758   (eval "$ac_link") 2>&5
24759   ac_status=$?
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24762   { (case "(($ac_try" in
24763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764   *) ac_try_echo=$ac_try;;
24765 esac
24766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24767   (eval "$ac_try") 2>&5
24768   ac_status=$?
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); }; }; then
24771   ac_cv_sizeof_long_long=`cat conftest.val`
24772 else
24773   echo "$as_me: program exited with status $ac_status" >&5
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777 ( exit $ac_status )
24778 if test "$ac_cv_type_long_long" = yes; then
24779      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24780 See \`config.log' for more details." >&5
24781 echo "$as_me: error: cannot compute sizeof (long long)
24782 See \`config.log' for more details." >&2;}
24783    { (exit 77); exit 77; }; }
24784    else
24785      ac_cv_sizeof_long_long=0
24786    fi
24787 fi
24788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24789 fi
24790 rm -f conftest.val
24791 fi
24792 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24793 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24794
24795
24796
24797 cat >>confdefs.h <<_ACEOF
24798 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24799 _ACEOF
24800
24801
24802         if test "$ac_cv_sizeof_long_long" != "0"; then
24803                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24804         fi
24805     ;;
24806     * )
24807         { echo "$as_me:$LINENO: checking for long long" >&5
24808 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24809 if test "${ac_cv_type_long_long+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818 $ac_includes_default
24819 typedef long long ac__type_new_;
24820 int
24821 main ()
24822 {
24823 if ((ac__type_new_ *) 0)
24824   return 0;
24825 if (sizeof (ac__type_new_))
24826   return 0;
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835   *) ac_try_echo=$ac_try;;
24836 esac
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838   (eval "$ac_compile") 2>conftest.er1
24839   ac_status=$?
24840   grep -v '^ *+' conftest.er1 >conftest.err
24841   rm -f conftest.er1
24842   cat conftest.err >&5
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } && {
24845          test -z "$ac_c_werror_flag" ||
24846          test ! -s conftest.err
24847        } && test -s conftest.$ac_objext; then
24848   ac_cv_type_long_long=yes
24849 else
24850   echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853         ac_cv_type_long_long=no
24854 fi
24855
24856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24857 fi
24858 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24859 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24860
24861 # The cast to long int works around a bug in the HP C Compiler
24862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24864 # This bug is HP SR number 8606223364.
24865 { echo "$as_me:$LINENO: checking size of long long" >&5
24866 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24867 if test "${ac_cv_sizeof_long_long+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   if test "$cross_compiling" = yes; then
24871   # Depending upon the size, compute the lo and hi bounds.
24872 cat >conftest.$ac_ext <<_ACEOF
24873 /* confdefs.h.  */
24874 _ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h.  */
24878 $ac_includes_default
24879    typedef long long ac__type_sizeof_;
24880 int
24881 main ()
24882 {
24883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24884 test_array [0] = 0
24885
24886   ;
24887   return 0;
24888 }
24889 _ACEOF
24890 rm -f conftest.$ac_objext
24891 if { (ac_try="$ac_compile"
24892 case "(($ac_try" in
24893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894   *) ac_try_echo=$ac_try;;
24895 esac
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897   (eval "$ac_compile") 2>conftest.er1
24898   ac_status=$?
24899   grep -v '^ *+' conftest.er1 >conftest.err
24900   rm -f conftest.er1
24901   cat conftest.err >&5
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); } && {
24904          test -z "$ac_c_werror_flag" ||
24905          test ! -s conftest.err
24906        } && test -s conftest.$ac_objext; then
24907   ac_lo=0 ac_mid=0
24908   while :; do
24909     cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h.  */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h.  */
24915 $ac_includes_default
24916    typedef long long ac__type_sizeof_;
24917 int
24918 main ()
24919 {
24920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24921 test_array [0] = 0
24922
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934   (eval "$ac_compile") 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } && {
24941          test -z "$ac_c_werror_flag" ||
24942          test ! -s conftest.err
24943        } && test -s conftest.$ac_objext; then
24944   ac_hi=$ac_mid; break
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949         ac_lo=`expr $ac_mid + 1`
24950                         if test $ac_lo -le $ac_mid; then
24951                           ac_lo= ac_hi=
24952                           break
24953                         fi
24954                         ac_mid=`expr 2 '*' $ac_mid + 1`
24955 fi
24956
24957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24958   done
24959 else
24960   echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24962
24963         cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h.  */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h.  */
24969 $ac_includes_default
24970    typedef long long ac__type_sizeof_;
24971 int
24972 main ()
24973 {
24974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24975 test_array [0] = 0
24976
24977   ;
24978   return 0;
24979 }
24980 _ACEOF
24981 rm -f conftest.$ac_objext
24982 if { (ac_try="$ac_compile"
24983 case "(($ac_try" in
24984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985   *) ac_try_echo=$ac_try;;
24986 esac
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988   (eval "$ac_compile") 2>conftest.er1
24989   ac_status=$?
24990   grep -v '^ *+' conftest.er1 >conftest.err
24991   rm -f conftest.er1
24992   cat conftest.err >&5
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); } && {
24995          test -z "$ac_c_werror_flag" ||
24996          test ! -s conftest.err
24997        } && test -s conftest.$ac_objext; then
24998   ac_hi=-1 ac_mid=-1
24999   while :; do
25000     cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h.  */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h.  */
25006 $ac_includes_default
25007    typedef long long ac__type_sizeof_;
25008 int
25009 main ()
25010 {
25011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25012 test_array [0] = 0
25013
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_compile") 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } && {
25032          test -z "$ac_c_werror_flag" ||
25033          test ! -s conftest.err
25034        } && test -s conftest.$ac_objext; then
25035   ac_lo=$ac_mid; break
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         ac_hi=`expr '(' $ac_mid ')' - 1`
25041                         if test $ac_mid -le $ac_hi; then
25042                           ac_lo= ac_hi=
25043                           break
25044                         fi
25045                         ac_mid=`expr 2 '*' $ac_mid`
25046 fi
25047
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049   done
25050 else
25051   echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25053
25054         ac_lo= ac_hi=
25055 fi
25056
25057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 # Binary search between lo and hi bounds.
25062 while test "x$ac_lo" != "x$ac_hi"; do
25063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25064   cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h.  */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h.  */
25070 $ac_includes_default
25071    typedef long long ac__type_sizeof_;
25072 int
25073 main ()
25074 {
25075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25076 test_array [0] = 0
25077
25078   ;
25079   return 0;
25080 }
25081 _ACEOF
25082 rm -f conftest.$ac_objext
25083 if { (ac_try="$ac_compile"
25084 case "(($ac_try" in
25085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086   *) ac_try_echo=$ac_try;;
25087 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089   (eval "$ac_compile") 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } && {
25096          test -z "$ac_c_werror_flag" ||
25097          test ! -s conftest.err
25098        } && test -s conftest.$ac_objext; then
25099   ac_hi=$ac_mid
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104         ac_lo=`expr '(' $ac_mid ')' + 1`
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108 done
25109 case $ac_lo in
25110 ?*) ac_cv_sizeof_long_long=$ac_lo;;
25111 '') if test "$ac_cv_type_long_long" = yes; then
25112      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25113 See \`config.log' for more details." >&5
25114 echo "$as_me: error: cannot compute sizeof (long long)
25115 See \`config.log' for more details." >&2;}
25116    { (exit 77); exit 77; }; }
25117    else
25118      ac_cv_sizeof_long_long=0
25119    fi ;;
25120 esac
25121 else
25122   cat >conftest.$ac_ext <<_ACEOF
25123 /* confdefs.h.  */
25124 _ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h.  */
25128 $ac_includes_default
25129    typedef long long ac__type_sizeof_;
25130 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25131 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25132 #include <stdio.h>
25133 #include <stdlib.h>
25134 int
25135 main ()
25136 {
25137
25138   FILE *f = fopen ("conftest.val", "w");
25139   if (! f)
25140     return 1;
25141   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25142     {
25143       long int i = longval ();
25144       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25145         return 1;
25146       fprintf (f, "%ld\n", i);
25147     }
25148   else
25149     {
25150       unsigned long int i = ulongval ();
25151       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25152         return 1;
25153       fprintf (f, "%lu\n", i);
25154     }
25155   return ferror (f) || fclose (f) != 0;
25156
25157   ;
25158   return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest$ac_exeext
25162 if { (ac_try="$ac_link"
25163 case "(($ac_try" in
25164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165   *) ac_try_echo=$ac_try;;
25166 esac
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168   (eval "$ac_link") 2>&5
25169   ac_status=$?
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25172   { (case "(($ac_try" in
25173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174   *) ac_try_echo=$ac_try;;
25175 esac
25176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177   (eval "$ac_try") 2>&5
25178   ac_status=$?
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); }; }; then
25181   ac_cv_sizeof_long_long=`cat conftest.val`
25182 else
25183   echo "$as_me: program exited with status $ac_status" >&5
25184 echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25186
25187 ( exit $ac_status )
25188 if test "$ac_cv_type_long_long" = yes; then
25189      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25190 See \`config.log' for more details." >&5
25191 echo "$as_me: error: cannot compute sizeof (long long)
25192 See \`config.log' for more details." >&2;}
25193    { (exit 77); exit 77; }; }
25194    else
25195      ac_cv_sizeof_long_long=0
25196    fi
25197 fi
25198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25199 fi
25200 rm -f conftest.val
25201 fi
25202 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25203 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25204
25205
25206
25207 cat >>confdefs.h <<_ACEOF
25208 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25209 _ACEOF
25210
25211
25212 esac
25213
25214 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25215 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25216 if test "${ac_cv_type_wchar_t+set}" = set; then
25217   echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219   cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h.  */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h.  */
25225
25226         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25227         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25228         #  error "fake wchar_t"
25229         #endif
25230         #ifdef HAVE_WCHAR_H
25231         #  ifdef __CYGWIN__
25232         #    include <stddef.h>
25233         #  endif
25234         #  include <wchar.h>
25235         #endif
25236         #ifdef HAVE_STDLIB_H
25237         #  include <stdlib.h>
25238         #endif
25239         #include <stdio.h>
25240
25241
25242
25243 typedef wchar_t ac__type_new_;
25244 int
25245 main ()
25246 {
25247 if ((ac__type_new_ *) 0)
25248   return 0;
25249 if (sizeof (ac__type_new_))
25250   return 0;
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259   *) ac_try_echo=$ac_try;;
25260 esac
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262   (eval "$ac_compile") 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } && {
25269          test -z "$ac_c_werror_flag" ||
25270          test ! -s conftest.err
25271        } && test -s conftest.$ac_objext; then
25272   ac_cv_type_wchar_t=yes
25273 else
25274   echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25276
25277         ac_cv_type_wchar_t=no
25278 fi
25279
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 fi
25282 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25283 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
25284
25285 # The cast to long int works around a bug in the HP C Compiler
25286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25288 # This bug is HP SR number 8606223364.
25289 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
25290 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
25291 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 else
25294   if test "$cross_compiling" = yes; then
25295   # Depending upon the size, compute the lo and hi bounds.
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25304         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25305         #  error "fake wchar_t"
25306         #endif
25307         #ifdef HAVE_WCHAR_H
25308         #  ifdef __CYGWIN__
25309         #    include <stddef.h>
25310         #  endif
25311         #  include <wchar.h>
25312         #endif
25313         #ifdef HAVE_STDLIB_H
25314         #  include <stdlib.h>
25315         #endif
25316         #include <stdio.h>
25317
25318
25319
25320    typedef wchar_t ac__type_sizeof_;
25321 int
25322 main ()
25323 {
25324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25325 test_array [0] = 0
25326
25327   ;
25328   return 0;
25329 }
25330 _ACEOF
25331 rm -f conftest.$ac_objext
25332 if { (ac_try="$ac_compile"
25333 case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_compile") 2>conftest.er1
25339   ac_status=$?
25340   grep -v '^ *+' conftest.er1 >conftest.err
25341   rm -f conftest.er1
25342   cat conftest.err >&5
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); } && {
25345          test -z "$ac_c_werror_flag" ||
25346          test ! -s conftest.err
25347        } && test -s conftest.$ac_objext; then
25348   ac_lo=0 ac_mid=0
25349   while :; do
25350     cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356
25357         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25358         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25359         #  error "fake wchar_t"
25360         #endif
25361         #ifdef HAVE_WCHAR_H
25362         #  ifdef __CYGWIN__
25363         #    include <stddef.h>
25364         #  endif
25365         #  include <wchar.h>
25366         #endif
25367         #ifdef HAVE_STDLIB_H
25368         #  include <stdlib.h>
25369         #endif
25370         #include <stdio.h>
25371
25372
25373
25374    typedef wchar_t ac__type_sizeof_;
25375 int
25376 main ()
25377 {
25378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25379 test_array [0] = 0
25380
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 rm -f conftest.$ac_objext
25386 if { (ac_try="$ac_compile"
25387 case "(($ac_try" in
25388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389   *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392   (eval "$ac_compile") 2>conftest.er1
25393   ac_status=$?
25394   grep -v '^ *+' conftest.er1 >conftest.err
25395   rm -f conftest.er1
25396   cat conftest.err >&5
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } && {
25399          test -z "$ac_c_werror_flag" ||
25400          test ! -s conftest.err
25401        } && test -s conftest.$ac_objext; then
25402   ac_hi=$ac_mid; break
25403 else
25404   echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25406
25407         ac_lo=`expr $ac_mid + 1`
25408                         if test $ac_lo -le $ac_mid; then
25409                           ac_lo= ac_hi=
25410                           break
25411                         fi
25412                         ac_mid=`expr 2 '*' $ac_mid + 1`
25413 fi
25414
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416   done
25417 else
25418   echo "$as_me: failed program was:" >&5
25419 sed 's/^/| /' conftest.$ac_ext >&5
25420
25421         cat >conftest.$ac_ext <<_ACEOF
25422 /* confdefs.h.  */
25423 _ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h.  */
25427
25428         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25429         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25430         #  error "fake wchar_t"
25431         #endif
25432         #ifdef HAVE_WCHAR_H
25433         #  ifdef __CYGWIN__
25434         #    include <stddef.h>
25435         #  endif
25436         #  include <wchar.h>
25437         #endif
25438         #ifdef HAVE_STDLIB_H
25439         #  include <stdlib.h>
25440         #endif
25441         #include <stdio.h>
25442
25443
25444
25445    typedef wchar_t ac__type_sizeof_;
25446 int
25447 main ()
25448 {
25449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25450 test_array [0] = 0
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_c_werror_flag" ||
25471          test ! -s conftest.err
25472        } && test -s conftest.$ac_objext; then
25473   ac_hi=-1 ac_mid=-1
25474   while :; do
25475     cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481
25482         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25483         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25484         #  error "fake wchar_t"
25485         #endif
25486         #ifdef HAVE_WCHAR_H
25487         #  ifdef __CYGWIN__
25488         #    include <stddef.h>
25489         #  endif
25490         #  include <wchar.h>
25491         #endif
25492         #ifdef HAVE_STDLIB_H
25493         #  include <stdlib.h>
25494         #endif
25495         #include <stdio.h>
25496
25497
25498
25499    typedef wchar_t ac__type_sizeof_;
25500 int
25501 main ()
25502 {
25503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25504 test_array [0] = 0
25505
25506   ;
25507   return 0;
25508 }
25509 _ACEOF
25510 rm -f conftest.$ac_objext
25511 if { (ac_try="$ac_compile"
25512 case "(($ac_try" in
25513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514   *) ac_try_echo=$ac_try;;
25515 esac
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517   (eval "$ac_compile") 2>conftest.er1
25518   ac_status=$?
25519   grep -v '^ *+' conftest.er1 >conftest.err
25520   rm -f conftest.er1
25521   cat conftest.err >&5
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } && {
25524          test -z "$ac_c_werror_flag" ||
25525          test ! -s conftest.err
25526        } && test -s conftest.$ac_objext; then
25527   ac_lo=$ac_mid; break
25528 else
25529   echo "$as_me: failed program was:" >&5
25530 sed 's/^/| /' conftest.$ac_ext >&5
25531
25532         ac_hi=`expr '(' $ac_mid ')' - 1`
25533                         if test $ac_mid -le $ac_hi; then
25534                           ac_lo= ac_hi=
25535                           break
25536                         fi
25537                         ac_mid=`expr 2 '*' $ac_mid`
25538 fi
25539
25540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25541   done
25542 else
25543   echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546         ac_lo= ac_hi=
25547 fi
25548
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550 fi
25551
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553 # Binary search between lo and hi bounds.
25554 while test "x$ac_lo" != "x$ac_hi"; do
25555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25556   cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h.  */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h.  */
25562
25563         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25564         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25565         #  error "fake wchar_t"
25566         #endif
25567         #ifdef HAVE_WCHAR_H
25568         #  ifdef __CYGWIN__
25569         #    include <stddef.h>
25570         #  endif
25571         #  include <wchar.h>
25572         #endif
25573         #ifdef HAVE_STDLIB_H
25574         #  include <stdlib.h>
25575         #endif
25576         #include <stdio.h>
25577
25578
25579
25580    typedef wchar_t ac__type_sizeof_;
25581 int
25582 main ()
25583 {
25584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25585 test_array [0] = 0
25586
25587   ;
25588   return 0;
25589 }
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595   *) ac_try_echo=$ac_try;;
25596 esac
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598   (eval "$ac_compile") 2>conftest.er1
25599   ac_status=$?
25600   grep -v '^ *+' conftest.er1 >conftest.err
25601   rm -f conftest.er1
25602   cat conftest.err >&5
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); } && {
25605          test -z "$ac_c_werror_flag" ||
25606          test ! -s conftest.err
25607        } && test -s conftest.$ac_objext; then
25608   ac_hi=$ac_mid
25609 else
25610   echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25612
25613         ac_lo=`expr '(' $ac_mid ')' + 1`
25614 fi
25615
25616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617 done
25618 case $ac_lo in
25619 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25620 '') if test "$ac_cv_type_wchar_t" = yes; then
25621      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25622 See \`config.log' for more details." >&5
25623 echo "$as_me: error: cannot compute sizeof (wchar_t)
25624 See \`config.log' for more details." >&2;}
25625    { (exit 77); exit 77; }; }
25626    else
25627      ac_cv_sizeof_wchar_t=0
25628    fi ;;
25629 esac
25630 else
25631   cat >conftest.$ac_ext <<_ACEOF
25632 /* confdefs.h.  */
25633 _ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h.  */
25637
25638         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25639         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25640         #  error "fake wchar_t"
25641         #endif
25642         #ifdef HAVE_WCHAR_H
25643         #  ifdef __CYGWIN__
25644         #    include <stddef.h>
25645         #  endif
25646         #  include <wchar.h>
25647         #endif
25648         #ifdef HAVE_STDLIB_H
25649         #  include <stdlib.h>
25650         #endif
25651         #include <stdio.h>
25652
25653
25654
25655    typedef wchar_t ac__type_sizeof_;
25656 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25657 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25658 #include <stdio.h>
25659 #include <stdlib.h>
25660 int
25661 main ()
25662 {
25663
25664   FILE *f = fopen ("conftest.val", "w");
25665   if (! f)
25666     return 1;
25667   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25668     {
25669       long int i = longval ();
25670       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25671         return 1;
25672       fprintf (f, "%ld\n", i);
25673     }
25674   else
25675     {
25676       unsigned long int i = ulongval ();
25677       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25678         return 1;
25679       fprintf (f, "%lu\n", i);
25680     }
25681   return ferror (f) || fclose (f) != 0;
25682
25683   ;
25684   return 0;
25685 }
25686 _ACEOF
25687 rm -f conftest$ac_exeext
25688 if { (ac_try="$ac_link"
25689 case "(($ac_try" in
25690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691   *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694   (eval "$ac_link") 2>&5
25695   ac_status=$?
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25698   { (case "(($ac_try" in
25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700   *) ac_try_echo=$ac_try;;
25701 esac
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703   (eval "$ac_try") 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; }; then
25707   ac_cv_sizeof_wchar_t=`cat conftest.val`
25708 else
25709   echo "$as_me: program exited with status $ac_status" >&5
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25712
25713 ( exit $ac_status )
25714 if test "$ac_cv_type_wchar_t" = yes; then
25715      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25716 See \`config.log' for more details." >&5
25717 echo "$as_me: error: cannot compute sizeof (wchar_t)
25718 See \`config.log' for more details." >&2;}
25719    { (exit 77); exit 77; }; }
25720    else
25721      ac_cv_sizeof_wchar_t=0
25722    fi
25723 fi
25724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25725 fi
25726 rm -f conftest.val
25727 fi
25728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25729 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25730
25731
25732
25733 cat >>confdefs.h <<_ACEOF
25734 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25735 _ACEOF
25736
25737
25738 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25739     wxUSE_WCHAR_T=yes
25740 else
25741     wxUSE_WCHAR_T=no
25742 fi
25743
25744 { echo "$as_me:$LINENO: checking for va_copy" >&5
25745 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25746 if test "${wx_cv_func_va_copy+set}" = set; then
25747   echo $ECHO_N "(cached) $ECHO_C" >&6
25748 else
25749
25750         ac_ext=cpp
25751 ac_cpp='$CXXCPP $CPPFLAGS'
25752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25755
25756         cat >conftest.$ac_ext <<_ACEOF
25757
25758             #include <stdarg.h>
25759             void foo(char *f, ...)
25760             {
25761                 va_list ap1, ap2;
25762                 va_start(ap1, f);
25763                 va_copy(ap2, ap1);
25764                 va_end(ap2);
25765                 va_end(ap1);
25766             }
25767             int main()
25768             {
25769                 foo("hi", 17);
25770                 return 0;
25771             }
25772 _ACEOF
25773 rm -f conftest.$ac_objext conftest$ac_exeext
25774 if { (ac_try="$ac_link"
25775 case "(($ac_try" in
25776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777   *) ac_try_echo=$ac_try;;
25778 esac
25779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25780   (eval "$ac_link") 2>conftest.er1
25781   ac_status=$?
25782   grep -v '^ *+' conftest.er1 >conftest.err
25783   rm -f conftest.er1
25784   cat conftest.err >&5
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); } && {
25787          test -z "$ac_cxx_werror_flag" ||
25788          test ! -s conftest.err
25789        } && test -s conftest$ac_exeext &&
25790        $as_test_x conftest$ac_exeext; then
25791   wx_cv_func_va_copy=yes
25792 else
25793   echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25795
25796         wx_cv_func_va_copy=no
25797
25798 fi
25799
25800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25801       conftest$ac_exeext conftest.$ac_ext
25802         ac_ext=c
25803 ac_cpp='$CPP $CPPFLAGS'
25804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25807
25808
25809
25810 fi
25811 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25812 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25813
25814 if test $wx_cv_func_va_copy = "yes"; then
25815     cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_VA_COPY 1
25817 _ACEOF
25818
25819 else
25820         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25821 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25822 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25823   echo $ECHO_N "(cached) $ECHO_C" >&6
25824 else
25825
25826             if test "$cross_compiling" = yes; then
25827                   wx_cv_type_va_list_lvalue=yes
25828
25829 else
25830   cat >conftest.$ac_ext <<_ACEOF
25831
25832                 #include <stdarg.h>
25833                 int foo(char *f, ...)
25834                 {
25835                     va_list ap1, ap2;
25836                     va_start(ap1, f);
25837                     ap2 = ap1;
25838                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25839                         return 1;
25840                     va_end(ap2);
25841                     va_end(ap1);
25842                     return 0;
25843                 }
25844                 int main()
25845                 {
25846                     return foo("hi", 17);
25847                 }
25848 _ACEOF
25849 rm -f conftest$ac_exeext
25850 if { (ac_try="$ac_link"
25851 case "(($ac_try" in
25852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853   *) ac_try_echo=$ac_try;;
25854 esac
25855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25856   (eval "$ac_link") 2>&5
25857   ac_status=$?
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25860   { (case "(($ac_try" in
25861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25862   *) ac_try_echo=$ac_try;;
25863 esac
25864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25865   (eval "$ac_try") 2>&5
25866   ac_status=$?
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); }; }; then
25869   wx_cv_type_va_list_lvalue=yes
25870 else
25871   echo "$as_me: program exited with status $ac_status" >&5
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875 ( exit $ac_status )
25876 wx_cv_type_va_list_lvalue=no
25877 fi
25878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25879 fi
25880
25881
25882
25883
25884 fi
25885 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25886 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25887
25888     if test $wx_cv_type_va_list_lvalue != "yes"; then
25889                         cat >>confdefs.h <<\_ACEOF
25890 #define VA_LIST_IS_ARRAY 1
25891 _ACEOF
25892
25893     fi
25894 fi
25895
25896 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25897
25898 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25899 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25900 if test "${wx_cv_have_variadic_macros+set}" = set; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903
25904                         ac_ext=cpp
25905 ac_cpp='$CXXCPP $CPPFLAGS'
25906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25909
25910         cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916
25917                     #include <stdio.h>
25918                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25919
25920 int
25921 main ()
25922 {
25923
25924                     test("%s %d %p", "test", 1, 0);
25925
25926
25927   ;
25928   return 0;
25929 }
25930 _ACEOF
25931 rm -f conftest.$ac_objext
25932 if { (ac_try="$ac_compile"
25933 case "(($ac_try" in
25934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935   *) ac_try_echo=$ac_try;;
25936 esac
25937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25938   (eval "$ac_compile") 2>conftest.er1
25939   ac_status=$?
25940   grep -v '^ *+' conftest.er1 >conftest.err
25941   rm -f conftest.er1
25942   cat conftest.err >&5
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); } && {
25945          test -z "$ac_cxx_werror_flag" ||
25946          test ! -s conftest.err
25947        } && test -s conftest.$ac_objext; then
25948   wx_cv_have_variadic_macros=yes
25949 else
25950   echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.$ac_ext >&5
25952
25953         wx_cv_have_variadic_macros=no
25954
25955 fi
25956
25957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958         ac_ext=c
25959 ac_cpp='$CPP $CPPFLAGS'
25960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25963
25964
25965
25966 fi
25967 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25968 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25969
25970 if test $wx_cv_have_variadic_macros = "yes"; then
25971     cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_VARIADIC_MACROS 1
25973 _ACEOF
25974
25975 fi
25976
25977 fi
25978 # Check whether --enable-largefile was given.
25979 if test "${enable_largefile+set}" = set; then
25980   enableval=$enable_largefile;
25981 fi
25982
25983 if test "$enable_largefile" != no; then
25984             wx_largefile=no
25985
25986     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25987 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25988 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991
25992           cat >conftest.$ac_ext <<_ACEOF
25993 /* confdefs.h.  */
25994 _ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h.  */
25998 #define _FILE_OFFSET_BITS 64
25999                           #include <sys/types.h>
26000 int
26001 main ()
26002 {
26003 typedef struct {
26004     unsigned int field: sizeof(off_t) == 8;
26005 } wxlf;
26006
26007   ;
26008   return 0;
26009 }
26010 _ACEOF
26011 rm -f conftest.$ac_objext
26012 if { (ac_try="$ac_compile"
26013 case "(($ac_try" in
26014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015   *) ac_try_echo=$ac_try;;
26016 esac
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018   (eval "$ac_compile") 2>conftest.er1
26019   ac_status=$?
26020   grep -v '^ *+' conftest.er1 >conftest.err
26021   rm -f conftest.er1
26022   cat conftest.err >&5
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); } && {
26025          test -z "$ac_c_werror_flag" ||
26026          test ! -s conftest.err
26027        } && test -s conftest.$ac_objext; then
26028   ac_cv_sys_file_offset_bits=64
26029 else
26030   echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26032
26033         ac_cv_sys_file_offset_bits=no
26034 fi
26035
26036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26037
26038
26039 fi
26040 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26041 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
26042
26043     if test "$ac_cv_sys_file_offset_bits" != no; then
26044         wx_largefile=yes
26045         cat >>confdefs.h <<_ACEOF
26046 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26047 _ACEOF
26048
26049     fi
26050
26051     if test "x$wx_largefile" != "xyes"; then
26052
26053     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
26055 if test "${ac_cv_sys_large_files+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058
26059           cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h.  */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h.  */
26065 #define _LARGE_FILES 1
26066                           #include <sys/types.h>
26067 int
26068 main ()
26069 {
26070 typedef struct {
26071     unsigned int field: sizeof(off_t) == 8;
26072 } wxlf;
26073
26074   ;
26075   return 0;
26076 }
26077 _ACEOF
26078 rm -f conftest.$ac_objext
26079 if { (ac_try="$ac_compile"
26080 case "(($ac_try" in
26081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082   *) ac_try_echo=$ac_try;;
26083 esac
26084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26085   (eval "$ac_compile") 2>conftest.er1
26086   ac_status=$?
26087   grep -v '^ *+' conftest.er1 >conftest.err
26088   rm -f conftest.er1
26089   cat conftest.err >&5
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); } && {
26092          test -z "$ac_c_werror_flag" ||
26093          test ! -s conftest.err
26094        } && test -s conftest.$ac_objext; then
26095   ac_cv_sys_large_files=1
26096 else
26097   echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26099
26100         ac_cv_sys_large_files=no
26101 fi
26102
26103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104
26105
26106 fi
26107 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26108 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
26109
26110     if test "$ac_cv_sys_large_files" != no; then
26111         wx_largefile=yes
26112         cat >>confdefs.h <<_ACEOF
26113 #define _LARGE_FILES $ac_cv_sys_large_files
26114 _ACEOF
26115
26116     fi
26117
26118     fi
26119
26120     { echo "$as_me:$LINENO: checking if large file support is available" >&5
26121 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
26122     if test "x$wx_largefile" = "xyes"; then
26123         cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_LARGEFILE_SUPPORT 1
26125 _ACEOF
26126
26127     fi
26128     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
26129 echo "${ECHO_T}$wx_largefile" >&6; }
26130 fi
26131
26132
26133 if test "x$wx_largefile" = "xyes"; then
26134     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
26135         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
26136
26137                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
26138             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
26139 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
26140 if test "${wx_cv_STDC_EXT_required+set}" = set; then
26141   echo $ECHO_N "(cached) $ECHO_C" >&6
26142 else
26143
26144                     ac_ext=cpp
26145 ac_cpp='$CXXCPP $CPPFLAGS'
26146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26149
26150                     cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h.  */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h.  */
26156
26157 int
26158 main ()
26159 {
26160
26161                             #ifndef __STDC_EXT__
26162                                 choke me
26163                             #endif
26164
26165   ;
26166   return 0;
26167 }
26168 _ACEOF
26169 rm -f conftest.$ac_objext
26170 if { (ac_try="$ac_compile"
26171 case "(($ac_try" in
26172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26173   *) ac_try_echo=$ac_try;;
26174 esac
26175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26176   (eval "$ac_compile") 2>conftest.er1
26177   ac_status=$?
26178   grep -v '^ *+' conftest.er1 >conftest.err
26179   rm -f conftest.er1
26180   cat conftest.err >&5
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); } && {
26183          test -z "$ac_cxx_werror_flag" ||
26184          test ! -s conftest.err
26185        } && test -s conftest.$ac_objext; then
26186   wx_cv_STDC_EXT_required=no
26187 else
26188   echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191         wx_cv_STDC_EXT_required=yes
26192
26193 fi
26194
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196                     ac_ext=c
26197 ac_cpp='$CPP $CPPFLAGS'
26198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26201
26202
26203
26204 fi
26205 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26206 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
26207             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
26208                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
26209             fi
26210         fi
26211     else
26212         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
26213     fi
26214         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26215 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
26216 if test "${ac_cv_sys_largefile_source+set}" = set; then
26217   echo $ECHO_N "(cached) $ECHO_C" >&6
26218 else
26219   while :; do
26220   cat >conftest.$ac_ext <<_ACEOF
26221 /* confdefs.h.  */
26222 _ACEOF
26223 cat confdefs.h >>conftest.$ac_ext
26224 cat >>conftest.$ac_ext <<_ACEOF
26225 /* end confdefs.h.  */
26226 #include <sys/types.h> /* for off_t */
26227      #include <stdio.h>
26228 int
26229 main ()
26230 {
26231 int (*fp) (FILE *, off_t, int) = fseeko;
26232      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 rm -f conftest.$ac_objext conftest$ac_exeext
26238 if { (ac_try="$ac_link"
26239 case "(($ac_try" in
26240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241   *) ac_try_echo=$ac_try;;
26242 esac
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244   (eval "$ac_link") 2>conftest.er1
26245   ac_status=$?
26246   grep -v '^ *+' conftest.er1 >conftest.err
26247   rm -f conftest.er1
26248   cat conftest.err >&5
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); } && {
26251          test -z "$ac_c_werror_flag" ||
26252          test ! -s conftest.err
26253        } && test -s conftest$ac_exeext &&
26254        $as_test_x conftest$ac_exeext; then
26255   ac_cv_sys_largefile_source=no; break
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260
26261 fi
26262
26263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26264       conftest$ac_exeext conftest.$ac_ext
26265   cat >conftest.$ac_ext <<_ACEOF
26266 /* confdefs.h.  */
26267 _ACEOF
26268 cat confdefs.h >>conftest.$ac_ext
26269 cat >>conftest.$ac_ext <<_ACEOF
26270 /* end confdefs.h.  */
26271 #define _LARGEFILE_SOURCE 1
26272 #include <sys/types.h> /* for off_t */
26273      #include <stdio.h>
26274 int
26275 main ()
26276 {
26277 int (*fp) (FILE *, off_t, int) = fseeko;
26278      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26279   ;
26280   return 0;
26281 }
26282 _ACEOF
26283 rm -f conftest.$ac_objext conftest$ac_exeext
26284 if { (ac_try="$ac_link"
26285 case "(($ac_try" in
26286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287   *) ac_try_echo=$ac_try;;
26288 esac
26289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26290   (eval "$ac_link") 2>conftest.er1
26291   ac_status=$?
26292   grep -v '^ *+' conftest.er1 >conftest.err
26293   rm -f conftest.er1
26294   cat conftest.err >&5
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); } && {
26297          test -z "$ac_c_werror_flag" ||
26298          test ! -s conftest.err
26299        } && test -s conftest$ac_exeext &&
26300        $as_test_x conftest$ac_exeext; then
26301   ac_cv_sys_largefile_source=1; break
26302 else
26303   echo "$as_me: failed program was:" >&5
26304 sed 's/^/| /' conftest.$ac_ext >&5
26305
26306
26307 fi
26308
26309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26310       conftest$ac_exeext conftest.$ac_ext
26311   ac_cv_sys_largefile_source=unknown
26312   break
26313 done
26314 fi
26315 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26316 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26317 case $ac_cv_sys_largefile_source in #(
26318   no | unknown) ;;
26319   *)
26320 cat >>confdefs.h <<_ACEOF
26321 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26322 _ACEOF
26323 ;;
26324 esac
26325 rm -f conftest*
26326
26327 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26328 # in glibc 2.1.3, but that breaks too many other things.
26329 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26330 if test $ac_cv_sys_largefile_source != unknown; then
26331
26332 cat >>confdefs.h <<\_ACEOF
26333 #define HAVE_FSEEKO 1
26334 _ACEOF
26335
26336 fi
26337
26338     if test "$ac_cv_sys_largefile_source" != no; then
26339         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
26340     fi
26341 fi
26342
26343 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26344 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
26345 if test "${ac_cv_c_bigendian+set}" = set; then
26346   echo $ECHO_N "(cached) $ECHO_C" >&6
26347 else
26348   ac_cv_c_bigendian=unknown
26349 # See if sys/param.h defines the BYTE_ORDER macro.
26350 cat >conftest.$ac_ext <<_ACEOF
26351 /* confdefs.h.  */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h.  */
26356 #include <sys/types.h>
26357 #include <sys/param.h>
26358 int
26359 main ()
26360 {
26361
26362 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26363  bogus endian macros
26364 #endif
26365   ;
26366   return 0;
26367 }
26368 _ACEOF
26369 rm -f conftest.$ac_objext
26370 if { (ac_try="$ac_compile"
26371 case "(($ac_try" in
26372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373   *) ac_try_echo=$ac_try;;
26374 esac
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376   (eval "$ac_compile") 2>conftest.er1
26377   ac_status=$?
26378   grep -v '^ *+' conftest.er1 >conftest.err
26379   rm -f conftest.er1
26380   cat conftest.err >&5
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); } && {
26383          test -z "$ac_c_werror_flag" ||
26384          test ! -s conftest.err
26385        } && test -s conftest.$ac_objext; then
26386   # It does; now see whether it defined to BIG_ENDIAN or not.
26387 cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 #include <sys/types.h>
26394 #include <sys/param.h>
26395 int
26396 main ()
26397 {
26398
26399 #if BYTE_ORDER != BIG_ENDIAN
26400  not big endian
26401 #endif
26402   ;
26403   return 0;
26404 }
26405 _ACEOF
26406 rm -f conftest.$ac_objext
26407 if { (ac_try="$ac_compile"
26408 case "(($ac_try" in
26409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410   *) ac_try_echo=$ac_try;;
26411 esac
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413   (eval "$ac_compile") 2>conftest.er1
26414   ac_status=$?
26415   grep -v '^ *+' conftest.er1 >conftest.err
26416   rm -f conftest.er1
26417   cat conftest.err >&5
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); } && {
26420          test -z "$ac_c_werror_flag" ||
26421          test ! -s conftest.err
26422        } && test -s conftest.$ac_objext; then
26423   ac_cv_c_bigendian=yes
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428         ac_cv_c_bigendian=no
26429 fi
26430
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 else
26433   echo "$as_me: failed program was:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26435
26436
26437 fi
26438
26439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26440 if test $ac_cv_c_bigendian = unknown; then
26441 if test "$cross_compiling" = yes; then
26442   ac_cv_c_bigendian=unknown
26443 else
26444   cat >conftest.$ac_ext <<_ACEOF
26445 /* confdefs.h.  */
26446 _ACEOF
26447 cat confdefs.h >>conftest.$ac_ext
26448 cat >>conftest.$ac_ext <<_ACEOF
26449 /* end confdefs.h.  */
26450 main () {
26451   /* Are we little or big endian?  From Harbison&Steele.  */
26452   union
26453   {
26454     long l;
26455     char c[sizeof (long)];
26456   } u;
26457   u.l = 1;
26458   exit (u.c[sizeof (long) - 1] == 1);
26459 }
26460 _ACEOF
26461 rm -f conftest$ac_exeext
26462 if { (ac_try="$ac_link"
26463 case "(($ac_try" in
26464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465   *) ac_try_echo=$ac_try;;
26466 esac
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468   (eval "$ac_link") 2>&5
26469   ac_status=$?
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26472   { (case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477   (eval "$ac_try") 2>&5
26478   ac_status=$?
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); }; }; then
26481   ac_cv_c_bigendian=no
26482 else
26483   echo "$as_me: program exited with status $ac_status" >&5
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26486
26487 ( exit $ac_status )
26488 ac_cv_c_bigendian=yes
26489 fi
26490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26491 fi
26492
26493
26494 fi
26495 fi
26496 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26497 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26498 if test $ac_cv_c_bigendian = unknown; then
26499   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
26500 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
26501 fi
26502 if test $ac_cv_c_bigendian = yes; then
26503   cat >>confdefs.h <<\_ACEOF
26504 #define WORDS_BIGENDIAN 1
26505 _ACEOF
26506
26507 fi
26508
26509
26510
26511
26512     ac_ext=cpp
26513 ac_cpp='$CXXCPP $CPPFLAGS'
26514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26517
26518
26519
26520 for ac_header in iostream
26521 do
26522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26526   echo $ECHO_N "(cached) $ECHO_C" >&6
26527 else
26528   cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h.  */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h.  */
26534
26535
26536 #include <$ac_header>
26537 _ACEOF
26538 rm -f conftest.$ac_objext
26539 if { (ac_try="$ac_compile"
26540 case "(($ac_try" in
26541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542   *) ac_try_echo=$ac_try;;
26543 esac
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545   (eval "$ac_compile") 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } && {
26552          test -z "$ac_cxx_werror_flag" ||
26553          test ! -s conftest.err
26554        } && test -s conftest.$ac_objext; then
26555   eval "$as_ac_Header=yes"
26556 else
26557   echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560         eval "$as_ac_Header=no"
26561 fi
26562
26563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26564 fi
26565 ac_res=`eval echo '${'$as_ac_Header'}'`
26566                { echo "$as_me:$LINENO: result: $ac_res" >&5
26567 echo "${ECHO_T}$ac_res" >&6; }
26568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26569   cat >>confdefs.h <<_ACEOF
26570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26571 _ACEOF
26572
26573 fi
26574
26575 done
26576
26577
26578     if test "$ac_cv_header_iostream" = "yes" ; then
26579       :
26580     else
26581       cat >>confdefs.h <<\_ACEOF
26582 #define wxUSE_IOSTREAMH 1
26583 _ACEOF
26584
26585     fi
26586
26587     ac_ext=c
26588 ac_cpp='$CPP $CPPFLAGS'
26589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26592
26593
26594
26595
26596   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26597 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26598 if test "${wx_cv_cpp_bool+set}" = set; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 else
26601
26602
26603     ac_ext=cpp
26604 ac_cpp='$CXXCPP $CPPFLAGS'
26605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26608
26609
26610     cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h.  */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h.  */
26616
26617
26618 int
26619 main ()
26620 {
26621
26622         bool b = true;
26623
26624         return 0;
26625
26626   ;
26627   return 0;
26628 }
26629 _ACEOF
26630 rm -f conftest.$ac_objext
26631 if { (ac_try="$ac_compile"
26632 case "(($ac_try" in
26633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634   *) ac_try_echo=$ac_try;;
26635 esac
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637   (eval "$ac_compile") 2>conftest.er1
26638   ac_status=$?
26639   grep -v '^ *+' conftest.er1 >conftest.err
26640   rm -f conftest.er1
26641   cat conftest.err >&5
26642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643   (exit $ac_status); } && {
26644          test -z "$ac_cxx_werror_flag" ||
26645          test ! -s conftest.err
26646        } && test -s conftest.$ac_objext; then
26647
26648         wx_cv_cpp_bool=yes
26649
26650 else
26651   echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26653
26654
26655         wx_cv_cpp_bool=no
26656
26657
26658 fi
26659
26660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26661
26662     ac_ext=c
26663 ac_cpp='$CPP $CPPFLAGS'
26664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26667
26668
26669 fi
26670 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26671 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26672
26673   if test "$wx_cv_cpp_bool" = "yes"; then
26674     cat >>confdefs.h <<\_ACEOF
26675 #define HAVE_BOOL 1
26676 _ACEOF
26677
26678   fi
26679
26680
26681
26682   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26683 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26684 if test "${wx_cv_explicit+set}" = set; then
26685   echo $ECHO_N "(cached) $ECHO_C" >&6
26686 else
26687
26688
26689     ac_ext=cpp
26690 ac_cpp='$CXXCPP $CPPFLAGS'
26691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26694
26695
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
26703         class Foo { public: explicit Foo(int) {} };
26704
26705 int
26706 main ()
26707 {
26708
26709         return 0;
26710
26711   ;
26712   return 0;
26713 }
26714 _ACEOF
26715 rm -f conftest.$ac_objext
26716 if { (ac_try="$ac_compile"
26717 case "(($ac_try" in
26718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26719   *) ac_try_echo=$ac_try;;
26720 esac
26721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26722   (eval "$ac_compile") 2>conftest.er1
26723   ac_status=$?
26724   grep -v '^ *+' conftest.er1 >conftest.err
26725   rm -f conftest.er1
26726   cat conftest.err >&5
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); } && {
26729          test -z "$ac_cxx_werror_flag" ||
26730          test ! -s conftest.err
26731        } && test -s conftest.$ac_objext; then
26732
26733         cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h.  */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h.  */
26739
26740                 class Foo { public: explicit Foo(int) {} };
26741                 static void TakeFoo(const Foo& foo) { }
26742
26743 int
26744 main ()
26745 {
26746
26747                 TakeFoo(17);
26748                 return 0;
26749
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 rm -f conftest.$ac_objext
26755 if { (ac_try="$ac_compile"
26756 case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_compile") 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } && {
26768          test -z "$ac_cxx_werror_flag" ||
26769          test ! -s conftest.err
26770        } && test -s conftest.$ac_objext; then
26771   wx_cv_explicit=no
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776         wx_cv_explicit=yes
26777
26778 fi
26779
26780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781
26782 else
26783   echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786         wx_cv_explicit=no
26787
26788 fi
26789
26790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26791
26792     ac_ext=c
26793 ac_cpp='$CPP $CPPFLAGS'
26794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26797
26798
26799 fi
26800 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26801 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26802
26803   if test "$wx_cv_explicit" = "yes"; then
26804     cat >>confdefs.h <<\_ACEOF
26805 #define HAVE_EXPLICIT 1
26806 _ACEOF
26807
26808   fi
26809
26810
26811 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26812 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26813 if test "${ac_cv_cxx_const_cast+set}" = set; then
26814   echo $ECHO_N "(cached) $ECHO_C" >&6
26815 else
26816
26817  ac_ext=cpp
26818 ac_cpp='$CXXCPP $CPPFLAGS'
26819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26822
26823  cat >conftest.$ac_ext <<_ACEOF
26824 /* confdefs.h.  */
26825 _ACEOF
26826 cat confdefs.h >>conftest.$ac_ext
26827 cat >>conftest.$ac_ext <<_ACEOF
26828 /* end confdefs.h.  */
26829
26830 int
26831 main ()
26832 {
26833 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 rm -f conftest.$ac_objext
26839 if { (ac_try="$ac_compile"
26840 case "(($ac_try" in
26841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842   *) ac_try_echo=$ac_try;;
26843 esac
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845   (eval "$ac_compile") 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } && {
26852          test -z "$ac_cxx_werror_flag" ||
26853          test ! -s conftest.err
26854        } && test -s conftest.$ac_objext; then
26855   ac_cv_cxx_const_cast=yes
26856 else
26857   echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26859
26860         ac_cv_cxx_const_cast=no
26861 fi
26862
26863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26864  ac_ext=c
26865 ac_cpp='$CPP $CPPFLAGS'
26866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26869
26870
26871 fi
26872 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26873 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26874 if test "$ac_cv_cxx_const_cast" = yes; then
26875
26876 cat >>confdefs.h <<\_ACEOF
26877 #define HAVE_CONST_CAST
26878 _ACEOF
26879
26880 fi
26881
26882 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26883 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26884 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26885   echo $ECHO_N "(cached) $ECHO_C" >&6
26886 else
26887
26888  ac_ext=cpp
26889 ac_cpp='$CXXCPP $CPPFLAGS'
26890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26893
26894  cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h.  */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h.  */
26900 #include <typeinfo>
26901 class Base { public : Base () {} virtual void f () = 0;};
26902 class Derived : public Base { public : Derived () {} virtual void f () {} };
26903 class Unrelated { public : Unrelated () {} };
26904 int g (Unrelated&) { return 0; }
26905 int
26906 main ()
26907 {
26908
26909 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26910   ;
26911   return 0;
26912 }
26913 _ACEOF
26914 rm -f conftest.$ac_objext
26915 if { (ac_try="$ac_compile"
26916 case "(($ac_try" in
26917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918   *) ac_try_echo=$ac_try;;
26919 esac
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921   (eval "$ac_compile") 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } && {
26928          test -z "$ac_cxx_werror_flag" ||
26929          test ! -s conftest.err
26930        } && test -s conftest.$ac_objext; then
26931   ac_cv_cxx_reinterpret_cast=yes
26932 else
26933   echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26935
26936         ac_cv_cxx_reinterpret_cast=no
26937 fi
26938
26939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26940  ac_ext=c
26941 ac_cpp='$CPP $CPPFLAGS'
26942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26945
26946
26947 fi
26948 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26949 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26950 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26951
26952 cat >>confdefs.h <<\_ACEOF
26953 #define HAVE_REINTERPRET_CAST
26954 _ACEOF
26955
26956 fi
26957
26958 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26959 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26960 if test "${ac_cv_cxx_static_cast+set}" = set; then
26961   echo $ECHO_N "(cached) $ECHO_C" >&6
26962 else
26963
26964  ac_ext=cpp
26965 ac_cpp='$CXXCPP $CPPFLAGS'
26966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26969
26970  cat >conftest.$ac_ext <<_ACEOF
26971 /* confdefs.h.  */
26972 _ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h.  */
26976 #include <typeinfo>
26977 class Base { public : Base () {} virtual void f () = 0; };
26978 class Derived : public Base { public : Derived () {} virtual void f () {} };
26979 int g (Derived&) { return 0; }
26980 int
26981 main ()
26982 {
26983
26984 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26985   ;
26986   return 0;
26987 }
26988 _ACEOF
26989 rm -f conftest.$ac_objext
26990 if { (ac_try="$ac_compile"
26991 case "(($ac_try" in
26992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993   *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996   (eval "$ac_compile") 2>conftest.er1
26997   ac_status=$?
26998   grep -v '^ *+' conftest.er1 >conftest.err
26999   rm -f conftest.er1
27000   cat conftest.err >&5
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); } && {
27003          test -z "$ac_cxx_werror_flag" ||
27004          test ! -s conftest.err
27005        } && test -s conftest.$ac_objext; then
27006   ac_cv_cxx_static_cast=yes
27007 else
27008   echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27010
27011         ac_cv_cxx_static_cast=no
27012 fi
27013
27014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27015  ac_ext=c
27016 ac_cpp='$CPP $CPPFLAGS'
27017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27020
27021
27022 fi
27023 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
27024 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
27025 if test "$ac_cv_cxx_static_cast" = yes; then
27026
27027 cat >>confdefs.h <<\_ACEOF
27028 #define HAVE_STATIC_CAST
27029 _ACEOF
27030
27031 fi
27032
27033
27034 if test "x$SUNCXX" = xyes; then
27035     CXXFLAGS="-features=tmplife $CXXFLAGS"
27036 fi
27037
27038 if test "x$SUNCC" = xyes; then
27039     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
27040 fi
27041
27042 if test "x$SGICC" = "xyes"; then
27043     CFLAGS="-woff 3970 $CFLAGS"
27044 fi
27045 if test "x$SGICXX" = "xyes"; then
27046     CXXFLAGS="-woff 3970 $CXXFLAGS"
27047 fi
27048
27049 if test "x$HPCC" = "xyes"; then
27050                     CFLAGS="+W 2011,2450 $CFLAGS"
27051 fi
27052 if test "x$HPCXX" = "xyes"; then
27053             CXXFLAGS="+W 2340 $CXXFLAGS"
27054 fi
27055
27056 if test "x$COMPAQCXX" = "xyes"; then
27057                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
27058 fi
27059
27060 ac_ext=cpp
27061 ac_cpp='$CXXCPP $CPPFLAGS'
27062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27065
27066
27067 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
27068     if test "$wxUSE_UNICODE" = "yes"; then
27069         std_string="std::wstring"
27070         char_type="wchar_t"
27071     else
27072         std_string="std::string"
27073         char_type="char"
27074     fi
27075
27076         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
27077 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
27078 if test "${wx_cv_class_stdstring+set}" = set; then
27079   echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081
27082             cat >conftest.$ac_ext <<_ACEOF
27083 /* confdefs.h.  */
27084 _ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h.  */
27088 #include <string>
27089 int
27090 main ()
27091 {
27092 $std_string foo;
27093   ;
27094   return 0;
27095 }
27096 _ACEOF
27097 rm -f conftest.$ac_objext
27098 if { (ac_try="$ac_compile"
27099 case "(($ac_try" in
27100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101   *) ac_try_echo=$ac_try;;
27102 esac
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104   (eval "$ac_compile") 2>conftest.er1
27105   ac_status=$?
27106   grep -v '^ *+' conftest.er1 >conftest.err
27107   rm -f conftest.er1
27108   cat conftest.err >&5
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); } && {
27111          test -z "$ac_cxx_werror_flag" ||
27112          test ! -s conftest.err
27113        } && test -s conftest.$ac_objext; then
27114   wx_cv_class_stdstring=yes
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119         wx_cv_class_stdstring=no
27120
27121 fi
27122
27123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27124
27125
27126 fi
27127 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
27128 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
27129
27130     if test "$wx_cv_class_stdstring" = yes; then
27131         if test "$wxUSE_UNICODE" = "yes"; then
27132             cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_STD_WSTRING 1
27134 _ACEOF
27135
27136         fi
27137                     else
27138         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
27139 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
27140 if test "${wx_cv_class_stdbasicstring+set}" = set; then
27141   echo $ECHO_N "(cached) $ECHO_C" >&6
27142 else
27143
27144                 cat >conftest.$ac_ext <<_ACEOF
27145 /* confdefs.h.  */
27146 _ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h.  */
27150
27151                     #ifdef HAVE_WCHAR_H
27152                     #  ifdef __CYGWIN__
27153                     #    include <stddef.h>
27154                     #  endif
27155                     #  include <wchar.h>
27156                     #endif
27157                     #ifdef HAVE_STDLIB_H
27158                     #  include <stdlib.h>
27159                     #endif
27160                     #include <stdio.h>
27161                     #include <string>
27162
27163 int
27164 main ()
27165 {
27166 std::basic_string<$char_type> foo;
27167                      const $char_type* dummy = foo.c_str();
27168   ;
27169   return 0;
27170 }
27171 _ACEOF
27172 rm -f conftest.$ac_objext
27173 if { (ac_try="$ac_compile"
27174 case "(($ac_try" in
27175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176   *) ac_try_echo=$ac_try;;
27177 esac
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179   (eval "$ac_compile") 2>conftest.er1
27180   ac_status=$?
27181   grep -v '^ *+' conftest.er1 >conftest.err
27182   rm -f conftest.er1
27183   cat conftest.err >&5
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); } && {
27186          test -z "$ac_cxx_werror_flag" ||
27187          test ! -s conftest.err
27188        } && test -s conftest.$ac_objext; then
27189   wx_cv_class_stdbasicstring=yes
27190 else
27191   echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27193
27194         wx_cv_class_stdbasicstring=no
27195
27196 fi
27197
27198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27199
27200
27201 fi
27202 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27203 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
27204
27205         if test "$wx_cv_class_stdbasicstring" != yes; then
27206             if test "$wxUSE_STL" = "yes"; then
27207                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27208 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27209    { (exit 1); exit 1; }; }
27210             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27211                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27212 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27213    { (exit 1); exit 1; }; }
27214             else
27215                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27216 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27217                 wxUSE_STD_STRING=no
27218             fi
27219         fi
27220     fi
27221 fi
27222
27223 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
27224     { echo "$as_me:$LINENO: checking for std::istream" >&5
27225 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
27226 if test "${ac_cv_type_std__istream+set}" = set; then
27227   echo $ECHO_N "(cached) $ECHO_C" >&6
27228 else
27229   cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 #include <iostream>
27236
27237 typedef std::istream ac__type_new_;
27238 int
27239 main ()
27240 {
27241 if ((ac__type_new_ *) 0)
27242   return 0;
27243 if (sizeof (ac__type_new_))
27244   return 0;
27245   ;
27246   return 0;
27247 }
27248 _ACEOF
27249 rm -f conftest.$ac_objext
27250 if { (ac_try="$ac_compile"
27251 case "(($ac_try" in
27252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253   *) ac_try_echo=$ac_try;;
27254 esac
27255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27256   (eval "$ac_compile") 2>conftest.er1
27257   ac_status=$?
27258   grep -v '^ *+' conftest.er1 >conftest.err
27259   rm -f conftest.er1
27260   cat conftest.err >&5
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); } && {
27263          test -z "$ac_cxx_werror_flag" ||
27264          test ! -s conftest.err
27265        } && test -s conftest.$ac_objext; then
27266   ac_cv_type_std__istream=yes
27267 else
27268   echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27270
27271         ac_cv_type_std__istream=no
27272 fi
27273
27274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27275 fi
27276 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27277 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
27278 if test $ac_cv_type_std__istream = yes; then
27279
27280 cat >>confdefs.h <<_ACEOF
27281 #define HAVE_STD__ISTREAM 1
27282 _ACEOF
27283
27284
27285 else
27286   wxUSE_STD_IOSTREAM=no
27287 fi
27288 { echo "$as_me:$LINENO: checking for std::ostream" >&5
27289 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
27290 if test "${ac_cv_type_std__ostream+set}" = set; then
27291   echo $ECHO_N "(cached) $ECHO_C" >&6
27292 else
27293   cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299 #include <iostream>
27300
27301 typedef std::ostream ac__type_new_;
27302 int
27303 main ()
27304 {
27305 if ((ac__type_new_ *) 0)
27306   return 0;
27307 if (sizeof (ac__type_new_))
27308   return 0;
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext
27314 if { (ac_try="$ac_compile"
27315 case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_compile") 2>conftest.er1
27321   ac_status=$?
27322   grep -v '^ *+' conftest.er1 >conftest.err
27323   rm -f conftest.er1
27324   cat conftest.err >&5
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); } && {
27327          test -z "$ac_cxx_werror_flag" ||
27328          test ! -s conftest.err
27329        } && test -s conftest.$ac_objext; then
27330   ac_cv_type_std__ostream=yes
27331 else
27332   echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27334
27335         ac_cv_type_std__ostream=no
27336 fi
27337
27338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27339 fi
27340 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27341 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
27342 if test $ac_cv_type_std__ostream = yes; then
27343
27344 cat >>confdefs.h <<_ACEOF
27345 #define HAVE_STD__OSTREAM 1
27346 _ACEOF
27347
27348
27349 else
27350   wxUSE_STD_IOSTREAM=no
27351 fi
27352
27353
27354     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
27355         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27356             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27357 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27358    { (exit 1); exit 1; }; }
27359         else
27360             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
27361 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
27362         fi
27363     fi
27364 fi
27365
27366 if test "$wxUSE_STL" = "yes"; then
27367         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27368 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
27369 if test "${wx_cv_lib_stl+set}" = set; then
27370   echo $ECHO_N "(cached) $ECHO_C" >&6
27371 else
27372   cat >conftest.$ac_ext <<_ACEOF
27373 /* confdefs.h.  */
27374 _ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h.  */
27378 #include <string>
27379             #include <functional>
27380             #include <algorithm>
27381             #include <vector>
27382             #include <list>
27383 int
27384 main ()
27385 {
27386 std::vector<int> moo;
27387              std::list<int> foo;
27388              std::vector<int>::iterator it =
27389                  std::find_if(moo.begin(), moo.end(),
27390                               std::bind2nd(std::less<int>(), 3));
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 rm -f conftest.$ac_objext
27396 if { (ac_try="$ac_compile"
27397 case "(($ac_try" in
27398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399   *) ac_try_echo=$ac_try;;
27400 esac
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402   (eval "$ac_compile") 2>conftest.er1
27403   ac_status=$?
27404   grep -v '^ *+' conftest.er1 >conftest.err
27405   rm -f conftest.er1
27406   cat conftest.err >&5
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); } && {
27409          test -z "$ac_cxx_werror_flag" ||
27410          test ! -s conftest.err
27411        } && test -s conftest.$ac_objext; then
27412   wx_cv_lib_stl=yes
27413 else
27414   echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27416
27417         wx_cv_lib_stl=no
27418
27419 fi
27420
27421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422
27423 fi
27424 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27425 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
27426
27427     if test "$wx_cv_lib_stl" != yes; then
27428          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27429 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27430    { (exit 1); exit 1; }; }
27431     fi
27432
27433         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27434 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
27435 if test "${wx_cv_func_stdstring_compare+set}" = set; then
27436   echo $ECHO_N "(cached) $ECHO_C" >&6
27437 else
27438   cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444 #include <string>
27445 int
27446 main ()
27447 {
27448 std::string foo, bar;
27449             foo.compare(bar);
27450             foo.compare(1, 1, bar);
27451             foo.compare(1, 1, bar, 1, 1);
27452             foo.compare("");
27453             foo.compare(1, 1, "");
27454             foo.compare(1, 1, "", 2);
27455   ;
27456   return 0;
27457 }
27458 _ACEOF
27459 rm -f conftest.$ac_objext
27460 if { (ac_try="$ac_compile"
27461 case "(($ac_try" in
27462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463   *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466   (eval "$ac_compile") 2>conftest.er1
27467   ac_status=$?
27468   grep -v '^ *+' conftest.er1 >conftest.err
27469   rm -f conftest.er1
27470   cat conftest.err >&5
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); } && {
27473          test -z "$ac_cxx_werror_flag" ||
27474          test ! -s conftest.err
27475        } && test -s conftest.$ac_objext; then
27476   wx_cv_func_stdstring_compare=yes
27477 else
27478   echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27480
27481         wx_cv_func_stdstring_compare=no
27482
27483 fi
27484
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486
27487 fi
27488 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27489 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27490
27491     if test "$wx_cv_func_stdstring_compare" = yes; then
27492         cat >>confdefs.h <<\_ACEOF
27493 #define HAVE_STD_STRING_COMPARE 1
27494 _ACEOF
27495
27496     fi
27497
27498         { echo "$as_me:$LINENO: checking for hash_map" >&5
27499 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27500 if test "${ac_cv_header_hash_map+set}" = set; then
27501   echo $ECHO_N "(cached) $ECHO_C" >&6
27502 else
27503   cat >conftest.$ac_ext <<_ACEOF
27504 /* confdefs.h.  */
27505 _ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h.  */
27509
27510
27511
27512 #include <hash_map>
27513 _ACEOF
27514 rm -f conftest.$ac_objext
27515 if { (ac_try="$ac_compile"
27516 case "(($ac_try" in
27517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518   *) ac_try_echo=$ac_try;;
27519 esac
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521   (eval "$ac_compile") 2>conftest.er1
27522   ac_status=$?
27523   grep -v '^ *+' conftest.er1 >conftest.err
27524   rm -f conftest.er1
27525   cat conftest.err >&5
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); } && {
27528          test -z "$ac_cxx_werror_flag" ||
27529          test ! -s conftest.err
27530        } && test -s conftest.$ac_objext; then
27531   ac_cv_header_hash_map=yes
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536         ac_cv_header_hash_map=no
27537 fi
27538
27539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27540 fi
27541 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27542 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27543 if test $ac_cv_header_hash_map = yes; then
27544   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27545 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27546 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555 #include <hash_map>
27556                 #include <hash_set>
27557 int
27558 main ()
27559 {
27560 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27561                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27562   ;
27563   return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570   *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573   (eval "$ac_compile") 2>conftest.er1
27574   ac_status=$?
27575   grep -v '^ *+' conftest.er1 >conftest.err
27576   rm -f conftest.er1
27577   cat conftest.err >&5
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); } && {
27580          test -z "$ac_cxx_werror_flag" ||
27581          test ! -s conftest.err
27582        } && test -s conftest.$ac_objext; then
27583   wx_cv_class_stdhashmapset=yes
27584 else
27585   echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27587
27588         wx_cv_class_stdhashmapset=no
27589 fi
27590
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27592
27593
27594 fi
27595 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27596 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27597 fi
27598
27599
27600
27601     if test "$wx_cv_class_stdhashmapset" = yes; then
27602         cat >>confdefs.h <<\_ACEOF
27603 #define HAVE_HASH_MAP 1
27604 _ACEOF
27605
27606         cat >>confdefs.h <<\_ACEOF
27607 #define HAVE_STD_HASH_MAP 1
27608 _ACEOF
27609
27610     fi
27611
27612     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27613 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27614 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27615   echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617   cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h.  */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h.  */
27623
27624
27625
27626 #include <ext/hash_map>
27627 _ACEOF
27628 rm -f conftest.$ac_objext
27629 if { (ac_try="$ac_compile"
27630 case "(($ac_try" in
27631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632   *) ac_try_echo=$ac_try;;
27633 esac
27634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635   (eval "$ac_compile") 2>conftest.er1
27636   ac_status=$?
27637   grep -v '^ *+' conftest.er1 >conftest.err
27638   rm -f conftest.er1
27639   cat conftest.err >&5
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); } && {
27642          test -z "$ac_cxx_werror_flag" ||
27643          test ! -s conftest.err
27644        } && test -s conftest.$ac_objext; then
27645   ac_cv_header_ext_hash_map=yes
27646 else
27647   echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27649
27650         ac_cv_header_ext_hash_map=no
27651 fi
27652
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 fi
27655 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27656 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27657 if test $ac_cv_header_ext_hash_map = yes; then
27658   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27659 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27660 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27661   echo $ECHO_N "(cached) $ECHO_C" >&6
27662 else
27663   cat >conftest.$ac_ext <<_ACEOF
27664 /* confdefs.h.  */
27665 _ACEOF
27666 cat confdefs.h >>conftest.$ac_ext
27667 cat >>conftest.$ac_ext <<_ACEOF
27668 /* end confdefs.h.  */
27669 #include <ext/hash_map>
27670                 #include <ext/hash_set>
27671 int
27672 main ()
27673 {
27674 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27675                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27676   ;
27677   return 0;
27678 }
27679 _ACEOF
27680 rm -f conftest.$ac_objext
27681 if { (ac_try="$ac_compile"
27682 case "(($ac_try" in
27683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684   *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687   (eval "$ac_compile") 2>conftest.er1
27688   ac_status=$?
27689   grep -v '^ *+' conftest.er1 >conftest.err
27690   rm -f conftest.er1
27691   cat conftest.err >&5
27692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693   (exit $ac_status); } && {
27694          test -z "$ac_cxx_werror_flag" ||
27695          test ! -s conftest.err
27696        } && test -s conftest.$ac_objext; then
27697   wx_cv_class_gnuhashmapset=yes
27698 else
27699   echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27701
27702         wx_cv_class_gnuhashmapset=no
27703 fi
27704
27705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27706
27707
27708 fi
27709 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27710 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27711 fi
27712
27713
27714
27715     if test "$wx_cv_class_gnuhashmapset" = yes; then
27716          cat >>confdefs.h <<\_ACEOF
27717 #define HAVE_EXT_HASH_MAP 1
27718 _ACEOF
27719
27720          cat >>confdefs.h <<\_ACEOF
27721 #define HAVE_GNU_CXX_HASH_MAP 1
27722 _ACEOF
27723
27724     fi
27725 fi
27726
27727 ac_ext=c
27728 ac_cpp='$CPP $CPPFLAGS'
27729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27732
27733
27734
27735 SEARCH_INCLUDE="\
27736     /usr/local/include        \
27737                               \
27738     /usr/Motif-2.1/include    \
27739     /usr/Motif-1.2/include    \
27740     /usr/include/Motif1.2     \
27741                               \
27742     /usr/dt/include           \
27743     /usr/openwin/include      \
27744                               \
27745     /usr/include/Xm           \
27746                               \
27747     /usr/X11R6/include        \
27748     /usr/X11R6.4/include      \
27749     /usr/X11R5/include        \
27750     /usr/X11R4/include        \
27751                               \
27752     /usr/include/X11R6        \
27753     /usr/include/X11R5        \
27754     /usr/include/X11R4        \
27755                               \
27756     /usr/local/X11R6/include  \
27757     /usr/local/X11R5/include  \
27758     /usr/local/X11R4/include  \
27759                               \
27760     /usr/local/include/X11R6  \
27761     /usr/local/include/X11R5  \
27762     /usr/local/include/X11R4  \
27763                               \
27764     /usr/X11/include          \
27765     /usr/include/X11          \
27766     /usr/local/X11/include    \
27767     /usr/local/include/X11    \
27768                               \
27769     /usr/XFree86/include/X11  \
27770     /usr/pkg/include          \
27771                               \
27772     /usr/openwin/share/include"
27773
27774 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27775 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27776
27777 case "${host}" in
27778     *-*-irix6* )
27779         if test "${wx_cv_std_libpath+set}" = set; then
27780   echo $ECHO_N "(cached) $ECHO_C" >&6
27781 else
27782
27783                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27784                     for e in a so sl dylib dll.a; do
27785                         libc="$d/libc.$e"
27786                         if test -f $libc; then
27787                             save_LIBS="$LIBS"
27788                             LIBS="$libc"
27789                             cat >conftest.$ac_ext <<_ACEOF
27790 int main() { return 0; }
27791 _ACEOF
27792 rm -f conftest.$ac_objext conftest$ac_exeext
27793 if { (ac_try="$ac_link"
27794 case "(($ac_try" in
27795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796   *) ac_try_echo=$ac_try;;
27797 esac
27798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799   (eval "$ac_link") 2>conftest.er1
27800   ac_status=$?
27801   grep -v '^ *+' conftest.er1 >conftest.err
27802   rm -f conftest.er1
27803   cat conftest.err >&5
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); } && {
27806          test -z "$ac_c_werror_flag" ||
27807          test ! -s conftest.err
27808        } && test -s conftest$ac_exeext &&
27809        $as_test_x conftest$ac_exeext; then
27810   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27811 else
27812   echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815
27816 fi
27817
27818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27819       conftest$ac_exeext conftest.$ac_ext
27820                             LIBS="$save_LIBS"
27821                             if test "x$wx_cv_std_libpath" != "x"; then
27822                                 break 2
27823                             fi
27824                         fi
27825                     done
27826                 done
27827                 if test "x$wx_cv_std_libpath" = "x"; then
27828                     wx_cv_std_libpath="lib"
27829                 fi
27830
27831
27832 fi
27833
27834         ;;
27835
27836     *-*-solaris2* )
27837                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27838             wx_cv_std_libpath="lib/64"
27839         else
27840             wx_cv_std_libpath="lib"
27841         fi
27842         ;;
27843
27844     *-*-linux* )
27845                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27846                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27847             wx_cv_std_libpath="lib64"
27848         else
27849             wx_cv_std_libpath="lib"
27850         fi
27851         ;;
27852
27853     *)
27854         wx_cv_std_libpath="lib";
27855         ;;
27856 esac
27857
27858 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27859 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27860
27861 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27862
27863 if test "$build" != "$host" -a "$GCC" = yes; then
27864                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27865         cross_root=`dirname $cross_root`
27866         cross_root=`dirname $cross_root`
27867
27868                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27869         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27870         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27871
27872                 if test -z "$PKG_CONFIG_PATH"; then
27873             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27874             export PKG_CONFIG_PATH
27875         fi
27876
27877                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27878
27879 ac_find_includes=
27880 for ac_dir in $SEARCH_INCLUDE /usr/include;
27881   do
27882     if test -f "$ac_dir/X11/Intrinsic.h"; then
27883       ac_find_includes=$ac_dir
27884       break
27885     fi
27886   done
27887
27888             x_includes=$ac_find_includes
27889         fi
27890         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27891
27892   ac_find_libraries=
27893   for ac_dir in $SEARCH_LIB;
27894   do
27895     for ac_extension in a so sl dylib dll.a; do
27896       if test -f "$ac_dir/libXt.$ac_extension"; then
27897         ac_find_libraries=$ac_dir
27898         break 2
27899       fi
27900     done
27901   done
27902
27903             x_libraries=$ac_find_libraries
27904         fi
27905     fi
27906 fi
27907
27908
27909 cat >confcache <<\_ACEOF
27910 # This file is a shell script that caches the results of configure
27911 # tests run on this system so they can be shared between configure
27912 # scripts and configure runs, see configure's option --config-cache.
27913 # It is not useful on other systems.  If it contains results you don't
27914 # want to keep, you may remove or edit it.
27915 #
27916 # config.status only pays attention to the cache file if you give it
27917 # the --recheck option to rerun configure.
27918 #
27919 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27920 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27921 # following values.
27922
27923 _ACEOF
27924
27925 # The following way of writing the cache mishandles newlines in values,
27926 # but we know of no workaround that is simple, portable, and efficient.
27927 # So, we kill variables containing newlines.
27928 # Ultrix sh set writes to stderr and can't be redirected directly,
27929 # and sets the high bit in the cache file unless we assign to the vars.
27930 (
27931   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27932     eval ac_val=\$$ac_var
27933     case $ac_val in #(
27934     *${as_nl}*)
27935       case $ac_var in #(
27936       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27937 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27938       esac
27939       case $ac_var in #(
27940       _ | IFS | as_nl) ;; #(
27941       *) $as_unset $ac_var ;;
27942       esac ;;
27943     esac
27944   done
27945
27946   (set) 2>&1 |
27947     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27948     *${as_nl}ac_space=\ *)
27949       # `set' does not quote correctly, so add quotes (double-quote
27950       # substitution turns \\\\ into \\, and sed turns \\ into \).
27951       sed -n \
27952         "s/'/'\\\\''/g;
27953           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27954       ;; #(
27955     *)
27956       # `set' quotes correctly as required by POSIX, so do not add quotes.
27957       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27958       ;;
27959     esac |
27960     sort
27961 ) |
27962   sed '
27963      /^ac_cv_env_/b end
27964      t clear
27965      :clear
27966      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27967      t end
27968      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27969      :end' >>confcache
27970 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27971   if test -w "$cache_file"; then
27972     test "x$cache_file" != "x/dev/null" &&
27973       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27974 echo "$as_me: updating cache $cache_file" >&6;}
27975     cat confcache >$cache_file
27976   else
27977     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27978 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27979   fi
27980 fi
27981 rm -f confcache
27982
27983 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27984     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27985 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27986 if test "${wx_cv_lib_glibc21+set}" = set; then
27987   echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989
27990         cat >conftest.$ac_ext <<_ACEOF
27991 /* confdefs.h.  */
27992 _ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h.  */
27996 #include <features.h>
27997 int
27998 main ()
27999 {
28000
28001                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
28002                 not glibc 2.1
28003                 #endif
28004
28005   ;
28006   return 0;
28007 }
28008 _ACEOF
28009 rm -f conftest.$ac_objext
28010 if { (ac_try="$ac_compile"
28011 case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_compile") 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } && {
28023          test -z "$ac_c_werror_flag" ||
28024          test ! -s conftest.err
28025        } && test -s conftest.$ac_objext; then
28026
28027                 wx_cv_lib_glibc21=yes
28028
28029 else
28030   echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033
28034                 wx_cv_lib_glibc21=no
28035
28036
28037 fi
28038
28039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28040
28041 fi
28042 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
28043 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
28044     if test "$wx_cv_lib_glibc21" = "yes"; then
28045         cat >>confdefs.h <<\_ACEOF
28046 #define wxHAVE_GLIBC2 1
28047 _ACEOF
28048
28049     fi
28050 fi
28051
28052 if test "x$wx_cv_lib_glibc21" = "xyes"; then
28053     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
28054         cat >>confdefs.h <<\_ACEOF
28055 #define _GNU_SOURCE 1
28056 _ACEOF
28057
28058     fi
28059 fi
28060
28061 have_cos=0
28062 have_floor=0
28063
28064 for ac_func in cos
28065 do
28066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28070   echo $ECHO_N "(cached) $ECHO_C" >&6
28071 else
28072   cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h.  */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h.  */
28078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28080 #define $ac_func innocuous_$ac_func
28081
28082 /* System header to define __stub macros and hopefully few prototypes,
28083     which can conflict with char $ac_func (); below.
28084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28085     <limits.h> exists even on freestanding compilers.  */
28086
28087 #ifdef __STDC__
28088 # include <limits.h>
28089 #else
28090 # include <assert.h>
28091 #endif
28092
28093 #undef $ac_func
28094
28095 /* Override any GCC internal prototype to avoid an error.
28096    Use char because int might match the return type of a GCC
28097    builtin and then its argument prototype would still apply.  */
28098 #ifdef __cplusplus
28099 extern "C"
28100 #endif
28101 char $ac_func ();
28102 /* The GNU C library defines this for functions which it implements
28103     to always fail with ENOSYS.  Some functions are actually named
28104     something starting with __ and the normal name is an alias.  */
28105 #if defined __stub_$ac_func || defined __stub___$ac_func
28106 choke me
28107 #endif
28108
28109 int
28110 main ()
28111 {
28112 return $ac_func ();
28113   ;
28114   return 0;
28115 }
28116 _ACEOF
28117 rm -f conftest.$ac_objext conftest$ac_exeext
28118 if { (ac_try="$ac_link"
28119 case "(($ac_try" in
28120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121   *) ac_try_echo=$ac_try;;
28122 esac
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124   (eval "$ac_link") 2>conftest.er1
28125   ac_status=$?
28126   grep -v '^ *+' conftest.er1 >conftest.err
28127   rm -f conftest.er1
28128   cat conftest.err >&5
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); } && {
28131          test -z "$ac_c_werror_flag" ||
28132          test ! -s conftest.err
28133        } && test -s conftest$ac_exeext &&
28134        $as_test_x conftest$ac_exeext; then
28135   eval "$as_ac_var=yes"
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140         eval "$as_ac_var=no"
28141 fi
28142
28143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28144       conftest$ac_exeext conftest.$ac_ext
28145 fi
28146 ac_res=`eval echo '${'$as_ac_var'}'`
28147                { echo "$as_me:$LINENO: result: $ac_res" >&5
28148 echo "${ECHO_T}$ac_res" >&6; }
28149 if test `eval echo '${'$as_ac_var'}'` = yes; then
28150   cat >>confdefs.h <<_ACEOF
28151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28152 _ACEOF
28153  have_cos=1
28154 fi
28155 done
28156
28157
28158 for ac_func in floor
28159 do
28160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28164   echo $ECHO_N "(cached) $ECHO_C" >&6
28165 else
28166   cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28174 #define $ac_func innocuous_$ac_func
28175
28176 /* System header to define __stub macros and hopefully few prototypes,
28177     which can conflict with char $ac_func (); below.
28178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28179     <limits.h> exists even on freestanding compilers.  */
28180
28181 #ifdef __STDC__
28182 # include <limits.h>
28183 #else
28184 # include <assert.h>
28185 #endif
28186
28187 #undef $ac_func
28188
28189 /* Override any GCC internal prototype to avoid an error.
28190    Use char because int might match the return type of a GCC
28191    builtin and then its argument prototype would still apply.  */
28192 #ifdef __cplusplus
28193 extern "C"
28194 #endif
28195 char $ac_func ();
28196 /* The GNU C library defines this for functions which it implements
28197     to always fail with ENOSYS.  Some functions are actually named
28198     something starting with __ and the normal name is an alias.  */
28199 #if defined __stub_$ac_func || defined __stub___$ac_func
28200 choke me
28201 #endif
28202
28203 int
28204 main ()
28205 {
28206 return $ac_func ();
28207   ;
28208   return 0;
28209 }
28210 _ACEOF
28211 rm -f conftest.$ac_objext conftest$ac_exeext
28212 if { (ac_try="$ac_link"
28213 case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_link") 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } && {
28225          test -z "$ac_c_werror_flag" ||
28226          test ! -s conftest.err
28227        } && test -s conftest$ac_exeext &&
28228        $as_test_x conftest$ac_exeext; then
28229   eval "$as_ac_var=yes"
28230 else
28231   echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28233
28234         eval "$as_ac_var=no"
28235 fi
28236
28237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28238       conftest$ac_exeext conftest.$ac_ext
28239 fi
28240 ac_res=`eval echo '${'$as_ac_var'}'`
28241                { echo "$as_me:$LINENO: result: $ac_res" >&5
28242 echo "${ECHO_T}$ac_res" >&6; }
28243 if test `eval echo '${'$as_ac_var'}'` = yes; then
28244   cat >>confdefs.h <<_ACEOF
28245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28246 _ACEOF
28247  have_floor=1
28248 fi
28249 done
28250
28251 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28252 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28253 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28254     { echo "$as_me:$LINENO: result: yes" >&5
28255 echo "${ECHO_T}yes" >&6; }
28256 else
28257     { echo "$as_me:$LINENO: result: no" >&5
28258 echo "${ECHO_T}no" >&6; }
28259     LIBS="$LIBS -lm"
28260     # use different functions to avoid configure caching
28261     have_sin=0
28262     have_ceil=0
28263
28264 for ac_func in sin
28265 do
28266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h.  */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h.  */
28278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28280 #define $ac_func innocuous_$ac_func
28281
28282 /* System header to define __stub macros and hopefully few prototypes,
28283     which can conflict with char $ac_func (); below.
28284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28285     <limits.h> exists even on freestanding compilers.  */
28286
28287 #ifdef __STDC__
28288 # include <limits.h>
28289 #else
28290 # include <assert.h>
28291 #endif
28292
28293 #undef $ac_func
28294
28295 /* Override any GCC internal prototype to avoid an error.
28296    Use char because int might match the return type of a GCC
28297    builtin and then its argument prototype would still apply.  */
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char $ac_func ();
28302 /* The GNU C library defines this for functions which it implements
28303     to always fail with ENOSYS.  Some functions are actually named
28304     something starting with __ and the normal name is an alias.  */
28305 #if defined __stub_$ac_func || defined __stub___$ac_func
28306 choke me
28307 #endif
28308
28309 int
28310 main ()
28311 {
28312 return $ac_func ();
28313   ;
28314   return 0;
28315 }
28316 _ACEOF
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321   *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324   (eval "$ac_link") 2>conftest.er1
28325   ac_status=$?
28326   grep -v '^ *+' conftest.er1 >conftest.err
28327   rm -f conftest.er1
28328   cat conftest.err >&5
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); } && {
28331          test -z "$ac_c_werror_flag" ||
28332          test ! -s conftest.err
28333        } && test -s conftest$ac_exeext &&
28334        $as_test_x conftest$ac_exeext; then
28335   eval "$as_ac_var=yes"
28336 else
28337   echo "$as_me: failed program was:" >&5
28338 sed 's/^/| /' conftest.$ac_ext >&5
28339
28340         eval "$as_ac_var=no"
28341 fi
28342
28343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28344       conftest$ac_exeext conftest.$ac_ext
28345 fi
28346 ac_res=`eval echo '${'$as_ac_var'}'`
28347                { echo "$as_me:$LINENO: result: $ac_res" >&5
28348 echo "${ECHO_T}$ac_res" >&6; }
28349 if test `eval echo '${'$as_ac_var'}'` = yes; then
28350   cat >>confdefs.h <<_ACEOF
28351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28352 _ACEOF
28353  have_sin=1
28354 fi
28355 done
28356
28357
28358 for ac_func in ceil
28359 do
28360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28364   echo $ECHO_N "(cached) $ECHO_C" >&6
28365 else
28366   cat >conftest.$ac_ext <<_ACEOF
28367 /* confdefs.h.  */
28368 _ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h.  */
28372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28374 #define $ac_func innocuous_$ac_func
28375
28376 /* System header to define __stub macros and hopefully few prototypes,
28377     which can conflict with char $ac_func (); below.
28378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28379     <limits.h> exists even on freestanding compilers.  */
28380
28381 #ifdef __STDC__
28382 # include <limits.h>
28383 #else
28384 # include <assert.h>
28385 #endif
28386
28387 #undef $ac_func
28388
28389 /* Override any GCC internal prototype to avoid an error.
28390    Use char because int might match the return type of a GCC
28391    builtin and then its argument prototype would still apply.  */
28392 #ifdef __cplusplus
28393 extern "C"
28394 #endif
28395 char $ac_func ();
28396 /* The GNU C library defines this for functions which it implements
28397     to always fail with ENOSYS.  Some functions are actually named
28398     something starting with __ and the normal name is an alias.  */
28399 #if defined __stub_$ac_func || defined __stub___$ac_func
28400 choke me
28401 #endif
28402
28403 int
28404 main ()
28405 {
28406 return $ac_func ();
28407   ;
28408   return 0;
28409 }
28410 _ACEOF
28411 rm -f conftest.$ac_objext conftest$ac_exeext
28412 if { (ac_try="$ac_link"
28413 case "(($ac_try" in
28414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415   *) ac_try_echo=$ac_try;;
28416 esac
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418   (eval "$ac_link") 2>conftest.er1
28419   ac_status=$?
28420   grep -v '^ *+' conftest.er1 >conftest.err
28421   rm -f conftest.er1
28422   cat conftest.err >&5
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); } && {
28425          test -z "$ac_c_werror_flag" ||
28426          test ! -s conftest.err
28427        } && test -s conftest$ac_exeext &&
28428        $as_test_x conftest$ac_exeext; then
28429   eval "$as_ac_var=yes"
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434         eval "$as_ac_var=no"
28435 fi
28436
28437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28438       conftest$ac_exeext conftest.$ac_ext
28439 fi
28440 ac_res=`eval echo '${'$as_ac_var'}'`
28441                { echo "$as_me:$LINENO: result: $ac_res" >&5
28442 echo "${ECHO_T}$ac_res" >&6; }
28443 if test `eval echo '${'$as_ac_var'}'` = yes; then
28444   cat >>confdefs.h <<_ACEOF
28445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28446 _ACEOF
28447  have_ceil=1
28448 fi
28449 done
28450
28451     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28452 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28453     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28454         { echo "$as_me:$LINENO: result: yes" >&5
28455 echo "${ECHO_T}yes" >&6; }
28456     else
28457         { echo "$as_me:$LINENO: result: no" >&5
28458 echo "${ECHO_T}no" >&6; }
28459         # not sure we should warn the user, crash, etc.
28460     fi
28461 fi
28462
28463 ac_ext=cpp
28464 ac_cpp='$CXXCPP $CPPFLAGS'
28465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28468
28469 if test "wxUSE_UNICODE" = "yes"; then
28470
28471   for wx_func in wcstoull
28472   do
28473     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28474 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28475 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28476   echo $ECHO_N "(cached) $ECHO_C" >&6
28477 else
28478
28479         cat >conftest.$ac_ext <<_ACEOF
28480
28481             /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486
28487
28488                 $ac_includes_default
28489
28490 int
28491 main ()
28492 {
28493
28494                 #ifndef $wx_func
28495                   &$wx_func;
28496                 #endif
28497
28498
28499   ;
28500   return 0;
28501 }
28502
28503 _ACEOF
28504 rm -f conftest.$ac_objext conftest$ac_exeext
28505 if { (ac_try="$ac_link"
28506 case "(($ac_try" in
28507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508   *) ac_try_echo=$ac_try;;
28509 esac
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511   (eval "$ac_link") 2>conftest.er1
28512   ac_status=$?
28513   grep -v '^ *+' conftest.er1 >conftest.err
28514   rm -f conftest.er1
28515   cat conftest.err >&5
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); } && {
28518          test -z "$ac_cxx_werror_flag" ||
28519          test ! -s conftest.err
28520        } && test -s conftest$ac_exeext &&
28521        $as_test_x conftest$ac_exeext; then
28522   eval wx_cv_func_$wx_func=yes
28523 else
28524   echo "$as_me: failed program was:" >&5
28525 sed 's/^/| /' conftest.$ac_ext >&5
28526
28527         eval wx_cv_func_$wx_func=no
28528 fi
28529
28530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28531       conftest$ac_exeext conftest.$ac_ext
28532
28533 fi
28534 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28535                { echo "$as_me:$LINENO: result: $ac_res" >&5
28536 echo "${ECHO_T}$ac_res" >&6; }
28537
28538     if eval test \$wx_cv_func_$wx_func = yes
28539     then
28540       cat >>confdefs.h <<_ACEOF
28541 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28542 _ACEOF
28543
28544
28545     else
28546       :
28547
28548     fi
28549   done
28550
28551 else
28552
28553   for wx_func in strtoull
28554   do
28555     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28556 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28557 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28558   echo $ECHO_N "(cached) $ECHO_C" >&6
28559 else
28560
28561         cat >conftest.$ac_ext <<_ACEOF
28562
28563             /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568
28569
28570                 $ac_includes_default
28571
28572 int
28573 main ()
28574 {
28575
28576                 #ifndef $wx_func
28577                   &$wx_func;
28578                 #endif
28579
28580
28581   ;
28582   return 0;
28583 }
28584
28585 _ACEOF
28586 rm -f conftest.$ac_objext conftest$ac_exeext
28587 if { (ac_try="$ac_link"
28588 case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_link") 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } && {
28600          test -z "$ac_cxx_werror_flag" ||
28601          test ! -s conftest.err
28602        } && test -s conftest$ac_exeext &&
28603        $as_test_x conftest$ac_exeext; then
28604   eval wx_cv_func_$wx_func=yes
28605 else
28606   echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609         eval wx_cv_func_$wx_func=no
28610 fi
28611
28612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28613       conftest$ac_exeext conftest.$ac_ext
28614
28615 fi
28616 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28617                { echo "$as_me:$LINENO: result: $ac_res" >&5
28618 echo "${ECHO_T}$ac_res" >&6; }
28619
28620     if eval test \$wx_cv_func_$wx_func = yes
28621     then
28622       cat >>confdefs.h <<_ACEOF
28623 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28624 _ACEOF
28625
28626
28627     else
28628       :
28629
28630     fi
28631   done
28632
28633 fi
28634 ac_ext=c
28635 ac_cpp='$CPP $CPPFLAGS'
28636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28639
28640
28641
28642
28643 if test "$wxUSE_REGEX" != "no"; then
28644     cat >>confdefs.h <<\_ACEOF
28645 #define wxUSE_REGEX 1
28646 _ACEOF
28647
28648
28649     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28650         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28651 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28652         wxUSE_REGEX=builtin
28653     fi
28654
28655     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28656                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28657 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28658 if test "${ac_cv_header_regex_h+set}" = set; then
28659   echo $ECHO_N "(cached) $ECHO_C" >&6
28660 else
28661   cat >conftest.$ac_ext <<_ACEOF
28662 /* confdefs.h.  */
28663 _ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h.  */
28667
28668
28669 #include <regex.h>
28670 _ACEOF
28671 rm -f conftest.$ac_objext
28672 if { (ac_try="$ac_compile"
28673 case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_compile") 2>conftest.er1
28679   ac_status=$?
28680   grep -v '^ *+' conftest.er1 >conftest.err
28681   rm -f conftest.er1
28682   cat conftest.err >&5
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } && {
28685          test -z "$ac_c_werror_flag" ||
28686          test ! -s conftest.err
28687        } && test -s conftest.$ac_objext; then
28688   ac_cv_header_regex_h=yes
28689 else
28690   echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28692
28693         ac_cv_header_regex_h=no
28694 fi
28695
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697 fi
28698 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28699 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28700 if test $ac_cv_header_regex_h = yes; then
28701
28702
28703 for ac_func in regcomp re_search
28704 do
28705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28709   echo $ECHO_N "(cached) $ECHO_C" >&6
28710 else
28711   cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h.  */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h.  */
28717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28719 #define $ac_func innocuous_$ac_func
28720
28721 /* System header to define __stub macros and hopefully few prototypes,
28722     which can conflict with char $ac_func (); below.
28723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28724     <limits.h> exists even on freestanding compilers.  */
28725
28726 #ifdef __STDC__
28727 # include <limits.h>
28728 #else
28729 # include <assert.h>
28730 #endif
28731
28732 #undef $ac_func
28733
28734 /* Override any GCC internal prototype to avoid an error.
28735    Use char because int might match the return type of a GCC
28736    builtin and then its argument prototype would still apply.  */
28737 #ifdef __cplusplus
28738 extern "C"
28739 #endif
28740 char $ac_func ();
28741 /* The GNU C library defines this for functions which it implements
28742     to always fail with ENOSYS.  Some functions are actually named
28743     something starting with __ and the normal name is an alias.  */
28744 #if defined __stub_$ac_func || defined __stub___$ac_func
28745 choke me
28746 #endif
28747
28748 int
28749 main ()
28750 {
28751 return $ac_func ();
28752   ;
28753   return 0;
28754 }
28755 _ACEOF
28756 rm -f conftest.$ac_objext conftest$ac_exeext
28757 if { (ac_try="$ac_link"
28758 case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763   (eval "$ac_link") 2>conftest.er1
28764   ac_status=$?
28765   grep -v '^ *+' conftest.er1 >conftest.err
28766   rm -f conftest.er1
28767   cat conftest.err >&5
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); } && {
28770          test -z "$ac_c_werror_flag" ||
28771          test ! -s conftest.err
28772        } && test -s conftest$ac_exeext &&
28773        $as_test_x conftest$ac_exeext; then
28774   eval "$as_ac_var=yes"
28775 else
28776   echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28778
28779         eval "$as_ac_var=no"
28780 fi
28781
28782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28783       conftest$ac_exeext conftest.$ac_ext
28784 fi
28785 ac_res=`eval echo '${'$as_ac_var'}'`
28786                { echo "$as_me:$LINENO: result: $ac_res" >&5
28787 echo "${ECHO_T}$ac_res" >&6; }
28788 if test `eval echo '${'$as_ac_var'}'` = yes; then
28789   cat >>confdefs.h <<_ACEOF
28790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28791 _ACEOF
28792
28793 fi
28794 done
28795
28796 fi
28797
28798
28799
28800         if test "x$ac_cv_func_regcomp" != "xyes"; then
28801             if test "$wxUSE_REGEX" = "sys" ; then
28802                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28803 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28804    { (exit 1); exit 1; }; }
28805             else
28806                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28807 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28808                 wxUSE_REGEX=builtin
28809             fi
28810         else
28811                         wxUSE_REGEX=sys
28812                         cat >>confdefs.h <<\_ACEOF
28813 #define WX_NO_REGEX_ADVANCED 1
28814 _ACEOF
28815
28816         fi
28817     fi
28818 fi
28819
28820
28821 ZLIB_LINK=
28822 if test "$wxUSE_ZLIB" != "no" ; then
28823     cat >>confdefs.h <<\_ACEOF
28824 #define wxUSE_ZLIB 1
28825 _ACEOF
28826
28827
28828     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28829                                                 if test "$USE_DARWIN" = 1; then
28830             system_zlib_h_ok="yes"
28831         else
28832                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28833 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28834 if test "${ac_cv_header_zlib_h+set}" = set; then
28835   echo $ECHO_N "(cached) $ECHO_C" >&6
28836 else
28837   if test "$cross_compiling" = yes; then
28838                       unset ac_cv_header_zlib_h
28839
28840 else
28841   cat >conftest.$ac_ext <<_ACEOF
28842 /* confdefs.h.  */
28843 _ACEOF
28844 cat confdefs.h >>conftest.$ac_ext
28845 cat >>conftest.$ac_ext <<_ACEOF
28846 /* end confdefs.h.  */
28847
28848                         #include <zlib.h>
28849                         #include <stdio.h>
28850
28851                         int main()
28852                         {
28853                             FILE *f=fopen("conftestval", "w");
28854                             if (!f) exit(1);
28855                             fprintf(f, "%s",
28856                                     ZLIB_VERSION[0] == '1' &&
28857                                     (ZLIB_VERSION[2] > '1' ||
28858                                     (ZLIB_VERSION[2] == '1' &&
28859                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28860                             exit(0);
28861                         }
28862
28863 _ACEOF
28864 rm -f conftest$ac_exeext
28865 if { (ac_try="$ac_link"
28866 case "(($ac_try" in
28867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868   *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871   (eval "$ac_link") 2>&5
28872   ac_status=$?
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28875   { (case "(($ac_try" in
28876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877   *) ac_try_echo=$ac_try;;
28878 esac
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880   (eval "$ac_try") 2>&5
28881   ac_status=$?
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); }; }; then
28884   ac_cv_header_zlib_h=`cat conftestval`
28885 else
28886   echo "$as_me: program exited with status $ac_status" >&5
28887 echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890 ( exit $ac_status )
28891 ac_cv_header_zlib_h=no
28892 fi
28893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28894 fi
28895
28896
28897
28898 fi
28899 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28900 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28901                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28902 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28903 if test "${ac_cv_header_zlib_h+set}" = set; then
28904   echo $ECHO_N "(cached) $ECHO_C" >&6
28905 else
28906   cat >conftest.$ac_ext <<_ACEOF
28907 /* confdefs.h.  */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h.  */
28912
28913
28914 #include <zlib.h>
28915 _ACEOF
28916 rm -f conftest.$ac_objext
28917 if { (ac_try="$ac_compile"
28918 case "(($ac_try" in
28919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920   *) ac_try_echo=$ac_try;;
28921 esac
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923   (eval "$ac_compile") 2>conftest.er1
28924   ac_status=$?
28925   grep -v '^ *+' conftest.er1 >conftest.err
28926   rm -f conftest.er1
28927   cat conftest.err >&5
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); } && {
28930          test -z "$ac_c_werror_flag" ||
28931          test ! -s conftest.err
28932        } && test -s conftest.$ac_objext; then
28933   ac_cv_header_zlib_h=yes
28934 else
28935   echo "$as_me: failed program was:" >&5
28936 sed 's/^/| /' conftest.$ac_ext >&5
28937
28938         ac_cv_header_zlib_h=no
28939 fi
28940
28941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28942 fi
28943 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28944 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28945
28946
28947
28948             system_zlib_h_ok=$ac_cv_header_zlib_h
28949         fi
28950
28951         if test "$system_zlib_h_ok" = "yes"; then
28952             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28953 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28954 if test "${ac_cv_lib_z_deflate+set}" = set; then
28955   echo $ECHO_N "(cached) $ECHO_C" >&6
28956 else
28957   ac_check_lib_save_LIBS=$LIBS
28958 LIBS="-lz  $LIBS"
28959 cat >conftest.$ac_ext <<_ACEOF
28960 /* confdefs.h.  */
28961 _ACEOF
28962 cat confdefs.h >>conftest.$ac_ext
28963 cat >>conftest.$ac_ext <<_ACEOF
28964 /* end confdefs.h.  */
28965
28966 /* Override any GCC internal prototype to avoid an error.
28967    Use char because int might match the return type of a GCC
28968    builtin and then its argument prototype would still apply.  */
28969 #ifdef __cplusplus
28970 extern "C"
28971 #endif
28972 char deflate ();
28973 int
28974 main ()
28975 {
28976 return deflate ();
28977   ;
28978   return 0;
28979 }
28980 _ACEOF
28981 rm -f conftest.$ac_objext conftest$ac_exeext
28982 if { (ac_try="$ac_link"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_link") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } && {
28995          test -z "$ac_c_werror_flag" ||
28996          test ! -s conftest.err
28997        } && test -s conftest$ac_exeext &&
28998        $as_test_x conftest$ac_exeext; then
28999   ac_cv_lib_z_deflate=yes
29000 else
29001   echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29003
29004         ac_cv_lib_z_deflate=no
29005 fi
29006
29007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29008       conftest$ac_exeext conftest.$ac_ext
29009 LIBS=$ac_check_lib_save_LIBS
29010 fi
29011 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29012 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29013 if test $ac_cv_lib_z_deflate = yes; then
29014   ZLIB_LINK=" -lz"
29015 fi
29016
29017         fi
29018
29019         if test "x$ZLIB_LINK" = "x" ; then
29020             if test "$wxUSE_ZLIB" = "sys" ; then
29021                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
29022 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
29023    { (exit 1); exit 1; }; }
29024             else
29025                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
29026 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
29027                 wxUSE_ZLIB=builtin
29028             fi
29029         else
29030                         wxUSE_ZLIB=sys
29031         fi
29032     fi
29033 fi
29034
29035
29036 PNG_LINK=
29037 if test "$wxUSE_LIBPNG" != "no" ; then
29038     cat >>confdefs.h <<\_ACEOF
29039 #define wxUSE_LIBPNG 1
29040 _ACEOF
29041
29042
29043     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
29044         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
29045 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
29046         wxUSE_LIBPNG=sys
29047     fi
29048
29049                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
29050         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
29051 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
29052         wxUSE_LIBPNG=builtin
29053     fi
29054
29055     if test "$wxUSE_MGL" != 1 ; then
29056                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
29057                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29058 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
29059 if test "${ac_cv_header_png_h+set}" = set; then
29060   echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062   if test "$cross_compiling" = yes; then
29063                       unset ac_cv_header_png_h
29064
29065 else
29066   cat >conftest.$ac_ext <<_ACEOF
29067 /* confdefs.h.  */
29068 _ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h.  */
29072
29073                         #include <png.h>
29074                         #include <stdio.h>
29075
29076                         int main()
29077                         {
29078                             FILE *f=fopen("conftestval", "w");
29079                             if (!f) exit(1);
29080                             fprintf(f, "%s",
29081                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
29082                             exit(0);
29083                         }
29084
29085 _ACEOF
29086 rm -f conftest$ac_exeext
29087 if { (ac_try="$ac_link"
29088 case "(($ac_try" in
29089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090   *) ac_try_echo=$ac_try;;
29091 esac
29092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29093   (eval "$ac_link") 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29097   { (case "(($ac_try" in
29098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099   *) ac_try_echo=$ac_try;;
29100 esac
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102   (eval "$ac_try") 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; }; then
29106   ac_cv_header_png_h=`cat conftestval`
29107 else
29108   echo "$as_me: program exited with status $ac_status" >&5
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112 ( exit $ac_status )
29113 ac_cv_header_png_h=no
29114 fi
29115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29116 fi
29117
29118
29119
29120 fi
29121 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29122 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29123             { echo "$as_me:$LINENO: checking for png.h" >&5
29124 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29125 if test "${ac_cv_header_png_h+set}" = set; then
29126   echo $ECHO_N "(cached) $ECHO_C" >&6
29127 else
29128   cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134
29135
29136 #include <png.h>
29137 _ACEOF
29138 rm -f conftest.$ac_objext
29139 if { (ac_try="$ac_compile"
29140 case "(($ac_try" in
29141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142   *) ac_try_echo=$ac_try;;
29143 esac
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145   (eval "$ac_compile") 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } && {
29152          test -z "$ac_c_werror_flag" ||
29153          test ! -s conftest.err
29154        } && test -s conftest.$ac_objext; then
29155   ac_cv_header_png_h=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160         ac_cv_header_png_h=no
29161 fi
29162
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 fi
29165 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29166 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29167
29168
29169
29170             if test "$ac_cv_header_png_h" = "yes"; then
29171                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29172 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29173 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29174   echo $ECHO_N "(cached) $ECHO_C" >&6
29175 else
29176   ac_check_lib_save_LIBS=$LIBS
29177 LIBS="-lpng -lz -lm $LIBS"
29178 cat >conftest.$ac_ext <<_ACEOF
29179 /* confdefs.h.  */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h.  */
29184
29185 /* Override any GCC internal prototype to avoid an error.
29186    Use char because int might match the return type of a GCC
29187    builtin and then its argument prototype would still apply.  */
29188 #ifdef __cplusplus
29189 extern "C"
29190 #endif
29191 char png_check_sig ();
29192 int
29193 main ()
29194 {
29195 return png_check_sig ();
29196   ;
29197   return 0;
29198 }
29199 _ACEOF
29200 rm -f conftest.$ac_objext conftest$ac_exeext
29201 if { (ac_try="$ac_link"
29202 case "(($ac_try" in
29203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204   *) ac_try_echo=$ac_try;;
29205 esac
29206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207   (eval "$ac_link") 2>conftest.er1
29208   ac_status=$?
29209   grep -v '^ *+' conftest.er1 >conftest.err
29210   rm -f conftest.er1
29211   cat conftest.err >&5
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); } && {
29214          test -z "$ac_c_werror_flag" ||
29215          test ! -s conftest.err
29216        } && test -s conftest$ac_exeext &&
29217        $as_test_x conftest$ac_exeext; then
29218   ac_cv_lib_png_png_check_sig=yes
29219 else
29220   echo "$as_me: failed program was:" >&5
29221 sed 's/^/| /' conftest.$ac_ext >&5
29222
29223         ac_cv_lib_png_png_check_sig=no
29224 fi
29225
29226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29227       conftest$ac_exeext conftest.$ac_ext
29228 LIBS=$ac_check_lib_save_LIBS
29229 fi
29230 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29231 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29232 if test $ac_cv_lib_png_png_check_sig = yes; then
29233   PNG_LINK=" -lpng -lz"
29234 fi
29235
29236             fi
29237
29238             if test "x$PNG_LINK" = "x" ; then
29239                 if test "$wxUSE_LIBPNG" = "sys" ; then
29240                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29241 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29242    { (exit 1); exit 1; }; }
29243                 else
29244                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29245 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29246                     wxUSE_LIBPNG=builtin
29247                 fi
29248             else
29249                                 wxUSE_LIBPNG=sys
29250             fi
29251         fi
29252     fi
29253
29254     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
29255 fi
29256
29257
29258 JPEG_LINK=
29259 if test "$wxUSE_LIBJPEG" != "no" ; then
29260     cat >>confdefs.h <<\_ACEOF
29261 #define wxUSE_LIBJPEG 1
29262 _ACEOF
29263
29264
29265     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29266         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29267 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29268         wxUSE_LIBJPEG=sys
29269     fi
29270
29271     if test "$wxUSE_MGL" != 1 ; then
29272                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29273                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29274 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29275             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29276   echo $ECHO_N "(cached) $ECHO_C" >&6
29277 else
29278   cat >conftest.$ac_ext <<_ACEOF
29279 /* confdefs.h.  */
29280 _ACEOF
29281 cat confdefs.h >>conftest.$ac_ext
29282 cat >>conftest.$ac_ext <<_ACEOF
29283 /* end confdefs.h.  */
29284
29285                         #undef HAVE_STDLIB_H
29286                         #include <stdio.h>
29287                         #include <jpeglib.h>
29288
29289 int
29290 main ()
29291 {
29292
29293
29294   ;
29295   return 0;
29296 }
29297 _ACEOF
29298 rm -f conftest.$ac_objext
29299 if { (ac_try="$ac_compile"
29300 case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_compile") 2>conftest.er1
29306   ac_status=$?
29307   grep -v '^ *+' conftest.er1 >conftest.err
29308   rm -f conftest.er1
29309   cat conftest.err >&5
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); } && {
29312          test -z "$ac_c_werror_flag" ||
29313          test ! -s conftest.err
29314        } && test -s conftest.$ac_objext; then
29315   ac_cv_header_jpeglib_h=yes
29316 else
29317   echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320         ac_cv_header_jpeglib_h=no
29321
29322 fi
29323
29324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325
29326 fi
29327
29328             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29329 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29330
29331             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29332                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29333 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29334 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29335   echo $ECHO_N "(cached) $ECHO_C" >&6
29336 else
29337   ac_check_lib_save_LIBS=$LIBS
29338 LIBS="-ljpeg  $LIBS"
29339 cat >conftest.$ac_ext <<_ACEOF
29340 /* confdefs.h.  */
29341 _ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h.  */
29345
29346 /* Override any GCC internal prototype to avoid an error.
29347    Use char because int might match the return type of a GCC
29348    builtin and then its argument prototype would still apply.  */
29349 #ifdef __cplusplus
29350 extern "C"
29351 #endif
29352 char jpeg_read_header ();
29353 int
29354 main ()
29355 {
29356 return jpeg_read_header ();
29357   ;
29358   return 0;
29359 }
29360 _ACEOF
29361 rm -f conftest.$ac_objext conftest$ac_exeext
29362 if { (ac_try="$ac_link"
29363 case "(($ac_try" in
29364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365   *) ac_try_echo=$ac_try;;
29366 esac
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368   (eval "$ac_link") 2>conftest.er1
29369   ac_status=$?
29370   grep -v '^ *+' conftest.er1 >conftest.err
29371   rm -f conftest.er1
29372   cat conftest.err >&5
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); } && {
29375          test -z "$ac_c_werror_flag" ||
29376          test ! -s conftest.err
29377        } && test -s conftest$ac_exeext &&
29378        $as_test_x conftest$ac_exeext; then
29379   ac_cv_lib_jpeg_jpeg_read_header=yes
29380 else
29381   echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29383
29384         ac_cv_lib_jpeg_jpeg_read_header=no
29385 fi
29386
29387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29388       conftest$ac_exeext conftest.$ac_ext
29389 LIBS=$ac_check_lib_save_LIBS
29390 fi
29391 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29392 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29393 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29394   JPEG_LINK=" -ljpeg"
29395 fi
29396
29397             fi
29398
29399             if test "x$JPEG_LINK" = "x" ; then
29400                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29401                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29402 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29403    { (exit 1); exit 1; }; }
29404                 else
29405                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29406 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29407                     wxUSE_LIBJPEG=builtin
29408                 fi
29409             else
29410                                 wxUSE_LIBJPEG=sys
29411
29412                 if test "$wxUSE_MSW" = 1; then
29413                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29414 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29415 if test "${ac_cv_type_boolean+set}" = set; then
29416   echo $ECHO_N "(cached) $ECHO_C" >&6
29417 else
29418   cat >conftest.$ac_ext <<_ACEOF
29419 /* confdefs.h.  */
29420 _ACEOF
29421 cat confdefs.h >>conftest.$ac_ext
29422 cat >>conftest.$ac_ext <<_ACEOF
29423 /* end confdefs.h.  */
29424 #include <windows.h>
29425
29426 typedef boolean ac__type_new_;
29427 int
29428 main ()
29429 {
29430 if ((ac__type_new_ *) 0)
29431   return 0;
29432 if (sizeof (ac__type_new_))
29433   return 0;
29434   ;
29435   return 0;
29436 }
29437 _ACEOF
29438 rm -f conftest.$ac_objext
29439 if { (ac_try="$ac_compile"
29440 case "(($ac_try" in
29441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442   *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445   (eval "$ac_compile") 2>conftest.er1
29446   ac_status=$?
29447   grep -v '^ *+' conftest.er1 >conftest.err
29448   rm -f conftest.er1
29449   cat conftest.err >&5
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); } && {
29452          test -z "$ac_c_werror_flag" ||
29453          test ! -s conftest.err
29454        } && test -s conftest.$ac_objext; then
29455   ac_cv_type_boolean=yes
29456 else
29457   echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29459
29460         ac_cv_type_boolean=no
29461 fi
29462
29463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29464 fi
29465 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29466 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29467 if test $ac_cv_type_boolean = yes; then
29468
29469 cat >>confdefs.h <<_ACEOF
29470 #define HAVE_BOOLEAN 1
29471 _ACEOF
29472
29473
29474                             { echo "$as_me:$LINENO: checking for boolean" >&5
29475 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29476 if test "${ac_cv_type_boolean+set}" = set; then
29477   echo $ECHO_N "(cached) $ECHO_C" >&6
29478 else
29479   cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485
29486                                     #undef HAVE_BOOLEAN
29487                                     #include <stdio.h>
29488                                     #include <jpeglib.h>
29489
29490
29491 typedef boolean ac__type_new_;
29492 int
29493 main ()
29494 {
29495 if ((ac__type_new_ *) 0)
29496   return 0;
29497 if (sizeof (ac__type_new_))
29498   return 0;
29499   ;
29500   return 0;
29501 }
29502 _ACEOF
29503 rm -f conftest.$ac_objext
29504 if { (ac_try="$ac_compile"
29505 case "(($ac_try" in
29506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507   *) ac_try_echo=$ac_try;;
29508 esac
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510   (eval "$ac_compile") 2>conftest.er1
29511   ac_status=$?
29512   grep -v '^ *+' conftest.er1 >conftest.err
29513   rm -f conftest.er1
29514   cat conftest.err >&5
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); } && {
29517          test -z "$ac_c_werror_flag" ||
29518          test ! -s conftest.err
29519        } && test -s conftest.$ac_objext; then
29520   ac_cv_type_boolean=yes
29521 else
29522   echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29524
29525         ac_cv_type_boolean=no
29526 fi
29527
29528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29529 fi
29530 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29531 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29532
29533 # The cast to long int works around a bug in the HP C Compiler
29534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29536 # This bug is HP SR number 8606223364.
29537 { echo "$as_me:$LINENO: checking size of boolean" >&5
29538 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29539 if test "${ac_cv_sizeof_boolean+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542   if test "$cross_compiling" = yes; then
29543   # Depending upon the size, compute the lo and hi bounds.
29544 cat >conftest.$ac_ext <<_ACEOF
29545 /* confdefs.h.  */
29546 _ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h.  */
29550
29551                                     #undef HAVE_BOOLEAN
29552                                     #include <stdio.h>
29553                                     #include <jpeglib.h>
29554
29555
29556    typedef boolean ac__type_sizeof_;
29557 int
29558 main ()
29559 {
29560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29561 test_array [0] = 0
29562
29563   ;
29564   return 0;
29565 }
29566 _ACEOF
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574   (eval "$ac_compile") 2>conftest.er1
29575   ac_status=$?
29576   grep -v '^ *+' conftest.er1 >conftest.err
29577   rm -f conftest.er1
29578   cat conftest.err >&5
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); } && {
29581          test -z "$ac_c_werror_flag" ||
29582          test ! -s conftest.err
29583        } && test -s conftest.$ac_objext; then
29584   ac_lo=0 ac_mid=0
29585   while :; do
29586     cat >conftest.$ac_ext <<_ACEOF
29587 /* confdefs.h.  */
29588 _ACEOF
29589 cat confdefs.h >>conftest.$ac_ext
29590 cat >>conftest.$ac_ext <<_ACEOF
29591 /* end confdefs.h.  */
29592
29593                                     #undef HAVE_BOOLEAN
29594                                     #include <stdio.h>
29595                                     #include <jpeglib.h>
29596
29597
29598    typedef boolean ac__type_sizeof_;
29599 int
29600 main ()
29601 {
29602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29603 test_array [0] = 0
29604
29605   ;
29606   return 0;
29607 }
29608 _ACEOF
29609 rm -f conftest.$ac_objext
29610 if { (ac_try="$ac_compile"
29611 case "(($ac_try" in
29612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613   *) ac_try_echo=$ac_try;;
29614 esac
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616   (eval "$ac_compile") 2>conftest.er1
29617   ac_status=$?
29618   grep -v '^ *+' conftest.er1 >conftest.err
29619   rm -f conftest.er1
29620   cat conftest.err >&5
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); } && {
29623          test -z "$ac_c_werror_flag" ||
29624          test ! -s conftest.err
29625        } && test -s conftest.$ac_objext; then
29626   ac_hi=$ac_mid; break
29627 else
29628   echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29630
29631         ac_lo=`expr $ac_mid + 1`
29632                         if test $ac_lo -le $ac_mid; then
29633                           ac_lo= ac_hi=
29634                           break
29635                         fi
29636                         ac_mid=`expr 2 '*' $ac_mid + 1`
29637 fi
29638
29639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29640   done
29641 else
29642   echo "$as_me: failed program was:" >&5
29643 sed 's/^/| /' conftest.$ac_ext >&5
29644
29645         cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651
29652                                     #undef HAVE_BOOLEAN
29653                                     #include <stdio.h>
29654                                     #include <jpeglib.h>
29655
29656
29657    typedef boolean ac__type_sizeof_;
29658 int
29659 main ()
29660 {
29661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29662 test_array [0] = 0
29663
29664   ;
29665   return 0;
29666 }
29667 _ACEOF
29668 rm -f conftest.$ac_objext
29669 if { (ac_try="$ac_compile"
29670 case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_compile") 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } && {
29682          test -z "$ac_c_werror_flag" ||
29683          test ! -s conftest.err
29684        } && test -s conftest.$ac_objext; then
29685   ac_hi=-1 ac_mid=-1
29686   while :; do
29687     cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693
29694                                     #undef HAVE_BOOLEAN
29695                                     #include <stdio.h>
29696                                     #include <jpeglib.h>
29697
29698
29699    typedef boolean ac__type_sizeof_;
29700 int
29701 main ()
29702 {
29703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29704 test_array [0] = 0
29705
29706   ;
29707   return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext
29711 if { (ac_try="$ac_compile"
29712 case "(($ac_try" in
29713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714   *) ac_try_echo=$ac_try;;
29715 esac
29716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29717   (eval "$ac_compile") 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } && {
29724          test -z "$ac_c_werror_flag" ||
29725          test ! -s conftest.err
29726        } && test -s conftest.$ac_objext; then
29727   ac_lo=$ac_mid; break
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_hi=`expr '(' $ac_mid ')' - 1`
29733                         if test $ac_mid -le $ac_hi; then
29734                           ac_lo= ac_hi=
29735                           break
29736                         fi
29737                         ac_mid=`expr 2 '*' $ac_mid`
29738 fi
29739
29740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29741   done
29742 else
29743   echo "$as_me: failed program was:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29745
29746         ac_lo= ac_hi=
29747 fi
29748
29749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29750 fi
29751
29752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753 # Binary search between lo and hi bounds.
29754 while test "x$ac_lo" != "x$ac_hi"; do
29755   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29756   cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762
29763                                     #undef HAVE_BOOLEAN
29764                                     #include <stdio.h>
29765                                     #include <jpeglib.h>
29766
29767
29768    typedef boolean ac__type_sizeof_;
29769 int
29770 main ()
29771 {
29772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29773 test_array [0] = 0
29774
29775   ;
29776   return 0;
29777 }
29778 _ACEOF
29779 rm -f conftest.$ac_objext
29780 if { (ac_try="$ac_compile"
29781 case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786   (eval "$ac_compile") 2>conftest.er1
29787   ac_status=$?
29788   grep -v '^ *+' conftest.er1 >conftest.err
29789   rm -f conftest.er1
29790   cat conftest.err >&5
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); } && {
29793          test -z "$ac_c_werror_flag" ||
29794          test ! -s conftest.err
29795        } && test -s conftest.$ac_objext; then
29796   ac_hi=$ac_mid
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801         ac_lo=`expr '(' $ac_mid ')' + 1`
29802 fi
29803
29804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805 done
29806 case $ac_lo in
29807 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29808 '') if test "$ac_cv_type_boolean" = yes; then
29809      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29810 See \`config.log' for more details." >&5
29811 echo "$as_me: error: cannot compute sizeof (boolean)
29812 See \`config.log' for more details." >&2;}
29813    { (exit 77); exit 77; }; }
29814    else
29815      ac_cv_sizeof_boolean=0
29816    fi ;;
29817 esac
29818 else
29819   cat >conftest.$ac_ext <<_ACEOF
29820 /* confdefs.h.  */
29821 _ACEOF
29822 cat confdefs.h >>conftest.$ac_ext
29823 cat >>conftest.$ac_ext <<_ACEOF
29824 /* end confdefs.h.  */
29825
29826                                     #undef HAVE_BOOLEAN
29827                                     #include <stdio.h>
29828                                     #include <jpeglib.h>
29829
29830
29831    typedef boolean ac__type_sizeof_;
29832 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29833 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29834 #include <stdio.h>
29835 #include <stdlib.h>
29836 int
29837 main ()
29838 {
29839
29840   FILE *f = fopen ("conftest.val", "w");
29841   if (! f)
29842     return 1;
29843   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29844     {
29845       long int i = longval ();
29846       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29847         return 1;
29848       fprintf (f, "%ld\n", i);
29849     }
29850   else
29851     {
29852       unsigned long int i = ulongval ();
29853       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29854         return 1;
29855       fprintf (f, "%lu\n", i);
29856     }
29857   return ferror (f) || fclose (f) != 0;
29858
29859   ;
29860   return 0;
29861 }
29862 _ACEOF
29863 rm -f conftest$ac_exeext
29864 if { (ac_try="$ac_link"
29865 case "(($ac_try" in
29866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29867   *) ac_try_echo=$ac_try;;
29868 esac
29869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29870   (eval "$ac_link") 2>&5
29871   ac_status=$?
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29874   { (case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_try") 2>&5
29880   ac_status=$?
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); }; }; then
29883   ac_cv_sizeof_boolean=`cat conftest.val`
29884 else
29885   echo "$as_me: program exited with status $ac_status" >&5
29886 echo "$as_me: failed program was:" >&5
29887 sed 's/^/| /' conftest.$ac_ext >&5
29888
29889 ( exit $ac_status )
29890 if test "$ac_cv_type_boolean" = yes; then
29891      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29892 See \`config.log' for more details." >&5
29893 echo "$as_me: error: cannot compute sizeof (boolean)
29894 See \`config.log' for more details." >&2;}
29895    { (exit 77); exit 77; }; }
29896    else
29897      ac_cv_sizeof_boolean=0
29898    fi
29899 fi
29900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29901 fi
29902 rm -f conftest.val
29903 fi
29904 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29905 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29906
29907
29908
29909 cat >>confdefs.h <<_ACEOF
29910 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29911 _ACEOF
29912
29913
29914                             cat >>confdefs.h <<_ACEOF
29915 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29916 _ACEOF
29917
29918
29919 fi
29920
29921                 fi
29922             fi
29923         fi
29924     fi
29925 fi
29926
29927
29928 TIFF_LINK=
29929 TIFF_PREREQ_LINKS=-lm
29930 if test "$wxUSE_LIBTIFF" != "no" ; then
29931     cat >>confdefs.h <<\_ACEOF
29932 #define wxUSE_LIBTIFF 1
29933 _ACEOF
29934
29935
29936     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29937                         if test "$wxUSE_LIBJPEG" = "sys"; then
29938             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29939         fi
29940         if test "$wxUSE_ZLIB" = "sys"; then
29941             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29942         fi
29943         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29944 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29945 if test "${ac_cv_header_tiffio_h+set}" = set; then
29946   echo $ECHO_N "(cached) $ECHO_C" >&6
29947 else
29948   cat >conftest.$ac_ext <<_ACEOF
29949 /* confdefs.h.  */
29950 _ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h.  */
29954
29955
29956
29957 #include <tiffio.h>
29958 _ACEOF
29959 rm -f conftest.$ac_objext
29960 if { (ac_try="$ac_compile"
29961 case "(($ac_try" in
29962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963   *) ac_try_echo=$ac_try;;
29964 esac
29965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966   (eval "$ac_compile") 2>conftest.er1
29967   ac_status=$?
29968   grep -v '^ *+' conftest.er1 >conftest.err
29969   rm -f conftest.er1
29970   cat conftest.err >&5
29971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); } && {
29973          test -z "$ac_c_werror_flag" ||
29974          test ! -s conftest.err
29975        } && test -s conftest.$ac_objext; then
29976   ac_cv_header_tiffio_h=yes
29977 else
29978   echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29980
29981         ac_cv_header_tiffio_h=no
29982 fi
29983
29984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29985 fi
29986 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29987 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29988 if test $ac_cv_header_tiffio_h = yes; then
29989
29990                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29991 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29992 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995   ac_check_lib_save_LIBS=$LIBS
29996 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29997 cat >conftest.$ac_ext <<_ACEOF
29998 /* confdefs.h.  */
29999 _ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h.  */
30003
30004 /* Override any GCC internal prototype to avoid an error.
30005    Use char because int might match the return type of a GCC
30006    builtin and then its argument prototype would still apply.  */
30007 #ifdef __cplusplus
30008 extern "C"
30009 #endif
30010 char TIFFError ();
30011 int
30012 main ()
30013 {
30014 return TIFFError ();
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext 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>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } && {
30033          test -z "$ac_c_werror_flag" ||
30034          test ! -s conftest.err
30035        } && test -s conftest$ac_exeext &&
30036        $as_test_x conftest$ac_exeext; then
30037   ac_cv_lib_tiff_TIFFError=yes
30038 else
30039   echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30041
30042         ac_cv_lib_tiff_TIFFError=no
30043 fi
30044
30045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30046       conftest$ac_exeext conftest.$ac_ext
30047 LIBS=$ac_check_lib_save_LIBS
30048 fi
30049 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
30050 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
30051 if test $ac_cv_lib_tiff_TIFFError = yes; then
30052   TIFF_LINK=" -ltiff"
30053 fi
30054
30055
30056 fi
30057
30058
30059
30060         if test "x$TIFF_LINK" = "x" ; then
30061             if test "$wxUSE_LIBTIFF" = "sys" ; then
30062                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30063 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30064    { (exit 1); exit 1; }; }
30065             else
30066                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30067 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30068                 wxUSE_LIBTIFF=builtin
30069             fi
30070         else
30071                         wxUSE_LIBTIFF=sys
30072         fi
30073     fi
30074 fi
30075
30076
30077 if test "$wxUSE_WCHAR_T" != "yes"; then
30078     if test "$wxUSE_EXPAT" != "no"; then
30079         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30080 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30081         wxUSE_EXPAT=no
30082     fi
30083     if test "$wxUSE_XML" != "no"; then
30084         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30085 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30086         wxUSE_XML=no
30087     fi
30088 fi
30089
30090 if test "$wxUSE_EXPAT" != "no"; then
30091     wxUSE_XML=yes
30092     cat >>confdefs.h <<\_ACEOF
30093 #define wxUSE_EXPAT 1
30094 _ACEOF
30095
30096     cat >>confdefs.h <<\_ACEOF
30097 #define wxUSE_XML 1
30098 _ACEOF
30099
30100
30101     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30102         { echo "$as_me:$LINENO: checking for expat.h" >&5
30103 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30104 if test "${ac_cv_header_expat_h+set}" = set; then
30105   echo $ECHO_N "(cached) $ECHO_C" >&6
30106 else
30107   cat >conftest.$ac_ext <<_ACEOF
30108 /* confdefs.h.  */
30109 _ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h.  */
30113
30114
30115 #include <expat.h>
30116 _ACEOF
30117 rm -f conftest.$ac_objext
30118 if { (ac_try="$ac_compile"
30119 case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124   (eval "$ac_compile") 2>conftest.er1
30125   ac_status=$?
30126   grep -v '^ *+' conftest.er1 >conftest.err
30127   rm -f conftest.er1
30128   cat conftest.err >&5
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); } && {
30131          test -z "$ac_c_werror_flag" ||
30132          test ! -s conftest.err
30133        } && test -s conftest.$ac_objext; then
30134   ac_cv_header_expat_h=yes
30135 else
30136   echo "$as_me: failed program was:" >&5
30137 sed 's/^/| /' conftest.$ac_ext >&5
30138
30139         ac_cv_header_expat_h=no
30140 fi
30141
30142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30143 fi
30144 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30145 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30146 if test $ac_cv_header_expat_h = yes; then
30147   found_expat_h=1
30148 fi
30149
30150
30151         if test "x$found_expat_h" = "x1"; then
30152                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30153 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30154 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30155   echo $ECHO_N "(cached) $ECHO_C" >&6
30156 else
30157
30158                 ac_ext=cpp
30159 ac_cpp='$CXXCPP $CPPFLAGS'
30160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30163
30164                 cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h.  */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h.  */
30170 #include <expat.h>
30171 int
30172 main ()
30173 {
30174
30175   ;
30176   return 0;
30177 }
30178 _ACEOF
30179 rm -f conftest.$ac_objext
30180 if { (ac_try="$ac_compile"
30181 case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_compile") 2>conftest.er1
30187   ac_status=$?
30188   grep -v '^ *+' conftest.er1 >conftest.err
30189   rm -f conftest.er1
30190   cat conftest.err >&5
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); } && {
30193          test -z "$ac_cxx_werror_flag" ||
30194          test ! -s conftest.err
30195        } && test -s conftest.$ac_objext; then
30196   wx_cv_expat_is_not_broken=yes
30197 else
30198   echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30200
30201         wx_cv_expat_is_not_broken=no
30202
30203 fi
30204
30205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30206                 ac_ext=c
30207 ac_cpp='$CPP $CPPFLAGS'
30208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30211
30212
30213
30214 fi
30215 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30216 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30217             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30218                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30219 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30220 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223   ac_check_lib_save_LIBS=$LIBS
30224 LIBS="-lexpat  $LIBS"
30225 cat >conftest.$ac_ext <<_ACEOF
30226 /* confdefs.h.  */
30227 _ACEOF
30228 cat confdefs.h >>conftest.$ac_ext
30229 cat >>conftest.$ac_ext <<_ACEOF
30230 /* end confdefs.h.  */
30231
30232 /* Override any GCC internal prototype to avoid an error.
30233    Use char because int might match the return type of a GCC
30234    builtin and then its argument prototype would still apply.  */
30235 #ifdef __cplusplus
30236 extern "C"
30237 #endif
30238 char XML_ParserCreate ();
30239 int
30240 main ()
30241 {
30242 return XML_ParserCreate ();
30243   ;
30244   return 0;
30245 }
30246 _ACEOF
30247 rm -f conftest.$ac_objext conftest$ac_exeext
30248 if { (ac_try="$ac_link"
30249 case "(($ac_try" in
30250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251   *) ac_try_echo=$ac_try;;
30252 esac
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254   (eval "$ac_link") 2>conftest.er1
30255   ac_status=$?
30256   grep -v '^ *+' conftest.er1 >conftest.err
30257   rm -f conftest.er1
30258   cat conftest.err >&5
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); } && {
30261          test -z "$ac_c_werror_flag" ||
30262          test ! -s conftest.err
30263        } && test -s conftest$ac_exeext &&
30264        $as_test_x conftest$ac_exeext; then
30265   ac_cv_lib_expat_XML_ParserCreate=yes
30266 else
30267   echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30269
30270         ac_cv_lib_expat_XML_ParserCreate=no
30271 fi
30272
30273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30274       conftest$ac_exeext conftest.$ac_ext
30275 LIBS=$ac_check_lib_save_LIBS
30276 fi
30277 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30278 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30279 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30280   EXPAT_LINK=" -lexpat"
30281 fi
30282
30283             fi
30284         fi
30285         if test "x$EXPAT_LINK" = "x" ; then
30286             if test "$wxUSE_EXPAT" = "sys" ; then
30287                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30288 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30289    { (exit 1); exit 1; }; }
30290             else
30291                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30292 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30293                 wxUSE_EXPAT=builtin
30294             fi
30295         else
30296                         wxUSE_EXPAT=sys
30297         fi
30298     fi
30299     if test "$wxUSE_EXPAT" = "builtin" ; then
30300                 subdirs="$subdirs src/expat"
30301
30302     fi
30303 fi
30304
30305
30306
30307 if test "$wxUSE_LIBMSPACK" != "no"; then
30308     { echo "$as_me:$LINENO: checking for mspack.h" >&5
30309 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30310 if test "${ac_cv_header_mspack_h+set}" = set; then
30311   echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30313   cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h.  */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h.  */
30319
30320
30321 #include <mspack.h>
30322 _ACEOF
30323 rm -f conftest.$ac_objext
30324 if { (ac_try="$ac_compile"
30325 case "(($ac_try" in
30326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30327   *) ac_try_echo=$ac_try;;
30328 esac
30329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30330   (eval "$ac_compile") 2>conftest.er1
30331   ac_status=$?
30332   grep -v '^ *+' conftest.er1 >conftest.err
30333   rm -f conftest.er1
30334   cat conftest.err >&5
30335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336   (exit $ac_status); } && {
30337          test -z "$ac_c_werror_flag" ||
30338          test ! -s conftest.err
30339        } && test -s conftest.$ac_objext; then
30340   ac_cv_header_mspack_h=yes
30341 else
30342   echo "$as_me: failed program was:" >&5
30343 sed 's/^/| /' conftest.$ac_ext >&5
30344
30345         ac_cv_header_mspack_h=no
30346 fi
30347
30348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30349 fi
30350 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30351 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30352 if test $ac_cv_header_mspack_h = yes; then
30353   found_mspack_h=1
30354 fi
30355
30356
30357     if test "x$found_mspack_h" = "x1"; then
30358         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30359 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
30360 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30361   echo $ECHO_N "(cached) $ECHO_C" >&6
30362 else
30363   ac_check_lib_save_LIBS=$LIBS
30364 LIBS="-lmspack  $LIBS"
30365 cat >conftest.$ac_ext <<_ACEOF
30366 /* confdefs.h.  */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h.  */
30371
30372 /* Override any GCC internal prototype to avoid an error.
30373    Use char because int might match the return type of a GCC
30374    builtin and then its argument prototype would still apply.  */
30375 #ifdef __cplusplus
30376 extern "C"
30377 #endif
30378 char mspack_create_chm_decompressor ();
30379 int
30380 main ()
30381 {
30382 return mspack_create_chm_decompressor ();
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (ac_try="$ac_link"
30389 case "(($ac_try" in
30390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391   *) ac_try_echo=$ac_try;;
30392 esac
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394   (eval "$ac_link") 2>conftest.er1
30395   ac_status=$?
30396   grep -v '^ *+' conftest.er1 >conftest.err
30397   rm -f conftest.er1
30398   cat conftest.err >&5
30399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } && {
30401          test -z "$ac_c_werror_flag" ||
30402          test ! -s conftest.err
30403        } && test -s conftest$ac_exeext &&
30404        $as_test_x conftest$ac_exeext; then
30405   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30406 else
30407   echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30409
30410         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
30411 fi
30412
30413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30414       conftest$ac_exeext conftest.$ac_ext
30415 LIBS=$ac_check_lib_save_LIBS
30416 fi
30417 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30418 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
30419 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30420   MSPACK_LINK=" -lmspack"
30421 fi
30422
30423     fi
30424     if test "x$MSPACK_LINK" = "x" ; then
30425         wxUSE_LIBMSPACK=no
30426     fi
30427 fi
30428
30429 if test "$wxUSE_LIBMSPACK" != "no"; then
30430     cat >>confdefs.h <<\_ACEOF
30431 #define wxUSE_LIBMSPACK 1
30432 _ACEOF
30433
30434 fi
30435
30436
30437
30438 AFMINSTALL=
30439 WIN32INSTALL=
30440
30441 TOOLKIT=
30442 TOOLKIT_INCLUDE=
30443 WIDGET_SET=
30444
30445 if test "$USE_WIN32" = 1 ; then
30446
30447 for ac_header in w32api.h
30448 do
30449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30453   echo $ECHO_N "(cached) $ECHO_C" >&6
30454 else
30455   cat >conftest.$ac_ext <<_ACEOF
30456 /* confdefs.h.  */
30457 _ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h.  */
30461
30462
30463 #include <$ac_header>
30464 _ACEOF
30465 rm -f conftest.$ac_objext
30466 if { (ac_try="$ac_compile"
30467 case "(($ac_try" in
30468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30469   *) ac_try_echo=$ac_try;;
30470 esac
30471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30472   (eval "$ac_compile") 2>conftest.er1
30473   ac_status=$?
30474   grep -v '^ *+' conftest.er1 >conftest.err
30475   rm -f conftest.er1
30476   cat conftest.err >&5
30477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); } && {
30479          test -z "$ac_c_werror_flag" ||
30480          test ! -s conftest.err
30481        } && test -s conftest.$ac_objext; then
30482   eval "$as_ac_Header=yes"
30483 else
30484   echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30486
30487         eval "$as_ac_Header=no"
30488 fi
30489
30490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30491 fi
30492 ac_res=`eval echo '${'$as_ac_Header'}'`
30493                { echo "$as_me:$LINENO: result: $ac_res" >&5
30494 echo "${ECHO_T}$ac_res" >&6; }
30495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30496   cat >>confdefs.h <<_ACEOF
30497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30498 _ACEOF
30499
30500 fi
30501
30502 done
30503
30504     { echo "$as_me:$LINENO: checking for windows.h" >&5
30505 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30506 if test "${ac_cv_header_windows_h+set}" = set; then
30507   echo $ECHO_N "(cached) $ECHO_C" >&6
30508 else
30509   cat >conftest.$ac_ext <<_ACEOF
30510 /* confdefs.h.  */
30511 _ACEOF
30512 cat confdefs.h >>conftest.$ac_ext
30513 cat >>conftest.$ac_ext <<_ACEOF
30514 /* end confdefs.h.  */
30515
30516
30517 #include <windows.h>
30518 _ACEOF
30519 rm -f conftest.$ac_objext
30520 if { (ac_try="$ac_compile"
30521 case "(($ac_try" in
30522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523   *) ac_try_echo=$ac_try;;
30524 esac
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526   (eval "$ac_compile") 2>conftest.er1
30527   ac_status=$?
30528   grep -v '^ *+' conftest.er1 >conftest.err
30529   rm -f conftest.er1
30530   cat conftest.err >&5
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); } && {
30533          test -z "$ac_c_werror_flag" ||
30534          test ! -s conftest.err
30535        } && test -s conftest.$ac_objext; then
30536   ac_cv_header_windows_h=yes
30537 else
30538   echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30540
30541         ac_cv_header_windows_h=no
30542 fi
30543
30544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30545 fi
30546 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30547 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30548 if test $ac_cv_header_windows_h = yes; then
30549   :
30550 else
30551
30552         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30553 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30554    { (exit 1); exit 1; }; }
30555
30556 fi
30557
30558
30559
30560             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30561
30562     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30563         LIBS="$LIBS -loleacc"
30564     fi
30565
30566     case "${host}" in
30567         *-*-cygwin* )
30568                         LIBS="$LIBS -lkernel32 -luser32"
30569     esac
30570
30571         if test "$wxUSE_ODBC" = "sys" ; then
30572         wxUSE_ODBC = "yes"
30573     fi
30574     if test "$wxUSE_ODBC" = "yes" ; then
30575         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30576         cat >>confdefs.h <<\_ACEOF
30577 #define wxUSE_ODBC 1
30578 _ACEOF
30579
30580     fi
30581
30582         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30583     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30584
30585                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30586
30587         WIN32INSTALL=win32install
30588
30589         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30590 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30591 if test "${ac_cv_header_pbt_h+set}" = set; then
30592   echo $ECHO_N "(cached) $ECHO_C" >&6
30593 else
30594   cat >conftest.$ac_ext <<_ACEOF
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600
30601
30602 #include <pbt.h>
30603 _ACEOF
30604 rm -f conftest.$ac_objext
30605 if { (ac_try="$ac_compile"
30606 case "(($ac_try" in
30607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30608   *) ac_try_echo=$ac_try;;
30609 esac
30610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30611   (eval "$ac_compile") 2>conftest.er1
30612   ac_status=$?
30613   grep -v '^ *+' conftest.er1 >conftest.err
30614   rm -f conftest.er1
30615   cat conftest.err >&5
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); } && {
30618          test -z "$ac_c_werror_flag" ||
30619          test ! -s conftest.err
30620        } && test -s conftest.$ac_objext; then
30621   ac_cv_header_pbt_h=yes
30622 else
30623   echo "$as_me: failed program was:" >&5
30624 sed 's/^/| /' conftest.$ac_ext >&5
30625
30626         ac_cv_header_pbt_h=no
30627 fi
30628
30629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30630 fi
30631 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30632 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30633 if test $ac_cv_header_pbt_h = yes; then
30634   :
30635 else
30636   cat >>confdefs.h <<\_ACEOF
30637 #define NEED_PBT_H 1
30638 _ACEOF
30639
30640 fi
30641
30642
30643 fi
30644
30645 if test "$wxUSE_GUI" = "yes"; then
30646     USE_GUI=1
30647
30648     GUI_TK_LIBRARY=
30649
30650     WXGTK12=
30651     WXGTK127=
30652     WXGTK20=
30653     WXGPE=
30654
30655     if test "$wxUSE_COCOA" = 1 ; then
30656         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30657             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30658 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30659             wxUSE_PRINTING_ARCHITECTURE=no
30660         fi
30661         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30662             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30663 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30664             wxUSE_DRAG_AND_DROP=no
30665         fi
30666         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30667             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30668 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30669             wxUSE_DRAGIMAGE=no
30670         fi
30671     fi
30672
30673     if test "$wxUSE_MSW" = 1 ; then
30674         TOOLKIT=MSW
30675         GUIDIST=MSW_DIST
30676
30677                 case "${host}" in
30678             *-*-mingw32* )
30679                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30680         esac
30681     fi
30682
30683     if test "$wxUSE_GTK" = 1; then
30684                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30685 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30686
30687         gtk_version_cached=1
30688         if test "${wx_cv_lib_gtk+set}" = set; then
30689   echo $ECHO_N "(cached) $ECHO_C" >&6
30690 else
30691
30692                                                 gtk_version_cached=0
30693                 { echo "$as_me:$LINENO: result: " >&5
30694 echo "${ECHO_T}" >&6; }
30695
30696                                                 GTK_MODULES=
30697                 if test "$wxUSE_THREADS" = "yes"; then
30698                     GTK_MODULES=gthread
30699                 fi
30700
30701                                 wx_cv_lib_gtk=
30702                 if test "x$wxGTK_VERSION" != "x1"
30703                 then
30704                                                                                 case "${host}" in
30705                         *-*-solaris2* )
30706                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30707                                 enable_gtktest=no
30708                             fi
30709                     esac
30710
30711                     # Check whether --enable-gtktest was given.
30712 if test "${enable_gtktest+set}" = set; then
30713   enableval=$enable_gtktest;
30714 else
30715   enable_gtktest=yes
30716 fi
30717
30718
30719   pkg_config_args=gtk+-2.0
30720   for module in . $GTK_MODULES
30721   do
30722       case "$module" in
30723          gthread)
30724              pkg_config_args="$pkg_config_args gthread-2.0"
30725          ;;
30726       esac
30727   done
30728
30729   no_gtk=""
30730
30731   # Extract the first word of "pkg-config", so it can be a program name with args.
30732 set dummy pkg-config; ac_word=$2
30733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30735 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30736   echo $ECHO_N "(cached) $ECHO_C" >&6
30737 else
30738   case $PKG_CONFIG in
30739   [\\/]* | ?:[\\/]*)
30740   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30741   ;;
30742   *)
30743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744 for as_dir in $PATH
30745 do
30746   IFS=$as_save_IFS
30747   test -z "$as_dir" && as_dir=.
30748   for ac_exec_ext in '' $ac_executable_extensions; do
30749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30752     break 2
30753   fi
30754 done
30755 done
30756 IFS=$as_save_IFS
30757
30758   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30759   ;;
30760 esac
30761 fi
30762 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30763 if test -n "$PKG_CONFIG"; then
30764   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30765 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30766 else
30767   { echo "$as_me:$LINENO: result: no" >&5
30768 echo "${ECHO_T}no" >&6; }
30769 fi
30770
30771
30772
30773   if test x$PKG_CONFIG != xno ; then
30774     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30775       :
30776     else
30777       echo "*** pkg-config too old; version 0.7 or better required."
30778       no_gtk=yes
30779       PKG_CONFIG=no
30780     fi
30781   else
30782     no_gtk=yes
30783   fi
30784
30785   min_gtk_version=2.0.0
30786   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30787 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30788
30789   if test x$PKG_CONFIG != xno ; then
30790     ## don't try to run the test against uninstalled libtool libs
30791     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30792           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30793           enable_gtktest=no
30794     fi
30795
30796     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30797           :
30798     else
30799           no_gtk=yes
30800     fi
30801   fi
30802
30803   if test x"$no_gtk" = x ; then
30804     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30805     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30806     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30807            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30808     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30809            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30810     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30811            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30812     if test "x$enable_gtktest" = "xyes" ; then
30813       ac_save_CFLAGS="$CFLAGS"
30814       ac_save_LIBS="$LIBS"
30815       CFLAGS="$CFLAGS $GTK_CFLAGS"
30816       LIBS="$GTK_LIBS $LIBS"
30817       rm -f conf.gtktest
30818       if test "$cross_compiling" = yes; then
30819   echo $ac_n "cross compiling; assumed OK... $ac_c"
30820 else
30821   cat >conftest.$ac_ext <<_ACEOF
30822 /* confdefs.h.  */
30823 _ACEOF
30824 cat confdefs.h >>conftest.$ac_ext
30825 cat >>conftest.$ac_ext <<_ACEOF
30826 /* end confdefs.h.  */
30827
30828 #include <gtk/gtk.h>
30829 #include <stdio.h>
30830 #include <stdlib.h>
30831
30832 int
30833 main ()
30834 {
30835   int major, minor, micro;
30836   char *tmp_version;
30837
30838   system ("touch conf.gtktest");
30839
30840   /* HP/UX 9 (%@#!) writes to sscanf strings */
30841   tmp_version = g_strdup("$min_gtk_version");
30842   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30843      printf("%s, bad version string\n", "$min_gtk_version");
30844      exit(1);
30845    }
30846
30847   if ((gtk_major_version != $gtk_config_major_version) ||
30848       (gtk_minor_version != $gtk_config_minor_version) ||
30849       (gtk_micro_version != $gtk_config_micro_version))
30850     {
30851       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30852              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30853              gtk_major_version, gtk_minor_version, gtk_micro_version);
30854       printf ("*** was found! If pkg-config was correct, then it is best\n");
30855       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30856       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30857       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30858       printf("*** required on your system.\n");
30859       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30860       printf("*** to point to the correct configuration files\n");
30861     }
30862   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30863            (gtk_minor_version != GTK_MINOR_VERSION) ||
30864            (gtk_micro_version != GTK_MICRO_VERSION))
30865     {
30866       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30867              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30868       printf("*** library (version %d.%d.%d)\n",
30869              gtk_major_version, gtk_minor_version, gtk_micro_version);
30870     }
30871   else
30872     {
30873       if ((gtk_major_version > major) ||
30874         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30875         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30876       {
30877         return 0;
30878        }
30879      else
30880       {
30881         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30882                gtk_major_version, gtk_minor_version, gtk_micro_version);
30883         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30884                major, minor, micro);
30885         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30886         printf("***\n");
30887         printf("*** If you have already installed a sufficiently new version, this error\n");
30888         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30889         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30890         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30891         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30892         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30893         printf("*** so that the correct libraries are found at run-time))\n");
30894       }
30895     }
30896   return 1;
30897 }
30898
30899 _ACEOF
30900 rm -f conftest$ac_exeext
30901 if { (ac_try="$ac_link"
30902 case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907   (eval "$ac_link") 2>&5
30908   ac_status=$?
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30911   { (case "(($ac_try" in
30912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913   *) ac_try_echo=$ac_try;;
30914 esac
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916   (eval "$ac_try") 2>&5
30917   ac_status=$?
30918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919   (exit $ac_status); }; }; then
30920   :
30921 else
30922   echo "$as_me: program exited with status $ac_status" >&5
30923 echo "$as_me: failed program was:" >&5
30924 sed 's/^/| /' conftest.$ac_ext >&5
30925
30926 ( exit $ac_status )
30927 no_gtk=yes
30928 fi
30929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30930 fi
30931
30932
30933        CFLAGS="$ac_save_CFLAGS"
30934        LIBS="$ac_save_LIBS"
30935      fi
30936   fi
30937   if test "x$no_gtk" = x ; then
30938      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30939 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30940      wx_cv_lib_gtk=2.0
30941   else
30942      { echo "$as_me:$LINENO: result: no" >&5
30943 echo "${ECHO_T}no" >&6; }
30944      if test "$PKG_CONFIG" = "no" ; then
30945        echo "*** A new enough version of pkg-config was not found."
30946        echo "*** See http://pkgconfig.sourceforge.net"
30947      else
30948        if test -f conf.gtktest ; then
30949         :
30950        else
30951           echo "*** Could not run GTK+ test program, checking why..."
30952           ac_save_CFLAGS="$CFLAGS"
30953           ac_save_LIBS="$LIBS"
30954           CFLAGS="$CFLAGS $GTK_CFLAGS"
30955           LIBS="$LIBS $GTK_LIBS"
30956           cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962
30963 #include <gtk/gtk.h>
30964 #include <stdio.h>
30965
30966 int
30967 main ()
30968 {
30969  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30970   ;
30971   return 0;
30972 }
30973 _ACEOF
30974 rm -f conftest.$ac_objext conftest$ac_exeext
30975 if { (ac_try="$ac_link"
30976 case "(($ac_try" in
30977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978   *) ac_try_echo=$ac_try;;
30979 esac
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981   (eval "$ac_link") 2>conftest.er1
30982   ac_status=$?
30983   grep -v '^ *+' conftest.er1 >conftest.err
30984   rm -f conftest.er1
30985   cat conftest.err >&5
30986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987   (exit $ac_status); } && {
30988          test -z "$ac_c_werror_flag" ||
30989          test ! -s conftest.err
30990        } && test -s conftest$ac_exeext &&
30991        $as_test_x conftest$ac_exeext; then
30992    echo "*** The test program compiled, but did not run. This usually means"
30993           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30994           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30995           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30996           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30997           echo "*** is required on your system"
30998           echo "***"
30999           echo "*** If you have an old version installed, it is best to remove it, although"
31000           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31001 else
31002   echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31004
31005          echo "*** The test program failed to compile or link. See the file config.log for the"
31006           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
31007 fi
31008
31009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31010       conftest$ac_exeext conftest.$ac_ext
31011           CFLAGS="$ac_save_CFLAGS"
31012           LIBS="$ac_save_LIBS"
31013        fi
31014      fi
31015      GTK_CFLAGS=""
31016      GTK_LIBS=""
31017      :
31018   fi
31019
31020
31021   rm -f conf.gtktest
31022
31023
31024                                         case "${host}" in
31025                         *-*-solaris2* )
31026                             if test "$wxUSE_SHARED" != "yes"; then
31027                                 GTK_LIBS="$GTK_LIBS -lX11"
31028                             fi
31029                     esac
31030                 fi
31031
31032                                 if test -z "$wx_cv_lib_gtk"; then
31033                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
31034
31035 # Check whether --with-gtk-prefix was given.
31036 if test "${with_gtk_prefix+set}" = set; then
31037   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31038 else
31039   gtk_config_prefix=""
31040 fi
31041
31042
31043 # Check whether --with-gtk-exec-prefix was given.
31044 if test "${with_gtk_exec_prefix+set}" = set; then
31045   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31046 else
31047   gtk_config_exec_prefix=""
31048 fi
31049
31050 # Check whether --enable-gtktest was given.
31051 if test "${enable_gtktest+set}" = set; then
31052   enableval=$enable_gtktest;
31053 else
31054   enable_gtktest=yes
31055 fi
31056
31057
31058   for module in . $GTK_MODULES
31059   do
31060       case "$module" in
31061          gthread)
31062              gtk_config_args="$gtk_config_args gthread"
31063          ;;
31064       esac
31065   done
31066
31067   if test x$gtk_config_exec_prefix != x ; then
31068      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31069      if test x${GTK_CONFIG+set} != xset ; then
31070         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31071      fi
31072   fi
31073   if test x$gtk_config_prefix != x ; then
31074      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31075      if test x${GTK_CONFIG+set} != xset ; then
31076         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31077      fi
31078   fi
31079
31080   # Extract the first word of "gtk-config", so it can be a program name with args.
31081 set dummy gtk-config; ac_word=$2
31082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31084 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31085   echo $ECHO_N "(cached) $ECHO_C" >&6
31086 else
31087   case $GTK_CONFIG in
31088   [\\/]* | ?:[\\/]*)
31089   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31090   ;;
31091   *)
31092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31093 for as_dir in $PATH
31094 do
31095   IFS=$as_save_IFS
31096   test -z "$as_dir" && as_dir=.
31097   for ac_exec_ext in '' $ac_executable_extensions; do
31098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31099     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31101     break 2
31102   fi
31103 done
31104 done
31105 IFS=$as_save_IFS
31106
31107   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31108   ;;
31109 esac
31110 fi
31111 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31112 if test -n "$GTK_CONFIG"; then
31113   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31114 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31115 else
31116   { echo "$as_me:$LINENO: result: no" >&5
31117 echo "${ECHO_T}no" >&6; }
31118 fi
31119
31120
31121   min_gtk_version=1.2.7
31122   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31123 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31124   no_gtk=""
31125   if test "$GTK_CONFIG" = "no" ; then
31126     no_gtk=yes
31127   else
31128     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31129     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31130     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31131            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31132     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31133            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31134     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31135            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31136     if test "x$enable_gtktest" = "xyes" ; then
31137       ac_save_CFLAGS="$CFLAGS"
31138       ac_save_LIBS="$LIBS"
31139       CFLAGS="$CFLAGS $GTK_CFLAGS"
31140       LIBS="$GTK_LIBS $LIBS"
31141       rm -f conf.gtktest
31142       if test "$cross_compiling" = yes; then
31143   echo $ac_n "cross compiling; assumed OK... $ac_c"
31144 else
31145   cat >conftest.$ac_ext <<_ACEOF
31146 /* confdefs.h.  */
31147 _ACEOF
31148 cat confdefs.h >>conftest.$ac_ext
31149 cat >>conftest.$ac_ext <<_ACEOF
31150 /* end confdefs.h.  */
31151
31152 #include <gtk/gtk.h>
31153 #include <stdio.h>
31154 #include <stdlib.h>
31155
31156 int
31157 main ()
31158 {
31159   int major, minor, micro;
31160   char *tmp_version;
31161
31162   system ("touch conf.gtktest");
31163
31164   /* HP/UX 9 (%@#!) writes to sscanf strings */
31165   tmp_version = g_strdup("$min_gtk_version");
31166   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31167      printf("%s, bad version string\n", "$min_gtk_version");
31168      exit(1);
31169    }
31170
31171   if ((gtk_major_version != $gtk_config_major_version) ||
31172       (gtk_minor_version != $gtk_config_minor_version) ||
31173       (gtk_micro_version != $gtk_config_micro_version))
31174     {
31175       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31176              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31177              gtk_major_version, gtk_minor_version, gtk_micro_version);
31178       printf ("*** was found! If gtk-config was correct, then it is best\n");
31179       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31180       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31181       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31182       printf("*** required on your system.\n");
31183       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31184       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31185       printf("*** before re-running configure\n");
31186     }
31187 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31188   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31189            (gtk_minor_version != GTK_MINOR_VERSION) ||
31190            (gtk_micro_version != GTK_MICRO_VERSION))
31191     {
31192       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31193              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31194       printf("*** library (version %d.%d.%d)\n",
31195              gtk_major_version, gtk_minor_version, gtk_micro_version);
31196     }
31197 #endif /* defined (GTK_MAJOR_VERSION) ... */
31198   else
31199     {
31200       if ((gtk_major_version > major) ||
31201         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31202         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31203       {
31204         return 0;
31205        }
31206      else
31207       {
31208         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31209                gtk_major_version, gtk_minor_version, gtk_micro_version);
31210         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31211                major, minor, micro);
31212         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31213         printf("***\n");
31214         printf("*** If you have already installed a sufficiently new version, this error\n");
31215         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31216         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31217         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31218         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31219         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31220         printf("*** so that the correct libraries are found at run-time))\n");
31221       }
31222     }
31223   return 1;
31224 }
31225
31226 _ACEOF
31227 rm -f conftest$ac_exeext
31228 if { (ac_try="$ac_link"
31229 case "(($ac_try" in
31230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231   *) ac_try_echo=$ac_try;;
31232 esac
31233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234   (eval "$ac_link") 2>&5
31235   ac_status=$?
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31238   { (case "(($ac_try" in
31239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240   *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243   (eval "$ac_try") 2>&5
31244   ac_status=$?
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); }; }; then
31247   :
31248 else
31249   echo "$as_me: program exited with status $ac_status" >&5
31250 echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31252
31253 ( exit $ac_status )
31254 no_gtk=yes
31255 fi
31256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31257 fi
31258
31259
31260        CFLAGS="$ac_save_CFLAGS"
31261        LIBS="$ac_save_LIBS"
31262      fi
31263   fi
31264   if test "x$no_gtk" = x ; then
31265      { echo "$as_me:$LINENO: result: yes" >&5
31266 echo "${ECHO_T}yes" >&6; }
31267      wx_cv_lib_gtk=1.2.7
31268   else
31269      { echo "$as_me:$LINENO: result: no" >&5
31270 echo "${ECHO_T}no" >&6; }
31271      if test "$GTK_CONFIG" = "no" ; then
31272        echo "*** The gtk-config script installed by GTK could not be found"
31273        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31274        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31275        echo "*** full path to gtk-config."
31276      else
31277        if test -f conf.gtktest ; then
31278         :
31279        else
31280           echo "*** Could not run GTK test program, checking why..."
31281           CFLAGS="$CFLAGS $GTK_CFLAGS"
31282           LIBS="$LIBS $GTK_LIBS"
31283           cat >conftest.$ac_ext <<_ACEOF
31284 /* confdefs.h.  */
31285 _ACEOF
31286 cat confdefs.h >>conftest.$ac_ext
31287 cat >>conftest.$ac_ext <<_ACEOF
31288 /* end confdefs.h.  */
31289
31290 #include <gtk/gtk.h>
31291 #include <stdio.h>
31292
31293 int
31294 main ()
31295 {
31296  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31297   ;
31298   return 0;
31299 }
31300 _ACEOF
31301 rm -f conftest.$ac_objext conftest$ac_exeext
31302 if { (ac_try="$ac_link"
31303 case "(($ac_try" in
31304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305   *) ac_try_echo=$ac_try;;
31306 esac
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308   (eval "$ac_link") 2>conftest.er1
31309   ac_status=$?
31310   grep -v '^ *+' conftest.er1 >conftest.err
31311   rm -f conftest.er1
31312   cat conftest.err >&5
31313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); } && {
31315          test -z "$ac_c_werror_flag" ||
31316          test ! -s conftest.err
31317        } && test -s conftest$ac_exeext &&
31318        $as_test_x conftest$ac_exeext; then
31319    echo "*** The test program compiled, but did not run. This usually means"
31320           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31321           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31322           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31323           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31324           echo "*** is required on your system"
31325           echo "***"
31326           echo "*** If you have an old version installed, it is best to remove it, although"
31327           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31328           echo "***"
31329           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31330           echo "*** came with the system with the command"
31331           echo "***"
31332           echo "***    rpm --erase --nodeps gtk gtk-devel"
31333 else
31334   echo "$as_me: failed program was:" >&5
31335 sed 's/^/| /' conftest.$ac_ext >&5
31336
31337          echo "*** The test program failed to compile or link. See the file config.log for the"
31338           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31339           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31340           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31341 fi
31342
31343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31344       conftest$ac_exeext conftest.$ac_ext
31345           CFLAGS="$ac_save_CFLAGS"
31346           LIBS="$ac_save_LIBS"
31347        fi
31348      fi
31349      GTK_CFLAGS=""
31350      GTK_LIBS=""
31351      :
31352   fi
31353
31354
31355   rm -f conf.gtktest
31356
31357
31358                         if test -z "$wx_cv_lib_gtk"; then
31359
31360 # Check whether --with-gtk-prefix was given.
31361 if test "${with_gtk_prefix+set}" = set; then
31362   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31363 else
31364   gtk_config_prefix=""
31365 fi
31366
31367
31368 # Check whether --with-gtk-exec-prefix was given.
31369 if test "${with_gtk_exec_prefix+set}" = set; then
31370   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31371 else
31372   gtk_config_exec_prefix=""
31373 fi
31374
31375 # Check whether --enable-gtktest was given.
31376 if test "${enable_gtktest+set}" = set; then
31377   enableval=$enable_gtktest;
31378 else
31379   enable_gtktest=yes
31380 fi
31381
31382
31383   for module in . $GTK_MODULES
31384   do
31385       case "$module" in
31386          gthread)
31387              gtk_config_args="$gtk_config_args gthread"
31388          ;;
31389       esac
31390   done
31391
31392   if test x$gtk_config_exec_prefix != x ; then
31393      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31394      if test x${GTK_CONFIG+set} != xset ; then
31395         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31396      fi
31397   fi
31398   if test x$gtk_config_prefix != x ; then
31399      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31400      if test x${GTK_CONFIG+set} != xset ; then
31401         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31402      fi
31403   fi
31404
31405   # Extract the first word of "gtk-config", so it can be a program name with args.
31406 set dummy gtk-config; ac_word=$2
31407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31409 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31410   echo $ECHO_N "(cached) $ECHO_C" >&6
31411 else
31412   case $GTK_CONFIG in
31413   [\\/]* | ?:[\\/]*)
31414   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31415   ;;
31416   *)
31417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31418 for as_dir in $PATH
31419 do
31420   IFS=$as_save_IFS
31421   test -z "$as_dir" && as_dir=.
31422   for ac_exec_ext in '' $ac_executable_extensions; do
31423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31424     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31426     break 2
31427   fi
31428 done
31429 done
31430 IFS=$as_save_IFS
31431
31432   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31433   ;;
31434 esac
31435 fi
31436 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31437 if test -n "$GTK_CONFIG"; then
31438   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31439 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31440 else
31441   { echo "$as_me:$LINENO: result: no" >&5
31442 echo "${ECHO_T}no" >&6; }
31443 fi
31444
31445
31446   min_gtk_version=1.2.3
31447   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31448 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31449   no_gtk=""
31450   if test "$GTK_CONFIG" = "no" ; then
31451     no_gtk=yes
31452   else
31453     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31454     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31455     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31456            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31457     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31458            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31459     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31460            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31461     if test "x$enable_gtktest" = "xyes" ; then
31462       ac_save_CFLAGS="$CFLAGS"
31463       ac_save_LIBS="$LIBS"
31464       CFLAGS="$CFLAGS $GTK_CFLAGS"
31465       LIBS="$GTK_LIBS $LIBS"
31466       rm -f conf.gtktest
31467       if test "$cross_compiling" = yes; then
31468   echo $ac_n "cross compiling; assumed OK... $ac_c"
31469 else
31470   cat >conftest.$ac_ext <<_ACEOF
31471 /* confdefs.h.  */
31472 _ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h.  */
31476
31477 #include <gtk/gtk.h>
31478 #include <stdio.h>
31479 #include <stdlib.h>
31480
31481 int
31482 main ()
31483 {
31484   int major, minor, micro;
31485   char *tmp_version;
31486
31487   system ("touch conf.gtktest");
31488
31489   /* HP/UX 9 (%@#!) writes to sscanf strings */
31490   tmp_version = g_strdup("$min_gtk_version");
31491   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31492      printf("%s, bad version string\n", "$min_gtk_version");
31493      exit(1);
31494    }
31495
31496   if ((gtk_major_version != $gtk_config_major_version) ||
31497       (gtk_minor_version != $gtk_config_minor_version) ||
31498       (gtk_micro_version != $gtk_config_micro_version))
31499     {
31500       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31501              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31502              gtk_major_version, gtk_minor_version, gtk_micro_version);
31503       printf ("*** was found! If gtk-config was correct, then it is best\n");
31504       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31505       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31506       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31507       printf("*** required on your system.\n");
31508       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31509       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31510       printf("*** before re-running configure\n");
31511     }
31512 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31513   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31514            (gtk_minor_version != GTK_MINOR_VERSION) ||
31515            (gtk_micro_version != GTK_MICRO_VERSION))
31516     {
31517       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31518              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31519       printf("*** library (version %d.%d.%d)\n",
31520              gtk_major_version, gtk_minor_version, gtk_micro_version);
31521     }
31522 #endif /* defined (GTK_MAJOR_VERSION) ... */
31523   else
31524     {
31525       if ((gtk_major_version > major) ||
31526         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31527         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31528       {
31529         return 0;
31530        }
31531      else
31532       {
31533         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31534                gtk_major_version, gtk_minor_version, gtk_micro_version);
31535         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31536                major, minor, micro);
31537         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31538         printf("***\n");
31539         printf("*** If you have already installed a sufficiently new version, this error\n");
31540         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31541         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31542         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31543         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31544         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31545         printf("*** so that the correct libraries are found at run-time))\n");
31546       }
31547     }
31548   return 1;
31549 }
31550
31551 _ACEOF
31552 rm -f conftest$ac_exeext
31553 if { (ac_try="$ac_link"
31554 case "(($ac_try" in
31555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31556   *) ac_try_echo=$ac_try;;
31557 esac
31558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31559   (eval "$ac_link") 2>&5
31560   ac_status=$?
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31563   { (case "(($ac_try" in
31564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31565   *) ac_try_echo=$ac_try;;
31566 esac
31567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31568   (eval "$ac_try") 2>&5
31569   ac_status=$?
31570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571   (exit $ac_status); }; }; then
31572   :
31573 else
31574   echo "$as_me: program exited with status $ac_status" >&5
31575 echo "$as_me: failed program was:" >&5
31576 sed 's/^/| /' conftest.$ac_ext >&5
31577
31578 ( exit $ac_status )
31579 no_gtk=yes
31580 fi
31581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31582 fi
31583
31584
31585        CFLAGS="$ac_save_CFLAGS"
31586        LIBS="$ac_save_LIBS"
31587      fi
31588   fi
31589   if test "x$no_gtk" = x ; then
31590      { echo "$as_me:$LINENO: result: yes" >&5
31591 echo "${ECHO_T}yes" >&6; }
31592      wx_cv_lib_gtk=1.2.3
31593   else
31594      { echo "$as_me:$LINENO: result: no" >&5
31595 echo "${ECHO_T}no" >&6; }
31596      if test "$GTK_CONFIG" = "no" ; then
31597        echo "*** The gtk-config script installed by GTK could not be found"
31598        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31599        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31600        echo "*** full path to gtk-config."
31601      else
31602        if test -f conf.gtktest ; then
31603         :
31604        else
31605           echo "*** Could not run GTK test program, checking why..."
31606           CFLAGS="$CFLAGS $GTK_CFLAGS"
31607           LIBS="$LIBS $GTK_LIBS"
31608           cat >conftest.$ac_ext <<_ACEOF
31609 /* confdefs.h.  */
31610 _ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h.  */
31614
31615 #include <gtk/gtk.h>
31616 #include <stdio.h>
31617
31618 int
31619 main ()
31620 {
31621  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31622   ;
31623   return 0;
31624 }
31625 _ACEOF
31626 rm -f conftest.$ac_objext conftest$ac_exeext
31627 if { (ac_try="$ac_link"
31628 case "(($ac_try" in
31629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630   *) ac_try_echo=$ac_try;;
31631 esac
31632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633   (eval "$ac_link") 2>conftest.er1
31634   ac_status=$?
31635   grep -v '^ *+' conftest.er1 >conftest.err
31636   rm -f conftest.er1
31637   cat conftest.err >&5
31638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639   (exit $ac_status); } && {
31640          test -z "$ac_c_werror_flag" ||
31641          test ! -s conftest.err
31642        } && test -s conftest$ac_exeext &&
31643        $as_test_x conftest$ac_exeext; then
31644    echo "*** The test program compiled, but did not run. This usually means"
31645           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31646           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31647           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31648           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31649           echo "*** is required on your system"
31650           echo "***"
31651           echo "*** If you have an old version installed, it is best to remove it, although"
31652           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31653           echo "***"
31654           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31655           echo "*** came with the system with the command"
31656           echo "***"
31657           echo "***    rpm --erase --nodeps gtk gtk-devel"
31658 else
31659   echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31661
31662          echo "*** The test program failed to compile or link. See the file config.log for the"
31663           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31664           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31665           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31666 fi
31667
31668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31669       conftest$ac_exeext conftest.$ac_ext
31670           CFLAGS="$ac_save_CFLAGS"
31671           LIBS="$ac_save_LIBS"
31672        fi
31673      fi
31674      GTK_CFLAGS=""
31675      GTK_LIBS=""
31676      :
31677   fi
31678
31679
31680   rm -f conf.gtktest
31681
31682                         fi
31683                     fi
31684                 fi
31685
31686                 if test -z "$wx_cv_lib_gtk"; then
31687                                         wx_cv_lib_gtk=none
31688                 else
31689                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31690                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31691                 fi
31692
31693
31694 fi
31695
31696
31697                         if test "$gtk_version_cached" = 1; then
31698             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31699 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31700         fi
31701
31702         case "$wx_cv_lib_gtk" in
31703             2.0)    WXGTK20=1
31704                     TOOLKIT_VERSION=2
31705                     ;;
31706             1.2.7)  WXGTK127=1
31707                     WXGTK12=1
31708                     ;;
31709             1.2.3)  WXGTK12=1
31710                     ;;
31711             *)      { { echo "$as_me:$LINENO: error:
31712 The development files for GTK+ were not found. For GTK+ 2, please
31713 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31714 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31715 and that the version is 1.2.3 or above. Also check that the
31716 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31717 --libs' are in the LD_LIBRARY_PATH or equivalent.
31718                             " >&5
31719 echo "$as_me: error:
31720 The development files for GTK+ were not found. For GTK+ 2, please
31721 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31722 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31723 and that the version is 1.2.3 or above. Also check that the
31724 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31725 --libs' are in the LD_LIBRARY_PATH or equivalent.
31726                             " >&2;}
31727    { (exit 1); exit 1; }; }
31728                     ;;
31729         esac
31730
31731         if test "$WXGTK20" = 1; then
31732             save_CFLAGS="$CFLAGS"
31733             save_LIBS="$LIBS"
31734             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31735             LIBS="$LIBS $wx_cv_libs_gtk"
31736
31737                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31738 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31739 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31740   echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742   cat >conftest.$ac_ext <<_ACEOF
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748 #include <gtk/gtk.h>
31749
31750 int
31751 main ()
31752 {
31753 #ifndef gtk_icon_size_lookup
31754   (void) gtk_icon_size_lookup;
31755 #endif
31756
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext
31762 if { (ac_try="$ac_compile"
31763 case "(($ac_try" in
31764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765   *) ac_try_echo=$ac_try;;
31766 esac
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768   (eval "$ac_compile") 2>conftest.er1
31769   ac_status=$?
31770   grep -v '^ *+' conftest.er1 >conftest.err
31771   rm -f conftest.er1
31772   cat conftest.err >&5
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); } && {
31775          test -z "$ac_c_werror_flag" ||
31776          test ! -s conftest.err
31777        } && test -s conftest.$ac_objext; then
31778   ac_cv_have_decl_gtk_icon_size_lookup=yes
31779 else
31780   echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31782
31783         ac_cv_have_decl_gtk_icon_size_lookup=no
31784 fi
31785
31786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31787 fi
31788 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31789 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31790 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31791
31792 cat >>confdefs.h <<_ACEOF
31793 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31794 _ACEOF
31795
31796
31797 else
31798   cat >>confdefs.h <<_ACEOF
31799 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31800 _ACEOF
31801
31802 cat >>confdefs.h <<\_ACEOF
31803 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31804 _ACEOF
31805
31806 fi
31807
31808
31809
31810
31811                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31812 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31813             cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819
31820                             #include <gtk/gtk.h>
31821
31822 int
31823 main ()
31824 {
31825
31826                             #if !GTK_CHECK_VERSION(2,10,0)
31827                             Not GTK+ 2.10
31828                             #endif
31829
31830   ;
31831   return 0;
31832 }
31833 _ACEOF
31834 rm -f conftest.$ac_objext
31835 if { (ac_try="$ac_compile"
31836 case "(($ac_try" in
31837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31838   *) ac_try_echo=$ac_try;;
31839 esac
31840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31841   (eval "$ac_compile") 2>conftest.er1
31842   ac_status=$?
31843   grep -v '^ *+' conftest.er1 >conftest.err
31844   rm -f conftest.er1
31845   cat conftest.err >&5
31846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847   (exit $ac_status); } && {
31848          test -z "$ac_c_werror_flag" ||
31849          test ! -s conftest.err
31850        } && test -s conftest.$ac_objext; then
31851
31852                             cat >>confdefs.h <<\_ACEOF
31853 #define __WXGTK210__ 1
31854 _ACEOF
31855
31856                             cat >>confdefs.h <<\_ACEOF
31857 #define __WXGTK26__ 1
31858 _ACEOF
31859
31860                             cat >>confdefs.h <<\_ACEOF
31861 #define __WXGTK24__ 1
31862 _ACEOF
31863
31864                             { echo "$as_me:$LINENO: result: yes" >&5
31865 echo "${ECHO_T}yes" >&6; }
31866                             ac_wxgtk210=1
31867
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872
31873                             { echo "$as_me:$LINENO: result: no" >&5
31874 echo "${ECHO_T}no" >&6; }
31875                             ac_wxgtk210=0
31876
31877 fi
31878
31879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31880
31881             if test "$ac_wxgtk210" = 0; then
31882                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31883 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31884                 cat >conftest.$ac_ext <<_ACEOF
31885 /* confdefs.h.  */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h.  */
31890
31891                                 #include <gtk/gtk.h>
31892
31893 int
31894 main ()
31895 {
31896
31897                                 #if !GTK_CHECK_VERSION(2,6,0)
31898                                 Not GTK+ 2.6
31899                                 #endif
31900
31901   ;
31902   return 0;
31903 }
31904 _ACEOF
31905 rm -f conftest.$ac_objext
31906 if { (ac_try="$ac_compile"
31907 case "(($ac_try" in
31908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909   *) ac_try_echo=$ac_try;;
31910 esac
31911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912   (eval "$ac_compile") 2>conftest.er1
31913   ac_status=$?
31914   grep -v '^ *+' conftest.er1 >conftest.err
31915   rm -f conftest.er1
31916   cat conftest.err >&5
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); } && {
31919          test -z "$ac_c_werror_flag" ||
31920          test ! -s conftest.err
31921        } && test -s conftest.$ac_objext; then
31922
31923                                 cat >>confdefs.h <<\_ACEOF
31924 #define __WXGTK26__ 1
31925 _ACEOF
31926
31927                                 cat >>confdefs.h <<\_ACEOF
31928 #define __WXGTK24__ 1
31929 _ACEOF
31930
31931                                 { echo "$as_me:$LINENO: result: yes" >&5
31932 echo "${ECHO_T}yes" >&6; }
31933                                 ac_wxgtk26=1
31934
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939
31940                                 { echo "$as_me:$LINENO: result: no" >&5
31941 echo "${ECHO_T}no" >&6; }
31942                                 ac_wxgtk26=0
31943
31944 fi
31945
31946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31947             fi
31948
31949             if test "$ac_wxgtk26" = 0; then
31950                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31951 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31952                 cat >conftest.$ac_ext <<_ACEOF
31953 /* confdefs.h.  */
31954 _ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h.  */
31958
31959                                 #include <gtk/gtk.h>
31960
31961 int
31962 main ()
31963 {
31964
31965                                 #if !GTK_CHECK_VERSION(2,4,0)
31966                                 Not GTK+ 2.4
31967                                 #endif
31968
31969   ;
31970   return 0;
31971 }
31972 _ACEOF
31973 rm -f conftest.$ac_objext
31974 if { (ac_try="$ac_compile"
31975 case "(($ac_try" in
31976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977   *) ac_try_echo=$ac_try;;
31978 esac
31979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980   (eval "$ac_compile") 2>conftest.er1
31981   ac_status=$?
31982   grep -v '^ *+' conftest.er1 >conftest.err
31983   rm -f conftest.er1
31984   cat conftest.err >&5
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); } && {
31987          test -z "$ac_c_werror_flag" ||
31988          test ! -s conftest.err
31989        } && test -s conftest.$ac_objext; then
31990
31991                                 cat >>confdefs.h <<\_ACEOF
31992 #define __WXGTK24__ 1
31993 _ACEOF
31994
31995                                 { echo "$as_me:$LINENO: result: yes" >&5
31996 echo "${ECHO_T}yes" >&6; }
31997
31998 else
31999   echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32001
32002
32003                                 { echo "$as_me:$LINENO: result: no" >&5
32004 echo "${ECHO_T}no" >&6; }
32005
32006 fi
32007
32008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32009             fi
32010
32011             CFLAGS="$save_CFLAGS"
32012             LIBS="$save_LIBS"
32013         else
32014             if test "$wxUSE_UNICODE" = "yes"; then
32015                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
32016 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
32017                 wxUSE_UNICODE=no
32018             fi
32019
32020                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
32021 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
32022 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025   ac_check_lib_save_LIBS=$LIBS
32026 LIBS="-lgdk  $LIBS"
32027 cat >conftest.$ac_ext <<_ACEOF
32028 /* confdefs.h.  */
32029 _ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h.  */
32033
32034 /* Override any GCC internal prototype to avoid an error.
32035    Use char because int might match the return type of a GCC
32036    builtin and then its argument prototype would still apply.  */
32037 #ifdef __cplusplus
32038 extern "C"
32039 #endif
32040 char gdk_im_open ();
32041 int
32042 main ()
32043 {
32044 return gdk_im_open ();
32045   ;
32046   return 0;
32047 }
32048 _ACEOF
32049 rm -f conftest.$ac_objext conftest$ac_exeext
32050 if { (ac_try="$ac_link"
32051 case "(($ac_try" in
32052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32053   *) ac_try_echo=$ac_try;;
32054 esac
32055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32056   (eval "$ac_link") 2>conftest.er1
32057   ac_status=$?
32058   grep -v '^ *+' conftest.er1 >conftest.err
32059   rm -f conftest.er1
32060   cat conftest.err >&5
32061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062   (exit $ac_status); } && {
32063          test -z "$ac_c_werror_flag" ||
32064          test ! -s conftest.err
32065        } && test -s conftest$ac_exeext &&
32066        $as_test_x conftest$ac_exeext; then
32067   ac_cv_lib_gdk_gdk_im_open=yes
32068 else
32069   echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32071
32072         ac_cv_lib_gdk_gdk_im_open=no
32073 fi
32074
32075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32076       conftest$ac_exeext conftest.$ac_ext
32077 LIBS=$ac_check_lib_save_LIBS
32078 fi
32079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
32080 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
32081 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
32082   cat >>confdefs.h <<\_ACEOF
32083 #define HAVE_XIM 1
32084 _ACEOF
32085
32086 fi
32087
32088
32089                                     if test "$USE_DARWIN" != 1; then
32090
32091 for ac_func in poll
32092 do
32093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h.  */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h.  */
32105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32107 #define $ac_func innocuous_$ac_func
32108
32109 /* System header to define __stub macros and hopefully few prototypes,
32110     which can conflict with char $ac_func (); below.
32111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32112     <limits.h> exists even on freestanding compilers.  */
32113
32114 #ifdef __STDC__
32115 # include <limits.h>
32116 #else
32117 # include <assert.h>
32118 #endif
32119
32120 #undef $ac_func
32121
32122 /* Override any GCC internal prototype to avoid an error.
32123    Use char because int might match the return type of a GCC
32124    builtin and then its argument prototype would still apply.  */
32125 #ifdef __cplusplus
32126 extern "C"
32127 #endif
32128 char $ac_func ();
32129 /* The GNU C library defines this for functions which it implements
32130     to always fail with ENOSYS.  Some functions are actually named
32131     something starting with __ and the normal name is an alias.  */
32132 #if defined __stub_$ac_func || defined __stub___$ac_func
32133 choke me
32134 #endif
32135
32136 int
32137 main ()
32138 {
32139 return $ac_func ();
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext conftest$ac_exeext
32145 if { (ac_try="$ac_link"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_link") 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && {
32158          test -z "$ac_c_werror_flag" ||
32159          test ! -s conftest.err
32160        } && test -s conftest$ac_exeext &&
32161        $as_test_x conftest$ac_exeext; then
32162   eval "$as_ac_var=yes"
32163 else
32164   echo "$as_me: failed program was:" >&5
32165 sed 's/^/| /' conftest.$ac_ext >&5
32166
32167         eval "$as_ac_var=no"
32168 fi
32169
32170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32171       conftest$ac_exeext conftest.$ac_ext
32172 fi
32173 ac_res=`eval echo '${'$as_ac_var'}'`
32174                { echo "$as_me:$LINENO: result: $ac_res" >&5
32175 echo "${ECHO_T}$ac_res" >&6; }
32176 if test `eval echo '${'$as_ac_var'}'` = yes; then
32177   cat >>confdefs.h <<_ACEOF
32178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32179 _ACEOF
32180
32181 fi
32182 done
32183
32184             fi
32185         fi
32186
32187         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32188         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32189
32190         AFMINSTALL=afminstall
32191         TOOLKIT=GTK
32192         GUIDIST=GTK_DIST
32193
32194                 if test "$wxUSE_GPE" = "yes"; then
32195             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32196 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
32197
32198   ac_find_libraries=
32199   for ac_dir in $SEARCH_LIB;
32200   do
32201     for ac_extension in a so sl dylib dll.a; do
32202       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32203         ac_find_libraries=$ac_dir
32204         break 2
32205       fi
32206     done
32207   done
32208
32209             if test "$ac_find_libraries" != "" ; then
32210
32211     if test "$ac_find_libraries" = "default location"; then
32212     ac_path_to_link=""
32213   else
32214     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32215     result=$?
32216     if test $result = 0; then
32217       ac_path_to_link=""
32218     else
32219       ac_path_to_link=" -L$ac_find_libraries"
32220     fi
32221   fi
32222
32223                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32224                 WXGPE=1
32225                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32226 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32227             else
32228                 { echo "$as_me:$LINENO: result: not found" >&5
32229 echo "${ECHO_T}not found" >&6; }
32230             fi
32231
32232                                                                                                                     fi
32233     fi
32234
32235     if test "$wxUSE_MGL" = 1; then
32236        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32237 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
32238         if test "x$MGL_ROOT" = x ; then
32239             { echo "$as_me:$LINENO: result: not found" >&5
32240 echo "${ECHO_T}not found" >&6; }
32241             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32242 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32243    { (exit 1); exit 1; }; }
32244         else
32245             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32246 echo "${ECHO_T}$MGL_ROOT" >&6; }
32247         fi
32248
32249         { echo "$as_me:$LINENO: checking for libmgl location" >&5
32250 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
32251                                 case "${host}" in
32252             *-*-linux* )
32253                                           if test "x$wxUSE_SHARED" = xyes ; then
32254                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32255               else
32256                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32257               fi
32258               ;;
32259             *-pc-msdosdjgpp )
32260               mgl_os_candidates="dos32/dj2"
32261               ;;
32262             *)
32263               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32264 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32265    { (exit 1); exit 1; }; }
32266         esac
32267
32268         mgl_lib_type=""
32269         mgl_os=""
32270
32271         for mgl_os_i in $mgl_os_candidates ; do
32272             if test "x$mgl_os" = x ; then
32273                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32274                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32275                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32276                         mgl_lib_type=debug
32277                         mgl_os=$mgl_os_i
32278                     fi
32279                 fi
32280                 if test "x$mgl_lib_type" = x ; then
32281                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32282                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32283                         mgl_lib_type=release
32284                         mgl_os=$mgl_os_i
32285                     fi
32286                 fi
32287             fi
32288         done
32289
32290         if test "x$mgl_os" = x ; then
32291             { echo "$as_me:$LINENO: result: not found" >&5
32292 echo "${ECHO_T}not found" >&6; }
32293             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32294 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32295    { (exit 1); exit 1; }; }
32296         fi
32297         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32298 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
32299
32300         wxUSE_UNIVERSAL="yes"
32301
32302         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32303         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32304
32305         AFMINSTALL=afminstall
32306         TOOLKIT=MGL
32307         GUIDIST=MGL_DIST
32308     fi
32309
32310     if test "$wxUSE_DFB" = 1; then
32311
32312
32313 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32314         if test -n "$ac_tool_prefix"; then
32315   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32316 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32320   echo $ECHO_N "(cached) $ECHO_C" >&6
32321 else
32322   case $PKG_CONFIG in
32323   [\\/]* | ?:[\\/]*)
32324   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32325   ;;
32326   *)
32327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32328 for as_dir in $PATH
32329 do
32330   IFS=$as_save_IFS
32331   test -z "$as_dir" && as_dir=.
32332   for ac_exec_ext in '' $ac_executable_extensions; do
32333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32334     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32336     break 2
32337   fi
32338 done
32339 done
32340 IFS=$as_save_IFS
32341
32342   ;;
32343 esac
32344 fi
32345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32346 if test -n "$PKG_CONFIG"; then
32347   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32348 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32349 else
32350   { echo "$as_me:$LINENO: result: no" >&5
32351 echo "${ECHO_T}no" >&6; }
32352 fi
32353
32354
32355 fi
32356 if test -z "$ac_cv_path_PKG_CONFIG"; then
32357   ac_pt_PKG_CONFIG=$PKG_CONFIG
32358   # Extract the first word of "pkg-config", so it can be a program name with args.
32359 set dummy pkg-config; ac_word=$2
32360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32362 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32363   echo $ECHO_N "(cached) $ECHO_C" >&6
32364 else
32365   case $ac_pt_PKG_CONFIG in
32366   [\\/]* | ?:[\\/]*)
32367   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32368   ;;
32369   *)
32370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32371 for as_dir in $PATH
32372 do
32373   IFS=$as_save_IFS
32374   test -z "$as_dir" && as_dir=.
32375   for ac_exec_ext in '' $ac_executable_extensions; do
32376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32377     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32379     break 2
32380   fi
32381 done
32382 done
32383 IFS=$as_save_IFS
32384
32385   ;;
32386 esac
32387 fi
32388 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32389 if test -n "$ac_pt_PKG_CONFIG"; then
32390   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32391 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32392 else
32393   { echo "$as_me:$LINENO: result: no" >&5
32394 echo "${ECHO_T}no" >&6; }
32395 fi
32396
32397   if test "x$ac_pt_PKG_CONFIG" = x; then
32398     PKG_CONFIG=""
32399   else
32400     case $cross_compiling:$ac_tool_warned in
32401 yes:)
32402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32403 whose name does not start with the host triplet.  If you think this
32404 configuration is useful to you, please write to autoconf@gnu.org." >&5
32405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32406 whose name does not start with the host triplet.  If you think this
32407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32408 ac_tool_warned=yes ;;
32409 esac
32410     PKG_CONFIG=$ac_pt_PKG_CONFIG
32411   fi
32412 else
32413   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32414 fi
32415
32416 fi
32417 if test -n "$PKG_CONFIG"; then
32418         _pkg_min_version=0.9.0
32419         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32420 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32421         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32422                 { echo "$as_me:$LINENO: result: yes" >&5
32423 echo "${ECHO_T}yes" >&6; }
32424         else
32425                 { echo "$as_me:$LINENO: result: no" >&5
32426 echo "${ECHO_T}no" >&6; }
32427                 PKG_CONFIG=""
32428         fi
32429
32430 fi
32431
32432
32433 pkg_failed=no
32434 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32435 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
32436
32437 if test -n "$PKG_CONFIG"; then
32438     if test -n "$DIRECTFB_CFLAGS"; then
32439         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32440     else
32441         if test -n "$PKG_CONFIG" && \
32442     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32443   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; then
32447   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
32448 else
32449   pkg_failed=yes
32450 fi
32451     fi
32452 else
32453         pkg_failed=untried
32454 fi
32455 if test -n "$PKG_CONFIG"; then
32456     if test -n "$DIRECTFB_LIBS"; then
32457         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32458     else
32459         if test -n "$PKG_CONFIG" && \
32460     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32461   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32462   ac_status=$?
32463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464   (exit $ac_status); }; then
32465   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32466 else
32467   pkg_failed=yes
32468 fi
32469     fi
32470 else
32471         pkg_failed=untried
32472 fi
32473
32474
32475
32476 if test $pkg_failed = yes; then
32477
32478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32479         _pkg_short_errors_supported=yes
32480 else
32481         _pkg_short_errors_supported=no
32482 fi
32483         if test $_pkg_short_errors_supported = yes; then
32484                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32485         else
32486                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32487         fi
32488         # Put the nasty error message in config.log where it belongs
32489         echo "$DIRECTFB_PKG_ERRORS" >&5
32490
32491
32492                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32493 echo "$as_me: error: DirectFB not found." >&2;}
32494    { (exit 1); exit 1; }; }
32495
32496
32497 elif test $pkg_failed = untried; then
32498
32499                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32500 echo "$as_me: error: DirectFB not found." >&2;}
32501    { (exit 1); exit 1; }; }
32502
32503
32504 else
32505         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32506         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32507         { echo "$as_me:$LINENO: result: yes" >&5
32508 echo "${ECHO_T}yes" >&6; }
32509
32510                            wxUSE_UNIVERSAL="yes"
32511                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32512                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32513                            TOOLKIT=DFB
32514                            GUIDIST=DFB_DIST
32515
32516 fi
32517     fi
32518
32519     if test "$wxUSE_MICROWIN" = 1; then
32520         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32521 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32522         if test "x$MICROWINDOWS" = x ; then
32523             { echo "$as_me:$LINENO: result: not found" >&5
32524 echo "${ECHO_T}not found" >&6; }
32525             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32526 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32527    { (exit 1); exit 1; }; }
32528         else
32529             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32530 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32531         fi
32532
32533         if test -f $MICROWINDOWS/lib/libmwin.a; then
32534             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32535 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32536         else
32537             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32538 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32539    { (exit 1); exit 1; }; }
32540         fi
32541
32542         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32543         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32544
32545         wxUSE_UNIVERSAL="yes"
32546
32547         AFMINSTALL=afminstall
32548         TOOLKIT=MICROWIN
32549         GUIDIST=MICROWIN_DIST
32550
32551         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32552     fi
32553
32554         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32555                                 { echo "$as_me:$LINENO: checking for X" >&5
32556 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32557
32558
32559 # Check whether --with-x was given.
32560 if test "${with_x+set}" = set; then
32561   withval=$with_x;
32562 fi
32563
32564 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32565 if test "x$with_x" = xno; then
32566   # The user explicitly disabled X.
32567   have_x=disabled
32568 else
32569   case $x_includes,$x_libraries in #(
32570     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32571 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32572    { (exit 1); exit 1; }; };; #(
32573     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32574   echo $ECHO_N "(cached) $ECHO_C" >&6
32575 else
32576   # One or both of the vars are not set, and there is no cached value.
32577 ac_x_includes=no ac_x_libraries=no
32578 rm -f -r conftest.dir
32579 if mkdir conftest.dir; then
32580   cd conftest.dir
32581   cat >Imakefile <<'_ACEOF'
32582 incroot:
32583         @echo incroot='${INCROOT}'
32584 usrlibdir:
32585         @echo usrlibdir='${USRLIBDIR}'
32586 libdir:
32587         @echo libdir='${LIBDIR}'
32588 _ACEOF
32589   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32590     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32591     for ac_var in incroot usrlibdir libdir; do
32592       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32593     done
32594     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32595     for ac_extension in a so sl; do
32596       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32597          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32598         ac_im_usrlibdir=$ac_im_libdir; break
32599       fi
32600     done
32601     # Screen out bogus values from the imake configuration.  They are
32602     # bogus both because they are the default anyway, and because
32603     # using them would break gcc on systems where it needs fixed includes.
32604     case $ac_im_incroot in
32605         /usr/include) ac_x_includes= ;;
32606         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32607     esac
32608     case $ac_im_usrlibdir in
32609         /usr/lib | /lib) ;;
32610         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32611     esac
32612   fi
32613   cd ..
32614   rm -f -r conftest.dir
32615 fi
32616
32617 # Standard set of common directories for X headers.
32618 # Check X11 before X11Rn because it is often a symlink to the current release.
32619 ac_x_header_dirs='
32620 /usr/X11/include
32621 /usr/X11R6/include
32622 /usr/X11R5/include
32623 /usr/X11R4/include
32624
32625 /usr/include/X11
32626 /usr/include/X11R6
32627 /usr/include/X11R5
32628 /usr/include/X11R4
32629
32630 /usr/local/X11/include
32631 /usr/local/X11R6/include
32632 /usr/local/X11R5/include
32633 /usr/local/X11R4/include
32634
32635 /usr/local/include/X11
32636 /usr/local/include/X11R6
32637 /usr/local/include/X11R5
32638 /usr/local/include/X11R4
32639
32640 /usr/X386/include
32641 /usr/x386/include
32642 /usr/XFree86/include/X11
32643
32644 /usr/include
32645 /usr/local/include
32646 /usr/unsupported/include
32647 /usr/athena/include
32648 /usr/local/x11r5/include
32649 /usr/lpp/Xamples/include
32650
32651 /usr/openwin/include
32652 /usr/openwin/share/include'
32653
32654 if test "$ac_x_includes" = no; then
32655   # Guess where to find include files, by looking for Xlib.h.
32656   # First, try using that file with no special directory specified.
32657   cat >conftest.$ac_ext <<_ACEOF
32658 /* confdefs.h.  */
32659 _ACEOF
32660 cat confdefs.h >>conftest.$ac_ext
32661 cat >>conftest.$ac_ext <<_ACEOF
32662 /* end confdefs.h.  */
32663 #include <X11/Xlib.h>
32664 _ACEOF
32665 if { (ac_try="$ac_cpp conftest.$ac_ext"
32666 case "(($ac_try" in
32667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668   *) ac_try_echo=$ac_try;;
32669 esac
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32672   ac_status=$?
32673   grep -v '^ *+' conftest.er1 >conftest.err
32674   rm -f conftest.er1
32675   cat conftest.err >&5
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); } >/dev/null && {
32678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32679          test ! -s conftest.err
32680        }; then
32681   # We can compile using X headers with no special include directory.
32682 ac_x_includes=
32683 else
32684   echo "$as_me: failed program was:" >&5
32685 sed 's/^/| /' conftest.$ac_ext >&5
32686
32687   for ac_dir in $ac_x_header_dirs; do
32688   if test -r "$ac_dir/X11/Xlib.h"; then
32689     ac_x_includes=$ac_dir
32690     break
32691   fi
32692 done
32693 fi
32694
32695 rm -f conftest.err conftest.$ac_ext
32696 fi # $ac_x_includes = no
32697
32698 if test "$ac_x_libraries" = no; then
32699   # Check for the libraries.
32700   # See if we find them without any special options.
32701   # Don't add to $LIBS permanently.
32702   ac_save_LIBS=$LIBS
32703   LIBS="-lX11 $LIBS"
32704   cat >conftest.$ac_ext <<_ACEOF
32705 /* confdefs.h.  */
32706 _ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h.  */
32710 #include <X11/Xlib.h>
32711 int
32712 main ()
32713 {
32714 XrmInitialize ()
32715   ;
32716   return 0;
32717 }
32718 _ACEOF
32719 rm -f conftest.$ac_objext conftest$ac_exeext
32720 if { (ac_try="$ac_link"
32721 case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_link") 2>conftest.er1
32727   ac_status=$?
32728   grep -v '^ *+' conftest.er1 >conftest.err
32729   rm -f conftest.er1
32730   cat conftest.err >&5
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); } && {
32733          test -z "$ac_c_werror_flag" ||
32734          test ! -s conftest.err
32735        } && test -s conftest$ac_exeext &&
32736        $as_test_x conftest$ac_exeext; then
32737   LIBS=$ac_save_LIBS
32738 # We can link X programs with no special library path.
32739 ac_x_libraries=
32740 else
32741   echo "$as_me: failed program was:" >&5
32742 sed 's/^/| /' conftest.$ac_ext >&5
32743
32744         LIBS=$ac_save_LIBS
32745 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32746 do
32747   # Don't even attempt the hair of trying to link an X program!
32748   for ac_extension in a so sl; do
32749     if test -r "$ac_dir/libX11.$ac_extension"; then
32750       ac_x_libraries=$ac_dir
32751       break 2
32752     fi
32753   done
32754 done
32755 fi
32756
32757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32758       conftest$ac_exeext conftest.$ac_ext
32759 fi # $ac_x_libraries = no
32760
32761 case $ac_x_includes,$ac_x_libraries in #(
32762   no,* | *,no | *\'*)
32763     # Didn't find X, or a directory has "'" in its name.
32764     ac_cv_have_x="have_x=no";; #(
32765   *)
32766     # Record where we found X for the cache.
32767     ac_cv_have_x="have_x=yes\
32768         ac_x_includes='$ac_x_includes'\
32769         ac_x_libraries='$ac_x_libraries'"
32770 esac
32771 fi
32772 ;; #(
32773     *) have_x=yes;;
32774   esac
32775   eval "$ac_cv_have_x"
32776 fi # $with_x != no
32777
32778 if test "$have_x" != yes; then
32779   { echo "$as_me:$LINENO: result: $have_x" >&5
32780 echo "${ECHO_T}$have_x" >&6; }
32781   no_x=yes
32782 else
32783   # If each of the values was on the command line, it overrides each guess.
32784   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32785   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32786   # Update the cache value to reflect the command line values.
32787   ac_cv_have_x="have_x=yes\
32788         ac_x_includes='$x_includes'\
32789         ac_x_libraries='$x_libraries'"
32790   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32791 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32792 fi
32793
32794 if test "$no_x" = yes; then
32795   # Not all programs may use this symbol, but it does not hurt to define it.
32796
32797 cat >>confdefs.h <<\_ACEOF
32798 #define X_DISPLAY_MISSING 1
32799 _ACEOF
32800
32801   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32802 else
32803   if test -n "$x_includes"; then
32804     X_CFLAGS="$X_CFLAGS -I$x_includes"
32805   fi
32806
32807   # It would also be nice to do this for all -L options, not just this one.
32808   if test -n "$x_libraries"; then
32809     X_LIBS="$X_LIBS -L$x_libraries"
32810     # For Solaris; some versions of Sun CC require a space after -R and
32811     # others require no space.  Words are not sufficient . . . .
32812     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32813 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32814     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32815     ac_xsave_c_werror_flag=$ac_c_werror_flag
32816     ac_c_werror_flag=yes
32817     cat >conftest.$ac_ext <<_ACEOF
32818 /* confdefs.h.  */
32819 _ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h.  */
32823
32824 int
32825 main ()
32826 {
32827
32828   ;
32829   return 0;
32830 }
32831 _ACEOF
32832 rm -f conftest.$ac_objext conftest$ac_exeext
32833 if { (ac_try="$ac_link"
32834 case "(($ac_try" in
32835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836   *) ac_try_echo=$ac_try;;
32837 esac
32838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32839   (eval "$ac_link") 2>conftest.er1
32840   ac_status=$?
32841   grep -v '^ *+' conftest.er1 >conftest.err
32842   rm -f conftest.er1
32843   cat conftest.err >&5
32844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845   (exit $ac_status); } && {
32846          test -z "$ac_c_werror_flag" ||
32847          test ! -s conftest.err
32848        } && test -s conftest$ac_exeext &&
32849        $as_test_x conftest$ac_exeext; then
32850   { echo "$as_me:$LINENO: result: no" >&5
32851 echo "${ECHO_T}no" >&6; }
32852        X_LIBS="$X_LIBS -R$x_libraries"
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857         LIBS="$ac_xsave_LIBS -R $x_libraries"
32858        cat >conftest.$ac_ext <<_ACEOF
32859 /* confdefs.h.  */
32860 _ACEOF
32861 cat confdefs.h >>conftest.$ac_ext
32862 cat >>conftest.$ac_ext <<_ACEOF
32863 /* end confdefs.h.  */
32864
32865 int
32866 main ()
32867 {
32868
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   { echo "$as_me:$LINENO: result: yes" >&5
32892 echo "${ECHO_T}yes" >&6; }
32893           X_LIBS="$X_LIBS -R $x_libraries"
32894 else
32895   echo "$as_me: failed program was:" >&5
32896 sed 's/^/| /' conftest.$ac_ext >&5
32897
32898         { echo "$as_me:$LINENO: result: neither works" >&5
32899 echo "${ECHO_T}neither works" >&6; }
32900 fi
32901
32902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32903       conftest$ac_exeext conftest.$ac_ext
32904 fi
32905
32906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32907       conftest$ac_exeext conftest.$ac_ext
32908     ac_c_werror_flag=$ac_xsave_c_werror_flag
32909     LIBS=$ac_xsave_LIBS
32910   fi
32911
32912   # Check for system-dependent libraries X programs must link with.
32913   # Do this before checking for the system-independent R6 libraries
32914   # (-lICE), since we may need -lsocket or whatever for X linking.
32915
32916   if test "$ISC" = yes; then
32917     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32918   else
32919     # Martyn Johnson says this is needed for Ultrix, if the X
32920     # libraries were built with DECnet support.  And Karl Berry says
32921     # the Alpha needs dnet_stub (dnet does not exist).
32922     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32923     cat >conftest.$ac_ext <<_ACEOF
32924 /* confdefs.h.  */
32925 _ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h.  */
32929
32930 /* Override any GCC internal prototype to avoid an error.
32931    Use char because int might match the return type of a GCC
32932    builtin and then its argument prototype would still apply.  */
32933 #ifdef __cplusplus
32934 extern "C"
32935 #endif
32936 char XOpenDisplay ();
32937 int
32938 main ()
32939 {
32940 return XOpenDisplay ();
32941   ;
32942   return 0;
32943 }
32944 _ACEOF
32945 rm -f conftest.$ac_objext conftest$ac_exeext
32946 if { (ac_try="$ac_link"
32947 case "(($ac_try" in
32948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949   *) ac_try_echo=$ac_try;;
32950 esac
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952   (eval "$ac_link") 2>conftest.er1
32953   ac_status=$?
32954   grep -v '^ *+' conftest.er1 >conftest.err
32955   rm -f conftest.er1
32956   cat conftest.err >&5
32957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958   (exit $ac_status); } && {
32959          test -z "$ac_c_werror_flag" ||
32960          test ! -s conftest.err
32961        } && test -s conftest$ac_exeext &&
32962        $as_test_x conftest$ac_exeext; then
32963   :
32964 else
32965   echo "$as_me: failed program was:" >&5
32966 sed 's/^/| /' conftest.$ac_ext >&5
32967
32968         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32969 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32970 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32971   echo $ECHO_N "(cached) $ECHO_C" >&6
32972 else
32973   ac_check_lib_save_LIBS=$LIBS
32974 LIBS="-ldnet  $LIBS"
32975 cat >conftest.$ac_ext <<_ACEOF
32976 /* confdefs.h.  */
32977 _ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h.  */
32981
32982 /* Override any GCC internal prototype to avoid an error.
32983    Use char because int might match the return type of a GCC
32984    builtin and then its argument prototype would still apply.  */
32985 #ifdef __cplusplus
32986 extern "C"
32987 #endif
32988 char dnet_ntoa ();
32989 int
32990 main ()
32991 {
32992 return dnet_ntoa ();
32993   ;
32994   return 0;
32995 }
32996 _ACEOF
32997 rm -f conftest.$ac_objext conftest$ac_exeext
32998 if { (ac_try="$ac_link"
32999 case "(($ac_try" in
33000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001   *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004   (eval "$ac_link") 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } && {
33011          test -z "$ac_c_werror_flag" ||
33012          test ! -s conftest.err
33013        } && test -s conftest$ac_exeext &&
33014        $as_test_x conftest$ac_exeext; then
33015   ac_cv_lib_dnet_dnet_ntoa=yes
33016 else
33017   echo "$as_me: failed program was:" >&5
33018 sed 's/^/| /' conftest.$ac_ext >&5
33019
33020         ac_cv_lib_dnet_dnet_ntoa=no
33021 fi
33022
33023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33024       conftest$ac_exeext conftest.$ac_ext
33025 LIBS=$ac_check_lib_save_LIBS
33026 fi
33027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33028 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
33029 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
33030   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33031 fi
33032
33033     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33034       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33035 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
33036 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33037   echo $ECHO_N "(cached) $ECHO_C" >&6
33038 else
33039   ac_check_lib_save_LIBS=$LIBS
33040 LIBS="-ldnet_stub  $LIBS"
33041 cat >conftest.$ac_ext <<_ACEOF
33042 /* confdefs.h.  */
33043 _ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h.  */
33047
33048 /* Override any GCC internal prototype to avoid an error.
33049    Use char because int might match the return type of a GCC
33050    builtin and then its argument prototype would still apply.  */
33051 #ifdef __cplusplus
33052 extern "C"
33053 #endif
33054 char dnet_ntoa ();
33055 int
33056 main ()
33057 {
33058 return dnet_ntoa ();
33059   ;
33060   return 0;
33061 }
33062 _ACEOF
33063 rm -f conftest.$ac_objext conftest$ac_exeext
33064 if { (ac_try="$ac_link"
33065 case "(($ac_try" in
33066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067   *) ac_try_echo=$ac_try;;
33068 esac
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070   (eval "$ac_link") 2>conftest.er1
33071   ac_status=$?
33072   grep -v '^ *+' conftest.er1 >conftest.err
33073   rm -f conftest.er1
33074   cat conftest.err >&5
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); } && {
33077          test -z "$ac_c_werror_flag" ||
33078          test ! -s conftest.err
33079        } && test -s conftest$ac_exeext &&
33080        $as_test_x conftest$ac_exeext; then
33081   ac_cv_lib_dnet_stub_dnet_ntoa=yes
33082 else
33083   echo "$as_me: failed program was:" >&5
33084 sed 's/^/| /' conftest.$ac_ext >&5
33085
33086         ac_cv_lib_dnet_stub_dnet_ntoa=no
33087 fi
33088
33089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33090       conftest$ac_exeext conftest.$ac_ext
33091 LIBS=$ac_check_lib_save_LIBS
33092 fi
33093 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
33094 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
33095 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
33096   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33097 fi
33098
33099     fi
33100 fi
33101
33102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33103       conftest$ac_exeext conftest.$ac_ext
33104     LIBS="$ac_xsave_LIBS"
33105
33106     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33107     # to get the SysV transport functions.
33108     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33109     # needs -lnsl.
33110     # The nsl library prevents programs from opening the X display
33111     # on Irix 5.2, according to T.E. Dickey.
33112     # The functions gethostbyname, getservbyname, and inet_addr are
33113     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33114     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
33115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
33116 if test "${ac_cv_func_gethostbyname+set}" = set; then
33117   echo $ECHO_N "(cached) $ECHO_C" >&6
33118 else
33119   cat >conftest.$ac_ext <<_ACEOF
33120 /* confdefs.h.  */
33121 _ACEOF
33122 cat confdefs.h >>conftest.$ac_ext
33123 cat >>conftest.$ac_ext <<_ACEOF
33124 /* end confdefs.h.  */
33125 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33127 #define gethostbyname innocuous_gethostbyname
33128
33129 /* System header to define __stub macros and hopefully few prototypes,
33130     which can conflict with char gethostbyname (); below.
33131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33132     <limits.h> exists even on freestanding compilers.  */
33133
33134 #ifdef __STDC__
33135 # include <limits.h>
33136 #else
33137 # include <assert.h>
33138 #endif
33139
33140 #undef gethostbyname
33141
33142 /* Override any GCC internal prototype to avoid an error.
33143    Use char because int might match the return type of a GCC
33144    builtin and then its argument prototype would still apply.  */
33145 #ifdef __cplusplus
33146 extern "C"
33147 #endif
33148 char gethostbyname ();
33149 /* The GNU C library defines this for functions which it implements
33150     to always fail with ENOSYS.  Some functions are actually named
33151     something starting with __ and the normal name is an alias.  */
33152 #if defined __stub_gethostbyname || defined __stub___gethostbyname
33153 choke me
33154 #endif
33155
33156 int
33157 main ()
33158 {
33159 return gethostbyname ();
33160   ;
33161   return 0;
33162 }
33163 _ACEOF
33164 rm -f conftest.$ac_objext conftest$ac_exeext
33165 if { (ac_try="$ac_link"
33166 case "(($ac_try" in
33167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33168   *) ac_try_echo=$ac_try;;
33169 esac
33170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33171   (eval "$ac_link") 2>conftest.er1
33172   ac_status=$?
33173   grep -v '^ *+' conftest.er1 >conftest.err
33174   rm -f conftest.er1
33175   cat conftest.err >&5
33176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177   (exit $ac_status); } && {
33178          test -z "$ac_c_werror_flag" ||
33179          test ! -s conftest.err
33180        } && test -s conftest$ac_exeext &&
33181        $as_test_x conftest$ac_exeext; then
33182   ac_cv_func_gethostbyname=yes
33183 else
33184   echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33186
33187         ac_cv_func_gethostbyname=no
33188 fi
33189
33190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33191       conftest$ac_exeext conftest.$ac_ext
33192 fi
33193 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33194 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
33195
33196     if test $ac_cv_func_gethostbyname = no; then
33197       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33198 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
33199 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33200   echo $ECHO_N "(cached) $ECHO_C" >&6
33201 else
33202   ac_check_lib_save_LIBS=$LIBS
33203 LIBS="-lnsl  $LIBS"
33204 cat >conftest.$ac_ext <<_ACEOF
33205 /* confdefs.h.  */
33206 _ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h.  */
33210
33211 /* Override any GCC internal prototype to avoid an error.
33212    Use char because int might match the return type of a GCC
33213    builtin and then its argument prototype would still apply.  */
33214 #ifdef __cplusplus
33215 extern "C"
33216 #endif
33217 char gethostbyname ();
33218 int
33219 main ()
33220 {
33221 return gethostbyname ();
33222   ;
33223   return 0;
33224 }
33225 _ACEOF
33226 rm -f conftest.$ac_objext conftest$ac_exeext
33227 if { (ac_try="$ac_link"
33228 case "(($ac_try" in
33229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230   *) ac_try_echo=$ac_try;;
33231 esac
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233   (eval "$ac_link") 2>conftest.er1
33234   ac_status=$?
33235   grep -v '^ *+' conftest.er1 >conftest.err
33236   rm -f conftest.er1
33237   cat conftest.err >&5
33238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239   (exit $ac_status); } && {
33240          test -z "$ac_c_werror_flag" ||
33241          test ! -s conftest.err
33242        } && test -s conftest$ac_exeext &&
33243        $as_test_x conftest$ac_exeext; then
33244   ac_cv_lib_nsl_gethostbyname=yes
33245 else
33246   echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33248
33249         ac_cv_lib_nsl_gethostbyname=no
33250 fi
33251
33252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33253       conftest$ac_exeext conftest.$ac_ext
33254 LIBS=$ac_check_lib_save_LIBS
33255 fi
33256 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33257 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
33258 if test $ac_cv_lib_nsl_gethostbyname = yes; then
33259   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33260 fi
33261
33262       if test $ac_cv_lib_nsl_gethostbyname = no; then
33263         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33264 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
33265 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33266   echo $ECHO_N "(cached) $ECHO_C" >&6
33267 else
33268   ac_check_lib_save_LIBS=$LIBS
33269 LIBS="-lbsd  $LIBS"
33270 cat >conftest.$ac_ext <<_ACEOF
33271 /* confdefs.h.  */
33272 _ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h.  */
33276
33277 /* Override any GCC internal prototype to avoid an error.
33278    Use char because int might match the return type of a GCC
33279    builtin and then its argument prototype would still apply.  */
33280 #ifdef __cplusplus
33281 extern "C"
33282 #endif
33283 char gethostbyname ();
33284 int
33285 main ()
33286 {
33287 return gethostbyname ();
33288   ;
33289   return 0;
33290 }
33291 _ACEOF
33292 rm -f conftest.$ac_objext conftest$ac_exeext
33293 if { (ac_try="$ac_link"
33294 case "(($ac_try" in
33295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33296   *) ac_try_echo=$ac_try;;
33297 esac
33298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33299   (eval "$ac_link") 2>conftest.er1
33300   ac_status=$?
33301   grep -v '^ *+' conftest.er1 >conftest.err
33302   rm -f conftest.er1
33303   cat conftest.err >&5
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); } && {
33306          test -z "$ac_c_werror_flag" ||
33307          test ! -s conftest.err
33308        } && test -s conftest$ac_exeext &&
33309        $as_test_x conftest$ac_exeext; then
33310   ac_cv_lib_bsd_gethostbyname=yes
33311 else
33312   echo "$as_me: failed program was:" >&5
33313 sed 's/^/| /' conftest.$ac_ext >&5
33314
33315         ac_cv_lib_bsd_gethostbyname=no
33316 fi
33317
33318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33319       conftest$ac_exeext conftest.$ac_ext
33320 LIBS=$ac_check_lib_save_LIBS
33321 fi
33322 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33323 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
33324 if test $ac_cv_lib_bsd_gethostbyname = yes; then
33325   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33326 fi
33327
33328       fi
33329     fi
33330
33331     # lieder@skyler.mavd.honeywell.com says without -lsocket,
33332     # socket/setsockopt and other routines are undefined under SCO ODT
33333     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
33334     # on later versions), says Simon Leinen: it contains gethostby*
33335     # variants that don't use the name server (or something).  -lsocket
33336     # must be given before -lnsl if both are needed.  We assume that
33337     # if connect needs -lnsl, so does gethostbyname.
33338     { echo "$as_me:$LINENO: checking for connect" >&5
33339 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
33340 if test "${ac_cv_func_connect+set}" = set; then
33341   echo $ECHO_N "(cached) $ECHO_C" >&6
33342 else
33343   cat >conftest.$ac_ext <<_ACEOF
33344 /* confdefs.h.  */
33345 _ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h.  */
33349 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
33350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33351 #define connect innocuous_connect
33352
33353 /* System header to define __stub macros and hopefully few prototypes,
33354     which can conflict with char connect (); below.
33355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33356     <limits.h> exists even on freestanding compilers.  */
33357
33358 #ifdef __STDC__
33359 # include <limits.h>
33360 #else
33361 # include <assert.h>
33362 #endif
33363
33364 #undef connect
33365
33366 /* Override any GCC internal prototype to avoid an error.
33367    Use char because int might match the return type of a GCC
33368    builtin and then its argument prototype would still apply.  */
33369 #ifdef __cplusplus
33370 extern "C"
33371 #endif
33372 char connect ();
33373 /* The GNU C library defines this for functions which it implements
33374     to always fail with ENOSYS.  Some functions are actually named
33375     something starting with __ and the normal name is an alias.  */
33376 #if defined __stub_connect || defined __stub___connect
33377 choke me
33378 #endif
33379
33380 int
33381 main ()
33382 {
33383 return connect ();
33384   ;
33385   return 0;
33386 }
33387 _ACEOF
33388 rm -f conftest.$ac_objext conftest$ac_exeext
33389 if { (ac_try="$ac_link"
33390 case "(($ac_try" in
33391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392   *) ac_try_echo=$ac_try;;
33393 esac
33394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33395   (eval "$ac_link") 2>conftest.er1
33396   ac_status=$?
33397   grep -v '^ *+' conftest.er1 >conftest.err
33398   rm -f conftest.er1
33399   cat conftest.err >&5
33400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401   (exit $ac_status); } && {
33402          test -z "$ac_c_werror_flag" ||
33403          test ! -s conftest.err
33404        } && test -s conftest$ac_exeext &&
33405        $as_test_x conftest$ac_exeext; then
33406   ac_cv_func_connect=yes
33407 else
33408   echo "$as_me: failed program was:" >&5
33409 sed 's/^/| /' conftest.$ac_ext >&5
33410
33411         ac_cv_func_connect=no
33412 fi
33413
33414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33415       conftest$ac_exeext conftest.$ac_ext
33416 fi
33417 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33418 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
33419
33420     if test $ac_cv_func_connect = no; then
33421       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33422 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
33423 if test "${ac_cv_lib_socket_connect+set}" = set; then
33424   echo $ECHO_N "(cached) $ECHO_C" >&6
33425 else
33426   ac_check_lib_save_LIBS=$LIBS
33427 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33428 cat >conftest.$ac_ext <<_ACEOF
33429 /* confdefs.h.  */
33430 _ACEOF
33431 cat confdefs.h >>conftest.$ac_ext
33432 cat >>conftest.$ac_ext <<_ACEOF
33433 /* end confdefs.h.  */
33434
33435 /* Override any GCC internal prototype to avoid an error.
33436    Use char because int might match the return type of a GCC
33437    builtin and then its argument prototype would still apply.  */
33438 #ifdef __cplusplus
33439 extern "C"
33440 #endif
33441 char connect ();
33442 int
33443 main ()
33444 {
33445 return connect ();
33446   ;
33447   return 0;
33448 }
33449 _ACEOF
33450 rm -f conftest.$ac_objext conftest$ac_exeext
33451 if { (ac_try="$ac_link"
33452 case "(($ac_try" in
33453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454   *) ac_try_echo=$ac_try;;
33455 esac
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457   (eval "$ac_link") 2>conftest.er1
33458   ac_status=$?
33459   grep -v '^ *+' conftest.er1 >conftest.err
33460   rm -f conftest.er1
33461   cat conftest.err >&5
33462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463   (exit $ac_status); } && {
33464          test -z "$ac_c_werror_flag" ||
33465          test ! -s conftest.err
33466        } && test -s conftest$ac_exeext &&
33467        $as_test_x conftest$ac_exeext; then
33468   ac_cv_lib_socket_connect=yes
33469 else
33470   echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33472
33473         ac_cv_lib_socket_connect=no
33474 fi
33475
33476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33477       conftest$ac_exeext conftest.$ac_ext
33478 LIBS=$ac_check_lib_save_LIBS
33479 fi
33480 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33481 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33482 if test $ac_cv_lib_socket_connect = yes; then
33483   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33484 fi
33485
33486     fi
33487
33488     # Guillermo Gomez says -lposix is necessary on A/UX.
33489     { echo "$as_me:$LINENO: checking for remove" >&5
33490 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33491 if test "${ac_cv_func_remove+set}" = set; then
33492   echo $ECHO_N "(cached) $ECHO_C" >&6
33493 else
33494   cat >conftest.$ac_ext <<_ACEOF
33495 /* confdefs.h.  */
33496 _ACEOF
33497 cat confdefs.h >>conftest.$ac_ext
33498 cat >>conftest.$ac_ext <<_ACEOF
33499 /* end confdefs.h.  */
33500 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33502 #define remove innocuous_remove
33503
33504 /* System header to define __stub macros and hopefully few prototypes,
33505     which can conflict with char remove (); below.
33506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33507     <limits.h> exists even on freestanding compilers.  */
33508
33509 #ifdef __STDC__
33510 # include <limits.h>
33511 #else
33512 # include <assert.h>
33513 #endif
33514
33515 #undef remove
33516
33517 /* Override any GCC internal prototype to avoid an error.
33518    Use char because int might match the return type of a GCC
33519    builtin and then its argument prototype would still apply.  */
33520 #ifdef __cplusplus
33521 extern "C"
33522 #endif
33523 char remove ();
33524 /* The GNU C library defines this for functions which it implements
33525     to always fail with ENOSYS.  Some functions are actually named
33526     something starting with __ and the normal name is an alias.  */
33527 #if defined __stub_remove || defined __stub___remove
33528 choke me
33529 #endif
33530
33531 int
33532 main ()
33533 {
33534 return remove ();
33535   ;
33536   return 0;
33537 }
33538 _ACEOF
33539 rm -f conftest.$ac_objext conftest$ac_exeext
33540 if { (ac_try="$ac_link"
33541 case "(($ac_try" in
33542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33543   *) ac_try_echo=$ac_try;;
33544 esac
33545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33546   (eval "$ac_link") 2>conftest.er1
33547   ac_status=$?
33548   grep -v '^ *+' conftest.er1 >conftest.err
33549   rm -f conftest.er1
33550   cat conftest.err >&5
33551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552   (exit $ac_status); } && {
33553          test -z "$ac_c_werror_flag" ||
33554          test ! -s conftest.err
33555        } && test -s conftest$ac_exeext &&
33556        $as_test_x conftest$ac_exeext; then
33557   ac_cv_func_remove=yes
33558 else
33559   echo "$as_me: failed program was:" >&5
33560 sed 's/^/| /' conftest.$ac_ext >&5
33561
33562         ac_cv_func_remove=no
33563 fi
33564
33565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33566       conftest$ac_exeext conftest.$ac_ext
33567 fi
33568 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33569 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33570
33571     if test $ac_cv_func_remove = no; then
33572       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33573 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33574 if test "${ac_cv_lib_posix_remove+set}" = set; then
33575   echo $ECHO_N "(cached) $ECHO_C" >&6
33576 else
33577   ac_check_lib_save_LIBS=$LIBS
33578 LIBS="-lposix  $LIBS"
33579 cat >conftest.$ac_ext <<_ACEOF
33580 /* confdefs.h.  */
33581 _ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h.  */
33585
33586 /* Override any GCC internal prototype to avoid an error.
33587    Use char because int might match the return type of a GCC
33588    builtin and then its argument prototype would still apply.  */
33589 #ifdef __cplusplus
33590 extern "C"
33591 #endif
33592 char remove ();
33593 int
33594 main ()
33595 {
33596 return remove ();
33597   ;
33598   return 0;
33599 }
33600 _ACEOF
33601 rm -f conftest.$ac_objext conftest$ac_exeext
33602 if { (ac_try="$ac_link"
33603 case "(($ac_try" in
33604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605   *) ac_try_echo=$ac_try;;
33606 esac
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608   (eval "$ac_link") 2>conftest.er1
33609   ac_status=$?
33610   grep -v '^ *+' conftest.er1 >conftest.err
33611   rm -f conftest.er1
33612   cat conftest.err >&5
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); } && {
33615          test -z "$ac_c_werror_flag" ||
33616          test ! -s conftest.err
33617        } && test -s conftest$ac_exeext &&
33618        $as_test_x conftest$ac_exeext; then
33619   ac_cv_lib_posix_remove=yes
33620 else
33621   echo "$as_me: failed program was:" >&5
33622 sed 's/^/| /' conftest.$ac_ext >&5
33623
33624         ac_cv_lib_posix_remove=no
33625 fi
33626
33627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33628       conftest$ac_exeext conftest.$ac_ext
33629 LIBS=$ac_check_lib_save_LIBS
33630 fi
33631 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33632 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33633 if test $ac_cv_lib_posix_remove = yes; then
33634   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33635 fi
33636
33637     fi
33638
33639     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33640     { echo "$as_me:$LINENO: checking for shmat" >&5
33641 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33642 if test "${ac_cv_func_shmat+set}" = set; then
33643   echo $ECHO_N "(cached) $ECHO_C" >&6
33644 else
33645   cat >conftest.$ac_ext <<_ACEOF
33646 /* confdefs.h.  */
33647 _ACEOF
33648 cat confdefs.h >>conftest.$ac_ext
33649 cat >>conftest.$ac_ext <<_ACEOF
33650 /* end confdefs.h.  */
33651 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33653 #define shmat innocuous_shmat
33654
33655 /* System header to define __stub macros and hopefully few prototypes,
33656     which can conflict with char shmat (); below.
33657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33658     <limits.h> exists even on freestanding compilers.  */
33659
33660 #ifdef __STDC__
33661 # include <limits.h>
33662 #else
33663 # include <assert.h>
33664 #endif
33665
33666 #undef shmat
33667
33668 /* Override any GCC internal prototype to avoid an error.
33669    Use char because int might match the return type of a GCC
33670    builtin and then its argument prototype would still apply.  */
33671 #ifdef __cplusplus
33672 extern "C"
33673 #endif
33674 char shmat ();
33675 /* The GNU C library defines this for functions which it implements
33676     to always fail with ENOSYS.  Some functions are actually named
33677     something starting with __ and the normal name is an alias.  */
33678 #if defined __stub_shmat || defined __stub___shmat
33679 choke me
33680 #endif
33681
33682 int
33683 main ()
33684 {
33685 return shmat ();
33686   ;
33687   return 0;
33688 }
33689 _ACEOF
33690 rm -f conftest.$ac_objext conftest$ac_exeext
33691 if { (ac_try="$ac_link"
33692 case "(($ac_try" in
33693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33694   *) ac_try_echo=$ac_try;;
33695 esac
33696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33697   (eval "$ac_link") 2>conftest.er1
33698   ac_status=$?
33699   grep -v '^ *+' conftest.er1 >conftest.err
33700   rm -f conftest.er1
33701   cat conftest.err >&5
33702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703   (exit $ac_status); } && {
33704          test -z "$ac_c_werror_flag" ||
33705          test ! -s conftest.err
33706        } && test -s conftest$ac_exeext &&
33707        $as_test_x conftest$ac_exeext; then
33708   ac_cv_func_shmat=yes
33709 else
33710   echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.$ac_ext >&5
33712
33713         ac_cv_func_shmat=no
33714 fi
33715
33716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33717       conftest$ac_exeext conftest.$ac_ext
33718 fi
33719 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33720 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33721
33722     if test $ac_cv_func_shmat = no; then
33723       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33724 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33725 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33726   echo $ECHO_N "(cached) $ECHO_C" >&6
33727 else
33728   ac_check_lib_save_LIBS=$LIBS
33729 LIBS="-lipc  $LIBS"
33730 cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736
33737 /* Override any GCC internal prototype to avoid an error.
33738    Use char because int might match the return type of a GCC
33739    builtin and then its argument prototype would still apply.  */
33740 #ifdef __cplusplus
33741 extern "C"
33742 #endif
33743 char shmat ();
33744 int
33745 main ()
33746 {
33747 return shmat ();
33748   ;
33749   return 0;
33750 }
33751 _ACEOF
33752 rm -f conftest.$ac_objext conftest$ac_exeext
33753 if { (ac_try="$ac_link"
33754 case "(($ac_try" in
33755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756   *) ac_try_echo=$ac_try;;
33757 esac
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759   (eval "$ac_link") 2>conftest.er1
33760   ac_status=$?
33761   grep -v '^ *+' conftest.er1 >conftest.err
33762   rm -f conftest.er1
33763   cat conftest.err >&5
33764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765   (exit $ac_status); } && {
33766          test -z "$ac_c_werror_flag" ||
33767          test ! -s conftest.err
33768        } && test -s conftest$ac_exeext &&
33769        $as_test_x conftest$ac_exeext; then
33770   ac_cv_lib_ipc_shmat=yes
33771 else
33772   echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33774
33775         ac_cv_lib_ipc_shmat=no
33776 fi
33777
33778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33779       conftest$ac_exeext conftest.$ac_ext
33780 LIBS=$ac_check_lib_save_LIBS
33781 fi
33782 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33783 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33784 if test $ac_cv_lib_ipc_shmat = yes; then
33785   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33786 fi
33787
33788     fi
33789   fi
33790
33791   # Check for libraries that X11R6 Xt/Xaw programs need.
33792   ac_save_LDFLAGS=$LDFLAGS
33793   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33794   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33795   # check for ICE first), but we must link in the order -lSM -lICE or
33796   # we get undefined symbols.  So assume we have SM if we have ICE.
33797   # These have to be linked with before -lX11, unlike the other
33798   # libraries we check for below, so use a different variable.
33799   # John Interrante, Karl Berry
33800   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33801 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33802 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33803   echo $ECHO_N "(cached) $ECHO_C" >&6
33804 else
33805   ac_check_lib_save_LIBS=$LIBS
33806 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33807 cat >conftest.$ac_ext <<_ACEOF
33808 /* confdefs.h.  */
33809 _ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h.  */
33813
33814 /* Override any GCC internal prototype to avoid an error.
33815    Use char because int might match the return type of a GCC
33816    builtin and then its argument prototype would still apply.  */
33817 #ifdef __cplusplus
33818 extern "C"
33819 #endif
33820 char IceConnectionNumber ();
33821 int
33822 main ()
33823 {
33824 return IceConnectionNumber ();
33825   ;
33826   return 0;
33827 }
33828 _ACEOF
33829 rm -f conftest.$ac_objext conftest$ac_exeext
33830 if { (ac_try="$ac_link"
33831 case "(($ac_try" in
33832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33833   *) ac_try_echo=$ac_try;;
33834 esac
33835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33836   (eval "$ac_link") 2>conftest.er1
33837   ac_status=$?
33838   grep -v '^ *+' conftest.er1 >conftest.err
33839   rm -f conftest.er1
33840   cat conftest.err >&5
33841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842   (exit $ac_status); } && {
33843          test -z "$ac_c_werror_flag" ||
33844          test ! -s conftest.err
33845        } && test -s conftest$ac_exeext &&
33846        $as_test_x conftest$ac_exeext; then
33847   ac_cv_lib_ICE_IceConnectionNumber=yes
33848 else
33849   echo "$as_me: failed program was:" >&5
33850 sed 's/^/| /' conftest.$ac_ext >&5
33851
33852         ac_cv_lib_ICE_IceConnectionNumber=no
33853 fi
33854
33855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33856       conftest$ac_exeext conftest.$ac_ext
33857 LIBS=$ac_check_lib_save_LIBS
33858 fi
33859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33860 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33861 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33862   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33863 fi
33864
33865   LDFLAGS=$ac_save_LDFLAGS
33866
33867 fi
33868
33869
33870         if test "$no_x" = "yes"; then
33871           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33872 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33873    { (exit 1); exit 1; }; }
33874         fi
33875
33876                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33877         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33878         AFMINSTALL=afminstall
33879         COMPILED_X_PROGRAM=0
33880
33881     fi
33882
33883     if test "$wxUSE_X11" = 1; then
33884         if test "$wxUSE_NANOX" = "yes"; then
33885             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33886 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33887             if test "x$MICROWIN" = x ; then
33888                 { echo "$as_me:$LINENO: result: not found" >&5
33889 echo "${ECHO_T}not found" >&6; }
33890                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33891 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33892    { (exit 1); exit 1; }; }
33893             else
33894                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33895 echo "${ECHO_T}$MICROWIN" >&6; }
33896                 cat >>confdefs.h <<\_ACEOF
33897 #define wxUSE_NANOX 1
33898 _ACEOF
33899
33900             fi
33901         fi
33902
33903         if test "$wxUSE_UNICODE" = "yes"; then
33904
33905
33906 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33907         if test -n "$ac_tool_prefix"; then
33908   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33909 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33912 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33913   echo $ECHO_N "(cached) $ECHO_C" >&6
33914 else
33915   case $PKG_CONFIG in
33916   [\\/]* | ?:[\\/]*)
33917   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33918   ;;
33919   *)
33920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33921 for as_dir in $PATH
33922 do
33923   IFS=$as_save_IFS
33924   test -z "$as_dir" && as_dir=.
33925   for ac_exec_ext in '' $ac_executable_extensions; do
33926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33927     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33929     break 2
33930   fi
33931 done
33932 done
33933 IFS=$as_save_IFS
33934
33935   ;;
33936 esac
33937 fi
33938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33939 if test -n "$PKG_CONFIG"; then
33940   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33941 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33942 else
33943   { echo "$as_me:$LINENO: result: no" >&5
33944 echo "${ECHO_T}no" >&6; }
33945 fi
33946
33947
33948 fi
33949 if test -z "$ac_cv_path_PKG_CONFIG"; then
33950   ac_pt_PKG_CONFIG=$PKG_CONFIG
33951   # Extract the first word of "pkg-config", so it can be a program name with args.
33952 set dummy pkg-config; ac_word=$2
33953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33955 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33956   echo $ECHO_N "(cached) $ECHO_C" >&6
33957 else
33958   case $ac_pt_PKG_CONFIG in
33959   [\\/]* | ?:[\\/]*)
33960   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33961   ;;
33962   *)
33963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33964 for as_dir in $PATH
33965 do
33966   IFS=$as_save_IFS
33967   test -z "$as_dir" && as_dir=.
33968   for ac_exec_ext in '' $ac_executable_extensions; do
33969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33970     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33972     break 2
33973   fi
33974 done
33975 done
33976 IFS=$as_save_IFS
33977
33978   ;;
33979 esac
33980 fi
33981 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33982 if test -n "$ac_pt_PKG_CONFIG"; then
33983   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33984 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33985 else
33986   { echo "$as_me:$LINENO: result: no" >&5
33987 echo "${ECHO_T}no" >&6; }
33988 fi
33989
33990   if test "x$ac_pt_PKG_CONFIG" = x; then
33991     PKG_CONFIG=""
33992   else
33993     case $cross_compiling:$ac_tool_warned in
33994 yes:)
33995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33996 whose name does not start with the host triplet.  If you think this
33997 configuration is useful to you, please write to autoconf@gnu.org." >&5
33998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33999 whose name does not start with the host triplet.  If you think this
34000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34001 ac_tool_warned=yes ;;
34002 esac
34003     PKG_CONFIG=$ac_pt_PKG_CONFIG
34004   fi
34005 else
34006   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
34007 fi
34008
34009 fi
34010 if test -n "$PKG_CONFIG"; then
34011         _pkg_min_version=0.9.0
34012         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34013 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34014         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34015                 { echo "$as_me:$LINENO: result: yes" >&5
34016 echo "${ECHO_T}yes" >&6; }
34017         else
34018                 { echo "$as_me:$LINENO: result: no" >&5
34019 echo "${ECHO_T}no" >&6; }
34020                 PKG_CONFIG=""
34021         fi
34022
34023 fi
34024
34025
34026 pkg_failed=no
34027 { echo "$as_me:$LINENO: checking for PANGOX" >&5
34028 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
34029
34030 if test -n "$PKG_CONFIG"; then
34031     if test -n "$PANGOX_CFLAGS"; then
34032         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
34033     else
34034         if test -n "$PKG_CONFIG" && \
34035     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34036   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34037   ac_status=$?
34038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039   (exit $ac_status); }; then
34040   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
34041 else
34042   pkg_failed=yes
34043 fi
34044     fi
34045 else
34046         pkg_failed=untried
34047 fi
34048 if test -n "$PKG_CONFIG"; then
34049     if test -n "$PANGOX_LIBS"; then
34050         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
34051     else
34052         if test -n "$PKG_CONFIG" && \
34053     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34054   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34055   ac_status=$?
34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057   (exit $ac_status); }; then
34058   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
34059 else
34060   pkg_failed=yes
34061 fi
34062     fi
34063 else
34064         pkg_failed=untried
34065 fi
34066
34067
34068
34069 if test $pkg_failed = yes; then
34070
34071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34072         _pkg_short_errors_supported=yes
34073 else
34074         _pkg_short_errors_supported=no
34075 fi
34076         if test $_pkg_short_errors_supported = yes; then
34077                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
34078         else
34079                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
34080         fi
34081         # Put the nasty error message in config.log where it belongs
34082         echo "$PANGOX_PKG_ERRORS" >&5
34083
34084
34085                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34086 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34087    { (exit 1); exit 1; }; }
34088
34089
34090 elif test $pkg_failed = untried; then
34091
34092                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34093 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34094    { (exit 1); exit 1; }; }
34095
34096
34097 else
34098         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
34099         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
34100         { echo "$as_me:$LINENO: result: yes" >&5
34101 echo "${ECHO_T}yes" >&6; }
34102
34103                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
34104                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
34105                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
34106
34107 fi
34108
34109 pkg_failed=no
34110 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
34111 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
34112
34113 if test -n "$PKG_CONFIG"; then
34114     if test -n "$PANGOFT2_CFLAGS"; then
34115         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
34116     else
34117         if test -n "$PKG_CONFIG" && \
34118     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34119   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34120   ac_status=$?
34121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122   (exit $ac_status); }; then
34123   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
34124 else
34125   pkg_failed=yes
34126 fi
34127     fi
34128 else
34129         pkg_failed=untried
34130 fi
34131 if test -n "$PKG_CONFIG"; then
34132     if test -n "$PANGOFT2_LIBS"; then
34133         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
34134     else
34135         if test -n "$PKG_CONFIG" && \
34136     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34137   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34138   ac_status=$?
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); }; then
34141   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
34142 else
34143   pkg_failed=yes
34144 fi
34145     fi
34146 else
34147         pkg_failed=untried
34148 fi
34149
34150
34151
34152 if test $pkg_failed = yes; then
34153
34154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34155         _pkg_short_errors_supported=yes
34156 else
34157         _pkg_short_errors_supported=no
34158 fi
34159         if test $_pkg_short_errors_supported = yes; then
34160                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
34161         else
34162                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34163         fi
34164         # Put the nasty error message in config.log where it belongs
34165         echo "$PANGOFT2_PKG_ERRORS" >&5
34166
34167
34168                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34169 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34170                     wxUSE_PRINTING_ARCHITECTURE="no"
34171
34172
34173 elif test $pkg_failed = untried; then
34174
34175                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34176 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34177                     wxUSE_PRINTING_ARCHITECTURE="no"
34178
34179
34180 else
34181         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34182         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
34183         { echo "$as_me:$LINENO: result: yes" >&5
34184 echo "${ECHO_T}yes" >&6; }
34185
34186                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
34187                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34188                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
34189
34190 fi
34191
34192 pkg_failed=no
34193 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34194 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
34195
34196 if test -n "$PKG_CONFIG"; then
34197     if test -n "$PANGOXFT_CFLAGS"; then
34198         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34199     else
34200         if test -n "$PKG_CONFIG" && \
34201     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34202   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34203   ac_status=$?
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); }; then
34206   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
34207 else
34208   pkg_failed=yes
34209 fi
34210     fi
34211 else
34212         pkg_failed=untried
34213 fi
34214 if test -n "$PKG_CONFIG"; then
34215     if test -n "$PANGOXFT_LIBS"; then
34216         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34217     else
34218         if test -n "$PKG_CONFIG" && \
34219     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34220   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34221   ac_status=$?
34222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223   (exit $ac_status); }; then
34224   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34225 else
34226   pkg_failed=yes
34227 fi
34228     fi
34229 else
34230         pkg_failed=untried
34231 fi
34232
34233
34234
34235 if test $pkg_failed = yes; then
34236
34237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34238         _pkg_short_errors_supported=yes
34239 else
34240         _pkg_short_errors_supported=no
34241 fi
34242         if test $_pkg_short_errors_supported = yes; then
34243                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34244         else
34245                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
34246         fi
34247         # Put the nasty error message in config.log where it belongs
34248         echo "$PANGOXFT_PKG_ERRORS" >&5
34249
34250
34251                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34252 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34253
34254
34255 elif test $pkg_failed = untried; then
34256
34257                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34258 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34259
34260
34261 else
34262         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34263         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
34264         { echo "$as_me:$LINENO: result: yes" >&5
34265 echo "${ECHO_T}yes" >&6; }
34266
34267                     cat >>confdefs.h <<\_ACEOF
34268 #define HAVE_PANGO_XFT 1
34269 _ACEOF
34270
34271                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
34272                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34273                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
34274
34275 fi
34276             save_LIBS="$LIBS"
34277             LIBS="$LIBS $PANGOX_LIBS"
34278
34279 for ac_func in pango_font_family_is_monospace
34280 do
34281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34285   echo $ECHO_N "(cached) $ECHO_C" >&6
34286 else
34287   cat >conftest.$ac_ext <<_ACEOF
34288 /* confdefs.h.  */
34289 _ACEOF
34290 cat confdefs.h >>conftest.$ac_ext
34291 cat >>conftest.$ac_ext <<_ACEOF
34292 /* end confdefs.h.  */
34293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34295 #define $ac_func innocuous_$ac_func
34296
34297 /* System header to define __stub macros and hopefully few prototypes,
34298     which can conflict with char $ac_func (); below.
34299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34300     <limits.h> exists even on freestanding compilers.  */
34301
34302 #ifdef __STDC__
34303 # include <limits.h>
34304 #else
34305 # include <assert.h>
34306 #endif
34307
34308 #undef $ac_func
34309
34310 /* Override any GCC internal prototype to avoid an error.
34311    Use char because int might match the return type of a GCC
34312    builtin and then its argument prototype would still apply.  */
34313 #ifdef __cplusplus
34314 extern "C"
34315 #endif
34316 char $ac_func ();
34317 /* The GNU C library defines this for functions which it implements
34318     to always fail with ENOSYS.  Some functions are actually named
34319     something starting with __ and the normal name is an alias.  */
34320 #if defined __stub_$ac_func || defined __stub___$ac_func
34321 choke me
34322 #endif
34323
34324 int
34325 main ()
34326 {
34327 return $ac_func ();
34328   ;
34329   return 0;
34330 }
34331 _ACEOF
34332 rm -f conftest.$ac_objext conftest$ac_exeext
34333 if { (ac_try="$ac_link"
34334 case "(($ac_try" in
34335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34336   *) ac_try_echo=$ac_try;;
34337 esac
34338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34339   (eval "$ac_link") 2>conftest.er1
34340   ac_status=$?
34341   grep -v '^ *+' conftest.er1 >conftest.err
34342   rm -f conftest.er1
34343   cat conftest.err >&5
34344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345   (exit $ac_status); } && {
34346          test -z "$ac_c_werror_flag" ||
34347          test ! -s conftest.err
34348        } && test -s conftest$ac_exeext &&
34349        $as_test_x conftest$ac_exeext; then
34350   eval "$as_ac_var=yes"
34351 else
34352   echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34354
34355         eval "$as_ac_var=no"
34356 fi
34357
34358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34359       conftest$ac_exeext conftest.$ac_ext
34360 fi
34361 ac_res=`eval echo '${'$as_ac_var'}'`
34362                { echo "$as_me:$LINENO: result: $ac_res" >&5
34363 echo "${ECHO_T}$ac_res" >&6; }
34364 if test `eval echo '${'$as_ac_var'}'` = yes; then
34365   cat >>confdefs.h <<_ACEOF
34366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34367 _ACEOF
34368
34369 fi
34370 done
34371
34372             LIBS="$save_LIBS"
34373         fi
34374
34375         wxUSE_UNIVERSAL="yes"
34376
34377         if test "$wxUSE_NANOX" = "yes"; then
34378             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34379             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"
34380             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34381         else
34382             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34383         fi
34384
34385         TOOLKIT=X11
34386         GUIDIST=X11_DIST
34387     fi
34388
34389     if test "$wxUSE_MOTIF" = 1; then
34390         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34391 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
34392
34393 ac_find_includes=
34394 for ac_dir in $SEARCH_INCLUDE /usr/include;
34395   do
34396     if test -f "$ac_dir/Xm/Xm.h"; then
34397       ac_find_includes=$ac_dir
34398       break
34399     fi
34400   done
34401
34402         if test "$ac_find_includes" != "" ; then
34403             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34404 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34405
34406     if test "x$ac_find_includes" = "x/usr/include"; then
34407     ac_path_to_include=""
34408   else
34409     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34410     result=$?
34411     if test $result = 0; then
34412       ac_path_to_include=""
34413     else
34414       ac_path_to_include=" -I$ac_find_includes"
34415     fi
34416   fi
34417
34418             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34419         else
34420             save_CFLAGS=$CFLAGS
34421             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34422
34423             cat >conftest.$ac_ext <<_ACEOF
34424 /* confdefs.h.  */
34425 _ACEOF
34426 cat confdefs.h >>conftest.$ac_ext
34427 cat >>conftest.$ac_ext <<_ACEOF
34428 /* end confdefs.h.  */
34429
34430                     #include <Xm/Xm.h>
34431
34432 int
34433 main ()
34434 {
34435
34436                     int version;
34437                     version = xmUseVersion;
34438
34439   ;
34440   return 0;
34441 }
34442 _ACEOF
34443 rm -f conftest.$ac_objext
34444 if { (ac_try="$ac_compile"
34445 case "(($ac_try" in
34446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34447   *) ac_try_echo=$ac_try;;
34448 esac
34449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34450   (eval "$ac_compile") 2>conftest.er1
34451   ac_status=$?
34452   grep -v '^ *+' conftest.er1 >conftest.err
34453   rm -f conftest.er1
34454   cat conftest.err >&5
34455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456   (exit $ac_status); } && {
34457          test -z "$ac_c_werror_flag" ||
34458          test ! -s conftest.err
34459        } && test -s conftest.$ac_objext; then
34460
34461                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34462 echo "${ECHO_T}found in default search path" >&6; }
34463                     COMPILED_X_PROGRAM=1
34464
34465 else
34466   echo "$as_me: failed program was:" >&5
34467 sed 's/^/| /' conftest.$ac_ext >&5
34468
34469
34470                     { echo "$as_me:$LINENO: result: no" >&5
34471 echo "${ECHO_T}no" >&6; }
34472                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34473 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34474    { (exit 1); exit 1; }; }
34475
34476
34477 fi
34478
34479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34480
34481             CFLAGS=$save_CFLAGS
34482         fi
34483
34484
34485         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34486 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34487
34488   ac_find_libraries=
34489   for ac_dir in $SEARCH_LIB;
34490   do
34491     for ac_extension in a so sl dylib dll.a; do
34492       if test -f "$ac_dir/libXm.$ac_extension"; then
34493         ac_find_libraries=$ac_dir
34494         break 2
34495       fi
34496     done
34497   done
34498
34499
34500         if test "x$ac_find_libraries" != "x" ; then
34501             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34502 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34503
34504
34505     if test "$ac_find_libraries" = "default location"; then
34506     ac_path_to_link=""
34507   else
34508     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34509     result=$?
34510     if test $result = 0; then
34511       ac_path_to_link=""
34512     else
34513       ac_path_to_link=" -L$ac_find_libraries"
34514     fi
34515   fi
34516
34517             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34518         else
34519                                                 save_CFLAGS=$CFLAGS
34520             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34521             save_LIBS="$LIBS"
34522             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34523
34524             cat >conftest.$ac_ext <<_ACEOF
34525 /* confdefs.h.  */
34526 _ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h.  */
34530
34531                     #include <Xm/Xm.h>
34532
34533 int
34534 main ()
34535 {
34536
34537                     int version;
34538                     version = xmUseVersion;
34539
34540   ;
34541   return 0;
34542 }
34543 _ACEOF
34544 rm -f conftest.$ac_objext conftest$ac_exeext
34545 if { (ac_try="$ac_link"
34546 case "(($ac_try" in
34547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34548   *) ac_try_echo=$ac_try;;
34549 esac
34550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34551   (eval "$ac_link") 2>conftest.er1
34552   ac_status=$?
34553   grep -v '^ *+' conftest.er1 >conftest.err
34554   rm -f conftest.er1
34555   cat conftest.err >&5
34556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557   (exit $ac_status); } && {
34558          test -z "$ac_c_werror_flag" ||
34559          test ! -s conftest.err
34560        } && test -s conftest$ac_exeext &&
34561        $as_test_x conftest$ac_exeext; then
34562
34563                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34564 echo "${ECHO_T}found in default search path" >&6; }
34565                     COMPILED_X_PROGRAM=1
34566
34567 else
34568   echo "$as_me: failed program was:" >&5
34569 sed 's/^/| /' conftest.$ac_ext >&5
34570
34571
34572                     { echo "$as_me:$LINENO: result: no" >&5
34573 echo "${ECHO_T}no" >&6; }
34574                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34575 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34576    { (exit 1); exit 1; }; }
34577
34578
34579 fi
34580
34581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34582       conftest$ac_exeext conftest.$ac_ext
34583
34584             CFLAGS=$save_CFLAGS
34585             LIBS="$save_LIBS"
34586         fi
34587
34588         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34589 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34590         libp_link=""
34591         libsm_ice_link=""
34592         libs_found=0
34593         for libp in "" " -lXp"; do
34594             if test "$libs_found" = "0"; then
34595                 for libsm_ice in "" " -lSM -lICE"; do
34596                     if test "$libs_found" = "0"; then
34597                         save_LIBS="$LIBS"
34598                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34599                         save_CFLAGS=$CFLAGS
34600                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34601
34602                         cat >conftest.$ac_ext <<_ACEOF
34603 /* confdefs.h.  */
34604 _ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h.  */
34608
34609                                 #include <Xm/Xm.h>
34610                                 #include <Xm/List.h>
34611
34612 int
34613 main ()
34614 {
34615
34616                                 XmString string = NULL;
34617                                 Widget w = NULL;
34618                                 int position = 0;
34619                                 XmListAddItem(w, string, position);
34620
34621   ;
34622   return 0;
34623 }
34624 _ACEOF
34625 rm -f conftest.$ac_objext conftest$ac_exeext
34626 if { (ac_try="$ac_link"
34627 case "(($ac_try" in
34628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629   *) ac_try_echo=$ac_try;;
34630 esac
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632   (eval "$ac_link") 2>conftest.er1
34633   ac_status=$?
34634   grep -v '^ *+' conftest.er1 >conftest.err
34635   rm -f conftest.er1
34636   cat conftest.err >&5
34637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638   (exit $ac_status); } && {
34639          test -z "$ac_c_werror_flag" ||
34640          test ! -s conftest.err
34641        } && test -s conftest$ac_exeext &&
34642        $as_test_x conftest$ac_exeext; then
34643
34644                                 libp_link="$libp"
34645                                 libsm_ice_link="$libsm_ice"
34646                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34647 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34648                                 libs_found=1
34649
34650 else
34651   echo "$as_me: failed program was:" >&5
34652 sed 's/^/| /' conftest.$ac_ext >&5
34653
34654
34655
34656 fi
34657
34658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34659       conftest$ac_exeext conftest.$ac_ext
34660
34661                         LIBS="$save_LIBS"
34662                         CFLAGS=$save_CFLAGS
34663                     fi
34664                 done
34665             fi
34666         done
34667
34668         if test "$libs_found" = "0"; then
34669             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34670 echo "${ECHO_T}can't find the right libraries" >&6; }
34671             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34672 echo "$as_me: error: can't link a simple motif program" >&2;}
34673    { (exit 1); exit 1; }; }
34674         fi
34675
34676                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34677 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34678 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34679   echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681   ac_check_lib_save_LIBS=$LIBS
34682 LIBS="-lSgm  $LIBS"
34683 cat >conftest.$ac_ext <<_ACEOF
34684 /* confdefs.h.  */
34685 _ACEOF
34686 cat confdefs.h >>conftest.$ac_ext
34687 cat >>conftest.$ac_ext <<_ACEOF
34688 /* end confdefs.h.  */
34689
34690 /* Override any GCC internal prototype to avoid an error.
34691    Use char because int might match the return type of a GCC
34692    builtin and then its argument prototype would still apply.  */
34693 #ifdef __cplusplus
34694 extern "C"
34695 #endif
34696 char SgCreateList ();
34697 int
34698 main ()
34699 {
34700 return SgCreateList ();
34701   ;
34702   return 0;
34703 }
34704 _ACEOF
34705 rm -f conftest.$ac_objext conftest$ac_exeext
34706 if { (ac_try="$ac_link"
34707 case "(($ac_try" in
34708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34709   *) ac_try_echo=$ac_try;;
34710 esac
34711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34712   (eval "$ac_link") 2>conftest.er1
34713   ac_status=$?
34714   grep -v '^ *+' conftest.er1 >conftest.err
34715   rm -f conftest.er1
34716   cat conftest.err >&5
34717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718   (exit $ac_status); } && {
34719          test -z "$ac_c_werror_flag" ||
34720          test ! -s conftest.err
34721        } && test -s conftest$ac_exeext &&
34722        $as_test_x conftest$ac_exeext; then
34723   ac_cv_lib_Sgm_SgCreateList=yes
34724 else
34725   echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34727
34728         ac_cv_lib_Sgm_SgCreateList=no
34729 fi
34730
34731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34732       conftest$ac_exeext conftest.$ac_ext
34733 LIBS=$ac_check_lib_save_LIBS
34734 fi
34735 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34736 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34737 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34738   libsgm_link=" -lSgm"
34739 fi
34740
34741
34742         save_CFLAGS=$CFLAGS
34743         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34744
34745         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34746 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34747 if test "${wx_cv_lib_motif2+set}" = set; then
34748   echo $ECHO_N "(cached) $ECHO_C" >&6
34749 else
34750   cat >conftest.$ac_ext <<_ACEOF
34751 /* confdefs.h.  */
34752 _ACEOF
34753 cat confdefs.h >>conftest.$ac_ext
34754 cat >>conftest.$ac_ext <<_ACEOF
34755 /* end confdefs.h.  */
34756
34757                             #include <Xm/Xm.h>
34758
34759 int
34760 main ()
34761 {
34762
34763                             #if XmVersion < 2000
34764                             Not Motif 2
34765                             #endif
34766
34767   ;
34768   return 0;
34769 }
34770 _ACEOF
34771 rm -f conftest.$ac_objext
34772 if { (ac_try="$ac_compile"
34773 case "(($ac_try" in
34774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775   *) ac_try_echo=$ac_try;;
34776 esac
34777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778   (eval "$ac_compile") 2>conftest.er1
34779   ac_status=$?
34780   grep -v '^ *+' conftest.er1 >conftest.err
34781   rm -f conftest.er1
34782   cat conftest.err >&5
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); } && {
34785          test -z "$ac_c_werror_flag" ||
34786          test ! -s conftest.err
34787        } && test -s conftest.$ac_objext; then
34788   wx_cv_lib_motif2="yes"
34789 else
34790   echo "$as_me: failed program was:" >&5
34791 sed 's/^/| /' conftest.$ac_ext >&5
34792
34793         wx_cv_lib_motif2="no"
34794 fi
34795
34796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34797 fi
34798 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34799 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34800         if test "$wx_cv_lib_motif2" = "yes"; then
34801             cat >>confdefs.h <<\_ACEOF
34802 #define __WXMOTIF20__ 1
34803 _ACEOF
34804
34805         else
34806             cat >>confdefs.h <<\_ACEOF
34807 #define __WXMOTIF20__ 0
34808 _ACEOF
34809
34810         fi
34811
34812         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34813 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34814 if test "${wx_cv_lib_lesstif+set}" = set; then
34815   echo $ECHO_N "(cached) $ECHO_C" >&6
34816 else
34817   cat >conftest.$ac_ext <<_ACEOF
34818 /* confdefs.h.  */
34819 _ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h.  */
34823
34824                             #include <Xm/Xm.h>
34825
34826 int
34827 main ()
34828 {
34829
34830                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34831                             Not Lesstif
34832                             #endif
34833
34834   ;
34835   return 0;
34836 }
34837 _ACEOF
34838 rm -f conftest.$ac_objext
34839 if { (ac_try="$ac_compile"
34840 case "(($ac_try" in
34841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842   *) ac_try_echo=$ac_try;;
34843 esac
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845   (eval "$ac_compile") 2>conftest.er1
34846   ac_status=$?
34847   grep -v '^ *+' conftest.er1 >conftest.err
34848   rm -f conftest.er1
34849   cat conftest.err >&5
34850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851   (exit $ac_status); } && {
34852          test -z "$ac_c_werror_flag" ||
34853          test ! -s conftest.err
34854        } && test -s conftest.$ac_objext; then
34855   wx_cv_lib_lesstif="yes"
34856 else
34857   echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860         wx_cv_lib_lesstif="no"
34861 fi
34862
34863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34864
34865 fi
34866 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34867 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34868         if test "$wx_cv_lib_lesstif" = "yes"; then
34869             cat >>confdefs.h <<\_ACEOF
34870 #define __WXLESSTIF__ 1
34871 _ACEOF
34872
34873         else
34874             cat >>confdefs.h <<\_ACEOF
34875 #define __WXLESSTIF__ 0
34876 _ACEOF
34877
34878         fi
34879
34880         CFLAGS=$save_CFLAGS
34881
34882         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34883         TOOLKIT=MOTIF
34884         GUIDIST=MOTIF_DIST
34885     fi
34886
34887         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34888                 if test "$wxUSE_LIBXPM" = "sys"; then
34889             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34890 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34891
34892   ac_find_libraries=
34893   for ac_dir in $SEARCH_LIB;
34894   do
34895     for ac_extension in a so sl dylib dll.a; do
34896       if test -f "$ac_dir/libXpm.$ac_extension"; then
34897         ac_find_libraries=$ac_dir
34898         break 2
34899       fi
34900     done
34901   done
34902
34903             if test "$ac_find_libraries" != "" ; then
34904
34905     if test "$ac_find_libraries" = "default location"; then
34906     ac_path_to_link=""
34907   else
34908     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34909     result=$?
34910     if test $result = 0; then
34911       ac_path_to_link=""
34912     else
34913       ac_path_to_link=" -L$ac_find_libraries"
34914     fi
34915   fi
34916
34917                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34918                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34919 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34920
34921                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34922 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34923 if test "${wx_cv_x11_xpm_h+set}" = set; then
34924   echo $ECHO_N "(cached) $ECHO_C" >&6
34925 else
34926
34927                         save_CFLAGS=$CFLAGS
34928                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34929
34930                         cat >conftest.$ac_ext <<_ACEOF
34931 /* confdefs.h.  */
34932 _ACEOF
34933 cat confdefs.h >>conftest.$ac_ext
34934 cat >>conftest.$ac_ext <<_ACEOF
34935 /* end confdefs.h.  */
34936
34937                                 #include <X11/xpm.h>
34938
34939 int
34940 main ()
34941 {
34942
34943                                 int version;
34944                                 version = XpmLibraryVersion();
34945
34946   ;
34947   return 0;
34948 }
34949 _ACEOF
34950 rm -f conftest.$ac_objext
34951 if { (ac_try="$ac_compile"
34952 case "(($ac_try" in
34953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34954   *) ac_try_echo=$ac_try;;
34955 esac
34956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34957   (eval "$ac_compile") 2>conftest.er1
34958   ac_status=$?
34959   grep -v '^ *+' conftest.er1 >conftest.err
34960   rm -f conftest.er1
34961   cat conftest.err >&5
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); } && {
34964          test -z "$ac_c_werror_flag" ||
34965          test ! -s conftest.err
34966        } && test -s conftest.$ac_objext; then
34967   wx_cv_x11_xpm_h=yes
34968 else
34969   echo "$as_me: failed program was:" >&5
34970 sed 's/^/| /' conftest.$ac_ext >&5
34971
34972         wx_cv_x11_xpm_h=no
34973
34974 fi
34975
34976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34977
34978                         CFLAGS=$save_CFLAGS
34979
34980
34981 fi
34982 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34983 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34984
34985                 if test $wx_cv_x11_xpm_h = "yes"; then
34986                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34987                     cat >>confdefs.h <<\_ACEOF
34988 #define wxHAVE_LIB_XPM 1
34989 _ACEOF
34990
34991                 else
34992                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34993 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34994                 fi
34995             fi
34996
34997         fi
34998
34999                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
35000 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
35001 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
35002   echo $ECHO_N "(cached) $ECHO_C" >&6
35003 else
35004   ac_check_lib_save_LIBS=$LIBS
35005 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
35006 cat >conftest.$ac_ext <<_ACEOF
35007 /* confdefs.h.  */
35008 _ACEOF
35009 cat confdefs.h >>conftest.$ac_ext
35010 cat >>conftest.$ac_ext <<_ACEOF
35011 /* end confdefs.h.  */
35012
35013 /* Override any GCC internal prototype to avoid an error.
35014    Use char because int might match the return type of a GCC
35015    builtin and then its argument prototype would still apply.  */
35016 #ifdef __cplusplus
35017 extern "C"
35018 #endif
35019 char XShapeQueryExtension ();
35020 int
35021 main ()
35022 {
35023 return XShapeQueryExtension ();
35024   ;
35025   return 0;
35026 }
35027 _ACEOF
35028 rm -f conftest.$ac_objext conftest$ac_exeext
35029 if { (ac_try="$ac_link"
35030 case "(($ac_try" in
35031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032   *) ac_try_echo=$ac_try;;
35033 esac
35034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35035   (eval "$ac_link") 2>conftest.er1
35036   ac_status=$?
35037   grep -v '^ *+' conftest.er1 >conftest.err
35038   rm -f conftest.er1
35039   cat conftest.err >&5
35040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041   (exit $ac_status); } && {
35042          test -z "$ac_c_werror_flag" ||
35043          test ! -s conftest.err
35044        } && test -s conftest$ac_exeext &&
35045        $as_test_x conftest$ac_exeext; then
35046   ac_cv_lib_Xext_XShapeQueryExtension=yes
35047 else
35048   echo "$as_me: failed program was:" >&5
35049 sed 's/^/| /' conftest.$ac_ext >&5
35050
35051         ac_cv_lib_Xext_XShapeQueryExtension=no
35052 fi
35053
35054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35055       conftest$ac_exeext conftest.$ac_ext
35056 LIBS=$ac_check_lib_save_LIBS
35057 fi
35058 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
35059 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
35060 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
35061
35062                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
35063                       wxHAVE_XEXT_LIB=1
35064
35065 fi
35066
35067
35068         if test "$wxHAVE_XEXT_LIB" = 1; then
35069             save_CFLAGS="$CFLAGS"
35070             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35071
35072             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
35073 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
35074             cat >conftest.$ac_ext <<_ACEOF
35075 /* confdefs.h.  */
35076 _ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h.  */
35080
35081                             #include <X11/Xlib.h>
35082                             #include <X11/extensions/shape.h>
35083
35084 int
35085 main ()
35086 {
35087
35088                             int dummy1, dummy2;
35089                             XShapeQueryExtension((Display*)NULL,
35090                                                  (int*)NULL, (int*)NULL);
35091
35092   ;
35093   return 0;
35094 }
35095 _ACEOF
35096 rm -f conftest.$ac_objext
35097 if { (ac_try="$ac_compile"
35098 case "(($ac_try" in
35099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35100   *) ac_try_echo=$ac_try;;
35101 esac
35102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35103   (eval "$ac_compile") 2>conftest.er1
35104   ac_status=$?
35105   grep -v '^ *+' conftest.er1 >conftest.err
35106   rm -f conftest.er1
35107   cat conftest.err >&5
35108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109   (exit $ac_status); } && {
35110          test -z "$ac_c_werror_flag" ||
35111          test ! -s conftest.err
35112        } && test -s conftest.$ac_objext; then
35113
35114                             cat >>confdefs.h <<\_ACEOF
35115 #define HAVE_XSHAPE 1
35116 _ACEOF
35117
35118                             { echo "$as_me:$LINENO: result: found" >&5
35119 echo "${ECHO_T}found" >&6; }
35120
35121 else
35122   echo "$as_me: failed program was:" >&5
35123 sed 's/^/| /' conftest.$ac_ext >&5
35124
35125
35126                             { echo "$as_me:$LINENO: result: not found" >&5
35127 echo "${ECHO_T}not found" >&6; }
35128
35129 fi
35130
35131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35132             CFLAGS="$save_CFLAGS"
35133
35134         fi
35135     fi
35136
35137     if test "$wxUSE_MAC" = 1; then
35138         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
35139 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
35140         if test "$GCC" = yes; then
35141             { echo "$as_me:$LINENO: result: gcc" >&5
35142 echo "${ECHO_T}gcc" >&6; }
35143             CPPFLAGS_PASCAL="-fpascal-strings"
35144         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
35145             { echo "$as_me:$LINENO: result: xlc" >&5
35146 echo "${ECHO_T}xlc" >&6; }
35147             CPPFLAGS_PASCAL="-qmacpstr"
35148         else
35149             { echo "$as_me:$LINENO: result: none" >&5
35150 echo "${ECHO_T}none" >&6; }
35151         fi
35152
35153         if test "x$wxUSE_UNIX" = "xyes"; then
35154             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
35155         else
35156                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
35157         fi
35158
35159         TOOLKIT=MAC
35160                 GUIDIST=MACX_DIST
35161                         WXBASEPORT="_carbon"
35162     fi
35163
35164     if test "$wxUSE_COCOA" = 1; then
35165         TOOLKIT=COCOA
35166         GUIDIST=COCOA_DIST
35167     fi
35168
35169     if test "$wxUSE_PM" = 1; then
35170         TOOLKIT=PM
35171         GUIDIST=PM_DIST
35172         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35173 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
35174 if test "${wx_cv_spbcdata+set}" = set; then
35175   echo $ECHO_N "(cached) $ECHO_C" >&6
35176 else
35177
35178                 cat >conftest.$ac_ext <<_ACEOF
35179 /* confdefs.h.  */
35180 _ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h.  */
35184
35185                         #define INCL_PM
35186                         #include <os2.h>
35187
35188 int
35189 main ()
35190 {
35191
35192                         SPBCDATA test;
35193
35194   ;
35195   return 0;
35196 }
35197 _ACEOF
35198 rm -f conftest.$ac_objext
35199 if { (ac_try="$ac_compile"
35200 case "(($ac_try" in
35201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35202   *) ac_try_echo=$ac_try;;
35203 esac
35204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35205   (eval "$ac_compile") 2>conftest.er1
35206   ac_status=$?
35207   grep -v '^ *+' conftest.er1 >conftest.err
35208   rm -f conftest.er1
35209   cat conftest.err >&5
35210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211   (exit $ac_status); } && {
35212          test -z "$ac_c_werror_flag" ||
35213          test ! -s conftest.err
35214        } && test -s conftest.$ac_objext; then
35215   wx_cv_spbcdata=yes
35216 else
35217   echo "$as_me: failed program was:" >&5
35218 sed 's/^/| /' conftest.$ac_ext >&5
35219
35220         wx_cv_spbcdata=no
35221
35222 fi
35223
35224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35225
35226
35227 fi
35228 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35229 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
35230
35231         if test $wx_cv_spbcdata = "yes"; then
35232             cat >>confdefs.h <<\_ACEOF
35233 #define HAVE_SPBCDATA 1
35234 _ACEOF
35235
35236         fi
35237     fi
35238
35239         if test "$TOOLKIT" = "PM" ; then
35240         TOOLKIT_DIR="os2"
35241     else
35242         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
35243     fi
35244
35245     if test "$wxUSE_UNIVERSAL" = "yes"; then
35246         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35247         WIDGET_SET=univ
35248     fi
35249
35250         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35251     DISTDIR="wx\$(TOOLKIT)"
35252 else
35253     USE_GUI=0
35254
35255             TOOLKIT_DIR="base"
35256
35257         if test "$USE_WIN32" = 1 ; then
35258                         TOOLKIT="MSW"
35259     fi
35260
35261         GUIDIST="BASE_DIST"
35262     DISTDIR="wxBase"
35263 fi
35264
35265
35266
35267 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
35268     if test "$TOOLKIT" = "DFB" ; then
35269         wxUSE_UNICODE_UTF8=yes
35270     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
35271         wxUSE_UNICODE_UTF8=yes
35272     elif test "$USE_OS2" = "1" ; then
35273                                 wxUSE_UNICODE_UTF8=yes
35274     else
35275         wxUSE_UNICODE_UTF8=no
35276     fi
35277 fi
35278
35279
35280 if test "$wxUSE_GUI" = "yes"; then
35281     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
35282
35283 for ac_header in X11/Xlib.h
35284 do
35285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35289   echo $ECHO_N "(cached) $ECHO_C" >&6
35290 else
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
35299 #include <$ac_header>
35300 _ACEOF
35301 rm -f conftest.$ac_objext
35302 if { (ac_try="$ac_compile"
35303 case "(($ac_try" in
35304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35305   *) ac_try_echo=$ac_try;;
35306 esac
35307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35308   (eval "$ac_compile") 2>conftest.er1
35309   ac_status=$?
35310   grep -v '^ *+' conftest.er1 >conftest.err
35311   rm -f conftest.er1
35312   cat conftest.err >&5
35313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314   (exit $ac_status); } && {
35315          test -z "$ac_c_werror_flag" ||
35316          test ! -s conftest.err
35317        } && test -s conftest.$ac_objext; then
35318   eval "$as_ac_Header=yes"
35319 else
35320   echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35322
35323         eval "$as_ac_Header=no"
35324 fi
35325
35326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35327 fi
35328 ac_res=`eval echo '${'$as_ac_Header'}'`
35329                { echo "$as_me:$LINENO: result: $ac_res" >&5
35330 echo "${ECHO_T}$ac_res" >&6; }
35331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35332   cat >>confdefs.h <<_ACEOF
35333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35334 _ACEOF
35335
35336 fi
35337
35338 done
35339
35340
35341 for ac_header in X11/XKBlib.h
35342 do
35343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35347   echo $ECHO_N "(cached) $ECHO_C" >&6
35348 else
35349   cat >conftest.$ac_ext <<_ACEOF
35350 /* confdefs.h.  */
35351 _ACEOF
35352 cat confdefs.h >>conftest.$ac_ext
35353 cat >>conftest.$ac_ext <<_ACEOF
35354 /* end confdefs.h.  */
35355
35356                           #if HAVE_X11_XLIB_H
35357                             #include <X11/Xlib.h>
35358                           #endif
35359
35360
35361 #include <$ac_header>
35362 _ACEOF
35363 rm -f conftest.$ac_objext
35364 if { (ac_try="$ac_compile"
35365 case "(($ac_try" in
35366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35367   *) ac_try_echo=$ac_try;;
35368 esac
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370   (eval "$ac_compile") 2>conftest.er1
35371   ac_status=$?
35372   grep -v '^ *+' conftest.er1 >conftest.err
35373   rm -f conftest.er1
35374   cat conftest.err >&5
35375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376   (exit $ac_status); } && {
35377          test -z "$ac_c_werror_flag" ||
35378          test ! -s conftest.err
35379        } && test -s conftest.$ac_objext; then
35380   eval "$as_ac_Header=yes"
35381 else
35382   echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35384
35385         eval "$as_ac_Header=no"
35386 fi
35387
35388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35389 fi
35390 ac_res=`eval echo '${'$as_ac_Header'}'`
35391                { echo "$as_me:$LINENO: result: $ac_res" >&5
35392 echo "${ECHO_T}$ac_res" >&6; }
35393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35394   cat >>confdefs.h <<_ACEOF
35395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35396 _ACEOF
35397
35398 fi
35399
35400 done
35401
35402     fi
35403 fi
35404
35405
35406
35407 IODBC_C_SRC=""
35408
35409
35410 if test "$TOOLKIT" != "MSW" ; then
35411
35412     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
35413
35414         { echo "$as_me:$LINENO: checking for sql.h" >&5
35415 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35416 if test "${ac_cv_header_sql_h+set}" = set; then
35417   echo $ECHO_N "(cached) $ECHO_C" >&6
35418 else
35419   cat >conftest.$ac_ext <<_ACEOF
35420 /* confdefs.h.  */
35421 _ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h.  */
35425
35426
35427 #include <sql.h>
35428 _ACEOF
35429 rm -f conftest.$ac_objext
35430 if { (ac_try="$ac_compile"
35431 case "(($ac_try" in
35432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35433   *) ac_try_echo=$ac_try;;
35434 esac
35435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35436   (eval "$ac_compile") 2>conftest.er1
35437   ac_status=$?
35438   grep -v '^ *+' conftest.er1 >conftest.err
35439   rm -f conftest.er1
35440   cat conftest.err >&5
35441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442   (exit $ac_status); } && {
35443          test -z "$ac_c_werror_flag" ||
35444          test ! -s conftest.err
35445        } && test -s conftest.$ac_objext; then
35446   ac_cv_header_sql_h=yes
35447 else
35448   echo "$as_me: failed program was:" >&5
35449 sed 's/^/| /' conftest.$ac_ext >&5
35450
35451         ac_cv_header_sql_h=no
35452 fi
35453
35454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35455 fi
35456 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35457 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35458 if test $ac_cv_header_sql_h = yes; then
35459   found_sql_h=1
35460 fi
35461
35462
35463         if test "x$found_sql_h" = "x1" ; then
35464             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
35465 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
35466 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
35467   echo $ECHO_N "(cached) $ECHO_C" >&6
35468 else
35469   ac_check_lib_save_LIBS=$LIBS
35470 LIBS="-liodbc  $LIBS"
35471 cat >conftest.$ac_ext <<_ACEOF
35472 /* confdefs.h.  */
35473 _ACEOF
35474 cat confdefs.h >>conftest.$ac_ext
35475 cat >>conftest.$ac_ext <<_ACEOF
35476 /* end confdefs.h.  */
35477
35478 /* Override any GCC internal prototype to avoid an error.
35479    Use char because int might match the return type of a GCC
35480    builtin and then its argument prototype would still apply.  */
35481 #ifdef __cplusplus
35482 extern "C"
35483 #endif
35484 char SQLAllocEnv ();
35485 int
35486 main ()
35487 {
35488 return SQLAllocEnv ();
35489   ;
35490   return 0;
35491 }
35492 _ACEOF
35493 rm -f conftest.$ac_objext conftest$ac_exeext
35494 if { (ac_try="$ac_link"
35495 case "(($ac_try" in
35496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35497   *) ac_try_echo=$ac_try;;
35498 esac
35499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35500   (eval "$ac_link") 2>conftest.er1
35501   ac_status=$?
35502   grep -v '^ *+' conftest.er1 >conftest.err
35503   rm -f conftest.er1
35504   cat conftest.err >&5
35505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506   (exit $ac_status); } && {
35507          test -z "$ac_c_werror_flag" ||
35508          test ! -s conftest.err
35509        } && test -s conftest$ac_exeext &&
35510        $as_test_x conftest$ac_exeext; then
35511   ac_cv_lib_iodbc_SQLAllocEnv=yes
35512 else
35513   echo "$as_me: failed program was:" >&5
35514 sed 's/^/| /' conftest.$ac_ext >&5
35515
35516         ac_cv_lib_iodbc_SQLAllocEnv=no
35517 fi
35518
35519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35520       conftest$ac_exeext conftest.$ac_ext
35521 LIBS=$ac_check_lib_save_LIBS
35522 fi
35523 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35524 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
35525 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35526   ODBC_LINK=" -liodbc"
35527 else
35528
35529                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35530 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
35531 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
35532   echo $ECHO_N "(cached) $ECHO_C" >&6
35533 else
35534   ac_check_lib_save_LIBS=$LIBS
35535 LIBS="-lunixodbc  $LIBS"
35536 cat >conftest.$ac_ext <<_ACEOF
35537 /* confdefs.h.  */
35538 _ACEOF
35539 cat confdefs.h >>conftest.$ac_ext
35540 cat >>conftest.$ac_ext <<_ACEOF
35541 /* end confdefs.h.  */
35542
35543 /* Override any GCC internal prototype to avoid an error.
35544    Use char because int might match the return type of a GCC
35545    builtin and then its argument prototype would still apply.  */
35546 #ifdef __cplusplus
35547 extern "C"
35548 #endif
35549 char SQLAllocEnv ();
35550 int
35551 main ()
35552 {
35553 return SQLAllocEnv ();
35554   ;
35555   return 0;
35556 }
35557 _ACEOF
35558 rm -f conftest.$ac_objext conftest$ac_exeext
35559 if { (ac_try="$ac_link"
35560 case "(($ac_try" in
35561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35562   *) ac_try_echo=$ac_try;;
35563 esac
35564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35565   (eval "$ac_link") 2>conftest.er1
35566   ac_status=$?
35567   grep -v '^ *+' conftest.er1 >conftest.err
35568   rm -f conftest.er1
35569   cat conftest.err >&5
35570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571   (exit $ac_status); } && {
35572          test -z "$ac_c_werror_flag" ||
35573          test ! -s conftest.err
35574        } && test -s conftest$ac_exeext &&
35575        $as_test_x conftest$ac_exeext; then
35576   ac_cv_lib_unixodbc_SQLAllocEnv=yes
35577 else
35578   echo "$as_me: failed program was:" >&5
35579 sed 's/^/| /' conftest.$ac_ext >&5
35580
35581         ac_cv_lib_unixodbc_SQLAllocEnv=no
35582 fi
35583
35584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35585       conftest$ac_exeext conftest.$ac_ext
35586 LIBS=$ac_check_lib_save_LIBS
35587 fi
35588 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35589 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
35590 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35591   ODBC_LINK=" -lunixodbc"
35592 else
35593
35594                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35595 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
35596 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35597   echo $ECHO_N "(cached) $ECHO_C" >&6
35598 else
35599   ac_check_lib_save_LIBS=$LIBS
35600 LIBS="-lodbc  $LIBS"
35601 cat >conftest.$ac_ext <<_ACEOF
35602 /* confdefs.h.  */
35603 _ACEOF
35604 cat confdefs.h >>conftest.$ac_ext
35605 cat >>conftest.$ac_ext <<_ACEOF
35606 /* end confdefs.h.  */
35607
35608 /* Override any GCC internal prototype to avoid an error.
35609    Use char because int might match the return type of a GCC
35610    builtin and then its argument prototype would still apply.  */
35611 #ifdef __cplusplus
35612 extern "C"
35613 #endif
35614 char SQLAllocEnv ();
35615 int
35616 main ()
35617 {
35618 return SQLAllocEnv ();
35619   ;
35620   return 0;
35621 }
35622 _ACEOF
35623 rm -f conftest.$ac_objext conftest$ac_exeext
35624 if { (ac_try="$ac_link"
35625 case "(($ac_try" in
35626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35627   *) ac_try_echo=$ac_try;;
35628 esac
35629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35630   (eval "$ac_link") 2>conftest.er1
35631   ac_status=$?
35632   grep -v '^ *+' conftest.er1 >conftest.err
35633   rm -f conftest.er1
35634   cat conftest.err >&5
35635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636   (exit $ac_status); } && {
35637          test -z "$ac_c_werror_flag" ||
35638          test ! -s conftest.err
35639        } && test -s conftest$ac_exeext &&
35640        $as_test_x conftest$ac_exeext; then
35641   ac_cv_lib_odbc_SQLAllocEnv=yes
35642 else
35643   echo "$as_me: failed program was:" >&5
35644 sed 's/^/| /' conftest.$ac_ext >&5
35645
35646         ac_cv_lib_odbc_SQLAllocEnv=no
35647 fi
35648
35649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35650       conftest$ac_exeext conftest.$ac_ext
35651 LIBS=$ac_check_lib_save_LIBS
35652 fi
35653 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35654 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
35655 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35656   ODBC_LINK=" -lodbc"
35657 fi
35658
35659
35660 fi
35661
35662
35663 fi
35664
35665         fi
35666         if test "x$ODBC_LINK" = "x" ; then
35667             if test "$wxUSE_ODBC" = "sys" ; then
35668                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35669 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35670    { (exit 1); exit 1; }; }
35671             else
35672                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35673 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35674                 wxUSE_ODBC=builtin
35675             fi
35676         else
35677                         wxUSE_ODBC=sys
35678         fi
35679     fi
35680
35681     if test "$wxUSE_ODBC" = "builtin" ; then
35682         cat >>confdefs.h <<\_ACEOF
35683 #define wxUSE_BUILTIN_IODBC 1
35684 _ACEOF
35685
35686     fi
35687 fi
35688
35689 if test "$wxUSE_ODBC" != "no" ; then
35690     cat >>confdefs.h <<\_ACEOF
35691 #define wxUSE_ODBC 1
35692 _ACEOF
35693
35694     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35695
35696         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
35697 fi
35698
35699
35700 if test "$wxUSE_DISPLAY" = "yes"; then
35701     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35702         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35703 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35704
35705   ac_find_libraries=
35706   for ac_dir in $SEARCH_LIB;
35707   do
35708     for ac_extension in a so sl dylib dll.a; do
35709       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35710         ac_find_libraries=$ac_dir
35711         break 2
35712       fi
35713     done
35714   done
35715
35716         if test "$ac_find_libraries" != "" ; then
35717
35718     if test "$ac_find_libraries" = "default location"; then
35719     ac_path_to_link=""
35720   else
35721     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35722     result=$?
35723     if test $result = 0; then
35724       ac_path_to_link=""
35725     else
35726       ac_path_to_link=" -L$ac_find_libraries"
35727     fi
35728   fi
35729
35730             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35731                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35732             fi
35733             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35734             { echo "$as_me:$LINENO: result: yes" >&5
35735 echo "${ECHO_T}yes" >&6; }
35736
35737             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35738 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35739
35740   ac_find_libraries=
35741   for ac_dir in $SEARCH_LIB;
35742   do
35743     for ac_extension in a so sl dylib dll.a; do
35744       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35745         ac_find_libraries=$ac_dir
35746         break 2
35747       fi
35748     done
35749   done
35750
35751             if test "$ac_find_libraries" != "" ; then
35752                 { echo "$as_me:$LINENO: result: yes" >&5
35753 echo "${ECHO_T}yes" >&6; }
35754
35755 for ac_header in X11/extensions/xf86vmode.h
35756 do
35757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35761   echo $ECHO_N "(cached) $ECHO_C" >&6
35762 else
35763   cat >conftest.$ac_ext <<_ACEOF
35764 /* confdefs.h.  */
35765 _ACEOF
35766 cat confdefs.h >>conftest.$ac_ext
35767 cat >>conftest.$ac_ext <<_ACEOF
35768 /* end confdefs.h.  */
35769
35770                                       #if HAVE_X11_XLIB_H
35771                                         #include <X11/Xlib.h>
35772                                       #endif
35773
35774
35775 #include <$ac_header>
35776 _ACEOF
35777 rm -f conftest.$ac_objext
35778 if { (ac_try="$ac_compile"
35779 case "(($ac_try" in
35780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781   *) ac_try_echo=$ac_try;;
35782 esac
35783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784   (eval "$ac_compile") 2>conftest.er1
35785   ac_status=$?
35786   grep -v '^ *+' conftest.er1 >conftest.err
35787   rm -f conftest.er1
35788   cat conftest.err >&5
35789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790   (exit $ac_status); } && {
35791          test -z "$ac_c_werror_flag" ||
35792          test ! -s conftest.err
35793        } && test -s conftest.$ac_objext; then
35794   eval "$as_ac_Header=yes"
35795 else
35796   echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
35799         eval "$as_ac_Header=no"
35800 fi
35801
35802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35803 fi
35804 ac_res=`eval echo '${'$as_ac_Header'}'`
35805                { echo "$as_me:$LINENO: result: $ac_res" >&5
35806 echo "${ECHO_T}$ac_res" >&6; }
35807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35808   cat >>confdefs.h <<_ACEOF
35809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35810 _ACEOF
35811
35812                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35813
35814 fi
35815
35816 done
35817
35818             else
35819                 { echo "$as_me:$LINENO: result: no" >&5
35820 echo "${ECHO_T}no" >&6; }
35821             fi
35822
35823         else
35824             { echo "$as_me:$LINENO: result: no" >&5
35825 echo "${ECHO_T}no" >&6; }
35826             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35827 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35828             wxUSE_DISPLAY="no"
35829         fi
35830     elif test "$wxUSE_MSW" = 1; then
35831         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35832 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35833 if test "${ac_cv_header_ddraw_h+set}" = set; then
35834   echo $ECHO_N "(cached) $ECHO_C" >&6
35835 else
35836   cat >conftest.$ac_ext <<_ACEOF
35837 /* confdefs.h.  */
35838 _ACEOF
35839 cat confdefs.h >>conftest.$ac_ext
35840 cat >>conftest.$ac_ext <<_ACEOF
35841 /* end confdefs.h.  */
35842 #include <windows.h>
35843
35844 #include <ddraw.h>
35845 _ACEOF
35846 rm -f conftest.$ac_objext
35847 if { (ac_try="$ac_compile"
35848 case "(($ac_try" in
35849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35850   *) ac_try_echo=$ac_try;;
35851 esac
35852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35853   (eval "$ac_compile") 2>conftest.er1
35854   ac_status=$?
35855   grep -v '^ *+' conftest.er1 >conftest.err
35856   rm -f conftest.er1
35857   cat conftest.err >&5
35858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859   (exit $ac_status); } && {
35860          test -z "$ac_c_werror_flag" ||
35861          test ! -s conftest.err
35862        } && test -s conftest.$ac_objext; then
35863   ac_cv_header_ddraw_h=yes
35864 else
35865   echo "$as_me: failed program was:" >&5
35866 sed 's/^/| /' conftest.$ac_ext >&5
35867
35868         ac_cv_header_ddraw_h=no
35869 fi
35870
35871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35872 fi
35873 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35874 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35875
35876
35877     fi
35878 fi
35879
35880 if test "$wxUSE_DETECT_SM" = "yes"; then
35881     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35882         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35883 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35884
35885   ac_find_libraries=
35886   for ac_dir in $SEARCH_LIB;
35887   do
35888     for ac_extension in a so sl dylib dll.a; do
35889       if test -f "$ac_dir/libSM.$ac_extension"; then
35890         ac_find_libraries=$ac_dir
35891         break 2
35892       fi
35893     done
35894   done
35895
35896         if test "$ac_find_libraries" != "" ; then
35897
35898     if test "$ac_find_libraries" = "default location"; then
35899     ac_path_to_link=""
35900   else
35901     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35902     result=$?
35903     if test $result = 0; then
35904       ac_path_to_link=""
35905     else
35906       ac_path_to_link=" -L$ac_find_libraries"
35907     fi
35908   fi
35909
35910             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35911                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35912             fi
35913             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35914             { echo "$as_me:$LINENO: result: yes" >&5
35915 echo "${ECHO_T}yes" >&6; }
35916         else
35917             { echo "$as_me:$LINENO: result: no" >&5
35918 echo "${ECHO_T}no" >&6; }
35919             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35920 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35921             wxUSE_DETECT_SM="no"
35922         fi
35923     else
35924         wxUSE_DETECT_SM="no"
35925     fi
35926 fi
35927
35928
35929
35930 USE_OPENGL=0
35931 if test "$wxUSE_OPENGL" = "yes"; then
35932     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35933         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35934 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35935         wxUSE_OPENGL="no"
35936     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35937         OPENGL_LIBS="-framework OpenGL -framework AGL"
35938     elif test "$wxUSE_MSW" = 1; then
35939         OPENGL_LIBS="-lopengl32 -lglu32"
35940     else
35941                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35942 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35943
35944 ac_find_includes=
35945 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35946   do
35947     if test -f "$ac_dir/GL/gl.h"; then
35948       ac_find_includes=$ac_dir
35949       break
35950     fi
35951   done
35952
35953         if test "$ac_find_includes" != "" ; then
35954             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35955 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35956
35957     if test "x$ac_find_includes" = "x/usr/include"; then
35958     ac_path_to_include=""
35959   else
35960     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35961     result=$?
35962     if test $result = 0; then
35963       ac_path_to_include=""
35964     else
35965       ac_path_to_include=" -I$ac_find_includes"
35966     fi
35967   fi
35968
35969             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35970         else
35971             { echo "$as_me:$LINENO: result: not found" >&5
35972 echo "${ECHO_T}not found" >&6; }
35973         fi
35974
35975         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35976 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35977 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35978   echo $ECHO_N "(cached) $ECHO_C" >&6
35979 else
35980   cat >conftest.$ac_ext <<_ACEOF
35981 /* confdefs.h.  */
35982 _ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h.  */
35986
35987
35988 #include <GL/gl.h>
35989 _ACEOF
35990 rm -f conftest.$ac_objext
35991 if { (ac_try="$ac_compile"
35992 case "(($ac_try" in
35993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35994   *) ac_try_echo=$ac_try;;
35995 esac
35996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35997   (eval "$ac_compile") 2>conftest.er1
35998   ac_status=$?
35999   grep -v '^ *+' conftest.er1 >conftest.err
36000   rm -f conftest.er1
36001   cat conftest.err >&5
36002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36003   (exit $ac_status); } && {
36004          test -z "$ac_c_werror_flag" ||
36005          test ! -s conftest.err
36006        } && test -s conftest.$ac_objext; then
36007   ac_cv_header_GL_gl_h=yes
36008 else
36009   echo "$as_me: failed program was:" >&5
36010 sed 's/^/| /' conftest.$ac_ext >&5
36011
36012         ac_cv_header_GL_gl_h=no
36013 fi
36014
36015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36016 fi
36017 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36018 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
36019 if test $ac_cv_header_GL_gl_h = yes; then
36020
36021             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36022 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36023 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36024   echo $ECHO_N "(cached) $ECHO_C" >&6
36025 else
36026   cat >conftest.$ac_ext <<_ACEOF
36027 /* confdefs.h.  */
36028 _ACEOF
36029 cat confdefs.h >>conftest.$ac_ext
36030 cat >>conftest.$ac_ext <<_ACEOF
36031 /* end confdefs.h.  */
36032
36033
36034 #include <GL/glu.h>
36035 _ACEOF
36036 rm -f conftest.$ac_objext
36037 if { (ac_try="$ac_compile"
36038 case "(($ac_try" in
36039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36040   *) ac_try_echo=$ac_try;;
36041 esac
36042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36043   (eval "$ac_compile") 2>conftest.er1
36044   ac_status=$?
36045   grep -v '^ *+' conftest.er1 >conftest.err
36046   rm -f conftest.er1
36047   cat conftest.err >&5
36048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049   (exit $ac_status); } && {
36050          test -z "$ac_c_werror_flag" ||
36051          test ! -s conftest.err
36052        } && test -s conftest.$ac_objext; then
36053   ac_cv_header_GL_glu_h=yes
36054 else
36055   echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36057
36058         ac_cv_header_GL_glu_h=no
36059 fi
36060
36061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36062 fi
36063 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36064 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36065 if test $ac_cv_header_GL_glu_h = yes; then
36066
36067                 found_gl=0
36068
36069                 { echo "$as_me:$LINENO: checking for -lGL" >&5
36070 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
36071
36072   ac_find_libraries=
36073   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
36074   do
36075     for ac_extension in a so sl dylib dll.a; do
36076       if test -f "$ac_dir/libGL.$ac_extension"; then
36077         ac_find_libraries=$ac_dir
36078         break 2
36079       fi
36080     done
36081   done
36082
36083                 if test "$ac_find_libraries" != "" ; then
36084                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36085 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
36086
36087
36088     if test "$ac_find_libraries" = "default location"; then
36089     ac_path_to_link=""
36090   else
36091     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36092     result=$?
36093     if test $result = 0; then
36094       ac_path_to_link=""
36095     else
36096       ac_path_to_link=" -L$ac_find_libraries"
36097     fi
36098   fi
36099
36100                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
36101                         LDFLAGS_GL="$ac_path_to_link"
36102                     fi
36103
36104                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
36105 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
36106
36107   ac_find_libraries=
36108   for ac_dir in $SEARCH_LIB;
36109   do
36110     for ac_extension in a so sl dylib dll.a; do
36111       if test -f "$ac_dir/libGLU.$ac_extension"; then
36112         ac_find_libraries=$ac_dir
36113         break 2
36114       fi
36115     done
36116   done
36117
36118                     if test "$ac_find_libraries" != "" ; then
36119
36120     if test "$ac_find_libraries" = "default location"; then
36121     ac_path_to_link=""
36122   else
36123     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36124     result=$?
36125     if test $result = 0; then
36126       ac_path_to_link=""
36127     else
36128       ac_path_to_link=" -L$ac_find_libraries"
36129     fi
36130   fi
36131
36132                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36133                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
36134                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36135                         fi
36136
36137                         found_gl=1
36138                         OPENGL_LIBS="-lGL -lGLU"
36139                         { echo "$as_me:$LINENO: result: yes" >&5
36140 echo "${ECHO_T}yes" >&6; }
36141                     else
36142                         { echo "$as_me:$LINENO: result: no" >&5
36143 echo "${ECHO_T}no" >&6; }
36144                     fi
36145                 else
36146                     { echo "$as_me:$LINENO: result: no" >&5
36147 echo "${ECHO_T}no" >&6; }
36148                 fi
36149
36150                 if test "$found_gl" != 1; then
36151                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
36152 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
36153
36154   ac_find_libraries=
36155   for ac_dir in $SEARCH_LIB;
36156   do
36157     for ac_extension in a so sl dylib dll.a; do
36158       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
36159         ac_find_libraries=$ac_dir
36160         break 2
36161       fi
36162     done
36163   done
36164
36165                     if test "$ac_find_libraries" != "" ; then
36166
36167     if test "$ac_find_libraries" = "default location"; then
36168     ac_path_to_link=""
36169   else
36170     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36171     result=$?
36172     if test $result = 0; then
36173       ac_path_to_link=""
36174     else
36175       ac_path_to_link=" -L$ac_find_libraries"
36176     fi
36177   fi
36178
36179                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
36180                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
36181                         { echo "$as_me:$LINENO: result: yes" >&5
36182 echo "${ECHO_T}yes" >&6; }
36183                     else
36184                         { echo "$as_me:$LINENO: result: no" >&5
36185 echo "${ECHO_T}no" >&6; }
36186                     fi
36187                 fi
36188
36189 fi
36190
36191
36192
36193 fi
36194
36195
36196
36197         if test "x$OPENGL_LIBS" = "x"; then
36198                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
36199 echo "$as_me: error: OpenGL libraries not available" >&2;}
36200    { (exit 1); exit 1; }; }
36201         fi
36202     fi
36203
36204     if test "$wxUSE_OPENGL" = "yes"; then
36205         USE_OPENGL=1
36206         cat >>confdefs.h <<\_ACEOF
36207 #define wxUSE_OPENGL 1
36208 _ACEOF
36209
36210         cat >>confdefs.h <<\_ACEOF
36211 #define wxUSE_GLCANVAS 1
36212 _ACEOF
36213
36214         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
36215     fi
36216 fi
36217
36218
36219 if test -n "$TOOLKIT" ; then
36220     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
36221 fi
36222
36223
36224
36225 if test "$wxUSE_SHARED" = "yes"; then
36226     case "${host}" in
36227       *-pc-msdosdjgpp )
36228                 wxUSE_SHARED=no
36229         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
36230 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
36231       ;;
36232     esac
36233 fi
36234
36235 if test "$wxUSE_SHARED" = "yes"; then
36236
36237
36238     case "${host}" in
36239         *-*-cygwin* | *-*-mingw* )
36240                                                                                                 wx_cv_version_script=no
36241             ;;
36242
36243         *)
36244             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
36245 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
36246 if test "${wx_cv_version_script+set}" = set; then
36247   echo $ECHO_N "(cached) $ECHO_C" >&6
36248 else
36249
36250                 echo "VER_1 { *; };" >conftest.sym
36251                 echo "int main() { return 0; }" >conftest.cpp
36252
36253                 if { ac_try='
36254                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36255                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
36256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257   (eval $ac_try) 2>&5
36258   ac_status=$?
36259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260   (exit $ac_status); }; } ; then
36261                   if test -s conftest.stderr ; then
36262                       wx_cv_version_script=no
36263                   else
36264                       wx_cv_version_script=yes
36265                   fi
36266                 else
36267                   wx_cv_version_script=no
36268                 fi
36269
36270                                                                                                                                                                                                 if test $wx_cv_version_script = yes
36271                 then
36272                   echo "struct B { virtual ~B() { } }; \
36273                         struct D : public B { }; \
36274                         void F() { D d; }" > conftest.cpp
36275
36276                   if { ac_try='
36277                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36278                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
36279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280   (eval $ac_try) 2>&5
36281   ac_status=$?
36282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283   (exit $ac_status); }; } &&
36284                      { ac_try='
36285                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36286                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
36287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36288   (eval $ac_try) 2>&5
36289   ac_status=$?
36290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291   (exit $ac_status); }; }
36292                   then
36293                     if { ac_try='
36294                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36295                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
36296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297   (eval $ac_try) 2>&5
36298   ac_status=$?
36299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300   (exit $ac_status); }; }
36301                     then
36302                       wx_cv_version_script=yes
36303                     else
36304                       wx_cv_version_script=no
36305                     fi
36306                   fi
36307                 fi
36308
36309                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
36310                 rm -f conftest1.output conftest2.output conftest3.output
36311
36312 fi
36313 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
36314 echo "${ECHO_T}$wx_cv_version_script" >&6; }
36315
36316             if test $wx_cv_version_script = yes ; then
36317                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
36318             fi
36319             ;;
36320     esac
36321
36322
36323             if test "$wxUSE_VISIBILITY" != "no"; then
36324
36325
36326   if test -n "$GCC"; then
36327     CFLAGS_VISIBILITY="-fvisibility=hidden"
36328     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
36329     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
36330 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
36331     if test "${wx_cv_cc_visibility+set}" = set; then
36332   echo $ECHO_N "(cached) $ECHO_C" >&6
36333 else
36334
36335       wx_save_CXXFLAGS="$CXXFLAGS"
36336       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36337       ac_ext=cpp
36338 ac_cpp='$CXXCPP $CPPFLAGS'
36339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36342
36343       cat >conftest.$ac_ext <<_ACEOF
36344 /* confdefs.h.  */
36345 _ACEOF
36346 cat confdefs.h >>conftest.$ac_ext
36347 cat >>conftest.$ac_ext <<_ACEOF
36348 /* end confdefs.h.  */
36349
36350          /* we need gcc >= 4.0, older versions with visibility support
36351             didn't have class visibility: */
36352          #if defined(__GNUC__) && __GNUC__ < 4
36353          error this gcc is too old;
36354          #endif
36355
36356          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
36357          extern __attribute__((__visibility__("default"))) int exportedvar;
36358          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36359          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
36360          class __attribute__((__visibility__("default"))) Foo {
36361            Foo() {}
36362          };
36363
36364 int
36365 main ()
36366 {
36367
36368   ;
36369   return 0;
36370 }
36371 _ACEOF
36372 rm -f conftest.$ac_objext
36373 if { (ac_try="$ac_compile"
36374 case "(($ac_try" in
36375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36376   *) ac_try_echo=$ac_try;;
36377 esac
36378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36379   (eval "$ac_compile") 2>conftest.er1
36380   ac_status=$?
36381   grep -v '^ *+' conftest.er1 >conftest.err
36382   rm -f conftest.er1
36383   cat conftest.err >&5
36384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36385   (exit $ac_status); } && {
36386          test -z "$ac_cxx_werror_flag" ||
36387          test ! -s conftest.err
36388        } && test -s conftest.$ac_objext; then
36389   wx_cv_cc_visibility=yes
36390 else
36391   echo "$as_me: failed program was:" >&5
36392 sed 's/^/| /' conftest.$ac_ext >&5
36393
36394         wx_cv_cc_visibility=no
36395 fi
36396
36397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36398       ac_ext=c
36399 ac_cpp='$CPP $CPPFLAGS'
36400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36403
36404       CXXFLAGS="$wx_save_CXXFLAGS"
36405 fi
36406
36407     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36408 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
36409     if test $wx_cv_cc_visibility = yes; then
36410       cat >>confdefs.h <<\_ACEOF
36411 #define HAVE_VISIBILITY 1
36412 _ACEOF
36413
36414
36415                   { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
36416 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
36417       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
36418   echo $ECHO_N "(cached) $ECHO_C" >&6
36419 else
36420
36421         wx_save_CXXFLAGS="$CXXFLAGS"
36422         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36423         ac_ext=cpp
36424 ac_cpp='$CXXCPP $CPPFLAGS'
36425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36428
36429         cat >conftest.$ac_ext <<_ACEOF
36430 /* confdefs.h.  */
36431 _ACEOF
36432 cat confdefs.h >>conftest.$ac_ext
36433 cat >>conftest.$ac_ext <<_ACEOF
36434 /* end confdefs.h.  */
36435
36436             #include <string>
36437
36438 int
36439 main ()
36440 {
36441
36442             std::string x;
36443
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_cxx_werror_flag" ||
36463          test ! -s conftest.err
36464        } && test -s conftest$ac_exeext &&
36465        $as_test_x conftest$ac_exeext; then
36466   wx_cv_cc_broken_libstdcxx_visibility=no
36467 else
36468   echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471         wx_cv_cc_broken_libstdcxx_visibility=yes
36472 fi
36473
36474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36475       conftest$ac_exeext conftest.$ac_ext
36476         ac_ext=c
36477 ac_cpp='$CPP $CPPFLAGS'
36478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36481
36482         CXXFLAGS="$wx_save_CXXFLAGS"
36483 fi
36484
36485       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36486 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
36487       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36488         cat >>confdefs.h <<\_ACEOF
36489 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36490 _ACEOF
36491
36492       fi
36493
36494     else
36495       CFLAGS_VISIBILITY=""
36496       CXXFLAGS_VISIBILITY=""
36497     fi
36498
36499
36500   fi
36501
36502     fi
36503
36504         if test "x$SUNCXX" = xyes; then
36505         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36506         WXCONFIG_RPATH="-R\$libdir"
36507     else
36508     case "${host}" in
36509       *-*-linux* | *-*-gnu* )
36510         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36511         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36512         ;;
36513
36514       *-*-solaris2* )
36515
36516                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36517
36518                         saveLdflags="$LDFLAGS"
36519         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36520         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36521 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36522         cat >conftest.$ac_ext <<_ACEOF
36523 /* confdefs.h.  */
36524 _ACEOF
36525 cat confdefs.h >>conftest.$ac_ext
36526 cat >>conftest.$ac_ext <<_ACEOF
36527 /* end confdefs.h.  */
36528
36529 int
36530 main ()
36531 {
36532
36533   ;
36534   return 0;
36535 }
36536 _ACEOF
36537 rm -f conftest.$ac_objext conftest$ac_exeext
36538 if { (ac_try="$ac_link"
36539 case "(($ac_try" in
36540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36541   *) ac_try_echo=$ac_try;;
36542 esac
36543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36544   (eval "$ac_link") 2>conftest.er1
36545   ac_status=$?
36546   grep -v '^ *+' conftest.er1 >conftest.err
36547   rm -f conftest.er1
36548   cat conftest.err >&5
36549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550   (exit $ac_status); } && {
36551          test -z "$ac_c_werror_flag" ||
36552          test ! -s conftest.err
36553        } && test -s conftest$ac_exeext &&
36554        $as_test_x conftest$ac_exeext; then
36555
36556                 { echo "$as_me:$LINENO: result: yes" >&5
36557 echo "${ECHO_T}yes" >&6; }
36558                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36559                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36560
36561 else
36562   echo "$as_me: failed program was:" >&5
36563 sed 's/^/| /' conftest.$ac_ext >&5
36564
36565
36566                 { echo "$as_me:$LINENO: result: no" >&5
36567 echo "${ECHO_T}no" >&6; }
36568                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36569 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36570                 LDFLAGS="$saveLdflags -Wl,-R,/"
36571                 cat >conftest.$ac_ext <<_ACEOF
36572 /* confdefs.h.  */
36573 _ACEOF
36574 cat confdefs.h >>conftest.$ac_ext
36575 cat >>conftest.$ac_ext <<_ACEOF
36576 /* end confdefs.h.  */
36577
36578 int
36579 main ()
36580 {
36581
36582   ;
36583   return 0;
36584 }
36585 _ACEOF
36586 rm -f conftest.$ac_objext conftest$ac_exeext
36587 if { (ac_try="$ac_link"
36588 case "(($ac_try" in
36589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36590   *) ac_try_echo=$ac_try;;
36591 esac
36592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36593   (eval "$ac_link") 2>conftest.er1
36594   ac_status=$?
36595   grep -v '^ *+' conftest.er1 >conftest.err
36596   rm -f conftest.er1
36597   cat conftest.err >&5
36598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599   (exit $ac_status); } && {
36600          test -z "$ac_c_werror_flag" ||
36601          test ! -s conftest.err
36602        } && test -s conftest$ac_exeext &&
36603        $as_test_x conftest$ac_exeext; then
36604
36605                         { echo "$as_me:$LINENO: result: yes" >&5
36606 echo "${ECHO_T}yes" >&6; }
36607                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36608                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36609
36610 else
36611   echo "$as_me: failed program was:" >&5
36612 sed 's/^/| /' conftest.$ac_ext >&5
36613
36614
36615                         { echo "$as_me:$LINENO: result: no" >&5
36616 echo "${ECHO_T}no" >&6; }
36617
36618 fi
36619
36620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36621       conftest$ac_exeext conftest.$ac_ext
36622
36623 fi
36624
36625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36626       conftest$ac_exeext conftest.$ac_ext
36627         LDFLAGS="$saveLdflags"
36628       ;;
36629
36630       *-*-darwin* )
36631         install_name_tool=`which install_name_tool`
36632         if test "$install_name_tool" -a -x "$install_name_tool"; then
36633             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36634             cat <<EOF >change-install-names
36635 #!/bin/sh
36636 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36637 inst_cmd="install_name_tool "
36638 for i in \${libnames} ; do
36639     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36640 done
36641 \${inst_cmd} \${3}
36642 EOF
36643             chmod +x change-install-names
36644         fi
36645       ;;
36646
36647       *-*-cygwin* | *-*-mingw32* )
36648                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36649         ;;
36650
36651       *-*-hpux* )
36652         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36653         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36654         ;;
36655
36656     esac
36657     fi
36658
36659     if test $wxUSE_RPATH = "no"; then
36660         SAMPLES_RPATH_FLAG=''
36661         SAMPLES_RPATH_POSTLINK=''
36662         WXCONFIG_RPATH=''
36663     fi
36664
36665     SHARED=1
36666
36667 else
36668
36669     config_linkage_component="-static"
36670     SHARED=0
36671
36672 fi
36673
36674
36675 UNICODE=0
36676 lib_unicode_suffix=
36677 WX_CHARTYPE="ansi"
36678 if test "$wxUSE_UNICODE" = "yes"; then
36679     lib_unicode_suffix=u
36680     WX_CHARTYPE="unicode"
36681     UNICODE=1
36682 fi
36683
36684 lib_debug_suffix=
36685 WX_DEBUGTYPE="release"
36686 DEBUG_FLAG=0
36687 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36688     lib_debug_suffix=d
36689     WX_DEBUGTYPE="debug"
36690     DEBUG_FLAG=1
36691 fi
36692
36693 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36694 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36695
36696 DEBUG_INFO=0
36697 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36698     DEBUG_INFO=1
36699 fi
36700
36701 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
36702
36703 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36704
36705 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36706
36707 if test "$cross_compiling" = "yes"; then
36708     HOST_SUFFIX="-$host_alias"
36709     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36710     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36711 fi
36712
36713 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36714 if test "${TOOLKIT_DIR}" = "os2"; then
36715     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36716 else
36717     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36718 fi
36719
36720
36721
36722 if test "$wxUSE_COCOA" = 1; then
36723
36724     ac_ext=c
36725 ac_cpp='$CPP $CPPFLAGS'
36726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36729
36730 ac_ext=m
36731
36732     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36733 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36734     cat >conftest.$ac_ext <<_ACEOF
36735 /* confdefs.h.  */
36736 _ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h.  */
36740 #include <AppKit/NSEvent.h>
36741 #include <CoreFoundation/CoreFoundation.h>
36742
36743 int
36744 main ()
36745 {
36746
36747   ;
36748   return 0;
36749 }
36750 _ACEOF
36751 rm -f conftest.$ac_objext
36752 if { (ac_try="$ac_compile"
36753 case "(($ac_try" in
36754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36755   *) ac_try_echo=$ac_try;;
36756 esac
36757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36758   (eval "$ac_compile") 2>conftest.er1
36759   ac_status=$?
36760   grep -v '^ *+' conftest.er1 >conftest.err
36761   rm -f conftest.er1
36762   cat conftest.err >&5
36763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764   (exit $ac_status); } && {
36765          test -z "$ac_c_werror_flag" ||
36766          test ! -s conftest.err
36767        } && test -s conftest.$ac_objext; then
36768   { echo "$as_me:$LINENO: result: no" >&5
36769 echo "${ECHO_T}no" >&6; }
36770 else
36771   echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36773
36774         { echo "$as_me:$LINENO: result: yes" >&5
36775 echo "${ECHO_T}yes" >&6; }
36776         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36777 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36778         cat >conftest.$ac_ext <<_ACEOF
36779 /* confdefs.h.  */
36780 _ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h.  */
36784 #define __Point__ 1
36785 #include <AppKit/NSEvent.h>
36786 #include <CoreFoundation/CoreFoundation.h>
36787
36788 int
36789 main ()
36790 {
36791
36792   ;
36793   return 0;
36794 }
36795 _ACEOF
36796 rm -f conftest.$ac_objext
36797 if { (ac_try="$ac_compile"
36798 case "(($ac_try" in
36799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36800   *) ac_try_echo=$ac_try;;
36801 esac
36802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36803   (eval "$ac_compile") 2>conftest.er1
36804   ac_status=$?
36805   grep -v '^ *+' conftest.er1 >conftest.err
36806   rm -f conftest.er1
36807   cat conftest.err >&5
36808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); } && {
36810          test -z "$ac_c_werror_flag" ||
36811          test ! -s conftest.err
36812        } && test -s conftest.$ac_objext; then
36813   { echo "$as_me:$LINENO: result: yes" >&5
36814 echo "${ECHO_T}yes" >&6; }
36815             cat >>confdefs.h <<\_ACEOF
36816 #define __Point__ 1
36817 _ACEOF
36818
36819
36820 else
36821   echo "$as_me: failed program was:" >&5
36822 sed 's/^/| /' conftest.$ac_ext >&5
36823
36824         { { echo "$as_me:$LINENO: error: no
36825 See \`config.log' for more details." >&5
36826 echo "$as_me: error: no
36827 See \`config.log' for more details." >&2;}
36828    { (exit 1); exit 1; }; }
36829
36830 fi
36831
36832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36833
36834 fi
36835
36836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36837     ac_ext=c
36838 ac_cpp='$CPP $CPPFLAGS'
36839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36842
36843 fi
36844
36845 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
36846             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
36847     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
36848
36849         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
36850
36851     # Extract the first word of "Rez", so it can be a program name with args.
36852 set dummy Rez; ac_word=$2
36853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36855 if test "${ac_cv_prog_REZ+set}" = set; then
36856   echo $ECHO_N "(cached) $ECHO_C" >&6
36857 else
36858   if test -n "$REZ"; then
36859   ac_cv_prog_REZ="$REZ" # Let the user override the test.
36860 else
36861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36862 for as_dir in $PATH
36863 do
36864   IFS=$as_save_IFS
36865   test -z "$as_dir" && as_dir=.
36866   for ac_exec_ext in '' $ac_executable_extensions; do
36867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36868     ac_cv_prog_REZ="Rez"
36869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36870     break 2
36871   fi
36872 done
36873 done
36874 IFS=$as_save_IFS
36875
36876   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
36877 fi
36878 fi
36879 REZ=$ac_cv_prog_REZ
36880 if test -n "$REZ"; then
36881   { echo "$as_me:$LINENO: result: $REZ" >&5
36882 echo "${ECHO_T}$REZ" >&6; }
36883 else
36884   { echo "$as_me:$LINENO: result: no" >&5
36885 echo "${ECHO_T}no" >&6; }
36886 fi
36887
36888
36889     # Extract the first word of "DeRez", so it can be a program name with args.
36890 set dummy DeRez; ac_word=$2
36891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36893 if test "${ac_cv_prog_DEREZ+set}" = set; then
36894   echo $ECHO_N "(cached) $ECHO_C" >&6
36895 else
36896   if test -n "$DEREZ"; then
36897   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
36898 else
36899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36900 for as_dir in $PATH
36901 do
36902   IFS=$as_save_IFS
36903   test -z "$as_dir" && as_dir=.
36904   for ac_exec_ext in '' $ac_executable_extensions; do
36905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36906     ac_cv_prog_DEREZ="DeRez"
36907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36908     break 2
36909   fi
36910 done
36911 done
36912 IFS=$as_save_IFS
36913
36914   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
36915 fi
36916 fi
36917 DEREZ=$ac_cv_prog_DEREZ
36918 if test -n "$DEREZ"; then
36919   { echo "$as_me:$LINENO: result: $DEREZ" >&5
36920 echo "${ECHO_T}$DEREZ" >&6; }
36921 else
36922   { echo "$as_me:$LINENO: result: no" >&5
36923 echo "${ECHO_T}no" >&6; }
36924 fi
36925
36926
36927     # Extract the first word of "SetFile", so it can be a program name with args.
36928 set dummy SetFile; ac_word=$2
36929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36931 if test "${ac_cv_prog_SETFILE+set}" = set; then
36932   echo $ECHO_N "(cached) $ECHO_C" >&6
36933 else
36934   if test -n "$SETFILE"; then
36935   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36936 else
36937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36938 for as_dir in $PATH
36939 do
36940   IFS=$as_save_IFS
36941   test -z "$as_dir" && as_dir=.
36942   for ac_exec_ext in '' $ac_executable_extensions; do
36943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36944     ac_cv_prog_SETFILE="SetFile"
36945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36946     break 2
36947   fi
36948 done
36949 done
36950 IFS=$as_save_IFS
36951
36952   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36953 fi
36954 fi
36955 SETFILE=$ac_cv_prog_SETFILE
36956 if test -n "$SETFILE"; then
36957   { echo "$as_me:$LINENO: result: $SETFILE" >&5
36958 echo "${ECHO_T}$SETFILE" >&6; }
36959 else
36960   { echo "$as_me:$LINENO: result: no" >&5
36961 echo "${ECHO_T}no" >&6; }
36962 fi
36963
36964
36965
36966     MACSETFILE="\$(SETFILE)"
36967
36968             if test "$wxUSE_MAC" = 1; then
36969         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
36970         RESCOMP="$REZ"
36971         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
36972     else
36973         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
36974         RESCOMP="echo -n \| $REZ"
36975         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
36976     fi
36977
36978 else
36979         MACSETFILE="@true"
36980
36981     if test "$wxUSE_PM" = 1; then
36982         RESCOMP="emxbind"
36983         WXCONFIG_RESFLAGS="-ep"
36984
36985                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
36986     else
36987         POSTLINK_COMMAND="@true"
36988     fi
36989
36990 fi
36991
36992
36993
36994 { echo "$as_me:$LINENO: checking for mode_t" >&5
36995 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36996 if test "${ac_cv_type_mode_t+set}" = set; then
36997   echo $ECHO_N "(cached) $ECHO_C" >&6
36998 else
36999   cat >conftest.$ac_ext <<_ACEOF
37000 /* confdefs.h.  */
37001 _ACEOF
37002 cat confdefs.h >>conftest.$ac_ext
37003 cat >>conftest.$ac_ext <<_ACEOF
37004 /* end confdefs.h.  */
37005 $ac_includes_default
37006 typedef mode_t ac__type_new_;
37007 int
37008 main ()
37009 {
37010 if ((ac__type_new_ *) 0)
37011   return 0;
37012 if (sizeof (ac__type_new_))
37013   return 0;
37014   ;
37015   return 0;
37016 }
37017 _ACEOF
37018 rm -f conftest.$ac_objext
37019 if { (ac_try="$ac_compile"
37020 case "(($ac_try" in
37021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37022   *) ac_try_echo=$ac_try;;
37023 esac
37024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37025   (eval "$ac_compile") 2>conftest.er1
37026   ac_status=$?
37027   grep -v '^ *+' conftest.er1 >conftest.err
37028   rm -f conftest.er1
37029   cat conftest.err >&5
37030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031   (exit $ac_status); } && {
37032          test -z "$ac_c_werror_flag" ||
37033          test ! -s conftest.err
37034        } && test -s conftest.$ac_objext; then
37035   ac_cv_type_mode_t=yes
37036 else
37037   echo "$as_me: failed program was:" >&5
37038 sed 's/^/| /' conftest.$ac_ext >&5
37039
37040         ac_cv_type_mode_t=no
37041 fi
37042
37043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37044 fi
37045 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
37046 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
37047 if test $ac_cv_type_mode_t = yes; then
37048   :
37049 else
37050
37051 cat >>confdefs.h <<_ACEOF
37052 #define mode_t int
37053 _ACEOF
37054
37055 fi
37056
37057 { echo "$as_me:$LINENO: checking for off_t" >&5
37058 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
37059 if test "${ac_cv_type_off_t+set}" = set; then
37060   echo $ECHO_N "(cached) $ECHO_C" >&6
37061 else
37062   cat >conftest.$ac_ext <<_ACEOF
37063 /* confdefs.h.  */
37064 _ACEOF
37065 cat confdefs.h >>conftest.$ac_ext
37066 cat >>conftest.$ac_ext <<_ACEOF
37067 /* end confdefs.h.  */
37068 $ac_includes_default
37069 typedef off_t ac__type_new_;
37070 int
37071 main ()
37072 {
37073 if ((ac__type_new_ *) 0)
37074   return 0;
37075 if (sizeof (ac__type_new_))
37076   return 0;
37077   ;
37078   return 0;
37079 }
37080 _ACEOF
37081 rm -f conftest.$ac_objext
37082 if { (ac_try="$ac_compile"
37083 case "(($ac_try" in
37084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37085   *) ac_try_echo=$ac_try;;
37086 esac
37087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37088   (eval "$ac_compile") 2>conftest.er1
37089   ac_status=$?
37090   grep -v '^ *+' conftest.er1 >conftest.err
37091   rm -f conftest.er1
37092   cat conftest.err >&5
37093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094   (exit $ac_status); } && {
37095          test -z "$ac_c_werror_flag" ||
37096          test ! -s conftest.err
37097        } && test -s conftest.$ac_objext; then
37098   ac_cv_type_off_t=yes
37099 else
37100   echo "$as_me: failed program was:" >&5
37101 sed 's/^/| /' conftest.$ac_ext >&5
37102
37103         ac_cv_type_off_t=no
37104 fi
37105
37106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37107 fi
37108 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37109 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
37110 if test $ac_cv_type_off_t = yes; then
37111   :
37112 else
37113
37114 cat >>confdefs.h <<_ACEOF
37115 #define off_t long int
37116 _ACEOF
37117
37118 fi
37119
37120 { echo "$as_me:$LINENO: checking for pid_t" >&5
37121 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
37122 if test "${ac_cv_type_pid_t+set}" = set; then
37123   echo $ECHO_N "(cached) $ECHO_C" >&6
37124 else
37125   cat >conftest.$ac_ext <<_ACEOF
37126 /* confdefs.h.  */
37127 _ACEOF
37128 cat confdefs.h >>conftest.$ac_ext
37129 cat >>conftest.$ac_ext <<_ACEOF
37130 /* end confdefs.h.  */
37131 $ac_includes_default
37132 typedef pid_t ac__type_new_;
37133 int
37134 main ()
37135 {
37136 if ((ac__type_new_ *) 0)
37137   return 0;
37138 if (sizeof (ac__type_new_))
37139   return 0;
37140   ;
37141   return 0;
37142 }
37143 _ACEOF
37144 rm -f conftest.$ac_objext
37145 if { (ac_try="$ac_compile"
37146 case "(($ac_try" in
37147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37148   *) ac_try_echo=$ac_try;;
37149 esac
37150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37151   (eval "$ac_compile") 2>conftest.er1
37152   ac_status=$?
37153   grep -v '^ *+' conftest.er1 >conftest.err
37154   rm -f conftest.er1
37155   cat conftest.err >&5
37156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157   (exit $ac_status); } && {
37158          test -z "$ac_c_werror_flag" ||
37159          test ! -s conftest.err
37160        } && test -s conftest.$ac_objext; then
37161   ac_cv_type_pid_t=yes
37162 else
37163   echo "$as_me: failed program was:" >&5
37164 sed 's/^/| /' conftest.$ac_ext >&5
37165
37166         ac_cv_type_pid_t=no
37167 fi
37168
37169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37170 fi
37171 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37172 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
37173 if test $ac_cv_type_pid_t = yes; then
37174   :
37175 else
37176
37177 cat >>confdefs.h <<_ACEOF
37178 #define pid_t int
37179 _ACEOF
37180
37181 fi
37182
37183 { echo "$as_me:$LINENO: checking for size_t" >&5
37184 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
37185 if test "${ac_cv_type_size_t+set}" = set; then
37186   echo $ECHO_N "(cached) $ECHO_C" >&6
37187 else
37188   cat >conftest.$ac_ext <<_ACEOF
37189 /* confdefs.h.  */
37190 _ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h.  */
37194 $ac_includes_default
37195 typedef size_t ac__type_new_;
37196 int
37197 main ()
37198 {
37199 if ((ac__type_new_ *) 0)
37200   return 0;
37201 if (sizeof (ac__type_new_))
37202   return 0;
37203   ;
37204   return 0;
37205 }
37206 _ACEOF
37207 rm -f conftest.$ac_objext
37208 if { (ac_try="$ac_compile"
37209 case "(($ac_try" in
37210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37211   *) ac_try_echo=$ac_try;;
37212 esac
37213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37214   (eval "$ac_compile") 2>conftest.er1
37215   ac_status=$?
37216   grep -v '^ *+' conftest.er1 >conftest.err
37217   rm -f conftest.er1
37218   cat conftest.err >&5
37219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220   (exit $ac_status); } && {
37221          test -z "$ac_c_werror_flag" ||
37222          test ! -s conftest.err
37223        } && test -s conftest.$ac_objext; then
37224   ac_cv_type_size_t=yes
37225 else
37226   echo "$as_me: failed program was:" >&5
37227 sed 's/^/| /' conftest.$ac_ext >&5
37228
37229         ac_cv_type_size_t=no
37230 fi
37231
37232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37233 fi
37234 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37235 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
37236 if test $ac_cv_type_size_t = yes; then
37237   :
37238 else
37239
37240 cat >>confdefs.h <<_ACEOF
37241 #define size_t unsigned int
37242 _ACEOF
37243
37244 fi
37245
37246 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37247 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
37248 if test "${ac_cv_type_uid_t+set}" = set; then
37249   echo $ECHO_N "(cached) $ECHO_C" >&6
37250 else
37251   cat >conftest.$ac_ext <<_ACEOF
37252 /* confdefs.h.  */
37253 _ACEOF
37254 cat confdefs.h >>conftest.$ac_ext
37255 cat >>conftest.$ac_ext <<_ACEOF
37256 /* end confdefs.h.  */
37257 #include <sys/types.h>
37258
37259 _ACEOF
37260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37261   $EGREP "uid_t" >/dev/null 2>&1; then
37262   ac_cv_type_uid_t=yes
37263 else
37264   ac_cv_type_uid_t=no
37265 fi
37266 rm -f conftest*
37267
37268 fi
37269 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37270 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
37271 if test $ac_cv_type_uid_t = no; then
37272
37273 cat >>confdefs.h <<\_ACEOF
37274 #define uid_t int
37275 _ACEOF
37276
37277
37278 cat >>confdefs.h <<\_ACEOF
37279 #define gid_t int
37280 _ACEOF
37281
37282 fi
37283
37284
37285 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37286 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37287 if test "${ac_cv_type_ssize_t+set}" = set; then
37288   echo $ECHO_N "(cached) $ECHO_C" >&6
37289 else
37290   cat >conftest.$ac_ext <<_ACEOF
37291 /* confdefs.h.  */
37292 _ACEOF
37293 cat confdefs.h >>conftest.$ac_ext
37294 cat >>conftest.$ac_ext <<_ACEOF
37295 /* end confdefs.h.  */
37296 $ac_includes_default
37297 typedef ssize_t ac__type_new_;
37298 int
37299 main ()
37300 {
37301 if ((ac__type_new_ *) 0)
37302   return 0;
37303 if (sizeof (ac__type_new_))
37304   return 0;
37305   ;
37306   return 0;
37307 }
37308 _ACEOF
37309 rm -f conftest.$ac_objext
37310 if { (ac_try="$ac_compile"
37311 case "(($ac_try" in
37312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37313   *) ac_try_echo=$ac_try;;
37314 esac
37315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37316   (eval "$ac_compile") 2>conftest.er1
37317   ac_status=$?
37318   grep -v '^ *+' conftest.er1 >conftest.err
37319   rm -f conftest.er1
37320   cat conftest.err >&5
37321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322   (exit $ac_status); } && {
37323          test -z "$ac_c_werror_flag" ||
37324          test ! -s conftest.err
37325        } && test -s conftest.$ac_objext; then
37326   ac_cv_type_ssize_t=yes
37327 else
37328   echo "$as_me: failed program was:" >&5
37329 sed 's/^/| /' conftest.$ac_ext >&5
37330
37331         ac_cv_type_ssize_t=no
37332 fi
37333
37334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37335 fi
37336 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37337 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37338 if test $ac_cv_type_ssize_t = yes; then
37339
37340 cat >>confdefs.h <<_ACEOF
37341 #define HAVE_SSIZE_T 1
37342 _ACEOF
37343
37344
37345 fi
37346
37347
37348 ac_ext=cpp
37349 ac_cpp='$CXXCPP $CPPFLAGS'
37350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37353  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
37354 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
37355 if test "${wx_cv_size_t_is_uint+set}" = set; then
37356   echo $ECHO_N "(cached) $ECHO_C" >&6
37357 else
37358
37359                             cat >conftest.$ac_ext <<_ACEOF
37360 /* confdefs.h.  */
37361 _ACEOF
37362 cat confdefs.h >>conftest.$ac_ext
37363 cat >>conftest.$ac_ext <<_ACEOF
37364 /* end confdefs.h.  */
37365 #include <stddef.h>
37366 int
37367 main ()
37368 {
37369
37370             return 0; }
37371
37372             struct Foo { void foo(size_t); void foo(unsigned int); };
37373
37374             int bar() {
37375
37376   ;
37377   return 0;
37378 }
37379 _ACEOF
37380 rm -f conftest.$ac_objext
37381 if { (ac_try="$ac_compile"
37382 case "(($ac_try" in
37383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37384   *) ac_try_echo=$ac_try;;
37385 esac
37386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37387   (eval "$ac_compile") 2>conftest.er1
37388   ac_status=$?
37389   grep -v '^ *+' conftest.er1 >conftest.err
37390   rm -f conftest.er1
37391   cat conftest.err >&5
37392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393   (exit $ac_status); } && {
37394          test -z "$ac_cxx_werror_flag" ||
37395          test ! -s conftest.err
37396        } && test -s conftest.$ac_objext; then
37397   wx_cv_size_t_is_uint=no
37398 else
37399   echo "$as_me: failed program was:" >&5
37400 sed 's/^/| /' conftest.$ac_ext >&5
37401
37402         wx_cv_size_t_is_uint=yes
37403
37404 fi
37405
37406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37407
37408
37409 fi
37410 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
37411 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
37412
37413 if test "$wx_cv_size_t_is_uint" = "yes"; then
37414     cat >>confdefs.h <<\_ACEOF
37415 #define wxSIZE_T_IS_UINT 1
37416 _ACEOF
37417
37418 else
37419     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
37420 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
37421 if test "${wx_cv_size_t_is_ulong+set}" = set; then
37422   echo $ECHO_N "(cached) $ECHO_C" >&6
37423 else
37424   cat >conftest.$ac_ext <<_ACEOF
37425 /* confdefs.h.  */
37426 _ACEOF
37427 cat confdefs.h >>conftest.$ac_ext
37428 cat >>conftest.$ac_ext <<_ACEOF
37429 /* end confdefs.h.  */
37430 #include <stddef.h>
37431 int
37432 main ()
37433 {
37434
37435                 return 0; }
37436
37437                 struct Foo { void foo(size_t); void foo(unsigned long); };
37438
37439                 int bar() {
37440
37441   ;
37442   return 0;
37443 }
37444 _ACEOF
37445 rm -f conftest.$ac_objext
37446 if { (ac_try="$ac_compile"
37447 case "(($ac_try" in
37448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37449   *) ac_try_echo=$ac_try;;
37450 esac
37451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37452   (eval "$ac_compile") 2>conftest.er1
37453   ac_status=$?
37454   grep -v '^ *+' conftest.er1 >conftest.err
37455   rm -f conftest.er1
37456   cat conftest.err >&5
37457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458   (exit $ac_status); } && {
37459          test -z "$ac_cxx_werror_flag" ||
37460          test ! -s conftest.err
37461        } && test -s conftest.$ac_objext; then
37462   wx_cv_size_t_is_ulong=no
37463 else
37464   echo "$as_me: failed program was:" >&5
37465 sed 's/^/| /' conftest.$ac_ext >&5
37466
37467         wx_cv_size_t_is_ulong=yes
37468
37469 fi
37470
37471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37472
37473 fi
37474 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37475 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
37476
37477     if test "$wx_cv_size_t_is_ulong" = "yes"; then
37478         cat >>confdefs.h <<\_ACEOF
37479 #define wxSIZE_T_IS_ULONG 1
37480 _ACEOF
37481
37482     fi
37483 fi
37484
37485 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37486 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
37487 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37488   echo $ECHO_N "(cached) $ECHO_C" >&6
37489 else
37490   cat >conftest.$ac_ext <<_ACEOF
37491 /* confdefs.h.  */
37492 _ACEOF
37493 cat confdefs.h >>conftest.$ac_ext
37494 cat >>conftest.$ac_ext <<_ACEOF
37495 /* end confdefs.h.  */
37496 #include <wchar.h>
37497 int
37498 main ()
37499 {
37500
37501             return 0; }
37502
37503             struct Foo { void foo(wchar_t);
37504                          void foo(unsigned short);
37505                          void foo(unsigned int);
37506                          void foo(unsigned long); };
37507
37508             int bar() {
37509
37510   ;
37511   return 0;
37512 }
37513 _ACEOF
37514 rm -f conftest.$ac_objext
37515 if { (ac_try="$ac_compile"
37516 case "(($ac_try" in
37517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37518   *) ac_try_echo=$ac_try;;
37519 esac
37520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37521   (eval "$ac_compile") 2>conftest.er1
37522   ac_status=$?
37523   grep -v '^ *+' conftest.er1 >conftest.err
37524   rm -f conftest.er1
37525   cat conftest.err >&5
37526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527   (exit $ac_status); } && {
37528          test -z "$ac_cxx_werror_flag" ||
37529          test ! -s conftest.err
37530        } && test -s conftest.$ac_objext; then
37531   wx_cv_wchar_t_is_separate_type=yes
37532 else
37533   echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37535
37536         wx_cv_wchar_t_is_separate_type=no
37537
37538 fi
37539
37540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37541
37542 fi
37543 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37544 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37545
37546 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37547     cat >>confdefs.h <<\_ACEOF
37548 #define wxWCHAR_T_IS_REAL_TYPE 1
37549 _ACEOF
37550
37551 else
37552     cat >>confdefs.h <<\_ACEOF
37553 #define wxWCHAR_T_IS_REAL_TYPE 0
37554 _ACEOF
37555
37556 fi
37557
37558 ac_ext=c
37559 ac_cpp='$CPP $CPPFLAGS'
37560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37563
37564
37565 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37566 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37567 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37568   echo $ECHO_N "(cached) $ECHO_C" >&6
37569 else
37570
37571         cat >conftest.$ac_ext <<_ACEOF
37572 /* confdefs.h.  */
37573 _ACEOF
37574 cat confdefs.h >>conftest.$ac_ext
37575 cat >>conftest.$ac_ext <<_ACEOF
37576 /* end confdefs.h.  */
37577 #include <pwd.h>
37578 int
37579 main ()
37580 {
37581
37582                 char *p;
37583                 struct passwd *pw;
37584                 p = pw->pw_gecos;
37585
37586   ;
37587   return 0;
37588 }
37589 _ACEOF
37590 rm -f conftest.$ac_objext
37591 if { (ac_try="$ac_compile"
37592 case "(($ac_try" in
37593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37594   *) ac_try_echo=$ac_try;;
37595 esac
37596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37597   (eval "$ac_compile") 2>conftest.er1
37598   ac_status=$?
37599   grep -v '^ *+' conftest.er1 >conftest.err
37600   rm -f conftest.er1
37601   cat conftest.err >&5
37602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603   (exit $ac_status); } && {
37604          test -z "$ac_c_werror_flag" ||
37605          test ! -s conftest.err
37606        } && test -s conftest.$ac_objext; then
37607
37608                 wx_cv_struct_pw_gecos=yes
37609
37610 else
37611   echo "$as_me: failed program was:" >&5
37612 sed 's/^/| /' conftest.$ac_ext >&5
37613
37614
37615                 wx_cv_struct_pw_gecos=no
37616
37617
37618 fi
37619
37620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37621
37622
37623 fi
37624 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37625 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37626
37627 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37628     cat >>confdefs.h <<\_ACEOF
37629 #define HAVE_PW_GECOS 1
37630 _ACEOF
37631
37632 fi
37633
37634
37635 if test "$wxUSE_WCHAR_T" = "yes"; then
37636     cat >>confdefs.h <<\_ACEOF
37637 #define wxUSE_WCHAR_T 1
37638 _ACEOF
37639
37640
37641         WCSLEN_FOUND=0
37642     WCHAR_LINK=
37643
37644 for ac_func in wcslen
37645 do
37646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37650   echo $ECHO_N "(cached) $ECHO_C" >&6
37651 else
37652   cat >conftest.$ac_ext <<_ACEOF
37653 /* confdefs.h.  */
37654 _ACEOF
37655 cat confdefs.h >>conftest.$ac_ext
37656 cat >>conftest.$ac_ext <<_ACEOF
37657 /* end confdefs.h.  */
37658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37660 #define $ac_func innocuous_$ac_func
37661
37662 /* System header to define __stub macros and hopefully few prototypes,
37663     which can conflict with char $ac_func (); below.
37664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37665     <limits.h> exists even on freestanding compilers.  */
37666
37667 #ifdef __STDC__
37668 # include <limits.h>
37669 #else
37670 # include <assert.h>
37671 #endif
37672
37673 #undef $ac_func
37674
37675 /* Override any GCC internal prototype to avoid an error.
37676    Use char because int might match the return type of a GCC
37677    builtin and then its argument prototype would still apply.  */
37678 #ifdef __cplusplus
37679 extern "C"
37680 #endif
37681 char $ac_func ();
37682 /* The GNU C library defines this for functions which it implements
37683     to always fail with ENOSYS.  Some functions are actually named
37684     something starting with __ and the normal name is an alias.  */
37685 #if defined __stub_$ac_func || defined __stub___$ac_func
37686 choke me
37687 #endif
37688
37689 int
37690 main ()
37691 {
37692 return $ac_func ();
37693   ;
37694   return 0;
37695 }
37696 _ACEOF
37697 rm -f conftest.$ac_objext conftest$ac_exeext
37698 if { (ac_try="$ac_link"
37699 case "(($ac_try" in
37700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37701   *) ac_try_echo=$ac_try;;
37702 esac
37703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37704   (eval "$ac_link") 2>conftest.er1
37705   ac_status=$?
37706   grep -v '^ *+' conftest.er1 >conftest.err
37707   rm -f conftest.er1
37708   cat conftest.err >&5
37709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710   (exit $ac_status); } && {
37711          test -z "$ac_c_werror_flag" ||
37712          test ! -s conftest.err
37713        } && test -s conftest$ac_exeext &&
37714        $as_test_x conftest$ac_exeext; then
37715   eval "$as_ac_var=yes"
37716 else
37717   echo "$as_me: failed program was:" >&5
37718 sed 's/^/| /' conftest.$ac_ext >&5
37719
37720         eval "$as_ac_var=no"
37721 fi
37722
37723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37724       conftest$ac_exeext conftest.$ac_ext
37725 fi
37726 ac_res=`eval echo '${'$as_ac_var'}'`
37727                { echo "$as_me:$LINENO: result: $ac_res" >&5
37728 echo "${ECHO_T}$ac_res" >&6; }
37729 if test `eval echo '${'$as_ac_var'}'` = yes; then
37730   cat >>confdefs.h <<_ACEOF
37731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37732 _ACEOF
37733  WCSLEN_FOUND=1
37734 fi
37735 done
37736
37737
37738     if test "$WCSLEN_FOUND" = 0; then
37739         if test "$TOOLKIT" = "MSW"; then
37740             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37741 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37742 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37743   echo $ECHO_N "(cached) $ECHO_C" >&6
37744 else
37745   ac_check_lib_save_LIBS=$LIBS
37746 LIBS="-lmsvcrt  $LIBS"
37747 cat >conftest.$ac_ext <<_ACEOF
37748 /* confdefs.h.  */
37749 _ACEOF
37750 cat confdefs.h >>conftest.$ac_ext
37751 cat >>conftest.$ac_ext <<_ACEOF
37752 /* end confdefs.h.  */
37753
37754 /* Override any GCC internal prototype to avoid an error.
37755    Use char because int might match the return type of a GCC
37756    builtin and then its argument prototype would still apply.  */
37757 #ifdef __cplusplus
37758 extern "C"
37759 #endif
37760 char wcslen ();
37761 int
37762 main ()
37763 {
37764 return wcslen ();
37765   ;
37766   return 0;
37767 }
37768 _ACEOF
37769 rm -f conftest.$ac_objext conftest$ac_exeext
37770 if { (ac_try="$ac_link"
37771 case "(($ac_try" in
37772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37773   *) ac_try_echo=$ac_try;;
37774 esac
37775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37776   (eval "$ac_link") 2>conftest.er1
37777   ac_status=$?
37778   grep -v '^ *+' conftest.er1 >conftest.err
37779   rm -f conftest.er1
37780   cat conftest.err >&5
37781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782   (exit $ac_status); } && {
37783          test -z "$ac_c_werror_flag" ||
37784          test ! -s conftest.err
37785        } && test -s conftest$ac_exeext &&
37786        $as_test_x conftest$ac_exeext; then
37787   ac_cv_lib_msvcrt_wcslen=yes
37788 else
37789   echo "$as_me: failed program was:" >&5
37790 sed 's/^/| /' conftest.$ac_ext >&5
37791
37792         ac_cv_lib_msvcrt_wcslen=no
37793 fi
37794
37795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37796       conftest$ac_exeext conftest.$ac_ext
37797 LIBS=$ac_check_lib_save_LIBS
37798 fi
37799 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37800 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37801 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37802   WCHAR_OK=1
37803 fi
37804
37805         else
37806             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37807 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37808 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37809   echo $ECHO_N "(cached) $ECHO_C" >&6
37810 else
37811   ac_check_lib_save_LIBS=$LIBS
37812 LIBS="-lw  $LIBS"
37813 cat >conftest.$ac_ext <<_ACEOF
37814 /* confdefs.h.  */
37815 _ACEOF
37816 cat confdefs.h >>conftest.$ac_ext
37817 cat >>conftest.$ac_ext <<_ACEOF
37818 /* end confdefs.h.  */
37819
37820 /* Override any GCC internal prototype to avoid an error.
37821    Use char because int might match the return type of a GCC
37822    builtin and then its argument prototype would still apply.  */
37823 #ifdef __cplusplus
37824 extern "C"
37825 #endif
37826 char wcslen ();
37827 int
37828 main ()
37829 {
37830 return wcslen ();
37831   ;
37832   return 0;
37833 }
37834 _ACEOF
37835 rm -f conftest.$ac_objext conftest$ac_exeext
37836 if { (ac_try="$ac_link"
37837 case "(($ac_try" in
37838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37839   *) ac_try_echo=$ac_try;;
37840 esac
37841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37842   (eval "$ac_link") 2>conftest.er1
37843   ac_status=$?
37844   grep -v '^ *+' conftest.er1 >conftest.err
37845   rm -f conftest.er1
37846   cat conftest.err >&5
37847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37848   (exit $ac_status); } && {
37849          test -z "$ac_c_werror_flag" ||
37850          test ! -s conftest.err
37851        } && test -s conftest$ac_exeext &&
37852        $as_test_x conftest$ac_exeext; then
37853   ac_cv_lib_w_wcslen=yes
37854 else
37855   echo "$as_me: failed program was:" >&5
37856 sed 's/^/| /' conftest.$ac_ext >&5
37857
37858         ac_cv_lib_w_wcslen=no
37859 fi
37860
37861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37862       conftest$ac_exeext conftest.$ac_ext
37863 LIBS=$ac_check_lib_save_LIBS
37864 fi
37865 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37866 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37867 if test $ac_cv_lib_w_wcslen = yes; then
37868
37869                             WCHAR_LINK=" -lw"
37870                             WCSLEN_FOUND=1
37871
37872 fi
37873
37874         fi
37875     fi
37876
37877     if test "$WCSLEN_FOUND" = 1; then
37878         cat >>confdefs.h <<\_ACEOF
37879 #define HAVE_WCSLEN 1
37880 _ACEOF
37881
37882     fi
37883
37884
37885 for ac_func in wcsdup
37886 do
37887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37891   echo $ECHO_N "(cached) $ECHO_C" >&6
37892 else
37893   cat >conftest.$ac_ext <<_ACEOF
37894 /* confdefs.h.  */
37895 _ACEOF
37896 cat confdefs.h >>conftest.$ac_ext
37897 cat >>conftest.$ac_ext <<_ACEOF
37898 /* end confdefs.h.  */
37899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37901 #define $ac_func innocuous_$ac_func
37902
37903 /* System header to define __stub macros and hopefully few prototypes,
37904     which can conflict with char $ac_func (); below.
37905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37906     <limits.h> exists even on freestanding compilers.  */
37907
37908 #ifdef __STDC__
37909 # include <limits.h>
37910 #else
37911 # include <assert.h>
37912 #endif
37913
37914 #undef $ac_func
37915
37916 /* Override any GCC internal prototype to avoid an error.
37917    Use char because int might match the return type of a GCC
37918    builtin and then its argument prototype would still apply.  */
37919 #ifdef __cplusplus
37920 extern "C"
37921 #endif
37922 char $ac_func ();
37923 /* The GNU C library defines this for functions which it implements
37924     to always fail with ENOSYS.  Some functions are actually named
37925     something starting with __ and the normal name is an alias.  */
37926 #if defined __stub_$ac_func || defined __stub___$ac_func
37927 choke me
37928 #endif
37929
37930 int
37931 main ()
37932 {
37933 return $ac_func ();
37934   ;
37935   return 0;
37936 }
37937 _ACEOF
37938 rm -f conftest.$ac_objext conftest$ac_exeext
37939 if { (ac_try="$ac_link"
37940 case "(($ac_try" in
37941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37942   *) ac_try_echo=$ac_try;;
37943 esac
37944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37945   (eval "$ac_link") 2>conftest.er1
37946   ac_status=$?
37947   grep -v '^ *+' conftest.er1 >conftest.err
37948   rm -f conftest.er1
37949   cat conftest.err >&5
37950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951   (exit $ac_status); } && {
37952          test -z "$ac_c_werror_flag" ||
37953          test ! -s conftest.err
37954        } && test -s conftest$ac_exeext &&
37955        $as_test_x conftest$ac_exeext; then
37956   eval "$as_ac_var=yes"
37957 else
37958   echo "$as_me: failed program was:" >&5
37959 sed 's/^/| /' conftest.$ac_ext >&5
37960
37961         eval "$as_ac_var=no"
37962 fi
37963
37964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37965       conftest$ac_exeext conftest.$ac_ext
37966 fi
37967 ac_res=`eval echo '${'$as_ac_var'}'`
37968                { echo "$as_me:$LINENO: result: $ac_res" >&5
37969 echo "${ECHO_T}$ac_res" >&6; }
37970 if test `eval echo '${'$as_ac_var'}'` = yes; then
37971   cat >>confdefs.h <<_ACEOF
37972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37973 _ACEOF
37974
37975 fi
37976 done
37977
37978
37979                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37980         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37981     fi
37982
37983                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37984 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37985 if test "${ac_cv_type_mbstate_t+set}" = set; then
37986   echo $ECHO_N "(cached) $ECHO_C" >&6
37987 else
37988   cat >conftest.$ac_ext <<_ACEOF
37989 /* confdefs.h.  */
37990 _ACEOF
37991 cat confdefs.h >>conftest.$ac_ext
37992 cat >>conftest.$ac_ext <<_ACEOF
37993 /* end confdefs.h.  */
37994 #include <wchar.h>
37995
37996 typedef mbstate_t ac__type_new_;
37997 int
37998 main ()
37999 {
38000 if ((ac__type_new_ *) 0)
38001   return 0;
38002 if (sizeof (ac__type_new_))
38003   return 0;
38004   ;
38005   return 0;
38006 }
38007 _ACEOF
38008 rm -f conftest.$ac_objext
38009 if { (ac_try="$ac_compile"
38010 case "(($ac_try" in
38011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38012   *) ac_try_echo=$ac_try;;
38013 esac
38014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38015   (eval "$ac_compile") 2>conftest.er1
38016   ac_status=$?
38017   grep -v '^ *+' conftest.er1 >conftest.err
38018   rm -f conftest.er1
38019   cat conftest.err >&5
38020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38021   (exit $ac_status); } && {
38022          test -z "$ac_c_werror_flag" ||
38023          test ! -s conftest.err
38024        } && test -s conftest.$ac_objext; then
38025   ac_cv_type_mbstate_t=yes
38026 else
38027   echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38029
38030         ac_cv_type_mbstate_t=no
38031 fi
38032
38033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38034 fi
38035 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
38036 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
38037 if test $ac_cv_type_mbstate_t = yes; then
38038
38039 cat >>confdefs.h <<_ACEOF
38040 #define HAVE_MBSTATE_T 1
38041 _ACEOF
38042
38043
38044 for ac_func in wcsrtombs
38045 do
38046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38050   echo $ECHO_N "(cached) $ECHO_C" >&6
38051 else
38052   cat >conftest.$ac_ext <<_ACEOF
38053 /* confdefs.h.  */
38054 _ACEOF
38055 cat confdefs.h >>conftest.$ac_ext
38056 cat >>conftest.$ac_ext <<_ACEOF
38057 /* end confdefs.h.  */
38058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38060 #define $ac_func innocuous_$ac_func
38061
38062 /* System header to define __stub macros and hopefully few prototypes,
38063     which can conflict with char $ac_func (); below.
38064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38065     <limits.h> exists even on freestanding compilers.  */
38066
38067 #ifdef __STDC__
38068 # include <limits.h>
38069 #else
38070 # include <assert.h>
38071 #endif
38072
38073 #undef $ac_func
38074
38075 /* Override any GCC internal prototype to avoid an error.
38076    Use char because int might match the return type of a GCC
38077    builtin and then its argument prototype would still apply.  */
38078 #ifdef __cplusplus
38079 extern "C"
38080 #endif
38081 char $ac_func ();
38082 /* The GNU C library defines this for functions which it implements
38083     to always fail with ENOSYS.  Some functions are actually named
38084     something starting with __ and the normal name is an alias.  */
38085 #if defined __stub_$ac_func || defined __stub___$ac_func
38086 choke me
38087 #endif
38088
38089 int
38090 main ()
38091 {
38092 return $ac_func ();
38093   ;
38094   return 0;
38095 }
38096 _ACEOF
38097 rm -f conftest.$ac_objext conftest$ac_exeext
38098 if { (ac_try="$ac_link"
38099 case "(($ac_try" in
38100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38101   *) ac_try_echo=$ac_try;;
38102 esac
38103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38104   (eval "$ac_link") 2>conftest.er1
38105   ac_status=$?
38106   grep -v '^ *+' conftest.er1 >conftest.err
38107   rm -f conftest.er1
38108   cat conftest.err >&5
38109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110   (exit $ac_status); } && {
38111          test -z "$ac_c_werror_flag" ||
38112          test ! -s conftest.err
38113        } && test -s conftest$ac_exeext &&
38114        $as_test_x conftest$ac_exeext; then
38115   eval "$as_ac_var=yes"
38116 else
38117   echo "$as_me: failed program was:" >&5
38118 sed 's/^/| /' conftest.$ac_ext >&5
38119
38120         eval "$as_ac_var=no"
38121 fi
38122
38123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38124       conftest$ac_exeext conftest.$ac_ext
38125 fi
38126 ac_res=`eval echo '${'$as_ac_var'}'`
38127                { echo "$as_me:$LINENO: result: $ac_res" >&5
38128 echo "${ECHO_T}$ac_res" >&6; }
38129 if test `eval echo '${'$as_ac_var'}'` = yes; then
38130   cat >>confdefs.h <<_ACEOF
38131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38132 _ACEOF
38133
38134 fi
38135 done
38136
38137 fi
38138
38139 else
38140     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
38141 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
38142 fi
38143
38144
38145
38146 for ac_func in snprintf vsnprintf
38147 do
38148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38152   echo $ECHO_N "(cached) $ECHO_C" >&6
38153 else
38154   cat >conftest.$ac_ext <<_ACEOF
38155 /* confdefs.h.  */
38156 _ACEOF
38157 cat confdefs.h >>conftest.$ac_ext
38158 cat >>conftest.$ac_ext <<_ACEOF
38159 /* end confdefs.h.  */
38160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38162 #define $ac_func innocuous_$ac_func
38163
38164 /* System header to define __stub macros and hopefully few prototypes,
38165     which can conflict with char $ac_func (); below.
38166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38167     <limits.h> exists even on freestanding compilers.  */
38168
38169 #ifdef __STDC__
38170 # include <limits.h>
38171 #else
38172 # include <assert.h>
38173 #endif
38174
38175 #undef $ac_func
38176
38177 /* Override any GCC internal prototype to avoid an error.
38178    Use char because int might match the return type of a GCC
38179    builtin and then its argument prototype would still apply.  */
38180 #ifdef __cplusplus
38181 extern "C"
38182 #endif
38183 char $ac_func ();
38184 /* The GNU C library defines this for functions which it implements
38185     to always fail with ENOSYS.  Some functions are actually named
38186     something starting with __ and the normal name is an alias.  */
38187 #if defined __stub_$ac_func || defined __stub___$ac_func
38188 choke me
38189 #endif
38190
38191 int
38192 main ()
38193 {
38194 return $ac_func ();
38195   ;
38196   return 0;
38197 }
38198 _ACEOF
38199 rm -f conftest.$ac_objext conftest$ac_exeext
38200 if { (ac_try="$ac_link"
38201 case "(($ac_try" in
38202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38203   *) ac_try_echo=$ac_try;;
38204 esac
38205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38206   (eval "$ac_link") 2>conftest.er1
38207   ac_status=$?
38208   grep -v '^ *+' conftest.er1 >conftest.err
38209   rm -f conftest.er1
38210   cat conftest.err >&5
38211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212   (exit $ac_status); } && {
38213          test -z "$ac_c_werror_flag" ||
38214          test ! -s conftest.err
38215        } && test -s conftest$ac_exeext &&
38216        $as_test_x conftest$ac_exeext; then
38217   eval "$as_ac_var=yes"
38218 else
38219   echo "$as_me: failed program was:" >&5
38220 sed 's/^/| /' conftest.$ac_ext >&5
38221
38222         eval "$as_ac_var=no"
38223 fi
38224
38225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38226       conftest$ac_exeext conftest.$ac_ext
38227 fi
38228 ac_res=`eval echo '${'$as_ac_var'}'`
38229                { echo "$as_me:$LINENO: result: $ac_res" >&5
38230 echo "${ECHO_T}$ac_res" >&6; }
38231 if test `eval echo '${'$as_ac_var'}'` = yes; then
38232   cat >>confdefs.h <<_ACEOF
38233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38234 _ACEOF
38235
38236 fi
38237 done
38238
38239
38240 if test "$ac_cv_func_vsnprintf" = "yes"; then
38241         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
38242 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
38243 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
38244   echo $ECHO_N "(cached) $ECHO_C" >&6
38245 else
38246
38247                                                             cat >conftest.$ac_ext <<_ACEOF
38248 /* confdefs.h.  */
38249 _ACEOF
38250 cat confdefs.h >>conftest.$ac_ext
38251 cat >>conftest.$ac_ext <<_ACEOF
38252 /* end confdefs.h.  */
38253
38254                     #include <stdio.h>
38255                     #include <stdarg.h>
38256                     #ifdef __MSL__
38257                     #if __MSL__ >= 0x6000
38258                     namespace std {}
38259                     using namespace std;
38260                     #endif
38261                     #endif
38262
38263 int
38264 main ()
38265 {
38266
38267                     char *buf;
38268                     va_list ap;
38269                     vsnprintf(buf, 10u, "%s", ap);
38270
38271   ;
38272   return 0;
38273 }
38274 _ACEOF
38275 rm -f conftest.$ac_objext
38276 if { (ac_try="$ac_compile"
38277 case "(($ac_try" in
38278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38279   *) ac_try_echo=$ac_try;;
38280 esac
38281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38282   (eval "$ac_compile") 2>conftest.er1
38283   ac_status=$?
38284   grep -v '^ *+' conftest.er1 >conftest.err
38285   rm -f conftest.er1
38286   cat conftest.err >&5
38287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288   (exit $ac_status); } && {
38289          test -z "$ac_c_werror_flag" ||
38290          test ! -s conftest.err
38291        } && test -s conftest.$ac_objext; then
38292   wx_cv_func_vsnprintf_decl=yes
38293 else
38294   echo "$as_me: failed program was:" >&5
38295 sed 's/^/| /' conftest.$ac_ext >&5
38296
38297         wx_cv_func_vsnprintf_decl=no
38298
38299 fi
38300
38301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38302
38303
38304 fi
38305 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
38306 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
38307
38308     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
38309         cat >>confdefs.h <<\_ACEOF
38310 #define HAVE_VSNPRINTF_DECL 1
38311 _ACEOF
38312
38313
38314                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
38315 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
38316 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
38317   echo $ECHO_N "(cached) $ECHO_C" >&6
38318 else
38319
38320                 cat >conftest.$ac_ext <<_ACEOF
38321 /* confdefs.h.  */
38322 _ACEOF
38323 cat confdefs.h >>conftest.$ac_ext
38324 cat >>conftest.$ac_ext <<_ACEOF
38325 /* end confdefs.h.  */
38326
38327                         #include <stdio.h>
38328                         #include <stdarg.h>
38329                         #ifdef __MSL__
38330                         #if __MSL__ >= 0x6000
38331                         namespace std {}
38332                         using namespace std;
38333                         #endif
38334                         #endif
38335
38336 int
38337 main ()
38338 {
38339
38340                         char *buf;
38341                         va_list ap;
38342                         const char *fmt = "%s";
38343                         vsnprintf(buf, 10u, fmt, ap);
38344
38345   ;
38346   return 0;
38347 }
38348 _ACEOF
38349 rm -f conftest.$ac_objext
38350 if { (ac_try="$ac_compile"
38351 case "(($ac_try" in
38352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38353   *) ac_try_echo=$ac_try;;
38354 esac
38355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38356   (eval "$ac_compile") 2>conftest.er1
38357   ac_status=$?
38358   grep -v '^ *+' conftest.er1 >conftest.err
38359   rm -f conftest.er1
38360   cat conftest.err >&5
38361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362   (exit $ac_status); } && {
38363          test -z "$ac_c_werror_flag" ||
38364          test ! -s conftest.err
38365        } && test -s conftest.$ac_objext; then
38366   wx_cv_func_broken_vsnprintf_decl=no
38367 else
38368   echo "$as_me: failed program was:" >&5
38369 sed 's/^/| /' conftest.$ac_ext >&5
38370
38371         wx_cv_func_broken_vsnprintf_decl=yes
38372
38373 fi
38374
38375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38376
38377
38378 fi
38379 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
38380 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
38381
38382         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
38383             cat >>confdefs.h <<\_ACEOF
38384 #define HAVE_BROKEN_VSNPRINTF_DECL 1
38385 _ACEOF
38386
38387         fi
38388     fi
38389 fi
38390
38391 if test "$ac_cv_func_snprintf" = "yes"; then
38392     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
38393 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
38394 if test "${wx_cv_func_snprintf_decl+set}" = set; then
38395   echo $ECHO_N "(cached) $ECHO_C" >&6
38396 else
38397
38398             cat >conftest.$ac_ext <<_ACEOF
38399 /* confdefs.h.  */
38400 _ACEOF
38401 cat confdefs.h >>conftest.$ac_ext
38402 cat >>conftest.$ac_ext <<_ACEOF
38403 /* end confdefs.h.  */
38404
38405                     #include <stdio.h>
38406                     #include <stdarg.h>
38407                     #ifdef __MSL__
38408                     #if __MSL__ >= 0x6000
38409                     namespace std {}
38410                     using namespace std;
38411                     #endif
38412                     #endif
38413
38414 int
38415 main ()
38416 {
38417
38418                     char *buf;
38419                     snprintf(buf, 10u, "%s", "wx");
38420
38421   ;
38422   return 0;
38423 }
38424 _ACEOF
38425 rm -f conftest.$ac_objext
38426 if { (ac_try="$ac_compile"
38427 case "(($ac_try" in
38428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38429   *) ac_try_echo=$ac_try;;
38430 esac
38431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38432   (eval "$ac_compile") 2>conftest.er1
38433   ac_status=$?
38434   grep -v '^ *+' conftest.er1 >conftest.err
38435   rm -f conftest.er1
38436   cat conftest.err >&5
38437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438   (exit $ac_status); } && {
38439          test -z "$ac_c_werror_flag" ||
38440          test ! -s conftest.err
38441        } && test -s conftest.$ac_objext; then
38442   wx_cv_func_snprintf_decl=yes
38443 else
38444   echo "$as_me: failed program was:" >&5
38445 sed 's/^/| /' conftest.$ac_ext >&5
38446
38447         wx_cv_func_snprintf_decl=no
38448
38449 fi
38450
38451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38452
38453
38454 fi
38455 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38456 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
38457
38458     if test "$wx_cv_func_snprintf_decl" = "yes"; then
38459         cat >>confdefs.h <<\_ACEOF
38460 #define HAVE_SNPRINTF_DECL 1
38461 _ACEOF
38462
38463
38464                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
38465 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
38466 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
38467   echo $ECHO_N "(cached) $ECHO_C" >&6
38468 else
38469
38470                 cat >conftest.$ac_ext <<_ACEOF
38471 /* confdefs.h.  */
38472 _ACEOF
38473 cat confdefs.h >>conftest.$ac_ext
38474 cat >>conftest.$ac_ext <<_ACEOF
38475 /* end confdefs.h.  */
38476
38477                         #include <stdio.h>
38478                         #include <stdarg.h>
38479                         #ifdef __MSL__
38480                         #if __MSL__ >= 0x6000
38481                         namespace std {}
38482                         using namespace std;
38483                         #endif
38484                         #endif
38485
38486 int
38487 main ()
38488 {
38489
38490                         char *buf;
38491                         const char *fmt = "%s";
38492                         snprintf(buf, 10u, fmt, "wx");
38493
38494   ;
38495   return 0;
38496 }
38497 _ACEOF
38498 rm -f conftest.$ac_objext
38499 if { (ac_try="$ac_compile"
38500 case "(($ac_try" in
38501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38502   *) ac_try_echo=$ac_try;;
38503 esac
38504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38505   (eval "$ac_compile") 2>conftest.er1
38506   ac_status=$?
38507   grep -v '^ *+' conftest.er1 >conftest.err
38508   rm -f conftest.er1
38509   cat conftest.err >&5
38510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511   (exit $ac_status); } && {
38512          test -z "$ac_c_werror_flag" ||
38513          test ! -s conftest.err
38514        } && test -s conftest.$ac_objext; then
38515   wx_cv_func_broken_snprintf_decl=no
38516 else
38517   echo "$as_me: failed program was:" >&5
38518 sed 's/^/| /' conftest.$ac_ext >&5
38519
38520         wx_cv_func_broken_snprintf_decl=yes
38521
38522 fi
38523
38524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38525
38526
38527 fi
38528 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
38529 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
38530
38531         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
38532             cat >>confdefs.h <<\_ACEOF
38533 #define HAVE_BROKEN_SNPRINTF_DECL 1
38534 _ACEOF
38535
38536         fi
38537     fi
38538
38539     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38540
38541                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38542 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
38543 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38544   echo $ECHO_N "(cached) $ECHO_C" >&6
38545 else
38546
38547                 if test "$cross_compiling" = yes; then
38548
38549                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38550 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38551 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38552 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38553                         wx_cv_func_snprintf_pos_params=no
38554
38555
38556 else
38557   cat >conftest.$ac_ext <<_ACEOF
38558 /* confdefs.h.  */
38559 _ACEOF
38560 cat confdefs.h >>conftest.$ac_ext
38561 cat >>conftest.$ac_ext <<_ACEOF
38562 /* end confdefs.h.  */
38563
38564                         #include <stdio.h>
38565
38566                         int main (void)
38567                         {
38568                             char buffer[128];
38569                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
38570                             if (strcmp ("2 3 1", buffer) == 0)
38571                                 exit (0);
38572                             exit (1);
38573                         }
38574
38575 _ACEOF
38576 rm -f conftest$ac_exeext
38577 if { (ac_try="$ac_link"
38578 case "(($ac_try" in
38579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38580   *) ac_try_echo=$ac_try;;
38581 esac
38582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38583   (eval "$ac_link") 2>&5
38584   ac_status=$?
38585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38587   { (case "(($ac_try" in
38588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38589   *) ac_try_echo=$ac_try;;
38590 esac
38591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38592   (eval "$ac_try") 2>&5
38593   ac_status=$?
38594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595   (exit $ac_status); }; }; then
38596   wx_cv_func_snprintf_pos_params=no
38597 else
38598   echo "$as_me: program exited with status $ac_status" >&5
38599 echo "$as_me: failed program was:" >&5
38600 sed 's/^/| /' conftest.$ac_ext >&5
38601
38602 ( exit $ac_status )
38603 wx_cv_func_snprintf_pos_params=yes
38604 fi
38605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38606 fi
38607
38608
38609
38610
38611 fi
38612 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38613 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38614
38615         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38616             cat >>confdefs.h <<\_ACEOF
38617 #define HAVE_UNIX98_PRINTF 1
38618 _ACEOF
38619
38620         fi
38621     fi
38622 fi
38623
38624 if test "$wxUSE_UNICODE" = yes; then
38625
38626
38627 for ac_func in swprintf
38628 do
38629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38633   echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38635   cat >conftest.$ac_ext <<_ACEOF
38636 /* confdefs.h.  */
38637 _ACEOF
38638 cat confdefs.h >>conftest.$ac_ext
38639 cat >>conftest.$ac_ext <<_ACEOF
38640 /* end confdefs.h.  */
38641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38643 #define $ac_func innocuous_$ac_func
38644
38645 /* System header to define __stub macros and hopefully few prototypes,
38646     which can conflict with char $ac_func (); below.
38647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38648     <limits.h> exists even on freestanding compilers.  */
38649
38650 #ifdef __STDC__
38651 # include <limits.h>
38652 #else
38653 # include <assert.h>
38654 #endif
38655
38656 #undef $ac_func
38657
38658 /* Override any GCC internal prototype to avoid an error.
38659    Use char because int might match the return type of a GCC
38660    builtin and then its argument prototype would still apply.  */
38661 #ifdef __cplusplus
38662 extern "C"
38663 #endif
38664 char $ac_func ();
38665 /* The GNU C library defines this for functions which it implements
38666     to always fail with ENOSYS.  Some functions are actually named
38667     something starting with __ and the normal name is an alias.  */
38668 #if defined __stub_$ac_func || defined __stub___$ac_func
38669 choke me
38670 #endif
38671
38672 int
38673 main ()
38674 {
38675 return $ac_func ();
38676   ;
38677   return 0;
38678 }
38679 _ACEOF
38680 rm -f conftest.$ac_objext conftest$ac_exeext
38681 if { (ac_try="$ac_link"
38682 case "(($ac_try" in
38683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38684   *) ac_try_echo=$ac_try;;
38685 esac
38686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38687   (eval "$ac_link") 2>conftest.er1
38688   ac_status=$?
38689   grep -v '^ *+' conftest.er1 >conftest.err
38690   rm -f conftest.er1
38691   cat conftest.err >&5
38692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38693   (exit $ac_status); } && {
38694          test -z "$ac_c_werror_flag" ||
38695          test ! -s conftest.err
38696        } && test -s conftest$ac_exeext &&
38697        $as_test_x conftest$ac_exeext; then
38698   eval "$as_ac_var=yes"
38699 else
38700   echo "$as_me: failed program was:" >&5
38701 sed 's/^/| /' conftest.$ac_ext >&5
38702
38703         eval "$as_ac_var=no"
38704 fi
38705
38706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38707       conftest$ac_exeext conftest.$ac_ext
38708 fi
38709 ac_res=`eval echo '${'$as_ac_var'}'`
38710                { echo "$as_me:$LINENO: result: $ac_res" >&5
38711 echo "${ECHO_T}$ac_res" >&6; }
38712 if test `eval echo '${'$as_ac_var'}'` = yes; then
38713   cat >>confdefs.h <<_ACEOF
38714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38715 _ACEOF
38716
38717 fi
38718 done
38719
38720
38721     if test "$ac_cv_func_swprintf" = "yes"; then
38722         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
38723 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
38724 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
38725   echo $ECHO_N "(cached) $ECHO_C" >&6
38726 else
38727
38728                 cat >conftest.$ac_ext <<_ACEOF
38729 /* confdefs.h.  */
38730 _ACEOF
38731 cat confdefs.h >>conftest.$ac_ext
38732 cat >>conftest.$ac_ext <<_ACEOF
38733 /* end confdefs.h.  */
38734
38735                         #include <stdio.h>
38736                         #include <stdarg.h>
38737                         #include <wchar.h>
38738
38739 int
38740 main ()
38741 {
38742
38743                         wchar_t *buf;
38744                         const wchar_t *fmt = L"test";
38745                         swprintf(buf, 10u, fmt);
38746
38747   ;
38748   return 0;
38749 }
38750 _ACEOF
38751 rm -f conftest.$ac_objext
38752 if { (ac_try="$ac_compile"
38753 case "(($ac_try" in
38754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38755   *) ac_try_echo=$ac_try;;
38756 esac
38757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38758   (eval "$ac_compile") 2>conftest.er1
38759   ac_status=$?
38760   grep -v '^ *+' conftest.er1 >conftest.err
38761   rm -f conftest.er1
38762   cat conftest.err >&5
38763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764   (exit $ac_status); } && {
38765          test -z "$ac_c_werror_flag" ||
38766          test ! -s conftest.err
38767        } && test -s conftest.$ac_objext; then
38768   wx_cv_func_broken_swprintf_decl=no
38769 else
38770   echo "$as_me: failed program was:" >&5
38771 sed 's/^/| /' conftest.$ac_ext >&5
38772
38773         wx_cv_func_broken_swprintf_decl=yes
38774
38775 fi
38776
38777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38778
38779
38780 fi
38781 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
38782 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
38783
38784         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
38785             cat >>confdefs.h <<\_ACEOF
38786 #define HAVE_BROKEN_SWPRINTF_DECL 1
38787 _ACEOF
38788
38789         fi
38790     fi
38791
38792             wchar_headers="#include <stdio.h>
38793 #include <wchar.h>"
38794     case "${host}" in
38795         *-*-solaris2* )
38796
38797 for ac_header in widec.h
38798 do
38799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38803   echo $ECHO_N "(cached) $ECHO_C" >&6
38804 else
38805   cat >conftest.$ac_ext <<_ACEOF
38806 /* confdefs.h.  */
38807 _ACEOF
38808 cat confdefs.h >>conftest.$ac_ext
38809 cat >>conftest.$ac_ext <<_ACEOF
38810 /* end confdefs.h.  */
38811 $ac_includes_default
38812
38813 #include <$ac_header>
38814 _ACEOF
38815 rm -f conftest.$ac_objext
38816 if { (ac_try="$ac_compile"
38817 case "(($ac_try" in
38818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38819   *) ac_try_echo=$ac_try;;
38820 esac
38821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38822   (eval "$ac_compile") 2>conftest.er1
38823   ac_status=$?
38824   grep -v '^ *+' conftest.er1 >conftest.err
38825   rm -f conftest.er1
38826   cat conftest.err >&5
38827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828   (exit $ac_status); } && {
38829          test -z "$ac_c_werror_flag" ||
38830          test ! -s conftest.err
38831        } && test -s conftest.$ac_objext; then
38832   eval "$as_ac_Header=yes"
38833 else
38834   echo "$as_me: failed program was:" >&5
38835 sed 's/^/| /' conftest.$ac_ext >&5
38836
38837         eval "$as_ac_Header=no"
38838 fi
38839
38840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38841 fi
38842 ac_res=`eval echo '${'$as_ac_Header'}'`
38843                { echo "$as_me:$LINENO: result: $ac_res" >&5
38844 echo "${ECHO_T}$ac_res" >&6; }
38845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38846   cat >>confdefs.h <<_ACEOF
38847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38848 _ACEOF
38849
38850 fi
38851
38852 done
38853
38854             if test "$ac_cv_header_widec_h" = "yes"; then
38855                 wchar_headers="$wchar_headers
38856 #include <widec.h>"
38857             fi
38858     esac
38859
38860
38861   for wx_func in wputc wputchar putws fputws wprintf vswprintf
38862   do
38863     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38864 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38865 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38866   echo $ECHO_N "(cached) $ECHO_C" >&6
38867 else
38868
38869         cat >conftest.$ac_ext <<_ACEOF
38870
38871             /* confdefs.h.  */
38872 _ACEOF
38873 cat confdefs.h >>conftest.$ac_ext
38874 cat >>conftest.$ac_ext <<_ACEOF
38875 /* end confdefs.h.  */
38876
38877                 $wchar_headers
38878                 $ac_includes_default
38879
38880 int
38881 main ()
38882 {
38883
38884                 #ifndef $wx_func
38885                   &$wx_func;
38886                 #endif
38887
38888
38889   ;
38890   return 0;
38891 }
38892
38893 _ACEOF
38894 rm -f conftest.$ac_objext conftest$ac_exeext
38895 if { (ac_try="$ac_link"
38896 case "(($ac_try" in
38897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38898   *) ac_try_echo=$ac_try;;
38899 esac
38900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38901   (eval "$ac_link") 2>conftest.er1
38902   ac_status=$?
38903   grep -v '^ *+' conftest.er1 >conftest.err
38904   rm -f conftest.er1
38905   cat conftest.err >&5
38906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907   (exit $ac_status); } && {
38908          test -z "$ac_c_werror_flag" ||
38909          test ! -s conftest.err
38910        } && test -s conftest$ac_exeext &&
38911        $as_test_x conftest$ac_exeext; then
38912   eval wx_cv_func_$wx_func=yes
38913 else
38914   echo "$as_me: failed program was:" >&5
38915 sed 's/^/| /' conftest.$ac_ext >&5
38916
38917         eval wx_cv_func_$wx_func=no
38918 fi
38919
38920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38921       conftest$ac_exeext conftest.$ac_ext
38922
38923 fi
38924 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38925                { echo "$as_me:$LINENO: result: $ac_res" >&5
38926 echo "${ECHO_T}$ac_res" >&6; }
38927
38928     if eval test \$wx_cv_func_$wx_func = yes
38929     then
38930       cat >>confdefs.h <<_ACEOF
38931 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38932 _ACEOF
38933
38934
38935     else
38936       :
38937
38938     fi
38939   done
38940
38941
38942                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38943 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38944     cat >conftest.$ac_ext <<_ACEOF
38945 /* confdefs.h.  */
38946 _ACEOF
38947 cat confdefs.h >>conftest.$ac_ext
38948 cat >>conftest.$ac_ext <<_ACEOF
38949 /* end confdefs.h.  */
38950 #include <wchar.h>
38951 int
38952 main ()
38953 {
38954 &_vsnwprintf;
38955   ;
38956   return 0;
38957 }
38958 _ACEOF
38959 rm -f conftest.$ac_objext
38960 if { (ac_try="$ac_compile"
38961 case "(($ac_try" in
38962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38963   *) ac_try_echo=$ac_try;;
38964 esac
38965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38966   (eval "$ac_compile") 2>conftest.er1
38967   ac_status=$?
38968   grep -v '^ *+' conftest.er1 >conftest.err
38969   rm -f conftest.er1
38970   cat conftest.err >&5
38971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972   (exit $ac_status); } && {
38973          test -z "$ac_c_werror_flag" ||
38974          test ! -s conftest.err
38975        } && test -s conftest.$ac_objext; then
38976   { echo "$as_me:$LINENO: result: yes" >&5
38977 echo "${ECHO_T}yes" >&6; }
38978                     cat >>confdefs.h <<\_ACEOF
38979 #define HAVE__VSNWPRINTF 1
38980 _ACEOF
38981
38982 else
38983   echo "$as_me: failed program was:" >&5
38984 sed 's/^/| /' conftest.$ac_ext >&5
38985
38986         { echo "$as_me:$LINENO: result: no" >&5
38987 echo "${ECHO_T}no" >&6; }
38988 fi
38989
38990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38991 fi
38992
38993 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
38994
38995   for wx_func in fnmatch
38996   do
38997     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38998 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38999 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39000   echo $ECHO_N "(cached) $ECHO_C" >&6
39001 else
39002
39003         cat >conftest.$ac_ext <<_ACEOF
39004
39005             /* confdefs.h.  */
39006 _ACEOF
39007 cat confdefs.h >>conftest.$ac_ext
39008 cat >>conftest.$ac_ext <<_ACEOF
39009 /* end confdefs.h.  */
39010
39011                 #include <fnmatch.h>
39012                 $ac_includes_default
39013
39014 int
39015 main ()
39016 {
39017
39018                 #ifndef $wx_func
39019                   &$wx_func;
39020                 #endif
39021
39022
39023   ;
39024   return 0;
39025 }
39026
39027 _ACEOF
39028 rm -f conftest.$ac_objext conftest$ac_exeext
39029 if { (ac_try="$ac_link"
39030 case "(($ac_try" in
39031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39032   *) ac_try_echo=$ac_try;;
39033 esac
39034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39035   (eval "$ac_link") 2>conftest.er1
39036   ac_status=$?
39037   grep -v '^ *+' conftest.er1 >conftest.err
39038   rm -f conftest.er1
39039   cat conftest.err >&5
39040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041   (exit $ac_status); } && {
39042          test -z "$ac_c_werror_flag" ||
39043          test ! -s conftest.err
39044        } && test -s conftest$ac_exeext &&
39045        $as_test_x conftest$ac_exeext; then
39046   eval wx_cv_func_$wx_func=yes
39047 else
39048   echo "$as_me: failed program was:" >&5
39049 sed 's/^/| /' conftest.$ac_ext >&5
39050
39051         eval wx_cv_func_$wx_func=no
39052 fi
39053
39054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39055       conftest$ac_exeext conftest.$ac_ext
39056
39057 fi
39058 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39059                { echo "$as_me:$LINENO: result: $ac_res" >&5
39060 echo "${ECHO_T}$ac_res" >&6; }
39061
39062     if eval test \$wx_cv_func_$wx_func = yes
39063     then
39064       cat >>confdefs.h <<_ACEOF
39065 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39066 _ACEOF
39067
39068
39069     else
39070       :
39071
39072     fi
39073   done
39074
39075 fi
39076
39077 if test "$wxUSE_FILE" = "yes"; then
39078
39079   for wx_func in fsync
39080   do
39081     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39082 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39083 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39084   echo $ECHO_N "(cached) $ECHO_C" >&6
39085 else
39086
39087         cat >conftest.$ac_ext <<_ACEOF
39088
39089             /* confdefs.h.  */
39090 _ACEOF
39091 cat confdefs.h >>conftest.$ac_ext
39092 cat >>conftest.$ac_ext <<_ACEOF
39093 /* end confdefs.h.  */
39094
39095
39096                 $ac_includes_default
39097
39098 int
39099 main ()
39100 {
39101
39102                 #ifndef $wx_func
39103                   &$wx_func;
39104                 #endif
39105
39106
39107   ;
39108   return 0;
39109 }
39110
39111 _ACEOF
39112 rm -f conftest.$ac_objext conftest$ac_exeext
39113 if { (ac_try="$ac_link"
39114 case "(($ac_try" in
39115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39116   *) ac_try_echo=$ac_try;;
39117 esac
39118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39119   (eval "$ac_link") 2>conftest.er1
39120   ac_status=$?
39121   grep -v '^ *+' conftest.er1 >conftest.err
39122   rm -f conftest.er1
39123   cat conftest.err >&5
39124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125   (exit $ac_status); } && {
39126          test -z "$ac_c_werror_flag" ||
39127          test ! -s conftest.err
39128        } && test -s conftest$ac_exeext &&
39129        $as_test_x conftest$ac_exeext; then
39130   eval wx_cv_func_$wx_func=yes
39131 else
39132   echo "$as_me: failed program was:" >&5
39133 sed 's/^/| /' conftest.$ac_ext >&5
39134
39135         eval wx_cv_func_$wx_func=no
39136 fi
39137
39138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39139       conftest$ac_exeext conftest.$ac_ext
39140
39141 fi
39142 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39143                { echo "$as_me:$LINENO: result: $ac_res" >&5
39144 echo "${ECHO_T}$ac_res" >&6; }
39145
39146     if eval test \$wx_cv_func_$wx_func = yes
39147     then
39148       cat >>confdefs.h <<_ACEOF
39149 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39150 _ACEOF
39151
39152
39153     else
39154       :
39155
39156     fi
39157   done
39158
39159 fi
39160
39161 ac_ext=cpp
39162 ac_cpp='$CXXCPP $CPPFLAGS'
39163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39166
39167
39168   for wx_func in round
39169   do
39170     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39171 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39172 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39173   echo $ECHO_N "(cached) $ECHO_C" >&6
39174 else
39175
39176         cat >conftest.$ac_ext <<_ACEOF
39177
39178             /* confdefs.h.  */
39179 _ACEOF
39180 cat confdefs.h >>conftest.$ac_ext
39181 cat >>conftest.$ac_ext <<_ACEOF
39182 /* end confdefs.h.  */
39183
39184                 #include <math.h>
39185                 $ac_includes_default
39186
39187 int
39188 main ()
39189 {
39190
39191                 #ifndef $wx_func
39192                   &$wx_func;
39193                 #endif
39194
39195
39196   ;
39197   return 0;
39198 }
39199
39200 _ACEOF
39201 rm -f conftest.$ac_objext conftest$ac_exeext
39202 if { (ac_try="$ac_link"
39203 case "(($ac_try" in
39204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39205   *) ac_try_echo=$ac_try;;
39206 esac
39207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39208   (eval "$ac_link") 2>conftest.er1
39209   ac_status=$?
39210   grep -v '^ *+' conftest.er1 >conftest.err
39211   rm -f conftest.er1
39212   cat conftest.err >&5
39213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214   (exit $ac_status); } && {
39215          test -z "$ac_cxx_werror_flag" ||
39216          test ! -s conftest.err
39217        } && test -s conftest$ac_exeext &&
39218        $as_test_x conftest$ac_exeext; then
39219   eval wx_cv_func_$wx_func=yes
39220 else
39221   echo "$as_me: failed program was:" >&5
39222 sed 's/^/| /' conftest.$ac_ext >&5
39223
39224         eval wx_cv_func_$wx_func=no
39225 fi
39226
39227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39228       conftest$ac_exeext conftest.$ac_ext
39229
39230 fi
39231 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39232                { echo "$as_me:$LINENO: result: $ac_res" >&5
39233 echo "${ECHO_T}$ac_res" >&6; }
39234
39235     if eval test \$wx_cv_func_$wx_func = yes
39236     then
39237       cat >>confdefs.h <<_ACEOF
39238 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39239 _ACEOF
39240
39241
39242     else
39243       :
39244
39245     fi
39246   done
39247
39248 ac_ext=c
39249 ac_cpp='$CPP $CPPFLAGS'
39250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39253
39254
39255 if test "$TOOLKIT" != "MSW"; then
39256
39257
39258
39259
39260
39261 # Check whether --with-libiconv-prefix was given.
39262 if test "${with_libiconv_prefix+set}" = set; then
39263   withval=$with_libiconv_prefix;
39264     for dir in `echo "$withval" | tr : ' '`; do
39265       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
39266       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
39267     done
39268
39269 fi
39270
39271
39272   { echo "$as_me:$LINENO: checking for iconv" >&5
39273 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
39274 if test "${am_cv_func_iconv+set}" = set; then
39275   echo $ECHO_N "(cached) $ECHO_C" >&6
39276 else
39277
39278     am_cv_func_iconv="no, consider installing GNU libiconv"
39279     am_cv_lib_iconv=no
39280     cat >conftest.$ac_ext <<_ACEOF
39281 /* confdefs.h.  */
39282 _ACEOF
39283 cat confdefs.h >>conftest.$ac_ext
39284 cat >>conftest.$ac_ext <<_ACEOF
39285 /* end confdefs.h.  */
39286 #include <stdlib.h>
39287 #include <iconv.h>
39288 int
39289 main ()
39290 {
39291 iconv_t cd = iconv_open("","");
39292        iconv(cd,NULL,NULL,NULL,NULL);
39293        iconv_close(cd);
39294   ;
39295   return 0;
39296 }
39297 _ACEOF
39298 rm -f conftest.$ac_objext conftest$ac_exeext
39299 if { (ac_try="$ac_link"
39300 case "(($ac_try" in
39301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39302   *) ac_try_echo=$ac_try;;
39303 esac
39304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39305   (eval "$ac_link") 2>conftest.er1
39306   ac_status=$?
39307   grep -v '^ *+' conftest.er1 >conftest.err
39308   rm -f conftest.er1
39309   cat conftest.err >&5
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); } && {
39312          test -z "$ac_c_werror_flag" ||
39313          test ! -s conftest.err
39314        } && test -s conftest$ac_exeext &&
39315        $as_test_x conftest$ac_exeext; then
39316   am_cv_func_iconv=yes
39317 else
39318   echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39320
39321
39322 fi
39323
39324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39325       conftest$ac_exeext conftest.$ac_ext
39326     if test "$am_cv_func_iconv" != yes; then
39327       am_save_LIBS="$LIBS"
39328       LIBS="$LIBS -liconv"
39329       cat >conftest.$ac_ext <<_ACEOF
39330 /* confdefs.h.  */
39331 _ACEOF
39332 cat confdefs.h >>conftest.$ac_ext
39333 cat >>conftest.$ac_ext <<_ACEOF
39334 /* end confdefs.h.  */
39335 #include <stdlib.h>
39336 #include <iconv.h>
39337 int
39338 main ()
39339 {
39340 iconv_t cd = iconv_open("","");
39341          iconv(cd,NULL,NULL,NULL,NULL);
39342          iconv_close(cd);
39343   ;
39344   return 0;
39345 }
39346 _ACEOF
39347 rm -f conftest.$ac_objext conftest$ac_exeext
39348 if { (ac_try="$ac_link"
39349 case "(($ac_try" in
39350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39351   *) ac_try_echo=$ac_try;;
39352 esac
39353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39354   (eval "$ac_link") 2>conftest.er1
39355   ac_status=$?
39356   grep -v '^ *+' conftest.er1 >conftest.err
39357   rm -f conftest.er1
39358   cat conftest.err >&5
39359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360   (exit $ac_status); } && {
39361          test -z "$ac_c_werror_flag" ||
39362          test ! -s conftest.err
39363        } && test -s conftest$ac_exeext &&
39364        $as_test_x conftest$ac_exeext; then
39365   am_cv_lib_iconv=yes
39366         am_cv_func_iconv=yes
39367 else
39368   echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39370
39371
39372 fi
39373
39374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39375       conftest$ac_exeext conftest.$ac_ext
39376       LIBS="$am_save_LIBS"
39377     fi
39378
39379 fi
39380 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39381 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
39382   if test "$am_cv_func_iconv" = yes; then
39383
39384 cat >>confdefs.h <<\_ACEOF
39385 #define HAVE_ICONV 1
39386 _ACEOF
39387
39388     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
39389 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
39390 if test "${wx_cv_func_iconv_const+set}" = set; then
39391   echo $ECHO_N "(cached) $ECHO_C" >&6
39392 else
39393   cat >conftest.$ac_ext <<_ACEOF
39394 /* confdefs.h.  */
39395 _ACEOF
39396 cat confdefs.h >>conftest.$ac_ext
39397 cat >>conftest.$ac_ext <<_ACEOF
39398 /* end confdefs.h.  */
39399
39400 #include <stdlib.h>
39401 #include <iconv.h>
39402 extern
39403 #ifdef __cplusplus
39404 "C"
39405 #endif
39406 #if defined(__STDC__) || defined(__cplusplus)
39407 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
39408 #else
39409 size_t iconv();
39410 #endif
39411
39412 int
39413 main ()
39414 {
39415
39416   ;
39417   return 0;
39418 }
39419 _ACEOF
39420 rm -f conftest.$ac_objext
39421 if { (ac_try="$ac_compile"
39422 case "(($ac_try" in
39423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39424   *) ac_try_echo=$ac_try;;
39425 esac
39426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39427   (eval "$ac_compile") 2>conftest.er1
39428   ac_status=$?
39429   grep -v '^ *+' conftest.er1 >conftest.err
39430   rm -f conftest.er1
39431   cat conftest.err >&5
39432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433   (exit $ac_status); } && {
39434          test -z "$ac_c_werror_flag" ||
39435          test ! -s conftest.err
39436        } && test -s conftest.$ac_objext; then
39437   wx_cv_func_iconv_const="no"
39438 else
39439   echo "$as_me: failed program was:" >&5
39440 sed 's/^/| /' conftest.$ac_ext >&5
39441
39442         wx_cv_func_iconv_const="yes"
39443
39444 fi
39445
39446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39447
39448 fi
39449 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
39450 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
39451
39452     iconv_const=
39453     if test "x$wx_cv_func_iconv_const" = "xyes"; then
39454         iconv_const="const"
39455     fi
39456
39457
39458 cat >>confdefs.h <<_ACEOF
39459 #define ICONV_CONST $iconv_const
39460 _ACEOF
39461
39462   fi
39463   LIBICONV=
39464   if test "$am_cv_lib_iconv" = yes; then
39465     LIBICONV="-liconv"
39466   fi
39467
39468
39469 LIBS="$LIBICONV $LIBS"
39470
39471 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39472
39473 for ac_func in sigaction
39474 do
39475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39479   echo $ECHO_N "(cached) $ECHO_C" >&6
39480 else
39481   cat >conftest.$ac_ext <<_ACEOF
39482 /* confdefs.h.  */
39483 _ACEOF
39484 cat confdefs.h >>conftest.$ac_ext
39485 cat >>conftest.$ac_ext <<_ACEOF
39486 /* end confdefs.h.  */
39487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39489 #define $ac_func innocuous_$ac_func
39490
39491 /* System header to define __stub macros and hopefully few prototypes,
39492     which can conflict with char $ac_func (); below.
39493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39494     <limits.h> exists even on freestanding compilers.  */
39495
39496 #ifdef __STDC__
39497 # include <limits.h>
39498 #else
39499 # include <assert.h>
39500 #endif
39501
39502 #undef $ac_func
39503
39504 /* Override any GCC internal prototype to avoid an error.
39505    Use char because int might match the return type of a GCC
39506    builtin and then its argument prototype would still apply.  */
39507 #ifdef __cplusplus
39508 extern "C"
39509 #endif
39510 char $ac_func ();
39511 /* The GNU C library defines this for functions which it implements
39512     to always fail with ENOSYS.  Some functions are actually named
39513     something starting with __ and the normal name is an alias.  */
39514 #if defined __stub_$ac_func || defined __stub___$ac_func
39515 choke me
39516 #endif
39517
39518 int
39519 main ()
39520 {
39521 return $ac_func ();
39522   ;
39523   return 0;
39524 }
39525 _ACEOF
39526 rm -f conftest.$ac_objext conftest$ac_exeext
39527 if { (ac_try="$ac_link"
39528 case "(($ac_try" in
39529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39530   *) ac_try_echo=$ac_try;;
39531 esac
39532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39533   (eval "$ac_link") 2>conftest.er1
39534   ac_status=$?
39535   grep -v '^ *+' conftest.er1 >conftest.err
39536   rm -f conftest.er1
39537   cat conftest.err >&5
39538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539   (exit $ac_status); } && {
39540          test -z "$ac_c_werror_flag" ||
39541          test ! -s conftest.err
39542        } && test -s conftest$ac_exeext &&
39543        $as_test_x conftest$ac_exeext; then
39544   eval "$as_ac_var=yes"
39545 else
39546   echo "$as_me: failed program was:" >&5
39547 sed 's/^/| /' conftest.$ac_ext >&5
39548
39549         eval "$as_ac_var=no"
39550 fi
39551
39552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39553       conftest$ac_exeext conftest.$ac_ext
39554 fi
39555 ac_res=`eval echo '${'$as_ac_var'}'`
39556                { echo "$as_me:$LINENO: result: $ac_res" >&5
39557 echo "${ECHO_T}$ac_res" >&6; }
39558 if test `eval echo '${'$as_ac_var'}'` = yes; then
39559   cat >>confdefs.h <<_ACEOF
39560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39561 _ACEOF
39562
39563 fi
39564 done
39565
39566
39567     if test "$ac_cv_func_sigaction" = "no"; then
39568         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
39569 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
39570         wxUSE_ON_FATAL_EXCEPTION=no
39571     fi
39572
39573     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39574       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
39575 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
39576 if test "${wx_cv_type_sa_handler+set}" = set; then
39577   echo $ECHO_N "(cached) $ECHO_C" >&6
39578 else
39579
39580                 ac_ext=cpp
39581 ac_cpp='$CXXCPP $CPPFLAGS'
39582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39585
39586         cat >conftest.$ac_ext <<_ACEOF
39587 /* confdefs.h.  */
39588 _ACEOF
39589 cat confdefs.h >>conftest.$ac_ext
39590 cat >>conftest.$ac_ext <<_ACEOF
39591 /* end confdefs.h.  */
39592 #include <signal.h>
39593 int
39594 main ()
39595 {
39596
39597                         extern void testSigHandler(int);
39598
39599                         struct sigaction sa;
39600                         sa.sa_handler = testSigHandler;
39601
39602   ;
39603   return 0;
39604 }
39605 _ACEOF
39606 rm -f conftest.$ac_objext
39607 if { (ac_try="$ac_compile"
39608 case "(($ac_try" in
39609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39610   *) ac_try_echo=$ac_try;;
39611 esac
39612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39613   (eval "$ac_compile") 2>conftest.er1
39614   ac_status=$?
39615   grep -v '^ *+' conftest.er1 >conftest.err
39616   rm -f conftest.er1
39617   cat conftest.err >&5
39618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619   (exit $ac_status); } && {
39620          test -z "$ac_cxx_werror_flag" ||
39621          test ! -s conftest.err
39622        } && test -s conftest.$ac_objext; then
39623
39624                         wx_cv_type_sa_handler=int
39625
39626 else
39627   echo "$as_me: failed program was:" >&5
39628 sed 's/^/| /' conftest.$ac_ext >&5
39629
39630
39631                         wx_cv_type_sa_handler=void
39632
39633 fi
39634
39635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39636         ac_ext=c
39637 ac_cpp='$CPP $CPPFLAGS'
39638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39641
39642
39643 fi
39644 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39645 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
39646
39647       cat >>confdefs.h <<_ACEOF
39648 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39649 _ACEOF
39650
39651     fi
39652 fi
39653
39654 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39655     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39656 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
39657 if test "${wx_cv_func_backtrace+set}" = set; then
39658   echo $ECHO_N "(cached) $ECHO_C" >&6
39659 else
39660
39661             ac_ext=cpp
39662 ac_cpp='$CXXCPP $CPPFLAGS'
39663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39666
39667             cat >conftest.$ac_ext <<_ACEOF
39668 /* confdefs.h.  */
39669 _ACEOF
39670 cat confdefs.h >>conftest.$ac_ext
39671 cat >>conftest.$ac_ext <<_ACEOF
39672 /* end confdefs.h.  */
39673 #include <execinfo.h>
39674 int
39675 main ()
39676 {
39677
39678                     void *trace[1];
39679                     char **messages;
39680
39681                     backtrace(trace, 1);
39682                     messages = backtrace_symbols(trace, 1);
39683
39684   ;
39685   return 0;
39686 }
39687 _ACEOF
39688 rm -f conftest.$ac_objext
39689 if { (ac_try="$ac_compile"
39690 case "(($ac_try" in
39691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39692   *) ac_try_echo=$ac_try;;
39693 esac
39694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39695   (eval "$ac_compile") 2>conftest.er1
39696   ac_status=$?
39697   grep -v '^ *+' conftest.er1 >conftest.err
39698   rm -f conftest.er1
39699   cat conftest.err >&5
39700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701   (exit $ac_status); } && {
39702          test -z "$ac_cxx_werror_flag" ||
39703          test ! -s conftest.err
39704        } && test -s conftest.$ac_objext; then
39705   wx_cv_func_backtrace=yes
39706 else
39707   echo "$as_me: failed program was:" >&5
39708 sed 's/^/| /' conftest.$ac_ext >&5
39709
39710         wx_cv_func_backtrace=no
39711
39712 fi
39713
39714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39715             ac_ext=c
39716 ac_cpp='$CPP $CPPFLAGS'
39717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39720
39721
39722
39723 fi
39724 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39725 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
39726
39727
39728     if test "$wx_cv_func_backtrace" = "no"; then
39729         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39730 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39731         wxUSE_STACKWALKER=no
39732     else
39733         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39734 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39735 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39736   echo $ECHO_N "(cached) $ECHO_C" >&6
39737 else
39738
39739                 ac_ext=cpp
39740 ac_cpp='$CXXCPP $CPPFLAGS'
39741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39744
39745                 cat >conftest.$ac_ext <<_ACEOF
39746 /* confdefs.h.  */
39747 _ACEOF
39748 cat confdefs.h >>conftest.$ac_ext
39749 cat >>conftest.$ac_ext <<_ACEOF
39750 /* end confdefs.h.  */
39751 #include <cxxabi.h>
39752 int
39753 main ()
39754 {
39755
39756                         int rc;
39757                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39758
39759   ;
39760   return 0;
39761 }
39762 _ACEOF
39763 rm -f conftest.$ac_objext conftest$ac_exeext
39764 if { (ac_try="$ac_link"
39765 case "(($ac_try" in
39766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39767   *) ac_try_echo=$ac_try;;
39768 esac
39769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39770   (eval "$ac_link") 2>conftest.er1
39771   ac_status=$?
39772   grep -v '^ *+' conftest.er1 >conftest.err
39773   rm -f conftest.er1
39774   cat conftest.err >&5
39775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776   (exit $ac_status); } && {
39777          test -z "$ac_cxx_werror_flag" ||
39778          test ! -s conftest.err
39779        } && test -s conftest$ac_exeext &&
39780        $as_test_x conftest$ac_exeext; then
39781   wx_cv_func_cxa_demangle=yes
39782 else
39783   echo "$as_me: failed program was:" >&5
39784 sed 's/^/| /' conftest.$ac_ext >&5
39785
39786         wx_cv_func_cxa_demangle=no
39787
39788 fi
39789
39790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39791       conftest$ac_exeext conftest.$ac_ext
39792                 ac_ext=c
39793 ac_cpp='$CPP $CPPFLAGS'
39794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39797
39798
39799
39800 fi
39801 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39802 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39803
39804         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39805             cat >>confdefs.h <<\_ACEOF
39806 #define HAVE_CXA_DEMANGLE 1
39807 _ACEOF
39808
39809         fi
39810     fi
39811 fi
39812
39813 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39814     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39815 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39816     wxUSE_STACKWALKER=no
39817 fi
39818
39819
39820
39821
39822 for ac_func in mkstemp mktemp
39823 do
39824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39828   echo $ECHO_N "(cached) $ECHO_C" >&6
39829 else
39830   cat >conftest.$ac_ext <<_ACEOF
39831 /* confdefs.h.  */
39832 _ACEOF
39833 cat confdefs.h >>conftest.$ac_ext
39834 cat >>conftest.$ac_ext <<_ACEOF
39835 /* end confdefs.h.  */
39836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39838 #define $ac_func innocuous_$ac_func
39839
39840 /* System header to define __stub macros and hopefully few prototypes,
39841     which can conflict with char $ac_func (); below.
39842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39843     <limits.h> exists even on freestanding compilers.  */
39844
39845 #ifdef __STDC__
39846 # include <limits.h>
39847 #else
39848 # include <assert.h>
39849 #endif
39850
39851 #undef $ac_func
39852
39853 /* Override any GCC internal prototype to avoid an error.
39854    Use char because int might match the return type of a GCC
39855    builtin and then its argument prototype would still apply.  */
39856 #ifdef __cplusplus
39857 extern "C"
39858 #endif
39859 char $ac_func ();
39860 /* The GNU C library defines this for functions which it implements
39861     to always fail with ENOSYS.  Some functions are actually named
39862     something starting with __ and the normal name is an alias.  */
39863 #if defined __stub_$ac_func || defined __stub___$ac_func
39864 choke me
39865 #endif
39866
39867 int
39868 main ()
39869 {
39870 return $ac_func ();
39871   ;
39872   return 0;
39873 }
39874 _ACEOF
39875 rm -f conftest.$ac_objext conftest$ac_exeext
39876 if { (ac_try="$ac_link"
39877 case "(($ac_try" in
39878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39879   *) ac_try_echo=$ac_try;;
39880 esac
39881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39882   (eval "$ac_link") 2>conftest.er1
39883   ac_status=$?
39884   grep -v '^ *+' conftest.er1 >conftest.err
39885   rm -f conftest.er1
39886   cat conftest.err >&5
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); } && {
39889          test -z "$ac_c_werror_flag" ||
39890          test ! -s conftest.err
39891        } && test -s conftest$ac_exeext &&
39892        $as_test_x conftest$ac_exeext; then
39893   eval "$as_ac_var=yes"
39894 else
39895   echo "$as_me: failed program was:" >&5
39896 sed 's/^/| /' conftest.$ac_ext >&5
39897
39898         eval "$as_ac_var=no"
39899 fi
39900
39901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39902       conftest$ac_exeext conftest.$ac_ext
39903 fi
39904 ac_res=`eval echo '${'$as_ac_var'}'`
39905                { echo "$as_me:$LINENO: result: $ac_res" >&5
39906 echo "${ECHO_T}$ac_res" >&6; }
39907 if test `eval echo '${'$as_ac_var'}'` = yes; then
39908   cat >>confdefs.h <<_ACEOF
39909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39910 _ACEOF
39911  break
39912 fi
39913 done
39914
39915
39916 { echo "$as_me:$LINENO: checking for statfs" >&5
39917 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39918 if test "${wx_cv_func_statfs+set}" = set; then
39919   echo $ECHO_N "(cached) $ECHO_C" >&6
39920 else
39921   cat >conftest.$ac_ext <<_ACEOF
39922 /* confdefs.h.  */
39923 _ACEOF
39924 cat confdefs.h >>conftest.$ac_ext
39925 cat >>conftest.$ac_ext <<_ACEOF
39926 /* end confdefs.h.  */
39927
39928              #if defined(__BSD__)
39929              #include <sys/param.h>
39930              #include <sys/mount.h>
39931              #else
39932              #include <sys/vfs.h>
39933              #endif
39934
39935 int
39936 main ()
39937 {
39938
39939              long l;
39940              struct statfs fs;
39941              statfs("/", &fs);
39942              l = fs.f_bsize;
39943              l += fs.f_blocks;
39944              l += fs.f_bavail;
39945
39946   ;
39947   return 0;
39948 }
39949 _ACEOF
39950 rm -f conftest.$ac_objext
39951 if { (ac_try="$ac_compile"
39952 case "(($ac_try" in
39953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39954   *) ac_try_echo=$ac_try;;
39955 esac
39956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39957   (eval "$ac_compile") 2>conftest.er1
39958   ac_status=$?
39959   grep -v '^ *+' conftest.er1 >conftest.err
39960   rm -f conftest.er1
39961   cat conftest.err >&5
39962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39963   (exit $ac_status); } && {
39964          test -z "$ac_c_werror_flag" ||
39965          test ! -s conftest.err
39966        } && test -s conftest.$ac_objext; then
39967   wx_cv_func_statfs=yes
39968 else
39969   echo "$as_me: failed program was:" >&5
39970 sed 's/^/| /' conftest.$ac_ext >&5
39971
39972         wx_cv_func_statfs=no
39973
39974 fi
39975
39976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39977
39978 fi
39979 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39980 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39981
39982 if test "$wx_cv_func_statfs" = "yes"; then
39983         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39984 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39985 if test "${wx_cv_func_statfs_decl+set}" = set; then
39986   echo $ECHO_N "(cached) $ECHO_C" >&6
39987 else
39988   ac_ext=cpp
39989 ac_cpp='$CXXCPP $CPPFLAGS'
39990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39993
39994         cat >conftest.$ac_ext <<_ACEOF
39995 /* confdefs.h.  */
39996 _ACEOF
39997 cat confdefs.h >>conftest.$ac_ext
39998 cat >>conftest.$ac_ext <<_ACEOF
39999 /* end confdefs.h.  */
40000
40001                  #if defined(__BSD__)
40002                  #include <sys/param.h>
40003                  #include <sys/mount.h>
40004                  #else
40005                  #include <sys/vfs.h>
40006                  #endif
40007
40008 int
40009 main ()
40010 {
40011
40012                 struct statfs fs;
40013                 statfs("", &fs);
40014
40015   ;
40016   return 0;
40017 }
40018 _ACEOF
40019 rm -f conftest.$ac_objext
40020 if { (ac_try="$ac_compile"
40021 case "(($ac_try" in
40022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40023   *) ac_try_echo=$ac_try;;
40024 esac
40025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40026   (eval "$ac_compile") 2>conftest.er1
40027   ac_status=$?
40028   grep -v '^ *+' conftest.er1 >conftest.err
40029   rm -f conftest.er1
40030   cat conftest.err >&5
40031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032   (exit $ac_status); } && {
40033          test -z "$ac_cxx_werror_flag" ||
40034          test ! -s conftest.err
40035        } && test -s conftest.$ac_objext; then
40036   wx_cv_func_statfs_decl=yes
40037 else
40038   echo "$as_me: failed program was:" >&5
40039 sed 's/^/| /' conftest.$ac_ext >&5
40040
40041         wx_cv_func_statfs_decl=no
40042
40043 fi
40044
40045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40046         ac_ext=c
40047 ac_cpp='$CPP $CPPFLAGS'
40048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40051
40052
40053 fi
40054 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
40055 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
40056
40057     if test "$wx_cv_func_statfs_decl" = "yes"; then
40058         cat >>confdefs.h <<\_ACEOF
40059 #define HAVE_STATFS_DECL 1
40060 _ACEOF
40061
40062     fi
40063
40064     wx_cv_type_statvfs_t="struct statfs"
40065     cat >>confdefs.h <<\_ACEOF
40066 #define HAVE_STATFS 1
40067 _ACEOF
40068
40069 else
40070     { echo "$as_me:$LINENO: checking for statvfs" >&5
40071 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
40072 if test "${wx_cv_func_statvfs+set}" = set; then
40073   echo $ECHO_N "(cached) $ECHO_C" >&6
40074 else
40075   cat >conftest.$ac_ext <<_ACEOF
40076 /* confdefs.h.  */
40077 _ACEOF
40078 cat confdefs.h >>conftest.$ac_ext
40079 cat >>conftest.$ac_ext <<_ACEOF
40080 /* end confdefs.h.  */
40081
40082                 #include <stddef.h>
40083                 #include <sys/statvfs.h>
40084
40085 int
40086 main ()
40087 {
40088
40089                 statvfs("/", NULL);
40090
40091   ;
40092   return 0;
40093 }
40094 _ACEOF
40095 rm -f conftest.$ac_objext
40096 if { (ac_try="$ac_compile"
40097 case "(($ac_try" in
40098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40099   *) ac_try_echo=$ac_try;;
40100 esac
40101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40102   (eval "$ac_compile") 2>conftest.er1
40103   ac_status=$?
40104   grep -v '^ *+' conftest.er1 >conftest.err
40105   rm -f conftest.er1
40106   cat conftest.err >&5
40107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108   (exit $ac_status); } && {
40109          test -z "$ac_c_werror_flag" ||
40110          test ! -s conftest.err
40111        } && test -s conftest.$ac_objext; then
40112   wx_cv_func_statvfs=yes
40113 else
40114   echo "$as_me: failed program was:" >&5
40115 sed 's/^/| /' conftest.$ac_ext >&5
40116
40117         wx_cv_func_statvfs=no
40118
40119 fi
40120
40121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40122
40123 fi
40124 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
40125 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
40126
40127     if test "$wx_cv_func_statvfs" = "yes"; then
40128                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
40129 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
40130 if test "${wx_cv_type_statvfs_t+set}" = set; then
40131   echo $ECHO_N "(cached) $ECHO_C" >&6
40132 else
40133   ac_ext=cpp
40134 ac_cpp='$CXXCPP $CPPFLAGS'
40135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40138
40139             cat >conftest.$ac_ext <<_ACEOF
40140 /* confdefs.h.  */
40141 _ACEOF
40142 cat confdefs.h >>conftest.$ac_ext
40143 cat >>conftest.$ac_ext <<_ACEOF
40144 /* end confdefs.h.  */
40145
40146                     #include <sys/statvfs.h>
40147
40148 int
40149 main ()
40150 {
40151
40152                     long l;
40153                     statvfs_t fs;
40154                     statvfs("/", &fs);
40155                     l = fs.f_bsize;
40156                     l += fs.f_blocks;
40157                     l += fs.f_bavail;
40158
40159   ;
40160   return 0;
40161 }
40162 _ACEOF
40163 rm -f conftest.$ac_objext
40164 if { (ac_try="$ac_compile"
40165 case "(($ac_try" in
40166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40167   *) ac_try_echo=$ac_try;;
40168 esac
40169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40170   (eval "$ac_compile") 2>conftest.er1
40171   ac_status=$?
40172   grep -v '^ *+' conftest.er1 >conftest.err
40173   rm -f conftest.er1
40174   cat conftest.err >&5
40175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176   (exit $ac_status); } && {
40177          test -z "$ac_cxx_werror_flag" ||
40178          test ! -s conftest.err
40179        } && test -s conftest.$ac_objext; then
40180   wx_cv_type_statvfs_t=statvfs_t
40181 else
40182   echo "$as_me: failed program was:" >&5
40183 sed 's/^/| /' conftest.$ac_ext >&5
40184
40185
40186                     cat >conftest.$ac_ext <<_ACEOF
40187 /* confdefs.h.  */
40188 _ACEOF
40189 cat confdefs.h >>conftest.$ac_ext
40190 cat >>conftest.$ac_ext <<_ACEOF
40191 /* end confdefs.h.  */
40192
40193                             #include <sys/statvfs.h>
40194
40195 int
40196 main ()
40197 {
40198
40199                             long l;
40200                             struct statvfs fs;
40201                             statvfs("/", &fs);
40202                             l = fs.f_bsize;
40203                             l += fs.f_blocks;
40204                             l += fs.f_bavail;
40205
40206   ;
40207   return 0;
40208 }
40209 _ACEOF
40210 rm -f conftest.$ac_objext
40211 if { (ac_try="$ac_compile"
40212 case "(($ac_try" in
40213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40214   *) ac_try_echo=$ac_try;;
40215 esac
40216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40217   (eval "$ac_compile") 2>conftest.er1
40218   ac_status=$?
40219   grep -v '^ *+' conftest.er1 >conftest.err
40220   rm -f conftest.er1
40221   cat conftest.err >&5
40222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223   (exit $ac_status); } && {
40224          test -z "$ac_cxx_werror_flag" ||
40225          test ! -s conftest.err
40226        } && test -s conftest.$ac_objext; then
40227   wx_cv_type_statvfs_t="struct statvfs"
40228 else
40229   echo "$as_me: failed program was:" >&5
40230 sed 's/^/| /' conftest.$ac_ext >&5
40231
40232         wx_cv_type_statvfs_t="unknown"
40233
40234 fi
40235
40236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40237
40238
40239 fi
40240
40241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40242             ac_ext=c
40243 ac_cpp='$CPP $CPPFLAGS'
40244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40247
40248
40249 fi
40250 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
40251 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
40252
40253         if test "$wx_cv_type_statvfs_t" != "unknown"; then
40254             cat >>confdefs.h <<\_ACEOF
40255 #define HAVE_STATVFS 1
40256 _ACEOF
40257
40258         fi
40259     else
40260                 wx_cv_type_statvfs_t="unknown"
40261     fi
40262 fi
40263
40264 if test "$wx_cv_type_statvfs_t" != "unknown"; then
40265     cat >>confdefs.h <<_ACEOF
40266 #define WX_STATFS_T $wx_cv_type_statvfs_t
40267 _ACEOF
40268
40269 else
40270     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
40271 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
40272 fi
40273
40274 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
40275
40276
40277 for ac_func in fcntl flock
40278 do
40279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40283   echo $ECHO_N "(cached) $ECHO_C" >&6
40284 else
40285   cat >conftest.$ac_ext <<_ACEOF
40286 /* confdefs.h.  */
40287 _ACEOF
40288 cat confdefs.h >>conftest.$ac_ext
40289 cat >>conftest.$ac_ext <<_ACEOF
40290 /* end confdefs.h.  */
40291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40293 #define $ac_func innocuous_$ac_func
40294
40295 /* System header to define __stub macros and hopefully few prototypes,
40296     which can conflict with char $ac_func (); below.
40297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40298     <limits.h> exists even on freestanding compilers.  */
40299
40300 #ifdef __STDC__
40301 # include <limits.h>
40302 #else
40303 # include <assert.h>
40304 #endif
40305
40306 #undef $ac_func
40307
40308 /* Override any GCC internal prototype to avoid an error.
40309    Use char because int might match the return type of a GCC
40310    builtin and then its argument prototype would still apply.  */
40311 #ifdef __cplusplus
40312 extern "C"
40313 #endif
40314 char $ac_func ();
40315 /* The GNU C library defines this for functions which it implements
40316     to always fail with ENOSYS.  Some functions are actually named
40317     something starting with __ and the normal name is an alias.  */
40318 #if defined __stub_$ac_func || defined __stub___$ac_func
40319 choke me
40320 #endif
40321
40322 int
40323 main ()
40324 {
40325 return $ac_func ();
40326   ;
40327   return 0;
40328 }
40329 _ACEOF
40330 rm -f conftest.$ac_objext conftest$ac_exeext
40331 if { (ac_try="$ac_link"
40332 case "(($ac_try" in
40333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40334   *) ac_try_echo=$ac_try;;
40335 esac
40336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40337   (eval "$ac_link") 2>conftest.er1
40338   ac_status=$?
40339   grep -v '^ *+' conftest.er1 >conftest.err
40340   rm -f conftest.er1
40341   cat conftest.err >&5
40342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343   (exit $ac_status); } && {
40344          test -z "$ac_c_werror_flag" ||
40345          test ! -s conftest.err
40346        } && test -s conftest$ac_exeext &&
40347        $as_test_x conftest$ac_exeext; then
40348   eval "$as_ac_var=yes"
40349 else
40350   echo "$as_me: failed program was:" >&5
40351 sed 's/^/| /' conftest.$ac_ext >&5
40352
40353         eval "$as_ac_var=no"
40354 fi
40355
40356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40357       conftest$ac_exeext conftest.$ac_ext
40358 fi
40359 ac_res=`eval echo '${'$as_ac_var'}'`
40360                { echo "$as_me:$LINENO: result: $ac_res" >&5
40361 echo "${ECHO_T}$ac_res" >&6; }
40362 if test `eval echo '${'$as_ac_var'}'` = yes; then
40363   cat >>confdefs.h <<_ACEOF
40364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40365 _ACEOF
40366  break
40367 fi
40368 done
40369
40370
40371     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
40372         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
40373 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
40374         wxUSE_SNGLINST_CHECKER=no
40375     fi
40376 fi
40377
40378
40379 for ac_func in timegm
40380 do
40381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40385   echo $ECHO_N "(cached) $ECHO_C" >&6
40386 else
40387   cat >conftest.$ac_ext <<_ACEOF
40388 /* confdefs.h.  */
40389 _ACEOF
40390 cat confdefs.h >>conftest.$ac_ext
40391 cat >>conftest.$ac_ext <<_ACEOF
40392 /* end confdefs.h.  */
40393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40395 #define $ac_func innocuous_$ac_func
40396
40397 /* System header to define __stub macros and hopefully few prototypes,
40398     which can conflict with char $ac_func (); below.
40399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40400     <limits.h> exists even on freestanding compilers.  */
40401
40402 #ifdef __STDC__
40403 # include <limits.h>
40404 #else
40405 # include <assert.h>
40406 #endif
40407
40408 #undef $ac_func
40409
40410 /* Override any GCC internal prototype to avoid an error.
40411    Use char because int might match the return type of a GCC
40412    builtin and then its argument prototype would still apply.  */
40413 #ifdef __cplusplus
40414 extern "C"
40415 #endif
40416 char $ac_func ();
40417 /* The GNU C library defines this for functions which it implements
40418     to always fail with ENOSYS.  Some functions are actually named
40419     something starting with __ and the normal name is an alias.  */
40420 #if defined __stub_$ac_func || defined __stub___$ac_func
40421 choke me
40422 #endif
40423
40424 int
40425 main ()
40426 {
40427 return $ac_func ();
40428   ;
40429   return 0;
40430 }
40431 _ACEOF
40432 rm -f conftest.$ac_objext conftest$ac_exeext
40433 if { (ac_try="$ac_link"
40434 case "(($ac_try" in
40435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40436   *) ac_try_echo=$ac_try;;
40437 esac
40438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40439   (eval "$ac_link") 2>conftest.er1
40440   ac_status=$?
40441   grep -v '^ *+' conftest.er1 >conftest.err
40442   rm -f conftest.er1
40443   cat conftest.err >&5
40444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445   (exit $ac_status); } && {
40446          test -z "$ac_c_werror_flag" ||
40447          test ! -s conftest.err
40448        } && test -s conftest$ac_exeext &&
40449        $as_test_x conftest$ac_exeext; then
40450   eval "$as_ac_var=yes"
40451 else
40452   echo "$as_me: failed program was:" >&5
40453 sed 's/^/| /' conftest.$ac_ext >&5
40454
40455         eval "$as_ac_var=no"
40456 fi
40457
40458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40459       conftest$ac_exeext conftest.$ac_ext
40460 fi
40461 ac_res=`eval echo '${'$as_ac_var'}'`
40462                { echo "$as_me:$LINENO: result: $ac_res" >&5
40463 echo "${ECHO_T}$ac_res" >&6; }
40464 if test `eval echo '${'$as_ac_var'}'` = yes; then
40465   cat >>confdefs.h <<_ACEOF
40466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40467 _ACEOF
40468
40469 fi
40470 done
40471
40472
40473
40474
40475 for ac_func in setenv putenv
40476 do
40477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40481   echo $ECHO_N "(cached) $ECHO_C" >&6
40482 else
40483   cat >conftest.$ac_ext <<_ACEOF
40484 /* confdefs.h.  */
40485 _ACEOF
40486 cat confdefs.h >>conftest.$ac_ext
40487 cat >>conftest.$ac_ext <<_ACEOF
40488 /* end confdefs.h.  */
40489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40491 #define $ac_func innocuous_$ac_func
40492
40493 /* System header to define __stub macros and hopefully few prototypes,
40494     which can conflict with char $ac_func (); below.
40495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40496     <limits.h> exists even on freestanding compilers.  */
40497
40498 #ifdef __STDC__
40499 # include <limits.h>
40500 #else
40501 # include <assert.h>
40502 #endif
40503
40504 #undef $ac_func
40505
40506 /* Override any GCC internal prototype to avoid an error.
40507    Use char because int might match the return type of a GCC
40508    builtin and then its argument prototype would still apply.  */
40509 #ifdef __cplusplus
40510 extern "C"
40511 #endif
40512 char $ac_func ();
40513 /* The GNU C library defines this for functions which it implements
40514     to always fail with ENOSYS.  Some functions are actually named
40515     something starting with __ and the normal name is an alias.  */
40516 #if defined __stub_$ac_func || defined __stub___$ac_func
40517 choke me
40518 #endif
40519
40520 int
40521 main ()
40522 {
40523 return $ac_func ();
40524   ;
40525   return 0;
40526 }
40527 _ACEOF
40528 rm -f conftest.$ac_objext conftest$ac_exeext
40529 if { (ac_try="$ac_link"
40530 case "(($ac_try" in
40531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40532   *) ac_try_echo=$ac_try;;
40533 esac
40534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40535   (eval "$ac_link") 2>conftest.er1
40536   ac_status=$?
40537   grep -v '^ *+' conftest.er1 >conftest.err
40538   rm -f conftest.er1
40539   cat conftest.err >&5
40540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40541   (exit $ac_status); } && {
40542          test -z "$ac_c_werror_flag" ||
40543          test ! -s conftest.err
40544        } && test -s conftest$ac_exeext &&
40545        $as_test_x conftest$ac_exeext; then
40546   eval "$as_ac_var=yes"
40547 else
40548   echo "$as_me: failed program was:" >&5
40549 sed 's/^/| /' conftest.$ac_ext >&5
40550
40551         eval "$as_ac_var=no"
40552 fi
40553
40554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40555       conftest$ac_exeext conftest.$ac_ext
40556 fi
40557 ac_res=`eval echo '${'$as_ac_var'}'`
40558                { echo "$as_me:$LINENO: result: $ac_res" >&5
40559 echo "${ECHO_T}$ac_res" >&6; }
40560 if test `eval echo '${'$as_ac_var'}'` = yes; then
40561   cat >>confdefs.h <<_ACEOF
40562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40563 _ACEOF
40564  break
40565 fi
40566 done
40567
40568
40569 HAVE_SOME_SLEEP_FUNC=0
40570 if test "$USE_BEOS" = 1; then
40571             cat >>confdefs.h <<\_ACEOF
40572 #define HAVE_SLEEP 1
40573 _ACEOF
40574
40575     HAVE_SOME_SLEEP_FUNC=1
40576 fi
40577
40578 if test "$USE_DARWIN" = 1; then
40579             cat >>confdefs.h <<\_ACEOF
40580 #define HAVE_USLEEP 1
40581 _ACEOF
40582
40583     HAVE_SOME_SLEEP_FUNC=1
40584 fi
40585
40586 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40587         POSIX4_LINK=
40588
40589 for ac_func in nanosleep
40590 do
40591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40595   echo $ECHO_N "(cached) $ECHO_C" >&6
40596 else
40597   cat >conftest.$ac_ext <<_ACEOF
40598 /* confdefs.h.  */
40599 _ACEOF
40600 cat confdefs.h >>conftest.$ac_ext
40601 cat >>conftest.$ac_ext <<_ACEOF
40602 /* end confdefs.h.  */
40603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40605 #define $ac_func innocuous_$ac_func
40606
40607 /* System header to define __stub macros and hopefully few prototypes,
40608     which can conflict with char $ac_func (); below.
40609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40610     <limits.h> exists even on freestanding compilers.  */
40611
40612 #ifdef __STDC__
40613 # include <limits.h>
40614 #else
40615 # include <assert.h>
40616 #endif
40617
40618 #undef $ac_func
40619
40620 /* Override any GCC internal prototype to avoid an error.
40621    Use char because int might match the return type of a GCC
40622    builtin and then its argument prototype would still apply.  */
40623 #ifdef __cplusplus
40624 extern "C"
40625 #endif
40626 char $ac_func ();
40627 /* The GNU C library defines this for functions which it implements
40628     to always fail with ENOSYS.  Some functions are actually named
40629     something starting with __ and the normal name is an alias.  */
40630 #if defined __stub_$ac_func || defined __stub___$ac_func
40631 choke me
40632 #endif
40633
40634 int
40635 main ()
40636 {
40637 return $ac_func ();
40638   ;
40639   return 0;
40640 }
40641 _ACEOF
40642 rm -f conftest.$ac_objext conftest$ac_exeext
40643 if { (ac_try="$ac_link"
40644 case "(($ac_try" in
40645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40646   *) ac_try_echo=$ac_try;;
40647 esac
40648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40649   (eval "$ac_link") 2>conftest.er1
40650   ac_status=$?
40651   grep -v '^ *+' conftest.er1 >conftest.err
40652   rm -f conftest.er1
40653   cat conftest.err >&5
40654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655   (exit $ac_status); } && {
40656          test -z "$ac_c_werror_flag" ||
40657          test ! -s conftest.err
40658        } && test -s conftest$ac_exeext &&
40659        $as_test_x conftest$ac_exeext; then
40660   eval "$as_ac_var=yes"
40661 else
40662   echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40664
40665         eval "$as_ac_var=no"
40666 fi
40667
40668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40669       conftest$ac_exeext conftest.$ac_ext
40670 fi
40671 ac_res=`eval echo '${'$as_ac_var'}'`
40672                { echo "$as_me:$LINENO: result: $ac_res" >&5
40673 echo "${ECHO_T}$ac_res" >&6; }
40674 if test `eval echo '${'$as_ac_var'}'` = yes; then
40675   cat >>confdefs.h <<_ACEOF
40676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40677 _ACEOF
40678  cat >>confdefs.h <<\_ACEOF
40679 #define HAVE_NANOSLEEP 1
40680 _ACEOF
40681
40682 else
40683
40684             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40685 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
40686 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40687   echo $ECHO_N "(cached) $ECHO_C" >&6
40688 else
40689   ac_check_lib_save_LIBS=$LIBS
40690 LIBS="-lposix4  $LIBS"
40691 cat >conftest.$ac_ext <<_ACEOF
40692 /* confdefs.h.  */
40693 _ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h.  */
40697
40698 /* Override any GCC internal prototype to avoid an error.
40699    Use char because int might match the return type of a GCC
40700    builtin and then its argument prototype would still apply.  */
40701 #ifdef __cplusplus
40702 extern "C"
40703 #endif
40704 char nanosleep ();
40705 int
40706 main ()
40707 {
40708 return nanosleep ();
40709   ;
40710   return 0;
40711 }
40712 _ACEOF
40713 rm -f conftest.$ac_objext conftest$ac_exeext
40714 if { (ac_try="$ac_link"
40715 case "(($ac_try" in
40716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40717   *) ac_try_echo=$ac_try;;
40718 esac
40719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40720   (eval "$ac_link") 2>conftest.er1
40721   ac_status=$?
40722   grep -v '^ *+' conftest.er1 >conftest.err
40723   rm -f conftest.er1
40724   cat conftest.err >&5
40725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726   (exit $ac_status); } && {
40727          test -z "$ac_c_werror_flag" ||
40728          test ! -s conftest.err
40729        } && test -s conftest$ac_exeext &&
40730        $as_test_x conftest$ac_exeext; then
40731   ac_cv_lib_posix4_nanosleep=yes
40732 else
40733   echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40735
40736         ac_cv_lib_posix4_nanosleep=no
40737 fi
40738
40739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40740       conftest$ac_exeext conftest.$ac_ext
40741 LIBS=$ac_check_lib_save_LIBS
40742 fi
40743 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40744 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40745 if test $ac_cv_lib_posix4_nanosleep = yes; then
40746
40747                     cat >>confdefs.h <<\_ACEOF
40748 #define HAVE_NANOSLEEP 1
40749 _ACEOF
40750
40751                     POSIX4_LINK=" -lposix4"
40752
40753 else
40754
40755
40756   for wx_func in usleep
40757   do
40758     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40759 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40760 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40761   echo $ECHO_N "(cached) $ECHO_C" >&6
40762 else
40763
40764         cat >conftest.$ac_ext <<_ACEOF
40765
40766             /* confdefs.h.  */
40767 _ACEOF
40768 cat confdefs.h >>conftest.$ac_ext
40769 cat >>conftest.$ac_ext <<_ACEOF
40770 /* end confdefs.h.  */
40771
40772
40773                 $ac_includes_default
40774
40775 int
40776 main ()
40777 {
40778
40779                 #ifndef $wx_func
40780                   &$wx_func;
40781                 #endif
40782
40783
40784   ;
40785   return 0;
40786 }
40787
40788 _ACEOF
40789 rm -f conftest.$ac_objext conftest$ac_exeext
40790 if { (ac_try="$ac_link"
40791 case "(($ac_try" in
40792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40793   *) ac_try_echo=$ac_try;;
40794 esac
40795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40796   (eval "$ac_link") 2>conftest.er1
40797   ac_status=$?
40798   grep -v '^ *+' conftest.er1 >conftest.err
40799   rm -f conftest.er1
40800   cat conftest.err >&5
40801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802   (exit $ac_status); } && {
40803          test -z "$ac_c_werror_flag" ||
40804          test ! -s conftest.err
40805        } && test -s conftest$ac_exeext &&
40806        $as_test_x conftest$ac_exeext; then
40807   eval wx_cv_func_$wx_func=yes
40808 else
40809   echo "$as_me: failed program was:" >&5
40810 sed 's/^/| /' conftest.$ac_ext >&5
40811
40812         eval wx_cv_func_$wx_func=no
40813 fi
40814
40815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40816       conftest$ac_exeext conftest.$ac_ext
40817
40818 fi
40819 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40820                { echo "$as_me:$LINENO: result: $ac_res" >&5
40821 echo "${ECHO_T}$ac_res" >&6; }
40822
40823     if eval test \$wx_cv_func_$wx_func = yes
40824     then
40825       cat >>confdefs.h <<_ACEOF
40826 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40827 _ACEOF
40828
40829
40830     else
40831       :
40832       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40833 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40834
40835     fi
40836   done
40837
40838
40839
40840 fi
40841
40842
40843
40844 fi
40845 done
40846
40847 fi
40848
40849
40850   for wx_func in uname
40851   do
40852     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40853 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40854 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40855   echo $ECHO_N "(cached) $ECHO_C" >&6
40856 else
40857
40858         cat >conftest.$ac_ext <<_ACEOF
40859
40860             /* confdefs.h.  */
40861 _ACEOF
40862 cat confdefs.h >>conftest.$ac_ext
40863 cat >>conftest.$ac_ext <<_ACEOF
40864 /* end confdefs.h.  */
40865
40866                 #include <sys/utsname.h>
40867                 $ac_includes_default
40868
40869 int
40870 main ()
40871 {
40872
40873                 #ifndef $wx_func
40874                   &$wx_func;
40875                 #endif
40876
40877
40878   ;
40879   return 0;
40880 }
40881
40882 _ACEOF
40883 rm -f conftest.$ac_objext conftest$ac_exeext
40884 if { (ac_try="$ac_link"
40885 case "(($ac_try" in
40886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40887   *) ac_try_echo=$ac_try;;
40888 esac
40889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40890   (eval "$ac_link") 2>conftest.er1
40891   ac_status=$?
40892   grep -v '^ *+' conftest.er1 >conftest.err
40893   rm -f conftest.er1
40894   cat conftest.err >&5
40895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896   (exit $ac_status); } && {
40897          test -z "$ac_c_werror_flag" ||
40898          test ! -s conftest.err
40899        } && test -s conftest$ac_exeext &&
40900        $as_test_x conftest$ac_exeext; then
40901   eval wx_cv_func_$wx_func=yes
40902 else
40903   echo "$as_me: failed program was:" >&5
40904 sed 's/^/| /' conftest.$ac_ext >&5
40905
40906         eval wx_cv_func_$wx_func=no
40907 fi
40908
40909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40910       conftest$ac_exeext conftest.$ac_ext
40911
40912 fi
40913 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40914                { echo "$as_me:$LINENO: result: $ac_res" >&5
40915 echo "${ECHO_T}$ac_res" >&6; }
40916
40917     if eval test \$wx_cv_func_$wx_func = yes
40918     then
40919       cat >>confdefs.h <<_ACEOF
40920 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40921 _ACEOF
40922
40923
40924     else
40925       :
40926
40927     fi
40928   done
40929
40930 if test "$wx_cv_func_uname" != yes; then
40931
40932   for wx_func in gethostname
40933   do
40934     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40935 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40936 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40937   echo $ECHO_N "(cached) $ECHO_C" >&6
40938 else
40939
40940         cat >conftest.$ac_ext <<_ACEOF
40941
40942             /* confdefs.h.  */
40943 _ACEOF
40944 cat confdefs.h >>conftest.$ac_ext
40945 cat >>conftest.$ac_ext <<_ACEOF
40946 /* end confdefs.h.  */
40947
40948
40949                 $ac_includes_default
40950
40951 int
40952 main ()
40953 {
40954
40955                 #ifndef $wx_func
40956                   &$wx_func;
40957                 #endif
40958
40959
40960   ;
40961   return 0;
40962 }
40963
40964 _ACEOF
40965 rm -f conftest.$ac_objext conftest$ac_exeext
40966 if { (ac_try="$ac_link"
40967 case "(($ac_try" in
40968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40969   *) ac_try_echo=$ac_try;;
40970 esac
40971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40972   (eval "$ac_link") 2>conftest.er1
40973   ac_status=$?
40974   grep -v '^ *+' conftest.er1 >conftest.err
40975   rm -f conftest.er1
40976   cat conftest.err >&5
40977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978   (exit $ac_status); } && {
40979          test -z "$ac_c_werror_flag" ||
40980          test ! -s conftest.err
40981        } && test -s conftest$ac_exeext &&
40982        $as_test_x conftest$ac_exeext; then
40983   eval wx_cv_func_$wx_func=yes
40984 else
40985   echo "$as_me: failed program was:" >&5
40986 sed 's/^/| /' conftest.$ac_ext >&5
40987
40988         eval wx_cv_func_$wx_func=no
40989 fi
40990
40991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40992       conftest$ac_exeext conftest.$ac_ext
40993
40994 fi
40995 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40996                { echo "$as_me:$LINENO: result: $ac_res" >&5
40997 echo "${ECHO_T}$ac_res" >&6; }
40998
40999     if eval test \$wx_cv_func_$wx_func = yes
41000     then
41001       cat >>confdefs.h <<_ACEOF
41002 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41003 _ACEOF
41004
41005
41006     else
41007       :
41008
41009     fi
41010   done
41011
41012 fi
41013
41014
41015   for wx_func in strtok_r
41016   do
41017     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41018 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41019 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41020   echo $ECHO_N "(cached) $ECHO_C" >&6
41021 else
41022
41023         cat >conftest.$ac_ext <<_ACEOF
41024
41025             /* confdefs.h.  */
41026 _ACEOF
41027 cat confdefs.h >>conftest.$ac_ext
41028 cat >>conftest.$ac_ext <<_ACEOF
41029 /* end confdefs.h.  */
41030
41031                 #define _REENTRANT
41032                 $ac_includes_default
41033
41034 int
41035 main ()
41036 {
41037
41038                 #ifndef $wx_func
41039                   &$wx_func;
41040                 #endif
41041
41042
41043   ;
41044   return 0;
41045 }
41046
41047 _ACEOF
41048 rm -f conftest.$ac_objext conftest$ac_exeext
41049 if { (ac_try="$ac_link"
41050 case "(($ac_try" in
41051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41052   *) ac_try_echo=$ac_try;;
41053 esac
41054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41055   (eval "$ac_link") 2>conftest.er1
41056   ac_status=$?
41057   grep -v '^ *+' conftest.er1 >conftest.err
41058   rm -f conftest.er1
41059   cat conftest.err >&5
41060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061   (exit $ac_status); } && {
41062          test -z "$ac_c_werror_flag" ||
41063          test ! -s conftest.err
41064        } && test -s conftest$ac_exeext &&
41065        $as_test_x conftest$ac_exeext; then
41066   eval wx_cv_func_$wx_func=yes
41067 else
41068   echo "$as_me: failed program was:" >&5
41069 sed 's/^/| /' conftest.$ac_ext >&5
41070
41071         eval wx_cv_func_$wx_func=no
41072 fi
41073
41074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41075       conftest$ac_exeext conftest.$ac_ext
41076
41077 fi
41078 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41079                { echo "$as_me:$LINENO: result: $ac_res" >&5
41080 echo "${ECHO_T}$ac_res" >&6; }
41081
41082     if eval test \$wx_cv_func_$wx_func = yes
41083     then
41084       cat >>confdefs.h <<_ACEOF
41085 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41086 _ACEOF
41087
41088
41089     else
41090       :
41091
41092     fi
41093   done
41094
41095
41096 INET_LINK=
41097
41098 for ac_func in inet_addr
41099 do
41100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41104   echo $ECHO_N "(cached) $ECHO_C" >&6
41105 else
41106   cat >conftest.$ac_ext <<_ACEOF
41107 /* confdefs.h.  */
41108 _ACEOF
41109 cat confdefs.h >>conftest.$ac_ext
41110 cat >>conftest.$ac_ext <<_ACEOF
41111 /* end confdefs.h.  */
41112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41114 #define $ac_func innocuous_$ac_func
41115
41116 /* System header to define __stub macros and hopefully few prototypes,
41117     which can conflict with char $ac_func (); below.
41118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41119     <limits.h> exists even on freestanding compilers.  */
41120
41121 #ifdef __STDC__
41122 # include <limits.h>
41123 #else
41124 # include <assert.h>
41125 #endif
41126
41127 #undef $ac_func
41128
41129 /* Override any GCC internal prototype to avoid an error.
41130    Use char because int might match the return type of a GCC
41131    builtin and then its argument prototype would still apply.  */
41132 #ifdef __cplusplus
41133 extern "C"
41134 #endif
41135 char $ac_func ();
41136 /* The GNU C library defines this for functions which it implements
41137     to always fail with ENOSYS.  Some functions are actually named
41138     something starting with __ and the normal name is an alias.  */
41139 #if defined __stub_$ac_func || defined __stub___$ac_func
41140 choke me
41141 #endif
41142
41143 int
41144 main ()
41145 {
41146 return $ac_func ();
41147   ;
41148   return 0;
41149 }
41150 _ACEOF
41151 rm -f conftest.$ac_objext conftest$ac_exeext
41152 if { (ac_try="$ac_link"
41153 case "(($ac_try" in
41154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41155   *) ac_try_echo=$ac_try;;
41156 esac
41157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41158   (eval "$ac_link") 2>conftest.er1
41159   ac_status=$?
41160   grep -v '^ *+' conftest.er1 >conftest.err
41161   rm -f conftest.er1
41162   cat conftest.err >&5
41163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164   (exit $ac_status); } && {
41165          test -z "$ac_c_werror_flag" ||
41166          test ! -s conftest.err
41167        } && test -s conftest$ac_exeext &&
41168        $as_test_x conftest$ac_exeext; then
41169   eval "$as_ac_var=yes"
41170 else
41171   echo "$as_me: failed program was:" >&5
41172 sed 's/^/| /' conftest.$ac_ext >&5
41173
41174         eval "$as_ac_var=no"
41175 fi
41176
41177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41178       conftest$ac_exeext conftest.$ac_ext
41179 fi
41180 ac_res=`eval echo '${'$as_ac_var'}'`
41181                { echo "$as_me:$LINENO: result: $ac_res" >&5
41182 echo "${ECHO_T}$ac_res" >&6; }
41183 if test `eval echo '${'$as_ac_var'}'` = yes; then
41184   cat >>confdefs.h <<_ACEOF
41185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41186 _ACEOF
41187  cat >>confdefs.h <<\_ACEOF
41188 #define HAVE_INET_ADDR 1
41189 _ACEOF
41190
41191 else
41192
41193         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
41194 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
41195 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
41196   echo $ECHO_N "(cached) $ECHO_C" >&6
41197 else
41198   ac_check_lib_save_LIBS=$LIBS
41199 LIBS="-lnsl  $LIBS"
41200 cat >conftest.$ac_ext <<_ACEOF
41201 /* confdefs.h.  */
41202 _ACEOF
41203 cat confdefs.h >>conftest.$ac_ext
41204 cat >>conftest.$ac_ext <<_ACEOF
41205 /* end confdefs.h.  */
41206
41207 /* Override any GCC internal prototype to avoid an error.
41208    Use char because int might match the return type of a GCC
41209    builtin and then its argument prototype would still apply.  */
41210 #ifdef __cplusplus
41211 extern "C"
41212 #endif
41213 char inet_addr ();
41214 int
41215 main ()
41216 {
41217 return inet_addr ();
41218   ;
41219   return 0;
41220 }
41221 _ACEOF
41222 rm -f conftest.$ac_objext conftest$ac_exeext
41223 if { (ac_try="$ac_link"
41224 case "(($ac_try" in
41225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41226   *) ac_try_echo=$ac_try;;
41227 esac
41228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41229   (eval "$ac_link") 2>conftest.er1
41230   ac_status=$?
41231   grep -v '^ *+' conftest.er1 >conftest.err
41232   rm -f conftest.er1
41233   cat conftest.err >&5
41234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41235   (exit $ac_status); } && {
41236          test -z "$ac_c_werror_flag" ||
41237          test ! -s conftest.err
41238        } && test -s conftest$ac_exeext &&
41239        $as_test_x conftest$ac_exeext; then
41240   ac_cv_lib_nsl_inet_addr=yes
41241 else
41242   echo "$as_me: failed program was:" >&5
41243 sed 's/^/| /' conftest.$ac_ext >&5
41244
41245         ac_cv_lib_nsl_inet_addr=no
41246 fi
41247
41248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41249       conftest$ac_exeext conftest.$ac_ext
41250 LIBS=$ac_check_lib_save_LIBS
41251 fi
41252 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
41253 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
41254 if test $ac_cv_lib_nsl_inet_addr = yes; then
41255   INET_LINK="nsl"
41256 else
41257
41258                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
41259 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
41260 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
41261   echo $ECHO_N "(cached) $ECHO_C" >&6
41262 else
41263   ac_check_lib_save_LIBS=$LIBS
41264 LIBS="-lresolv  $LIBS"
41265 cat >conftest.$ac_ext <<_ACEOF
41266 /* confdefs.h.  */
41267 _ACEOF
41268 cat confdefs.h >>conftest.$ac_ext
41269 cat >>conftest.$ac_ext <<_ACEOF
41270 /* end confdefs.h.  */
41271
41272 /* Override any GCC internal prototype to avoid an error.
41273    Use char because int might match the return type of a GCC
41274    builtin and then its argument prototype would still apply.  */
41275 #ifdef __cplusplus
41276 extern "C"
41277 #endif
41278 char inet_addr ();
41279 int
41280 main ()
41281 {
41282 return inet_addr ();
41283   ;
41284   return 0;
41285 }
41286 _ACEOF
41287 rm -f conftest.$ac_objext conftest$ac_exeext
41288 if { (ac_try="$ac_link"
41289 case "(($ac_try" in
41290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41291   *) ac_try_echo=$ac_try;;
41292 esac
41293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41294   (eval "$ac_link") 2>conftest.er1
41295   ac_status=$?
41296   grep -v '^ *+' conftest.er1 >conftest.err
41297   rm -f conftest.er1
41298   cat conftest.err >&5
41299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41300   (exit $ac_status); } && {
41301          test -z "$ac_c_werror_flag" ||
41302          test ! -s conftest.err
41303        } && test -s conftest$ac_exeext &&
41304        $as_test_x conftest$ac_exeext; then
41305   ac_cv_lib_resolv_inet_addr=yes
41306 else
41307   echo "$as_me: failed program was:" >&5
41308 sed 's/^/| /' conftest.$ac_ext >&5
41309
41310         ac_cv_lib_resolv_inet_addr=no
41311 fi
41312
41313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41314       conftest$ac_exeext conftest.$ac_ext
41315 LIBS=$ac_check_lib_save_LIBS
41316 fi
41317 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
41318 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
41319 if test $ac_cv_lib_resolv_inet_addr = yes; then
41320   INET_LINK="resolv"
41321 else
41322
41323                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
41324 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
41325 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
41326   echo $ECHO_N "(cached) $ECHO_C" >&6
41327 else
41328   ac_check_lib_save_LIBS=$LIBS
41329 LIBS="-lsocket  $LIBS"
41330 cat >conftest.$ac_ext <<_ACEOF
41331 /* confdefs.h.  */
41332 _ACEOF
41333 cat confdefs.h >>conftest.$ac_ext
41334 cat >>conftest.$ac_ext <<_ACEOF
41335 /* end confdefs.h.  */
41336
41337 /* Override any GCC internal prototype to avoid an error.
41338    Use char because int might match the return type of a GCC
41339    builtin and then its argument prototype would still apply.  */
41340 #ifdef __cplusplus
41341 extern "C"
41342 #endif
41343 char inet_addr ();
41344 int
41345 main ()
41346 {
41347 return inet_addr ();
41348   ;
41349   return 0;
41350 }
41351 _ACEOF
41352 rm -f conftest.$ac_objext conftest$ac_exeext
41353 if { (ac_try="$ac_link"
41354 case "(($ac_try" in
41355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41356   *) ac_try_echo=$ac_try;;
41357 esac
41358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41359   (eval "$ac_link") 2>conftest.er1
41360   ac_status=$?
41361   grep -v '^ *+' conftest.er1 >conftest.err
41362   rm -f conftest.er1
41363   cat conftest.err >&5
41364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365   (exit $ac_status); } && {
41366          test -z "$ac_c_werror_flag" ||
41367          test ! -s conftest.err
41368        } && test -s conftest$ac_exeext &&
41369        $as_test_x conftest$ac_exeext; then
41370   ac_cv_lib_socket_inet_addr=yes
41371 else
41372   echo "$as_me: failed program was:" >&5
41373 sed 's/^/| /' conftest.$ac_ext >&5
41374
41375         ac_cv_lib_socket_inet_addr=no
41376 fi
41377
41378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41379       conftest$ac_exeext conftest.$ac_ext
41380 LIBS=$ac_check_lib_save_LIBS
41381 fi
41382 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
41383 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
41384 if test $ac_cv_lib_socket_inet_addr = yes; then
41385   INET_LINK="socket"
41386
41387 fi
41388
41389
41390
41391 fi
41392
41393
41394
41395 fi
41396
41397
41398
41399 fi
41400 done
41401
41402
41403
41404 for ac_func in inet_aton
41405 do
41406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41410   echo $ECHO_N "(cached) $ECHO_C" >&6
41411 else
41412   cat >conftest.$ac_ext <<_ACEOF
41413 /* confdefs.h.  */
41414 _ACEOF
41415 cat confdefs.h >>conftest.$ac_ext
41416 cat >>conftest.$ac_ext <<_ACEOF
41417 /* end confdefs.h.  */
41418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41420 #define $ac_func innocuous_$ac_func
41421
41422 /* System header to define __stub macros and hopefully few prototypes,
41423     which can conflict with char $ac_func (); below.
41424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41425     <limits.h> exists even on freestanding compilers.  */
41426
41427 #ifdef __STDC__
41428 # include <limits.h>
41429 #else
41430 # include <assert.h>
41431 #endif
41432
41433 #undef $ac_func
41434
41435 /* Override any GCC internal prototype to avoid an error.
41436    Use char because int might match the return type of a GCC
41437    builtin and then its argument prototype would still apply.  */
41438 #ifdef __cplusplus
41439 extern "C"
41440 #endif
41441 char $ac_func ();
41442 /* The GNU C library defines this for functions which it implements
41443     to always fail with ENOSYS.  Some functions are actually named
41444     something starting with __ and the normal name is an alias.  */
41445 #if defined __stub_$ac_func || defined __stub___$ac_func
41446 choke me
41447 #endif
41448
41449 int
41450 main ()
41451 {
41452 return $ac_func ();
41453   ;
41454   return 0;
41455 }
41456 _ACEOF
41457 rm -f conftest.$ac_objext conftest$ac_exeext
41458 if { (ac_try="$ac_link"
41459 case "(($ac_try" in
41460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41461   *) ac_try_echo=$ac_try;;
41462 esac
41463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41464   (eval "$ac_link") 2>conftest.er1
41465   ac_status=$?
41466   grep -v '^ *+' conftest.er1 >conftest.err
41467   rm -f conftest.er1
41468   cat conftest.err >&5
41469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470   (exit $ac_status); } && {
41471          test -z "$ac_c_werror_flag" ||
41472          test ! -s conftest.err
41473        } && test -s conftest$ac_exeext &&
41474        $as_test_x conftest$ac_exeext; then
41475   eval "$as_ac_var=yes"
41476 else
41477   echo "$as_me: failed program was:" >&5
41478 sed 's/^/| /' conftest.$ac_ext >&5
41479
41480         eval "$as_ac_var=no"
41481 fi
41482
41483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41484       conftest$ac_exeext conftest.$ac_ext
41485 fi
41486 ac_res=`eval echo '${'$as_ac_var'}'`
41487                { echo "$as_me:$LINENO: result: $ac_res" >&5
41488 echo "${ECHO_T}$ac_res" >&6; }
41489 if test `eval echo '${'$as_ac_var'}'` = yes; then
41490   cat >>confdefs.h <<_ACEOF
41491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41492 _ACEOF
41493  cat >>confdefs.h <<\_ACEOF
41494 #define HAVE_INET_ATON 1
41495 _ACEOF
41496
41497 else
41498
41499                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
41500 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
41501 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
41502 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41503   echo $ECHO_N "(cached) $ECHO_C" >&6
41504 else
41505   ac_check_lib_save_LIBS=$LIBS
41506 LIBS="-l$INET_LINK  $LIBS"
41507 cat >conftest.$ac_ext <<_ACEOF
41508 /* confdefs.h.  */
41509 _ACEOF
41510 cat confdefs.h >>conftest.$ac_ext
41511 cat >>conftest.$ac_ext <<_ACEOF
41512 /* end confdefs.h.  */
41513
41514 /* Override any GCC internal prototype to avoid an error.
41515    Use char because int might match the return type of a GCC
41516    builtin and then its argument prototype would still apply.  */
41517 #ifdef __cplusplus
41518 extern "C"
41519 #endif
41520 char inet_aton ();
41521 int
41522 main ()
41523 {
41524 return inet_aton ();
41525   ;
41526   return 0;
41527 }
41528 _ACEOF
41529 rm -f conftest.$ac_objext conftest$ac_exeext
41530 if { (ac_try="$ac_link"
41531 case "(($ac_try" in
41532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41533   *) ac_try_echo=$ac_try;;
41534 esac
41535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41536   (eval "$ac_link") 2>conftest.er1
41537   ac_status=$?
41538   grep -v '^ *+' conftest.er1 >conftest.err
41539   rm -f conftest.er1
41540   cat conftest.err >&5
41541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542   (exit $ac_status); } && {
41543          test -z "$ac_c_werror_flag" ||
41544          test ! -s conftest.err
41545        } && test -s conftest$ac_exeext &&
41546        $as_test_x conftest$ac_exeext; then
41547   eval "$as_ac_Lib=yes"
41548 else
41549   echo "$as_me: failed program was:" >&5
41550 sed 's/^/| /' conftest.$ac_ext >&5
41551
41552         eval "$as_ac_Lib=no"
41553 fi
41554
41555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41556       conftest$ac_exeext conftest.$ac_ext
41557 LIBS=$ac_check_lib_save_LIBS
41558 fi
41559 ac_res=`eval echo '${'$as_ac_Lib'}'`
41560                { echo "$as_me:$LINENO: result: $ac_res" >&5
41561 echo "${ECHO_T}$ac_res" >&6; }
41562 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41563   cat >>confdefs.h <<\_ACEOF
41564 #define HAVE_INET_ATON 1
41565 _ACEOF
41566
41567 fi
41568
41569
41570 fi
41571 done
41572
41573
41574 if test "x$INET_LINK" != "x"; then
41575     cat >>confdefs.h <<\_ACEOF
41576 #define HAVE_INET_ADDR 1
41577 _ACEOF
41578
41579     INET_LINK=" -l$INET_LINK"
41580 fi
41581
41582
41583   for wx_func in fdopen
41584   do
41585     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41586 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41587 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41588   echo $ECHO_N "(cached) $ECHO_C" >&6
41589 else
41590
41591         cat >conftest.$ac_ext <<_ACEOF
41592
41593             /* confdefs.h.  */
41594 _ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h.  */
41598
41599
41600                 $ac_includes_default
41601
41602 int
41603 main ()
41604 {
41605
41606                 #ifndef $wx_func
41607                   &$wx_func;
41608                 #endif
41609
41610
41611   ;
41612   return 0;
41613 }
41614
41615 _ACEOF
41616 rm -f conftest.$ac_objext conftest$ac_exeext
41617 if { (ac_try="$ac_link"
41618 case "(($ac_try" in
41619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41620   *) ac_try_echo=$ac_try;;
41621 esac
41622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41623   (eval "$ac_link") 2>conftest.er1
41624   ac_status=$?
41625   grep -v '^ *+' conftest.er1 >conftest.err
41626   rm -f conftest.er1
41627   cat conftest.err >&5
41628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629   (exit $ac_status); } && {
41630          test -z "$ac_c_werror_flag" ||
41631          test ! -s conftest.err
41632        } && test -s conftest$ac_exeext &&
41633        $as_test_x conftest$ac_exeext; then
41634   eval wx_cv_func_$wx_func=yes
41635 else
41636   echo "$as_me: failed program was:" >&5
41637 sed 's/^/| /' conftest.$ac_ext >&5
41638
41639         eval wx_cv_func_$wx_func=no
41640 fi
41641
41642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41643       conftest$ac_exeext conftest.$ac_ext
41644
41645 fi
41646 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41647                { echo "$as_me:$LINENO: result: $ac_res" >&5
41648 echo "${ECHO_T}$ac_res" >&6; }
41649
41650     if eval test \$wx_cv_func_$wx_func = yes
41651     then
41652       cat >>confdefs.h <<_ACEOF
41653 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41654 _ACEOF
41655
41656
41657     else
41658       :
41659
41660     fi
41661   done
41662
41663
41664 fi
41665
41666
41667
41668 cat >confcache <<\_ACEOF
41669 # This file is a shell script that caches the results of configure
41670 # tests run on this system so they can be shared between configure
41671 # scripts and configure runs, see configure's option --config-cache.
41672 # It is not useful on other systems.  If it contains results you don't
41673 # want to keep, you may remove or edit it.
41674 #
41675 # config.status only pays attention to the cache file if you give it
41676 # the --recheck option to rerun configure.
41677 #
41678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41680 # following values.
41681
41682 _ACEOF
41683
41684 # The following way of writing the cache mishandles newlines in values,
41685 # but we know of no workaround that is simple, portable, and efficient.
41686 # So, we kill variables containing newlines.
41687 # Ultrix sh set writes to stderr and can't be redirected directly,
41688 # and sets the high bit in the cache file unless we assign to the vars.
41689 (
41690   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41691     eval ac_val=\$$ac_var
41692     case $ac_val in #(
41693     *${as_nl}*)
41694       case $ac_var in #(
41695       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41697       esac
41698       case $ac_var in #(
41699       _ | IFS | as_nl) ;; #(
41700       *) $as_unset $ac_var ;;
41701       esac ;;
41702     esac
41703   done
41704
41705   (set) 2>&1 |
41706     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41707     *${as_nl}ac_space=\ *)
41708       # `set' does not quote correctly, so add quotes (double-quote
41709       # substitution turns \\\\ into \\, and sed turns \\ into \).
41710       sed -n \
41711         "s/'/'\\\\''/g;
41712           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41713       ;; #(
41714     *)
41715       # `set' quotes correctly as required by POSIX, so do not add quotes.
41716       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41717       ;;
41718     esac |
41719     sort
41720 ) |
41721   sed '
41722      /^ac_cv_env_/b end
41723      t clear
41724      :clear
41725      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41726      t end
41727      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41728      :end' >>confcache
41729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41730   if test -w "$cache_file"; then
41731     test "x$cache_file" != "x/dev/null" &&
41732       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41733 echo "$as_me: updating cache $cache_file" >&6;}
41734     cat confcache >$cache_file
41735   else
41736     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41737 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41738   fi
41739 fi
41740 rm -f confcache
41741
41742
41743 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41744
41745
41746     THREADS_LINK=
41747     THREADS_CFLAGS=
41748
41749     if test "$wxUSE_THREADS" = "yes" ; then
41750         if test "$USE_BEOS" = 1; then
41751             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41752 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41753             wxUSE_THREADS="no"
41754         fi
41755     fi
41756
41757     if test "$wxUSE_THREADS" = "yes" ; then
41758
41759
41760                                 THREAD_OPTS="-pthread"
41761         if test "x$SUNCXX" = xyes; then
41762             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41763         fi
41764
41765         case "${host}" in
41766           *-*-solaris2* | *-*-sunos4* )
41767                 if test "x$GCC" = "xyes"; then
41768                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41769                 fi
41770                 ;;
41771           *-*-freebsd*)
41772                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41773                 ;;
41774           *-*-darwin* | *-*-cygwin* )
41775                                                 THREAD_OPTS=""
41776                 ;;
41777           *-*-aix*)
41778                                 THREAD_OPTS="pthreads"
41779                 ;;
41780           *-hp-hpux* )
41781                 if test "x$GCC" = "xyes"; then
41782                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41783                         THREAD_OPTS=""
41784                 else
41785                                                             THREAD_OPTS="-mt"
41786                 fi
41787                 ;;
41788
41789           *-*-irix* )
41790                                                                 if test "x$GCC" = "xyes"; then
41791                     THREAD_OPTS=""
41792                 fi
41793                 ;;
41794
41795           *-*-*UnixWare*)
41796                                 if test "x$GCC" != "xyes"; then
41797                     THREAD_OPTS="-Ethread"
41798                 fi
41799                 ;;
41800         esac
41801
41802                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41803
41804                 THREADS_OK=no
41805         for flag in $THREAD_OPTS; do
41806             case $flag in
41807                 none)
41808                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41809 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41810                     ;;
41811
41812                 -*)
41813                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41814 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41815                     THREADS_CFLAGS="$flag"
41816                     ;;
41817
41818                 *)
41819                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41820 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41821                     THREADS_LINK="-l$flag"
41822                     ;;
41823               esac
41824
41825               save_LIBS="$LIBS"
41826               save_CFLAGS="$CFLAGS"
41827               LIBS="$THREADS_LINK $LIBS"
41828               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41829
41830               cat >conftest.$ac_ext <<_ACEOF
41831 /* confdefs.h.  */
41832 _ACEOF
41833 cat confdefs.h >>conftest.$ac_ext
41834 cat >>conftest.$ac_ext <<_ACEOF
41835 /* end confdefs.h.  */
41836 #include <pthread.h>
41837 int
41838 main ()
41839 {
41840 pthread_create(0,0,0,0);
41841   ;
41842   return 0;
41843 }
41844 _ACEOF
41845 rm -f conftest.$ac_objext conftest$ac_exeext
41846 if { (ac_try="$ac_link"
41847 case "(($ac_try" in
41848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41849   *) ac_try_echo=$ac_try;;
41850 esac
41851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41852   (eval "$ac_link") 2>conftest.er1
41853   ac_status=$?
41854   grep -v '^ *+' conftest.er1 >conftest.err
41855   rm -f conftest.er1
41856   cat conftest.err >&5
41857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41858   (exit $ac_status); } && {
41859          test -z "$ac_c_werror_flag" ||
41860          test ! -s conftest.err
41861        } && test -s conftest$ac_exeext &&
41862        $as_test_x conftest$ac_exeext; then
41863   THREADS_OK=yes
41864 else
41865   echo "$as_me: failed program was:" >&5
41866 sed 's/^/| /' conftest.$ac_ext >&5
41867
41868
41869 fi
41870
41871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41872       conftest$ac_exeext conftest.$ac_ext
41873
41874               LIBS="$save_LIBS"
41875               CFLAGS="$save_CFLAGS"
41876
41877               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41878 echo "${ECHO_T}$THREADS_OK" >&6; }
41879               if test "x$THREADS_OK" = "xyes"; then
41880                       break;
41881               fi
41882
41883               THREADS_LINK=""
41884               THREADS_CFLAGS=""
41885       done
41886
41887       if test "x$THREADS_OK" != "xyes"; then
41888           wxUSE_THREADS=no
41889           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41890 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41891       else
41892                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41893           LIBS="$THREADS_LINK $LIBS"
41894
41895           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41896 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41897           flag=no
41898           case "${host}" in
41899             *-aix*)
41900                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41901                 flag="-D_THREAD_SAFE"
41902                 ;;
41903             *-freebsd*)
41904                 flag="-D_THREAD_SAFE"
41905                 ;;
41906             *-hp-hpux* )
41907                 flag="-D_REENTRANT"
41908                 if test "x$GCC" != "xyes"; then
41909                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41910                 fi
41911                 ;;
41912             *solaris* | alpha*-osf*)
41913                 flag="-D_REENTRANT"
41914                 ;;
41915           esac
41916           { echo "$as_me:$LINENO: result: ${flag}" >&5
41917 echo "${ECHO_T}${flag}" >&6; }
41918           if test "x$flag" != xno; then
41919               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41920           fi
41921
41922                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41923       fi
41924     fi
41925
41926         if test "$wxUSE_THREADS" = "yes" ; then
41927
41928 for ac_func in thr_setconcurrency
41929 do
41930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41934   echo $ECHO_N "(cached) $ECHO_C" >&6
41935 else
41936   cat >conftest.$ac_ext <<_ACEOF
41937 /* confdefs.h.  */
41938 _ACEOF
41939 cat confdefs.h >>conftest.$ac_ext
41940 cat >>conftest.$ac_ext <<_ACEOF
41941 /* end confdefs.h.  */
41942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41944 #define $ac_func innocuous_$ac_func
41945
41946 /* System header to define __stub macros and hopefully few prototypes,
41947     which can conflict with char $ac_func (); below.
41948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41949     <limits.h> exists even on freestanding compilers.  */
41950
41951 #ifdef __STDC__
41952 # include <limits.h>
41953 #else
41954 # include <assert.h>
41955 #endif
41956
41957 #undef $ac_func
41958
41959 /* Override any GCC internal prototype to avoid an error.
41960    Use char because int might match the return type of a GCC
41961    builtin and then its argument prototype would still apply.  */
41962 #ifdef __cplusplus
41963 extern "C"
41964 #endif
41965 char $ac_func ();
41966 /* The GNU C library defines this for functions which it implements
41967     to always fail with ENOSYS.  Some functions are actually named
41968     something starting with __ and the normal name is an alias.  */
41969 #if defined __stub_$ac_func || defined __stub___$ac_func
41970 choke me
41971 #endif
41972
41973 int
41974 main ()
41975 {
41976 return $ac_func ();
41977   ;
41978   return 0;
41979 }
41980 _ACEOF
41981 rm -f conftest.$ac_objext conftest$ac_exeext
41982 if { (ac_try="$ac_link"
41983 case "(($ac_try" in
41984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41985   *) ac_try_echo=$ac_try;;
41986 esac
41987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41988   (eval "$ac_link") 2>conftest.er1
41989   ac_status=$?
41990   grep -v '^ *+' conftest.er1 >conftest.err
41991   rm -f conftest.er1
41992   cat conftest.err >&5
41993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994   (exit $ac_status); } && {
41995          test -z "$ac_c_werror_flag" ||
41996          test ! -s conftest.err
41997        } && test -s conftest$ac_exeext &&
41998        $as_test_x conftest$ac_exeext; then
41999   eval "$as_ac_var=yes"
42000 else
42001   echo "$as_me: failed program was:" >&5
42002 sed 's/^/| /' conftest.$ac_ext >&5
42003
42004         eval "$as_ac_var=no"
42005 fi
42006
42007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42008       conftest$ac_exeext conftest.$ac_ext
42009 fi
42010 ac_res=`eval echo '${'$as_ac_var'}'`
42011                { echo "$as_me:$LINENO: result: $ac_res" >&5
42012 echo "${ECHO_T}$ac_res" >&6; }
42013 if test `eval echo '${'$as_ac_var'}'` = yes; then
42014   cat >>confdefs.h <<_ACEOF
42015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42016 _ACEOF
42017
42018 fi
42019 done
42020
42021
42022                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
42023 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
42024 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
42025   echo $ECHO_N "(cached) $ECHO_C" >&6
42026 else
42027
42028                                 ac_ext=cpp
42029 ac_cpp='$CXXCPP $CPPFLAGS'
42030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42033
42034         cat >conftest.$ac_ext <<_ACEOF
42035 /* confdefs.h.  */
42036 _ACEOF
42037 cat confdefs.h >>conftest.$ac_ext
42038 cat >>conftest.$ac_ext <<_ACEOF
42039 /* end confdefs.h.  */
42040 #include <pthread.h>
42041                void ThreadCleanupFunc(void *p);
42042
42043 int
42044 main ()
42045 {
42046
42047                 void *p;
42048                 pthread_cleanup_push(ThreadCleanupFunc, p);
42049                 pthread_cleanup_pop(0);
42050
42051   ;
42052   return 0;
42053 }
42054 _ACEOF
42055 rm -f conftest.$ac_objext
42056 if { (ac_try="$ac_compile"
42057 case "(($ac_try" in
42058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42059   *) ac_try_echo=$ac_try;;
42060 esac
42061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42062   (eval "$ac_compile") 2>conftest.er1
42063   ac_status=$?
42064   grep -v '^ *+' conftest.er1 >conftest.err
42065   rm -f conftest.er1
42066   cat conftest.err >&5
42067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068   (exit $ac_status); } && {
42069          test -z "$ac_cxx_werror_flag" ||
42070          test ! -s conftest.err
42071        } && test -s conftest.$ac_objext; then
42072
42073                wx_cv_func_pthread_cleanup=yes
42074
42075 else
42076   echo "$as_me: failed program was:" >&5
42077 sed 's/^/| /' conftest.$ac_ext >&5
42078
42079
42080                wx_cv_func_pthread_cleanup=no
42081
42082
42083 fi
42084
42085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42086         ac_ext=c
42087 ac_cpp='$CPP $CPPFLAGS'
42088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42091
42092
42093 fi
42094 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
42095 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
42096       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
42097         cat >>confdefs.h <<\_ACEOF
42098 #define wxHAVE_PTHREAD_CLEANUP 1
42099 _ACEOF
42100
42101       fi
42102
42103
42104 for ac_header in sched.h
42105 do
42106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42110   echo $ECHO_N "(cached) $ECHO_C" >&6
42111 else
42112   cat >conftest.$ac_ext <<_ACEOF
42113 /* confdefs.h.  */
42114 _ACEOF
42115 cat confdefs.h >>conftest.$ac_ext
42116 cat >>conftest.$ac_ext <<_ACEOF
42117 /* end confdefs.h.  */
42118 $ac_includes_default
42119
42120 #include <$ac_header>
42121 _ACEOF
42122 rm -f conftest.$ac_objext
42123 if { (ac_try="$ac_compile"
42124 case "(($ac_try" in
42125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42126   *) ac_try_echo=$ac_try;;
42127 esac
42128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42129   (eval "$ac_compile") 2>conftest.er1
42130   ac_status=$?
42131   grep -v '^ *+' conftest.er1 >conftest.err
42132   rm -f conftest.er1
42133   cat conftest.err >&5
42134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42135   (exit $ac_status); } && {
42136          test -z "$ac_c_werror_flag" ||
42137          test ! -s conftest.err
42138        } && test -s conftest.$ac_objext; then
42139   eval "$as_ac_Header=yes"
42140 else
42141   echo "$as_me: failed program was:" >&5
42142 sed 's/^/| /' conftest.$ac_ext >&5
42143
42144         eval "$as_ac_Header=no"
42145 fi
42146
42147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42148 fi
42149 ac_res=`eval echo '${'$as_ac_Header'}'`
42150                { echo "$as_me:$LINENO: result: $ac_res" >&5
42151 echo "${ECHO_T}$ac_res" >&6; }
42152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42153   cat >>confdefs.h <<_ACEOF
42154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42155 _ACEOF
42156
42157 fi
42158
42159 done
42160
42161       if test "$ac_cv_header_sched_h" = "yes"; then
42162           { echo "$as_me:$LINENO: checking for sched_yield" >&5
42163 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
42164 if test "${ac_cv_func_sched_yield+set}" = set; then
42165   echo $ECHO_N "(cached) $ECHO_C" >&6
42166 else
42167   cat >conftest.$ac_ext <<_ACEOF
42168 /* confdefs.h.  */
42169 _ACEOF
42170 cat confdefs.h >>conftest.$ac_ext
42171 cat >>conftest.$ac_ext <<_ACEOF
42172 /* end confdefs.h.  */
42173 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
42174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42175 #define sched_yield innocuous_sched_yield
42176
42177 /* System header to define __stub macros and hopefully few prototypes,
42178     which can conflict with char sched_yield (); below.
42179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42180     <limits.h> exists even on freestanding compilers.  */
42181
42182 #ifdef __STDC__
42183 # include <limits.h>
42184 #else
42185 # include <assert.h>
42186 #endif
42187
42188 #undef sched_yield
42189
42190 /* Override any GCC internal prototype to avoid an error.
42191    Use char because int might match the return type of a GCC
42192    builtin and then its argument prototype would still apply.  */
42193 #ifdef __cplusplus
42194 extern "C"
42195 #endif
42196 char sched_yield ();
42197 /* The GNU C library defines this for functions which it implements
42198     to always fail with ENOSYS.  Some functions are actually named
42199     something starting with __ and the normal name is an alias.  */
42200 #if defined __stub_sched_yield || defined __stub___sched_yield
42201 choke me
42202 #endif
42203
42204 int
42205 main ()
42206 {
42207 return sched_yield ();
42208   ;
42209   return 0;
42210 }
42211 _ACEOF
42212 rm -f conftest.$ac_objext conftest$ac_exeext
42213 if { (ac_try="$ac_link"
42214 case "(($ac_try" in
42215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42216   *) ac_try_echo=$ac_try;;
42217 esac
42218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42219   (eval "$ac_link") 2>conftest.er1
42220   ac_status=$?
42221   grep -v '^ *+' conftest.er1 >conftest.err
42222   rm -f conftest.er1
42223   cat conftest.err >&5
42224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42225   (exit $ac_status); } && {
42226          test -z "$ac_c_werror_flag" ||
42227          test ! -s conftest.err
42228        } && test -s conftest$ac_exeext &&
42229        $as_test_x conftest$ac_exeext; then
42230   ac_cv_func_sched_yield=yes
42231 else
42232   echo "$as_me: failed program was:" >&5
42233 sed 's/^/| /' conftest.$ac_ext >&5
42234
42235         ac_cv_func_sched_yield=no
42236 fi
42237
42238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42239       conftest$ac_exeext conftest.$ac_ext
42240 fi
42241 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
42242 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
42243 if test $ac_cv_func_sched_yield = yes; then
42244   cat >>confdefs.h <<\_ACEOF
42245 #define HAVE_SCHED_YIELD 1
42246 _ACEOF
42247
42248 else
42249
42250                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
42251 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
42252 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
42253   echo $ECHO_N "(cached) $ECHO_C" >&6
42254 else
42255   ac_check_lib_save_LIBS=$LIBS
42256 LIBS="-lposix4  $LIBS"
42257 cat >conftest.$ac_ext <<_ACEOF
42258 /* confdefs.h.  */
42259 _ACEOF
42260 cat confdefs.h >>conftest.$ac_ext
42261 cat >>conftest.$ac_ext <<_ACEOF
42262 /* end confdefs.h.  */
42263
42264 /* Override any GCC internal prototype to avoid an error.
42265    Use char because int might match the return type of a GCC
42266    builtin and then its argument prototype would still apply.  */
42267 #ifdef __cplusplus
42268 extern "C"
42269 #endif
42270 char sched_yield ();
42271 int
42272 main ()
42273 {
42274 return sched_yield ();
42275   ;
42276   return 0;
42277 }
42278 _ACEOF
42279 rm -f conftest.$ac_objext conftest$ac_exeext
42280 if { (ac_try="$ac_link"
42281 case "(($ac_try" in
42282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42283   *) ac_try_echo=$ac_try;;
42284 esac
42285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42286   (eval "$ac_link") 2>conftest.er1
42287   ac_status=$?
42288   grep -v '^ *+' conftest.er1 >conftest.err
42289   rm -f conftest.er1
42290   cat conftest.err >&5
42291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292   (exit $ac_status); } && {
42293          test -z "$ac_c_werror_flag" ||
42294          test ! -s conftest.err
42295        } && test -s conftest$ac_exeext &&
42296        $as_test_x conftest$ac_exeext; then
42297   ac_cv_lib_posix4_sched_yield=yes
42298 else
42299   echo "$as_me: failed program was:" >&5
42300 sed 's/^/| /' conftest.$ac_ext >&5
42301
42302         ac_cv_lib_posix4_sched_yield=no
42303 fi
42304
42305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42306       conftest$ac_exeext conftest.$ac_ext
42307 LIBS=$ac_check_lib_save_LIBS
42308 fi
42309 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
42310 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
42311 if test $ac_cv_lib_posix4_sched_yield = yes; then
42312   cat >>confdefs.h <<\_ACEOF
42313 #define HAVE_SCHED_YIELD 1
42314 _ACEOF
42315  POSIX4_LINK=" -lposix4"
42316 else
42317   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
42318 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
42319
42320 fi
42321
42322
42323
42324 fi
42325
42326       fi
42327
42328                                           HAVE_PRIOR_FUNCS=0
42329       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
42330 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
42331 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
42332   echo $ECHO_N "(cached) $ECHO_C" >&6
42333 else
42334   cat >conftest.$ac_ext <<_ACEOF
42335 /* confdefs.h.  */
42336 _ACEOF
42337 cat confdefs.h >>conftest.$ac_ext
42338 cat >>conftest.$ac_ext <<_ACEOF
42339 /* end confdefs.h.  */
42340 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
42341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42342 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
42343
42344 /* System header to define __stub macros and hopefully few prototypes,
42345     which can conflict with char pthread_attr_getschedpolicy (); below.
42346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42347     <limits.h> exists even on freestanding compilers.  */
42348
42349 #ifdef __STDC__
42350 # include <limits.h>
42351 #else
42352 # include <assert.h>
42353 #endif
42354
42355 #undef pthread_attr_getschedpolicy
42356
42357 /* Override any GCC internal prototype to avoid an error.
42358    Use char because int might match the return type of a GCC
42359    builtin and then its argument prototype would still apply.  */
42360 #ifdef __cplusplus
42361 extern "C"
42362 #endif
42363 char pthread_attr_getschedpolicy ();
42364 /* The GNU C library defines this for functions which it implements
42365     to always fail with ENOSYS.  Some functions are actually named
42366     something starting with __ and the normal name is an alias.  */
42367 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
42368 choke me
42369 #endif
42370
42371 int
42372 main ()
42373 {
42374 return pthread_attr_getschedpolicy ();
42375   ;
42376   return 0;
42377 }
42378 _ACEOF
42379 rm -f conftest.$ac_objext conftest$ac_exeext
42380 if { (ac_try="$ac_link"
42381 case "(($ac_try" in
42382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42383   *) ac_try_echo=$ac_try;;
42384 esac
42385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42386   (eval "$ac_link") 2>conftest.er1
42387   ac_status=$?
42388   grep -v '^ *+' conftest.er1 >conftest.err
42389   rm -f conftest.er1
42390   cat conftest.err >&5
42391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392   (exit $ac_status); } && {
42393          test -z "$ac_c_werror_flag" ||
42394          test ! -s conftest.err
42395        } && test -s conftest$ac_exeext &&
42396        $as_test_x conftest$ac_exeext; then
42397   ac_cv_func_pthread_attr_getschedpolicy=yes
42398 else
42399   echo "$as_me: failed program was:" >&5
42400 sed 's/^/| /' conftest.$ac_ext >&5
42401
42402         ac_cv_func_pthread_attr_getschedpolicy=no
42403 fi
42404
42405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42406       conftest$ac_exeext conftest.$ac_ext
42407 fi
42408 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
42409 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
42410 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
42411   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
42412 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
42413 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
42414   echo $ECHO_N "(cached) $ECHO_C" >&6
42415 else
42416   cat >conftest.$ac_ext <<_ACEOF
42417 /* confdefs.h.  */
42418 _ACEOF
42419 cat confdefs.h >>conftest.$ac_ext
42420 cat >>conftest.$ac_ext <<_ACEOF
42421 /* end confdefs.h.  */
42422 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
42423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42424 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
42425
42426 /* System header to define __stub macros and hopefully few prototypes,
42427     which can conflict with char pthread_attr_setschedparam (); below.
42428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42429     <limits.h> exists even on freestanding compilers.  */
42430
42431 #ifdef __STDC__
42432 # include <limits.h>
42433 #else
42434 # include <assert.h>
42435 #endif
42436
42437 #undef pthread_attr_setschedparam
42438
42439 /* Override any GCC internal prototype to avoid an error.
42440    Use char because int might match the return type of a GCC
42441    builtin and then its argument prototype would still apply.  */
42442 #ifdef __cplusplus
42443 extern "C"
42444 #endif
42445 char pthread_attr_setschedparam ();
42446 /* The GNU C library defines this for functions which it implements
42447     to always fail with ENOSYS.  Some functions are actually named
42448     something starting with __ and the normal name is an alias.  */
42449 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
42450 choke me
42451 #endif
42452
42453 int
42454 main ()
42455 {
42456 return pthread_attr_setschedparam ();
42457   ;
42458   return 0;
42459 }
42460 _ACEOF
42461 rm -f conftest.$ac_objext conftest$ac_exeext
42462 if { (ac_try="$ac_link"
42463 case "(($ac_try" in
42464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42465   *) ac_try_echo=$ac_try;;
42466 esac
42467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42468   (eval "$ac_link") 2>conftest.er1
42469   ac_status=$?
42470   grep -v '^ *+' conftest.er1 >conftest.err
42471   rm -f conftest.er1
42472   cat conftest.err >&5
42473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474   (exit $ac_status); } && {
42475          test -z "$ac_c_werror_flag" ||
42476          test ! -s conftest.err
42477        } && test -s conftest$ac_exeext &&
42478        $as_test_x conftest$ac_exeext; then
42479   ac_cv_func_pthread_attr_setschedparam=yes
42480 else
42481   echo "$as_me: failed program was:" >&5
42482 sed 's/^/| /' conftest.$ac_ext >&5
42483
42484         ac_cv_func_pthread_attr_setschedparam=no
42485 fi
42486
42487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42488       conftest$ac_exeext conftest.$ac_ext
42489 fi
42490 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
42491 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
42492 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
42493   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
42494 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
42495 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
42496   echo $ECHO_N "(cached) $ECHO_C" >&6
42497 else
42498   cat >conftest.$ac_ext <<_ACEOF
42499 /* confdefs.h.  */
42500 _ACEOF
42501 cat confdefs.h >>conftest.$ac_ext
42502 cat >>conftest.$ac_ext <<_ACEOF
42503 /* end confdefs.h.  */
42504 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
42505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42506 #define sched_get_priority_max innocuous_sched_get_priority_max
42507
42508 /* System header to define __stub macros and hopefully few prototypes,
42509     which can conflict with char sched_get_priority_max (); below.
42510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42511     <limits.h> exists even on freestanding compilers.  */
42512
42513 #ifdef __STDC__
42514 # include <limits.h>
42515 #else
42516 # include <assert.h>
42517 #endif
42518
42519 #undef sched_get_priority_max
42520
42521 /* Override any GCC internal prototype to avoid an error.
42522    Use char because int might match the return type of a GCC
42523    builtin and then its argument prototype would still apply.  */
42524 #ifdef __cplusplus
42525 extern "C"
42526 #endif
42527 char sched_get_priority_max ();
42528 /* The GNU C library defines this for functions which it implements
42529     to always fail with ENOSYS.  Some functions are actually named
42530     something starting with __ and the normal name is an alias.  */
42531 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
42532 choke me
42533 #endif
42534
42535 int
42536 main ()
42537 {
42538 return sched_get_priority_max ();
42539   ;
42540   return 0;
42541 }
42542 _ACEOF
42543 rm -f conftest.$ac_objext conftest$ac_exeext
42544 if { (ac_try="$ac_link"
42545 case "(($ac_try" in
42546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42547   *) ac_try_echo=$ac_try;;
42548 esac
42549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42550   (eval "$ac_link") 2>conftest.er1
42551   ac_status=$?
42552   grep -v '^ *+' conftest.er1 >conftest.err
42553   rm -f conftest.er1
42554   cat conftest.err >&5
42555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556   (exit $ac_status); } && {
42557          test -z "$ac_c_werror_flag" ||
42558          test ! -s conftest.err
42559        } && test -s conftest$ac_exeext &&
42560        $as_test_x conftest$ac_exeext; then
42561   ac_cv_func_sched_get_priority_max=yes
42562 else
42563   echo "$as_me: failed program was:" >&5
42564 sed 's/^/| /' conftest.$ac_ext >&5
42565
42566         ac_cv_func_sched_get_priority_max=no
42567 fi
42568
42569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42570       conftest$ac_exeext conftest.$ac_ext
42571 fi
42572 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42573 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
42574 if test $ac_cv_func_sched_get_priority_max = yes; then
42575   HAVE_PRIOR_FUNCS=1
42576 else
42577   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42578 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42579 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42580   echo $ECHO_N "(cached) $ECHO_C" >&6
42581 else
42582   ac_check_lib_save_LIBS=$LIBS
42583 LIBS="-lposix4  $LIBS"
42584 cat >conftest.$ac_ext <<_ACEOF
42585 /* confdefs.h.  */
42586 _ACEOF
42587 cat confdefs.h >>conftest.$ac_ext
42588 cat >>conftest.$ac_ext <<_ACEOF
42589 /* end confdefs.h.  */
42590
42591 /* Override any GCC internal prototype to avoid an error.
42592    Use char because int might match the return type of a GCC
42593    builtin and then its argument prototype would still apply.  */
42594 #ifdef __cplusplus
42595 extern "C"
42596 #endif
42597 char sched_get_priority_max ();
42598 int
42599 main ()
42600 {
42601 return sched_get_priority_max ();
42602   ;
42603   return 0;
42604 }
42605 _ACEOF
42606 rm -f conftest.$ac_objext conftest$ac_exeext
42607 if { (ac_try="$ac_link"
42608 case "(($ac_try" in
42609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42610   *) ac_try_echo=$ac_try;;
42611 esac
42612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42613   (eval "$ac_link") 2>conftest.er1
42614   ac_status=$?
42615   grep -v '^ *+' conftest.er1 >conftest.err
42616   rm -f conftest.er1
42617   cat conftest.err >&5
42618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619   (exit $ac_status); } && {
42620          test -z "$ac_c_werror_flag" ||
42621          test ! -s conftest.err
42622        } && test -s conftest$ac_exeext &&
42623        $as_test_x conftest$ac_exeext; then
42624   ac_cv_lib_posix4_sched_get_priority_max=yes
42625 else
42626   echo "$as_me: failed program was:" >&5
42627 sed 's/^/| /' conftest.$ac_ext >&5
42628
42629         ac_cv_lib_posix4_sched_get_priority_max=no
42630 fi
42631
42632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42633       conftest$ac_exeext conftest.$ac_ext
42634 LIBS=$ac_check_lib_save_LIBS
42635 fi
42636 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42637 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42638 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42639
42640                                 HAVE_PRIOR_FUNCS=1
42641                                 POSIX4_LINK=" -lposix4"
42642
42643 fi
42644
42645
42646 fi
42647
42648
42649 fi
42650
42651
42652 fi
42653
42654
42655       if test "$HAVE_PRIOR_FUNCS" = 1; then
42656         cat >>confdefs.h <<\_ACEOF
42657 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42658 _ACEOF
42659
42660       else
42661         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42662 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42663       fi
42664
42665       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42666 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42667 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42668   echo $ECHO_N "(cached) $ECHO_C" >&6
42669 else
42670   cat >conftest.$ac_ext <<_ACEOF
42671 /* confdefs.h.  */
42672 _ACEOF
42673 cat confdefs.h >>conftest.$ac_ext
42674 cat >>conftest.$ac_ext <<_ACEOF
42675 /* end confdefs.h.  */
42676 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42678 #define pthread_cancel innocuous_pthread_cancel
42679
42680 /* System header to define __stub macros and hopefully few prototypes,
42681     which can conflict with char pthread_cancel (); below.
42682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42683     <limits.h> exists even on freestanding compilers.  */
42684
42685 #ifdef __STDC__
42686 # include <limits.h>
42687 #else
42688 # include <assert.h>
42689 #endif
42690
42691 #undef pthread_cancel
42692
42693 /* Override any GCC internal prototype to avoid an error.
42694    Use char because int might match the return type of a GCC
42695    builtin and then its argument prototype would still apply.  */
42696 #ifdef __cplusplus
42697 extern "C"
42698 #endif
42699 char pthread_cancel ();
42700 /* The GNU C library defines this for functions which it implements
42701     to always fail with ENOSYS.  Some functions are actually named
42702     something starting with __ and the normal name is an alias.  */
42703 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42704 choke me
42705 #endif
42706
42707 int
42708 main ()
42709 {
42710 return pthread_cancel ();
42711   ;
42712   return 0;
42713 }
42714 _ACEOF
42715 rm -f conftest.$ac_objext conftest$ac_exeext
42716 if { (ac_try="$ac_link"
42717 case "(($ac_try" in
42718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42719   *) ac_try_echo=$ac_try;;
42720 esac
42721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42722   (eval "$ac_link") 2>conftest.er1
42723   ac_status=$?
42724   grep -v '^ *+' conftest.er1 >conftest.err
42725   rm -f conftest.er1
42726   cat conftest.err >&5
42727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42728   (exit $ac_status); } && {
42729          test -z "$ac_c_werror_flag" ||
42730          test ! -s conftest.err
42731        } && test -s conftest$ac_exeext &&
42732        $as_test_x conftest$ac_exeext; then
42733   ac_cv_func_pthread_cancel=yes
42734 else
42735   echo "$as_me: failed program was:" >&5
42736 sed 's/^/| /' conftest.$ac_ext >&5
42737
42738         ac_cv_func_pthread_cancel=no
42739 fi
42740
42741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42742       conftest$ac_exeext conftest.$ac_ext
42743 fi
42744 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42745 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42746 if test $ac_cv_func_pthread_cancel = yes; then
42747   cat >>confdefs.h <<\_ACEOF
42748 #define HAVE_PTHREAD_CANCEL 1
42749 _ACEOF
42750
42751 else
42752   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42753 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42754 fi
42755
42756
42757       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42758 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42759 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42760   echo $ECHO_N "(cached) $ECHO_C" >&6
42761 else
42762   cat >conftest.$ac_ext <<_ACEOF
42763 /* confdefs.h.  */
42764 _ACEOF
42765 cat confdefs.h >>conftest.$ac_ext
42766 cat >>conftest.$ac_ext <<_ACEOF
42767 /* end confdefs.h.  */
42768 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42770 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42771
42772 /* System header to define __stub macros and hopefully few prototypes,
42773     which can conflict with char pthread_mutex_timedlock (); below.
42774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42775     <limits.h> exists even on freestanding compilers.  */
42776
42777 #ifdef __STDC__
42778 # include <limits.h>
42779 #else
42780 # include <assert.h>
42781 #endif
42782
42783 #undef pthread_mutex_timedlock
42784
42785 /* Override any GCC internal prototype to avoid an error.
42786    Use char because int might match the return type of a GCC
42787    builtin and then its argument prototype would still apply.  */
42788 #ifdef __cplusplus
42789 extern "C"
42790 #endif
42791 char pthread_mutex_timedlock ();
42792 /* The GNU C library defines this for functions which it implements
42793     to always fail with ENOSYS.  Some functions are actually named
42794     something starting with __ and the normal name is an alias.  */
42795 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42796 choke me
42797 #endif
42798
42799 int
42800 main ()
42801 {
42802 return pthread_mutex_timedlock ();
42803   ;
42804   return 0;
42805 }
42806 _ACEOF
42807 rm -f conftest.$ac_objext conftest$ac_exeext
42808 if { (ac_try="$ac_link"
42809 case "(($ac_try" in
42810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42811   *) ac_try_echo=$ac_try;;
42812 esac
42813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42814   (eval "$ac_link") 2>conftest.er1
42815   ac_status=$?
42816   grep -v '^ *+' conftest.er1 >conftest.err
42817   rm -f conftest.er1
42818   cat conftest.err >&5
42819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42820   (exit $ac_status); } && {
42821          test -z "$ac_c_werror_flag" ||
42822          test ! -s conftest.err
42823        } && test -s conftest$ac_exeext &&
42824        $as_test_x conftest$ac_exeext; then
42825   ac_cv_func_pthread_mutex_timedlock=yes
42826 else
42827   echo "$as_me: failed program was:" >&5
42828 sed 's/^/| /' conftest.$ac_ext >&5
42829
42830         ac_cv_func_pthread_mutex_timedlock=no
42831 fi
42832
42833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42834       conftest$ac_exeext conftest.$ac_ext
42835 fi
42836 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42837 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42838 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42839   cat >>confdefs.h <<\_ACEOF
42840 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42841 _ACEOF
42842
42843 else
42844   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42845 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42846 fi
42847
42848
42849       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42850 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42851 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42852   echo $ECHO_N "(cached) $ECHO_C" >&6
42853 else
42854   cat >conftest.$ac_ext <<_ACEOF
42855 /* confdefs.h.  */
42856 _ACEOF
42857 cat confdefs.h >>conftest.$ac_ext
42858 cat >>conftest.$ac_ext <<_ACEOF
42859 /* end confdefs.h.  */
42860 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42862 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42863
42864 /* System header to define __stub macros and hopefully few prototypes,
42865     which can conflict with char pthread_attr_setstacksize (); below.
42866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42867     <limits.h> exists even on freestanding compilers.  */
42868
42869 #ifdef __STDC__
42870 # include <limits.h>
42871 #else
42872 # include <assert.h>
42873 #endif
42874
42875 #undef pthread_attr_setstacksize
42876
42877 /* Override any GCC internal prototype to avoid an error.
42878    Use char because int might match the return type of a GCC
42879    builtin and then its argument prototype would still apply.  */
42880 #ifdef __cplusplus
42881 extern "C"
42882 #endif
42883 char pthread_attr_setstacksize ();
42884 /* The GNU C library defines this for functions which it implements
42885     to always fail with ENOSYS.  Some functions are actually named
42886     something starting with __ and the normal name is an alias.  */
42887 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42888 choke me
42889 #endif
42890
42891 int
42892 main ()
42893 {
42894 return pthread_attr_setstacksize ();
42895   ;
42896   return 0;
42897 }
42898 _ACEOF
42899 rm -f conftest.$ac_objext conftest$ac_exeext
42900 if { (ac_try="$ac_link"
42901 case "(($ac_try" in
42902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42903   *) ac_try_echo=$ac_try;;
42904 esac
42905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42906   (eval "$ac_link") 2>conftest.er1
42907   ac_status=$?
42908   grep -v '^ *+' conftest.er1 >conftest.err
42909   rm -f conftest.er1
42910   cat conftest.err >&5
42911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42912   (exit $ac_status); } && {
42913          test -z "$ac_c_werror_flag" ||
42914          test ! -s conftest.err
42915        } && test -s conftest$ac_exeext &&
42916        $as_test_x conftest$ac_exeext; then
42917   ac_cv_func_pthread_attr_setstacksize=yes
42918 else
42919   echo "$as_me: failed program was:" >&5
42920 sed 's/^/| /' conftest.$ac_ext >&5
42921
42922         ac_cv_func_pthread_attr_setstacksize=no
42923 fi
42924
42925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42926       conftest$ac_exeext conftest.$ac_ext
42927 fi
42928 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42929 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42930 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42931   cat >>confdefs.h <<\_ACEOF
42932 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42933 _ACEOF
42934
42935 fi
42936
42937
42938
42939       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42940 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42941 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42942   echo $ECHO_N "(cached) $ECHO_C" >&6
42943 else
42944
42945         cat >conftest.$ac_ext <<_ACEOF
42946 /* confdefs.h.  */
42947 _ACEOF
42948 cat confdefs.h >>conftest.$ac_ext
42949 cat >>conftest.$ac_ext <<_ACEOF
42950 /* end confdefs.h.  */
42951 #include <pthread.h>
42952 int
42953 main ()
42954 {
42955
42956                pthread_mutexattr_t attr;
42957                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42958
42959   ;
42960   return 0;
42961 }
42962 _ACEOF
42963 rm -f conftest.$ac_objext
42964 if { (ac_try="$ac_compile"
42965 case "(($ac_try" in
42966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42967   *) ac_try_echo=$ac_try;;
42968 esac
42969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42970   (eval "$ac_compile") 2>conftest.er1
42971   ac_status=$?
42972   grep -v '^ *+' conftest.er1 >conftest.err
42973   rm -f conftest.er1
42974   cat conftest.err >&5
42975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42976   (exit $ac_status); } && {
42977          test -z "$ac_c_werror_flag" ||
42978          test ! -s conftest.err
42979        } && test -s conftest.$ac_objext; then
42980   wx_cv_type_pthread_mutexattr_t=yes
42981 else
42982   echo "$as_me: failed program was:" >&5
42983 sed 's/^/| /' conftest.$ac_ext >&5
42984
42985         wx_cv_type_pthread_mutexattr_t=no
42986
42987 fi
42988
42989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42990
42991 fi
42992 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42993 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42994
42995       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42996         cat >>confdefs.h <<\_ACEOF
42997 #define HAVE_PTHREAD_MUTEXATTR_T 1
42998 _ACEOF
42999
43000
43001                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
43002 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
43003 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
43004   echo $ECHO_N "(cached) $ECHO_C" >&6
43005 else
43006
43007                        cat >conftest.$ac_ext <<_ACEOF
43008 /* confdefs.h.  */
43009 _ACEOF
43010 cat confdefs.h >>conftest.$ac_ext
43011 cat >>conftest.$ac_ext <<_ACEOF
43012 /* end confdefs.h.  */
43013 #include <pthread.h>
43014 int
43015 main ()
43016 {
43017
43018                                pthread_mutexattr_t attr;
43019                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
43020
43021   ;
43022   return 0;
43023 }
43024 _ACEOF
43025 rm -f conftest.$ac_objext
43026 if { (ac_try="$ac_compile"
43027 case "(($ac_try" in
43028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43029   *) ac_try_echo=$ac_try;;
43030 esac
43031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43032   (eval "$ac_compile") 2>conftest.er1
43033   ac_status=$?
43034   grep -v '^ *+' conftest.er1 >conftest.err
43035   rm -f conftest.er1
43036   cat conftest.err >&5
43037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43038   (exit $ac_status); } && {
43039          test -z "$ac_c_werror_flag" ||
43040          test ! -s conftest.err
43041        } && test -s conftest.$ac_objext; then
43042   wx_cv_func_pthread_mutexattr_settype_decl=yes
43043 else
43044   echo "$as_me: failed program was:" >&5
43045 sed 's/^/| /' conftest.$ac_ext >&5
43046
43047         wx_cv_func_pthread_mutexattr_settype_decl=no
43048
43049 fi
43050
43051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43052
43053 fi
43054 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
43055 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
43056         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
43057             cat >>confdefs.h <<\_ACEOF
43058 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
43059 _ACEOF
43060
43061         fi
43062       else
43063                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
43064 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
43065 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
43066   echo $ECHO_N "(cached) $ECHO_C" >&6
43067 else
43068
43069             cat >conftest.$ac_ext <<_ACEOF
43070 /* confdefs.h.  */
43071 _ACEOF
43072 cat confdefs.h >>conftest.$ac_ext
43073 cat >>conftest.$ac_ext <<_ACEOF
43074 /* end confdefs.h.  */
43075 #include <pthread.h>
43076 int
43077 main ()
43078 {
43079
43080                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
43081
43082   ;
43083   return 0;
43084 }
43085 _ACEOF
43086 rm -f conftest.$ac_objext
43087 if { (ac_try="$ac_compile"
43088 case "(($ac_try" in
43089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43090   *) ac_try_echo=$ac_try;;
43091 esac
43092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43093   (eval "$ac_compile") 2>conftest.er1
43094   ac_status=$?
43095   grep -v '^ *+' conftest.er1 >conftest.err
43096   rm -f conftest.er1
43097   cat conftest.err >&5
43098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43099   (exit $ac_status); } && {
43100          test -z "$ac_c_werror_flag" ||
43101          test ! -s conftest.err
43102        } && test -s conftest.$ac_objext; then
43103
43104                     wx_cv_type_pthread_rec_mutex_init=yes
43105
43106 else
43107   echo "$as_me: failed program was:" >&5
43108 sed 's/^/| /' conftest.$ac_ext >&5
43109
43110
43111                     wx_cv_type_pthread_rec_mutex_init=no
43112
43113
43114 fi
43115
43116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43117
43118 fi
43119 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
43120 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
43121         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
43122           cat >>confdefs.h <<\_ACEOF
43123 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
43124 _ACEOF
43125
43126         else
43127                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
43128 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
43129         fi
43130       fi
43131     fi
43132
43133 else
43134     if test "$wxUSE_THREADS" = "yes" ; then
43135       case "${host}" in
43136         *-*-mingw32* )
43137                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
43138 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
43139 if test "${wx_cv_cflags_mthread+set}" = set; then
43140   echo $ECHO_N "(cached) $ECHO_C" >&6
43141 else
43142
43143                     CFLAGS_OLD="$CFLAGS"
43144                     CFLAGS="-mthreads $CFLAGS"
43145                     cat >conftest.$ac_ext <<_ACEOF
43146 /* confdefs.h.  */
43147 _ACEOF
43148 cat confdefs.h >>conftest.$ac_ext
43149 cat >>conftest.$ac_ext <<_ACEOF
43150 /* end confdefs.h.  */
43151
43152 int
43153 main ()
43154 {
43155
43156   ;
43157   return 0;
43158 }
43159 _ACEOF
43160 rm -f conftest.$ac_objext
43161 if { (ac_try="$ac_compile"
43162 case "(($ac_try" in
43163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43164   *) ac_try_echo=$ac_try;;
43165 esac
43166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43167   (eval "$ac_compile") 2>conftest.er1
43168   ac_status=$?
43169   grep -v '^ *+' conftest.er1 >conftest.err
43170   rm -f conftest.er1
43171   cat conftest.err >&5
43172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43173   (exit $ac_status); } && {
43174          test -z "$ac_c_werror_flag" ||
43175          test ! -s conftest.err
43176        } && test -s conftest.$ac_objext; then
43177   wx_cv_cflags_mthread=yes
43178 else
43179   echo "$as_me: failed program was:" >&5
43180 sed 's/^/| /' conftest.$ac_ext >&5
43181
43182         wx_cv_cflags_mthread=no
43183
43184 fi
43185
43186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43187
43188
43189 fi
43190 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
43191 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
43192
43193             if test "$wx_cv_cflags_mthread" = "yes"; then
43194                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
43195                 LDFLAGS="$LDFLAGS -mthreads"
43196             else
43197                                 CFLAGS="$CFLAGS_OLD"
43198             fi
43199         ;;
43200         *-pc-os2*emx )
43201             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
43202             LDFLAGS="$LDFLAGS -Zmt"
43203         ;;
43204       esac
43205     fi
43206 fi
43207
43208 { echo "$as_me:$LINENO: checking for localtime_r" >&5
43209 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
43210 if test "${ac_cv_func_localtime_r+set}" = set; then
43211   echo $ECHO_N "(cached) $ECHO_C" >&6
43212 else
43213   cat >conftest.$ac_ext <<_ACEOF
43214 /* confdefs.h.  */
43215 _ACEOF
43216 cat confdefs.h >>conftest.$ac_ext
43217 cat >>conftest.$ac_ext <<_ACEOF
43218 /* end confdefs.h.  */
43219 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
43220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43221 #define localtime_r innocuous_localtime_r
43222
43223 /* System header to define __stub macros and hopefully few prototypes,
43224     which can conflict with char localtime_r (); below.
43225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43226     <limits.h> exists even on freestanding compilers.  */
43227
43228 #ifdef __STDC__
43229 # include <limits.h>
43230 #else
43231 # include <assert.h>
43232 #endif
43233
43234 #undef localtime_r
43235
43236 /* Override any GCC internal prototype to avoid an error.
43237    Use char because int might match the return type of a GCC
43238    builtin and then its argument prototype would still apply.  */
43239 #ifdef __cplusplus
43240 extern "C"
43241 #endif
43242 char localtime_r ();
43243 /* The GNU C library defines this for functions which it implements
43244     to always fail with ENOSYS.  Some functions are actually named
43245     something starting with __ and the normal name is an alias.  */
43246 #if defined __stub_localtime_r || defined __stub___localtime_r
43247 choke me
43248 #endif
43249
43250 int
43251 main ()
43252 {
43253 return localtime_r ();
43254   ;
43255   return 0;
43256 }
43257 _ACEOF
43258 rm -f conftest.$ac_objext conftest$ac_exeext
43259 if { (ac_try="$ac_link"
43260 case "(($ac_try" in
43261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43262   *) ac_try_echo=$ac_try;;
43263 esac
43264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43265   (eval "$ac_link") 2>conftest.er1
43266   ac_status=$?
43267   grep -v '^ *+' conftest.er1 >conftest.err
43268   rm -f conftest.er1
43269   cat conftest.err >&5
43270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43271   (exit $ac_status); } && {
43272          test -z "$ac_c_werror_flag" ||
43273          test ! -s conftest.err
43274        } && test -s conftest$ac_exeext &&
43275        $as_test_x conftest$ac_exeext; then
43276   ac_cv_func_localtime_r=yes
43277 else
43278   echo "$as_me: failed program was:" >&5
43279 sed 's/^/| /' conftest.$ac_ext >&5
43280
43281         ac_cv_func_localtime_r=no
43282 fi
43283
43284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43285       conftest$ac_exeext conftest.$ac_ext
43286 fi
43287 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
43288 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
43289 if test $ac_cv_func_localtime_r = yes; then
43290    cat >>confdefs.h <<\_ACEOF
43291 #define HAVE_LOCALTIME_R 1
43292 _ACEOF
43293
43294 fi
43295
43296 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
43297 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
43298 if test "${ac_cv_func_gmtime_r+set}" = set; then
43299   echo $ECHO_N "(cached) $ECHO_C" >&6
43300 else
43301   cat >conftest.$ac_ext <<_ACEOF
43302 /* confdefs.h.  */
43303 _ACEOF
43304 cat confdefs.h >>conftest.$ac_ext
43305 cat >>conftest.$ac_ext <<_ACEOF
43306 /* end confdefs.h.  */
43307 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
43308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43309 #define gmtime_r innocuous_gmtime_r
43310
43311 /* System header to define __stub macros and hopefully few prototypes,
43312     which can conflict with char gmtime_r (); below.
43313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43314     <limits.h> exists even on freestanding compilers.  */
43315
43316 #ifdef __STDC__
43317 # include <limits.h>
43318 #else
43319 # include <assert.h>
43320 #endif
43321
43322 #undef gmtime_r
43323
43324 /* Override any GCC internal prototype to avoid an error.
43325    Use char because int might match the return type of a GCC
43326    builtin and then its argument prototype would still apply.  */
43327 #ifdef __cplusplus
43328 extern "C"
43329 #endif
43330 char gmtime_r ();
43331 /* The GNU C library defines this for functions which it implements
43332     to always fail with ENOSYS.  Some functions are actually named
43333     something starting with __ and the normal name is an alias.  */
43334 #if defined __stub_gmtime_r || defined __stub___gmtime_r
43335 choke me
43336 #endif
43337
43338 int
43339 main ()
43340 {
43341 return gmtime_r ();
43342   ;
43343   return 0;
43344 }
43345 _ACEOF
43346 rm -f conftest.$ac_objext conftest$ac_exeext
43347 if { (ac_try="$ac_link"
43348 case "(($ac_try" in
43349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43350   *) ac_try_echo=$ac_try;;
43351 esac
43352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43353   (eval "$ac_link") 2>conftest.er1
43354   ac_status=$?
43355   grep -v '^ *+' conftest.er1 >conftest.err
43356   rm -f conftest.er1
43357   cat conftest.err >&5
43358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43359   (exit $ac_status); } && {
43360          test -z "$ac_c_werror_flag" ||
43361          test ! -s conftest.err
43362        } && test -s conftest$ac_exeext &&
43363        $as_test_x conftest$ac_exeext; then
43364   ac_cv_func_gmtime_r=yes
43365 else
43366   echo "$as_me: failed program was:" >&5
43367 sed 's/^/| /' conftest.$ac_ext >&5
43368
43369         ac_cv_func_gmtime_r=no
43370 fi
43371
43372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43373       conftest$ac_exeext conftest.$ac_ext
43374 fi
43375 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
43376 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
43377 if test $ac_cv_func_gmtime_r = yes; then
43378    cat >>confdefs.h <<\_ACEOF
43379 #define HAVE_GMTIME_R 1
43380 _ACEOF
43381
43382 fi
43383
43384 { echo "$as_me:$LINENO: checking for readdir_r" >&5
43385 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
43386 if test "${ac_cv_func_readdir_r+set}" = set; then
43387   echo $ECHO_N "(cached) $ECHO_C" >&6
43388 else
43389   cat >conftest.$ac_ext <<_ACEOF
43390 /* confdefs.h.  */
43391 _ACEOF
43392 cat confdefs.h >>conftest.$ac_ext
43393 cat >>conftest.$ac_ext <<_ACEOF
43394 /* end confdefs.h.  */
43395 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
43396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43397 #define readdir_r innocuous_readdir_r
43398
43399 /* System header to define __stub macros and hopefully few prototypes,
43400     which can conflict with char readdir_r (); below.
43401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43402     <limits.h> exists even on freestanding compilers.  */
43403
43404 #ifdef __STDC__
43405 # include <limits.h>
43406 #else
43407 # include <assert.h>
43408 #endif
43409
43410 #undef readdir_r
43411
43412 /* Override any GCC internal prototype to avoid an error.
43413    Use char because int might match the return type of a GCC
43414    builtin and then its argument prototype would still apply.  */
43415 #ifdef __cplusplus
43416 extern "C"
43417 #endif
43418 char readdir_r ();
43419 /* The GNU C library defines this for functions which it implements
43420     to always fail with ENOSYS.  Some functions are actually named
43421     something starting with __ and the normal name is an alias.  */
43422 #if defined __stub_readdir_r || defined __stub___readdir_r
43423 choke me
43424 #endif
43425
43426 int
43427 main ()
43428 {
43429 return readdir_r ();
43430   ;
43431   return 0;
43432 }
43433 _ACEOF
43434 rm -f conftest.$ac_objext conftest$ac_exeext
43435 if { (ac_try="$ac_link"
43436 case "(($ac_try" in
43437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43438   *) ac_try_echo=$ac_try;;
43439 esac
43440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43441   (eval "$ac_link") 2>conftest.er1
43442   ac_status=$?
43443   grep -v '^ *+' conftest.er1 >conftest.err
43444   rm -f conftest.er1
43445   cat conftest.err >&5
43446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43447   (exit $ac_status); } && {
43448          test -z "$ac_c_werror_flag" ||
43449          test ! -s conftest.err
43450        } && test -s conftest$ac_exeext &&
43451        $as_test_x conftest$ac_exeext; then
43452   ac_cv_func_readdir_r=yes
43453 else
43454   echo "$as_me: failed program was:" >&5
43455 sed 's/^/| /' conftest.$ac_ext >&5
43456
43457         ac_cv_func_readdir_r=no
43458 fi
43459
43460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43461       conftest$ac_exeext conftest.$ac_ext
43462 fi
43463 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
43464 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
43465 if test $ac_cv_func_readdir_r = yes; then
43466    cat >>confdefs.h <<\_ACEOF
43467 #define HAVE_READDIR_R 1
43468 _ACEOF
43469
43470 fi
43471
43472
43473
43474
43475     ac_ext=c
43476 ac_cpp='$CPP $CPPFLAGS'
43477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43480
43481     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
43482 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
43483
43484     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
43485   echo $ECHO_N "(cached) $ECHO_C" >&6
43486 else
43487
43488
43489 ################################################################
43490
43491 ac_cv_func_which_gethostbyname_r=unknown
43492
43493 #
43494 # ONE ARGUMENT (sanity check)
43495 #
43496
43497 # This should fail, as there is no variant of gethostbyname_r() that takes
43498 # a single argument. If it actually compiles, then we can assume that
43499 # netdb.h is not declaring the function, and the compiler is thereby
43500 # assuming an implicit prototype. In which case, we're out of luck.
43501 #
43502 cat >conftest.$ac_ext <<_ACEOF
43503 /* confdefs.h.  */
43504 _ACEOF
43505 cat confdefs.h >>conftest.$ac_ext
43506 cat >>conftest.$ac_ext <<_ACEOF
43507 /* end confdefs.h.  */
43508 #include <netdb.h>
43509 int
43510 main ()
43511 {
43512
43513             char *name = "www.gnu.org";
43514             (void)gethostbyname_r(name) /* ; */
43515
43516   ;
43517   return 0;
43518 }
43519 _ACEOF
43520 rm -f conftest.$ac_objext
43521 if { (ac_try="$ac_compile"
43522 case "(($ac_try" in
43523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43524   *) ac_try_echo=$ac_try;;
43525 esac
43526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43527   (eval "$ac_compile") 2>conftest.er1
43528   ac_status=$?
43529   grep -v '^ *+' conftest.er1 >conftest.err
43530   rm -f conftest.er1
43531   cat conftest.err >&5
43532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43533   (exit $ac_status); } && {
43534          test -z "$ac_c_werror_flag" ||
43535          test ! -s conftest.err
43536        } && test -s conftest.$ac_objext; then
43537   ac_cv_func_which_gethostbyname_r=no
43538 else
43539   echo "$as_me: failed program was:" >&5
43540 sed 's/^/| /' conftest.$ac_ext >&5
43541
43542
43543 fi
43544
43545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43546
43547 #
43548 # SIX ARGUMENTS
43549 # (e.g. Linux)
43550 #
43551
43552 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43553
43554 cat >conftest.$ac_ext <<_ACEOF
43555 /* confdefs.h.  */
43556 _ACEOF
43557 cat confdefs.h >>conftest.$ac_ext
43558 cat >>conftest.$ac_ext <<_ACEOF
43559 /* end confdefs.h.  */
43560 #include <netdb.h>
43561 int
43562 main ()
43563 {
43564
43565             char *name = "www.gnu.org";
43566             struct hostent ret, *retp;
43567             char buf[1024];
43568             int buflen = 1024;
43569             int my_h_errno;
43570             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
43571
43572   ;
43573   return 0;
43574 }
43575 _ACEOF
43576 rm -f conftest.$ac_objext
43577 if { (ac_try="$ac_compile"
43578 case "(($ac_try" in
43579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43580   *) ac_try_echo=$ac_try;;
43581 esac
43582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43583   (eval "$ac_compile") 2>conftest.er1
43584   ac_status=$?
43585   grep -v '^ *+' conftest.er1 >conftest.err
43586   rm -f conftest.er1
43587   cat conftest.err >&5
43588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589   (exit $ac_status); } && {
43590          test -z "$ac_c_werror_flag" ||
43591          test ! -s conftest.err
43592        } && test -s conftest.$ac_objext; then
43593   ac_cv_func_which_gethostbyname_r=six
43594 else
43595   echo "$as_me: failed program was:" >&5
43596 sed 's/^/| /' conftest.$ac_ext >&5
43597
43598
43599 fi
43600
43601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43602
43603 fi
43604
43605 #
43606 # FIVE ARGUMENTS
43607 # (e.g. Solaris)
43608 #
43609
43610 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43611
43612 cat >conftest.$ac_ext <<_ACEOF
43613 /* confdefs.h.  */
43614 _ACEOF
43615 cat confdefs.h >>conftest.$ac_ext
43616 cat >>conftest.$ac_ext <<_ACEOF
43617 /* end confdefs.h.  */
43618 #include <netdb.h>
43619 int
43620 main ()
43621 {
43622
43623             char *name = "www.gnu.org";
43624             struct hostent ret;
43625             char buf[1024];
43626             int buflen = 1024;
43627             int my_h_errno;
43628             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43629
43630   ;
43631   return 0;
43632 }
43633 _ACEOF
43634 rm -f conftest.$ac_objext
43635 if { (ac_try="$ac_compile"
43636 case "(($ac_try" in
43637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43638   *) ac_try_echo=$ac_try;;
43639 esac
43640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43641   (eval "$ac_compile") 2>conftest.er1
43642   ac_status=$?
43643   grep -v '^ *+' conftest.er1 >conftest.err
43644   rm -f conftest.er1
43645   cat conftest.err >&5
43646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43647   (exit $ac_status); } && {
43648          test -z "$ac_c_werror_flag" ||
43649          test ! -s conftest.err
43650        } && test -s conftest.$ac_objext; then
43651   ac_cv_func_which_gethostbyname_r=five
43652 else
43653   echo "$as_me: failed program was:" >&5
43654 sed 's/^/| /' conftest.$ac_ext >&5
43655
43656
43657 fi
43658
43659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43660
43661 fi
43662
43663 #
43664 # THREE ARGUMENTS
43665 # (e.g. AIX, HP-UX, Tru64)
43666 #
43667
43668 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43669
43670 cat >conftest.$ac_ext <<_ACEOF
43671 /* confdefs.h.  */
43672 _ACEOF
43673 cat confdefs.h >>conftest.$ac_ext
43674 cat >>conftest.$ac_ext <<_ACEOF
43675 /* end confdefs.h.  */
43676 #include <netdb.h>
43677 int
43678 main ()
43679 {
43680
43681             char *name = "www.gnu.org";
43682             struct hostent ret;
43683             struct hostent_data data;
43684             (void)gethostbyname_r(name, &ret, &data) /* ; */
43685
43686   ;
43687   return 0;
43688 }
43689 _ACEOF
43690 rm -f conftest.$ac_objext
43691 if { (ac_try="$ac_compile"
43692 case "(($ac_try" in
43693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43694   *) ac_try_echo=$ac_try;;
43695 esac
43696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43697   (eval "$ac_compile") 2>conftest.er1
43698   ac_status=$?
43699   grep -v '^ *+' conftest.er1 >conftest.err
43700   rm -f conftest.er1
43701   cat conftest.err >&5
43702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43703   (exit $ac_status); } && {
43704          test -z "$ac_c_werror_flag" ||
43705          test ! -s conftest.err
43706        } && test -s conftest.$ac_objext; then
43707   ac_cv_func_which_gethostbyname_r=three
43708 else
43709   echo "$as_me: failed program was:" >&5
43710 sed 's/^/| /' conftest.$ac_ext >&5
43711
43712
43713 fi
43714
43715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43716
43717 fi
43718
43719 ################################################################
43720
43721
43722 fi
43723
43724 case "$ac_cv_func_which_gethostbyname_r" in
43725     three)
43726     { echo "$as_me:$LINENO: result: three" >&5
43727 echo "${ECHO_T}three" >&6; }
43728     cat >>confdefs.h <<\_ACEOF
43729 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43730 _ACEOF
43731
43732     ;;
43733
43734     five)
43735     { echo "$as_me:$LINENO: result: five" >&5
43736 echo "${ECHO_T}five" >&6; }
43737     cat >>confdefs.h <<\_ACEOF
43738 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43739 _ACEOF
43740
43741     ;;
43742
43743     six)
43744     { echo "$as_me:$LINENO: result: six" >&5
43745 echo "${ECHO_T}six" >&6; }
43746     cat >>confdefs.h <<\_ACEOF
43747 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43748 _ACEOF
43749
43750     ;;
43751
43752     no)
43753     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43754 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43755     ;;
43756
43757     unknown)
43758     { echo "$as_me:$LINENO: result: can't tell" >&5
43759 echo "${ECHO_T}can't tell" >&6; }
43760     ;;
43761
43762     *)
43763     { { echo "$as_me:$LINENO: error: internal error" >&5
43764 echo "$as_me: error: internal error" >&2;}
43765    { (exit 1); exit 1; }; }
43766     ;;
43767 esac
43768
43769 ac_ext=c
43770 ac_cpp='$CPP $CPPFLAGS'
43771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43774
43775
43776
43777       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43778               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43779           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43780 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43781 if test "${ac_cv_func_gethostbyname+set}" = set; then
43782   echo $ECHO_N "(cached) $ECHO_C" >&6
43783 else
43784   cat >conftest.$ac_ext <<_ACEOF
43785 /* confdefs.h.  */
43786 _ACEOF
43787 cat confdefs.h >>conftest.$ac_ext
43788 cat >>conftest.$ac_ext <<_ACEOF
43789 /* end confdefs.h.  */
43790 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43792 #define gethostbyname innocuous_gethostbyname
43793
43794 /* System header to define __stub macros and hopefully few prototypes,
43795     which can conflict with char gethostbyname (); below.
43796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43797     <limits.h> exists even on freestanding compilers.  */
43798
43799 #ifdef __STDC__
43800 # include <limits.h>
43801 #else
43802 # include <assert.h>
43803 #endif
43804
43805 #undef gethostbyname
43806
43807 /* Override any GCC internal prototype to avoid an error.
43808    Use char because int might match the return type of a GCC
43809    builtin and then its argument prototype would still apply.  */
43810 #ifdef __cplusplus
43811 extern "C"
43812 #endif
43813 char gethostbyname ();
43814 /* The GNU C library defines this for functions which it implements
43815     to always fail with ENOSYS.  Some functions are actually named
43816     something starting with __ and the normal name is an alias.  */
43817 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43818 choke me
43819 #endif
43820
43821 int
43822 main ()
43823 {
43824 return gethostbyname ();
43825   ;
43826   return 0;
43827 }
43828 _ACEOF
43829 rm -f conftest.$ac_objext conftest$ac_exeext
43830 if { (ac_try="$ac_link"
43831 case "(($ac_try" in
43832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43833   *) ac_try_echo=$ac_try;;
43834 esac
43835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43836   (eval "$ac_link") 2>conftest.er1
43837   ac_status=$?
43838   grep -v '^ *+' conftest.er1 >conftest.err
43839   rm -f conftest.er1
43840   cat conftest.err >&5
43841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43842   (exit $ac_status); } && {
43843          test -z "$ac_c_werror_flag" ||
43844          test ! -s conftest.err
43845        } && test -s conftest$ac_exeext &&
43846        $as_test_x conftest$ac_exeext; then
43847   ac_cv_func_gethostbyname=yes
43848 else
43849   echo "$as_me: failed program was:" >&5
43850 sed 's/^/| /' conftest.$ac_ext >&5
43851
43852         ac_cv_func_gethostbyname=no
43853 fi
43854
43855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43856       conftest$ac_exeext conftest.$ac_ext
43857 fi
43858 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43859 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43860 if test $ac_cv_func_gethostbyname = yes; then
43861    cat >>confdefs.h <<\_ACEOF
43862 #define HAVE_GETHOSTBYNAME 1
43863 _ACEOF
43864
43865 fi
43866
43867       fi
43868
43869 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43870 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43871 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43872   echo $ECHO_N "(cached) $ECHO_C" >&6
43873 else
43874
43875                 ac_ext=cpp
43876 ac_cpp='$CXXCPP $CPPFLAGS'
43877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43880
43881
43882         cat >conftest.$ac_ext <<_ACEOF
43883 /* confdefs.h.  */
43884 _ACEOF
43885 cat confdefs.h >>conftest.$ac_ext
43886 cat >>conftest.$ac_ext <<_ACEOF
43887 /* end confdefs.h.  */
43888 #include <netdb.h>
43889 int
43890 main ()
43891 {
43892
43893                 char *name;
43894                 char *proto;
43895                 struct servent *se, *res;
43896                 char buffer[2048];
43897                 int buflen = 2048;
43898                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43899
43900   ;
43901   return 0;
43902 }
43903 _ACEOF
43904 rm -f conftest.$ac_objext
43905 if { (ac_try="$ac_compile"
43906 case "(($ac_try" in
43907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43908   *) ac_try_echo=$ac_try;;
43909 esac
43910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43911   (eval "$ac_compile") 2>conftest.er1
43912   ac_status=$?
43913   grep -v '^ *+' conftest.er1 >conftest.err
43914   rm -f conftest.er1
43915   cat conftest.err >&5
43916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917   (exit $ac_status); } && {
43918          test -z "$ac_cxx_werror_flag" ||
43919          test ! -s conftest.err
43920        } && test -s conftest.$ac_objext; then
43921   ac_cv_func_which_getservbyname_r=six
43922 else
43923   echo "$as_me: failed program was:" >&5
43924 sed 's/^/| /' conftest.$ac_ext >&5
43925
43926
43927                 cat >conftest.$ac_ext <<_ACEOF
43928 /* confdefs.h.  */
43929 _ACEOF
43930 cat confdefs.h >>conftest.$ac_ext
43931 cat >>conftest.$ac_ext <<_ACEOF
43932 /* end confdefs.h.  */
43933 #include <netdb.h>
43934 int
43935 main ()
43936 {
43937
43938                         char *name;
43939                         char *proto;
43940                         struct servent *se;
43941                         char buffer[2048];
43942                         int buflen = 2048;
43943                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43944
43945   ;
43946   return 0;
43947 }
43948 _ACEOF
43949 rm -f conftest.$ac_objext
43950 if { (ac_try="$ac_compile"
43951 case "(($ac_try" in
43952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43953   *) ac_try_echo=$ac_try;;
43954 esac
43955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43956   (eval "$ac_compile") 2>conftest.er1
43957   ac_status=$?
43958   grep -v '^ *+' conftest.er1 >conftest.err
43959   rm -f conftest.er1
43960   cat conftest.err >&5
43961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962   (exit $ac_status); } && {
43963          test -z "$ac_cxx_werror_flag" ||
43964          test ! -s conftest.err
43965        } && test -s conftest.$ac_objext; then
43966   ac_cv_func_which_getservbyname_r=five
43967 else
43968   echo "$as_me: failed program was:" >&5
43969 sed 's/^/| /' conftest.$ac_ext >&5
43970
43971
43972                         cat >conftest.$ac_ext <<_ACEOF
43973 /* confdefs.h.  */
43974 _ACEOF
43975 cat confdefs.h >>conftest.$ac_ext
43976 cat >>conftest.$ac_ext <<_ACEOF
43977 /* end confdefs.h.  */
43978 #include <netdb.h>
43979 int
43980 main ()
43981 {
43982
43983                                 char *name;
43984                                 char *proto;
43985                                 struct servent *se;
43986                                 struct servent_data data;
43987                                 (void) getservbyname_r(name, proto, se, &data);
43988
43989   ;
43990   return 0;
43991 }
43992 _ACEOF
43993 rm -f conftest.$ac_objext
43994 if { (ac_try="$ac_compile"
43995 case "(($ac_try" in
43996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43997   *) ac_try_echo=$ac_try;;
43998 esac
43999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44000   (eval "$ac_compile") 2>conftest.er1
44001   ac_status=$?
44002   grep -v '^ *+' conftest.er1 >conftest.err
44003   rm -f conftest.er1
44004   cat conftest.err >&5
44005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44006   (exit $ac_status); } && {
44007          test -z "$ac_cxx_werror_flag" ||
44008          test ! -s conftest.err
44009        } && test -s conftest.$ac_objext; then
44010   ac_cv_func_which_getservbyname_r=four
44011 else
44012   echo "$as_me: failed program was:" >&5
44013 sed 's/^/| /' conftest.$ac_ext >&5
44014
44015         ac_cv_func_which_getservbyname_r=no
44016
44017 fi
44018
44019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44020
44021
44022 fi
44023
44024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44025
44026
44027 fi
44028
44029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44030         ac_ext=c
44031 ac_cpp='$CPP $CPPFLAGS'
44032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44035
44036
44037
44038 fi
44039 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
44040 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
44041
44042 if test $ac_cv_func_which_getservbyname_r = six; then
44043   cat >>confdefs.h <<\_ACEOF
44044 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
44045 _ACEOF
44046
44047 elif test $ac_cv_func_which_getservbyname_r = five; then
44048   cat >>confdefs.h <<\_ACEOF
44049 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
44050 _ACEOF
44051
44052 elif test $ac_cv_func_which_getservbyname_r = four; then
44053   cat >>confdefs.h <<\_ACEOF
44054 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
44055 _ACEOF
44056
44057 fi
44058
44059
44060       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
44061               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
44062
44063 for ac_func in getservbyname
44064 do
44065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44069   echo $ECHO_N "(cached) $ECHO_C" >&6
44070 else
44071   cat >conftest.$ac_ext <<_ACEOF
44072 /* confdefs.h.  */
44073 _ACEOF
44074 cat confdefs.h >>conftest.$ac_ext
44075 cat >>conftest.$ac_ext <<_ACEOF
44076 /* end confdefs.h.  */
44077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44079 #define $ac_func innocuous_$ac_func
44080
44081 /* System header to define __stub macros and hopefully few prototypes,
44082     which can conflict with char $ac_func (); below.
44083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44084     <limits.h> exists even on freestanding compilers.  */
44085
44086 #ifdef __STDC__
44087 # include <limits.h>
44088 #else
44089 # include <assert.h>
44090 #endif
44091
44092 #undef $ac_func
44093
44094 /* Override any GCC internal prototype to avoid an error.
44095    Use char because int might match the return type of a GCC
44096    builtin and then its argument prototype would still apply.  */
44097 #ifdef __cplusplus
44098 extern "C"
44099 #endif
44100 char $ac_func ();
44101 /* The GNU C library defines this for functions which it implements
44102     to always fail with ENOSYS.  Some functions are actually named
44103     something starting with __ and the normal name is an alias.  */
44104 #if defined __stub_$ac_func || defined __stub___$ac_func
44105 choke me
44106 #endif
44107
44108 int
44109 main ()
44110 {
44111 return $ac_func ();
44112   ;
44113   return 0;
44114 }
44115 _ACEOF
44116 rm -f conftest.$ac_objext conftest$ac_exeext
44117 if { (ac_try="$ac_link"
44118 case "(($ac_try" in
44119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44120   *) ac_try_echo=$ac_try;;
44121 esac
44122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44123   (eval "$ac_link") 2>conftest.er1
44124   ac_status=$?
44125   grep -v '^ *+' conftest.er1 >conftest.err
44126   rm -f conftest.er1
44127   cat conftest.err >&5
44128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129   (exit $ac_status); } && {
44130          test -z "$ac_c_werror_flag" ||
44131          test ! -s conftest.err
44132        } && test -s conftest$ac_exeext &&
44133        $as_test_x conftest$ac_exeext; then
44134   eval "$as_ac_var=yes"
44135 else
44136   echo "$as_me: failed program was:" >&5
44137 sed 's/^/| /' conftest.$ac_ext >&5
44138
44139         eval "$as_ac_var=no"
44140 fi
44141
44142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44143       conftest$ac_exeext conftest.$ac_ext
44144 fi
44145 ac_res=`eval echo '${'$as_ac_var'}'`
44146                { echo "$as_me:$LINENO: result: $ac_res" >&5
44147 echo "${ECHO_T}$ac_res" >&6; }
44148 if test `eval echo '${'$as_ac_var'}'` = yes; then
44149   cat >>confdefs.h <<_ACEOF
44150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44151 _ACEOF
44152   cat >>confdefs.h <<\_ACEOF
44153 #define HAVE_GETSERVBYNAME 1
44154 _ACEOF
44155
44156 fi
44157 done
44158
44159       fi
44160
44161 if test "$wxUSE_THREADS" = "yes"; then
44162   cat >>confdefs.h <<\_ACEOF
44163 #define wxUSE_THREADS 1
44164 _ACEOF
44165
44166
44167   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
44168 else
44169       if test "$wx_cv_func_strtok_r" = "yes"; then
44170     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
44171 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
44172     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
44173         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
44174         { echo "$as_me:$LINENO: result: yes" >&5
44175 echo "${ECHO_T}yes" >&6; }
44176     else
44177         { echo "$as_me:$LINENO: result: no" >&5
44178 echo "${ECHO_T}no" >&6; }
44179     fi
44180   fi
44181 fi
44182
44183 if test "$WXGTK20" = 1 ; then
44184   cat >>confdefs.h <<_ACEOF
44185 #define __WXGTK20__ $WXGTK20
44186 _ACEOF
44187
44188   WXGTK12=1
44189 fi
44190
44191 if test "$WXGTK12" = 1 ; then
44192   cat >>confdefs.h <<_ACEOF
44193 #define __WXGTK12__ $WXGTK12
44194 _ACEOF
44195
44196 fi
44197
44198 if test "$WXGTK127" = 1 ; then
44199   cat >>confdefs.h <<_ACEOF
44200 #define __WXGTK127__ $WXGTK127
44201 _ACEOF
44202
44203 fi
44204
44205 if test "$WXGPE" = 1 ; then
44206   cat >>confdefs.h <<_ACEOF
44207 #define __WXGPE__ $WXGPE
44208 _ACEOF
44209
44210 fi
44211
44212 DEBUG_CFLAGS=
44213 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
44214     DEBUG_CFLAGS="-g"
44215     wxUSE_OPTIMISE=no
44216 fi
44217
44218 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
44219     wxUSE_DEBUG_INFO=yes
44220     if test "$GCC" = yes; then
44221         DEBUG_CFLAGS="-ggdb"
44222     fi
44223 fi
44224
44225 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
44226     cat >>confdefs.h <<\_ACEOF
44227 #define WXDEBUG 1
44228 _ACEOF
44229
44230     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
44231 else
44232     if test "$wxUSE_GTK" = 1 ; then
44233         if test "x$wxGTK_VERSION" = "x1" ; then
44234             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
44235         fi
44236     fi
44237 fi
44238
44239 if test "$wxUSE_MEM_TRACING" = "yes" ; then
44240     cat >>confdefs.h <<\_ACEOF
44241 #define wxUSE_MEMORY_TRACING 1
44242 _ACEOF
44243
44244     cat >>confdefs.h <<\_ACEOF
44245 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
44246 _ACEOF
44247
44248     cat >>confdefs.h <<\_ACEOF
44249 #define wxUSE_DEBUG_NEW_ALWAYS 1
44250 _ACEOF
44251
44252     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
44253 fi
44254
44255 if test "$wxUSE_DMALLOC" = "yes" ; then
44256     DMALLOC_LIBS="-ldmallocthcxx"
44257 fi
44258
44259 PROFILE_FLAGS=
44260 if test "$wxUSE_PROFILE" = "yes" ; then
44261     PROFILE_FLAGS=" -pg"
44262 fi
44263
44264 if test "$GCC" = "yes" ; then
44265     if test "$wxUSE_NO_RTTI" = "yes" ; then
44266         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
44267     fi
44268     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44269         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
44270     fi
44271     if test "$wxUSE_PERMISSIVE" = "yes" ; then
44272         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
44273     fi
44274
44275                                                 case "${host}" in
44276       powerpc*-*-aix* )
44277         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
44278         ;;
44279       *-hppa* )
44280         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
44281         ;;
44282     esac
44283 fi
44284
44285 OPTIMISE_CFLAGS=
44286 if test "$wxUSE_OPTIMISE" = "no" ; then
44287     if test "$GCC" = yes ; then
44288                         OPTIMISE_CFLAGS="-O0"
44289     fi
44290 else
44291     if test "$GCC" = yes ; then
44292         case "${host}" in
44293             *-pc-os2_emx | *-pc-os2-emx )
44294                                                 OPTIMISE_CFLAGS="-O2"
44295             ;;
44296             *)
44297                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
44298             ;;
44299         esac
44300     else
44301         OPTIMISE_CFLAGS="-O"
44302     fi
44303 fi
44304
44305
44306 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
44307     cat >>confdefs.h <<\_ACEOF
44308 #define WXWIN_COMPATIBILITY_2_6 1
44309 _ACEOF
44310
44311
44312     WXWIN_COMPATIBILITY_2_8="yes"
44313 fi
44314
44315 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
44316     cat >>confdefs.h <<\_ACEOF
44317 #define WXWIN_COMPATIBILITY_2_8 1
44318 _ACEOF
44319
44320 fi
44321
44322
44323 if test "$wxUSE_GUI" = "yes"; then
44324     cat >>confdefs.h <<\_ACEOF
44325 #define wxUSE_GUI 1
44326 _ACEOF
44327
44328
44329                                             fi
44330
44331
44332 if test "$wxUSE_UNIX" = "yes"; then
44333   cat >>confdefs.h <<\_ACEOF
44334 #define wxUSE_UNIX 1
44335 _ACEOF
44336
44337 fi
44338
44339
44340 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
44341
44342     HAVE_DL_FUNCS=0
44343     HAVE_SHL_FUNCS=0
44344     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44345         if test "$USE_DARWIN" = 1; then
44346                         HAVE_DL_FUNCS=1
44347         elif test "$USE_DOS" = 1; then
44348             HAVE_DL_FUNCS=0
44349         else
44350
44351 for ac_func in dlopen
44352 do
44353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44357   echo $ECHO_N "(cached) $ECHO_C" >&6
44358 else
44359   cat >conftest.$ac_ext <<_ACEOF
44360 /* confdefs.h.  */
44361 _ACEOF
44362 cat confdefs.h >>conftest.$ac_ext
44363 cat >>conftest.$ac_ext <<_ACEOF
44364 /* end confdefs.h.  */
44365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44367 #define $ac_func innocuous_$ac_func
44368
44369 /* System header to define __stub macros and hopefully few prototypes,
44370     which can conflict with char $ac_func (); below.
44371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44372     <limits.h> exists even on freestanding compilers.  */
44373
44374 #ifdef __STDC__
44375 # include <limits.h>
44376 #else
44377 # include <assert.h>
44378 #endif
44379
44380 #undef $ac_func
44381
44382 /* Override any GCC internal prototype to avoid an error.
44383    Use char because int might match the return type of a GCC
44384    builtin and then its argument prototype would still apply.  */
44385 #ifdef __cplusplus
44386 extern "C"
44387 #endif
44388 char $ac_func ();
44389 /* The GNU C library defines this for functions which it implements
44390     to always fail with ENOSYS.  Some functions are actually named
44391     something starting with __ and the normal name is an alias.  */
44392 #if defined __stub_$ac_func || defined __stub___$ac_func
44393 choke me
44394 #endif
44395
44396 int
44397 main ()
44398 {
44399 return $ac_func ();
44400   ;
44401   return 0;
44402 }
44403 _ACEOF
44404 rm -f conftest.$ac_objext conftest$ac_exeext
44405 if { (ac_try="$ac_link"
44406 case "(($ac_try" in
44407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44408   *) ac_try_echo=$ac_try;;
44409 esac
44410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44411   (eval "$ac_link") 2>conftest.er1
44412   ac_status=$?
44413   grep -v '^ *+' conftest.er1 >conftest.err
44414   rm -f conftest.er1
44415   cat conftest.err >&5
44416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417   (exit $ac_status); } && {
44418          test -z "$ac_c_werror_flag" ||
44419          test ! -s conftest.err
44420        } && test -s conftest$ac_exeext &&
44421        $as_test_x conftest$ac_exeext; then
44422   eval "$as_ac_var=yes"
44423 else
44424   echo "$as_me: failed program was:" >&5
44425 sed 's/^/| /' conftest.$ac_ext >&5
44426
44427         eval "$as_ac_var=no"
44428 fi
44429
44430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44431       conftest$ac_exeext conftest.$ac_ext
44432 fi
44433 ac_res=`eval echo '${'$as_ac_var'}'`
44434                { echo "$as_me:$LINENO: result: $ac_res" >&5
44435 echo "${ECHO_T}$ac_res" >&6; }
44436 if test `eval echo '${'$as_ac_var'}'` = yes; then
44437   cat >>confdefs.h <<_ACEOF
44438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44439 _ACEOF
44440
44441                 cat >>confdefs.h <<\_ACEOF
44442 #define HAVE_DLOPEN 1
44443 _ACEOF
44444
44445                 HAVE_DL_FUNCS=1
44446
44447 else
44448
44449                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
44450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
44451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
44452   echo $ECHO_N "(cached) $ECHO_C" >&6
44453 else
44454   ac_check_lib_save_LIBS=$LIBS
44455 LIBS="-ldl  $LIBS"
44456 cat >conftest.$ac_ext <<_ACEOF
44457 /* confdefs.h.  */
44458 _ACEOF
44459 cat confdefs.h >>conftest.$ac_ext
44460 cat >>conftest.$ac_ext <<_ACEOF
44461 /* end confdefs.h.  */
44462
44463 /* Override any GCC internal prototype to avoid an error.
44464    Use char because int might match the return type of a GCC
44465    builtin and then its argument prototype would still apply.  */
44466 #ifdef __cplusplus
44467 extern "C"
44468 #endif
44469 char dlopen ();
44470 int
44471 main ()
44472 {
44473 return dlopen ();
44474   ;
44475   return 0;
44476 }
44477 _ACEOF
44478 rm -f conftest.$ac_objext conftest$ac_exeext
44479 if { (ac_try="$ac_link"
44480 case "(($ac_try" in
44481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44482   *) ac_try_echo=$ac_try;;
44483 esac
44484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44485   (eval "$ac_link") 2>conftest.er1
44486   ac_status=$?
44487   grep -v '^ *+' conftest.er1 >conftest.err
44488   rm -f conftest.er1
44489   cat conftest.err >&5
44490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44491   (exit $ac_status); } && {
44492          test -z "$ac_c_werror_flag" ||
44493          test ! -s conftest.err
44494        } && test -s conftest$ac_exeext &&
44495        $as_test_x conftest$ac_exeext; then
44496   ac_cv_lib_dl_dlopen=yes
44497 else
44498   echo "$as_me: failed program was:" >&5
44499 sed 's/^/| /' conftest.$ac_ext >&5
44500
44501         ac_cv_lib_dl_dlopen=no
44502 fi
44503
44504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44505       conftest$ac_exeext conftest.$ac_ext
44506 LIBS=$ac_check_lib_save_LIBS
44507 fi
44508 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
44509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
44510 if test $ac_cv_lib_dl_dlopen = yes; then
44511
44512                                 cat >>confdefs.h <<\_ACEOF
44513 #define HAVE_DLOPEN 1
44514 _ACEOF
44515
44516                                 HAVE_DL_FUNCS=1
44517                                 DL_LINK=" -ldl$DL_LINK"
44518
44519 else
44520
44521
44522 for ac_func in shl_load
44523 do
44524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44528   echo $ECHO_N "(cached) $ECHO_C" >&6
44529 else
44530   cat >conftest.$ac_ext <<_ACEOF
44531 /* confdefs.h.  */
44532 _ACEOF
44533 cat confdefs.h >>conftest.$ac_ext
44534 cat >>conftest.$ac_ext <<_ACEOF
44535 /* end confdefs.h.  */
44536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44538 #define $ac_func innocuous_$ac_func
44539
44540 /* System header to define __stub macros and hopefully few prototypes,
44541     which can conflict with char $ac_func (); below.
44542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44543     <limits.h> exists even on freestanding compilers.  */
44544
44545 #ifdef __STDC__
44546 # include <limits.h>
44547 #else
44548 # include <assert.h>
44549 #endif
44550
44551 #undef $ac_func
44552
44553 /* Override any GCC internal prototype to avoid an error.
44554    Use char because int might match the return type of a GCC
44555    builtin and then its argument prototype would still apply.  */
44556 #ifdef __cplusplus
44557 extern "C"
44558 #endif
44559 char $ac_func ();
44560 /* The GNU C library defines this for functions which it implements
44561     to always fail with ENOSYS.  Some functions are actually named
44562     something starting with __ and the normal name is an alias.  */
44563 #if defined __stub_$ac_func || defined __stub___$ac_func
44564 choke me
44565 #endif
44566
44567 int
44568 main ()
44569 {
44570 return $ac_func ();
44571   ;
44572   return 0;
44573 }
44574 _ACEOF
44575 rm -f conftest.$ac_objext conftest$ac_exeext
44576 if { (ac_try="$ac_link"
44577 case "(($ac_try" in
44578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44579   *) ac_try_echo=$ac_try;;
44580 esac
44581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44582   (eval "$ac_link") 2>conftest.er1
44583   ac_status=$?
44584   grep -v '^ *+' conftest.er1 >conftest.err
44585   rm -f conftest.er1
44586   cat conftest.err >&5
44587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44588   (exit $ac_status); } && {
44589          test -z "$ac_c_werror_flag" ||
44590          test ! -s conftest.err
44591        } && test -s conftest$ac_exeext &&
44592        $as_test_x conftest$ac_exeext; then
44593   eval "$as_ac_var=yes"
44594 else
44595   echo "$as_me: failed program was:" >&5
44596 sed 's/^/| /' conftest.$ac_ext >&5
44597
44598         eval "$as_ac_var=no"
44599 fi
44600
44601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44602       conftest$ac_exeext conftest.$ac_ext
44603 fi
44604 ac_res=`eval echo '${'$as_ac_var'}'`
44605                { echo "$as_me:$LINENO: result: $ac_res" >&5
44606 echo "${ECHO_T}$ac_res" >&6; }
44607 if test `eval echo '${'$as_ac_var'}'` = yes; then
44608   cat >>confdefs.h <<_ACEOF
44609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44610 _ACEOF
44611
44612                                                 cat >>confdefs.h <<\_ACEOF
44613 #define HAVE_SHL_LOAD 1
44614 _ACEOF
44615
44616                                                 HAVE_SHL_FUNCS=1
44617
44618 else
44619
44620                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44621 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44622 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44623   echo $ECHO_N "(cached) $ECHO_C" >&6
44624 else
44625   ac_check_lib_save_LIBS=$LIBS
44626 LIBS="-lshl_load  $LIBS"
44627 cat >conftest.$ac_ext <<_ACEOF
44628 /* confdefs.h.  */
44629 _ACEOF
44630 cat confdefs.h >>conftest.$ac_ext
44631 cat >>conftest.$ac_ext <<_ACEOF
44632 /* end confdefs.h.  */
44633
44634 /* Override any GCC internal prototype to avoid an error.
44635    Use char because int might match the return type of a GCC
44636    builtin and then its argument prototype would still apply.  */
44637 #ifdef __cplusplus
44638 extern "C"
44639 #endif
44640 char dld ();
44641 int
44642 main ()
44643 {
44644 return dld ();
44645   ;
44646   return 0;
44647 }
44648 _ACEOF
44649 rm -f conftest.$ac_objext conftest$ac_exeext
44650 if { (ac_try="$ac_link"
44651 case "(($ac_try" in
44652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44653   *) ac_try_echo=$ac_try;;
44654 esac
44655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44656   (eval "$ac_link") 2>conftest.er1
44657   ac_status=$?
44658   grep -v '^ *+' conftest.er1 >conftest.err
44659   rm -f conftest.er1
44660   cat conftest.err >&5
44661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44662   (exit $ac_status); } && {
44663          test -z "$ac_c_werror_flag" ||
44664          test ! -s conftest.err
44665        } && test -s conftest$ac_exeext &&
44666        $as_test_x conftest$ac_exeext; then
44667   ac_cv_lib_shl_load_dld=yes
44668 else
44669   echo "$as_me: failed program was:" >&5
44670 sed 's/^/| /' conftest.$ac_ext >&5
44671
44672         ac_cv_lib_shl_load_dld=no
44673 fi
44674
44675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44676       conftest$ac_exeext conftest.$ac_ext
44677 LIBS=$ac_check_lib_save_LIBS
44678 fi
44679 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44680 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44681 if test $ac_cv_lib_shl_load_dld = yes; then
44682
44683                                                                 HAVE_SHL_FUNCS=1
44684                                                                 DL_LINK=" -ldld$DL_LINK"
44685
44686 fi
44687
44688
44689 fi
44690 done
44691
44692
44693 fi
44694
44695
44696 fi
44697 done
44698
44699
44700                 if test "$HAVE_DL_FUNCS" = 1; then
44701
44702 for ac_func in dlerror
44703 do
44704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44708   echo $ECHO_N "(cached) $ECHO_C" >&6
44709 else
44710   cat >conftest.$ac_ext <<_ACEOF
44711 /* confdefs.h.  */
44712 _ACEOF
44713 cat confdefs.h >>conftest.$ac_ext
44714 cat >>conftest.$ac_ext <<_ACEOF
44715 /* end confdefs.h.  */
44716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44718 #define $ac_func innocuous_$ac_func
44719
44720 /* System header to define __stub macros and hopefully few prototypes,
44721     which can conflict with char $ac_func (); below.
44722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44723     <limits.h> exists even on freestanding compilers.  */
44724
44725 #ifdef __STDC__
44726 # include <limits.h>
44727 #else
44728 # include <assert.h>
44729 #endif
44730
44731 #undef $ac_func
44732
44733 /* Override any GCC internal prototype to avoid an error.
44734    Use char because int might match the return type of a GCC
44735    builtin and then its argument prototype would still apply.  */
44736 #ifdef __cplusplus
44737 extern "C"
44738 #endif
44739 char $ac_func ();
44740 /* The GNU C library defines this for functions which it implements
44741     to always fail with ENOSYS.  Some functions are actually named
44742     something starting with __ and the normal name is an alias.  */
44743 #if defined __stub_$ac_func || defined __stub___$ac_func
44744 choke me
44745 #endif
44746
44747 int
44748 main ()
44749 {
44750 return $ac_func ();
44751   ;
44752   return 0;
44753 }
44754 _ACEOF
44755 rm -f conftest.$ac_objext conftest$ac_exeext
44756 if { (ac_try="$ac_link"
44757 case "(($ac_try" in
44758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44759   *) ac_try_echo=$ac_try;;
44760 esac
44761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44762   (eval "$ac_link") 2>conftest.er1
44763   ac_status=$?
44764   grep -v '^ *+' conftest.er1 >conftest.err
44765   rm -f conftest.er1
44766   cat conftest.err >&5
44767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44768   (exit $ac_status); } && {
44769          test -z "$ac_c_werror_flag" ||
44770          test ! -s conftest.err
44771        } && test -s conftest$ac_exeext &&
44772        $as_test_x conftest$ac_exeext; then
44773   eval "$as_ac_var=yes"
44774 else
44775   echo "$as_me: failed program was:" >&5
44776 sed 's/^/| /' conftest.$ac_ext >&5
44777
44778         eval "$as_ac_var=no"
44779 fi
44780
44781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44782       conftest$ac_exeext conftest.$ac_ext
44783 fi
44784 ac_res=`eval echo '${'$as_ac_var'}'`
44785                { echo "$as_me:$LINENO: result: $ac_res" >&5
44786 echo "${ECHO_T}$ac_res" >&6; }
44787 if test `eval echo '${'$as_ac_var'}'` = yes; then
44788   cat >>confdefs.h <<_ACEOF
44789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44790 _ACEOF
44791  cat >>confdefs.h <<\_ACEOF
44792 #define HAVE_DLERROR 1
44793 _ACEOF
44794
44795 else
44796
44797                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44798 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44799 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44800   echo $ECHO_N "(cached) $ECHO_C" >&6
44801 else
44802   ac_check_lib_save_LIBS=$LIBS
44803 LIBS="-ldl  $LIBS"
44804 cat >conftest.$ac_ext <<_ACEOF
44805 /* confdefs.h.  */
44806 _ACEOF
44807 cat confdefs.h >>conftest.$ac_ext
44808 cat >>conftest.$ac_ext <<_ACEOF
44809 /* end confdefs.h.  */
44810
44811 /* Override any GCC internal prototype to avoid an error.
44812    Use char because int might match the return type of a GCC
44813    builtin and then its argument prototype would still apply.  */
44814 #ifdef __cplusplus
44815 extern "C"
44816 #endif
44817 char dlerror ();
44818 int
44819 main ()
44820 {
44821 return dlerror ();
44822   ;
44823   return 0;
44824 }
44825 _ACEOF
44826 rm -f conftest.$ac_objext conftest$ac_exeext
44827 if { (ac_try="$ac_link"
44828 case "(($ac_try" in
44829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44830   *) ac_try_echo=$ac_try;;
44831 esac
44832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44833   (eval "$ac_link") 2>conftest.er1
44834   ac_status=$?
44835   grep -v '^ *+' conftest.er1 >conftest.err
44836   rm -f conftest.er1
44837   cat conftest.err >&5
44838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44839   (exit $ac_status); } && {
44840          test -z "$ac_c_werror_flag" ||
44841          test ! -s conftest.err
44842        } && test -s conftest$ac_exeext &&
44843        $as_test_x conftest$ac_exeext; then
44844   ac_cv_lib_dl_dlerror=yes
44845 else
44846   echo "$as_me: failed program was:" >&5
44847 sed 's/^/| /' conftest.$ac_ext >&5
44848
44849         ac_cv_lib_dl_dlerror=no
44850 fi
44851
44852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44853       conftest$ac_exeext conftest.$ac_ext
44854 LIBS=$ac_check_lib_save_LIBS
44855 fi
44856 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44857 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44858 if test $ac_cv_lib_dl_dlerror = yes; then
44859   cat >>confdefs.h <<\_ACEOF
44860 #define HAVE_DLERROR 1
44861 _ACEOF
44862
44863 fi
44864
44865
44866
44867 fi
44868 done
44869
44870         fi
44871         fi
44872
44873         if test "$HAVE_DL_FUNCS" = 0; then
44874             if test "$HAVE_SHL_FUNCS" = 0; then
44875               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44876                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44877 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44878                   wxUSE_DYNAMIC_LOADER=no
44879                   wxUSE_DYNLIB_CLASS=no
44880               else
44881                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44882 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44883               fi
44884             fi
44885         fi
44886     fi
44887 fi
44888
44889 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44890     cat >>confdefs.h <<\_ACEOF
44891 #define wxUSE_DYNAMIC_LOADER 1
44892 _ACEOF
44893
44894 fi
44895 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44896     cat >>confdefs.h <<\_ACEOF
44897 #define wxUSE_DYNLIB_CLASS 1
44898 _ACEOF
44899
44900 fi
44901
44902
44903
44904 if test "$wxUSE_PLUGINS" = "yes" ; then
44905     if test "$wxUSE_SHARED" = "no" ; then
44906         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44907 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44908         wxUSE_PLUGINS=no
44909     fi
44910     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44911         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44912 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44913         wxUSE_PLUGINS=no
44914     fi
44915     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44916         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44917 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44918         wxUSE_PLUGINS=no
44919     fi
44920     if test "$wxUSE_PLUGINS" = "yes" ; then
44921         cat >>confdefs.h <<\_ACEOF
44922 #define wxUSE_PLUGINS 1
44923 _ACEOF
44924
44925     fi
44926 fi
44927
44928
44929 if test "$wxUSE_STL" = "yes"; then
44930   cat >>confdefs.h <<\_ACEOF
44931 #define wxUSE_STL 1
44932 _ACEOF
44933
44934 fi
44935
44936 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44937   cat >>confdefs.h <<\_ACEOF
44938 #define wxUSE_EXTENDED_RTTI 1
44939 _ACEOF
44940
44941 fi
44942
44943 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44944   cat >>confdefs.h <<\_ACEOF
44945 #define wxUSE_APPLE_IEEE 1
44946 _ACEOF
44947
44948 fi
44949
44950 if test "$wxUSE_TIMER" = "yes"; then
44951   cat >>confdefs.h <<\_ACEOF
44952 #define wxUSE_TIMER 1
44953 _ACEOF
44954
44955 fi
44956
44957 if test "$USE_UNIX" = "1" ; then
44958         if test "$wxUSE_MGL" != 1; then
44959                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44960 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44961 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44962   echo $ECHO_N "(cached) $ECHO_C" >&6
44963 else
44964
44965             cat >conftest.$ac_ext <<_ACEOF
44966 /* confdefs.h.  */
44967 _ACEOF
44968 cat confdefs.h >>conftest.$ac_ext
44969 cat >>conftest.$ac_ext <<_ACEOF
44970 /* end confdefs.h.  */
44971
44972                     #include <sys/ioctl.h>
44973                     #include <sys/soundcard.h>
44974
44975 int
44976 main ()
44977 {
44978
44979                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44980
44981   ;
44982   return 0;
44983 }
44984 _ACEOF
44985 rm -f conftest.$ac_objext conftest$ac_exeext
44986 if { (ac_try="$ac_link"
44987 case "(($ac_try" in
44988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44989   *) ac_try_echo=$ac_try;;
44990 esac
44991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44992   (eval "$ac_link") 2>conftest.er1
44993   ac_status=$?
44994   grep -v '^ *+' conftest.er1 >conftest.err
44995   rm -f conftest.er1
44996   cat conftest.err >&5
44997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44998   (exit $ac_status); } && {
44999          test -z "$ac_c_werror_flag" ||
45000          test ! -s conftest.err
45001        } && test -s conftest$ac_exeext &&
45002        $as_test_x conftest$ac_exeext; then
45003   ac_cv_header_sys_soundcard=yes
45004 else
45005   echo "$as_me: failed program was:" >&5
45006 sed 's/^/| /' conftest.$ac_ext >&5
45007
45008
45009                     saveLibs="$LIBS"
45010                     LIBS="$saveLibs -lossaudio"
45011                     cat >conftest.$ac_ext <<_ACEOF
45012 /* confdefs.h.  */
45013 _ACEOF
45014 cat confdefs.h >>conftest.$ac_ext
45015 cat >>conftest.$ac_ext <<_ACEOF
45016 /* end confdefs.h.  */
45017
45018                             #include <sys/ioctl.h>
45019                             #include <sys/soundcard.h>
45020
45021 int
45022 main ()
45023 {
45024
45025                             ioctl(0, SNDCTL_DSP_SPEED, 0);
45026
45027   ;
45028   return 0;
45029 }
45030 _ACEOF
45031 rm -f conftest.$ac_objext conftest$ac_exeext
45032 if { (ac_try="$ac_link"
45033 case "(($ac_try" in
45034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45035   *) ac_try_echo=$ac_try;;
45036 esac
45037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45038   (eval "$ac_link") 2>conftest.er1
45039   ac_status=$?
45040   grep -v '^ *+' conftest.er1 >conftest.err
45041   rm -f conftest.er1
45042   cat conftest.err >&5
45043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45044   (exit $ac_status); } && {
45045          test -z "$ac_c_werror_flag" ||
45046          test ! -s conftest.err
45047        } && test -s conftest$ac_exeext &&
45048        $as_test_x conftest$ac_exeext; then
45049   ac_cv_header_sys_soundcard=yes
45050 else
45051   echo "$as_me: failed program was:" >&5
45052 sed 's/^/| /' conftest.$ac_ext >&5
45053
45054
45055                             LIBS="$saveLibs"
45056                             ac_cv_header_sys_soundcard=no
45057
45058
45059 fi
45060
45061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45062       conftest$ac_exeext conftest.$ac_ext
45063
45064
45065 fi
45066
45067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45068       conftest$ac_exeext conftest.$ac_ext
45069
45070 fi
45071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
45072 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
45073     fi
45074
45075     if test "$ac_cv_header_sys_soundcard" = "yes"; then
45076         cat >>confdefs.h <<\_ACEOF
45077 #define HAVE_SYS_SOUNDCARD_H 1
45078 _ACEOF
45079
45080     fi
45081 fi
45082
45083 WITH_PLUGIN_SDL=0
45084 if test "$wxUSE_SOUND" = "yes"; then
45085   if test "$USE_UNIX" = "1" ; then
45086     if test "$wxUSE_LIBSDL" != "no"; then
45087
45088 # Check whether --with-sdl-prefix was given.
45089 if test "${with_sdl_prefix+set}" = set; then
45090   withval=$with_sdl_prefix; sdl_prefix="$withval"
45091 else
45092   sdl_prefix=""
45093 fi
45094
45095
45096 # Check whether --with-sdl-exec-prefix was given.
45097 if test "${with_sdl_exec_prefix+set}" = set; then
45098   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
45099 else
45100   sdl_exec_prefix=""
45101 fi
45102
45103 # Check whether --enable-sdltest was given.
45104 if test "${enable_sdltest+set}" = set; then
45105   enableval=$enable_sdltest;
45106 else
45107   enable_sdltest=yes
45108 fi
45109
45110
45111   if test x$sdl_exec_prefix != x ; then
45112     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
45113     if test x${SDL_CONFIG+set} != xset ; then
45114       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
45115     fi
45116   fi
45117   if test x$sdl_prefix != x ; then
45118     sdl_args="$sdl_args --prefix=$sdl_prefix"
45119     if test x${SDL_CONFIG+set} != xset ; then
45120       SDL_CONFIG=$sdl_prefix/bin/sdl-config
45121     fi
45122   fi
45123
45124   if test "x$prefix" != xNONE; then
45125     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
45126   fi
45127   # Extract the first word of "sdl-config", so it can be a program name with args.
45128 set dummy sdl-config; ac_word=$2
45129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45131 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
45132   echo $ECHO_N "(cached) $ECHO_C" >&6
45133 else
45134   case $SDL_CONFIG in
45135   [\\/]* | ?:[\\/]*)
45136   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
45137   ;;
45138   *)
45139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45140 for as_dir in $PATH
45141 do
45142   IFS=$as_save_IFS
45143   test -z "$as_dir" && as_dir=.
45144   for ac_exec_ext in '' $ac_executable_extensions; do
45145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45146     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45148     break 2
45149   fi
45150 done
45151 done
45152 IFS=$as_save_IFS
45153
45154   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
45155   ;;
45156 esac
45157 fi
45158 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
45159 if test -n "$SDL_CONFIG"; then
45160   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
45161 echo "${ECHO_T}$SDL_CONFIG" >&6; }
45162 else
45163   { echo "$as_me:$LINENO: result: no" >&5
45164 echo "${ECHO_T}no" >&6; }
45165 fi
45166
45167
45168   min_sdl_version=1.2.0
45169   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
45170 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
45171   no_sdl=""
45172   if test "$SDL_CONFIG" = "no" ; then
45173     no_sdl=yes
45174   else
45175     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
45176     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
45177
45178     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
45179            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45180     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
45181            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45182     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
45183            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45184     if test "x$enable_sdltest" = "xyes" ; then
45185       ac_save_CFLAGS="$CFLAGS"
45186       ac_save_CXXFLAGS="$CXXFLAGS"
45187       ac_save_LIBS="$LIBS"
45188       CFLAGS="$CFLAGS $SDL_CFLAGS"
45189       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45190       LIBS="$LIBS $SDL_LIBS"
45191       rm -f conf.sdltest
45192       if test "$cross_compiling" = yes; then
45193   echo $ac_n "cross compiling; assumed OK... $ac_c"
45194 else
45195   cat >conftest.$ac_ext <<_ACEOF
45196 /* confdefs.h.  */
45197 _ACEOF
45198 cat confdefs.h >>conftest.$ac_ext
45199 cat >>conftest.$ac_ext <<_ACEOF
45200 /* end confdefs.h.  */
45201
45202 #include <stdio.h>
45203 #include <stdlib.h>
45204 #include <string.h>
45205 #include "SDL.h"
45206
45207 char*
45208 my_strdup (char *str)
45209 {
45210   char *new_str;
45211
45212   if (str)
45213     {
45214       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
45215       strcpy (new_str, str);
45216     }
45217   else
45218     new_str = NULL;
45219
45220   return new_str;
45221 }
45222
45223 int main (int argc, char *argv[])
45224 {
45225   int major, minor, micro;
45226   char *tmp_version;
45227
45228   /* This hangs on some systems (?)
45229   system ("touch conf.sdltest");
45230   */
45231   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
45232
45233   /* HP/UX 9 (%@#!) writes to sscanf strings */
45234   tmp_version = my_strdup("$min_sdl_version");
45235   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
45236      printf("%s, bad version string\n", "$min_sdl_version");
45237      exit(1);
45238    }
45239
45240    if (($sdl_major_version > major) ||
45241       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
45242       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
45243     {
45244       return 0;
45245     }
45246   else
45247     {
45248       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
45249       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
45250       printf("*** best to upgrade to the required version.\n");
45251       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
45252       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
45253       printf("*** config.cache before re-running configure\n");
45254       return 1;
45255     }
45256 }
45257
45258
45259 _ACEOF
45260 rm -f conftest$ac_exeext
45261 if { (ac_try="$ac_link"
45262 case "(($ac_try" in
45263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45264   *) ac_try_echo=$ac_try;;
45265 esac
45266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45267   (eval "$ac_link") 2>&5
45268   ac_status=$?
45269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45271   { (case "(($ac_try" in
45272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45273   *) ac_try_echo=$ac_try;;
45274 esac
45275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45276   (eval "$ac_try") 2>&5
45277   ac_status=$?
45278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279   (exit $ac_status); }; }; then
45280   :
45281 else
45282   echo "$as_me: program exited with status $ac_status" >&5
45283 echo "$as_me: failed program was:" >&5
45284 sed 's/^/| /' conftest.$ac_ext >&5
45285
45286 ( exit $ac_status )
45287 no_sdl=yes
45288 fi
45289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45290 fi
45291
45292
45293        CFLAGS="$ac_save_CFLAGS"
45294        CXXFLAGS="$ac_save_CXXFLAGS"
45295        LIBS="$ac_save_LIBS"
45296      fi
45297   fi
45298   if test "x$no_sdl" = x ; then
45299      { echo "$as_me:$LINENO: result: yes" >&5
45300 echo "${ECHO_T}yes" >&6; }
45301
45302                     EXTRALIBS_SDL="$SDL_LIBS"
45303                     CFLAGS="$SDL_CFLAGS $CFLAGS"
45304                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
45305                     cat >>confdefs.h <<\_ACEOF
45306 #define wxUSE_LIBSDL 1
45307 _ACEOF
45308
45309
45310   else
45311      { echo "$as_me:$LINENO: result: no" >&5
45312 echo "${ECHO_T}no" >&6; }
45313      if test "$SDL_CONFIG" = "no" ; then
45314        echo "*** The sdl-config script installed by SDL could not be found"
45315        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
45316        echo "*** your path, or set the SDL_CONFIG environment variable to the"
45317        echo "*** full path to sdl-config."
45318      else
45319        if test -f conf.sdltest ; then
45320         :
45321        else
45322           echo "*** Could not run SDL test program, checking why..."
45323           CFLAGS="$CFLAGS $SDL_CFLAGS"
45324           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45325           LIBS="$LIBS $SDL_LIBS"
45326           cat >conftest.$ac_ext <<_ACEOF
45327 /* confdefs.h.  */
45328 _ACEOF
45329 cat confdefs.h >>conftest.$ac_ext
45330 cat >>conftest.$ac_ext <<_ACEOF
45331 /* end confdefs.h.  */
45332
45333 #include <stdio.h>
45334 #include "SDL.h"
45335
45336 int main(int argc, char *argv[])
45337 { return 0; }
45338 #undef  main
45339 #define main K_and_R_C_main
45340
45341 int
45342 main ()
45343 {
45344  return 0;
45345   ;
45346   return 0;
45347 }
45348 _ACEOF
45349 rm -f conftest.$ac_objext conftest$ac_exeext
45350 if { (ac_try="$ac_link"
45351 case "(($ac_try" in
45352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45353   *) ac_try_echo=$ac_try;;
45354 esac
45355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45356   (eval "$ac_link") 2>conftest.er1
45357   ac_status=$?
45358   grep -v '^ *+' conftest.er1 >conftest.err
45359   rm -f conftest.er1
45360   cat conftest.err >&5
45361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45362   (exit $ac_status); } && {
45363          test -z "$ac_c_werror_flag" ||
45364          test ! -s conftest.err
45365        } && test -s conftest$ac_exeext &&
45366        $as_test_x conftest$ac_exeext; then
45367    echo "*** The test program compiled, but did not run. This usually means"
45368           echo "*** that the run-time linker is not finding SDL or finding the wrong"
45369           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
45370           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
45371           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
45372           echo "*** is required on your system"
45373           echo "***"
45374           echo "*** If you have an old version installed, it is best to remove it, although"
45375           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
45376 else
45377   echo "$as_me: failed program was:" >&5
45378 sed 's/^/| /' conftest.$ac_ext >&5
45379
45380          echo "*** The test program failed to compile or link. See the file config.log for the"
45381           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
45382           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
45383           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
45384 fi
45385
45386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45387       conftest$ac_exeext conftest.$ac_ext
45388           CFLAGS="$ac_save_CFLAGS"
45389           CXXFLAGS="$ac_save_CXXFLAGS"
45390           LIBS="$ac_save_LIBS"
45391        fi
45392      fi
45393      SDL_CFLAGS=""
45394      SDL_LIBS=""
45395      wxUSE_LIBSDL="no"
45396   fi
45397
45398
45399   rm -f conf.sdltest
45400
45401       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
45402         WITH_PLUGIN_SDL=1
45403       fi
45404     fi
45405   else
45406         if test "$wxUSE_MGL" = 1; then
45407         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
45408 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
45409         wxUSE_SOUND="no"
45410     fi
45411   fi
45412 fi
45413
45414 if test "$wxUSE_SOUND" = "yes"; then
45415   cat >>confdefs.h <<\_ACEOF
45416 #define wxUSE_SOUND 1
45417 _ACEOF
45418
45419   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
45420 fi
45421
45422 if test "$WXGTK20" = 1; then
45423
45424
45425 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45426         if test -n "$ac_tool_prefix"; then
45427   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45428 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45431 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45432   echo $ECHO_N "(cached) $ECHO_C" >&6
45433 else
45434   case $PKG_CONFIG in
45435   [\\/]* | ?:[\\/]*)
45436   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45437   ;;
45438   *)
45439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45440 for as_dir in $PATH
45441 do
45442   IFS=$as_save_IFS
45443   test -z "$as_dir" && as_dir=.
45444   for ac_exec_ext in '' $ac_executable_extensions; do
45445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45446     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45448     break 2
45449   fi
45450 done
45451 done
45452 IFS=$as_save_IFS
45453
45454   ;;
45455 esac
45456 fi
45457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45458 if test -n "$PKG_CONFIG"; then
45459   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45460 echo "${ECHO_T}$PKG_CONFIG" >&6; }
45461 else
45462   { echo "$as_me:$LINENO: result: no" >&5
45463 echo "${ECHO_T}no" >&6; }
45464 fi
45465
45466
45467 fi
45468 if test -z "$ac_cv_path_PKG_CONFIG"; then
45469   ac_pt_PKG_CONFIG=$PKG_CONFIG
45470   # Extract the first word of "pkg-config", so it can be a program name with args.
45471 set dummy pkg-config; ac_word=$2
45472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45474 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
45475   echo $ECHO_N "(cached) $ECHO_C" >&6
45476 else
45477   case $ac_pt_PKG_CONFIG in
45478   [\\/]* | ?:[\\/]*)
45479   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45480   ;;
45481   *)
45482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45483 for as_dir in $PATH
45484 do
45485   IFS=$as_save_IFS
45486   test -z "$as_dir" && as_dir=.
45487   for ac_exec_ext in '' $ac_executable_extensions; do
45488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45489     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45491     break 2
45492   fi
45493 done
45494 done
45495 IFS=$as_save_IFS
45496
45497   ;;
45498 esac
45499 fi
45500 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45501 if test -n "$ac_pt_PKG_CONFIG"; then
45502   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
45503 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
45504 else
45505   { echo "$as_me:$LINENO: result: no" >&5
45506 echo "${ECHO_T}no" >&6; }
45507 fi
45508
45509   if test "x$ac_pt_PKG_CONFIG" = x; then
45510     PKG_CONFIG=""
45511   else
45512     case $cross_compiling:$ac_tool_warned in
45513 yes:)
45514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45515 whose name does not start with the host triplet.  If you think this
45516 configuration is useful to you, please write to autoconf@gnu.org." >&5
45517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45518 whose name does not start with the host triplet.  If you think this
45519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45520 ac_tool_warned=yes ;;
45521 esac
45522     PKG_CONFIG=$ac_pt_PKG_CONFIG
45523   fi
45524 else
45525   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45526 fi
45527
45528 fi
45529 if test -n "$PKG_CONFIG"; then
45530         _pkg_min_version=0.9.0
45531         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
45532 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
45533         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
45534                 { echo "$as_me:$LINENO: result: yes" >&5
45535 echo "${ECHO_T}yes" >&6; }
45536         else
45537                 { echo "$as_me:$LINENO: result: no" >&5
45538 echo "${ECHO_T}no" >&6; }
45539                 PKG_CONFIG=""
45540         fi
45541
45542 fi
45543
45544     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45545         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45546
45547
45548 pkg_failed=no
45549 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45550 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
45551
45552 if test -n "$PKG_CONFIG"; then
45553     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45554         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45555     else
45556         if test -n "$PKG_CONFIG" && \
45557     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45558   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45559   ac_status=$?
45560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45561   (exit $ac_status); }; then
45562   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45563 else
45564   pkg_failed=yes
45565 fi
45566     fi
45567 else
45568         pkg_failed=untried
45569 fi
45570 if test -n "$PKG_CONFIG"; then
45571     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45572         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45573     else
45574         if test -n "$PKG_CONFIG" && \
45575     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45576   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45577   ac_status=$?
45578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45579   (exit $ac_status); }; then
45580   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45581 else
45582   pkg_failed=yes
45583 fi
45584     fi
45585 else
45586         pkg_failed=untried
45587 fi
45588
45589
45590
45591 if test $pkg_failed = yes; then
45592
45593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45594         _pkg_short_errors_supported=yes
45595 else
45596         _pkg_short_errors_supported=no
45597 fi
45598         if test $_pkg_short_errors_supported = yes; then
45599                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45600         else
45601                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45602         fi
45603         # Put the nasty error message in config.log where it belongs
45604         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45605
45606
45607                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45608 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45609                         wxUSE_LIBGNOMEPRINT="no"
45610
45611
45612 elif test $pkg_failed = untried; then
45613
45614                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45615 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45616                         wxUSE_LIBGNOMEPRINT="no"
45617
45618
45619 else
45620         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45621         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45622         { echo "$as_me:$LINENO: result: yes" >&5
45623 echo "${ECHO_T}yes" >&6; }
45624
45625                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45626                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45627                         cat >>confdefs.h <<\_ACEOF
45628 #define wxUSE_LIBGNOMEPRINT 1
45629 _ACEOF
45630
45631
45632 fi
45633         fi
45634     fi
45635
45636     if test "$wxUSE_MIMETYPE" = "yes" ; then
45637         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45638
45639
45640 pkg_failed=no
45641 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45642 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45643
45644 if test -n "$PKG_CONFIG"; then
45645     if test -n "$GNOMEVFS_CFLAGS"; then
45646         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45647     else
45648         if test -n "$PKG_CONFIG" && \
45649     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45650   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45651   ac_status=$?
45652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45653   (exit $ac_status); }; then
45654   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45655 else
45656   pkg_failed=yes
45657 fi
45658     fi
45659 else
45660         pkg_failed=untried
45661 fi
45662 if test -n "$PKG_CONFIG"; then
45663     if test -n "$GNOMEVFS_LIBS"; then
45664         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45665     else
45666         if test -n "$PKG_CONFIG" && \
45667     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45668   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45669   ac_status=$?
45670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45671   (exit $ac_status); }; then
45672   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45673 else
45674   pkg_failed=yes
45675 fi
45676     fi
45677 else
45678         pkg_failed=untried
45679 fi
45680
45681
45682
45683 if test $pkg_failed = yes; then
45684
45685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45686         _pkg_short_errors_supported=yes
45687 else
45688         _pkg_short_errors_supported=no
45689 fi
45690         if test $_pkg_short_errors_supported = yes; then
45691                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45692         else
45693                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45694         fi
45695         # Put the nasty error message in config.log where it belongs
45696         echo "$GNOMEVFS_PKG_ERRORS" >&5
45697
45698
45699                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45700 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45701                         wxUSE_LIBGNOMEVFS="no"
45702
45703
45704 elif test $pkg_failed = untried; then
45705
45706                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45707 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45708                         wxUSE_LIBGNOMEVFS="no"
45709
45710
45711 else
45712         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45713         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45714         { echo "$as_me:$LINENO: result: yes" >&5
45715 echo "${ECHO_T}yes" >&6; }
45716
45717                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45718                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45719                         cat >>confdefs.h <<\_ACEOF
45720 #define wxUSE_LIBGNOMEVFS 1
45721 _ACEOF
45722
45723
45724 fi
45725         fi
45726     fi
45727
45728     if test "$wxUSE_LIBHILDON" = "yes" ; then
45729
45730 pkg_failed=no
45731 { echo "$as_me:$LINENO: checking for HILDON" >&5
45732 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45733
45734 if test -n "$PKG_CONFIG"; then
45735     if test -n "$HILDON_CFLAGS"; then
45736         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45737     else
45738         if test -n "$PKG_CONFIG" && \
45739     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45740   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45741   ac_status=$?
45742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743   (exit $ac_status); }; then
45744   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45745 else
45746   pkg_failed=yes
45747 fi
45748     fi
45749 else
45750         pkg_failed=untried
45751 fi
45752 if test -n "$PKG_CONFIG"; then
45753     if test -n "$HILDON_LIBS"; then
45754         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45755     else
45756         if test -n "$PKG_CONFIG" && \
45757     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45758   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45759   ac_status=$?
45760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45761   (exit $ac_status); }; then
45762   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45763 else
45764   pkg_failed=yes
45765 fi
45766     fi
45767 else
45768         pkg_failed=untried
45769 fi
45770
45771
45772
45773 if test $pkg_failed = yes; then
45774
45775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45776         _pkg_short_errors_supported=yes
45777 else
45778         _pkg_short_errors_supported=no
45779 fi
45780         if test $_pkg_short_errors_supported = yes; then
45781                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45782         else
45783                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45784         fi
45785         # Put the nasty error message in config.log where it belongs
45786         echo "$HILDON_PKG_ERRORS" >&5
45787
45788
45789                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45790 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45791                         wxUSE_LIBHILDON="no"
45792
45793
45794 elif test $pkg_failed = untried; then
45795
45796                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45797 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45798                         wxUSE_LIBHILDON="no"
45799
45800
45801 else
45802         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45803         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45804         { echo "$as_me:$LINENO: result: yes" >&5
45805 echo "${ECHO_T}yes" >&6; }
45806
45807                 EXTRALIBS_HILDON="$HILDON_LIBS"
45808                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45809                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45810                 cat >>confdefs.h <<\_ACEOF
45811 #define wxUSE_LIBHILDON 1
45812 _ACEOF
45813
45814
45815 fi
45816     fi
45817 fi
45818
45819 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45820   cat >>confdefs.h <<\_ACEOF
45821 #define wxUSE_CMDLINE_PARSER 1
45822 _ACEOF
45823
45824 fi
45825
45826 if test "$wxUSE_STOPWATCH" = "yes"; then
45827   cat >>confdefs.h <<\_ACEOF
45828 #define wxUSE_STOPWATCH 1
45829 _ACEOF
45830
45831 fi
45832
45833 if test "$wxUSE_DATETIME" = "yes"; then
45834   cat >>confdefs.h <<\_ACEOF
45835 #define wxUSE_DATETIME 1
45836 _ACEOF
45837
45838 fi
45839
45840 if test "$wxUSE_FILE" = "yes"; then
45841   cat >>confdefs.h <<\_ACEOF
45842 #define wxUSE_FILE 1
45843 _ACEOF
45844
45845 fi
45846
45847 if test "$wxUSE_FFILE" = "yes"; then
45848   cat >>confdefs.h <<\_ACEOF
45849 #define wxUSE_FFILE 1
45850 _ACEOF
45851
45852 fi
45853
45854 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45855   if test "$wxUSE_STREAMS" != yes; then
45856     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45857 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45858     wxUSE_ARCHIVE_STREAMS=no
45859   else
45860     cat >>confdefs.h <<\_ACEOF
45861 #define wxUSE_ARCHIVE_STREAMS 1
45862 _ACEOF
45863
45864   fi
45865 fi
45866
45867 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45868   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45869     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45870 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45871   elif test "$wxUSE_ZLIB" = "no"; then
45872     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45873 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45874   else
45875     cat >>confdefs.h <<\_ACEOF
45876 #define wxUSE_ZIPSTREAM 1
45877 _ACEOF
45878
45879   fi
45880 fi
45881
45882 if test "$wxUSE_TARSTREAM" = "yes"; then
45883   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45884     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45885 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45886   else
45887     cat >>confdefs.h <<\_ACEOF
45888 #define wxUSE_TARSTREAM 1
45889 _ACEOF
45890
45891   fi
45892 fi
45893
45894 if test "$wxUSE_FILESYSTEM" = "yes"; then
45895   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45896     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45897 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45898     wxUSE_FILESYSTEM=no
45899   else
45900     cat >>confdefs.h <<\_ACEOF
45901 #define wxUSE_FILESYSTEM 1
45902 _ACEOF
45903
45904   fi
45905 fi
45906
45907 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45908   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45909     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45910 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45911   else
45912     cat >>confdefs.h <<\_ACEOF
45913 #define wxUSE_FS_ARCHIVE 1
45914 _ACEOF
45915
45916   fi
45917 fi
45918
45919 if test "$wxUSE_FS_ZIP" = "yes"; then
45920   if test "$wxUSE_FS_ARCHIVE" != yes; then
45921     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45922 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45923   else
45924     cat >>confdefs.h <<\_ACEOF
45925 #define wxUSE_FS_ZIP 1
45926 _ACEOF
45927
45928   fi
45929 fi
45930
45931 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45932   if test "$USE_UNIX" != 1; then
45933     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45934 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45935     wxUSE_ON_FATAL_EXCEPTION=no
45936   else
45937     cat >>confdefs.h <<\_ACEOF
45938 #define wxUSE_ON_FATAL_EXCEPTION 1
45939 _ACEOF
45940
45941   fi
45942 fi
45943
45944 if test "$wxUSE_STACKWALKER" = "yes"; then
45945     cat >>confdefs.h <<\_ACEOF
45946 #define wxUSE_STACKWALKER 1
45947 _ACEOF
45948
45949 fi
45950
45951 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45952     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45953         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45954 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45955         wxUSE_DEBUGREPORT=no
45956     else
45957         cat >>confdefs.h <<\_ACEOF
45958 #define wxUSE_DEBUGREPORT 1
45959 _ACEOF
45960
45961         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45962             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45963         fi
45964     fi
45965 fi
45966
45967 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45968   cat >>confdefs.h <<\_ACEOF
45969 #define wxUSE_SNGLINST_CHECKER 1
45970 _ACEOF
45971
45972 fi
45973
45974 if test "$wxUSE_BUSYINFO" = "yes"; then
45975   cat >>confdefs.h <<\_ACEOF
45976 #define wxUSE_BUSYINFO 1
45977 _ACEOF
45978
45979 fi
45980
45981 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45982   cat >>confdefs.h <<\_ACEOF
45983 #define wxUSE_STD_IOSTREAM 1
45984 _ACEOF
45985
45986 fi
45987
45988 if test "$wxUSE_STD_STRING" = "yes"; then
45989   cat >>confdefs.h <<\_ACEOF
45990 #define wxUSE_STD_STRING 1
45991 _ACEOF
45992
45993 fi
45994
45995 if test "$wxUSE_STDPATHS" = "yes"; then
45996   cat >>confdefs.h <<\_ACEOF
45997 #define wxUSE_STDPATHS 1
45998 _ACEOF
45999
46000 fi
46001
46002 if test "$wxUSE_TEXTBUFFER" = "yes"; then
46003     cat >>confdefs.h <<\_ACEOF
46004 #define wxUSE_TEXTBUFFER 1
46005 _ACEOF
46006
46007 fi
46008
46009 if test "$wxUSE_TEXTFILE" = "yes"; then
46010   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
46011     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
46012 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
46013   else
46014     cat >>confdefs.h <<\_ACEOF
46015 #define wxUSE_TEXTFILE 1
46016 _ACEOF
46017
46018   fi
46019 fi
46020
46021 if test "$wxUSE_CONFIG" = "yes" ; then
46022   if test "$wxUSE_TEXTFILE" != "yes"; then
46023     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
46024 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
46025   else
46026     cat >>confdefs.h <<\_ACEOF
46027 #define wxUSE_CONFIG 1
46028 _ACEOF
46029
46030     cat >>confdefs.h <<\_ACEOF
46031 #define wxUSE_CONFIG_NATIVE 1
46032 _ACEOF
46033
46034     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
46035   fi
46036 fi
46037
46038 if test "$wxUSE_INTL" = "yes" ; then
46039   if test "$wxUSE_FILE" != "yes"; then
46040     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
46041 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
46042   else
46043     cat >>confdefs.h <<\_ACEOF
46044 #define wxUSE_INTL 1
46045 _ACEOF
46046
46047     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
46048     GUIDIST="$GUIDIST INTL_DIST"
46049   fi
46050 fi
46051
46052 if test "$wxUSE_LOG" = "yes"; then
46053   cat >>confdefs.h <<\_ACEOF
46054 #define wxUSE_LOG 1
46055 _ACEOF
46056
46057
46058     if test "$wxUSE_LOGGUI" = "yes"; then
46059       cat >>confdefs.h <<\_ACEOF
46060 #define wxUSE_LOGGUI 1
46061 _ACEOF
46062
46063     fi
46064
46065     if test "$wxUSE_LOGWINDOW" = "yes"; then
46066       cat >>confdefs.h <<\_ACEOF
46067 #define wxUSE_LOGWINDOW 1
46068 _ACEOF
46069
46070     fi
46071
46072     if test "$wxUSE_LOGDIALOG" = "yes"; then
46073       cat >>confdefs.h <<\_ACEOF
46074 #define wxUSE_LOG_DIALOG 1
46075 _ACEOF
46076
46077     fi
46078
46079         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
46080 fi
46081
46082 if test "$wxUSE_LONGLONG" = "yes"; then
46083   cat >>confdefs.h <<\_ACEOF
46084 #define wxUSE_LONGLONG 1
46085 _ACEOF
46086
46087 fi
46088
46089 if test "$wxUSE_GEOMETRY" = "yes"; then
46090   cat >>confdefs.h <<\_ACEOF
46091 #define wxUSE_GEOMETRY 1
46092 _ACEOF
46093
46094 fi
46095
46096 if test "$wxUSE_BASE64" = "yes"; then
46097   cat >>confdefs.h <<\_ACEOF
46098 #define wxUSE_BASE64 1
46099 _ACEOF
46100
46101 fi
46102
46103 if test "$wxUSE_STREAMS" = "yes" ; then
46104   cat >>confdefs.h <<\_ACEOF
46105 #define wxUSE_STREAMS 1
46106 _ACEOF
46107
46108 fi
46109
46110 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
46111   cat >>confdefs.h <<\_ACEOF
46112 #define wxUSE_PRINTF_POS_PARAMS 1
46113 _ACEOF
46114
46115 fi
46116
46117 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
46118   cat >>confdefs.h <<\_ACEOF
46119 #define wxUSE_OBJC_UNIQUIFYING 1
46120 _ACEOF
46121
46122 fi
46123
46124
46125 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
46126     cat >>confdefs.h <<\_ACEOF
46127 #define wxUSE_CONSOLE_EVENTLOOP 1
46128 _ACEOF
46129
46130
46131     if test "$wxUSE_UNIX" = "yes"; then
46132         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
46133             cat >>confdefs.h <<\_ACEOF
46134 #define wxUSE_SELECT_DISPATCHER 1
46135 _ACEOF
46136
46137         fi
46138
46139         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
46140
46141 for ac_header in sys/epoll.h
46142 do
46143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46147   echo $ECHO_N "(cached) $ECHO_C" >&6
46148 else
46149   cat >conftest.$ac_ext <<_ACEOF
46150 /* confdefs.h.  */
46151 _ACEOF
46152 cat confdefs.h >>conftest.$ac_ext
46153 cat >>conftest.$ac_ext <<_ACEOF
46154 /* end confdefs.h.  */
46155 $ac_includes_default
46156
46157 #include <$ac_header>
46158 _ACEOF
46159 rm -f conftest.$ac_objext
46160 if { (ac_try="$ac_compile"
46161 case "(($ac_try" in
46162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46163   *) ac_try_echo=$ac_try;;
46164 esac
46165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46166   (eval "$ac_compile") 2>conftest.er1
46167   ac_status=$?
46168   grep -v '^ *+' conftest.er1 >conftest.err
46169   rm -f conftest.er1
46170   cat conftest.err >&5
46171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46172   (exit $ac_status); } && {
46173          test -z "$ac_c_werror_flag" ||
46174          test ! -s conftest.err
46175        } && test -s conftest.$ac_objext; then
46176   eval "$as_ac_Header=yes"
46177 else
46178   echo "$as_me: failed program was:" >&5
46179 sed 's/^/| /' conftest.$ac_ext >&5
46180
46181         eval "$as_ac_Header=no"
46182 fi
46183
46184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46185 fi
46186 ac_res=`eval echo '${'$as_ac_Header'}'`
46187                { echo "$as_me:$LINENO: result: $ac_res" >&5
46188 echo "${ECHO_T}$ac_res" >&6; }
46189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46190   cat >>confdefs.h <<_ACEOF
46191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46192 _ACEOF
46193
46194 fi
46195
46196 done
46197
46198             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
46199                 cat >>confdefs.h <<\_ACEOF
46200 #define wxUSE_EPOLL_DISPATCHER 1
46201 _ACEOF
46202
46203             else
46204                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
46205 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
46206             fi
46207         fi
46208     fi
46209 fi
46210
46211
46212
46213
46214 for ac_func in gettimeofday ftime
46215 do
46216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46220   echo $ECHO_N "(cached) $ECHO_C" >&6
46221 else
46222   cat >conftest.$ac_ext <<_ACEOF
46223 /* confdefs.h.  */
46224 _ACEOF
46225 cat confdefs.h >>conftest.$ac_ext
46226 cat >>conftest.$ac_ext <<_ACEOF
46227 /* end confdefs.h.  */
46228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46230 #define $ac_func innocuous_$ac_func
46231
46232 /* System header to define __stub macros and hopefully few prototypes,
46233     which can conflict with char $ac_func (); below.
46234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46235     <limits.h> exists even on freestanding compilers.  */
46236
46237 #ifdef __STDC__
46238 # include <limits.h>
46239 #else
46240 # include <assert.h>
46241 #endif
46242
46243 #undef $ac_func
46244
46245 /* Override any GCC internal prototype to avoid an error.
46246    Use char because int might match the return type of a GCC
46247    builtin and then its argument prototype would still apply.  */
46248 #ifdef __cplusplus
46249 extern "C"
46250 #endif
46251 char $ac_func ();
46252 /* The GNU C library defines this for functions which it implements
46253     to always fail with ENOSYS.  Some functions are actually named
46254     something starting with __ and the normal name is an alias.  */
46255 #if defined __stub_$ac_func || defined __stub___$ac_func
46256 choke me
46257 #endif
46258
46259 int
46260 main ()
46261 {
46262 return $ac_func ();
46263   ;
46264   return 0;
46265 }
46266 _ACEOF
46267 rm -f conftest.$ac_objext conftest$ac_exeext
46268 if { (ac_try="$ac_link"
46269 case "(($ac_try" in
46270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46271   *) ac_try_echo=$ac_try;;
46272 esac
46273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46274   (eval "$ac_link") 2>conftest.er1
46275   ac_status=$?
46276   grep -v '^ *+' conftest.er1 >conftest.err
46277   rm -f conftest.er1
46278   cat conftest.err >&5
46279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46280   (exit $ac_status); } && {
46281          test -z "$ac_c_werror_flag" ||
46282          test ! -s conftest.err
46283        } && test -s conftest$ac_exeext &&
46284        $as_test_x conftest$ac_exeext; then
46285   eval "$as_ac_var=yes"
46286 else
46287   echo "$as_me: failed program was:" >&5
46288 sed 's/^/| /' conftest.$ac_ext >&5
46289
46290         eval "$as_ac_var=no"
46291 fi
46292
46293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46294       conftest$ac_exeext conftest.$ac_ext
46295 fi
46296 ac_res=`eval echo '${'$as_ac_var'}'`
46297                { echo "$as_me:$LINENO: result: $ac_res" >&5
46298 echo "${ECHO_T}$ac_res" >&6; }
46299 if test `eval echo '${'$as_ac_var'}'` = yes; then
46300   cat >>confdefs.h <<_ACEOF
46301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46302 _ACEOF
46303  break
46304 fi
46305 done
46306
46307
46308 if test "$ac_cv_func_gettimeofday" = "yes"; then
46309     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
46310 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
46311 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
46312   echo $ECHO_N "(cached) $ECHO_C" >&6
46313 else
46314
46315                 cat >conftest.$ac_ext <<_ACEOF
46316 /* confdefs.h.  */
46317 _ACEOF
46318 cat confdefs.h >>conftest.$ac_ext
46319 cat >>conftest.$ac_ext <<_ACEOF
46320 /* end confdefs.h.  */
46321
46322                 #include <sys/time.h>
46323                 #include <unistd.h>
46324
46325 int
46326 main ()
46327 {
46328
46329                 struct timeval tv;
46330                 gettimeofday(&tv, NULL);
46331
46332   ;
46333   return 0;
46334 }
46335 _ACEOF
46336 rm -f conftest.$ac_objext
46337 if { (ac_try="$ac_compile"
46338 case "(($ac_try" in
46339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46340   *) ac_try_echo=$ac_try;;
46341 esac
46342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46343   (eval "$ac_compile") 2>conftest.er1
46344   ac_status=$?
46345   grep -v '^ *+' conftest.er1 >conftest.err
46346   rm -f conftest.er1
46347   cat conftest.err >&5
46348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46349   (exit $ac_status); } && {
46350          test -z "$ac_c_werror_flag" ||
46351          test ! -s conftest.err
46352        } && test -s conftest.$ac_objext; then
46353   wx_cv_func_gettimeofday_has_2_args=yes
46354 else
46355   echo "$as_me: failed program was:" >&5
46356 sed 's/^/| /' conftest.$ac_ext >&5
46357
46358         cat >conftest.$ac_ext <<_ACEOF
46359 /* confdefs.h.  */
46360 _ACEOF
46361 cat confdefs.h >>conftest.$ac_ext
46362 cat >>conftest.$ac_ext <<_ACEOF
46363 /* end confdefs.h.  */
46364
46365                     #include <sys/time.h>
46366                     #include <unistd.h>
46367
46368 int
46369 main ()
46370 {
46371
46372                     struct timeval tv;
46373                     gettimeofday(&tv);
46374
46375   ;
46376   return 0;
46377 }
46378 _ACEOF
46379 rm -f conftest.$ac_objext
46380 if { (ac_try="$ac_compile"
46381 case "(($ac_try" in
46382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46383   *) ac_try_echo=$ac_try;;
46384 esac
46385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46386   (eval "$ac_compile") 2>conftest.er1
46387   ac_status=$?
46388   grep -v '^ *+' conftest.er1 >conftest.err
46389   rm -f conftest.er1
46390   cat conftest.err >&5
46391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46392   (exit $ac_status); } && {
46393          test -z "$ac_c_werror_flag" ||
46394          test ! -s conftest.err
46395        } && test -s conftest.$ac_objext; then
46396   wx_cv_func_gettimeofday_has_2_args=no
46397 else
46398   echo "$as_me: failed program was:" >&5
46399 sed 's/^/| /' conftest.$ac_ext >&5
46400
46401
46402                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
46403 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
46404                     wx_cv_func_gettimeofday_has_2_args=unknown
46405
46406
46407 fi
46408
46409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46410
46411 fi
46412
46413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46414
46415 fi
46416 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
46417 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
46418
46419     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
46420         cat >>confdefs.h <<\_ACEOF
46421 #define WX_GETTIMEOFDAY_NO_TZ 1
46422 _ACEOF
46423
46424     fi
46425 fi
46426
46427 if test "$wxUSE_DATETIME" = "yes"; then
46428         { echo "$as_me:$LINENO: checking for strptime" >&5
46429 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
46430 if test "${ac_cv_func_strptime+set}" = set; then
46431   echo $ECHO_N "(cached) $ECHO_C" >&6
46432 else
46433   cat >conftest.$ac_ext <<_ACEOF
46434 /* confdefs.h.  */
46435 _ACEOF
46436 cat confdefs.h >>conftest.$ac_ext
46437 cat >>conftest.$ac_ext <<_ACEOF
46438 /* end confdefs.h.  */
46439 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
46440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46441 #define strptime innocuous_strptime
46442
46443 /* System header to define __stub macros and hopefully few prototypes,
46444     which can conflict with char strptime (); below.
46445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46446     <limits.h> exists even on freestanding compilers.  */
46447
46448 #ifdef __STDC__
46449 # include <limits.h>
46450 #else
46451 # include <assert.h>
46452 #endif
46453
46454 #undef strptime
46455
46456 /* Override any GCC internal prototype to avoid an error.
46457    Use char because int might match the return type of a GCC
46458    builtin and then its argument prototype would still apply.  */
46459 #ifdef __cplusplus
46460 extern "C"
46461 #endif
46462 char strptime ();
46463 /* The GNU C library defines this for functions which it implements
46464     to always fail with ENOSYS.  Some functions are actually named
46465     something starting with __ and the normal name is an alias.  */
46466 #if defined __stub_strptime || defined __stub___strptime
46467 choke me
46468 #endif
46469
46470 int
46471 main ()
46472 {
46473 return strptime ();
46474   ;
46475   return 0;
46476 }
46477 _ACEOF
46478 rm -f conftest.$ac_objext conftest$ac_exeext
46479 if { (ac_try="$ac_link"
46480 case "(($ac_try" in
46481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46482   *) ac_try_echo=$ac_try;;
46483 esac
46484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46485   (eval "$ac_link") 2>conftest.er1
46486   ac_status=$?
46487   grep -v '^ *+' conftest.er1 >conftest.err
46488   rm -f conftest.er1
46489   cat conftest.err >&5
46490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46491   (exit $ac_status); } && {
46492          test -z "$ac_c_werror_flag" ||
46493          test ! -s conftest.err
46494        } && test -s conftest$ac_exeext &&
46495        $as_test_x conftest$ac_exeext; then
46496   ac_cv_func_strptime=yes
46497 else
46498   echo "$as_me: failed program was:" >&5
46499 sed 's/^/| /' conftest.$ac_ext >&5
46500
46501         ac_cv_func_strptime=no
46502 fi
46503
46504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46505       conftest$ac_exeext conftest.$ac_ext
46506 fi
46507 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46508 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46509
46510     if test "$ac_cv_func_strptime" = "yes"; then
46511         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46512 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46513 if test "${wx_cv_func_strptime_decl+set}" = set; then
46514   echo $ECHO_N "(cached) $ECHO_C" >&6
46515 else
46516
46517                 ac_ext=cpp
46518 ac_cpp='$CXXCPP $CPPFLAGS'
46519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46522
46523                 cat >conftest.$ac_ext <<_ACEOF
46524 /* confdefs.h.  */
46525 _ACEOF
46526 cat confdefs.h >>conftest.$ac_ext
46527 cat >>conftest.$ac_ext <<_ACEOF
46528 /* end confdefs.h.  */
46529
46530                         #include <time.h>
46531
46532 int
46533 main ()
46534 {
46535
46536                         struct tm t;
46537                         strptime("foo", "bar", &t);
46538
46539   ;
46540   return 0;
46541 }
46542 _ACEOF
46543 rm -f conftest.$ac_objext
46544 if { (ac_try="$ac_compile"
46545 case "(($ac_try" in
46546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46547   *) ac_try_echo=$ac_try;;
46548 esac
46549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46550   (eval "$ac_compile") 2>conftest.er1
46551   ac_status=$?
46552   grep -v '^ *+' conftest.er1 >conftest.err
46553   rm -f conftest.er1
46554   cat conftest.err >&5
46555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46556   (exit $ac_status); } && {
46557          test -z "$ac_cxx_werror_flag" ||
46558          test ! -s conftest.err
46559        } && test -s conftest.$ac_objext; then
46560   wx_cv_func_strptime_decl=yes
46561 else
46562   echo "$as_me: failed program was:" >&5
46563 sed 's/^/| /' conftest.$ac_ext >&5
46564
46565         wx_cv_func_strptime_decl=no
46566
46567 fi
46568
46569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46570                 ac_ext=c
46571 ac_cpp='$CPP $CPPFLAGS'
46572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46575
46576
46577
46578 fi
46579 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46580 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46581     fi
46582     if test "$wx_cv_func_strptime_decl" = "yes"; then
46583         cat >>confdefs.h <<\_ACEOF
46584 #define HAVE_STRPTIME_DECL 1
46585 _ACEOF
46586
46587     else
46588         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46589     fi
46590     if test "$ac_cv_func_strptime" = "yes"; then
46591                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46592 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46593 if test "${wx_cv_func_strptime_ok+set}" = set; then
46594   echo $ECHO_N "(cached) $ECHO_C" >&6
46595 else
46596   if test "$cross_compiling" = yes; then
46597                   wx_cv_func_strptime_ok=no
46598
46599 else
46600   cat >conftest.$ac_ext <<_ACEOF
46601
46602                     #include <stdlib.h>
46603                     #include <time.h>
46604                     #include "confdefs.h"
46605
46606                     $wx_strptime_decl
46607
46608                     int main()
46609                     {
46610                         struct tm t;
46611                         return !!strptime("", "%x", &t);
46612                     }
46613
46614 _ACEOF
46615 rm -f conftest$ac_exeext
46616 if { (ac_try="$ac_link"
46617 case "(($ac_try" in
46618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46619   *) ac_try_echo=$ac_try;;
46620 esac
46621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46622   (eval "$ac_link") 2>&5
46623   ac_status=$?
46624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46626   { (case "(($ac_try" in
46627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46628   *) ac_try_echo=$ac_try;;
46629 esac
46630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46631   (eval "$ac_try") 2>&5
46632   ac_status=$?
46633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46634   (exit $ac_status); }; }; then
46635   wx_cv_func_strptime_ok=yes
46636 else
46637   echo "$as_me: program exited with status $ac_status" >&5
46638 echo "$as_me: failed program was:" >&5
46639 sed 's/^/| /' conftest.$ac_ext >&5
46640
46641 ( exit $ac_status )
46642 wx_cv_func_strptime_ok=no
46643 fi
46644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46645 fi
46646
46647
46648
46649 fi
46650 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46651 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46652
46653         if test "$wx_cv_func_strptime_ok" = "yes"; then
46654             cat >>confdefs.h <<\_ACEOF
46655 #define HAVE_STRPTIME 1
46656 _ACEOF
46657
46658         fi
46659     fi
46660
46661             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46662 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46663 if test "${wx_cv_var_timezone+set}" = set; then
46664   echo $ECHO_N "(cached) $ECHO_C" >&6
46665 else
46666
46667                         ac_ext=cpp
46668 ac_cpp='$CXXCPP $CPPFLAGS'
46669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46672
46673                         cat >conftest.$ac_ext <<_ACEOF
46674 /* confdefs.h.  */
46675 _ACEOF
46676 cat confdefs.h >>conftest.$ac_ext
46677 cat >>conftest.$ac_ext <<_ACEOF
46678 /* end confdefs.h.  */
46679
46680                                 #include <time.h>
46681
46682 int
46683 main ()
46684 {
46685
46686                                 int tz;
46687                                 tz = timezone;
46688
46689   ;
46690   return 0;
46691 }
46692 _ACEOF
46693 rm -f conftest.$ac_objext
46694 if { (ac_try="$ac_compile"
46695 case "(($ac_try" in
46696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46697   *) ac_try_echo=$ac_try;;
46698 esac
46699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46700   (eval "$ac_compile") 2>conftest.er1
46701   ac_status=$?
46702   grep -v '^ *+' conftest.er1 >conftest.err
46703   rm -f conftest.er1
46704   cat conftest.err >&5
46705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46706   (exit $ac_status); } && {
46707          test -z "$ac_cxx_werror_flag" ||
46708          test ! -s conftest.err
46709        } && test -s conftest.$ac_objext; then
46710
46711                                 wx_cv_var_timezone=timezone
46712
46713 else
46714   echo "$as_me: failed program was:" >&5
46715 sed 's/^/| /' conftest.$ac_ext >&5
46716
46717
46718                                 cat >conftest.$ac_ext <<_ACEOF
46719 /* confdefs.h.  */
46720 _ACEOF
46721 cat confdefs.h >>conftest.$ac_ext
46722 cat >>conftest.$ac_ext <<_ACEOF
46723 /* end confdefs.h.  */
46724
46725                                         #include <time.h>
46726
46727 int
46728 main ()
46729 {
46730
46731                                         int tz;
46732                                         tz = _timezone;
46733
46734   ;
46735   return 0;
46736 }
46737 _ACEOF
46738 rm -f conftest.$ac_objext
46739 if { (ac_try="$ac_compile"
46740 case "(($ac_try" in
46741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46742   *) ac_try_echo=$ac_try;;
46743 esac
46744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46745   (eval "$ac_compile") 2>conftest.er1
46746   ac_status=$?
46747   grep -v '^ *+' conftest.er1 >conftest.err
46748   rm -f conftest.er1
46749   cat conftest.err >&5
46750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46751   (exit $ac_status); } && {
46752          test -z "$ac_cxx_werror_flag" ||
46753          test ! -s conftest.err
46754        } && test -s conftest.$ac_objext; then
46755
46756                                         wx_cv_var_timezone=_timezone
46757
46758 else
46759   echo "$as_me: failed program was:" >&5
46760 sed 's/^/| /' conftest.$ac_ext >&5
46761
46762
46763                                         cat >conftest.$ac_ext <<_ACEOF
46764 /* confdefs.h.  */
46765 _ACEOF
46766 cat confdefs.h >>conftest.$ac_ext
46767 cat >>conftest.$ac_ext <<_ACEOF
46768 /* end confdefs.h.  */
46769
46770                                                 #include <time.h>
46771
46772 int
46773 main ()
46774 {
46775
46776                                                 int tz;
46777                                                 tz = __timezone;
46778
46779   ;
46780   return 0;
46781 }
46782 _ACEOF
46783 rm -f conftest.$ac_objext
46784 if { (ac_try="$ac_compile"
46785 case "(($ac_try" in
46786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46787   *) ac_try_echo=$ac_try;;
46788 esac
46789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46790   (eval "$ac_compile") 2>conftest.er1
46791   ac_status=$?
46792   grep -v '^ *+' conftest.er1 >conftest.err
46793   rm -f conftest.er1
46794   cat conftest.err >&5
46795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46796   (exit $ac_status); } && {
46797          test -z "$ac_cxx_werror_flag" ||
46798          test ! -s conftest.err
46799        } && test -s conftest.$ac_objext; then
46800
46801                                                 wx_cv_var_timezone=__timezone
46802
46803 else
46804   echo "$as_me: failed program was:" >&5
46805 sed 's/^/| /' conftest.$ac_ext >&5
46806
46807
46808                                                 if test "$USE_DOS" = 0 ; then
46809                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46810 echo "$as_me: WARNING: no timezone variable" >&2;}
46811                                                 fi
46812
46813
46814 fi
46815
46816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46817
46818
46819 fi
46820
46821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46822
46823
46824 fi
46825
46826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46827                         ac_ext=c
46828 ac_cpp='$CPP $CPPFLAGS'
46829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46832
46833
46834
46835 fi
46836 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46837 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46838
46839         if test "x$wx_cv_var_timezone" != x ; then
46840         cat >>confdefs.h <<_ACEOF
46841 #define WX_TIMEZONE $wx_cv_var_timezone
46842 _ACEOF
46843
46844     fi
46845
46846
46847 for ac_func in localtime
46848 do
46849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46853   echo $ECHO_N "(cached) $ECHO_C" >&6
46854 else
46855   cat >conftest.$ac_ext <<_ACEOF
46856 /* confdefs.h.  */
46857 _ACEOF
46858 cat confdefs.h >>conftest.$ac_ext
46859 cat >>conftest.$ac_ext <<_ACEOF
46860 /* end confdefs.h.  */
46861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46863 #define $ac_func innocuous_$ac_func
46864
46865 /* System header to define __stub macros and hopefully few prototypes,
46866     which can conflict with char $ac_func (); below.
46867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46868     <limits.h> exists even on freestanding compilers.  */
46869
46870 #ifdef __STDC__
46871 # include <limits.h>
46872 #else
46873 # include <assert.h>
46874 #endif
46875
46876 #undef $ac_func
46877
46878 /* Override any GCC internal prototype to avoid an error.
46879    Use char because int might match the return type of a GCC
46880    builtin and then its argument prototype would still apply.  */
46881 #ifdef __cplusplus
46882 extern "C"
46883 #endif
46884 char $ac_func ();
46885 /* The GNU C library defines this for functions which it implements
46886     to always fail with ENOSYS.  Some functions are actually named
46887     something starting with __ and the normal name is an alias.  */
46888 #if defined __stub_$ac_func || defined __stub___$ac_func
46889 choke me
46890 #endif
46891
46892 int
46893 main ()
46894 {
46895 return $ac_func ();
46896   ;
46897   return 0;
46898 }
46899 _ACEOF
46900 rm -f conftest.$ac_objext conftest$ac_exeext
46901 if { (ac_try="$ac_link"
46902 case "(($ac_try" in
46903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46904   *) ac_try_echo=$ac_try;;
46905 esac
46906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46907   (eval "$ac_link") 2>conftest.er1
46908   ac_status=$?
46909   grep -v '^ *+' conftest.er1 >conftest.err
46910   rm -f conftest.er1
46911   cat conftest.err >&5
46912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46913   (exit $ac_status); } && {
46914          test -z "$ac_c_werror_flag" ||
46915          test ! -s conftest.err
46916        } && test -s conftest$ac_exeext &&
46917        $as_test_x conftest$ac_exeext; then
46918   eval "$as_ac_var=yes"
46919 else
46920   echo "$as_me: failed program was:" >&5
46921 sed 's/^/| /' conftest.$ac_ext >&5
46922
46923         eval "$as_ac_var=no"
46924 fi
46925
46926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46927       conftest$ac_exeext conftest.$ac_ext
46928 fi
46929 ac_res=`eval echo '${'$as_ac_var'}'`
46930                { echo "$as_me:$LINENO: result: $ac_res" >&5
46931 echo "${ECHO_T}$ac_res" >&6; }
46932 if test `eval echo '${'$as_ac_var'}'` = yes; then
46933   cat >>confdefs.h <<_ACEOF
46934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46935 _ACEOF
46936
46937 fi
46938 done
46939
46940
46941     if test "$ac_cv_func_localtime" = "yes"; then
46942         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46943 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46944 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46945   echo $ECHO_N "(cached) $ECHO_C" >&6
46946 else
46947
46948             cat >conftest.$ac_ext <<_ACEOF
46949 /* confdefs.h.  */
46950 _ACEOF
46951 cat confdefs.h >>conftest.$ac_ext
46952 cat >>conftest.$ac_ext <<_ACEOF
46953 /* end confdefs.h.  */
46954
46955                     #include <time.h>
46956
46957 int
46958 main ()
46959 {
46960
46961                     struct tm tm;
46962                     tm.tm_gmtoff++;
46963
46964   ;
46965   return 0;
46966 }
46967 _ACEOF
46968 rm -f conftest.$ac_objext
46969 if { (ac_try="$ac_compile"
46970 case "(($ac_try" in
46971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46972   *) ac_try_echo=$ac_try;;
46973 esac
46974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46975   (eval "$ac_compile") 2>conftest.er1
46976   ac_status=$?
46977   grep -v '^ *+' conftest.er1 >conftest.err
46978   rm -f conftest.er1
46979   cat conftest.err >&5
46980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46981   (exit $ac_status); } && {
46982          test -z "$ac_c_werror_flag" ||
46983          test ! -s conftest.err
46984        } && test -s conftest.$ac_objext; then
46985
46986                     wx_cv_struct_tm_has_gmtoff=yes
46987
46988 else
46989   echo "$as_me: failed program was:" >&5
46990 sed 's/^/| /' conftest.$ac_ext >&5
46991
46992         wx_cv_struct_tm_has_gmtoff=no
46993
46994 fi
46995
46996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46997
46998 fi
46999 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
47000 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
47001     fi
47002
47003     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
47004         cat >>confdefs.h <<\_ACEOF
47005 #define WX_GMTOFF_IN_TM 1
47006 _ACEOF
47007
47008     fi
47009
47010     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
47011 fi
47012
47013
47014 if test "$wxUSE_SOCKETS" = "yes"; then
47015     if test "$wxUSE_MGL" = "1"; then
47016         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
47017 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
47018         wxUSE_SOCKETS="no"
47019     fi
47020 fi
47021
47022 if test "$wxUSE_SOCKETS" = "yes"; then
47023         if test "$TOOLKIT" != "MSW"; then
47024                 { echo "$as_me:$LINENO: checking for socket" >&5
47025 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
47026 if test "${ac_cv_func_socket+set}" = set; then
47027   echo $ECHO_N "(cached) $ECHO_C" >&6
47028 else
47029   cat >conftest.$ac_ext <<_ACEOF
47030 /* confdefs.h.  */
47031 _ACEOF
47032 cat confdefs.h >>conftest.$ac_ext
47033 cat >>conftest.$ac_ext <<_ACEOF
47034 /* end confdefs.h.  */
47035 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
47036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47037 #define socket innocuous_socket
47038
47039 /* System header to define __stub macros and hopefully few prototypes,
47040     which can conflict with char socket (); below.
47041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47042     <limits.h> exists even on freestanding compilers.  */
47043
47044 #ifdef __STDC__
47045 # include <limits.h>
47046 #else
47047 # include <assert.h>
47048 #endif
47049
47050 #undef socket
47051
47052 /* Override any GCC internal prototype to avoid an error.
47053    Use char because int might match the return type of a GCC
47054    builtin and then its argument prototype would still apply.  */
47055 #ifdef __cplusplus
47056 extern "C"
47057 #endif
47058 char socket ();
47059 /* The GNU C library defines this for functions which it implements
47060     to always fail with ENOSYS.  Some functions are actually named
47061     something starting with __ and the normal name is an alias.  */
47062 #if defined __stub_socket || defined __stub___socket
47063 choke me
47064 #endif
47065
47066 int
47067 main ()
47068 {
47069 return socket ();
47070   ;
47071   return 0;
47072 }
47073 _ACEOF
47074 rm -f conftest.$ac_objext conftest$ac_exeext
47075 if { (ac_try="$ac_link"
47076 case "(($ac_try" in
47077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47078   *) ac_try_echo=$ac_try;;
47079 esac
47080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47081   (eval "$ac_link") 2>conftest.er1
47082   ac_status=$?
47083   grep -v '^ *+' conftest.er1 >conftest.err
47084   rm -f conftest.er1
47085   cat conftest.err >&5
47086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47087   (exit $ac_status); } && {
47088          test -z "$ac_c_werror_flag" ||
47089          test ! -s conftest.err
47090        } && test -s conftest$ac_exeext &&
47091        $as_test_x conftest$ac_exeext; then
47092   ac_cv_func_socket=yes
47093 else
47094   echo "$as_me: failed program was:" >&5
47095 sed 's/^/| /' conftest.$ac_ext >&5
47096
47097         ac_cv_func_socket=no
47098 fi
47099
47100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47101       conftest$ac_exeext conftest.$ac_ext
47102 fi
47103 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
47104 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
47105 if test $ac_cv_func_socket = yes; then
47106   :
47107 else
47108
47109                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
47110 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
47111 if test "${ac_cv_lib_socket_socket+set}" = set; then
47112   echo $ECHO_N "(cached) $ECHO_C" >&6
47113 else
47114   ac_check_lib_save_LIBS=$LIBS
47115 LIBS="-lsocket  $LIBS"
47116 cat >conftest.$ac_ext <<_ACEOF
47117 /* confdefs.h.  */
47118 _ACEOF
47119 cat confdefs.h >>conftest.$ac_ext
47120 cat >>conftest.$ac_ext <<_ACEOF
47121 /* end confdefs.h.  */
47122
47123 /* Override any GCC internal prototype to avoid an error.
47124    Use char because int might match the return type of a GCC
47125    builtin and then its argument prototype would still apply.  */
47126 #ifdef __cplusplus
47127 extern "C"
47128 #endif
47129 char socket ();
47130 int
47131 main ()
47132 {
47133 return socket ();
47134   ;
47135   return 0;
47136 }
47137 _ACEOF
47138 rm -f conftest.$ac_objext conftest$ac_exeext
47139 if { (ac_try="$ac_link"
47140 case "(($ac_try" in
47141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47142   *) ac_try_echo=$ac_try;;
47143 esac
47144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47145   (eval "$ac_link") 2>conftest.er1
47146   ac_status=$?
47147   grep -v '^ *+' conftest.er1 >conftest.err
47148   rm -f conftest.er1
47149   cat conftest.err >&5
47150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47151   (exit $ac_status); } && {
47152          test -z "$ac_c_werror_flag" ||
47153          test ! -s conftest.err
47154        } && test -s conftest$ac_exeext &&
47155        $as_test_x conftest$ac_exeext; then
47156   ac_cv_lib_socket_socket=yes
47157 else
47158   echo "$as_me: failed program was:" >&5
47159 sed 's/^/| /' conftest.$ac_ext >&5
47160
47161         ac_cv_lib_socket_socket=no
47162 fi
47163
47164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47165       conftest$ac_exeext conftest.$ac_ext
47166 LIBS=$ac_check_lib_save_LIBS
47167 fi
47168 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
47169 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
47170 if test $ac_cv_lib_socket_socket = yes; then
47171   if test "$INET_LINK" != " -lsocket"; then
47172                         INET_LINK="$INET_LINK -lsocket"
47173                     fi
47174 else
47175
47176                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
47177 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
47178                         wxUSE_SOCKETS=no
47179
47180
47181 fi
47182
47183
47184
47185 fi
47186
47187     fi
47188 fi
47189
47190 if test "$wxUSE_SOCKETS" = "yes" ; then
47191                 if test "$TOOLKIT" != "MSW"; then
47192                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
47193 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
47194 if test "${wx_cv_type_getsockname3+set}" = set; then
47195   echo $ECHO_N "(cached) $ECHO_C" >&6
47196 else
47197
47198                 ac_ext=cpp
47199 ac_cpp='$CXXCPP $CPPFLAGS'
47200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47203
47204                 cat >conftest.$ac_ext <<_ACEOF
47205 /* confdefs.h.  */
47206 _ACEOF
47207 cat confdefs.h >>conftest.$ac_ext
47208 cat >>conftest.$ac_ext <<_ACEOF
47209 /* end confdefs.h.  */
47210
47211                         #include <sys/types.h>
47212                         #include <sys/socket.h>
47213
47214 int
47215 main ()
47216 {
47217
47218                         socklen_t len;
47219                         getsockname(0, 0, &len);
47220
47221   ;
47222   return 0;
47223 }
47224 _ACEOF
47225 rm -f conftest.$ac_objext
47226 if { (ac_try="$ac_compile"
47227 case "(($ac_try" in
47228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47229   *) ac_try_echo=$ac_try;;
47230 esac
47231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47232   (eval "$ac_compile") 2>conftest.er1
47233   ac_status=$?
47234   grep -v '^ *+' conftest.er1 >conftest.err
47235   rm -f conftest.er1
47236   cat conftest.err >&5
47237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47238   (exit $ac_status); } && {
47239          test -z "$ac_cxx_werror_flag" ||
47240          test ! -s conftest.err
47241        } && test -s conftest.$ac_objext; then
47242   wx_cv_type_getsockname3=socklen_t
47243 else
47244   echo "$as_me: failed program was:" >&5
47245 sed 's/^/| /' conftest.$ac_ext >&5
47246
47247
47248                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
47249                         if test "$GCC" = yes ; then
47250                             CFLAGS="-Werror $CFLAGS"
47251                         fi
47252
47253                         cat >conftest.$ac_ext <<_ACEOF
47254 /* confdefs.h.  */
47255 _ACEOF
47256 cat confdefs.h >>conftest.$ac_ext
47257 cat >>conftest.$ac_ext <<_ACEOF
47258 /* end confdefs.h.  */
47259
47260                                 #include <sys/types.h>
47261                                 #include <sys/socket.h>
47262
47263 int
47264 main ()
47265 {
47266
47267                                 size_t len;
47268                                 getsockname(0, 0, &len);
47269
47270   ;
47271   return 0;
47272 }
47273 _ACEOF
47274 rm -f conftest.$ac_objext
47275 if { (ac_try="$ac_compile"
47276 case "(($ac_try" in
47277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47278   *) ac_try_echo=$ac_try;;
47279 esac
47280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47281   (eval "$ac_compile") 2>conftest.er1
47282   ac_status=$?
47283   grep -v '^ *+' conftest.er1 >conftest.err
47284   rm -f conftest.er1
47285   cat conftest.err >&5
47286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47287   (exit $ac_status); } && {
47288          test -z "$ac_cxx_werror_flag" ||
47289          test ! -s conftest.err
47290        } && test -s conftest.$ac_objext; then
47291   wx_cv_type_getsockname3=size_t
47292 else
47293   echo "$as_me: failed program was:" >&5
47294 sed 's/^/| /' conftest.$ac_ext >&5
47295
47296         cat >conftest.$ac_ext <<_ACEOF
47297 /* confdefs.h.  */
47298 _ACEOF
47299 cat confdefs.h >>conftest.$ac_ext
47300 cat >>conftest.$ac_ext <<_ACEOF
47301 /* end confdefs.h.  */
47302
47303                                     #include <sys/types.h>
47304                                     #include <sys/socket.h>
47305
47306 int
47307 main ()
47308 {
47309
47310                                     int len;
47311                                     getsockname(0, 0, &len);
47312
47313   ;
47314   return 0;
47315 }
47316 _ACEOF
47317 rm -f conftest.$ac_objext
47318 if { (ac_try="$ac_compile"
47319 case "(($ac_try" in
47320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47321   *) ac_try_echo=$ac_try;;
47322 esac
47323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47324   (eval "$ac_compile") 2>conftest.er1
47325   ac_status=$?
47326   grep -v '^ *+' conftest.er1 >conftest.err
47327   rm -f conftest.er1
47328   cat conftest.err >&5
47329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47330   (exit $ac_status); } && {
47331          test -z "$ac_cxx_werror_flag" ||
47332          test ! -s conftest.err
47333        } && test -s conftest.$ac_objext; then
47334   wx_cv_type_getsockname3=int
47335 else
47336   echo "$as_me: failed program was:" >&5
47337 sed 's/^/| /' conftest.$ac_ext >&5
47338
47339         wx_cv_type_getsockname3=unknown
47340
47341 fi
47342
47343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47344
47345 fi
47346
47347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47348
47349                         CFLAGS="$CFLAGS_OLD"
47350
47351
47352 fi
47353
47354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47355                 ac_ext=c
47356 ac_cpp='$CPP $CPPFLAGS'
47357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47360
47361
47362 fi
47363 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
47364 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
47365
47366         if test "$wx_cv_type_getsockname3" = "unknown"; then
47367             wxUSE_SOCKETS=no
47368             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47369 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47370         else
47371             cat >>confdefs.h <<_ACEOF
47372 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
47373 _ACEOF
47374
47375         fi
47376                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
47377 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
47378 if test "${wx_cv_type_getsockopt5+set}" = set; then
47379   echo $ECHO_N "(cached) $ECHO_C" >&6
47380 else
47381
47382                                                                                                 ac_ext=cpp
47383 ac_cpp='$CXXCPP $CPPFLAGS'
47384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47387
47388                 cat >conftest.$ac_ext <<_ACEOF
47389 /* confdefs.h.  */
47390 _ACEOF
47391 cat confdefs.h >>conftest.$ac_ext
47392 cat >>conftest.$ac_ext <<_ACEOF
47393 /* end confdefs.h.  */
47394
47395                         #include <sys/types.h>
47396                         #include <sys/socket.h>
47397
47398 int
47399 main ()
47400 {
47401
47402                         socklen_t len;
47403                         getsockopt(0, 0, 0, 0, &len);
47404
47405   ;
47406   return 0;
47407 }
47408 _ACEOF
47409 rm -f conftest.$ac_objext
47410 if { (ac_try="$ac_compile"
47411 case "(($ac_try" in
47412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47413   *) ac_try_echo=$ac_try;;
47414 esac
47415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47416   (eval "$ac_compile") 2>conftest.er1
47417   ac_status=$?
47418   grep -v '^ *+' conftest.er1 >conftest.err
47419   rm -f conftest.er1
47420   cat conftest.err >&5
47421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422   (exit $ac_status); } && {
47423          test -z "$ac_cxx_werror_flag" ||
47424          test ! -s conftest.err
47425        } && test -s conftest.$ac_objext; then
47426   wx_cv_type_getsockopt5=socklen_t
47427 else
47428   echo "$as_me: failed program was:" >&5
47429 sed 's/^/| /' conftest.$ac_ext >&5
47430
47431
47432                         cat >conftest.$ac_ext <<_ACEOF
47433 /* confdefs.h.  */
47434 _ACEOF
47435 cat confdefs.h >>conftest.$ac_ext
47436 cat >>conftest.$ac_ext <<_ACEOF
47437 /* end confdefs.h.  */
47438
47439                                 #include <sys/types.h>
47440                                 #include <sys/socket.h>
47441
47442 int
47443 main ()
47444 {
47445
47446                                 size_t len;
47447                                 getsockopt(0, 0, 0, 0, &len);
47448
47449   ;
47450   return 0;
47451 }
47452 _ACEOF
47453 rm -f conftest.$ac_objext
47454 if { (ac_try="$ac_compile"
47455 case "(($ac_try" in
47456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47457   *) ac_try_echo=$ac_try;;
47458 esac
47459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47460   (eval "$ac_compile") 2>conftest.er1
47461   ac_status=$?
47462   grep -v '^ *+' conftest.er1 >conftest.err
47463   rm -f conftest.er1
47464   cat conftest.err >&5
47465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47466   (exit $ac_status); } && {
47467          test -z "$ac_cxx_werror_flag" ||
47468          test ! -s conftest.err
47469        } && test -s conftest.$ac_objext; then
47470   wx_cv_type_getsockopt5=size_t
47471 else
47472   echo "$as_me: failed program was:" >&5
47473 sed 's/^/| /' conftest.$ac_ext >&5
47474
47475         cat >conftest.$ac_ext <<_ACEOF
47476 /* confdefs.h.  */
47477 _ACEOF
47478 cat confdefs.h >>conftest.$ac_ext
47479 cat >>conftest.$ac_ext <<_ACEOF
47480 /* end confdefs.h.  */
47481
47482                                     #include <sys/types.h>
47483                                     #include <sys/socket.h>
47484
47485 int
47486 main ()
47487 {
47488
47489                                     int len;
47490                                     getsockopt(0, 0, 0, 0, &len);
47491
47492   ;
47493   return 0;
47494 }
47495 _ACEOF
47496 rm -f conftest.$ac_objext
47497 if { (ac_try="$ac_compile"
47498 case "(($ac_try" in
47499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47500   *) ac_try_echo=$ac_try;;
47501 esac
47502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47503   (eval "$ac_compile") 2>conftest.er1
47504   ac_status=$?
47505   grep -v '^ *+' conftest.er1 >conftest.err
47506   rm -f conftest.er1
47507   cat conftest.err >&5
47508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47509   (exit $ac_status); } && {
47510          test -z "$ac_cxx_werror_flag" ||
47511          test ! -s conftest.err
47512        } && test -s conftest.$ac_objext; then
47513   wx_cv_type_getsockopt5=int
47514 else
47515   echo "$as_me: failed program was:" >&5
47516 sed 's/^/| /' conftest.$ac_ext >&5
47517
47518         wx_cv_type_getsockopt5=unknown
47519
47520 fi
47521
47522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47523
47524 fi
47525
47526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47527
47528
47529 fi
47530
47531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47532                 ac_ext=c
47533 ac_cpp='$CPP $CPPFLAGS'
47534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47537
47538
47539 fi
47540 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47541 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47542
47543         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47544             wxUSE_SOCKETS=no
47545             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47546 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47547         else
47548             cat >>confdefs.h <<_ACEOF
47549 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47550 _ACEOF
47551
47552         fi
47553     fi
47554 fi
47555
47556 if test "$wxUSE_SOCKETS" = "yes" ; then
47557     cat >>confdefs.h <<\_ACEOF
47558 #define wxUSE_SOCKETS 1
47559 _ACEOF
47560
47561     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47562 fi
47563
47564 if test "$wxUSE_PROTOCOL" = "yes"; then
47565     if test "$wxUSE_SOCKETS" != "yes"; then
47566         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47567 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47568         wxUSE_PROTOCOL=no
47569     fi
47570 fi
47571
47572 if test "$wxUSE_PROTOCOL" = "yes"; then
47573     cat >>confdefs.h <<\_ACEOF
47574 #define wxUSE_PROTOCOL 1
47575 _ACEOF
47576
47577
47578     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47579         cat >>confdefs.h <<\_ACEOF
47580 #define wxUSE_PROTOCOL_HTTP 1
47581 _ACEOF
47582
47583     fi
47584     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47585         cat >>confdefs.h <<\_ACEOF
47586 #define wxUSE_PROTOCOL_FTP 1
47587 _ACEOF
47588
47589     fi
47590     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47591         cat >>confdefs.h <<\_ACEOF
47592 #define wxUSE_PROTOCOL_FILE 1
47593 _ACEOF
47594
47595     fi
47596 else
47597     if test "$wxUSE_FS_INET" = "yes"; then
47598         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47599 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47600         wxUSE_FS_INET="no"
47601     fi
47602 fi
47603
47604 if test "$wxUSE_URL" = "yes"; then
47605     if test "$wxUSE_PROTOCOL" != "yes"; then
47606         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47607 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47608         wxUSE_URL=no
47609     fi
47610     if test "$wxUSE_URL" = "yes"; then
47611         cat >>confdefs.h <<\_ACEOF
47612 #define wxUSE_URL 1
47613 _ACEOF
47614
47615     fi
47616 fi
47617
47618 if test "$wxUSE_VARIANT" = "yes"; then
47619     cat >>confdefs.h <<\_ACEOF
47620 #define wxUSE_VARIANT 1
47621 _ACEOF
47622
47623 fi
47624
47625 if test "$wxUSE_FS_INET" = "yes"; then
47626   cat >>confdefs.h <<\_ACEOF
47627 #define wxUSE_FS_INET 1
47628 _ACEOF
47629
47630 fi
47631
47632
47633 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47634     wxUSE_JOYSTICK=no
47635
47636         if test "$TOOLKIT" = "MSW"; then
47637         wxUSE_JOYSTICK=yes
47638
47639         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47640         if test "$USE_DARWIN" = 1; then
47641                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47642 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47643             ac_ext=cpp
47644 ac_cpp='$CXXCPP $CPPFLAGS'
47645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47648
47649             cat >conftest.$ac_ext <<_ACEOF
47650 /* confdefs.h.  */
47651 _ACEOF
47652 cat confdefs.h >>conftest.$ac_ext
47653 cat >>conftest.$ac_ext <<_ACEOF
47654 /* end confdefs.h.  */
47655  #include <IOKit/hid/IOHIDLib.h>
47656 int
47657 main ()
47658 {
47659  IOHIDQueueInterface *qi = NULL;
47660                               IOHIDCallbackFunction cb = NULL;
47661                               qi->setEventCallout(NULL, cb, NULL, NULL);
47662   ;
47663   return 0;
47664 }
47665 _ACEOF
47666 rm -f conftest.$ac_objext
47667 if { (ac_try="$ac_compile"
47668 case "(($ac_try" in
47669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47670   *) ac_try_echo=$ac_try;;
47671 esac
47672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47673   (eval "$ac_compile") 2>conftest.er1
47674   ac_status=$?
47675   grep -v '^ *+' conftest.er1 >conftest.err
47676   rm -f conftest.er1
47677   cat conftest.err >&5
47678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47679   (exit $ac_status); } && {
47680          test -z "$ac_cxx_werror_flag" ||
47681          test ! -s conftest.err
47682        } && test -s conftest.$ac_objext; then
47683    wxUSE_JOYSTICK=yes
47684
47685 else
47686   echo "$as_me: failed program was:" >&5
47687 sed 's/^/| /' conftest.$ac_ext >&5
47688
47689
47690 fi
47691
47692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47693             ac_ext=c
47694 ac_cpp='$CPP $CPPFLAGS'
47695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47698
47699             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47700 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47701         fi
47702
47703         else
47704                 if test "$wxUSE_MGL" != "1"; then
47705
47706 for ac_header in linux/joystick.h
47707 do
47708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47712   echo $ECHO_N "(cached) $ECHO_C" >&6
47713 else
47714   cat >conftest.$ac_ext <<_ACEOF
47715 /* confdefs.h.  */
47716 _ACEOF
47717 cat confdefs.h >>conftest.$ac_ext
47718 cat >>conftest.$ac_ext <<_ACEOF
47719 /* end confdefs.h.  */
47720 $ac_includes_default
47721
47722 #include <$ac_header>
47723 _ACEOF
47724 rm -f conftest.$ac_objext
47725 if { (ac_try="$ac_compile"
47726 case "(($ac_try" in
47727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47728   *) ac_try_echo=$ac_try;;
47729 esac
47730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47731   (eval "$ac_compile") 2>conftest.er1
47732   ac_status=$?
47733   grep -v '^ *+' conftest.er1 >conftest.err
47734   rm -f conftest.er1
47735   cat conftest.err >&5
47736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47737   (exit $ac_status); } && {
47738          test -z "$ac_c_werror_flag" ||
47739          test ! -s conftest.err
47740        } && test -s conftest.$ac_objext; then
47741   eval "$as_ac_Header=yes"
47742 else
47743   echo "$as_me: failed program was:" >&5
47744 sed 's/^/| /' conftest.$ac_ext >&5
47745
47746         eval "$as_ac_Header=no"
47747 fi
47748
47749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47750 fi
47751 ac_res=`eval echo '${'$as_ac_Header'}'`
47752                { echo "$as_me:$LINENO: result: $ac_res" >&5
47753 echo "${ECHO_T}$ac_res" >&6; }
47754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47755   cat >>confdefs.h <<_ACEOF
47756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47757 _ACEOF
47758  wxUSE_JOYSTICK=yes
47759 fi
47760
47761 done
47762
47763         fi
47764     fi
47765
47766     if test "$wxUSE_JOYSTICK" = "yes"; then
47767         cat >>confdefs.h <<\_ACEOF
47768 #define wxUSE_JOYSTICK 1
47769 _ACEOF
47770
47771         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47772     else
47773         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47774 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47775     fi
47776 fi
47777
47778
47779
47780 if test "$wxUSE_FONTENUM" = "yes" ; then
47781   cat >>confdefs.h <<\_ACEOF
47782 #define wxUSE_FONTENUM 1
47783 _ACEOF
47784
47785 fi
47786
47787 if test "$wxUSE_FONTMAP" = "yes" ; then
47788   cat >>confdefs.h <<\_ACEOF
47789 #define wxUSE_FONTMAP 1
47790 _ACEOF
47791
47792 fi
47793
47794 if test "$wxUSE_UNICODE" = "yes" ; then
47795   cat >>confdefs.h <<\_ACEOF
47796 #define wxUSE_UNICODE 1
47797 _ACEOF
47798
47799
47800   if test "$USE_WIN32" != 1; then
47801       wxUSE_UNICODE_MSLU=no
47802   fi
47803
47804   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47805         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47806 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47807 if test "${ac_cv_lib_unicows_main+set}" = set; then
47808   echo $ECHO_N "(cached) $ECHO_C" >&6
47809 else
47810   ac_check_lib_save_LIBS=$LIBS
47811 LIBS="-lunicows  $LIBS"
47812 cat >conftest.$ac_ext <<_ACEOF
47813 /* confdefs.h.  */
47814 _ACEOF
47815 cat confdefs.h >>conftest.$ac_ext
47816 cat >>conftest.$ac_ext <<_ACEOF
47817 /* end confdefs.h.  */
47818
47819
47820 int
47821 main ()
47822 {
47823 return main ();
47824   ;
47825   return 0;
47826 }
47827 _ACEOF
47828 rm -f conftest.$ac_objext conftest$ac_exeext
47829 if { (ac_try="$ac_link"
47830 case "(($ac_try" in
47831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47832   *) ac_try_echo=$ac_try;;
47833 esac
47834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47835   (eval "$ac_link") 2>conftest.er1
47836   ac_status=$?
47837   grep -v '^ *+' conftest.er1 >conftest.err
47838   rm -f conftest.er1
47839   cat conftest.err >&5
47840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47841   (exit $ac_status); } && {
47842          test -z "$ac_c_werror_flag" ||
47843          test ! -s conftest.err
47844        } && test -s conftest$ac_exeext &&
47845        $as_test_x conftest$ac_exeext; then
47846   ac_cv_lib_unicows_main=yes
47847 else
47848   echo "$as_me: failed program was:" >&5
47849 sed 's/^/| /' conftest.$ac_ext >&5
47850
47851         ac_cv_lib_unicows_main=no
47852 fi
47853
47854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47855       conftest$ac_exeext conftest.$ac_ext
47856 LIBS=$ac_check_lib_save_LIBS
47857 fi
47858 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47859 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47860 if test $ac_cv_lib_unicows_main = yes; then
47861
47862                 cat >>confdefs.h <<\_ACEOF
47863 #define wxUSE_UNICODE_MSLU 1
47864 _ACEOF
47865
47866
47867 else
47868
47869                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47870                              Applications will only run on Windows NT/2000/XP!" >&5
47871 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47872                              Applications will only run on Windows NT/2000/XP!" >&2;}
47873                 wxUSE_UNICODE_MSLU=no
47874
47875 fi
47876
47877     fi
47878 fi
47879
47880 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47881     cat >>confdefs.h <<\_ACEOF
47882 #define wxUSE_UNICODE_UTF8 1
47883 _ACEOF
47884
47885
47886     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47887         cat >>confdefs.h <<\_ACEOF
47888 #define wxUSE_UTF8_LOCALE_ONLY 1
47889 _ACEOF
47890
47891     fi
47892 fi
47893
47894
47895 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47896     cat >>confdefs.h <<\_ACEOF
47897 #define wxUSE_CONSTRAINTS 1
47898 _ACEOF
47899
47900     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47901 fi
47902
47903 if test "$wxUSE_MDI" = "yes"; then
47904     cat >>confdefs.h <<\_ACEOF
47905 #define wxUSE_MDI 1
47906 _ACEOF
47907
47908
47909     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47910         cat >>confdefs.h <<\_ACEOF
47911 #define wxUSE_MDI_ARCHITECTURE 1
47912 _ACEOF
47913
47914         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47915     fi
47916 fi
47917
47918 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47919     cat >>confdefs.h <<\_ACEOF
47920 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47921 _ACEOF
47922
47923     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47924     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47925         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47926     fi
47927 fi
47928
47929 if test "$wxUSE_HELP" = "yes"; then
47930     cat >>confdefs.h <<\_ACEOF
47931 #define wxUSE_HELP 1
47932 _ACEOF
47933
47934     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47935
47936     if test "$wxUSE_MSW" = 1; then
47937       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47938         cat >>confdefs.h <<\_ACEOF
47939 #define wxUSE_MS_HTML_HELP 1
47940 _ACEOF
47941
47942       fi
47943     fi
47944
47945     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47946       if test "$wxUSE_HTML" = "yes"; then
47947         cat >>confdefs.h <<\_ACEOF
47948 #define wxUSE_WXHTML_HELP 1
47949 _ACEOF
47950
47951       else
47952         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47953 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47954         wxUSE_WXHTML_HELP=no
47955       fi
47956     fi
47957 fi
47958
47959 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47960     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47961         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47962 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47963     else
47964         cat >>confdefs.h <<\_ACEOF
47965 #define wxUSE_PRINTING_ARCHITECTURE 1
47966 _ACEOF
47967
47968     fi
47969     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47970 fi
47971
47972 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47973   cat >>confdefs.h <<\_ACEOF
47974 #define wxUSE_POSTSCRIPT 1
47975 _ACEOF
47976
47977 fi
47978
47979 cat >>confdefs.h <<\_ACEOF
47980 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47981 _ACEOF
47982
47983
47984 if test "$wxUSE_SVG" = "yes"; then
47985     cat >>confdefs.h <<\_ACEOF
47986 #define wxUSE_SVG 1
47987 _ACEOF
47988
47989 fi
47990
47991
47992 if test "$wxUSE_METAFILE" = "yes"; then
47993     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47994         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47995 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47996         wxUSE_METAFILE=no
47997     fi
47998 fi
47999
48000
48001 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
48002                           -o "$wxUSE_CLIPBOARD"     = "yes" \
48003                           -o "$wxUSE_OLE"     = "yes" \
48004                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
48005     { echo "$as_me:$LINENO: checking for ole2.h" >&5
48006 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
48007 if test "${ac_cv_header_ole2_h+set}" = set; then
48008   echo $ECHO_N "(cached) $ECHO_C" >&6
48009 else
48010   cat >conftest.$ac_ext <<_ACEOF
48011 /* confdefs.h.  */
48012 _ACEOF
48013 cat confdefs.h >>conftest.$ac_ext
48014 cat >>conftest.$ac_ext <<_ACEOF
48015 /* end confdefs.h.  */
48016
48017
48018 #include <ole2.h>
48019 _ACEOF
48020 rm -f conftest.$ac_objext
48021 if { (ac_try="$ac_compile"
48022 case "(($ac_try" in
48023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48024   *) ac_try_echo=$ac_try;;
48025 esac
48026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48027   (eval "$ac_compile") 2>conftest.er1
48028   ac_status=$?
48029   grep -v '^ *+' conftest.er1 >conftest.err
48030   rm -f conftest.er1
48031   cat conftest.err >&5
48032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48033   (exit $ac_status); } && {
48034          test -z "$ac_c_werror_flag" ||
48035          test ! -s conftest.err
48036        } && test -s conftest.$ac_objext; then
48037   ac_cv_header_ole2_h=yes
48038 else
48039   echo "$as_me: failed program was:" >&5
48040 sed 's/^/| /' conftest.$ac_ext >&5
48041
48042         ac_cv_header_ole2_h=no
48043 fi
48044
48045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48046 fi
48047 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
48048 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
48049
48050
48051
48052     if test "$ac_cv_header_ole2_h" = "yes" ; then
48053         if test "$GCC" = yes ; then
48054             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
48055 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
48056             cat >conftest.$ac_ext <<_ACEOF
48057 /* confdefs.h.  */
48058 _ACEOF
48059 cat confdefs.h >>conftest.$ac_ext
48060 cat >>conftest.$ac_ext <<_ACEOF
48061 /* end confdefs.h.  */
48062 #include <windows.h>
48063                             #include <ole2.h>
48064 int
48065 main ()
48066 {
48067
48068   ;
48069   return 0;
48070 }
48071 _ACEOF
48072 rm -f conftest.$ac_objext
48073 if { (ac_try="$ac_compile"
48074 case "(($ac_try" in
48075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48076   *) ac_try_echo=$ac_try;;
48077 esac
48078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48079   (eval "$ac_compile") 2>conftest.er1
48080   ac_status=$?
48081   grep -v '^ *+' conftest.er1 >conftest.err
48082   rm -f conftest.er1
48083   cat conftest.err >&5
48084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48085   (exit $ac_status); } && {
48086          test -z "$ac_c_werror_flag" ||
48087          test ! -s conftest.err
48088        } && test -s conftest.$ac_objext; then
48089   { echo "$as_me:$LINENO: result: no" >&5
48090 echo "${ECHO_T}no" >&6; }
48091 else
48092   echo "$as_me: failed program was:" >&5
48093 sed 's/^/| /' conftest.$ac_ext >&5
48094
48095         { echo "$as_me:$LINENO: result: yes" >&5
48096 echo "${ECHO_T}yes" >&6; }
48097                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
48098 fi
48099
48100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48101             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
48102             if test "$wxUSE_OLE" = "yes" ; then
48103                 cat >>confdefs.h <<\_ACEOF
48104 #define wxUSE_OLE 1
48105 _ACEOF
48106
48107                 cat >>confdefs.h <<\_ACEOF
48108 #define wxUSE_OLE_AUTOMATION 1
48109 _ACEOF
48110
48111                 cat >>confdefs.h <<\_ACEOF
48112 #define wxUSE_ACTIVEX 1
48113 _ACEOF
48114
48115                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
48116             fi
48117         fi
48118
48119                 if test "$wxUSE_DATAOBJ" = "yes" ; then
48120             cat >>confdefs.h <<\_ACEOF
48121 #define wxUSE_DATAOBJ 1
48122 _ACEOF
48123
48124         fi
48125     else
48126         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
48127 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
48128
48129         wxUSE_CLIPBOARD=no
48130         wxUSE_DRAG_AND_DROP=no
48131         wxUSE_DATAOBJ=no
48132         wxUSE_OLE=no
48133     fi
48134
48135     if test "$wxUSE_METAFILE" = "yes"; then
48136         cat >>confdefs.h <<\_ACEOF
48137 #define wxUSE_METAFILE 1
48138 _ACEOF
48139
48140
48141                 cat >>confdefs.h <<\_ACEOF
48142 #define wxUSE_ENH_METAFILE 1
48143 _ACEOF
48144
48145     fi
48146 fi
48147
48148 if test "$wxUSE_IPC" = "yes"; then
48149     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
48150         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
48151 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
48152         wxUSE_IPC=no
48153     fi
48154
48155     if test "$wxUSE_IPC" = "yes"; then
48156         cat >>confdefs.h <<\_ACEOF
48157 #define wxUSE_IPC 1
48158 _ACEOF
48159
48160         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48161     fi
48162 fi
48163
48164 if test "$wxUSE_DATAOBJ" = "yes"; then
48165     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48166         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
48167 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
48168         wxUSE_DATAOBJ=no
48169     else
48170         cat >>confdefs.h <<\_ACEOF
48171 #define wxUSE_DATAOBJ 1
48172 _ACEOF
48173
48174     fi
48175 else
48176     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
48177 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
48178     wxUSE_CLIPBOARD=no
48179     wxUSE_DRAG_AND_DROP=no
48180 fi
48181
48182 if test "$wxUSE_CLIPBOARD" = "yes"; then
48183     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48184         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
48185 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
48186         wxUSE_CLIPBOARD=no
48187     fi
48188
48189     if test "$wxUSE_CLIPBOARD" = "yes"; then
48190         cat >>confdefs.h <<\_ACEOF
48191 #define wxUSE_CLIPBOARD 1
48192 _ACEOF
48193
48194     fi
48195 fi
48196
48197 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
48198     if test "$wxUSE_GTK" = 1; then
48199         if test "$WXGTK12" != 1; then
48200             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
48201 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
48202             wxUSE_DRAG_AND_DROP=no
48203         fi
48204     fi
48205
48206     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
48207             "$wxUSE_DFB" = 1; then
48208         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
48209 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
48210         wxUSE_DRAG_AND_DROP=no
48211     fi
48212
48213     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
48214         cat >>confdefs.h <<\_ACEOF
48215 #define wxUSE_DRAG_AND_DROP 1
48216 _ACEOF
48217
48218     fi
48219
48220 fi
48221
48222 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
48223     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
48224 fi
48225
48226 if test "$wxUSE_SPLINES" = "yes" ; then
48227   cat >>confdefs.h <<\_ACEOF
48228 #define wxUSE_SPLINES 1
48229 _ACEOF
48230
48231 fi
48232
48233 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
48234   cat >>confdefs.h <<\_ACEOF
48235 #define wxUSE_MOUSEWHEEL 1
48236 _ACEOF
48237
48238 fi
48239
48240
48241 USES_CONTROLS=0
48242 if test "$wxUSE_CONTROLS" = "yes"; then
48243   USES_CONTROLS=1
48244 fi
48245
48246 if test "$wxUSE_ACCEL" = "yes"; then
48247   cat >>confdefs.h <<\_ACEOF
48248 #define wxUSE_ACCEL 1
48249 _ACEOF
48250
48251   USES_CONTROLS=1
48252 fi
48253
48254 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
48255   cat >>confdefs.h <<\_ACEOF
48256 #define wxUSE_ANIMATIONCTRL 1
48257 _ACEOF
48258
48259   USES_CONTROLS=1
48260   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
48261 fi
48262
48263 if test "$wxUSE_BUTTON" = "yes"; then
48264   cat >>confdefs.h <<\_ACEOF
48265 #define wxUSE_BUTTON 1
48266 _ACEOF
48267
48268   USES_CONTROLS=1
48269 fi
48270
48271 if test "$wxUSE_BMPBUTTON" = "yes"; then
48272   cat >>confdefs.h <<\_ACEOF
48273 #define wxUSE_BMPBUTTON 1
48274 _ACEOF
48275
48276   USES_CONTROLS=1
48277 fi
48278
48279 if test "$wxUSE_CALCTRL" = "yes"; then
48280   cat >>confdefs.h <<\_ACEOF
48281 #define wxUSE_CALENDARCTRL 1
48282 _ACEOF
48283
48284   USES_CONTROLS=1
48285   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
48286 fi
48287
48288 if test "$wxUSE_CARET" = "yes"; then
48289   cat >>confdefs.h <<\_ACEOF
48290 #define wxUSE_CARET 1
48291 _ACEOF
48292
48293   USES_CONTROLS=1
48294   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
48295 fi
48296
48297 if test "$wxUSE_COLLPANE" = "yes"; then
48298     cat >>confdefs.h <<\_ACEOF
48299 #define wxUSE_COLLPANE 1
48300 _ACEOF
48301
48302     USES_CONTROLS=1
48303     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
48304 fi
48305
48306 if test "$wxUSE_COMBOBOX" = "yes"; then
48307   cat >>confdefs.h <<\_ACEOF
48308 #define wxUSE_COMBOBOX 1
48309 _ACEOF
48310
48311   USES_CONTROLS=1
48312 fi
48313
48314 if test "$wxUSE_COMBOCTRL" = "yes"; then
48315   cat >>confdefs.h <<\_ACEOF
48316 #define wxUSE_COMBOCTRL 1
48317 _ACEOF
48318
48319   USES_CONTROLS=1
48320 fi
48321
48322 if test "$wxUSE_CHOICE" = "yes"; then
48323   cat >>confdefs.h <<\_ACEOF
48324 #define wxUSE_CHOICE 1
48325 _ACEOF
48326
48327   USES_CONTROLS=1
48328 fi
48329
48330 if test "$wxUSE_CHOICEBOOK" = "yes"; then
48331     cat >>confdefs.h <<\_ACEOF
48332 #define wxUSE_CHOICEBOOK 1
48333 _ACEOF
48334
48335     USES_CONTROLS=1
48336 fi
48337
48338 if test "$wxUSE_CHECKBOX" = "yes"; then
48339   cat >>confdefs.h <<\_ACEOF
48340 #define wxUSE_CHECKBOX 1
48341 _ACEOF
48342
48343   USES_CONTROLS=1
48344 fi
48345
48346 if test "$wxUSE_CHECKLST" = "yes"; then
48347   cat >>confdefs.h <<\_ACEOF
48348 #define wxUSE_CHECKLISTBOX 1
48349 _ACEOF
48350
48351   USES_CONTROLS=1
48352   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
48353 fi
48354
48355 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
48356   cat >>confdefs.h <<\_ACEOF
48357 #define wxUSE_COLOURPICKERCTRL 1
48358 _ACEOF
48359
48360   USES_CONTROLS=1
48361 fi
48362
48363 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
48364   cat >>confdefs.h <<\_ACEOF
48365 #define wxUSE_DATEPICKCTRL 1
48366 _ACEOF
48367
48368   USES_CONTROLS=1
48369 fi
48370
48371 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
48372   cat >>confdefs.h <<\_ACEOF
48373 #define wxUSE_DIRPICKERCTRL 1
48374 _ACEOF
48375
48376   USES_CONTROLS=1
48377 fi
48378
48379 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
48380   cat >>confdefs.h <<\_ACEOF
48381 #define wxUSE_FILEPICKERCTRL 1
48382 _ACEOF
48383
48384   USES_CONTROLS=1
48385 fi
48386
48387 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
48388   cat >>confdefs.h <<\_ACEOF
48389 #define wxUSE_FONTPICKERCTRL 1
48390 _ACEOF
48391
48392   USES_CONTROLS=1
48393 fi
48394
48395 if test "$wxUSE_DISPLAY" = "yes"; then
48396     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
48397         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
48398 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
48399         wxUSE_DISPLAY=no
48400     else
48401         cat >>confdefs.h <<\_ACEOF
48402 #define wxUSE_DISPLAY 1
48403 _ACEOF
48404
48405         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
48406     fi
48407 fi
48408
48409 if test "$wxUSE_DETECT_SM" = "yes"; then
48410     cat >>confdefs.h <<\_ACEOF
48411 #define wxUSE_DETECT_SM 1
48412 _ACEOF
48413
48414 fi
48415
48416 if test "$wxUSE_GAUGE" = "yes"; then
48417   cat >>confdefs.h <<\_ACEOF
48418 #define wxUSE_GAUGE 1
48419 _ACEOF
48420
48421   USES_CONTROLS=1
48422 fi
48423
48424 if test "$wxUSE_GRID" = "yes"; then
48425   cat >>confdefs.h <<\_ACEOF
48426 #define wxUSE_GRID 1
48427 _ACEOF
48428
48429   USES_CONTROLS=1
48430   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
48431 fi
48432
48433 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
48434   cat >>confdefs.h <<\_ACEOF
48435 #define wxUSE_HYPERLINKCTRL 1
48436 _ACEOF
48437
48438   USES_CONTROLS=1
48439 fi
48440
48441 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
48442   cat >>confdefs.h <<\_ACEOF
48443 #define wxUSE_BITMAPCOMBOBOX 1
48444 _ACEOF
48445
48446   USES_CONTROLS=1
48447 fi
48448
48449 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
48450   cat >>confdefs.h <<\_ACEOF
48451 #define wxUSE_DATAVIEWCTRL 1
48452 _ACEOF
48453
48454   USES_CONTROLS=1
48455   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
48456 fi
48457
48458 if test "$wxUSE_IMAGLIST" = "yes"; then
48459     cat >>confdefs.h <<\_ACEOF
48460 #define wxUSE_IMAGLIST 1
48461 _ACEOF
48462
48463 fi
48464
48465 if test "$wxUSE_LISTBOOK" = "yes"; then
48466     cat >>confdefs.h <<\_ACEOF
48467 #define wxUSE_LISTBOOK 1
48468 _ACEOF
48469
48470     USES_CONTROLS=1
48471 fi
48472
48473 if test "$wxUSE_LISTBOX" = "yes"; then
48474     cat >>confdefs.h <<\_ACEOF
48475 #define wxUSE_LISTBOX 1
48476 _ACEOF
48477
48478     USES_CONTROLS=1
48479     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
48480 fi
48481
48482 if test "$wxUSE_LISTCTRL" = "yes"; then
48483     if test "$wxUSE_IMAGLIST" = "yes"; then
48484         cat >>confdefs.h <<\_ACEOF
48485 #define wxUSE_LISTCTRL 1
48486 _ACEOF
48487
48488         USES_CONTROLS=1
48489         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48490     else
48491         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48492 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48493     fi
48494 fi
48495
48496 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48497     cat >>confdefs.h <<\_ACEOF
48498 #define wxUSE_EDITABLELISTBOX 1
48499 _ACEOF
48500
48501     USES_CONTROLS=1
48502     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48503 fi
48504
48505 if test "$wxUSE_NOTEBOOK" = "yes"; then
48506     cat >>confdefs.h <<\_ACEOF
48507 #define wxUSE_NOTEBOOK 1
48508 _ACEOF
48509
48510     USES_CONTROLS=1
48511     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48512 fi
48513
48514 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48515   cat >>confdefs.h <<\_ACEOF
48516 #define wxUSE_ODCOMBOBOX 1
48517 _ACEOF
48518
48519   USES_CONTROLS=1
48520   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48521 fi
48522
48523 if test "$wxUSE_RADIOBOX" = "yes"; then
48524     cat >>confdefs.h <<\_ACEOF
48525 #define wxUSE_RADIOBOX 1
48526 _ACEOF
48527
48528     USES_CONTROLS=1
48529 fi
48530
48531 if test "$wxUSE_RADIOBTN" = "yes"; then
48532     cat >>confdefs.h <<\_ACEOF
48533 #define wxUSE_RADIOBTN 1
48534 _ACEOF
48535
48536     USES_CONTROLS=1
48537 fi
48538
48539 if test "$wxUSE_SASH" = "yes"; then
48540     cat >>confdefs.h <<\_ACEOF
48541 #define wxUSE_SASH 1
48542 _ACEOF
48543
48544     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48545 fi
48546
48547 if test "$wxUSE_SCROLLBAR" = "yes"; then
48548     cat >>confdefs.h <<\_ACEOF
48549 #define wxUSE_SCROLLBAR 1
48550 _ACEOF
48551
48552     USES_CONTROLS=1
48553     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48554 fi
48555
48556 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48557     cat >>confdefs.h <<\_ACEOF
48558 #define wxUSE_SEARCHCTRL 1
48559 _ACEOF
48560
48561     USES_CONTROLS=1
48562 fi
48563
48564 if test "$wxUSE_SLIDER" = "yes"; then
48565     cat >>confdefs.h <<\_ACEOF
48566 #define wxUSE_SLIDER 1
48567 _ACEOF
48568
48569     USES_CONTROLS=1
48570 fi
48571
48572 if test "$wxUSE_SPINBTN" = "yes"; then
48573     cat >>confdefs.h <<\_ACEOF
48574 #define wxUSE_SPINBTN 1
48575 _ACEOF
48576
48577     USES_CONTROLS=1
48578 fi
48579
48580 if test "$wxUSE_SPINCTRL" = "yes"; then
48581     cat >>confdefs.h <<\_ACEOF
48582 #define wxUSE_SPINCTRL 1
48583 _ACEOF
48584
48585     USES_CONTROLS=1
48586 fi
48587
48588 if test "$wxUSE_SPLITTER" = "yes"; then
48589     cat >>confdefs.h <<\_ACEOF
48590 #define wxUSE_SPLITTER 1
48591 _ACEOF
48592
48593     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48594 fi
48595
48596 if test "$wxUSE_STATBMP" = "yes"; then
48597     cat >>confdefs.h <<\_ACEOF
48598 #define wxUSE_STATBMP 1
48599 _ACEOF
48600
48601     USES_CONTROLS=1
48602 fi
48603
48604 if test "$wxUSE_STATBOX" = "yes"; then
48605     cat >>confdefs.h <<\_ACEOF
48606 #define wxUSE_STATBOX 1
48607 _ACEOF
48608
48609     USES_CONTROLS=1
48610 fi
48611
48612 if test "$wxUSE_STATTEXT" = "yes"; then
48613     cat >>confdefs.h <<\_ACEOF
48614 #define wxUSE_STATTEXT 1
48615 _ACEOF
48616
48617     USES_CONTROLS=1
48618 fi
48619
48620 if test "$wxUSE_STATLINE" = "yes"; then
48621     cat >>confdefs.h <<\_ACEOF
48622 #define wxUSE_STATLINE 1
48623 _ACEOF
48624
48625     USES_CONTROLS=1
48626 fi
48627
48628 if test "$wxUSE_STATUSBAR" = "yes"; then
48629         cat >>confdefs.h <<\_ACEOF
48630 #define wxUSE_NATIVE_STATUSBAR 1
48631 _ACEOF
48632
48633     cat >>confdefs.h <<\_ACEOF
48634 #define wxUSE_STATUSBAR 1
48635 _ACEOF
48636
48637     USES_CONTROLS=1
48638
48639     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48640 fi
48641
48642 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48643     cat >>confdefs.h <<\_ACEOF
48644 #define wxUSE_TAB_DIALOG 1
48645 _ACEOF
48646
48647 fi
48648
48649 if test "$wxUSE_TEXTCTRL" = "yes"; then
48650     cat >>confdefs.h <<\_ACEOF
48651 #define wxUSE_TEXTCTRL 1
48652 _ACEOF
48653
48654     USES_CONTROLS=1
48655     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48656 fi
48657
48658 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48659     if test "$wxUSE_COCOA" = 1 ; then
48660         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48661 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48662         wxUSE_TOGGLEBTN=no
48663     fi
48664
48665     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48666         cat >>confdefs.h <<\_ACEOF
48667 #define wxUSE_TOGGLEBTN 1
48668 _ACEOF
48669
48670         USES_CONTROLS=1
48671     fi
48672 fi
48673
48674 if test "$wxUSE_TOOLBAR" = "yes"; then
48675     cat >>confdefs.h <<\_ACEOF
48676 #define wxUSE_TOOLBAR 1
48677 _ACEOF
48678
48679     USES_CONTROLS=1
48680
48681     if test "$wxUSE_UNIVERSAL" = "yes"; then
48682         wxUSE_TOOLBAR_NATIVE="no"
48683     else
48684         wxUSE_TOOLBAR_NATIVE="yes"
48685         cat >>confdefs.h <<\_ACEOF
48686 #define wxUSE_TOOLBAR_NATIVE 1
48687 _ACEOF
48688
48689     fi
48690
48691     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48692 fi
48693
48694 if test "$wxUSE_TOOLTIPS" = "yes"; then
48695     if test "$wxUSE_MOTIF" = 1; then
48696         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48697 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48698     else
48699         if test "$wxUSE_UNIVERSAL" = "yes"; then
48700             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48701 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48702         else
48703             cat >>confdefs.h <<\_ACEOF
48704 #define wxUSE_TOOLTIPS 1
48705 _ACEOF
48706
48707         fi
48708     fi
48709 fi
48710
48711 if test "$wxUSE_TREEBOOK" = "yes"; then
48712     cat >>confdefs.h <<\_ACEOF
48713 #define wxUSE_TREEBOOK 1
48714 _ACEOF
48715
48716     USES_CONTROLS=1
48717 fi
48718
48719 if test "$wxUSE_TOOLBOOK" = "yes"; then
48720     cat >>confdefs.h <<\_ACEOF
48721 #define wxUSE_TOOLBOOK 1
48722 _ACEOF
48723
48724     USES_CONTROLS=1
48725 fi
48726
48727 if test "$wxUSE_TREECTRL" = "yes"; then
48728     if test "$wxUSE_IMAGLIST" = "yes"; then
48729         cat >>confdefs.h <<\_ACEOF
48730 #define wxUSE_TREECTRL 1
48731 _ACEOF
48732
48733         USES_CONTROLS=1
48734         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48735     else
48736         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48737 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48738     fi
48739 fi
48740
48741 if test "$wxUSE_POPUPWIN" = "yes"; then
48742     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48743         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48744 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48745     else
48746         if test "$wxUSE_PM" = 1; then
48747             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48748 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48749         else
48750             cat >>confdefs.h <<\_ACEOF
48751 #define wxUSE_POPUPWIN 1
48752 _ACEOF
48753
48754             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48755
48756             USES_CONTROLS=1
48757         fi
48758     fi
48759 fi
48760
48761 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48762     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48763         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48764 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48765     else
48766         cat >>confdefs.h <<\_ACEOF
48767 #define wxUSE_DIALUP_MANAGER 1
48768 _ACEOF
48769
48770         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48771     fi
48772 fi
48773
48774 if test "$wxUSE_TIPWINDOW" = "yes"; then
48775     if test "$wxUSE_PM" = 1; then
48776         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48777 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48778     else
48779         cat >>confdefs.h <<\_ACEOF
48780 #define wxUSE_TIPWINDOW 1
48781 _ACEOF
48782
48783     fi
48784 fi
48785
48786 if test "$USES_CONTROLS" = 1; then
48787     cat >>confdefs.h <<\_ACEOF
48788 #define wxUSE_CONTROLS 1
48789 _ACEOF
48790
48791 fi
48792
48793
48794 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48795     cat >>confdefs.h <<\_ACEOF
48796 #define wxUSE_ACCESSIBILITY 1
48797 _ACEOF
48798
48799     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48800 fi
48801
48802 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48803     cat >>confdefs.h <<\_ACEOF
48804 #define wxUSE_DRAGIMAGE 1
48805 _ACEOF
48806
48807     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48808 fi
48809
48810 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48811     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48812         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48813 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48814     else
48815         cat >>confdefs.h <<\_ACEOF
48816 #define wxUSE_EXCEPTIONS 1
48817 _ACEOF
48818
48819         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48820     fi
48821 fi
48822
48823 USE_HTML=0
48824 if test "$wxUSE_HTML" = "yes"; then
48825     cat >>confdefs.h <<\_ACEOF
48826 #define wxUSE_HTML 1
48827 _ACEOF
48828
48829     USE_HTML=1
48830     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48831     if test "$wxUSE_MAC" = 1; then
48832         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48833     fi
48834 fi
48835 if test "$wxUSE_WEBKIT" = "yes"; then
48836     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48837         old_CPPFLAGS="$CPPFLAGS"
48838         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48839         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48840 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48841 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48842   echo $ECHO_N "(cached) $ECHO_C" >&6
48843 else
48844   cat >conftest.$ac_ext <<_ACEOF
48845 /* confdefs.h.  */
48846 _ACEOF
48847 cat confdefs.h >>conftest.$ac_ext
48848 cat >>conftest.$ac_ext <<_ACEOF
48849 /* end confdefs.h.  */
48850
48851                            #include <Carbon/Carbon.h>
48852                            #include <WebKit/WebKit.h>
48853
48854
48855 #include <WebKit/HIWebView.h>
48856 _ACEOF
48857 rm -f conftest.$ac_objext
48858 if { (ac_try="$ac_compile"
48859 case "(($ac_try" in
48860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48861   *) ac_try_echo=$ac_try;;
48862 esac
48863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48864   (eval "$ac_compile") 2>conftest.er1
48865   ac_status=$?
48866   grep -v '^ *+' conftest.er1 >conftest.err
48867   rm -f conftest.er1
48868   cat conftest.err >&5
48869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48870   (exit $ac_status); } && {
48871          test -z "$ac_c_werror_flag" ||
48872          test ! -s conftest.err
48873        } && test -s conftest.$ac_objext; then
48874   ac_cv_header_WebKit_HIWebView_h=yes
48875 else
48876   echo "$as_me: failed program was:" >&5
48877 sed 's/^/| /' conftest.$ac_ext >&5
48878
48879         ac_cv_header_WebKit_HIWebView_h=no
48880 fi
48881
48882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48883 fi
48884 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48885 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48886 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48887
48888                            cat >>confdefs.h <<\_ACEOF
48889 #define wxUSE_WEBKIT 1
48890 _ACEOF
48891
48892                            WEBKIT_LINK="-framework WebKit"
48893
48894 else
48895
48896                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48897 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48898                            wxUSE_WEBKIT=no
48899
48900 fi
48901
48902
48903         CPPFLAGS="$old_CPPFLAGS"
48904     elif test "$wxUSE_COCOA" = 1; then
48905         cat >>confdefs.h <<\_ACEOF
48906 #define wxUSE_WEBKIT 1
48907 _ACEOF
48908
48909     else
48910         wxUSE_WEBKIT=no
48911     fi
48912 fi
48913
48914 USE_XRC=0
48915 if test "$wxUSE_XRC" = "yes"; then
48916     if test "$wxUSE_XML" != "yes"; then
48917         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48918 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48919         wxUSE_XRC=no
48920     else
48921         cat >>confdefs.h <<\_ACEOF
48922 #define wxUSE_XRC 1
48923 _ACEOF
48924
48925         USE_XRC=1
48926         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48927     fi
48928 fi
48929
48930 USE_AUI=0
48931 if test "$wxUSE_AUI" = "yes"; then
48932    cat >>confdefs.h <<\_ACEOF
48933 #define wxUSE_AUI 1
48934 _ACEOF
48935
48936    USE_AUI=1
48937    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48938 fi
48939
48940 USE_STC=0
48941 if test "$wxUSE_STC" = "yes"; then
48942    cat >>confdefs.h <<\_ACEOF
48943 #define wxUSE_STC 1
48944 _ACEOF
48945
48946    USE_STC=1
48947    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48948 fi
48949
48950 if test "$wxUSE_MENUS" = "yes"; then
48951     cat >>confdefs.h <<\_ACEOF
48952 #define wxUSE_MENUS 1
48953 _ACEOF
48954
48955     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48956 fi
48957
48958 if test "$wxUSE_METAFILE" = "yes"; then
48959     cat >>confdefs.h <<\_ACEOF
48960 #define wxUSE_METAFILE 1
48961 _ACEOF
48962
48963 fi
48964
48965 if test "$wxUSE_MIMETYPE" = "yes"; then
48966     cat >>confdefs.h <<\_ACEOF
48967 #define wxUSE_MIMETYPE 1
48968 _ACEOF
48969
48970 fi
48971
48972 if test "$wxUSE_MINIFRAME" = "yes"; then
48973     cat >>confdefs.h <<\_ACEOF
48974 #define wxUSE_MINIFRAME 1
48975 _ACEOF
48976
48977     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
48978 fi
48979
48980 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48981     cat >>confdefs.h <<\_ACEOF
48982 #define wxUSE_SYSTEM_OPTIONS 1
48983 _ACEOF
48984
48985 fi
48986
48987 if test "$wxUSE_TASKBARICON" = "yes"; then
48988     cat >>confdefs.h <<\_ACEOF
48989 #define wxUSE_TASKBARICON 1
48990 _ACEOF
48991
48992     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48993 fi
48994
48995
48996 if test "$wxUSE_VALIDATORS" = "yes"; then
48997     cat >>confdefs.h <<\_ACEOF
48998 #define wxUSE_VALIDATORS 1
48999 _ACEOF
49000
49001     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
49002 fi
49003
49004 if test "$wxUSE_PALETTE" = "yes" ; then
49005     if test "$wxUSE_DFB" = 1; then
49006         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
49007 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
49008         wxUSE_PALETTE=no
49009     else
49010         cat >>confdefs.h <<\_ACEOF
49011 #define wxUSE_PALETTE 1
49012 _ACEOF
49013
49014     fi
49015 fi
49016
49017 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
49018     LIBS=" -lunicows $LIBS"
49019 fi
49020
49021 USE_RICHTEXT=0
49022 if test "$wxUSE_RICHTEXT" = "yes"; then
49023     cat >>confdefs.h <<\_ACEOF
49024 #define wxUSE_RICHTEXT 1
49025 _ACEOF
49026
49027     USE_RICHTEXT=1
49028     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
49029 fi
49030
49031
49032 if test "$wxUSE_IMAGE" = "yes" ; then
49033     cat >>confdefs.h <<\_ACEOF
49034 #define wxUSE_IMAGE 1
49035 _ACEOF
49036
49037
49038     if test "$wxUSE_GIF" = "yes" ; then
49039       cat >>confdefs.h <<\_ACEOF
49040 #define wxUSE_GIF 1
49041 _ACEOF
49042
49043     fi
49044
49045     if test "$wxUSE_PCX" = "yes" ; then
49046       cat >>confdefs.h <<\_ACEOF
49047 #define wxUSE_PCX 1
49048 _ACEOF
49049
49050     fi
49051
49052     if test "$wxUSE_TGA" = "yes" ; then
49053       cat >>confdefs.h <<\_ACEOF
49054 #define wxUSE_TGA 1
49055 _ACEOF
49056
49057     fi
49058
49059     if test "$wxUSE_IFF" = "yes" ; then
49060       cat >>confdefs.h <<\_ACEOF
49061 #define wxUSE_IFF 1
49062 _ACEOF
49063
49064     fi
49065
49066     if test "$wxUSE_PNM" = "yes" ; then
49067       cat >>confdefs.h <<\_ACEOF
49068 #define wxUSE_PNM 1
49069 _ACEOF
49070
49071     fi
49072
49073     if test "$wxUSE_XPM" = "yes" ; then
49074       cat >>confdefs.h <<\_ACEOF
49075 #define wxUSE_XPM 1
49076 _ACEOF
49077
49078     fi
49079
49080     if test "$wxUSE_ICO_CUR" = "yes" ; then
49081       cat >>confdefs.h <<\_ACEOF
49082 #define wxUSE_ICO_CUR 1
49083 _ACEOF
49084
49085     fi
49086 fi
49087
49088
49089 if test "$wxUSE_ABOUTDLG" = "yes"; then
49090     cat >>confdefs.h <<\_ACEOF
49091 #define wxUSE_ABOUTDLG 1
49092 _ACEOF
49093
49094 fi
49095
49096 if test "$wxUSE_CHOICEDLG" = "yes"; then
49097     cat >>confdefs.h <<\_ACEOF
49098 #define wxUSE_CHOICEDLG 1
49099 _ACEOF
49100
49101 fi
49102
49103 if test "$wxUSE_COLOURDLG" = "yes"; then
49104     cat >>confdefs.h <<\_ACEOF
49105 #define wxUSE_COLOURDLG 1
49106 _ACEOF
49107
49108 fi
49109
49110 if test "$wxUSE_FILEDLG" = "yes"; then
49111     cat >>confdefs.h <<\_ACEOF
49112 #define wxUSE_FILEDLG 1
49113 _ACEOF
49114
49115 fi
49116
49117 if test "$wxUSE_FINDREPLDLG" = "yes"; then
49118     cat >>confdefs.h <<\_ACEOF
49119 #define wxUSE_FINDREPLDLG 1
49120 _ACEOF
49121
49122 fi
49123
49124 if test "$wxUSE_FONTDLG" = "yes"; then
49125     cat >>confdefs.h <<\_ACEOF
49126 #define wxUSE_FONTDLG 1
49127 _ACEOF
49128
49129 fi
49130
49131 if test "$wxUSE_DIRDLG" = "yes"; then
49132     if test "$wxUSE_TREECTRL" != "yes"; then
49133         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
49134 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
49135     else
49136         cat >>confdefs.h <<\_ACEOF
49137 #define wxUSE_DIRDLG 1
49138 _ACEOF
49139
49140     fi
49141 fi
49142
49143 if test "$wxUSE_MSGDLG" = "yes"; then
49144     cat >>confdefs.h <<\_ACEOF
49145 #define wxUSE_MSGDLG 1
49146 _ACEOF
49147
49148 fi
49149
49150 if test "$wxUSE_NUMBERDLG" = "yes"; then
49151     cat >>confdefs.h <<\_ACEOF
49152 #define wxUSE_NUMBERDLG 1
49153 _ACEOF
49154
49155 fi
49156
49157 if test "$wxUSE_PROGRESSDLG" = "yes"; then
49158     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49159        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
49160 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
49161     else
49162         cat >>confdefs.h <<\_ACEOF
49163 #define wxUSE_PROGRESSDLG 1
49164 _ACEOF
49165
49166     fi
49167 fi
49168
49169 if test "$wxUSE_SPLASH" = "yes"; then
49170     cat >>confdefs.h <<\_ACEOF
49171 #define wxUSE_SPLASH 1
49172 _ACEOF
49173
49174     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
49175 fi
49176
49177 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
49178     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49179        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
49180 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
49181     else
49182         cat >>confdefs.h <<\_ACEOF
49183 #define wxUSE_STARTUP_TIPS 1
49184 _ACEOF
49185
49186     fi
49187 fi
49188
49189 if test "$wxUSE_TEXTDLG" = "yes"; then
49190     cat >>confdefs.h <<\_ACEOF
49191 #define wxUSE_TEXTDLG 1
49192 _ACEOF
49193
49194 fi
49195
49196 if test "$wxUSE_WIZARDDLG" = "yes"; then
49197     cat >>confdefs.h <<\_ACEOF
49198 #define wxUSE_WIZARDDLG 1
49199 _ACEOF
49200
49201     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
49202 fi
49203
49204
49205 if test "$wxUSE_MSW" = 1 ; then
49206
49207 if test "$wxUSE_DC_CACHEING" = "yes"; then
49208     cat >>confdefs.h <<\_ACEOF
49209 #define wxUSE_DC_CACHEING 1
49210 _ACEOF
49211
49212 fi
49213
49214 if test "$wxUSE_INICONF" = "yes"; then
49215     cat >>confdefs.h <<\_ACEOF
49216 #define wxUSE_INICONF 1
49217 _ACEOF
49218
49219 fi
49220
49221 if test "$wxUSE_DIB" = "yes"; then
49222     cat >>confdefs.h <<\_ACEOF
49223 #define wxUSE_WXDIB 1
49224 _ACEOF
49225
49226 fi
49227
49228 if test "$wxUSE_OWNER_DRAWN" = "yes"; then
49229     cat >>confdefs.h <<\_ACEOF
49230 #define wxUSE_OWNER_DRAWN 1
49231 _ACEOF
49232
49233 fi
49234
49235 if test "$wxUSE_REGKEY" = "yes"; then
49236     cat >>confdefs.h <<\_ACEOF
49237 #define wxUSE_REGKEY 1
49238 _ACEOF
49239
49240 fi
49241
49242 if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
49243     cat >>confdefs.h <<\_ACEOF
49244 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
49245 _ACEOF
49246
49247 fi
49248
49249 if test "$wxUSE_UXTHEME" = "yes"; then
49250     cat >>confdefs.h <<\_ACEOF
49251 #define wxUSE_UXTHEME 1
49252 _ACEOF
49253
49254 fi
49255
49256 fi
49257
49258
49259 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
49260    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
49261       cat >>confdefs.h <<\_ACEOF
49262 #define wxUSE_GRAPHICS_CONTEXT 1
49263 _ACEOF
49264
49265    elif test "$wxUSE_GTK" != 1; then
49266             cat >>confdefs.h <<\_ACEOF
49267 #define wxUSE_GRAPHICS_CONTEXT 1
49268 _ACEOF
49269
49270    else
49271
49272 pkg_failed=no
49273 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49274 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49275
49276 if test -n "$PKG_CONFIG"; then
49277     if test -n "$CAIRO_CFLAGS"; then
49278         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49279     else
49280         if test -n "$PKG_CONFIG" && \
49281     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49282   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49283   ac_status=$?
49284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49285   (exit $ac_status); }; then
49286   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49287 else
49288   pkg_failed=yes
49289 fi
49290     fi
49291 else
49292         pkg_failed=untried
49293 fi
49294 if test -n "$PKG_CONFIG"; then
49295     if test -n "$CAIRO_LIBS"; then
49296         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49297     else
49298         if test -n "$PKG_CONFIG" && \
49299     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49300   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49301   ac_status=$?
49302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49303   (exit $ac_status); }; then
49304   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49305 else
49306   pkg_failed=yes
49307 fi
49308     fi
49309 else
49310         pkg_failed=untried
49311 fi
49312
49313
49314
49315 if test $pkg_failed = yes; then
49316
49317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49318         _pkg_short_errors_supported=yes
49319 else
49320         _pkg_short_errors_supported=no
49321 fi
49322         if test $_pkg_short_errors_supported = yes; then
49323                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49324         else
49325                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49326         fi
49327         # Put the nasty error message in config.log where it belongs
49328         echo "$CAIRO_PKG_ERRORS" >&5
49329
49330         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49331 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49332
49333 elif test $pkg_failed = untried; then
49334         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49335 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49336
49337 else
49338         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49339         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49340         { echo "$as_me:$LINENO: result: yes" >&5
49341 echo "${ECHO_T}yes" >&6; }
49342         cat >>confdefs.h <<\_ACEOF
49343 #define wxUSE_GRAPHICS_CONTEXT 1
49344 _ACEOF
49345
49346 fi
49347    fi
49348 fi
49349
49350
49351 USE_MEDIA=0
49352
49353 if test "$wxUSE_MEDIACTRL" = "yes"; then
49354     USE_MEDIA=1
49355
49356                 if test "$wxUSE_GTK" = 1; then
49357         wxUSE_GSTREAMER="no"
49358
49359                                                                 GST_VERSION_MAJOR=0
49360         GST_VERSION_MINOR=10
49361         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49362
49363         if test "$wxUSE_GSTREAMER8" = "no"; then
49364
49365 pkg_failed=no
49366 { echo "$as_me:$LINENO: checking for GST" >&5
49367 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49368
49369 if test -n "$PKG_CONFIG"; then
49370     if test -n "$GST_CFLAGS"; then
49371         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49372     else
49373         if test -n "$PKG_CONFIG" && \
49374     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49375   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49376   ac_status=$?
49377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378   (exit $ac_status); }; then
49379   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49380 else
49381   pkg_failed=yes
49382 fi
49383     fi
49384 else
49385         pkg_failed=untried
49386 fi
49387 if test -n "$PKG_CONFIG"; then
49388     if test -n "$GST_LIBS"; then
49389         pkg_cv_GST_LIBS="$GST_LIBS"
49390     else
49391         if test -n "$PKG_CONFIG" && \
49392     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49393   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49394   ac_status=$?
49395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49396   (exit $ac_status); }; then
49397   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49398 else
49399   pkg_failed=yes
49400 fi
49401     fi
49402 else
49403         pkg_failed=untried
49404 fi
49405
49406
49407
49408 if test $pkg_failed = yes; then
49409
49410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49411         _pkg_short_errors_supported=yes
49412 else
49413         _pkg_short_errors_supported=no
49414 fi
49415         if test $_pkg_short_errors_supported = yes; then
49416                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49417         else
49418                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49419         fi
49420         # Put the nasty error message in config.log where it belongs
49421         echo "$GST_PKG_ERRORS" >&5
49422
49423
49424                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49425 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49426                     GST_VERSION_MINOR=8
49427
49428
49429 elif test $pkg_failed = untried; then
49430
49431                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49432 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49433                     GST_VERSION_MINOR=8
49434
49435
49436 else
49437         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49438         GST_LIBS=$pkg_cv_GST_LIBS
49439         { echo "$as_me:$LINENO: result: yes" >&5
49440 echo "${ECHO_T}yes" >&6; }
49441
49442                     wxUSE_GSTREAMER="yes"
49443                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49444
49445 fi
49446         else
49447                         GST_VERSION_MINOR=8
49448         fi
49449
49450         if test $GST_VERSION_MINOR = "8"; then
49451             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49452
49453 pkg_failed=no
49454 { echo "$as_me:$LINENO: checking for GST" >&5
49455 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49456
49457 if test -n "$PKG_CONFIG"; then
49458     if test -n "$GST_CFLAGS"; then
49459         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49460     else
49461         if test -n "$PKG_CONFIG" && \
49462     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49463   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49464   ac_status=$?
49465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49466   (exit $ac_status); }; then
49467   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49468 else
49469   pkg_failed=yes
49470 fi
49471     fi
49472 else
49473         pkg_failed=untried
49474 fi
49475 if test -n "$PKG_CONFIG"; then
49476     if test -n "$GST_LIBS"; then
49477         pkg_cv_GST_LIBS="$GST_LIBS"
49478     else
49479         if test -n "$PKG_CONFIG" && \
49480     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49481   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49482   ac_status=$?
49483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49484   (exit $ac_status); }; then
49485   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49486 else
49487   pkg_failed=yes
49488 fi
49489     fi
49490 else
49491         pkg_failed=untried
49492 fi
49493
49494
49495
49496 if test $pkg_failed = yes; then
49497
49498 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49499         _pkg_short_errors_supported=yes
49500 else
49501         _pkg_short_errors_supported=no
49502 fi
49503         if test $_pkg_short_errors_supported = yes; then
49504                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49505         else
49506                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49507         fi
49508         # Put the nasty error message in config.log where it belongs
49509         echo "$GST_PKG_ERRORS" >&5
49510
49511
49512                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49513 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49514
49515 elif test $pkg_failed = untried; then
49516
49517                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49518 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49519
49520 else
49521         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49522         GST_LIBS=$pkg_cv_GST_LIBS
49523         { echo "$as_me:$LINENO: result: yes" >&5
49524 echo "${ECHO_T}yes" >&6; }
49525         wxUSE_GSTREAMER="yes"
49526 fi
49527         fi
49528
49529
49530         if test "$wxUSE_GSTREAMER" = "yes"; then
49531             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49532             LIBS="$GST_LIBS $LIBS"
49533
49534             cat >>confdefs.h <<\_ACEOF
49535 #define wxUSE_GSTREAMER 1
49536 _ACEOF
49537
49538         else
49539             USE_MEDIA=0
49540         fi
49541     fi
49542
49543     if test $USE_MEDIA = 1; then
49544         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49545         cat >>confdefs.h <<\_ACEOF
49546 #define wxUSE_MEDIACTRL 1
49547 _ACEOF
49548
49549     fi
49550 fi
49551
49552
49553 if test "$cross_compiling" = "yes"; then
49554         OSINFO="\"$host\""
49555 else
49556         OSINFO=`uname -s -r -m`
49557     OSINFO="\"$OSINFO\""
49558 fi
49559
49560 cat >>confdefs.h <<_ACEOF
49561 #define WXWIN_OS_DESCRIPTION $OSINFO
49562 _ACEOF
49563
49564
49565
49566 if test "x$prefix" != "xNONE"; then
49567     wxPREFIX=$prefix
49568 else
49569     wxPREFIX=$ac_default_prefix
49570 fi
49571
49572 cat >>confdefs.h <<_ACEOF
49573 #define wxINSTALL_PREFIX "$wxPREFIX"
49574 _ACEOF
49575
49576
49577
49578
49579 STD_BASE_LIBS="base"
49580 STD_GUI_LIBS=""
49581 BUILT_WX_LIBS="base"
49582 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
49583
49584 if test "$wxUSE_SOCKETS" = "yes" ; then
49585     STD_BASE_LIBS="net $STD_BASE_LIBS"
49586     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49587 fi
49588 if test "$wxUSE_ODBC" != "no" ; then
49589     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
49590 fi
49591 if test "$wxUSE_XML" = "yes" ; then
49592     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49593     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49594 fi
49595
49596 if test "$wxUSE_GUI" = "yes"; then
49597     STD_GUI_LIBS="adv core"
49598     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49599
49600     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49601         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49602         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49603     fi
49604     if test "$wxUSE_ODBC" != "no" ; then
49605         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49606     fi
49607     if test "$wxUSE_HTML" = "yes" ; then
49608         STD_GUI_LIBS="html $STD_GUI_LIBS"
49609         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49610     fi
49611     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49612         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49613     fi
49614     if test "$wxUSE_OPENGL" = "yes" ; then
49615         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49616     fi
49617     if test "$wxUSE_AUI" = "yes" ; then
49618         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49619     fi
49620     if test "$wxUSE_STC" = "yes" ; then
49621         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49622     fi
49623     if test "$wxUSE_XRC" = "yes" ; then
49624         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49625         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49626     fi
49627 fi
49628
49629
49630
49631
49632
49633
49634
49635
49636 if test "$wxUSE_MAC" = 1 ; then
49637     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49638         if test "$USE_DARWIN" = 1; then
49639             LDFLAGS="$LDFLAGS -framework QuickTime"
49640         else
49641             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49642         fi
49643     fi
49644     if test "$USE_DARWIN" = 1; then
49645         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49646     else
49647         LDFLAGS="$LDFLAGS -lCarbonLib"
49648     fi
49649 fi
49650 if test "$wxUSE_COCOA" = 1 ; then
49651     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49652     if test "$wxUSE_MEDIACTRL" = "yes"; then
49653         LDFLAGS="$LDFLAGS -framework QuickTime"
49654     fi
49655 fi
49656 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49657     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49658 fi
49659
49660 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49661
49662 if test "$wxUSE_GUI" = "yes"; then
49663
49664
49665         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49666                      dynamic erase event exec font image minimal mobile \
49667                      mobile/wxedit mobile/styles propsize render \
49668                      rotate shaped svg taborder vscroll widgets"
49669
49670     if test "$wxUSE_MONOLITHIC" != "yes"; then
49671         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49672     fi
49673     if test "$TOOLKIT" = "MSW"; then
49674         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49675         if test "$wxUSE_UNIVERSAL" != "yes"; then
49676             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49677         fi
49678     fi
49679     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49680         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49681     fi
49682 else
49683     SAMPLES_SUBDIRS="console"
49684 fi
49685
49686
49687 if test "x$INTELCC" = "xyes" ; then
49688                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49689 elif test "$GCC" = yes ; then
49690     CWARNINGS="-Wall -Wundef"
49691 fi
49692
49693 if test "x$INTELCXX" = "xyes" ; then
49694                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49695 elif test "$GXX" = yes ; then
49696         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49697 fi
49698
49699
49700 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49701 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49702
49703
49704 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49705  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49706  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49707  $CPPFLAGS `
49708
49709 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49710 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49711 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49712
49713 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49714
49715
49716 if test "x$MWCC" = "xyes"; then
49717
49718             CC="$CC -cwd source -I-"
49719     CXX="$CXX -cwd source -I-"
49720 fi
49721
49722
49723 LIBS=`echo $LIBS`
49724 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49725 EXTRALIBS_XML="$EXPAT_LINK"
49726 EXTRALIBS_HTML="$MSPACK_LINK"
49727 EXTRALIBS_ODBC="$ODBC_LINK"
49728 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49729 if test "$wxUSE_GUI" = "yes"; then
49730     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49731 fi
49732 if test "$wxUSE_OPENGL" = "yes"; then
49733     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49734 fi
49735
49736 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49737
49738 WXCONFIG_LIBS="$LIBS"
49739
49740 if test "$wxUSE_REGEX" = "builtin" ; then
49741     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49742 fi
49743 if test "$wxUSE_EXPAT" = "builtin" ; then
49744     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49745 fi
49746 if test "$wxUSE_ODBC" = "builtin" ; then
49747     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49748 fi
49749 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49750     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49751 fi
49752 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49753     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49754 fi
49755 if test "$wxUSE_LIBPNG" = "builtin" ; then
49756     wxconfig_3rdparty="png $wxconfig_3rdparty"
49757 fi
49758 if test "$wxUSE_ZLIB" = "builtin" ; then
49759     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49760 fi
49761
49762 for i in $wxconfig_3rdparty ; do
49763     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49764 done
49765
49766
49767 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49768     WXUNIV=1
49769
49770     case "$wxUNIV_THEMES" in
49771         ''|all)
49772             cat >>confdefs.h <<\_ACEOF
49773 #define wxUSE_ALL_THEMES 1
49774 _ACEOF
49775
49776             ;;
49777
49778         *)
49779             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49780                 cat >>confdefs.h <<_ACEOF
49781 #define wxUSE_THEME_$t 1
49782 _ACEOF
49783
49784             done
49785     esac
49786 else
49787     WXUNIV=0
49788 fi
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798 if test $wxUSE_MONOLITHIC = "yes" ; then
49799     MONOLITHIC=1
49800 else
49801     MONOLITHIC=0
49802 fi
49803
49804 if test $wxUSE_PLUGINS = "yes" ; then
49805     USE_PLUGINS=1
49806 else
49807     USE_PLUGINS=0
49808 fi
49809
49810 if test $wxUSE_ODBC != "no" ; then
49811     USE_ODBC=1
49812 else
49813     USE_ODBC=0
49814 fi
49815
49816 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49817     USE_QA=1
49818 else
49819     USE_QA=0
49820 fi
49821
49822 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49823     OFFICIAL_BUILD=1
49824 else
49825     OFFICIAL_BUILD=0
49826 fi
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836
49837
49838
49839
49840
49841
49842
49843
49844
49845
49846
49847
49848
49849
49850
49851
49852
49853 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49854
49855
49856
49857
49858
49859
49860
49861
49862 case "$TOOLKIT" in
49863     GTK)
49864         TOOLKIT_DESC="GTK+"
49865         if test "$WXGTK20" = 1; then
49866             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49867             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49868                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49869             fi
49870             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49871                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49872             fi
49873             if test "$wxUSE_LIBHILDON" = "yes"; then
49874                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49875             fi
49876
49877             if test "$TOOLKIT_EXTRA" != ""; then
49878                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49879             fi
49880         fi
49881         ;;
49882
49883     ?*)
49884         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49885         ;;
49886
49887     *)
49888         TOOLKIT_DESC="base only"
49889         ;;
49890 esac
49891
49892 if test "$wxUSE_WINE" = "yes"; then
49893     BAKEFILE_FORCE_PLATFORM=win32
49894 fi
49895
49896 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49897 then
49898     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49899 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49900 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49901   echo $ECHO_N "(cached) $ECHO_C" >&6
49902 else
49903
49904             echo '#include <stdio.h>
49905                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49906
49907             echo '#include "conftest.h"
49908                   int main()
49909                   {
49910                      printf("%ls", test_var);
49911                      return 0;
49912                   }' > conftest.cpp
49913
49914             wx_cv_gcc_pch_bug="pch not supported"
49915
49916             if $CXX conftest.h >/dev/null 2>&1
49917             then
49918                 wx_cv_gcc_pch_bug=
49919
49920                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49921                 then
49922                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49923                         grep awidetest >/dev/null
49924                     then
49925                         wx_cv_gcc_pch_bug=no
49926                     else
49927                         wx_cv_gcc_pch_bug=yes
49928                     fi
49929                 fi
49930             fi
49931
49932             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49933
49934 fi
49935 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49936 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49937
49938     if test "$wx_cv_gcc_pch_bug" = yes; then
49939                         bk_use_pch=no
49940     fi
49941 fi
49942
49943
49944
49945
49946     if test "x$BAKEFILE_HOST" = "x"; then
49947                if test "x${host}" = "x" ; then
49948                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49949 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49950    { (exit 1); exit 1; }; }
49951                fi
49952
49953         BAKEFILE_HOST="${host}"
49954     fi
49955
49956     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49957
49958     if test -n "$ac_tool_prefix"; then
49959   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49960 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49963 if test "${ac_cv_prog_RANLIB+set}" = set; then
49964   echo $ECHO_N "(cached) $ECHO_C" >&6
49965 else
49966   if test -n "$RANLIB"; then
49967   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49968 else
49969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49970 for as_dir in $PATH
49971 do
49972   IFS=$as_save_IFS
49973   test -z "$as_dir" && as_dir=.
49974   for ac_exec_ext in '' $ac_executable_extensions; do
49975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49976     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49978     break 2
49979   fi
49980 done
49981 done
49982 IFS=$as_save_IFS
49983
49984 fi
49985 fi
49986 RANLIB=$ac_cv_prog_RANLIB
49987 if test -n "$RANLIB"; then
49988   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49989 echo "${ECHO_T}$RANLIB" >&6; }
49990 else
49991   { echo "$as_me:$LINENO: result: no" >&5
49992 echo "${ECHO_T}no" >&6; }
49993 fi
49994
49995
49996 fi
49997 if test -z "$ac_cv_prog_RANLIB"; then
49998   ac_ct_RANLIB=$RANLIB
49999   # Extract the first word of "ranlib", so it can be a program name with args.
50000 set dummy ranlib; ac_word=$2
50001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
50004   echo $ECHO_N "(cached) $ECHO_C" >&6
50005 else
50006   if test -n "$ac_ct_RANLIB"; then
50007   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
50008 else
50009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50010 for as_dir in $PATH
50011 do
50012   IFS=$as_save_IFS
50013   test -z "$as_dir" && as_dir=.
50014   for ac_exec_ext in '' $ac_executable_extensions; do
50015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50016     ac_cv_prog_ac_ct_RANLIB="ranlib"
50017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50018     break 2
50019   fi
50020 done
50021 done
50022 IFS=$as_save_IFS
50023
50024 fi
50025 fi
50026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
50027 if test -n "$ac_ct_RANLIB"; then
50028   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
50029 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
50030 else
50031   { echo "$as_me:$LINENO: result: no" >&5
50032 echo "${ECHO_T}no" >&6; }
50033 fi
50034
50035   if test "x$ac_ct_RANLIB" = x; then
50036     RANLIB=":"
50037   else
50038     case $cross_compiling:$ac_tool_warned in
50039 yes:)
50040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50041 whose name does not start with the host triplet.  If you think this
50042 configuration is useful to you, please write to autoconf@gnu.org." >&5
50043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50044 whose name does not start with the host triplet.  If you think this
50045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50046 ac_tool_warned=yes ;;
50047 esac
50048     RANLIB=$ac_ct_RANLIB
50049   fi
50050 else
50051   RANLIB="$ac_cv_prog_RANLIB"
50052 fi
50053
50054     # Find a good install program.  We prefer a C program (faster),
50055 # so one script is as good as another.  But avoid the broken or
50056 # incompatible versions:
50057 # SysV /etc/install, /usr/sbin/install
50058 # SunOS /usr/etc/install
50059 # IRIX /sbin/install
50060 # AIX /bin/install
50061 # AmigaOS /C/install, which installs bootblocks on floppy discs
50062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
50064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
50065 # OS/2's system install, which has a completely different semantic
50066 # ./install, which can be erroneously created by make from ./install.sh.
50067 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
50068 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
50069 if test -z "$INSTALL"; then
50070 if test "${ac_cv_path_install+set}" = set; then
50071   echo $ECHO_N "(cached) $ECHO_C" >&6
50072 else
50073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50074 for as_dir in $PATH
50075 do
50076   IFS=$as_save_IFS
50077   test -z "$as_dir" && as_dir=.
50078   # Account for people who put trailing slashes in PATH elements.
50079 case $as_dir/ in
50080   ./ | .// | /cC/* | \
50081   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
50082   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
50083   /usr/ucb/* ) ;;
50084   *)
50085     # OSF1 and SCO ODT 3.0 have their own names for install.
50086     # Don't use installbsd from OSF since it installs stuff as root
50087     # by default.
50088     for ac_prog in ginstall scoinst install; do
50089       for ac_exec_ext in '' $ac_executable_extensions; do
50090         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
50091           if test $ac_prog = install &&
50092             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50093             # AIX install.  It has an incompatible calling convention.
50094             :
50095           elif test $ac_prog = install &&
50096             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50097             # program-specific install script used by HP pwplus--don't use.
50098             :
50099           else
50100             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
50101             break 3
50102           fi
50103         fi
50104       done
50105     done
50106     ;;
50107 esac
50108 done
50109 IFS=$as_save_IFS
50110
50111
50112 fi
50113   if test "${ac_cv_path_install+set}" = set; then
50114     INSTALL=$ac_cv_path_install
50115   else
50116     # As a last resort, use the slow shell script.  Don't cache a
50117     # value for INSTALL within a source directory, because that will
50118     # break other packages using the cache if that directory is
50119     # removed, or if the value is a relative name.
50120     INSTALL=$ac_install_sh
50121   fi
50122 fi
50123 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50124 echo "${ECHO_T}$INSTALL" >&6; }
50125
50126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50127 # It thinks the first close brace ends the variable substitution.
50128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50129
50130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50131
50132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50133
50134     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50135 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50136 LN_S=$as_ln_s
50137 if test "$LN_S" = "ln -s"; then
50138   { echo "$as_me:$LINENO: result: yes" >&5
50139 echo "${ECHO_T}yes" >&6; }
50140 else
50141   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50142 echo "${ECHO_T}no, using $LN_S" >&6; }
50143 fi
50144
50145
50146     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50147 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50148 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50149 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50150   echo $ECHO_N "(cached) $ECHO_C" >&6
50151 else
50152   cat >conftest.make <<\_ACEOF
50153 SHELL = /bin/sh
50154 all:
50155         @echo '@@@%%%=$(MAKE)=@@@%%%'
50156 _ACEOF
50157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50158 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50159   *@@@%%%=?*=@@@%%%*)
50160     eval ac_cv_prog_make_${ac_make}_set=yes;;
50161   *)
50162     eval ac_cv_prog_make_${ac_make}_set=no;;
50163 esac
50164 rm -f conftest.make
50165 fi
50166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50167   { echo "$as_me:$LINENO: result: yes" >&5
50168 echo "${ECHO_T}yes" >&6; }
50169   SET_MAKE=
50170 else
50171   { echo "$as_me:$LINENO: result: no" >&5
50172 echo "${ECHO_T}no" >&6; }
50173   SET_MAKE="MAKE=${MAKE-make}"
50174 fi
50175
50176
50177
50178     if test "x$SUNCXX" = "xyes"; then
50179                                 AR=$CXX
50180         AROPTIONS="-xar -o"
50181
50182     elif test "x$SGICC" = "xyes"; then
50183                 AR=$CXX
50184         AROPTIONS="-ar -o"
50185
50186     else
50187         if test -n "$ac_tool_prefix"; then
50188   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50189 set dummy ${ac_tool_prefix}ar; ac_word=$2
50190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50192 if test "${ac_cv_prog_AR+set}" = set; then
50193   echo $ECHO_N "(cached) $ECHO_C" >&6
50194 else
50195   if test -n "$AR"; then
50196   ac_cv_prog_AR="$AR" # Let the user override the test.
50197 else
50198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50199 for as_dir in $PATH
50200 do
50201   IFS=$as_save_IFS
50202   test -z "$as_dir" && as_dir=.
50203   for ac_exec_ext in '' $ac_executable_extensions; do
50204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50205     ac_cv_prog_AR="${ac_tool_prefix}ar"
50206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50207     break 2
50208   fi
50209 done
50210 done
50211 IFS=$as_save_IFS
50212
50213 fi
50214 fi
50215 AR=$ac_cv_prog_AR
50216 if test -n "$AR"; then
50217   { echo "$as_me:$LINENO: result: $AR" >&5
50218 echo "${ECHO_T}$AR" >&6; }
50219 else
50220   { echo "$as_me:$LINENO: result: no" >&5
50221 echo "${ECHO_T}no" >&6; }
50222 fi
50223
50224
50225 fi
50226 if test -z "$ac_cv_prog_AR"; then
50227   ac_ct_AR=$AR
50228   # Extract the first word of "ar", so it can be a program name with args.
50229 set dummy ar; ac_word=$2
50230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50232 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50233   echo $ECHO_N "(cached) $ECHO_C" >&6
50234 else
50235   if test -n "$ac_ct_AR"; then
50236   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50237 else
50238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50239 for as_dir in $PATH
50240 do
50241   IFS=$as_save_IFS
50242   test -z "$as_dir" && as_dir=.
50243   for ac_exec_ext in '' $ac_executable_extensions; do
50244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50245     ac_cv_prog_ac_ct_AR="ar"
50246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50247     break 2
50248   fi
50249 done
50250 done
50251 IFS=$as_save_IFS
50252
50253 fi
50254 fi
50255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50256 if test -n "$ac_ct_AR"; then
50257   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50258 echo "${ECHO_T}$ac_ct_AR" >&6; }
50259 else
50260   { echo "$as_me:$LINENO: result: no" >&5
50261 echo "${ECHO_T}no" >&6; }
50262 fi
50263
50264   if test "x$ac_ct_AR" = x; then
50265     AR="ar"
50266   else
50267     case $cross_compiling:$ac_tool_warned in
50268 yes:)
50269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50270 whose name does not start with the host triplet.  If you think this
50271 configuration is useful to you, please write to autoconf@gnu.org." >&5
50272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50273 whose name does not start with the host triplet.  If you think this
50274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50275 ac_tool_warned=yes ;;
50276 esac
50277     AR=$ac_ct_AR
50278   fi
50279 else
50280   AR="$ac_cv_prog_AR"
50281 fi
50282
50283         AROPTIONS=rcu
50284     fi
50285
50286
50287     if test -n "$ac_tool_prefix"; then
50288   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50289 set dummy ${ac_tool_prefix}strip; ac_word=$2
50290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50292 if test "${ac_cv_prog_STRIP+set}" = set; then
50293   echo $ECHO_N "(cached) $ECHO_C" >&6
50294 else
50295   if test -n "$STRIP"; then
50296   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50297 else
50298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50299 for as_dir in $PATH
50300 do
50301   IFS=$as_save_IFS
50302   test -z "$as_dir" && as_dir=.
50303   for ac_exec_ext in '' $ac_executable_extensions; do
50304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50305     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50307     break 2
50308   fi
50309 done
50310 done
50311 IFS=$as_save_IFS
50312
50313 fi
50314 fi
50315 STRIP=$ac_cv_prog_STRIP
50316 if test -n "$STRIP"; then
50317   { echo "$as_me:$LINENO: result: $STRIP" >&5
50318 echo "${ECHO_T}$STRIP" >&6; }
50319 else
50320   { echo "$as_me:$LINENO: result: no" >&5
50321 echo "${ECHO_T}no" >&6; }
50322 fi
50323
50324
50325 fi
50326 if test -z "$ac_cv_prog_STRIP"; then
50327   ac_ct_STRIP=$STRIP
50328   # Extract the first word of "strip", so it can be a program name with args.
50329 set dummy strip; ac_word=$2
50330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50332 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50333   echo $ECHO_N "(cached) $ECHO_C" >&6
50334 else
50335   if test -n "$ac_ct_STRIP"; then
50336   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50337 else
50338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50339 for as_dir in $PATH
50340 do
50341   IFS=$as_save_IFS
50342   test -z "$as_dir" && as_dir=.
50343   for ac_exec_ext in '' $ac_executable_extensions; do
50344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50345     ac_cv_prog_ac_ct_STRIP="strip"
50346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50347     break 2
50348   fi
50349 done
50350 done
50351 IFS=$as_save_IFS
50352
50353 fi
50354 fi
50355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50356 if test -n "$ac_ct_STRIP"; then
50357   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50358 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50359 else
50360   { echo "$as_me:$LINENO: result: no" >&5
50361 echo "${ECHO_T}no" >&6; }
50362 fi
50363
50364   if test "x$ac_ct_STRIP" = x; then
50365     STRIP=":"
50366   else
50367     case $cross_compiling:$ac_tool_warned in
50368 yes:)
50369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50370 whose name does not start with the host triplet.  If you think this
50371 configuration is useful to you, please write to autoconf@gnu.org." >&5
50372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50373 whose name does not start with the host triplet.  If you think this
50374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50375 ac_tool_warned=yes ;;
50376 esac
50377     STRIP=$ac_ct_STRIP
50378   fi
50379 else
50380   STRIP="$ac_cv_prog_STRIP"
50381 fi
50382
50383     if test -n "$ac_tool_prefix"; then
50384   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50385 set dummy ${ac_tool_prefix}nm; ac_word=$2
50386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50388 if test "${ac_cv_prog_NM+set}" = set; then
50389   echo $ECHO_N "(cached) $ECHO_C" >&6
50390 else
50391   if test -n "$NM"; then
50392   ac_cv_prog_NM="$NM" # Let the user override the test.
50393 else
50394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50395 for as_dir in $PATH
50396 do
50397   IFS=$as_save_IFS
50398   test -z "$as_dir" && as_dir=.
50399   for ac_exec_ext in '' $ac_executable_extensions; do
50400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50401     ac_cv_prog_NM="${ac_tool_prefix}nm"
50402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50403     break 2
50404   fi
50405 done
50406 done
50407 IFS=$as_save_IFS
50408
50409 fi
50410 fi
50411 NM=$ac_cv_prog_NM
50412 if test -n "$NM"; then
50413   { echo "$as_me:$LINENO: result: $NM" >&5
50414 echo "${ECHO_T}$NM" >&6; }
50415 else
50416   { echo "$as_me:$LINENO: result: no" >&5
50417 echo "${ECHO_T}no" >&6; }
50418 fi
50419
50420
50421 fi
50422 if test -z "$ac_cv_prog_NM"; then
50423   ac_ct_NM=$NM
50424   # Extract the first word of "nm", so it can be a program name with args.
50425 set dummy nm; ac_word=$2
50426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50428 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50429   echo $ECHO_N "(cached) $ECHO_C" >&6
50430 else
50431   if test -n "$ac_ct_NM"; then
50432   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50433 else
50434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50435 for as_dir in $PATH
50436 do
50437   IFS=$as_save_IFS
50438   test -z "$as_dir" && as_dir=.
50439   for ac_exec_ext in '' $ac_executable_extensions; do
50440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50441     ac_cv_prog_ac_ct_NM="nm"
50442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50443     break 2
50444   fi
50445 done
50446 done
50447 IFS=$as_save_IFS
50448
50449 fi
50450 fi
50451 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50452 if test -n "$ac_ct_NM"; then
50453   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50454 echo "${ECHO_T}$ac_ct_NM" >&6; }
50455 else
50456   { echo "$as_me:$LINENO: result: no" >&5
50457 echo "${ECHO_T}no" >&6; }
50458 fi
50459
50460   if test "x$ac_ct_NM" = x; then
50461     NM=":"
50462   else
50463     case $cross_compiling:$ac_tool_warned in
50464 yes:)
50465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50466 whose name does not start with the host triplet.  If you think this
50467 configuration is useful to you, please write to autoconf@gnu.org." >&5
50468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50469 whose name does not start with the host triplet.  If you think this
50470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50471 ac_tool_warned=yes ;;
50472 esac
50473     NM=$ac_ct_NM
50474   fi
50475 else
50476   NM="$ac_cv_prog_NM"
50477 fi
50478
50479
50480     case ${BAKEFILE_HOST} in
50481         *-hp-hpux* )
50482                                     INSTALL_DIR="mkdir -p"
50483             ;;
50484         * )
50485                                     INSTALL_DIR='$(INSTALL) -d'
50486             ;;
50487     esac
50488
50489
50490     LDFLAGS_GUI=
50491     case ${BAKEFILE_HOST} in
50492         *-*-cygwin* | *-*-mingw32* )
50493         LDFLAGS_GUI="-mwindows"
50494     esac
50495
50496
50497     fi
50498
50499         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50500 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50501 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50502   echo $ECHO_N "(cached) $ECHO_C" >&6
50503 else
50504
50505         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50506                 egrep -s GNU > /dev/null); then
50507             bakefile_cv_prog_makeisgnu="yes"
50508         else
50509             bakefile_cv_prog_makeisgnu="no"
50510         fi
50511
50512 fi
50513 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50514 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50515
50516     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50517         IF_GNU_MAKE=""
50518     else
50519         IF_GNU_MAKE="#"
50520     fi
50521
50522
50523
50524     PLATFORM_UNIX=0
50525     PLATFORM_WIN32=0
50526     PLATFORM_MSDOS=0
50527     PLATFORM_MAC=0
50528     PLATFORM_MACOS=0
50529     PLATFORM_MACOSX=0
50530     PLATFORM_OS2=0
50531     PLATFORM_BEOS=0
50532
50533     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50534         case "${BAKEFILE_HOST}" in
50535             *-*-mingw32* )
50536                 PLATFORM_WIN32=1
50537             ;;
50538             *-pc-msdosdjgpp )
50539                 PLATFORM_MSDOS=1
50540             ;;
50541             *-pc-os2_emx | *-pc-os2-emx )
50542                 PLATFORM_OS2=1
50543             ;;
50544             *-*-darwin* )
50545                 PLATFORM_MAC=1
50546                 PLATFORM_MACOSX=1
50547             ;;
50548             *-*-beos* )
50549                 PLATFORM_BEOS=1
50550             ;;
50551             powerpc-apple-macos* )
50552                 PLATFORM_MAC=1
50553                 PLATFORM_MACOS=1
50554             ;;
50555             * )
50556                 PLATFORM_UNIX=1
50557             ;;
50558         esac
50559     else
50560         case "$BAKEFILE_FORCE_PLATFORM" in
50561             win32 )
50562                 PLATFORM_WIN32=1
50563             ;;
50564             msdos )
50565                 PLATFORM_MSDOS=1
50566             ;;
50567             os2 )
50568                 PLATFORM_OS2=1
50569             ;;
50570             darwin )
50571                 PLATFORM_MAC=1
50572                 PLATFORM_MACOSX=1
50573             ;;
50574             unix )
50575                 PLATFORM_UNIX=1
50576             ;;
50577             beos )
50578                 PLATFORM_BEOS=1
50579             ;;
50580             * )
50581                                             ;;
50582         esac
50583     fi
50584
50585
50586
50587
50588
50589
50590
50591
50592
50593
50594
50595     # Check whether --enable-omf was given.
50596 if test "${enable_omf+set}" = set; then
50597   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50598 fi
50599
50600
50601     case "${BAKEFILE_HOST}" in
50602       *-*-darwin* )
50603                         if test "x$GCC" = "xyes"; then
50604             CFLAGS="$CFLAGS -fno-common"
50605             CXXFLAGS="$CXXFLAGS -fno-common"
50606         fi
50607         if test "x$XLCC" = "xyes"; then
50608             CFLAGS="$CFLAGS -qnocommon"
50609             CXXFLAGS="$CXXFLAGS -qnocommon"
50610         fi
50611         ;;
50612
50613       *-pc-os2_emx | *-pc-os2-emx )
50614         if test "x$bk_os2_use_omf" = "xyes" ; then
50615             AR=emxomfar
50616             RANLIB=:
50617             LDFLAGS="-Zomf $LDFLAGS"
50618             CFLAGS="-Zomf $CFLAGS"
50619             CXXFLAGS="-Zomf $CXXFLAGS"
50620             OS2_LIBEXT="lib"
50621         else
50622             OS2_LIBEXT="a"
50623         fi
50624         ;;
50625
50626       i*86-*-beos* )
50627         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50628         ;;
50629     esac
50630
50631
50632     SO_SUFFIX="so"
50633     SO_SUFFIX_MODULE="so"
50634     EXEEXT=""
50635     LIBPREFIX="lib"
50636     LIBEXT=".a"
50637     DLLPREFIX="lib"
50638     DLLPREFIX_MODULE=""
50639     DLLIMP_SUFFIX=""
50640     dlldir="$libdir"
50641
50642     case "${BAKEFILE_HOST}" in
50643         *-hp-hpux* )
50644             SO_SUFFIX="sl"
50645             SO_SUFFIX_MODULE="sl"
50646         ;;
50647         *-*-aix* )
50648                                                                         SO_SUFFIX="a"
50649             SO_SUFFIX_MODULE="a"
50650         ;;
50651         *-*-cygwin* )
50652             SO_SUFFIX="dll"
50653             SO_SUFFIX_MODULE="dll"
50654             DLLIMP_SUFFIX="dll.a"
50655             EXEEXT=".exe"
50656             DLLPREFIX="cyg"
50657             dlldir="$bindir"
50658         ;;
50659         *-*-mingw32* )
50660             SO_SUFFIX="dll"
50661             SO_SUFFIX_MODULE="dll"
50662             DLLIMP_SUFFIX="dll.a"
50663             EXEEXT=".exe"
50664             DLLPREFIX=""
50665             dlldir="$bindir"
50666         ;;
50667         *-pc-msdosdjgpp )
50668             EXEEXT=".exe"
50669             DLLPREFIX=""
50670             dlldir="$bindir"
50671         ;;
50672         *-pc-os2_emx | *-pc-os2-emx )
50673             SO_SUFFIX="dll"
50674             SO_SUFFIX_MODULE="dll"
50675             DLLIMP_SUFFIX=$OS2_LIBEXT
50676             EXEEXT=".exe"
50677             DLLPREFIX=""
50678             LIBPREFIX=""
50679             LIBEXT=".$OS2_LIBEXT"
50680             dlldir="$bindir"
50681         ;;
50682         *-*-darwin* )
50683             SO_SUFFIX="dylib"
50684             SO_SUFFIX_MODULE="bundle"
50685         ;;
50686     esac
50687
50688     if test "x$DLLIMP_SUFFIX" = "x" ; then
50689         DLLIMP_SUFFIX="$SO_SUFFIX"
50690     fi
50691
50692
50693
50694
50695
50696
50697
50698
50699
50700
50701
50702
50703         PIC_FLAG=""
50704     if test "x$GCC" = "xyes"; then
50705                 PIC_FLAG="-fPIC"
50706     fi
50707
50708         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50709     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50710     WINDOWS_IMPLIB=0
50711
50712     case "${BAKEFILE_HOST}" in
50713       *-hp-hpux* )
50714                 if test "x$GCC" != "xyes"; then
50715                         LDFLAGS="$LDFLAGS -L/usr/lib"
50716
50717             SHARED_LD_CC="${CC} -b -o"
50718             SHARED_LD_CXX="${CXX} -b -o"
50719             PIC_FLAG="+Z"
50720         fi
50721       ;;
50722
50723       *-*-linux* )
50724         if test "$INTELCC" = "yes"; then
50725             PIC_FLAG="-KPIC"
50726         elif test "x$SUNCXX" = "xyes"; then
50727             SHARED_LD_CC="${CC} -G -o"
50728             SHARED_LD_CXX="${CXX} -G -o"
50729             PIC_FLAG="-KPIC"
50730         fi
50731       ;;
50732
50733       *-*-solaris2* )
50734         if test "x$SUNCXX" = xyes ; then
50735             SHARED_LD_CC="${CC} -G -o"
50736             SHARED_LD_CXX="${CXX} -G -o"
50737             PIC_FLAG="-KPIC"
50738         fi
50739       ;;
50740
50741       *-*-darwin* )
50742
50743 D='$'
50744 cat <<EOF >shared-ld-sh
50745 #!/bin/sh
50746 #-----------------------------------------------------------------------------
50747 #-- Name:        distrib/mac/shared-ld-sh
50748 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50749 #-- Author:      Gilles Depeyrot
50750 #-- Copyright:   (c) 2002 Gilles Depeyrot
50751 #-- Licence:     any use permitted
50752 #-----------------------------------------------------------------------------
50753
50754 verbose=0
50755 args=""
50756 objects=""
50757 linking_flag="-dynamiclib"
50758 ldargs="-r -keep_private_externs -nostdlib"
50759
50760 while test ${D}# -gt 0; do
50761     case ${D}1 in
50762
50763        -v)
50764         verbose=1
50765         ;;
50766
50767        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50768         # collect these options and values
50769         args="${D}{args} ${D}1 ${D}2"
50770         shift
50771         ;;
50772
50773        -s|-Wl,*)
50774         # collect these load args
50775         ldargs="${D}{ldargs} ${D}1"
50776         ;;
50777
50778        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50779         # collect these options
50780         args="${D}{args} ${D}1"
50781         ;;
50782
50783        -dynamiclib|-bundle)
50784         linking_flag="${D}1"
50785         ;;
50786
50787        -*)
50788         echo "shared-ld: unhandled option '${D}1'"
50789         exit 1
50790         ;;
50791
50792         *.o | *.a | *.dylib)
50793         # collect object files
50794         objects="${D}{objects} ${D}1"
50795         ;;
50796
50797         *)
50798         echo "shared-ld: unhandled argument '${D}1'"
50799         exit 1
50800         ;;
50801
50802     esac
50803     shift
50804 done
50805
50806 status=0
50807
50808 #
50809 # Link one module containing all the others
50810 #
50811 if test ${D}{verbose} = 1; then
50812     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50813 fi
50814 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50815 status=${D}?
50816
50817 #
50818 # Link the shared library from the single module created, but only if the
50819 # previous command didn't fail:
50820 #
50821 if test ${D}{status} = 0; then
50822     if test ${D}{verbose} = 1; then
50823         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50824     fi
50825     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50826     status=${D}?
50827 fi
50828
50829 #
50830 # Remove intermediate module
50831 #
50832 rm -f master.${D}${D}.o
50833
50834 exit ${D}status
50835 EOF
50836
50837         chmod +x shared-ld-sh
50838
50839         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50840         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50841
50842
50843                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50844 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50845 if test "${bakefile_cv_gcc31+set}" = set; then
50846   echo $ECHO_N "(cached) $ECHO_C" >&6
50847 else
50848
50849            cat >conftest.$ac_ext <<_ACEOF
50850 /* confdefs.h.  */
50851 _ACEOF
50852 cat confdefs.h >>conftest.$ac_ext
50853 cat >>conftest.$ac_ext <<_ACEOF
50854 /* end confdefs.h.  */
50855
50856 int
50857 main ()
50858 {
50859
50860                    #if (__GNUC__ < 3) || \
50861                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50862                        This is old gcc
50863                    #endif
50864
50865   ;
50866   return 0;
50867 }
50868 _ACEOF
50869 rm -f conftest.$ac_objext
50870 if { (ac_try="$ac_compile"
50871 case "(($ac_try" in
50872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50873   *) ac_try_echo=$ac_try;;
50874 esac
50875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50876   (eval "$ac_compile") 2>conftest.er1
50877   ac_status=$?
50878   grep -v '^ *+' conftest.er1 >conftest.err
50879   rm -f conftest.er1
50880   cat conftest.err >&5
50881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50882   (exit $ac_status); } && {
50883          test -z "$ac_c_werror_flag" ||
50884          test ! -s conftest.err
50885        } && test -s conftest.$ac_objext; then
50886
50887                    bakefile_cv_gcc31=yes
50888
50889 else
50890   echo "$as_me: failed program was:" >&5
50891 sed 's/^/| /' conftest.$ac_ext >&5
50892
50893
50894                    bakefile_cv_gcc31=no
50895
50896
50897 fi
50898
50899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50900
50901 fi
50902 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50903 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50904         if test "$bakefile_cv_gcc31" = "no"; then
50905                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50906             SHARED_LD_CXX="$SHARED_LD_CC"
50907         else
50908                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50909             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50910         fi
50911
50912         if test "x$GCC" == "xyes"; then
50913             PIC_FLAG="-dynamic -fPIC"
50914         fi
50915         if test "x$XLCC" = "xyes"; then
50916             PIC_FLAG="-dynamic -DPIC"
50917         fi
50918       ;;
50919
50920       *-*-aix* )
50921         if test "x$GCC" = "xyes"; then
50922                                                             PIC_FLAG=""
50923
50924                                                                                     case "${BAKEFILE_HOST}" in
50925                 *-*-aix5* )
50926                     LD_EXPFULL="-Wl,-bexpfull"
50927                     ;;
50928             esac
50929
50930             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50931             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50932         else
50933                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50934 set dummy makeC++SharedLib; ac_word=$2
50935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50937 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50938   echo $ECHO_N "(cached) $ECHO_C" >&6
50939 else
50940   if test -n "$AIX_CXX_LD"; then
50941   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50942 else
50943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50944 for as_dir in $PATH
50945 do
50946   IFS=$as_save_IFS
50947   test -z "$as_dir" && as_dir=.
50948   for ac_exec_ext in '' $ac_executable_extensions; do
50949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50950     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50952     break 2
50953   fi
50954 done
50955 done
50956 IFS=$as_save_IFS
50957
50958   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50959 fi
50960 fi
50961 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50962 if test -n "$AIX_CXX_LD"; then
50963   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50964 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50965 else
50966   { echo "$as_me:$LINENO: result: no" >&5
50967 echo "${ECHO_T}no" >&6; }
50968 fi
50969
50970
50971             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50972             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50973         fi
50974       ;;
50975
50976       *-*-beos* )
50977                         SHARED_LD_CC="${LD} -nostart -o"
50978         SHARED_LD_CXX="${LD} -nostart -o"
50979       ;;
50980
50981       *-*-irix* )
50982                 if test "x$GCC" != "xyes"; then
50983             PIC_FLAG="-KPIC"
50984         fi
50985       ;;
50986
50987       *-*-cygwin* | *-*-mingw32* )
50988         PIC_FLAG=""
50989         SHARED_LD_CC="\$(CC) -shared -o"
50990         SHARED_LD_CXX="\$(CXX) -shared -o"
50991         WINDOWS_IMPLIB=1
50992       ;;
50993
50994       *-pc-os2_emx | *-pc-os2-emx )
50995         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50996         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50997         PIC_FLAG=""
50998
50999 D='$'
51000 cat <<EOF >dllar.sh
51001 #!/bin/sh
51002 #
51003 # dllar - a tool to build both a .dll and an .a file
51004 # from a set of object (.o) files for EMX/OS2.
51005 #
51006 #  Written by Andrew Zabolotny, bit@freya.etu.ru
51007 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
51008 #
51009 #  This script will accept a set of files on the command line.
51010 #  All the public symbols from the .o files will be exported into
51011 #  a .DEF file, then linker will be run (through gcc) against them to
51012 #  build a shared library consisting of all given .o files. All libraries
51013 #  (.a) will be first decompressed into component .o files then act as
51014 #  described above. You can optionally give a description (-d "description")
51015 #  which will be put into .DLL. To see the list of accepted options (as well
51016 #  as command-line format) simply run this program without options. The .DLL
51017 #  is built to be imported by name (there is no guarantee that new versions
51018 #  of the library you build will have same ordinals for same symbols).
51019 #
51020 #  dllar is free software; you can redistribute it and/or modify
51021 #  it under the terms of the GNU General Public License as published by
51022 #  the Free Software Foundation; either version 2, or (at your option)
51023 #  any later version.
51024 #
51025 #  dllar is distributed in the hope that it will be useful,
51026 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
51027 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51028 #  GNU General Public License for more details.
51029 #
51030 #  You should have received a copy of the GNU General Public License
51031 #  along with dllar; see the file COPYING.  If not, write to the Free
51032 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
51033 #  02111-1307, USA.
51034
51035 # To successfuly run this program you will need:
51036 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
51037 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
51038 #  - gcc
51039 #    (used to build the .dll)
51040 #  - emxexp
51041 #    (used to create .def file from .o files)
51042 #  - emximp
51043 #    (used to create .a file from .def file)
51044 #  - GNU text utilites (cat, sort, uniq)
51045 #    used to process emxexp output
51046 #  - GNU file utilities (mv, rm)
51047 #  - GNU sed
51048 #  - lxlite (optional, see flag below)
51049 #    (used for general .dll cleanup)
51050 #
51051
51052 flag_USE_LXLITE=1;
51053
51054 #
51055 # helper functions
51056 # basnam, variant of basename, which does _not_ remove the path, _iff_
51057 #                              second argument (suffix to remove) is given
51058 basnam(){
51059     case ${D}# in
51060     1)
51061         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
51062         ;;
51063     2)
51064         echo ${D}1 | sed 's/'${D}2'${D}//'
51065         ;;
51066     *)
51067         echo "error in basnam ${D}*"
51068         exit 8
51069         ;;
51070     esac
51071 }
51072
51073 # Cleanup temporary files and output
51074 CleanUp() {
51075     cd ${D}curDir
51076     for i in ${D}inputFiles ; do
51077         case ${D}i in
51078         *!)
51079             rm -rf \`basnam ${D}i !\`
51080             ;;
51081         *)
51082             ;;
51083         esac
51084     done
51085
51086     # Kill result in case of failure as there is just to many stupid make/nmake
51087     # things out there which doesn't do this.
51088     if [ ${D}# -eq 0 ]; then
51089         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
51090     fi
51091 }
51092
51093 # Print usage and exit script with rc=1.
51094 PrintHelp() {
51095  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51096  echo '       [-name-mangler-script script.sh]'
51097  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51098  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51099  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51100  echo '       [*.o] [*.a]'
51101  echo '*> "output_file" should have no extension.'
51102  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51103  echo '   The import library name is derived from this and is set to "name".a,'
51104  echo '   unless overridden by -import'
51105  echo '*> "importlib_name" should have no extension.'
51106  echo '   If it has the .o, or .a extension, it is automatically removed.'
51107  echo '   This name is used as the import library name and may be longer and'
51108  echo '   more descriptive than the DLL name which has to follow the old '
51109  echo '   8.3 convention of FAT.'
51110  echo '*> "script.sh may be given to override the output_file name by a'
51111  echo '   different name. It is mainly useful if the regular make process'
51112  echo '   of some package does not take into account OS/2 restriction of'
51113  echo '   DLL name lengths. It takes the importlib name as input and is'
51114  echo '   supposed to procude a shorter name as output. The script should'
51115  echo '   expect to get importlib_name without extension and should produce'
51116  echo '   a (max.) 8 letter name without extension.'
51117  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51118  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51119  echo '   These flags will be put at the start of GCC command line.'
51120  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51121  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51122  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51123  echo '   If the last character of a symbol is "*", all symbols beginning'
51124  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51125  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51126  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51127  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51128  echo '   C runtime DLLs.'
51129  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51130  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51131  echo '   unchanged to GCC at the end of command line.'
51132  echo '*> If you create a DLL from a library and you do not specify -o,'
51133  echo '   the basename for DLL and import library will be set to library name,'
51134  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51135  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51136  echo '   library will be renamed into gcc_s.a.'
51137  echo '--------'
51138  echo 'Example:'
51139  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51140  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51141  CleanUp
51142  exit 1
51143 }
51144
51145 # Execute a command.
51146 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51147 # @Uses    Whatever CleanUp() uses.
51148 doCommand() {
51149     echo "${D}*"
51150     eval ${D}*
51151     rcCmd=${D}?
51152
51153     if [ ${D}rcCmd -ne 0 ]; then
51154         echo "command failed, exit code="${D}rcCmd
51155         CleanUp
51156         exit ${D}rcCmd
51157     fi
51158 }
51159
51160 # main routine
51161 # setup globals
51162 cmdLine=${D}*
51163 outFile=""
51164 outimpFile=""
51165 inputFiles=""
51166 renameScript=""
51167 description=""
51168 CC=gcc.exe
51169 CFLAGS="-s -Zcrtdll"
51170 EXTRA_CFLAGS=""
51171 EXPORT_BY_ORDINALS=0
51172 exclude_symbols=""
51173 library_flags=""
51174 curDir=\`pwd\`
51175 curDirS=curDir
51176 case ${D}curDirS in
51177 */)
51178   ;;
51179 *)
51180   curDirS=${D}{curDirS}"/"
51181   ;;
51182 esac
51183 # Parse commandline
51184 libsToLink=0
51185 omfLinking=0
51186 while [ ${D}1 ]; do
51187     case ${D}1 in
51188     -ord*)
51189         EXPORT_BY_ORDINALS=1;
51190         ;;
51191     -o*)
51192         shift
51193         outFile=${D}1
51194         ;;
51195     -i*)
51196         shift
51197         outimpFile=${D}1
51198         ;;
51199     -name-mangler-script)
51200         shift
51201         renameScript=${D}1
51202         ;;
51203     -d*)
51204         shift
51205         description=${D}1
51206         ;;
51207     -f*)
51208         shift
51209         CFLAGS=${D}1
51210         ;;
51211     -c*)
51212         shift
51213         CC=${D}1
51214         ;;
51215     -h*)
51216         PrintHelp
51217         ;;
51218     -ex*)
51219         shift
51220         exclude_symbols=${D}{exclude_symbols}${D}1" "
51221         ;;
51222     -libf*)
51223         shift
51224         library_flags=${D}{library_flags}${D}1" "
51225         ;;
51226     -nocrt*)
51227         CFLAGS="-s"
51228         ;;
51229     -nolxl*)
51230         flag_USE_LXLITE=0
51231         ;;
51232     -* | /*)
51233         case ${D}1 in
51234         -L* | -l*)
51235             libsToLink=1
51236             ;;
51237         -Zomf)
51238             omfLinking=1
51239             ;;
51240         *)
51241             ;;
51242         esac
51243         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51244         ;;
51245     *.dll)
51246         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51247         if [ ${D}omfLinking -eq 1 ]; then
51248             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51249         else
51250             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51251         fi
51252         ;;
51253     *)
51254         found=0;
51255         if [ ${D}libsToLink -ne 0 ]; then
51256             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51257         else
51258             for file in ${D}1 ; do
51259                 if [ -f ${D}file ]; then
51260                     inputFiles="${D}{inputFiles} ${D}file"
51261                     found=1
51262                 fi
51263             done
51264             if [ ${D}found -eq 0 ]; then
51265                 echo "ERROR: No file(s) found: "${D}1
51266                 exit 8
51267             fi
51268         fi
51269       ;;
51270     esac
51271     shift
51272 done # iterate cmdline words
51273
51274 #
51275 if [ -z "${D}inputFiles" ]; then
51276     echo "dllar: no input files"
51277     PrintHelp
51278 fi
51279
51280 # Now extract all .o files from .a files
51281 newInputFiles=""
51282 for file in ${D}inputFiles ; do
51283     case ${D}file in
51284     *.a | *.lib)
51285         case ${D}file in
51286         *.a)
51287             suffix=".a"
51288             AR="ar"
51289             ;;
51290         *.lib)
51291             suffix=".lib"
51292             AR="emxomfar"
51293             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51294             ;;
51295         *)
51296             ;;
51297         esac
51298         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51299         mkdir ${D}dirname
51300         if [ ${D}? -ne 0 ]; then
51301             echo "Failed to create subdirectory ./${D}dirname"
51302             CleanUp
51303             exit 8;
51304         fi
51305         # Append '!' to indicate archive
51306         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51307         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51308         cd ${D}curDir
51309         found=0;
51310         for subfile in ${D}dirname/*.o* ; do
51311             if [ -f ${D}subfile ]; then
51312                 found=1
51313                 if [ -s ${D}subfile ]; then
51314                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51315                     newInputFiles="${D}newInputFiles ${D}subfile"
51316                 fi
51317             fi
51318         done
51319         if [ ${D}found -eq 0 ]; then
51320             echo "WARNING: there are no files in archive \\'${D}file\\'"
51321         fi
51322         ;;
51323     *)
51324         newInputFiles="${D}{newInputFiles} ${D}file"
51325         ;;
51326     esac
51327 done
51328 inputFiles="${D}newInputFiles"
51329
51330 # Output filename(s).
51331 do_backup=0;
51332 if [ -z ${D}outFile ]; then
51333     do_backup=1;
51334     set outFile ${D}inputFiles; outFile=${D}2
51335 fi
51336
51337 # If it is an archive, remove the '!' and the '_%' suffixes
51338 case ${D}outFile in
51339 *_%!)
51340     outFile=\`basnam ${D}outFile _%!\`
51341     ;;
51342 *)
51343     ;;
51344 esac
51345 case ${D}outFile in
51346 *.dll)
51347     outFile=\`basnam ${D}outFile .dll\`
51348     ;;
51349 *.DLL)
51350     outFile=\`basnam ${D}outFile .DLL\`
51351     ;;
51352 *.o)
51353     outFile=\`basnam ${D}outFile .o\`
51354     ;;
51355 *.obj)
51356     outFile=\`basnam ${D}outFile .obj\`
51357     ;;
51358 *.a)
51359     outFile=\`basnam ${D}outFile .a\`
51360     ;;
51361 *.lib)
51362     outFile=\`basnam ${D}outFile .lib\`
51363     ;;
51364 *)
51365     ;;
51366 esac
51367 case ${D}outimpFile in
51368 *.a)
51369     outimpFile=\`basnam ${D}outimpFile .a\`
51370     ;;
51371 *.lib)
51372     outimpFile=\`basnam ${D}outimpFile .lib\`
51373     ;;
51374 *)
51375     ;;
51376 esac
51377 if [ -z ${D}outimpFile ]; then
51378     outimpFile=${D}outFile
51379 fi
51380 defFile="${D}{outFile}.def"
51381 arcFile="${D}{outimpFile}.a"
51382 arcFile2="${D}{outimpFile}.lib"
51383
51384 #create ${D}dllFile as something matching 8.3 restrictions,
51385 if [ -z ${D}renameScript ] ; then
51386     dllFile="${D}outFile"
51387 else
51388     dllFile=\`${D}renameScript ${D}outimpFile\`
51389 fi
51390
51391 if [ ${D}do_backup -ne 0 ] ; then
51392     if [ -f ${D}arcFile ] ; then
51393         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51394     fi
51395     if [ -f ${D}arcFile2 ] ; then
51396         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51397     fi
51398 fi
51399
51400 # Extract public symbols from all the object files.
51401 tmpdefFile=${D}{defFile}_%
51402 rm -f ${D}tmpdefFile
51403 for file in ${D}inputFiles ; do
51404     case ${D}file in
51405     *!)
51406         ;;
51407     *)
51408         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51409         ;;
51410     esac
51411 done
51412
51413 # Create the def file.
51414 rm -f ${D}defFile
51415 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51416 dllFile="${D}{dllFile}.dll"
51417 if [ ! -z ${D}description ]; then
51418     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51419 fi
51420 echo "EXPORTS" >> ${D}defFile
51421
51422 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51423 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51424
51425 # Checks if the export is ok or not.
51426 for word in ${D}exclude_symbols; do
51427     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51428     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51429 done
51430
51431
51432 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51433     sed "=" < ${D}tmpdefFile | \\
51434     sed '
51435       N
51436       : loop
51437       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51438       t loop
51439     ' > ${D}{tmpdefFile}%
51440     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51441 else
51442     rm -f ${D}{tmpdefFile}%
51443 fi
51444 cat ${D}tmpdefFile >> ${D}defFile
51445 rm -f ${D}tmpdefFile
51446
51447 # Do linking, create implib, and apply lxlite.
51448 gccCmdl="";
51449 for file in ${D}inputFiles ; do
51450     case ${D}file in
51451     *!)
51452         ;;
51453     *)
51454         gccCmdl="${D}gccCmdl ${D}file"
51455         ;;
51456     esac
51457 done
51458 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51459 touch "${D}{outFile}.dll"
51460
51461 doCommand "emximp -o ${D}arcFile ${D}defFile"
51462 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51463     add_flags="";
51464     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51465         add_flags="-ynd"
51466     fi
51467     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51468 fi
51469 doCommand "emxomf -s -l ${D}arcFile"
51470
51471 # Successful exit.
51472 CleanUp 1
51473 exit 0
51474 EOF
51475
51476         chmod +x dllar.sh
51477       ;;
51478
51479       powerpc-apple-macos* | \
51480       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51481       *-*-mirbsd* | \
51482       *-*-sunos4* | \
51483       *-*-osf* | \
51484       *-*-dgux5* | \
51485       *-*-sysv5* | \
51486       *-pc-msdosdjgpp )
51487               ;;
51488
51489       *)
51490         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51491 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51492    { (exit 1); exit 1; }; }
51493     esac
51494
51495     if test "x$PIC_FLAG" != "x" ; then
51496         PIC_FLAG="$PIC_FLAG -DPIC"
51497     fi
51498
51499     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51500         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51501     fi
51502     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51503         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51504     fi
51505
51506
51507
51508
51509
51510
51511
51512
51513
51514     USE_SOVERSION=0
51515     USE_SOVERLINUX=0
51516     USE_SOVERSOLARIS=0
51517     USE_SOVERCYGWIN=0
51518     USE_SOSYMLINKS=0
51519     USE_MACVERSION=0
51520     SONAME_FLAG=
51521
51522     case "${BAKEFILE_HOST}" in
51523       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51524         if test "x$SUNCXX" = "xyes"; then
51525             SONAME_FLAG="-h "
51526         else
51527             SONAME_FLAG="-Wl,-soname,"
51528         fi
51529         USE_SOVERSION=1
51530         USE_SOVERLINUX=1
51531         USE_SOSYMLINKS=1
51532       ;;
51533
51534       *-*-solaris2* )
51535         SONAME_FLAG="-h "
51536         USE_SOVERSION=1
51537         USE_SOVERSOLARIS=1
51538         USE_SOSYMLINKS=1
51539       ;;
51540
51541       *-*-darwin* )
51542         USE_MACVERSION=1
51543         USE_SOVERSION=1
51544         USE_SOSYMLINKS=1
51545       ;;
51546
51547       *-*-cygwin* )
51548         USE_SOVERSION=1
51549         USE_SOVERCYGWIN=1
51550       ;;
51551     esac
51552
51553
51554
51555
51556
51557
51558
51559
51560
51561
51562     # Check whether --enable-dependency-tracking was given.
51563 if test "${enable_dependency_tracking+set}" = set; then
51564   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51565 fi
51566
51567
51568     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51569 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51570
51571     BK_DEPS=""
51572     if test "x$bk_use_trackdeps" = "xno" ; then
51573         DEPS_TRACKING=0
51574         { echo "$as_me:$LINENO: result: disabled" >&5
51575 echo "${ECHO_T}disabled" >&6; }
51576     else
51577         DEPS_TRACKING=1
51578
51579         if test "x$GCC" = "xyes"; then
51580             DEPSMODE=gcc
51581             case "${BAKEFILE_HOST}" in
51582                 *-*-darwin* )
51583                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51584                 ;;
51585                 * )
51586                     DEPSFLAG="-MMD"
51587                 ;;
51588             esac
51589             { echo "$as_me:$LINENO: result: gcc" >&5
51590 echo "${ECHO_T}gcc" >&6; }
51591         elif test "x$MWCC" = "xyes"; then
51592             DEPSMODE=mwcc
51593             DEPSFLAG="-MM"
51594             { echo "$as_me:$LINENO: result: mwcc" >&5
51595 echo "${ECHO_T}mwcc" >&6; }
51596         elif test "x$SUNCC" = "xyes"; then
51597             DEPSMODE=unixcc
51598             DEPSFLAG="-xM1"
51599             { echo "$as_me:$LINENO: result: Sun cc" >&5
51600 echo "${ECHO_T}Sun cc" >&6; }
51601         elif test "x$SGICC" = "xyes"; then
51602             DEPSMODE=unixcc
51603             DEPSFLAG="-M"
51604             { echo "$as_me:$LINENO: result: SGI cc" >&5
51605 echo "${ECHO_T}SGI cc" >&6; }
51606         elif test "x$HPCC" = "xyes"; then
51607             DEPSMODE=unixcc
51608             DEPSFLAG="+make"
51609             { echo "$as_me:$LINENO: result: HP cc" >&5
51610 echo "${ECHO_T}HP cc" >&6; }
51611         elif test "x$COMPAQCC" = "xyes"; then
51612             DEPSMODE=gcc
51613             DEPSFLAG="-MD"
51614             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51615 echo "${ECHO_T}Compaq cc" >&6; }
51616         else
51617             DEPS_TRACKING=0
51618             { echo "$as_me:$LINENO: result: none" >&5
51619 echo "${ECHO_T}none" >&6; }
51620         fi
51621
51622         if test $DEPS_TRACKING = 1 ; then
51623
51624 D='$'
51625 cat <<EOF >bk-deps
51626 #!/bin/sh
51627
51628 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51629 # script. It is used to track C/C++ files dependencies in portable way.
51630 #
51631 # Permission is given to use this file in any way.
51632
51633 DEPSMODE=${DEPSMODE}
51634 DEPSDIR=.deps
51635 DEPSFLAG="${DEPSFLAG}"
51636
51637 mkdir -p ${D}DEPSDIR
51638
51639 if test ${D}DEPSMODE = gcc ; then
51640     ${D}* ${D}{DEPSFLAG}
51641     status=${D}?
51642     if test ${D}{status} != 0 ; then
51643         exit ${D}{status}
51644     fi
51645     # move created file to the location we want it in:
51646     while test ${D}# -gt 0; do
51647         case "${D}1" in
51648             -o )
51649                 shift
51650                 objfile=${D}1
51651             ;;
51652             -* )
51653             ;;
51654             * )
51655                 srcfile=${D}1
51656             ;;
51657         esac
51658         shift
51659     done
51660     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51661     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51662     if test -f ${D}depfile ; then
51663         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51664         rm -f ${D}depfile
51665     else
51666         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51667         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51668         if test ! -f ${D}depfile ; then
51669             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51670             depfile="${D}objfile.d"
51671         fi
51672         if test -f ${D}depfile ; then
51673             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51674             rm -f ${D}depfile
51675         fi
51676     fi
51677     exit 0
51678 elif test ${D}DEPSMODE = mwcc ; then
51679     ${D}* || exit ${D}?
51680     # Run mwcc again with -MM and redirect into the dep file we want
51681     # NOTE: We can't use shift here because we need ${D}* to be valid
51682     prevarg=
51683     for arg in ${D}* ; do
51684         if test "${D}prevarg" = "-o"; then
51685             objfile=${D}arg
51686         else
51687             case "${D}arg" in
51688                 -* )
51689                 ;;
51690                 * )
51691                     srcfile=${D}arg
51692                 ;;
51693             esac
51694         fi
51695         prevarg="${D}arg"
51696     done
51697     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51698     exit 0
51699 elif test ${D}DEPSMODE = unixcc; then
51700     ${D}* || exit ${D}?
51701     # Run compiler again with deps flag and redirect into the dep file.
51702     # It doesn't work if the '-o FILE' option is used, but without it the
51703     # dependency file will contain the wrong name for the object. So it is
51704     # removed from the command line, and the dep file is fixed with sed.
51705     cmd=""
51706     while test ${D}# -gt 0; do
51707         case "${D}1" in
51708             -o )
51709                 shift
51710                 objfile=${D}1
51711             ;;
51712             * )
51713                 eval arg${D}#=\\${D}1
51714                 cmd="${D}cmd \\${D}arg${D}#"
51715             ;;
51716         esac
51717         shift
51718     done
51719     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51720     exit 0
51721 else
51722     ${D}*
51723     exit ${D}?
51724 fi
51725 EOF
51726
51727             chmod +x bk-deps
51728                                     BK_DEPS="`pwd`/bk-deps"
51729         fi
51730     fi
51731
51732
51733
51734
51735
51736     case ${BAKEFILE_HOST} in
51737         *-*-cygwin* | *-*-mingw32* )
51738                         if test -n "$ac_tool_prefix"; then
51739   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51740 set dummy ${ac_tool_prefix}windres; ac_word=$2
51741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51743 if test "${ac_cv_prog_WINDRES+set}" = set; then
51744   echo $ECHO_N "(cached) $ECHO_C" >&6
51745 else
51746   if test -n "$WINDRES"; then
51747   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51748 else
51749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51750 for as_dir in $PATH
51751 do
51752   IFS=$as_save_IFS
51753   test -z "$as_dir" && as_dir=.
51754   for ac_exec_ext in '' $ac_executable_extensions; do
51755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51756     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51758     break 2
51759   fi
51760 done
51761 done
51762 IFS=$as_save_IFS
51763
51764 fi
51765 fi
51766 WINDRES=$ac_cv_prog_WINDRES
51767 if test -n "$WINDRES"; then
51768   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51769 echo "${ECHO_T}$WINDRES" >&6; }
51770 else
51771   { echo "$as_me:$LINENO: result: no" >&5
51772 echo "${ECHO_T}no" >&6; }
51773 fi
51774
51775
51776 fi
51777 if test -z "$ac_cv_prog_WINDRES"; then
51778   ac_ct_WINDRES=$WINDRES
51779   # Extract the first word of "windres", so it can be a program name with args.
51780 set dummy windres; ac_word=$2
51781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51783 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51784   echo $ECHO_N "(cached) $ECHO_C" >&6
51785 else
51786   if test -n "$ac_ct_WINDRES"; then
51787   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51788 else
51789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51790 for as_dir in $PATH
51791 do
51792   IFS=$as_save_IFS
51793   test -z "$as_dir" && as_dir=.
51794   for ac_exec_ext in '' $ac_executable_extensions; do
51795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51796     ac_cv_prog_ac_ct_WINDRES="windres"
51797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51798     break 2
51799   fi
51800 done
51801 done
51802 IFS=$as_save_IFS
51803
51804 fi
51805 fi
51806 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51807 if test -n "$ac_ct_WINDRES"; then
51808   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51809 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51810 else
51811   { echo "$as_me:$LINENO: result: no" >&5
51812 echo "${ECHO_T}no" >&6; }
51813 fi
51814
51815   if test "x$ac_ct_WINDRES" = x; then
51816     WINDRES=""
51817   else
51818     case $cross_compiling:$ac_tool_warned in
51819 yes:)
51820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51821 whose name does not start with the host triplet.  If you think this
51822 configuration is useful to you, please write to autoconf@gnu.org." >&5
51823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51824 whose name does not start with the host triplet.  If you think this
51825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51826 ac_tool_warned=yes ;;
51827 esac
51828     WINDRES=$ac_ct_WINDRES
51829   fi
51830 else
51831   WINDRES="$ac_cv_prog_WINDRES"
51832 fi
51833
51834          ;;
51835
51836       *-*-darwin* | powerpc-apple-macos* )
51837             # Extract the first word of "Rez", so it can be a program name with args.
51838 set dummy Rez; ac_word=$2
51839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51841 if test "${ac_cv_prog_REZ+set}" = set; then
51842   echo $ECHO_N "(cached) $ECHO_C" >&6
51843 else
51844   if test -n "$REZ"; then
51845   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51846 else
51847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51848 for as_dir in $PATH
51849 do
51850   IFS=$as_save_IFS
51851   test -z "$as_dir" && as_dir=.
51852   for ac_exec_ext in '' $ac_executable_extensions; do
51853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51854     ac_cv_prog_REZ="Rez"
51855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51856     break 2
51857   fi
51858 done
51859 done
51860 IFS=$as_save_IFS
51861
51862   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51863 fi
51864 fi
51865 REZ=$ac_cv_prog_REZ
51866 if test -n "$REZ"; then
51867   { echo "$as_me:$LINENO: result: $REZ" >&5
51868 echo "${ECHO_T}$REZ" >&6; }
51869 else
51870   { echo "$as_me:$LINENO: result: no" >&5
51871 echo "${ECHO_T}no" >&6; }
51872 fi
51873
51874
51875             # Extract the first word of "SetFile", so it can be a program name with args.
51876 set dummy SetFile; ac_word=$2
51877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51879 if test "${ac_cv_prog_SETFILE+set}" = set; then
51880   echo $ECHO_N "(cached) $ECHO_C" >&6
51881 else
51882   if test -n "$SETFILE"; then
51883   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51884 else
51885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51886 for as_dir in $PATH
51887 do
51888   IFS=$as_save_IFS
51889   test -z "$as_dir" && as_dir=.
51890   for ac_exec_ext in '' $ac_executable_extensions; do
51891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51892     ac_cv_prog_SETFILE="SetFile"
51893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51894     break 2
51895   fi
51896 done
51897 done
51898 IFS=$as_save_IFS
51899
51900   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51901 fi
51902 fi
51903 SETFILE=$ac_cv_prog_SETFILE
51904 if test -n "$SETFILE"; then
51905   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51906 echo "${ECHO_T}$SETFILE" >&6; }
51907 else
51908   { echo "$as_me:$LINENO: result: no" >&5
51909 echo "${ECHO_T}no" >&6; }
51910 fi
51911
51912
51913         ;;
51914     esac
51915
51916
51917
51918
51919
51920
51921     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51922
51923
51924 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51925
51926
51927
51928     # Check whether --enable-precomp-headers was given.
51929 if test "${enable_precomp_headers+set}" = set; then
51930   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51931 fi
51932
51933
51934     GCC_PCH=0
51935     ICC_PCH=0
51936     USE_PCH=0
51937     BK_MAKE_PCH=""
51938
51939     case ${BAKEFILE_HOST} in
51940         *-*-cygwin* )
51941                                                 bk_use_pch="no"
51942             ;;
51943     esac
51944
51945     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51946         if test "x$GCC" = "xyes"; then
51947                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51948 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51949             cat >conftest.$ac_ext <<_ACEOF
51950 /* confdefs.h.  */
51951 _ACEOF
51952 cat confdefs.h >>conftest.$ac_ext
51953 cat >>conftest.$ac_ext <<_ACEOF
51954 /* end confdefs.h.  */
51955
51956 int
51957 main ()
51958 {
51959
51960                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51961                         There is no PCH support
51962                     #endif
51963                     #if (__GNUC__ < 3)
51964                         There is no PCH support
51965                     #endif
51966                     #if (__GNUC__ == 3) && \
51967                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51968                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51969                        ( defined(__INTEL_COMPILER) )
51970                         There is no PCH support
51971                     #endif
51972
51973   ;
51974   return 0;
51975 }
51976 _ACEOF
51977 rm -f conftest.$ac_objext
51978 if { (ac_try="$ac_compile"
51979 case "(($ac_try" in
51980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51981   *) ac_try_echo=$ac_try;;
51982 esac
51983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51984   (eval "$ac_compile") 2>conftest.er1
51985   ac_status=$?
51986   grep -v '^ *+' conftest.er1 >conftest.err
51987   rm -f conftest.er1
51988   cat conftest.err >&5
51989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51990   (exit $ac_status); } && {
51991          test -z "$ac_c_werror_flag" ||
51992          test ! -s conftest.err
51993        } && test -s conftest.$ac_objext; then
51994
51995                     { echo "$as_me:$LINENO: result: yes" >&5
51996 echo "${ECHO_T}yes" >&6; }
51997                     GCC_PCH=1
51998
51999 else
52000   echo "$as_me: failed program was:" >&5
52001 sed 's/^/| /' conftest.$ac_ext >&5
52002
52003
52004                     cat >conftest.$ac_ext <<_ACEOF
52005 /* confdefs.h.  */
52006 _ACEOF
52007 cat confdefs.h >>conftest.$ac_ext
52008 cat >>conftest.$ac_ext <<_ACEOF
52009 /* end confdefs.h.  */
52010
52011 int
52012 main ()
52013 {
52014
52015                             #if !defined(__INTEL_COMPILER) || \
52016                                 (__INTEL_COMPILER < 800)
52017                                 There is no PCH support
52018                             #endif
52019
52020   ;
52021   return 0;
52022 }
52023 _ACEOF
52024 rm -f conftest.$ac_objext
52025 if { (ac_try="$ac_compile"
52026 case "(($ac_try" in
52027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52028   *) ac_try_echo=$ac_try;;
52029 esac
52030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52031   (eval "$ac_compile") 2>conftest.er1
52032   ac_status=$?
52033   grep -v '^ *+' conftest.er1 >conftest.err
52034   rm -f conftest.er1
52035   cat conftest.err >&5
52036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52037   (exit $ac_status); } && {
52038          test -z "$ac_c_werror_flag" ||
52039          test ! -s conftest.err
52040        } && test -s conftest.$ac_objext; then
52041
52042                             { echo "$as_me:$LINENO: result: yes" >&5
52043 echo "${ECHO_T}yes" >&6; }
52044                             ICC_PCH=1
52045
52046 else
52047   echo "$as_me: failed program was:" >&5
52048 sed 's/^/| /' conftest.$ac_ext >&5
52049
52050
52051                             { echo "$as_me:$LINENO: result: no" >&5
52052 echo "${ECHO_T}no" >&6; }
52053
52054 fi
52055
52056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52057
52058 fi
52059
52060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52061             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
52062                 USE_PCH=1
52063
52064 D='$'
52065 cat <<EOF >bk-make-pch
52066 #!/bin/sh
52067
52068 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
52069 # script. It is used to generated precompiled headers.
52070 #
52071 # Permission is given to use this file in any way.
52072
52073 outfile="${D}{1}"
52074 header="${D}{2}"
52075 shift
52076 shift
52077
52078 compiler=""
52079 headerfile=""
52080
52081 while test ${D}{#} -gt 0; do
52082     add_to_cmdline=1
52083     case "${D}{1}" in
52084         -I* )
52085             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
52086             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
52087                 headerfile="${D}{incdir}/${D}{header}"
52088             fi
52089         ;;
52090         -use-pch|-use_pch )
52091             shift
52092             add_to_cmdline=0
52093         ;;
52094     esac
52095     if test ${D}add_to_cmdline = 1 ; then
52096         compiler="${D}{compiler} ${D}{1}"
52097     fi
52098     shift
52099 done
52100
52101 if test "x${D}{headerfile}" = "x" ; then
52102     echo "error: can't find header ${D}{header} in include paths" >&2
52103 else
52104     if test -f ${D}{outfile} ; then
52105         rm -f ${D}{outfile}
52106     else
52107         mkdir -p \`dirname ${D}{outfile}\`
52108     fi
52109     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52110     mkdir -p .deps
52111     if test "x${GCC_PCH}" = "x1" ; then
52112         # can do this because gcc is >= 3.4:
52113         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52114     elif test "x${ICC_PCH}" = "x1" ; then
52115         filename=pch_gen-${D}${D}
52116         file=${D}{filename}.c
52117         dfile=${D}{filename}.d
52118         cat > ${D}file <<EOT
52119 #include "${D}header"
52120 EOT
52121         # using -MF icc complains about differing command lines in creation/use
52122         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
52123           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52124           rm -f ${D}file ${D}dfile ${D}{filename}.o
52125     fi
52126     exit ${D}{?}
52127 fi
52128 EOF
52129
52130                 chmod +x bk-make-pch
52131                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52132             fi
52133         fi
52134     fi
52135
52136
52137
52138
52139
52140     COND_BUILD_DEBUG="#"
52141     if test "x$BUILD" = "xdebug" ; then
52142         COND_BUILD_DEBUG=""
52143     fi
52144
52145     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52146     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52147         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52148     fi
52149
52150     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52151     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52152         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52153     fi
52154
52155     COND_BUILD_DEBUG_UNICODE_0="#"
52156     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52157         COND_BUILD_DEBUG_UNICODE_0=""
52158     fi
52159
52160     COND_BUILD_DEBUG_UNICODE_1="#"
52161     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52162         COND_BUILD_DEBUG_UNICODE_1=""
52163     fi
52164
52165     COND_BUILD_RELEASE="#"
52166     if test "x$BUILD" = "xrelease" ; then
52167         COND_BUILD_RELEASE=""
52168     fi
52169
52170     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52171     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52172         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52173     fi
52174
52175     COND_BUILD_RELEASE_UNICODE_0="#"
52176     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52177         COND_BUILD_RELEASE_UNICODE_0=""
52178     fi
52179
52180     COND_BUILD_RELEASE_UNICODE_1="#"
52181     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52182         COND_BUILD_RELEASE_UNICODE_1=""
52183     fi
52184
52185     COND_DEBUG_FLAG_1="#"
52186     if test "x$DEBUG_FLAG" = "x1" ; then
52187         COND_DEBUG_FLAG_1=""
52188     fi
52189
52190     COND_DEBUG_INFO_0="#"
52191     if test "x$DEBUG_INFO" = "x0" ; then
52192         COND_DEBUG_INFO_0=""
52193     fi
52194
52195     COND_DEBUG_INFO_1="#"
52196     if test "x$DEBUG_INFO" = "x1" ; then
52197         COND_DEBUG_INFO_1=""
52198     fi
52199
52200     COND_DEPS_TRACKING_0="#"
52201     if test "x$DEPS_TRACKING" = "x0" ; then
52202         COND_DEPS_TRACKING_0=""
52203     fi
52204
52205     COND_DEPS_TRACKING_1="#"
52206     if test "x$DEPS_TRACKING" = "x1" ; then
52207         COND_DEPS_TRACKING_1=""
52208     fi
52209
52210     COND_GCC_PCH_1="#"
52211     if test "x$GCC_PCH" = "x1" ; then
52212         COND_GCC_PCH_1=""
52213     fi
52214
52215     COND_ICC_PCH_1="#"
52216     if test "x$ICC_PCH" = "x1" ; then
52217         COND_ICC_PCH_1=""
52218     fi
52219
52220     COND_MONOLITHIC_0="#"
52221     if test "x$MONOLITHIC" = "x0" ; then
52222         COND_MONOLITHIC_0=""
52223     fi
52224
52225     COND_MONOLITHIC_0_SHARED_0="#"
52226     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52227         COND_MONOLITHIC_0_SHARED_0=""
52228     fi
52229
52230     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52231     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52232         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52233     fi
52234
52235     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52236     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52237         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52238     fi
52239
52240     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52241     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52242         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52243     fi
52244
52245     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52246     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52247         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52248     fi
52249
52250     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
52251     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52252         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
52253     fi
52254
52255     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52256     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52257         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52258     fi
52259
52260     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
52261     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
52262         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
52263     fi
52264
52265     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52266     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52267         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52268     fi
52269
52270     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52271     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52272         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52273     fi
52274
52275     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52276     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52277         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52278     fi
52279
52280     COND_MONOLITHIC_0_SHARED_1="#"
52281     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52282         COND_MONOLITHIC_0_SHARED_1=""
52283     fi
52284
52285     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52286     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52287         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52288     fi
52289
52290     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52291     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52292         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52293     fi
52294
52295     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52296     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52297         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52298     fi
52299
52300     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52301     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52302         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52303     fi
52304
52305     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
52306     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52307         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
52308     fi
52309
52310     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52311     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52312         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52313     fi
52314
52315     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
52316     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
52317         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
52318     fi
52319
52320     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52321     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52322         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52323     fi
52324
52325     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52326     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52327         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52328     fi
52329
52330     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52331     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52332         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52333     fi
52334
52335     COND_MONOLITHIC_0_USE_AUI_1="#"
52336     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52337         COND_MONOLITHIC_0_USE_AUI_1=""
52338     fi
52339
52340     COND_MONOLITHIC_0_USE_GUI_1="#"
52341     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52342         COND_MONOLITHIC_0_USE_GUI_1=""
52343     fi
52344
52345     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52346     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52347         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52348     fi
52349
52350     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
52351     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52352         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
52353     fi
52354
52355     COND_MONOLITHIC_0_USE_HTML_1="#"
52356     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52357         COND_MONOLITHIC_0_USE_HTML_1=""
52358     fi
52359
52360     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52361     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52362         COND_MONOLITHIC_0_USE_MEDIA_1=""
52363     fi
52364
52365     COND_MONOLITHIC_0_USE_ODBC_1="#"
52366     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
52367         COND_MONOLITHIC_0_USE_ODBC_1=""
52368     fi
52369
52370     COND_MONOLITHIC_0_USE_QA_1="#"
52371     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52372         COND_MONOLITHIC_0_USE_QA_1=""
52373     fi
52374
52375     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52376     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52377         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52378     fi
52379
52380     COND_MONOLITHIC_0_USE_STC_1="#"
52381     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52382         COND_MONOLITHIC_0_USE_STC_1=""
52383     fi
52384
52385     COND_MONOLITHIC_0_USE_XRC_1="#"
52386     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52387         COND_MONOLITHIC_0_USE_XRC_1=""
52388     fi
52389
52390     COND_MONOLITHIC_1="#"
52391     if test "x$MONOLITHIC" = "x1" ; then
52392         COND_MONOLITHIC_1=""
52393     fi
52394
52395     COND_MONOLITHIC_1_SHARED_0="#"
52396     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52397         COND_MONOLITHIC_1_SHARED_0=""
52398     fi
52399
52400     COND_MONOLITHIC_1_SHARED_1="#"
52401     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52402         COND_MONOLITHIC_1_SHARED_1=""
52403     fi
52404
52405     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52406     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52407         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52408     fi
52409
52410     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52411     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52412         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52413     fi
52414
52415     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52416     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52417         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52418     fi
52419
52420     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52421     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52422         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52423     fi
52424
52425     COND_PLATFORM_MACOSX_1="#"
52426     if test "x$PLATFORM_MACOSX" = "x1" ; then
52427         COND_PLATFORM_MACOSX_1=""
52428     fi
52429
52430     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
52431     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
52432         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
52433     fi
52434
52435     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
52436     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
52437         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
52438     fi
52439
52440     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
52441     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
52442         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
52443     fi
52444
52445     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
52446     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
52447         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
52448     fi
52449
52450     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
52451     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52452         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
52453     fi
52454
52455     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
52456     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
52457         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
52458     fi
52459
52460     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
52461     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
52462         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
52463     fi
52464
52465     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52466     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52467         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52468     fi
52469
52470     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52471     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52472         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52473     fi
52474
52475     COND_PLATFORM_MACOS_1="#"
52476     if test "x$PLATFORM_MACOS" = "x1" ; then
52477         COND_PLATFORM_MACOS_1=""
52478     fi
52479
52480     COND_PLATFORM_MAC_1="#"
52481     if test "x$PLATFORM_MAC" = "x1" ; then
52482         COND_PLATFORM_MAC_1=""
52483     fi
52484
52485     COND_PLATFORM_MSDOS_0="#"
52486     if test "x$PLATFORM_MSDOS" = "x0" ; then
52487         COND_PLATFORM_MSDOS_0=""
52488     fi
52489
52490     COND_PLATFORM_MSDOS_1="#"
52491     if test "x$PLATFORM_MSDOS" = "x1" ; then
52492         COND_PLATFORM_MSDOS_1=""
52493     fi
52494
52495     COND_PLATFORM_OS2_1="#"
52496     if test "x$PLATFORM_OS2" = "x1" ; then
52497         COND_PLATFORM_OS2_1=""
52498     fi
52499
52500     COND_PLATFORM_UNIX_0="#"
52501     if test "x$PLATFORM_UNIX" = "x0" ; then
52502         COND_PLATFORM_UNIX_0=""
52503     fi
52504
52505     COND_PLATFORM_UNIX_1="#"
52506     if test "x$PLATFORM_UNIX" = "x1" ; then
52507         COND_PLATFORM_UNIX_1=""
52508     fi
52509
52510     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52511     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52512         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52513     fi
52514
52515     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52516     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52517         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52518     fi
52519
52520     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52521     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52522         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52523     fi
52524
52525     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52526     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52527         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52528     fi
52529
52530     COND_PLATFORM_WIN32_0="#"
52531     if test "x$PLATFORM_WIN32" = "x0" ; then
52532         COND_PLATFORM_WIN32_0=""
52533     fi
52534
52535     COND_PLATFORM_WIN32_1="#"
52536     if test "x$PLATFORM_WIN32" = "x1" ; then
52537         COND_PLATFORM_WIN32_1=""
52538     fi
52539
52540     COND_SHARED_0="#"
52541     if test "x$SHARED" = "x0" ; then
52542         COND_SHARED_0=""
52543     fi
52544
52545     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52546     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52547         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52548     fi
52549
52550     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52551     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52552         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52553     fi
52554
52555     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52556     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52557         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52558     fi
52559
52560     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52561     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52562         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52563     fi
52564
52565     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52566     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52567         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52568     fi
52569
52570     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52571     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52572         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52573     fi
52574
52575     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52576     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52577         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52578     fi
52579
52580     COND_SHARED_0_USE_STC_1="#"
52581     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52582         COND_SHARED_0_USE_STC_1=""
52583     fi
52584
52585     COND_SHARED_0_USE_XRC_1="#"
52586     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52587         COND_SHARED_0_USE_XRC_1=""
52588     fi
52589
52590     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52591     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52592         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52593     fi
52594
52595     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52596     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52597         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52598     fi
52599
52600     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52601     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52602         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52603     fi
52604
52605     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52606     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52607         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52608     fi
52609
52610     COND_SHARED_1="#"
52611     if test "x$SHARED" = "x1" ; then
52612         COND_SHARED_1=""
52613     fi
52614
52615     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52616     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52617         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52618     fi
52619
52620     COND_SHARED_1_USE_XRC_1="#"
52621     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52622         COND_SHARED_1_USE_XRC_1=""
52623     fi
52624
52625     COND_TOOLKIT_="#"
52626     if test "x$TOOLKIT" = "x" ; then
52627         COND_TOOLKIT_=""
52628     fi
52629
52630     COND_TOOLKIT_COCOA="#"
52631     if test "x$TOOLKIT" = "xCOCOA" ; then
52632         COND_TOOLKIT_COCOA=""
52633     fi
52634
52635     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52636     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52637         COND_TOOLKIT_COCOA_USE_GUI_1=""
52638     fi
52639
52640     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52641     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52642         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52643     fi
52644
52645     COND_TOOLKIT_DFB="#"
52646     if test "x$TOOLKIT" = "xDFB" ; then
52647         COND_TOOLKIT_DFB=""
52648     fi
52649
52650     COND_TOOLKIT_DFB_USE_GUI_1="#"
52651     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52652         COND_TOOLKIT_DFB_USE_GUI_1=""
52653     fi
52654
52655     COND_TOOLKIT_GTK="#"
52656     if test "x$TOOLKIT" = "xGTK" ; then
52657         COND_TOOLKIT_GTK=""
52658     fi
52659
52660     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52661     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52662         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52663     fi
52664
52665     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52666     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52667         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52668     fi
52669
52670     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52671     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52672         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52673     fi
52674
52675     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52676     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52677         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52678     fi
52679
52680     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52681     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52682         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52683     fi
52684
52685     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52686     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52687         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52688     fi
52689
52690     COND_TOOLKIT_GTK_USE_GUI_1="#"
52691     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52692         COND_TOOLKIT_GTK_USE_GUI_1=""
52693     fi
52694
52695     COND_TOOLKIT_MAC="#"
52696     if test "x$TOOLKIT" = "xMAC" ; then
52697         COND_TOOLKIT_MAC=""
52698     fi
52699
52700     COND_TOOLKIT_MAC_USE_GUI_1="#"
52701     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52702         COND_TOOLKIT_MAC_USE_GUI_1=""
52703     fi
52704
52705     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52706     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52707         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52708     fi
52709
52710     COND_TOOLKIT_MGL="#"
52711     if test "x$TOOLKIT" = "xMGL" ; then
52712         COND_TOOLKIT_MGL=""
52713     fi
52714
52715     COND_TOOLKIT_MGL_USE_GUI_1="#"
52716     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52717         COND_TOOLKIT_MGL_USE_GUI_1=""
52718     fi
52719
52720     COND_TOOLKIT_MOTIF="#"
52721     if test "x$TOOLKIT" = "xMOTIF" ; then
52722         COND_TOOLKIT_MOTIF=""
52723     fi
52724
52725     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52726     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52727         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52728     fi
52729
52730     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52731     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52732         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52733     fi
52734
52735     COND_TOOLKIT_MSW="#"
52736     if test "x$TOOLKIT" = "xMSW" ; then
52737         COND_TOOLKIT_MSW=""
52738     fi
52739
52740     COND_TOOLKIT_MSW_USE_GUI_1="#"
52741     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52742         COND_TOOLKIT_MSW_USE_GUI_1=""
52743     fi
52744
52745     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52746     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52747         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52748     fi
52749
52750     COND_TOOLKIT_MSW_WXUNIV_0="#"
52751     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52752         COND_TOOLKIT_MSW_WXUNIV_0=""
52753     fi
52754
52755     COND_TOOLKIT_PM="#"
52756     if test "x$TOOLKIT" = "xPM" ; then
52757         COND_TOOLKIT_PM=""
52758     fi
52759
52760     COND_TOOLKIT_PM_USE_GUI_1="#"
52761     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52762         COND_TOOLKIT_PM_USE_GUI_1=""
52763     fi
52764
52765     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52766     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52767         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52768     fi
52769
52770     COND_TOOLKIT_WINCE="#"
52771     if test "x$TOOLKIT" = "xWINCE" ; then
52772         COND_TOOLKIT_WINCE=""
52773     fi
52774
52775     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52776     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52777         COND_TOOLKIT_WINCE_USE_GUI_1=""
52778     fi
52779
52780     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52781     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52782         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52783     fi
52784
52785     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52786     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52787         COND_TOOLKIT_WINCE_WXUNIV_0=""
52788     fi
52789
52790     COND_TOOLKIT_X11="#"
52791     if test "x$TOOLKIT" = "xX11" ; then
52792         COND_TOOLKIT_X11=""
52793     fi
52794
52795     COND_TOOLKIT_X11_USE_GUI_1="#"
52796     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52797         COND_TOOLKIT_X11_USE_GUI_1=""
52798     fi
52799
52800     COND_UNICODE_1="#"
52801     if test "x$UNICODE" = "x1" ; then
52802         COND_UNICODE_1=""
52803     fi
52804
52805     COND_USE_EXCEPTIONS_0="#"
52806     if test "x$USE_EXCEPTIONS" = "x0" ; then
52807         COND_USE_EXCEPTIONS_0=""
52808     fi
52809
52810     COND_USE_EXCEPTIONS_1="#"
52811     if test "x$USE_EXCEPTIONS" = "x1" ; then
52812         COND_USE_EXCEPTIONS_1=""
52813     fi
52814
52815     COND_USE_GUI_0="#"
52816     if test "x$USE_GUI" = "x0" ; then
52817         COND_USE_GUI_0=""
52818     fi
52819
52820     COND_USE_GUI_1="#"
52821     if test "x$USE_GUI" = "x1" ; then
52822         COND_USE_GUI_1=""
52823     fi
52824
52825     COND_USE_GUI_1_USE_OPENGL_1="#"
52826     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52827         COND_USE_GUI_1_USE_OPENGL_1=""
52828     fi
52829
52830     COND_USE_GUI_1_WXUNIV_0="#"
52831     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52832         COND_USE_GUI_1_WXUNIV_0=""
52833     fi
52834
52835     COND_USE_GUI_1_WXUNIV_1="#"
52836     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52837         COND_USE_GUI_1_WXUNIV_1=""
52838     fi
52839
52840     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52841     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52842         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52843     fi
52844
52845     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52846     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52847         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52848     fi
52849
52850     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52851     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52852         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52853     fi
52854
52855     COND_USE_ODBC_1="#"
52856     if test "x$USE_ODBC" = "x1" ; then
52857         COND_USE_ODBC_1=""
52858     fi
52859
52860     COND_USE_OPENGL_1="#"
52861     if test "x$USE_OPENGL" = "x1" ; then
52862         COND_USE_OPENGL_1=""
52863     fi
52864
52865     COND_USE_PCH_1="#"
52866     if test "x$USE_PCH" = "x1" ; then
52867         COND_USE_PCH_1=""
52868     fi
52869
52870     COND_USE_PLUGINS_0="#"
52871     if test "x$USE_PLUGINS" = "x0" ; then
52872         COND_USE_PLUGINS_0=""
52873     fi
52874
52875     COND_USE_RTTI_0="#"
52876     if test "x$USE_RTTI" = "x0" ; then
52877         COND_USE_RTTI_0=""
52878     fi
52879
52880     COND_USE_RTTI_1="#"
52881     if test "x$USE_RTTI" = "x1" ; then
52882         COND_USE_RTTI_1=""
52883     fi
52884
52885     COND_USE_SOSYMLINKS_1="#"
52886     if test "x$USE_SOSYMLINKS" = "x1" ; then
52887         COND_USE_SOSYMLINKS_1=""
52888     fi
52889
52890     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52891     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52892         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52893     fi
52894
52895     COND_USE_SOVERLINUX_1="#"
52896     if test "x$USE_SOVERLINUX" = "x1" ; then
52897         COND_USE_SOVERLINUX_1=""
52898     fi
52899
52900     COND_USE_SOVERSION_0="#"
52901     if test "x$USE_SOVERSION" = "x0" ; then
52902         COND_USE_SOVERSION_0=""
52903     fi
52904
52905     COND_USE_SOVERSOLARIS_1="#"
52906     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52907         COND_USE_SOVERSOLARIS_1=""
52908     fi
52909
52910     COND_USE_STC_1="#"
52911     if test "x$USE_STC" = "x1" ; then
52912         COND_USE_STC_1=""
52913     fi
52914
52915     COND_USE_THREADS_0="#"
52916     if test "x$USE_THREADS" = "x0" ; then
52917         COND_USE_THREADS_0=""
52918     fi
52919
52920     COND_USE_THREADS_1="#"
52921     if test "x$USE_THREADS" = "x1" ; then
52922         COND_USE_THREADS_1=""
52923     fi
52924
52925     COND_USE_XRC_1="#"
52926     if test "x$USE_XRC" = "x1" ; then
52927         COND_USE_XRC_1=""
52928     fi
52929
52930     COND_WINDOWS_IMPLIB_1="#"
52931     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52932         COND_WINDOWS_IMPLIB_1=""
52933     fi
52934
52935     COND_WITH_PLUGIN_SDL_1="#"
52936     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52937         COND_WITH_PLUGIN_SDL_1=""
52938     fi
52939
52940     COND_WXUNIV_0="#"
52941     if test "x$WXUNIV" = "x0" ; then
52942         COND_WXUNIV_0=""
52943     fi
52944
52945     COND_WXUNIV_1="#"
52946     if test "x$WXUNIV" = "x1" ; then
52947         COND_WXUNIV_1=""
52948     fi
52949
52950     COND_WXUSE_EXPAT_BUILTIN="#"
52951     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52952         COND_WXUSE_EXPAT_BUILTIN=""
52953     fi
52954
52955     COND_WXUSE_LIBJPEG_BUILTIN="#"
52956     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52957         COND_WXUSE_LIBJPEG_BUILTIN=""
52958     fi
52959
52960     COND_WXUSE_LIBPNG_BUILTIN="#"
52961     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52962         COND_WXUSE_LIBPNG_BUILTIN=""
52963     fi
52964
52965     COND_WXUSE_LIBTIFF_BUILTIN="#"
52966     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52967         COND_WXUSE_LIBTIFF_BUILTIN=""
52968     fi
52969
52970     COND_WXUSE_ODBC_BUILTIN="#"
52971     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
52972         COND_WXUSE_ODBC_BUILTIN=""
52973     fi
52974
52975     COND_WXUSE_REGEX_BUILTIN="#"
52976     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52977         COND_WXUSE_REGEX_BUILTIN=""
52978     fi
52979
52980     COND_WXUSE_ZLIB_BUILTIN="#"
52981     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52982         COND_WXUSE_ZLIB_BUILTIN=""
52983     fi
52984
52985
52986
52987     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52988         { { 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
52989 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;}
52990    { (exit 1); exit 1; }; }
52991     fi
52992
52993     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52994         { { 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
52995 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;}
52996    { (exit 1); exit 1; }; }
52997     fi
52998
52999
53000 if test $GCC_PCH = 1
53001 then
53002     if test "$wx_cv_gcc_pch_bug" = yes; then
53003         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53004 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53005         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53006 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53007         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53008 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53009     fi
53010
53011     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
53012 fi
53013
53014
53015 if test "$wxUSE_MAC" = 1 ; then
53016     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53017         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53018         mv temp bk-deps
53019         chmod +x bk-deps
53020     fi
53021 fi
53022
53023 if test "$wxUSE_SHARED" = "yes"; then
53024
53025                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
53026     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
53027
53028                 case "${host}" in
53029       *-pc-os2_emx | *-pc-os2-emx )
53030         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53031         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53032         cp -p ${srcdir}/src/os2/dllnames.sh .
53033         cp -p ${srcdir}/src/os2/dllar.sh .
53034       ;;
53035     esac
53036 else
53037
53038         EXE_LINKER="$CXX -o"
53039
53040 fi
53041 if test "$wxUSE_OMF" = "yes"; then
53042     case "${host}" in
53043       *-pc-os2_emx | *-pc-os2-emx )
53044         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53045         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53046         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53047       ;;
53048     esac
53049 fi
53050
53051 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53052
53053
53054 case "${host}" in
53055     *-*-solaris2* )
53056                         if "$GCC" = yes; then
53057             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53058             LIBS=`echo $LIBS | sed 's/-mt//'`
53059             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53060         fi
53061         ;;
53062
53063     *-*-linux* )
53064                         if test "x$SUNCXX" = xyes; then
53065             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53066             LIBS=`echo $LIBS | sed 's/-pthread//'`
53067             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53068         fi
53069         ;;
53070 esac
53071
53072 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53073 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53074
53075 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53076
53077
53078
53079
53080
53081
53082
53083
53084
53085
53086
53087
53088
53089
53090
53091
53092
53093
53094
53095
53096
53097
53098
53099
53100
53101
53102
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 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53138 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53139 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53141   echo $ECHO_N "(cached) $ECHO_C" >&6
53142 else
53143   cat >conftest.make <<\_ACEOF
53144 SHELL = /bin/sh
53145 all:
53146         @echo '@@@%%%=$(MAKE)=@@@%%%'
53147 _ACEOF
53148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53149 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53150   *@@@%%%=?*=@@@%%%*)
53151     eval ac_cv_prog_make_${ac_make}_set=yes;;
53152   *)
53153     eval ac_cv_prog_make_${ac_make}_set=no;;
53154 esac
53155 rm -f conftest.make
53156 fi
53157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53158   { echo "$as_me:$LINENO: result: yes" >&5
53159 echo "${ECHO_T}yes" >&6; }
53160   SET_MAKE=
53161 else
53162   { echo "$as_me:$LINENO: result: no" >&5
53163 echo "${ECHO_T}no" >&6; }
53164   SET_MAKE="MAKE=${MAKE-make}"
53165 fi
53166
53167
53168
53169 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53170
53171
53172 if test "$USE_WIN32" = 1; then
53173     ac_config_commands="$ac_config_commands
53174             rcdefs.h
53175         "
53176
53177 fi
53178
53179 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53180
53181
53182 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53183
53184
53185 if test "$wx_cv_version_script" = "yes"; then
53186     ac_config_files="$ac_config_files version-script"
53187
53188 fi
53189 ac_config_files="$ac_config_files Makefile"
53190
53191
53192 ac_config_commands="$ac_config_commands wx-config"
53193
53194
53195
53196 if test "$wxWITH_SUBDIRS" != "no"; then
53197 if test "$wxUSE_GUI" = "yes"; then
53198     SUBDIRS="samples demos utils"
53199 else         SUBDIRS="samples utils"
53200 fi
53201
53202
53203
53204 # Check whether --with-cppunit-prefix was given.
53205 if test "${with_cppunit_prefix+set}" = set; then
53206   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53207 else
53208   cppunit_config_prefix=""
53209 fi
53210
53211
53212 # Check whether --with-cppunit-exec-prefix was given.
53213 if test "${with_cppunit_exec_prefix+set}" = set; then
53214   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53215 else
53216   cppunit_config_exec_prefix=""
53217 fi
53218
53219
53220   if test x$cppunit_config_exec_prefix != x ; then
53221      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53222      if test x${CPPUNIT_CONFIG+set} != xset ; then
53223         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53224      fi
53225   fi
53226   if test x$cppunit_config_prefix != x ; then
53227      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53228      if test x${CPPUNIT_CONFIG+set} != xset ; then
53229         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53230      fi
53231   fi
53232
53233   # Extract the first word of "cppunit-config", so it can be a program name with args.
53234 set dummy cppunit-config; ac_word=$2
53235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53237 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53238   echo $ECHO_N "(cached) $ECHO_C" >&6
53239 else
53240   case $CPPUNIT_CONFIG in
53241   [\\/]* | ?:[\\/]*)
53242   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53243   ;;
53244   *)
53245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53246 for as_dir in $PATH
53247 do
53248   IFS=$as_save_IFS
53249   test -z "$as_dir" && as_dir=.
53250   for ac_exec_ext in '' $ac_executable_extensions; do
53251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53252     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53254     break 2
53255   fi
53256 done
53257 done
53258 IFS=$as_save_IFS
53259
53260   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53261   ;;
53262 esac
53263 fi
53264 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53265 if test -n "$CPPUNIT_CONFIG"; then
53266   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53267 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53268 else
53269   { echo "$as_me:$LINENO: result: no" >&5
53270 echo "${ECHO_T}no" >&6; }
53271 fi
53272
53273
53274   cppunit_version_min=1.8.0
53275
53276   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53277 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53278   no_cppunit=""
53279   if test "$CPPUNIT_CONFIG" = "no" ; then
53280     { echo "$as_me:$LINENO: result: no" >&5
53281 echo "${ECHO_T}no" >&6; }
53282     no_cppunit=yes
53283   else
53284     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53285     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53286     cppunit_version=`$CPPUNIT_CONFIG --version`
53287
53288     cppunit_major_version=`echo $cppunit_version | \
53289            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53290     cppunit_minor_version=`echo $cppunit_version | \
53291            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53292     cppunit_micro_version=`echo $cppunit_version | \
53293            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53294
53295     cppunit_major_min=`echo $cppunit_version_min | \
53296            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53297     cppunit_minor_min=`echo $cppunit_version_min | \
53298            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53299     cppunit_micro_min=`echo $cppunit_version_min | \
53300            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53301
53302     cppunit_version_proper=`expr \
53303         $cppunit_major_version \> $cppunit_major_min \| \
53304         $cppunit_major_version \= $cppunit_major_min \& \
53305         $cppunit_minor_version \> $cppunit_minor_min \| \
53306         $cppunit_major_version \= $cppunit_major_min \& \
53307         $cppunit_minor_version \= $cppunit_minor_min \& \
53308         $cppunit_micro_version \>= $cppunit_micro_min `
53309
53310     if test "$cppunit_version_proper" = "1" ; then
53311       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53312 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53313     else
53314       { echo "$as_me:$LINENO: result: no" >&5
53315 echo "${ECHO_T}no" >&6; }
53316       no_cppunit=yes
53317     fi
53318   fi
53319
53320   if test "x$no_cppunit" = x ; then
53321      SUBDIRS="$SUBDIRS tests"
53322   else
53323      CPPUNIT_CFLAGS=""
53324      CPPUNIT_LIBS=""
53325      :
53326   fi
53327
53328
53329
53330
53331
53332 for subdir in `echo $SUBDIRS`; do
53333     if test -d ${srcdir}/${subdir} ; then
53334         if test "$wxUSE_GUI" = "yes"; then
53335             if test ${subdir} = "samples"; then
53336                                                 makefiles="samples/Makefile.in $makefiles"
53337                 for sample in `echo $SAMPLES_SUBDIRS`; do
53338                     if test -d $srcdir/samples/$sample; then
53339                         makefiles="samples/$sample/Makefile.in $makefiles"
53340                     fi
53341                 done
53342             else
53343                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
53344                 eval "disabled=\$$disabled_var"
53345                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53346                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53347             fi
53348         else                                     if test ${subdir} = "samples"; then
53349                 makefiles="samples/Makefile.in samples/console/Makefile.in"
53350             elif test ${subdir} = "utils"; then
53351                 makefiles=""
53352                 for util in HelpGen tex2rtf ; do
53353                     if test -d $srcdir/utils/$util ; then
53354                         makefiles="utils/$util/Makefile.in \
53355                                    utils/$util/src/Makefile.in \
53356                                    $makefiles"
53357                     fi
53358                 done
53359             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53360             fi
53361         fi
53362
53363         for mkin in $makefiles ; do
53364             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53365             ac_config_files="$ac_config_files $mk"
53366
53367         done
53368     fi
53369 done
53370 fi
53371 cat >confcache <<\_ACEOF
53372 # This file is a shell script that caches the results of configure
53373 # tests run on this system so they can be shared between configure
53374 # scripts and configure runs, see configure's option --config-cache.
53375 # It is not useful on other systems.  If it contains results you don't
53376 # want to keep, you may remove or edit it.
53377 #
53378 # config.status only pays attention to the cache file if you give it
53379 # the --recheck option to rerun configure.
53380 #
53381 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53382 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53383 # following values.
53384
53385 _ACEOF
53386
53387 # The following way of writing the cache mishandles newlines in values,
53388 # but we know of no workaround that is simple, portable, and efficient.
53389 # So, we kill variables containing newlines.
53390 # Ultrix sh set writes to stderr and can't be redirected directly,
53391 # and sets the high bit in the cache file unless we assign to the vars.
53392 (
53393   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53394     eval ac_val=\$$ac_var
53395     case $ac_val in #(
53396     *${as_nl}*)
53397       case $ac_var in #(
53398       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53399 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53400       esac
53401       case $ac_var in #(
53402       _ | IFS | as_nl) ;; #(
53403       *) $as_unset $ac_var ;;
53404       esac ;;
53405     esac
53406   done
53407
53408   (set) 2>&1 |
53409     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53410     *${as_nl}ac_space=\ *)
53411       # `set' does not quote correctly, so add quotes (double-quote
53412       # substitution turns \\\\ into \\, and sed turns \\ into \).
53413       sed -n \
53414         "s/'/'\\\\''/g;
53415           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53416       ;; #(
53417     *)
53418       # `set' quotes correctly as required by POSIX, so do not add quotes.
53419       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53420       ;;
53421     esac |
53422     sort
53423 ) |
53424   sed '
53425      /^ac_cv_env_/b end
53426      t clear
53427      :clear
53428      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53429      t end
53430      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53431      :end' >>confcache
53432 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53433   if test -w "$cache_file"; then
53434     test "x$cache_file" != "x/dev/null" &&
53435       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53436 echo "$as_me: updating cache $cache_file" >&6;}
53437     cat confcache >$cache_file
53438   else
53439     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53440 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53441   fi
53442 fi
53443 rm -f confcache
53444
53445 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53446 # Let make expand exec_prefix.
53447 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53448
53449 DEFS=-DHAVE_CONFIG_H
53450
53451 ac_libobjs=
53452 ac_ltlibobjs=
53453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53454   # 1. Remove the extension, and $U if already installed.
53455   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53456   ac_i=`echo "$ac_i" | sed "$ac_script"`
53457   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53458   #    will be set to the directory where LIBOBJS objects are built.
53459   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53460   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53461 done
53462 LIBOBJS=$ac_libobjs
53463
53464 LTLIBOBJS=$ac_ltlibobjs
53465
53466
53467
53468 : ${CONFIG_STATUS=./config.status}
53469 ac_clean_files_save=$ac_clean_files
53470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53473 cat >$CONFIG_STATUS <<_ACEOF
53474 #! $SHELL
53475 # Generated by $as_me.
53476 # Run this file to recreate the current configuration.
53477 # Compiler output produced by configure, useful for debugging
53478 # configure, is in config.log if it exists.
53479
53480 debug=false
53481 ac_cs_recheck=false
53482 ac_cs_silent=false
53483 SHELL=\${CONFIG_SHELL-$SHELL}
53484 _ACEOF
53485
53486 cat >>$CONFIG_STATUS <<\_ACEOF
53487 ## --------------------- ##
53488 ## M4sh Initialization.  ##
53489 ## --------------------- ##
53490
53491 # Be more Bourne compatible
53492 DUALCASE=1; export DUALCASE # for MKS sh
53493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53494   emulate sh
53495   NULLCMD=:
53496   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53497   # is contrary to our usage.  Disable this feature.
53498   alias -g '${1+"$@"}'='"$@"'
53499   setopt NO_GLOB_SUBST
53500 else
53501   case `(set -o) 2>/dev/null` in
53502   *posix*) set -o posix ;;
53503 esac
53504
53505 fi
53506
53507
53508
53509
53510 # PATH needs CR
53511 # Avoid depending upon Character Ranges.
53512 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53513 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53514 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53515 as_cr_digits='0123456789'
53516 as_cr_alnum=$as_cr_Letters$as_cr_digits
53517
53518 # The user is always right.
53519 if test "${PATH_SEPARATOR+set}" != set; then
53520   echo "#! /bin/sh" >conf$$.sh
53521   echo  "exit 0"   >>conf$$.sh
53522   chmod +x conf$$.sh
53523   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53524     PATH_SEPARATOR=';'
53525   else
53526     PATH_SEPARATOR=:
53527   fi
53528   rm -f conf$$.sh
53529 fi
53530
53531 # Support unset when possible.
53532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53533   as_unset=unset
53534 else
53535   as_unset=false
53536 fi
53537
53538
53539 # IFS
53540 # We need space, tab and new line, in precisely that order.  Quoting is
53541 # there to prevent editors from complaining about space-tab.
53542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53543 # splitting by setting IFS to empty value.)
53544 as_nl='
53545 '
53546 IFS=" ""        $as_nl"
53547
53548 # Find who we are.  Look in the path if we contain no directory separator.
53549 case $0 in
53550   *[\\/]* ) as_myself=$0 ;;
53551   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53552 for as_dir in $PATH
53553 do
53554   IFS=$as_save_IFS
53555   test -z "$as_dir" && as_dir=.
53556   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53557 done
53558 IFS=$as_save_IFS
53559
53560      ;;
53561 esac
53562 # We did not find ourselves, most probably we were run as `sh COMMAND'
53563 # in which case we are not to be found in the path.
53564 if test "x$as_myself" = x; then
53565   as_myself=$0
53566 fi
53567 if test ! -f "$as_myself"; then
53568   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53569   { (exit 1); exit 1; }
53570 fi
53571
53572 # Work around bugs in pre-3.0 UWIN ksh.
53573 for as_var in ENV MAIL MAILPATH
53574 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53575 done
53576 PS1='$ '
53577 PS2='> '
53578 PS4='+ '
53579
53580 # NLS nuisances.
53581 for as_var in \
53582   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53583   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53584   LC_TELEPHONE LC_TIME
53585 do
53586   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53587     eval $as_var=C; export $as_var
53588   else
53589     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53590   fi
53591 done
53592
53593 # Required to use basename.
53594 if expr a : '\(a\)' >/dev/null 2>&1 &&
53595    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53596   as_expr=expr
53597 else
53598   as_expr=false
53599 fi
53600
53601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53602   as_basename=basename
53603 else
53604   as_basename=false
53605 fi
53606
53607
53608 # Name of the executable.
53609 as_me=`$as_basename -- "$0" ||
53610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53611          X"$0" : 'X\(//\)$' \| \
53612          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53613 echo X/"$0" |
53614     sed '/^.*\/\([^/][^/]*\)\/*$/{
53615             s//\1/
53616             q
53617           }
53618           /^X\/\(\/\/\)$/{
53619             s//\1/
53620             q
53621           }
53622           /^X\/\(\/\).*/{
53623             s//\1/
53624             q
53625           }
53626           s/.*/./; q'`
53627
53628 # CDPATH.
53629 $as_unset CDPATH
53630
53631
53632
53633   as_lineno_1=$LINENO
53634   as_lineno_2=$LINENO
53635   test "x$as_lineno_1" != "x$as_lineno_2" &&
53636   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53637
53638   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53639   # uniformly replaced by the line number.  The first 'sed' inserts a
53640   # line-number line after each line using $LINENO; the second 'sed'
53641   # does the real work.  The second script uses 'N' to pair each
53642   # line-number line with the line containing $LINENO, and appends
53643   # trailing '-' during substitution so that $LINENO is not a special
53644   # case at line end.
53645   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53646   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53647   # E. McMahon (1931-1989) for sed's syntax.  :-)
53648   sed -n '
53649     p
53650     /[$]LINENO/=
53651   ' <$as_myself |
53652     sed '
53653       s/[$]LINENO.*/&-/
53654       t lineno
53655       b
53656       :lineno
53657       N
53658       :loop
53659       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53660       t loop
53661       s/-\n.*//
53662     ' >$as_me.lineno &&
53663   chmod +x "$as_me.lineno" ||
53664     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53665    { (exit 1); exit 1; }; }
53666
53667   # Don't try to exec as it changes $[0], causing all sort of problems
53668   # (the dirname of $[0] is not the place where we might find the
53669   # original and so on.  Autoconf is especially sensitive to this).
53670   . "./$as_me.lineno"
53671   # Exit status is that of the last command.
53672   exit
53673 }
53674
53675
53676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53677   as_dirname=dirname
53678 else
53679   as_dirname=false
53680 fi
53681
53682 ECHO_C= ECHO_N= ECHO_T=
53683 case `echo -n x` in
53684 -n*)
53685   case `echo 'x\c'` in
53686   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53687   *)   ECHO_C='\c';;
53688   esac;;
53689 *)
53690   ECHO_N='-n';;
53691 esac
53692
53693 if expr a : '\(a\)' >/dev/null 2>&1 &&
53694    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53695   as_expr=expr
53696 else
53697   as_expr=false
53698 fi
53699
53700 rm -f conf$$ conf$$.exe conf$$.file
53701 if test -d conf$$.dir; then
53702   rm -f conf$$.dir/conf$$.file
53703 else
53704   rm -f conf$$.dir
53705   mkdir conf$$.dir
53706 fi
53707 echo >conf$$.file
53708 if ln -s conf$$.file conf$$ 2>/dev/null; then
53709   as_ln_s='ln -s'
53710   # ... but there are two gotchas:
53711   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53712   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53713   # In both cases, we have to default to `cp -p'.
53714   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53715     as_ln_s='cp -p'
53716 elif ln conf$$.file conf$$ 2>/dev/null; then
53717   as_ln_s=ln
53718 else
53719   as_ln_s='cp -p'
53720 fi
53721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53722 rmdir conf$$.dir 2>/dev/null
53723
53724 if mkdir -p . 2>/dev/null; then
53725   as_mkdir_p=:
53726 else
53727   test -d ./-p && rmdir ./-p
53728   as_mkdir_p=false
53729 fi
53730
53731 if test -x / >/dev/null 2>&1; then
53732   as_test_x='test -x'
53733 else
53734   if ls -dL / >/dev/null 2>&1; then
53735     as_ls_L_option=L
53736   else
53737     as_ls_L_option=
53738   fi
53739   as_test_x='
53740     eval sh -c '\''
53741       if test -d "$1"; then
53742         test -d "$1/.";
53743       else
53744         case $1 in
53745         -*)set "./$1";;
53746         esac;
53747         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53748         ???[sx]*):;;*)false;;esac;fi
53749     '\'' sh
53750   '
53751 fi
53752 as_executable_p=$as_test_x
53753
53754 # Sed expression to map a string onto a valid CPP name.
53755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53756
53757 # Sed expression to map a string onto a valid variable name.
53758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53759
53760
53761 exec 6>&1
53762
53763 # Save the log message, to keep $[0] and so on meaningful, and to
53764 # report actual input values of CONFIG_FILES etc. instead of their
53765 # values after options handling.
53766 ac_log="
53767 This file was extended by wxWidgets $as_me 2.9.0, which was
53768 generated by GNU Autoconf 2.61.  Invocation command line was
53769
53770   CONFIG_FILES    = $CONFIG_FILES
53771   CONFIG_HEADERS  = $CONFIG_HEADERS
53772   CONFIG_LINKS    = $CONFIG_LINKS
53773   CONFIG_COMMANDS = $CONFIG_COMMANDS
53774   $ $0 $@
53775
53776 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53777 "
53778
53779 _ACEOF
53780
53781 cat >>$CONFIG_STATUS <<_ACEOF
53782 # Files that config.status was made for.
53783 config_files="$ac_config_files"
53784 config_headers="$ac_config_headers"
53785 config_commands="$ac_config_commands"
53786
53787 _ACEOF
53788
53789 cat >>$CONFIG_STATUS <<\_ACEOF
53790 ac_cs_usage="\
53791 \`$as_me' instantiates files from templates according to the
53792 current configuration.
53793
53794 Usage: $0 [OPTIONS] [FILE]...
53795
53796   -h, --help       print this help, then exit
53797   -V, --version    print version number and configuration settings, then exit
53798   -q, --quiet      do not print progress messages
53799   -d, --debug      don't remove temporary files
53800       --recheck    update $as_me by reconfiguring in the same conditions
53801   --file=FILE[:TEMPLATE]
53802                    instantiate the configuration file FILE
53803   --header=FILE[:TEMPLATE]
53804                    instantiate the configuration header FILE
53805
53806 Configuration files:
53807 $config_files
53808
53809 Configuration headers:
53810 $config_headers
53811
53812 Configuration commands:
53813 $config_commands
53814
53815 Report bugs to <bug-autoconf@gnu.org>."
53816
53817 _ACEOF
53818 cat >>$CONFIG_STATUS <<_ACEOF
53819 ac_cs_version="\\
53820 wxWidgets config.status 2.9.0
53821 configured by $0, generated by GNU Autoconf 2.61,
53822   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53823
53824 Copyright (C) 2006 Free Software Foundation, Inc.
53825 This config.status script is free software; the Free Software Foundation
53826 gives unlimited permission to copy, distribute and modify it."
53827
53828 ac_pwd='$ac_pwd'
53829 srcdir='$srcdir'
53830 INSTALL='$INSTALL'
53831 _ACEOF
53832
53833 cat >>$CONFIG_STATUS <<\_ACEOF
53834 # If no file are specified by the user, then we need to provide default
53835 # value.  By we need to know if files were specified by the user.
53836 ac_need_defaults=:
53837 while test $# != 0
53838 do
53839   case $1 in
53840   --*=*)
53841     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53842     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53843     ac_shift=:
53844     ;;
53845   *)
53846     ac_option=$1
53847     ac_optarg=$2
53848     ac_shift=shift
53849     ;;
53850   esac
53851
53852   case $ac_option in
53853   # Handling of the options.
53854   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53855     ac_cs_recheck=: ;;
53856   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53857     echo "$ac_cs_version"; exit ;;
53858   --debug | --debu | --deb | --de | --d | -d )
53859     debug=: ;;
53860   --file | --fil | --fi | --f )
53861     $ac_shift
53862     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53863     ac_need_defaults=false;;
53864   --header | --heade | --head | --hea )
53865     $ac_shift
53866     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53867     ac_need_defaults=false;;
53868   --he | --h)
53869     # Conflict between --help and --header
53870     { echo "$as_me: error: ambiguous option: $1
53871 Try \`$0 --help' for more information." >&2
53872    { (exit 1); exit 1; }; };;
53873   --help | --hel | -h )
53874     echo "$ac_cs_usage"; exit ;;
53875   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53876   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53877     ac_cs_silent=: ;;
53878
53879   # This is an error.
53880   -*) { echo "$as_me: error: unrecognized option: $1
53881 Try \`$0 --help' for more information." >&2
53882    { (exit 1); exit 1; }; } ;;
53883
53884   *) ac_config_targets="$ac_config_targets $1"
53885      ac_need_defaults=false ;;
53886
53887   esac
53888   shift
53889 done
53890
53891 ac_configure_extra_args=
53892
53893 if $ac_cs_silent; then
53894   exec 6>/dev/null
53895   ac_configure_extra_args="$ac_configure_extra_args --silent"
53896 fi
53897
53898 _ACEOF
53899 cat >>$CONFIG_STATUS <<_ACEOF
53900 if \$ac_cs_recheck; then
53901   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53902   CONFIG_SHELL=$SHELL
53903   export CONFIG_SHELL
53904   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53905 fi
53906
53907 _ACEOF
53908 cat >>$CONFIG_STATUS <<\_ACEOF
53909 exec 5>>config.log
53910 {
53911   echo
53912   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53913 ## Running $as_me. ##
53914 _ASBOX
53915   echo "$ac_log"
53916 } >&5
53917
53918 _ACEOF
53919 cat >>$CONFIG_STATUS <<_ACEOF
53920 #
53921 # INIT-COMMANDS
53922 #
53923
53924             CPP="$CPP"
53925             infile="$srcdir/include/wx/msw/genrcdefs.h"
53926             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53927
53928
53929  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53930  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53931  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53932                      LN_S="${LN_S}"
53933
53934
53935 _ACEOF
53936
53937 cat >>$CONFIG_STATUS <<\_ACEOF
53938
53939 # Handling of arguments.
53940 for ac_config_target in $ac_config_targets
53941 do
53942   case $ac_config_target in
53943     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53944     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53945     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53946     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53947     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53948     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53949     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53950     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53951
53952   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53953 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53954    { (exit 1); exit 1; }; };;
53955   esac
53956 done
53957
53958
53959 # If the user did not use the arguments to specify the items to instantiate,
53960 # then the envvar interface is used.  Set only those that are not.
53961 # We use the long form for the default assignment because of an extremely
53962 # bizarre bug on SunOS 4.1.3.
53963 if $ac_need_defaults; then
53964   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53965   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53966   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53967 fi
53968
53969 # Have a temporary directory for convenience.  Make it in the build tree
53970 # simply because there is no reason against having it here, and in addition,
53971 # creating and moving files from /tmp can sometimes cause problems.
53972 # Hook for its removal unless debugging.
53973 # Note that there is a small window in which the directory will not be cleaned:
53974 # after its creation but before its name has been assigned to `$tmp'.
53975 $debug ||
53976 {
53977   tmp=
53978   trap 'exit_status=$?
53979   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53980 ' 0
53981   trap '{ (exit 1); exit 1; }' 1 2 13 15
53982 }
53983 # Create a (secure) tmp directory for tmp files.
53984
53985 {
53986   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53987   test -n "$tmp" && test -d "$tmp"
53988 }  ||
53989 {
53990   tmp=./conf$$-$RANDOM
53991   (umask 077 && mkdir "$tmp")
53992 } ||
53993 {
53994    echo "$me: cannot create a temporary directory in ." >&2
53995    { (exit 1); exit 1; }
53996 }
53997
53998 #
53999 # Set up the sed scripts for CONFIG_FILES section.
54000 #
54001
54002 # No need to generate the scripts if there are no CONFIG_FILES.
54003 # This happens for instance when ./config.status config.h
54004 if test -n "$CONFIG_FILES"; then
54005
54006 _ACEOF
54007
54008
54009
54010 ac_delim='%!_!# '
54011 for ac_last_try in false false false false false :; do
54012   cat >conf$$subs.sed <<_ACEOF
54013 SHELL!$SHELL$ac_delim
54014 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54015 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54016 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54017 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54018 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54019 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54020 exec_prefix!$exec_prefix$ac_delim
54021 prefix!$prefix$ac_delim
54022 program_transform_name!$program_transform_name$ac_delim
54023 bindir!$bindir$ac_delim
54024 sbindir!$sbindir$ac_delim
54025 libexecdir!$libexecdir$ac_delim
54026 datarootdir!$datarootdir$ac_delim
54027 datadir!$datadir$ac_delim
54028 sysconfdir!$sysconfdir$ac_delim
54029 sharedstatedir!$sharedstatedir$ac_delim
54030 localstatedir!$localstatedir$ac_delim
54031 includedir!$includedir$ac_delim
54032 oldincludedir!$oldincludedir$ac_delim
54033 docdir!$docdir$ac_delim
54034 infodir!$infodir$ac_delim
54035 htmldir!$htmldir$ac_delim
54036 dvidir!$dvidir$ac_delim
54037 pdfdir!$pdfdir$ac_delim
54038 psdir!$psdir$ac_delim
54039 libdir!$libdir$ac_delim
54040 localedir!$localedir$ac_delim
54041 mandir!$mandir$ac_delim
54042 DEFS!$DEFS$ac_delim
54043 ECHO_C!$ECHO_C$ac_delim
54044 ECHO_N!$ECHO_N$ac_delim
54045 ECHO_T!$ECHO_T$ac_delim
54046 LIBS!$LIBS$ac_delim
54047 build_alias!$build_alias$ac_delim
54048 host_alias!$host_alias$ac_delim
54049 target_alias!$target_alias$ac_delim
54050 build!$build$ac_delim
54051 build_cpu!$build_cpu$ac_delim
54052 build_vendor!$build_vendor$ac_delim
54053 build_os!$build_os$ac_delim
54054 host!$host$ac_delim
54055 host_cpu!$host_cpu$ac_delim
54056 host_vendor!$host_vendor$ac_delim
54057 host_os!$host_os$ac_delim
54058 target!$target$ac_delim
54059 target_cpu!$target_cpu$ac_delim
54060 target_vendor!$target_vendor$ac_delim
54061 target_os!$target_os$ac_delim
54062 wx_top_builddir!$wx_top_builddir$ac_delim
54063 CC!$CC$ac_delim
54064 CFLAGS!$CFLAGS$ac_delim
54065 LDFLAGS!$LDFLAGS$ac_delim
54066 CPPFLAGS!$CPPFLAGS$ac_delim
54067 ac_ct_CC!$ac_ct_CC$ac_delim
54068 EXEEXT!$EXEEXT$ac_delim
54069 OBJEXT!$OBJEXT$ac_delim
54070 CPP!$CPP$ac_delim
54071 GREP!$GREP$ac_delim
54072 EGREP!$EGREP$ac_delim
54073 CXX!$CXX$ac_delim
54074 CXXFLAGS!$CXXFLAGS$ac_delim
54075 ac_ct_CXX!$ac_ct_CXX$ac_delim
54076 RANLIB!$RANLIB$ac_delim
54077 AR!$AR$ac_delim
54078 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54079 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54080 INSTALL_DATA!$INSTALL_DATA$ac_delim
54081 STRIP!$STRIP$ac_delim
54082 WINDRES!$WINDRES$ac_delim
54083 DLLTOOL!$DLLTOOL$ac_delim
54084 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54085 LN_S!$LN_S$ac_delim
54086 subdirs!$subdirs$ac_delim
54087 PKG_CONFIG!$PKG_CONFIG$ac_delim
54088 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54089 GTK_LIBS!$GTK_LIBS$ac_delim
54090 GTK_CONFIG!$GTK_CONFIG$ac_delim
54091 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54092 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54093 XMKMF!$XMKMF$ac_delim
54094 X_CFLAGS!$X_CFLAGS$ac_delim
54095 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54096 X_LIBS!$X_LIBS$ac_delim
54097 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54098 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54099 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54100 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54101 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54102 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54103 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54104 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54105 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54106 REZ!$REZ$ac_delim
54107 DEREZ!$DEREZ$ac_delim
54108 SETFILE!$SETFILE$ac_delim
54109 LIBICONV!$LIBICONV$ac_delim
54110 _ACEOF
54111
54112   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54113     break
54114   elif $ac_last_try; then
54115     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54116 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54117    { (exit 1); exit 1; }; }
54118   else
54119     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54120   fi
54121 done
54122
54123 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54124 if test -n "$ac_eof"; then
54125   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54126   ac_eof=`expr $ac_eof + 1`
54127 fi
54128
54129 cat >>$CONFIG_STATUS <<_ACEOF
54130 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54132 _ACEOF
54133 sed '
54134 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54135 s/^/s,@/; s/!/@,|#_!!_#|/
54136 :n
54137 t n
54138 s/'"$ac_delim"'$/,g/; t
54139 s/$/\\/; p
54140 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54141 ' >>$CONFIG_STATUS <conf$$subs.sed
54142 rm -f conf$$subs.sed
54143 cat >>$CONFIG_STATUS <<_ACEOF
54144 CEOF$ac_eof
54145 _ACEOF
54146
54147
54148 ac_delim='%!_!# '
54149 for ac_last_try in false false false false false :; do
54150   cat >conf$$subs.sed <<_ACEOF
54151 SDL_CONFIG!$SDL_CONFIG$ac_delim
54152 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54153 SDL_LIBS!$SDL_LIBS$ac_delim
54154 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54155 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54156 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54157 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54158 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54159 HILDON_LIBS!$HILDON_LIBS$ac_delim
54160 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54161 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54162 GST_CFLAGS!$GST_CFLAGS$ac_delim
54163 GST_LIBS!$GST_LIBS$ac_delim
54164 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54165 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54166 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54167 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54168 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54169 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54170 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54171 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
54172 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54173 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54174 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54175 VENDOR!$VENDOR$ac_delim
54176 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54177 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54178 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54179 WXUNIV!$WXUNIV$ac_delim
54180 MONOLITHIC!$MONOLITHIC$ac_delim
54181 USE_PLUGINS!$USE_PLUGINS$ac_delim
54182 CXXWARNINGS!$CXXWARNINGS$ac_delim
54183 EXTRALIBS!$EXTRALIBS$ac_delim
54184 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54185 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54186 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
54187 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54188 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54189 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54190 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54191 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54192 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54193 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54194 UNICODE!$UNICODE$ac_delim
54195 BUILD!$BUILD$ac_delim
54196 DEBUG_INFO!$DEBUG_INFO$ac_delim
54197 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54198 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54199 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54200 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54201 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
54202 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54203 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54204 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54205 SET_MAKE!$SET_MAKE$ac_delim
54206 MAKE_SET!$MAKE_SET$ac_delim
54207 AROPTIONS!$AROPTIONS$ac_delim
54208 NM!$NM$ac_delim
54209 INSTALL_DIR!$INSTALL_DIR$ac_delim
54210 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54211 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54212 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54213 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54214 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54215 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54216 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54217 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54218 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54219 SO_SUFFIX!$SO_SUFFIX$ac_delim
54220 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54221 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54222 LIBPREFIX!$LIBPREFIX$ac_delim
54223 LIBEXT!$LIBEXT$ac_delim
54224 DLLPREFIX!$DLLPREFIX$ac_delim
54225 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54226 dlldir!$dlldir$ac_delim
54227 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54228 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54229 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54230 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54231 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54232 PIC_FLAG!$PIC_FLAG$ac_delim
54233 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54234 USE_SOVERSION!$USE_SOVERSION$ac_delim
54235 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54236 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54237 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54238 USE_MACVERSION!$USE_MACVERSION$ac_delim
54239 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
54240 SONAME_FLAG!$SONAME_FLAG$ac_delim
54241 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54242 BK_DEPS!$BK_DEPS$ac_delim
54243 GCC_PCH!$GCC_PCH$ac_delim
54244 ICC_PCH!$ICC_PCH$ac_delim
54245 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54246 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54247 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54248 _ACEOF
54249
54250   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54251     break
54252   elif $ac_last_try; then
54253     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54254 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54255    { (exit 1); exit 1; }; }
54256   else
54257     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54258   fi
54259 done
54260
54261 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54262 if test -n "$ac_eof"; then
54263   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54264   ac_eof=`expr $ac_eof + 1`
54265 fi
54266
54267 cat >>$CONFIG_STATUS <<_ACEOF
54268 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54270 _ACEOF
54271 sed '
54272 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54273 s/^/s,@/; s/!/@,|#_!!_#|/
54274 :n
54275 t n
54276 s/'"$ac_delim"'$/,g/; t
54277 s/$/\\/; p
54278 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54279 ' >>$CONFIG_STATUS <conf$$subs.sed
54280 rm -f conf$$subs.sed
54281 cat >>$CONFIG_STATUS <<_ACEOF
54282 CEOF$ac_eof
54283 _ACEOF
54284
54285
54286 ac_delim='%!_!# '
54287 for ac_last_try in false false false false false :; do
54288   cat >conf$$subs.sed <<_ACEOF
54289 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54290 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54291 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54292 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54293 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54294 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54295 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54296 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54297 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54298 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54299 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54300 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54301 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54302 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54303 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54304 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54305 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54306 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54307 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54308 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54309 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
54310 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54311 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
54312 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54313 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54314 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54315 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54316 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54317 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54318 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54319 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54320 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
54321 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54322 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
54323 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54324 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54325 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54326 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54327 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54328 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54329 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
54330 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54331 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54332 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
54333 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54334 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54335 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54336 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54337 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54338 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54339 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54340 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54341 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54342 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54343 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54344 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54345 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
54346 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
54347 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
54348 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
54349 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
54350 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
54351 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
54352 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54353 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54354 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54355 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54356 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54357 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54358 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54359 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54360 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54361 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54362 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54363 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54364 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54365 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54366 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54367 COND_SHARED_0!$COND_SHARED_0$ac_delim
54368 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54369 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54370 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54371 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54372 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54373 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54374 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54375 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54376 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
54377 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
54378 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
54379 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
54380 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
54381 COND_SHARED_1!$COND_SHARED_1$ac_delim
54382 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54383 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
54384 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54385 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54386 _ACEOF
54387
54388   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54389     break
54390   elif $ac_last_try; then
54391     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54392 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54393    { (exit 1); exit 1; }; }
54394   else
54395     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54396   fi
54397 done
54398
54399 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54400 if test -n "$ac_eof"; then
54401   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54402   ac_eof=`expr $ac_eof + 1`
54403 fi
54404
54405 cat >>$CONFIG_STATUS <<_ACEOF
54406 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54408 _ACEOF
54409 sed '
54410 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54411 s/^/s,@/; s/!/@,|#_!!_#|/
54412 :n
54413 t n
54414 s/'"$ac_delim"'$/,g/; t
54415 s/$/\\/; p
54416 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54417 ' >>$CONFIG_STATUS <conf$$subs.sed
54418 rm -f conf$$subs.sed
54419 cat >>$CONFIG_STATUS <<_ACEOF
54420 CEOF$ac_eof
54421 _ACEOF
54422
54423
54424 ac_delim='%!_!# '
54425 for ac_last_try in false false false false false :; do
54426   cat >conf$$subs.sed <<_ACEOF
54427 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54428 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54429 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54430 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54431 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54432 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54433 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54434 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54435 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54436 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54437 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54438 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54439 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54440 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
54441 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
54442 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54443 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54444 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54445 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54446 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54447 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54448 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54449 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54450 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54451 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54452 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54453 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54454 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54455 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54456 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54457 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54458 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54459 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54460 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54461 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54462 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54463 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54464 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54465 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54466 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54467 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54468 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54469 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54470 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54471 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
54472 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54473 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54474 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54475 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54476 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54477 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
54478 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54479 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54480 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54481 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54482 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54483 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54484 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54485 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54486 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54487 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54488 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54489 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54490 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54491 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54492 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54493 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54494 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54495 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54496 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54497 SHARED!$SHARED$ac_delim
54498 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54499 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54500 USE_GUI!$USE_GUI$ac_delim
54501 AFMINSTALL!$AFMINSTALL$ac_delim
54502 WIN32INSTALL!$WIN32INSTALL$ac_delim
54503 TOOLKIT!$TOOLKIT$ac_delim
54504 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54505 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54506 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54507 cross_compiling!$cross_compiling$ac_delim
54508 WIDGET_SET!$WIDGET_SET$ac_delim
54509 WX_RELEASE!$WX_RELEASE$ac_delim
54510 WX_VERSION!$WX_VERSION$ac_delim
54511 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54512 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54513 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54514 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54515 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54516 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54517 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54518 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54519 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54520 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54521 EXE_LINKER!$EXE_LINKER$ac_delim
54522 GUIDIST!$GUIDIST$ac_delim
54523 DISTDIR!$DISTDIR$ac_delim
54524 _ACEOF
54525
54526   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54527     break
54528   elif $ac_last_try; then
54529     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54530 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54531    { (exit 1); exit 1; }; }
54532   else
54533     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54534   fi
54535 done
54536
54537 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54538 if test -n "$ac_eof"; then
54539   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54540   ac_eof=`expr $ac_eof + 1`
54541 fi
54542
54543 cat >>$CONFIG_STATUS <<_ACEOF
54544 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54546 _ACEOF
54547 sed '
54548 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54549 s/^/s,@/; s/!/@,|#_!!_#|/
54550 :n
54551 t n
54552 s/'"$ac_delim"'$/,g/; t
54553 s/$/\\/; p
54554 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54555 ' >>$CONFIG_STATUS <conf$$subs.sed
54556 rm -f conf$$subs.sed
54557 cat >>$CONFIG_STATUS <<_ACEOF
54558 CEOF$ac_eof
54559 _ACEOF
54560
54561
54562 ac_delim='%!_!# '
54563 for ac_last_try in false false false false false :; do
54564   cat >conf$$subs.sed <<_ACEOF
54565 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54566 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54567 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54568 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54569 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54570 RESCOMP!$RESCOMP$ac_delim
54571 RESFLAGS!$RESFLAGS$ac_delim
54572 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54573 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54574 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54575 LIBWXMACRES!$LIBWXMACRES$ac_delim
54576 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54577 MACSETFILE!$MACSETFILE$ac_delim
54578 GCC!$GCC$ac_delim
54579 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54580 LIBOBJS!$LIBOBJS$ac_delim
54581 LTLIBOBJS!$LTLIBOBJS$ac_delim
54582 _ACEOF
54583
54584   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
54585     break
54586   elif $ac_last_try; then
54587     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54588 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54589    { (exit 1); exit 1; }; }
54590   else
54591     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54592   fi
54593 done
54594
54595 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54596 if test -n "$ac_eof"; then
54597   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54598   ac_eof=`expr $ac_eof + 1`
54599 fi
54600
54601 cat >>$CONFIG_STATUS <<_ACEOF
54602 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54604 _ACEOF
54605 sed '
54606 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54607 s/^/s,@/; s/!/@,|#_!!_#|/
54608 :n
54609 t n
54610 s/'"$ac_delim"'$/,g/; t
54611 s/$/\\/; p
54612 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54613 ' >>$CONFIG_STATUS <conf$$subs.sed
54614 rm -f conf$$subs.sed
54615 cat >>$CONFIG_STATUS <<_ACEOF
54616 :end
54617 s/|#_!!_#|//g
54618 CEOF$ac_eof
54619 _ACEOF
54620
54621
54622 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54623 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54624 # trailing colons and then remove the whole line if VPATH becomes empty
54625 # (actually we leave an empty line to preserve line numbers).
54626 if test "x$srcdir" = x.; then
54627   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54628 s/:*\$(srcdir):*/:/
54629 s/:*\${srcdir}:*/:/
54630 s/:*@srcdir@:*/:/
54631 s/^\([^=]*=[     ]*\):*/\1/
54632 s/:*$//
54633 s/^[^=]*=[       ]*$//
54634 }'
54635 fi
54636
54637 cat >>$CONFIG_STATUS <<\_ACEOF
54638 fi # test -n "$CONFIG_FILES"
54639
54640
54641 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54642 do
54643   case $ac_tag in
54644   :[FHLC]) ac_mode=$ac_tag; continue;;
54645   esac
54646   case $ac_mode$ac_tag in
54647   :[FHL]*:*);;
54648   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54649 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54650    { (exit 1); exit 1; }; };;
54651   :[FH]-) ac_tag=-:-;;
54652   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54653   esac
54654   ac_save_IFS=$IFS
54655   IFS=:
54656   set x $ac_tag
54657   IFS=$ac_save_IFS
54658   shift
54659   ac_file=$1
54660   shift
54661
54662   case $ac_mode in
54663   :L) ac_source=$1;;
54664   :[FH])
54665     ac_file_inputs=
54666     for ac_f
54667     do
54668       case $ac_f in
54669       -) ac_f="$tmp/stdin";;
54670       *) # Look for the file first in the build tree, then in the source tree
54671          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54672          # because $ac_f cannot contain `:'.
54673          test -f "$ac_f" ||
54674            case $ac_f in
54675            [\\/$]*) false;;
54676            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54677            esac ||
54678            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54679 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54680    { (exit 1); exit 1; }; };;
54681       esac
54682       ac_file_inputs="$ac_file_inputs $ac_f"
54683     done
54684
54685     # Let's still pretend it is `configure' which instantiates (i.e., don't
54686     # use $as_me), people would be surprised to read:
54687     #    /* config.h.  Generated by config.status.  */
54688     configure_input="Generated from "`IFS=:
54689           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54690     if test x"$ac_file" != x-; then
54691       configure_input="$ac_file.  $configure_input"
54692       { echo "$as_me:$LINENO: creating $ac_file" >&5
54693 echo "$as_me: creating $ac_file" >&6;}
54694     fi
54695
54696     case $ac_tag in
54697     *:-:* | *:-) cat >"$tmp/stdin";;
54698     esac
54699     ;;
54700   esac
54701
54702   ac_dir=`$as_dirname -- "$ac_file" ||
54703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54704          X"$ac_file" : 'X\(//\)[^/]' \| \
54705          X"$ac_file" : 'X\(//\)$' \| \
54706          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54707 echo X"$ac_file" |
54708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54709             s//\1/
54710             q
54711           }
54712           /^X\(\/\/\)[^/].*/{
54713             s//\1/
54714             q
54715           }
54716           /^X\(\/\/\)$/{
54717             s//\1/
54718             q
54719           }
54720           /^X\(\/\).*/{
54721             s//\1/
54722             q
54723           }
54724           s/.*/./; q'`
54725   { as_dir="$ac_dir"
54726   case $as_dir in #(
54727   -*) as_dir=./$as_dir;;
54728   esac
54729   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54730     as_dirs=
54731     while :; do
54732       case $as_dir in #(
54733       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54734       *) as_qdir=$as_dir;;
54735       esac
54736       as_dirs="'$as_qdir' $as_dirs"
54737       as_dir=`$as_dirname -- "$as_dir" ||
54738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54739          X"$as_dir" : 'X\(//\)[^/]' \| \
54740          X"$as_dir" : 'X\(//\)$' \| \
54741          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54742 echo X"$as_dir" |
54743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54744             s//\1/
54745             q
54746           }
54747           /^X\(\/\/\)[^/].*/{
54748             s//\1/
54749             q
54750           }
54751           /^X\(\/\/\)$/{
54752             s//\1/
54753             q
54754           }
54755           /^X\(\/\).*/{
54756             s//\1/
54757             q
54758           }
54759           s/.*/./; q'`
54760       test -d "$as_dir" && break
54761     done
54762     test -z "$as_dirs" || eval "mkdir $as_dirs"
54763   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54764 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54765    { (exit 1); exit 1; }; }; }
54766   ac_builddir=.
54767
54768 case "$ac_dir" in
54769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54770 *)
54771   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54772   # A ".." for each directory in $ac_dir_suffix.
54773   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54774   case $ac_top_builddir_sub in
54775   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54776   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54777   esac ;;
54778 esac
54779 ac_abs_top_builddir=$ac_pwd
54780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54781 # for backward compatibility:
54782 ac_top_builddir=$ac_top_build_prefix
54783
54784 case $srcdir in
54785   .)  # We are building in place.
54786     ac_srcdir=.
54787     ac_top_srcdir=$ac_top_builddir_sub
54788     ac_abs_top_srcdir=$ac_pwd ;;
54789   [\\/]* | ?:[\\/]* )  # Absolute name.
54790     ac_srcdir=$srcdir$ac_dir_suffix;
54791     ac_top_srcdir=$srcdir
54792     ac_abs_top_srcdir=$srcdir ;;
54793   *) # Relative name.
54794     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54795     ac_top_srcdir=$ac_top_build_prefix$srcdir
54796     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54797 esac
54798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54799
54800
54801   case $ac_mode in
54802   :F)
54803   #
54804   # CONFIG_FILE
54805   #
54806
54807   case $INSTALL in
54808   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54809   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54810   esac
54811 _ACEOF
54812
54813 cat >>$CONFIG_STATUS <<\_ACEOF
54814 # If the template does not know about datarootdir, expand it.
54815 # FIXME: This hack should be removed a few years after 2.60.
54816 ac_datarootdir_hack=; ac_datarootdir_seen=
54817
54818 case `sed -n '/datarootdir/ {
54819   p
54820   q
54821 }
54822 /@datadir@/p
54823 /@docdir@/p
54824 /@infodir@/p
54825 /@localedir@/p
54826 /@mandir@/p
54827 ' $ac_file_inputs` in
54828 *datarootdir*) ac_datarootdir_seen=yes;;
54829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54830   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54831 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54832 _ACEOF
54833 cat >>$CONFIG_STATUS <<_ACEOF
54834   ac_datarootdir_hack='
54835   s&@datadir@&$datadir&g
54836   s&@docdir@&$docdir&g
54837   s&@infodir@&$infodir&g
54838   s&@localedir@&$localedir&g
54839   s&@mandir@&$mandir&g
54840     s&\\\${datarootdir}&$datarootdir&g' ;;
54841 esac
54842 _ACEOF
54843
54844 # Neutralize VPATH when `$srcdir' = `.'.
54845 # Shell code in configure.ac might set extrasub.
54846 # FIXME: do we really want to maintain this feature?
54847 cat >>$CONFIG_STATUS <<_ACEOF
54848   sed "$ac_vpsub
54849 $extrasub
54850 _ACEOF
54851 cat >>$CONFIG_STATUS <<\_ACEOF
54852 :t
54853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54854 s&@configure_input@&$configure_input&;t t
54855 s&@top_builddir@&$ac_top_builddir_sub&;t t
54856 s&@srcdir@&$ac_srcdir&;t t
54857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54858 s&@top_srcdir@&$ac_top_srcdir&;t t
54859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54860 s&@builddir@&$ac_builddir&;t t
54861 s&@abs_builddir@&$ac_abs_builddir&;t t
54862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54863 s&@INSTALL@&$ac_INSTALL&;t t
54864 $ac_datarootdir_hack
54865 " $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
54866
54867 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54868   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54869   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54870   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54871 which seems to be undefined.  Please make sure it is defined." >&5
54872 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54873 which seems to be undefined.  Please make sure it is defined." >&2;}
54874
54875   rm -f "$tmp/stdin"
54876   case $ac_file in
54877   -) cat "$tmp/out"; rm -f "$tmp/out";;
54878   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54879   esac
54880  ;;
54881   :H)
54882   #
54883   # CONFIG_HEADER
54884   #
54885 _ACEOF
54886
54887 # Transform confdefs.h into a sed script `conftest.defines', that
54888 # substitutes the proper values into config.h.in to produce config.h.
54889 rm -f conftest.defines conftest.tail
54890 # First, append a space to every undef/define line, to ease matching.
54891 echo 's/$/ /' >conftest.defines
54892 # Then, protect against being on the right side of a sed subst, or in
54893 # an unquoted here document, in config.status.  If some macros were
54894 # called several times there might be several #defines for the same
54895 # symbol, which is useless.  But do not sort them, since the last
54896 # AC_DEFINE must be honored.
54897 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54898 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54899 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54900 # PARAMS is the parameter list in the macro definition--in most cases, it's
54901 # just an empty string.
54902 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54903 ac_dB='\\)[      (].*,\\1define\\2'
54904 ac_dC=' '
54905 ac_dD=' ,'
54906
54907 uniq confdefs.h |
54908   sed -n '
54909         t rset
54910         :rset
54911         s/^[     ]*#[    ]*define[       ][      ]*//
54912         t ok
54913         d
54914         :ok
54915         s/[\\&,]/\\&/g
54916         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54917         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54918   ' >>conftest.defines
54919
54920 # Remove the space that was appended to ease matching.
54921 # Then replace #undef with comments.  This is necessary, for
54922 # example, in the case of _POSIX_SOURCE, which is predefined and required
54923 # on some systems where configure will not decide to define it.
54924 # (The regexp can be short, since the line contains either #define or #undef.)
54925 echo 's/ $//
54926 s,^[     #]*u.*,/* & */,' >>conftest.defines
54927
54928 # Break up conftest.defines:
54929 ac_max_sed_lines=50
54930
54931 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54932 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54933 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54934 # et cetera.
54935 ac_in='$ac_file_inputs'
54936 ac_out='"$tmp/out1"'
54937 ac_nxt='"$tmp/out2"'
54938
54939 while :
54940 do
54941   # Write a here document:
54942     cat >>$CONFIG_STATUS <<_ACEOF
54943     # First, check the format of the line:
54944     cat >"\$tmp/defines.sed" <<\\CEOF
54945 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54946 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54947 b
54948 :def
54949 _ACEOF
54950   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54951   echo 'CEOF
54952     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54953   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54954   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54955   grep . conftest.tail >/dev/null || break
54956   rm -f conftest.defines
54957   mv conftest.tail conftest.defines
54958 done
54959 rm -f conftest.defines conftest.tail
54960
54961 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54962 cat >>$CONFIG_STATUS <<\_ACEOF
54963   if test x"$ac_file" != x-; then
54964     echo "/* $configure_input  */" >"$tmp/config.h"
54965     cat "$ac_result" >>"$tmp/config.h"
54966     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54967       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54968 echo "$as_me: $ac_file is unchanged" >&6;}
54969     else
54970       rm -f $ac_file
54971       mv "$tmp/config.h" $ac_file
54972     fi
54973   else
54974     echo "/* $configure_input  */"
54975     cat "$ac_result"
54976   fi
54977   rm -f "$tmp/out12"
54978  ;;
54979
54980   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54981 echo "$as_me: executing $ac_file commands" >&6;}
54982  ;;
54983   esac
54984
54985
54986   case $ac_file$ac_mode in
54987     "rcdefs.h":C)
54988             mkdir -p $outdir &&
54989             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54990          ;;
54991     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54992     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54993     "wx-config":C)  rm -f wx-config
54994                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54995                     ;;
54996
54997   esac
54998 done # for ac_tag
54999
55000
55001 { (exit 0); exit 0; }
55002 _ACEOF
55003 chmod +x $CONFIG_STATUS
55004 ac_clean_files=$ac_clean_files_save
55005
55006
55007 # configure is writing to config.log, and then calls config.status.
55008 # config.status does its own redirection, appending to config.log.
55009 # Unfortunately, on DOS this fails, as config.log is still kept open
55010 # by configure, so config.status won't be able to write to it; its
55011 # output is simply discarded.  So we exec the FD to /dev/null,
55012 # effectively closing config.log, so it can be properly (re)opened and
55013 # appended to by config.status.  When coming back to configure, we
55014 # need to make the FD available again.
55015 if test "$no_create" != yes; then
55016   ac_cs_success=:
55017   ac_config_status_args=
55018   test "$silent" = yes &&
55019     ac_config_status_args="$ac_config_status_args --quiet"
55020   exec 5>/dev/null
55021   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55022   exec 5>>config.log
55023   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55024   # would make configure fail if this is the last instruction.
55025   $ac_cs_success || { (exit 1); exit 1; }
55026 fi
55027
55028 #
55029 # CONFIG_SUBDIRS section.
55030 #
55031 if test "$no_recursion" != yes; then
55032
55033   # Remove --cache-file and --srcdir arguments so they do not pile up.
55034   ac_sub_configure_args=
55035   ac_prev=
55036   eval "set x $ac_configure_args"
55037   shift
55038   for ac_arg
55039   do
55040     if test -n "$ac_prev"; then
55041       ac_prev=
55042       continue
55043     fi
55044     case $ac_arg in
55045     -cache-file | --cache-file | --cache-fil | --cache-fi \
55046     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55047       ac_prev=cache_file ;;
55048     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55049     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55050     | --c=*)
55051       ;;
55052     --config-cache | -C)
55053       ;;
55054     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55055       ac_prev=srcdir ;;
55056     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55057       ;;
55058     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55059       ac_prev=prefix ;;
55060     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55061       ;;
55062     *)
55063       case $ac_arg in
55064       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55065       esac
55066       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55067     esac
55068   done
55069
55070   # Always prepend --prefix to ensure using the same prefix
55071   # in subdir configurations.
55072   ac_arg="--prefix=$prefix"
55073   case $ac_arg in
55074   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55075   esac
55076   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55077
55078   # Pass --silent
55079   if test "$silent" = yes; then
55080     ac_sub_configure_args="--silent $ac_sub_configure_args"
55081   fi
55082
55083   ac_popdir=`pwd`
55084   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55085
55086     # Do not complain, so a configure script can configure whichever
55087     # parts of a large source tree are present.
55088     test -d "$srcdir/$ac_dir" || continue
55089
55090     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55091     echo "$as_me:$LINENO: $ac_msg" >&5
55092     echo "$ac_msg" >&6
55093     { as_dir="$ac_dir"
55094   case $as_dir in #(
55095   -*) as_dir=./$as_dir;;
55096   esac
55097   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55098     as_dirs=
55099     while :; do
55100       case $as_dir in #(
55101       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55102       *) as_qdir=$as_dir;;
55103       esac
55104       as_dirs="'$as_qdir' $as_dirs"
55105       as_dir=`$as_dirname -- "$as_dir" ||
55106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55107          X"$as_dir" : 'X\(//\)[^/]' \| \
55108          X"$as_dir" : 'X\(//\)$' \| \
55109          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55110 echo X"$as_dir" |
55111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55112             s//\1/
55113             q
55114           }
55115           /^X\(\/\/\)[^/].*/{
55116             s//\1/
55117             q
55118           }
55119           /^X\(\/\/\)$/{
55120             s//\1/
55121             q
55122           }
55123           /^X\(\/\).*/{
55124             s//\1/
55125             q
55126           }
55127           s/.*/./; q'`
55128       test -d "$as_dir" && break
55129     done
55130     test -z "$as_dirs" || eval "mkdir $as_dirs"
55131   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55132 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55133    { (exit 1); exit 1; }; }; }
55134     ac_builddir=.
55135
55136 case "$ac_dir" in
55137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55138 *)
55139   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55140   # A ".." for each directory in $ac_dir_suffix.
55141   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55142   case $ac_top_builddir_sub in
55143   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55144   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55145   esac ;;
55146 esac
55147 ac_abs_top_builddir=$ac_pwd
55148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55149 # for backward compatibility:
55150 ac_top_builddir=$ac_top_build_prefix
55151
55152 case $srcdir in
55153   .)  # We are building in place.
55154     ac_srcdir=.
55155     ac_top_srcdir=$ac_top_builddir_sub
55156     ac_abs_top_srcdir=$ac_pwd ;;
55157   [\\/]* | ?:[\\/]* )  # Absolute name.
55158     ac_srcdir=$srcdir$ac_dir_suffix;
55159     ac_top_srcdir=$srcdir
55160     ac_abs_top_srcdir=$srcdir ;;
55161   *) # Relative name.
55162     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55163     ac_top_srcdir=$ac_top_build_prefix$srcdir
55164     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55165 esac
55166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55167
55168
55169     cd "$ac_dir"
55170
55171     # Check for guested configure; otherwise get Cygnus style configure.
55172     if test -f "$ac_srcdir/configure.gnu"; then
55173       ac_sub_configure=$ac_srcdir/configure.gnu
55174     elif test -f "$ac_srcdir/configure"; then
55175       ac_sub_configure=$ac_srcdir/configure
55176     elif test -f "$ac_srcdir/configure.in"; then
55177       # This should be Cygnus configure.
55178       ac_sub_configure=$ac_aux_dir/configure
55179     else
55180       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55182       ac_sub_configure=
55183     fi
55184
55185     # The recursion is here.
55186     if test -n "$ac_sub_configure"; then
55187       # Make the cache file name correct relative to the subdirectory.
55188       case $cache_file in
55189       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55190       *) # Relative name.
55191         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55192       esac
55193
55194       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55195 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55196       # The eval makes quoting arguments work.
55197       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55198            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55199         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55200 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55201    { (exit 1); exit 1; }; }
55202     fi
55203
55204     cd "$ac_popdir"
55205   done
55206 fi
55207
55208
55209 echo
55210 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55211 echo ""
55212 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55213 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55214
55215 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
55216 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55217 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
55218 if test "$wxUSE_UNICODE" = "yes"; then
55219     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55220         echo " (using UTF-8)"
55221     else
55222         echo " (using wchar_t)"
55223     fi
55224 else
55225     echo
55226 fi
55227
55228 echo "  What level of wxWidgets compatibility should be enabled?"
55229 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55230 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55231
55232 echo "  Which libraries should wxWidgets use?"
55233 echo "                                       STL                ${wxUSE_STL}"
55234 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55235 echo "                                       png                ${wxUSE_LIBPNG-none}"
55236 echo "                                       regex              ${wxUSE_REGEX}"
55237 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55238 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55239 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55240 fi
55241 echo "                                       zlib               ${wxUSE_ZLIB}"
55242 echo "                                       odbc               ${wxUSE_ODBC}"
55243 echo "                                       expat              ${wxUSE_EXPAT}"
55244 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55245 echo "                                       sdl                ${wxUSE_LIBSDL}"
55246
55247 echo ""
55248