Regenerate configure.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 51582 2008-02-07 20:59:50Z DE .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 AR
683 subdirs
684 PKG_CONFIG
685 GTK_CFLAGS
686 GTK_LIBS
687 GTK_CONFIG
688 DIRECTFB_CFLAGS
689 DIRECTFB_LIBS
690 XMKMF
691 X_CFLAGS
692 X_PRE_LIBS
693 X_LIBS
694 X_EXTRA_LIBS
695 PANGOX_CFLAGS
696 PANGOX_LIBS
697 PANGOFT2_CFLAGS
698 PANGOFT2_LIBS
699 PANGOXFT_CFLAGS
700 PANGOXFT_LIBS
701 CFLAGS_VISIBILITY
702 CXXFLAGS_VISIBILITY
703 LIBICONV
704 SDL_CONFIG
705 SDL_CFLAGS
706 SDL_LIBS
707 GTKPRINT_CFLAGS
708 GTKPRINT_LIBS
709 LIBGNOMEPRINTUI_CFLAGS
710 LIBGNOMEPRINTUI_LIBS
711 GNOMEVFS_CFLAGS
712 GNOMEVFS_LIBS
713 HILDON_CFLAGS
714 HILDON_LIBS
715 CAIRO_CFLAGS
716 CAIRO_LIBS
717 GST_CFLAGS
718 GST_LIBS
719 ALL_WX_LIBS
720 BUILT_WX_LIBS
721 STD_BASE_LIBS
722 STD_GUI_LIBS
723 wxUSE_ZLIB
724 wxUSE_REGEX
725 wxUSE_EXPAT
726 wxUSE_LIBJPEG
727 wxUSE_LIBPNG
728 wxUSE_LIBTIFF
729 VENDOR
730 OFFICIAL_BUILD
731 WX_FLAVOUR
732 WX_LIB_FLAVOUR
733 WXUNIV
734 MONOLITHIC
735 USE_PLUGINS
736 CXXWARNINGS
737 EXTRALIBS
738 EXTRALIBS_XML
739 EXTRALIBS_HTML
740 EXTRALIBS_MEDIA
741 EXTRALIBS_GUI
742 EXTRALIBS_OPENGL
743 EXTRALIBS_SDL
744 EXTRALIBS_STC
745 WITH_PLUGIN_SDL
746 EXTRALIBS_GTKPRINT
747 EXTRALIBS_GNOMEPRINT
748 EXTRALIBS_GNOMEVFS
749 EXTRALIBS_HILDON
750 UNICODE
751 BUILD
752 DEBUG_INFO
753 DEBUG_FLAG
754 TOOLKIT_LOWERCASE
755 TOOLKIT_VERSION
756 SAMPLES_RPATH_FLAG
757 SAMPLES_RPATH_POSTLINK
758 HOST_SUFFIX
759 CPPUNIT_CFLAGS
760 CPPUNIT_LIBS
761 RANLIB
762 INSTALL_PROGRAM
763 INSTALL_SCRIPT
764 INSTALL_DATA
765 LN_S
766 SET_MAKE
767 MAKE_SET
768 AROPTIONS
769 STRIP
770 NM
771 INSTALL_DIR
772 LDFLAGS_GUI
773 IF_GNU_MAKE
774 PLATFORM_UNIX
775 PLATFORM_WIN32
776 PLATFORM_MSDOS
777 PLATFORM_MAC
778 PLATFORM_MACOS
779 PLATFORM_MACOSX
780 PLATFORM_OS2
781 PLATFORM_BEOS
782 SO_SUFFIX
783 SO_SUFFIX_MODULE
784 DLLIMP_SUFFIX
785 LIBPREFIX
786 LIBEXT
787 DLLPREFIX
788 DLLPREFIX_MODULE
789 dlldir
790 AIX_CXX_LD
791 SHARED_LD_CC
792 SHARED_LD_CXX
793 SHARED_LD_MODULE_CC
794 SHARED_LD_MODULE_CXX
795 PIC_FLAG
796 WINDOWS_IMPLIB
797 USE_SOVERSION
798 USE_SOVERLINUX
799 USE_SOVERSOLARIS
800 USE_SOVERCYGWIN
801 USE_MACVERSION
802 USE_SOSYMLINKS
803 SONAME_FLAG
804 DEPS_TRACKING
805 BK_DEPS
806 WINDRES
807 REZ
808 SETFILE
809 GCC_PCH
810 ICC_PCH
811 BK_MAKE_PCH
812 COND_BUILD_DEBUG
813 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
814 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
815 COND_BUILD_DEBUG_UNICODE_0
816 COND_BUILD_DEBUG_UNICODE_1
817 COND_BUILD_RELEASE
818 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
819 COND_BUILD_RELEASE_UNICODE_0
820 COND_BUILD_RELEASE_UNICODE_1
821 COND_DEBUG_FLAG_1
822 COND_DEBUG_INFO_0
823 COND_DEBUG_INFO_1
824 COND_DEPS_TRACKING_0
825 COND_DEPS_TRACKING_1
826 COND_GCC_PCH_1
827 COND_ICC_PCH_1
828 COND_MONOLITHIC_0
829 COND_MONOLITHIC_0_SHARED_0
830 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
836 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
837 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
838 COND_MONOLITHIC_0_SHARED_1
839 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
845 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
846 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
847 COND_MONOLITHIC_0_USE_AUI_1
848 COND_MONOLITHIC_0_USE_GUI_1
849 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
850 COND_MONOLITHIC_0_USE_HTML_1
851 COND_MONOLITHIC_0_USE_MEDIA_1
852 COND_MONOLITHIC_0_USE_QA_1
853 COND_MONOLITHIC_0_USE_RICHTEXT_1
854 COND_MONOLITHIC_0_USE_STC_1
855 COND_MONOLITHIC_0_USE_XRC_1
856 COND_MONOLITHIC_1
857 COND_MONOLITHIC_1_SHARED_0
858 COND_MONOLITHIC_1_SHARED_1
859 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
860 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
861 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
862 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
863 COND_PLATFORM_MACOSX_1
864 COND_PLATFORM_MACOSX_1_TOOLKIT_
865 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
866 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
867 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
868 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
869 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
870 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
871 COND_PLATFORM_MACOSX_1_USE_GUI_1
872 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
873 COND_PLATFORM_MACOS_1
874 COND_PLATFORM_MAC_0
875 COND_PLATFORM_MAC_1
876 COND_PLATFORM_MSDOS_0
877 COND_PLATFORM_MSDOS_1
878 COND_PLATFORM_OS2_1
879 COND_PLATFORM_UNIX_0
880 COND_PLATFORM_UNIX_1
881 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
882 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
883 COND_PLATFORM_UNIX_1_USE_GUI_1
884 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
885 COND_PLATFORM_WIN32_0
886 COND_PLATFORM_WIN32_1
887 COND_SHARED_0
888 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
889 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
890 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
891 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
892 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
893 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
894 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
895 COND_SHARED_0_USE_STC_1
896 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
897 COND_SHARED_0_WXUSE_REGEX_BUILTIN
898 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
899 COND_SHARED_1
900 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
901 COND_TOOLKIT_
902 COND_TOOLKIT_COCOA
903 COND_TOOLKIT_COCOA_USE_GUI_1
904 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
905 COND_TOOLKIT_DFB
906 COND_TOOLKIT_DFB_USE_GUI_1
907 COND_TOOLKIT_GTK
908 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
909 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
910 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
911 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
912 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0
913 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
914 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
915 COND_TOOLKIT_GTK_USE_GUI_1
916 COND_TOOLKIT_MAC
917 COND_TOOLKIT_MAC_USE_GUI_1
918 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
919 COND_TOOLKIT_MGL
920 COND_TOOLKIT_MGL_USE_GUI_1
921 COND_TOOLKIT_MOTIF
922 COND_TOOLKIT_MOTIF_USE_GUI_1
923 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
924 COND_TOOLKIT_MSW
925 COND_TOOLKIT_MSW_USE_GUI_1
926 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
927 COND_TOOLKIT_MSW_WXUNIV_0
928 COND_TOOLKIT_PM
929 COND_TOOLKIT_PM_USE_GUI_1
930 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
931 COND_TOOLKIT_WINCE
932 COND_TOOLKIT_WINCE_USE_GUI_1
933 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_WINCE_WXUNIV_0
935 COND_TOOLKIT_X11
936 COND_TOOLKIT_X11_USE_GUI_1
937 COND_UNICODE_1
938 COND_USE_EXCEPTIONS_0
939 COND_USE_EXCEPTIONS_1
940 COND_USE_GUI_0
941 COND_USE_GUI_1
942 COND_USE_GUI_1_USE_OPENGL_1
943 COND_USE_GUI_1_WXUNIV_0
944 COND_USE_GUI_1_WXUNIV_1
945 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
946 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
947 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
948 COND_USE_OPENGL_1
949 COND_USE_PCH_1
950 COND_USE_PLUGINS_0
951 COND_USE_RTTI_0
952 COND_USE_RTTI_1
953 COND_USE_SOSYMLINKS_1
954 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
955 COND_USE_SOVERLINUX_1
956 COND_USE_SOVERSION_0
957 COND_USE_SOVERSOLARIS_1
958 COND_USE_STC_1
959 COND_USE_THREADS_0
960 COND_USE_THREADS_1
961 COND_USE_XRC_1
962 COND_WINDOWS_IMPLIB_1
963 COND_WITH_PLUGIN_SDL_1
964 COND_WXUNIV_0
965 COND_WXUNIV_1
966 COND_WXUSE_EXPAT_BUILTIN
967 COND_WXUSE_LIBJPEG_BUILTIN
968 COND_WXUSE_LIBPNG_BUILTIN
969 COND_WXUSE_LIBTIFF_BUILTIN
970 COND_WXUSE_REGEX_BUILTIN
971 COND_WXUSE_ZLIB_BUILTIN
972 DEREZ
973 SHARED
974 WX_LIBRARY_BASENAME_NOGUI
975 WX_LIBRARY_BASENAME_GUI
976 USE_GUI
977 AFMINSTALL
978 WIN32INSTALL
979 TOOLKIT
980 TOOLKIT_DIR
981 TOOLCHAIN_NAME
982 TOOLCHAIN_FULLNAME
983 cross_compiling
984 WIDGET_SET
985 WX_RELEASE
986 WX_VERSION
987 WX_SUBVERSION
988 WX_CHARTYPE
989 WX_DEBUGTYPE
990 WXCONFIG_CPPFLAGS
991 WXCONFIG_CFLAGS
992 WXCONFIG_CXXFLAGS
993 WXCONFIG_LIBS
994 WXCONFIG_RPATH
995 WXCONFIG_LDFLAGS_GUI
996 WXCONFIG_RESFLAGS
997 GUIDIST
998 DISTDIR
999 SAMPLES_SUBDIRS
1000 LDFLAGS_GL
1001 OPENGL_LIBS
1002 DMALLOC_LIBS
1003 WX_VERSION_TAG
1004 RESCOMP
1005 RESFLAGS
1006 RESPROGRAMOBJ
1007 WX_RESOURCES_MACOSX_ASCII
1008 WX_RESOURCES_MACOSX_DATA
1009 LIBWXMACRES
1010 POSTLINK_COMMAND
1011 MACSETFILE
1012 GCC
1013 DLLTOOL
1014 CPPUNIT_CONFIG
1015 LIBOBJS
1016 LTLIBOBJS'
1017 ac_subst_files=''
1018       ac_precious_vars='build_alias
1019 host_alias
1020 target_alias
1021 CC
1022 CFLAGS
1023 LDFLAGS
1024 LIBS
1025 CPPFLAGS
1026 CPP
1027 CXX
1028 CXXFLAGS
1029 CCC
1030 PKG_CONFIG
1031 DIRECTFB_CFLAGS
1032 DIRECTFB_LIBS
1033 XMKMF
1034 PANGOX_CFLAGS
1035 PANGOX_LIBS
1036 PANGOFT2_CFLAGS
1037 PANGOFT2_LIBS
1038 PANGOXFT_CFLAGS
1039 PANGOXFT_LIBS
1040 GTKPRINT_CFLAGS
1041 GTKPRINT_LIBS
1042 LIBGNOMEPRINTUI_CFLAGS
1043 LIBGNOMEPRINTUI_LIBS
1044 GNOMEVFS_CFLAGS
1045 GNOMEVFS_LIBS
1046 HILDON_CFLAGS
1047 HILDON_LIBS
1048 CAIRO_CFLAGS
1049 CAIRO_LIBS
1050 GST_CFLAGS
1051 GST_LIBS'
1052 ac_subdirs_all='src/tiff
1053 src/expat'
1054
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 # The variables have the same names as the options, with
1059 # dashes changed to underlines.
1060 cache_file=/dev/null
1061 exec_prefix=NONE
1062 no_create=
1063 no_recursion=
1064 prefix=NONE
1065 program_prefix=NONE
1066 program_suffix=NONE
1067 program_transform_name=s,x,x,
1068 silent=
1069 site=
1070 srcdir=
1071 verbose=
1072 x_includes=NONE
1073 x_libraries=NONE
1074
1075 # Installation directory options.
1076 # These are left unexpanded so users can "make install exec_prefix=/foo"
1077 # and all the variables that are supposed to be based on exec_prefix
1078 # by default will actually change.
1079 # Use braces instead of parens because sh, perl, etc. also accept them.
1080 # (The list follows the same order as the GNU Coding Standards.)
1081 bindir='${exec_prefix}/bin'
1082 sbindir='${exec_prefix}/sbin'
1083 libexecdir='${exec_prefix}/libexec'
1084 datarootdir='${prefix}/share'
1085 datadir='${datarootdir}'
1086 sysconfdir='${prefix}/etc'
1087 sharedstatedir='${prefix}/com'
1088 localstatedir='${prefix}/var'
1089 includedir='${prefix}/include'
1090 oldincludedir='/usr/include'
1091 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1092 infodir='${datarootdir}/info'
1093 htmldir='${docdir}'
1094 dvidir='${docdir}'
1095 pdfdir='${docdir}'
1096 psdir='${docdir}'
1097 libdir='${exec_prefix}/lib'
1098 localedir='${datarootdir}/locale'
1099 mandir='${datarootdir}/man'
1100
1101 ac_prev=
1102 ac_dashdash=
1103 for ac_option
1104 do
1105   # If the previous option needs an argument, assign it.
1106   if test -n "$ac_prev"; then
1107     eval $ac_prev=\$ac_option
1108     ac_prev=
1109     continue
1110   fi
1111
1112   case $ac_option in
1113   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1114   *)    ac_optarg=yes ;;
1115   esac
1116
1117   # Accept the important Cygnus configure options, so we can diagnose typos.
1118
1119   case $ac_dashdash$ac_option in
1120   --)
1121     ac_dashdash=yes ;;
1122
1123   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1124     ac_prev=bindir ;;
1125   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1126     bindir=$ac_optarg ;;
1127
1128   -build | --build | --buil | --bui | --bu)
1129     ac_prev=build_alias ;;
1130   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1131     build_alias=$ac_optarg ;;
1132
1133   -cache-file | --cache-file | --cache-fil | --cache-fi \
1134   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1135     ac_prev=cache_file ;;
1136   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1137   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1138     cache_file=$ac_optarg ;;
1139
1140   --config-cache | -C)
1141     cache_file=config.cache ;;
1142
1143   -datadir | --datadir | --datadi | --datad)
1144     ac_prev=datadir ;;
1145   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1146     datadir=$ac_optarg ;;
1147
1148   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1149   | --dataroo | --dataro | --datar)
1150     ac_prev=datarootdir ;;
1151   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1152   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1153     datarootdir=$ac_optarg ;;
1154
1155   -disable-* | --disable-*)
1156     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1160    { (exit 1); exit 1; }; }
1161     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1162     eval enable_$ac_feature=no ;;
1163
1164   -docdir | --docdir | --docdi | --doc | --do)
1165     ac_prev=docdir ;;
1166   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1167     docdir=$ac_optarg ;;
1168
1169   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1170     ac_prev=dvidir ;;
1171   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1172     dvidir=$ac_optarg ;;
1173
1174   -enable-* | --enable-*)
1175     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1179    { (exit 1); exit 1; }; }
1180     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1181     eval enable_$ac_feature=\$ac_optarg ;;
1182
1183   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1184   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1185   | --exec | --exe | --ex)
1186     ac_prev=exec_prefix ;;
1187   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1188   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1189   | --exec=* | --exe=* | --ex=*)
1190     exec_prefix=$ac_optarg ;;
1191
1192   -gas | --gas | --ga | --g)
1193     # Obsolete; use --with-gas.
1194     with_gas=yes ;;
1195
1196   -help | --help | --hel | --he | -h)
1197     ac_init_help=long ;;
1198   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1199     ac_init_help=recursive ;;
1200   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1201     ac_init_help=short ;;
1202
1203   -host | --host | --hos | --ho)
1204     ac_prev=host_alias ;;
1205   -host=* | --host=* | --hos=* | --ho=*)
1206     host_alias=$ac_optarg ;;
1207
1208   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1209     ac_prev=htmldir ;;
1210   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1211   | --ht=*)
1212     htmldir=$ac_optarg ;;
1213
1214   -includedir | --includedir | --includedi | --included | --include \
1215   | --includ | --inclu | --incl | --inc)
1216     ac_prev=includedir ;;
1217   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1218   | --includ=* | --inclu=* | --incl=* | --inc=*)
1219     includedir=$ac_optarg ;;
1220
1221   -infodir | --infodir | --infodi | --infod | --info | --inf)
1222     ac_prev=infodir ;;
1223   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1224     infodir=$ac_optarg ;;
1225
1226   -libdir | --libdir | --libdi | --libd)
1227     ac_prev=libdir ;;
1228   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1229     libdir=$ac_optarg ;;
1230
1231   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1232   | --libexe | --libex | --libe)
1233     ac_prev=libexecdir ;;
1234   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1235   | --libexe=* | --libex=* | --libe=*)
1236     libexecdir=$ac_optarg ;;
1237
1238   -localedir | --localedir | --localedi | --localed | --locale)
1239     ac_prev=localedir ;;
1240   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1241     localedir=$ac_optarg ;;
1242
1243   -localstatedir | --localstatedir | --localstatedi | --localstated \
1244   | --localstate | --localstat | --localsta | --localst | --locals)
1245     ac_prev=localstatedir ;;
1246   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1247   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1248     localstatedir=$ac_optarg ;;
1249
1250   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1251     ac_prev=mandir ;;
1252   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1253     mandir=$ac_optarg ;;
1254
1255   -nfp | --nfp | --nf)
1256     # Obsolete; use --without-fp.
1257     with_fp=no ;;
1258
1259   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1260   | --no-cr | --no-c | -n)
1261     no_create=yes ;;
1262
1263   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1264   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1265     no_recursion=yes ;;
1266
1267   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1268   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1269   | --oldin | --oldi | --old | --ol | --o)
1270     ac_prev=oldincludedir ;;
1271   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1272   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1273   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1274     oldincludedir=$ac_optarg ;;
1275
1276   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1277     ac_prev=prefix ;;
1278   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1279     prefix=$ac_optarg ;;
1280
1281   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1282   | --program-pre | --program-pr | --program-p)
1283     ac_prev=program_prefix ;;
1284   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1285   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1286     program_prefix=$ac_optarg ;;
1287
1288   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1289   | --program-suf | --program-su | --program-s)
1290     ac_prev=program_suffix ;;
1291   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1292   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1293     program_suffix=$ac_optarg ;;
1294
1295   -program-transform-name | --program-transform-name \
1296   | --program-transform-nam | --program-transform-na \
1297   | --program-transform-n | --program-transform- \
1298   | --program-transform | --program-transfor \
1299   | --program-transfo | --program-transf \
1300   | --program-trans | --program-tran \
1301   | --progr-tra | --program-tr | --program-t)
1302     ac_prev=program_transform_name ;;
1303   -program-transform-name=* | --program-transform-name=* \
1304   | --program-transform-nam=* | --program-transform-na=* \
1305   | --program-transform-n=* | --program-transform-=* \
1306   | --program-transform=* | --program-transfor=* \
1307   | --program-transfo=* | --program-transf=* \
1308   | --program-trans=* | --program-tran=* \
1309   | --progr-tra=* | --program-tr=* | --program-t=*)
1310     program_transform_name=$ac_optarg ;;
1311
1312   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1313     ac_prev=pdfdir ;;
1314   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1315     pdfdir=$ac_optarg ;;
1316
1317   -psdir | --psdir | --psdi | --psd | --ps)
1318     ac_prev=psdir ;;
1319   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1320     psdir=$ac_optarg ;;
1321
1322   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323   | -silent | --silent | --silen | --sile | --sil)
1324     silent=yes ;;
1325
1326   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1327     ac_prev=sbindir ;;
1328   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1329   | --sbi=* | --sb=*)
1330     sbindir=$ac_optarg ;;
1331
1332   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1333   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1334   | --sharedst | --shareds | --shared | --share | --shar \
1335   | --sha | --sh)
1336     ac_prev=sharedstatedir ;;
1337   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1338   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1339   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1340   | --sha=* | --sh=*)
1341     sharedstatedir=$ac_optarg ;;
1342
1343   -site | --site | --sit)
1344     ac_prev=site ;;
1345   -site=* | --site=* | --sit=*)
1346     site=$ac_optarg ;;
1347
1348   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1349     ac_prev=srcdir ;;
1350   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1351     srcdir=$ac_optarg ;;
1352
1353   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1354   | --syscon | --sysco | --sysc | --sys | --sy)
1355     ac_prev=sysconfdir ;;
1356   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1357   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1358     sysconfdir=$ac_optarg ;;
1359
1360   -target | --target | --targe | --targ | --tar | --ta | --t)
1361     ac_prev=target_alias ;;
1362   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1363     target_alias=$ac_optarg ;;
1364
1365   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1366     verbose=yes ;;
1367
1368   -version | --version | --versio | --versi | --vers | -V)
1369     ac_init_version=: ;;
1370
1371   -with-* | --with-*)
1372     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375       { echo "$as_me: error: invalid package name: $ac_package" >&2
1376    { (exit 1); exit 1; }; }
1377     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1378     eval with_$ac_package=\$ac_optarg ;;
1379
1380   -without-* | --without-*)
1381     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=no ;;
1388
1389   --x)
1390     # Obsolete; use --with-x.
1391     with_x=yes ;;
1392
1393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394   | --x-incl | --x-inc | --x-in | --x-i)
1395     ac_prev=x_includes ;;
1396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398     x_includes=$ac_optarg ;;
1399
1400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402     ac_prev=x_libraries ;;
1403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405     x_libraries=$ac_optarg ;;
1406
1407   -*) { echo "$as_me: error: unrecognized option: $ac_option
1408 Try \`$0 --help' for more information." >&2
1409    { (exit 1); exit 1; }; }
1410     ;;
1411
1412   *=*)
1413     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1414     # Reject names that are not valid shell variable names.
1415     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1416       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1417    { (exit 1); exit 1; }; }
1418     eval $ac_envvar=\$ac_optarg
1419     export $ac_envvar ;;
1420
1421   *)
1422     # FIXME: should be removed in autoconf 3.0.
1423     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1427     ;;
1428
1429   esac
1430 done
1431
1432 if test -n "$ac_prev"; then
1433   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434   { echo "$as_me: error: missing argument to $ac_option" >&2
1435    { (exit 1); exit 1; }; }
1436 fi
1437
1438 # Be sure to have absolute directory names.
1439 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1440                 datadir sysconfdir sharedstatedir localstatedir includedir \
1441                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1442                 libdir localedir mandir
1443 do
1444   eval ac_val=\$$ac_var
1445   case $ac_val in
1446     [\\/$]* | ?:[\\/]* )  continue;;
1447     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448   esac
1449   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1450    { (exit 1); exit 1; }; }
1451 done
1452
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1456 build=$build_alias
1457 host=$host_alias
1458 target=$target_alias
1459
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462   if test "x$build_alias" = x; then
1463     cross_compiling=maybe
1464     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465     If a cross compiler is detected then cross compile mode will be used." >&2
1466   elif test "x$build_alias" != "x$host_alias"; then
1467     cross_compiling=yes
1468   fi
1469 fi
1470
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
1474 test "$silent" = yes && exec 6>/dev/null
1475
1476
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480   { echo "$as_me: error: Working directory cannot be determined" >&2
1481    { (exit 1); exit 1; }; }
1482 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483   { echo "$as_me: error: pwd does not report name of working directory" >&2
1484    { (exit 1); exit 1; }; }
1485
1486
1487 # Find the source files, if location was not specified.
1488 if test -z "$srcdir"; then
1489   ac_srcdir_defaulted=yes
1490   # Try the directory containing this script, then the parent directory.
1491   ac_confdir=`$as_dirname -- "$0" ||
1492 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493          X"$0" : 'X\(//\)[^/]' \| \
1494          X"$0" : 'X\(//\)$' \| \
1495          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1496 echo X"$0" |
1497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498             s//\1/
1499             q
1500           }
1501           /^X\(\/\/\)[^/].*/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)$/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\).*/{
1510             s//\1/
1511             q
1512           }
1513           s/.*/./; q'`
1514   srcdir=$ac_confdir
1515   if test ! -r "$srcdir/$ac_unique_file"; then
1516     srcdir=..
1517   fi
1518 else
1519   ac_srcdir_defaulted=no
1520 fi
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1524    { (exit 1); exit 1; }; }
1525 fi
1526 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527 ac_abs_confdir=`(
1528         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1529    { (exit 1); exit 1; }; }
1530         pwd)`
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533   srcdir=.
1534 fi
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for ac_var in $ac_precious_vars; do
1542   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543   eval ac_env_${ac_var}_value=\$${ac_var}
1544   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 done
1547
1548 #
1549 # Report the --help message.
1550 #
1551 if test "$ac_init_help" = "long"; then
1552   # Omit some internal or obsolete options to make the list less imposing.
1553   # This message is too long to be a string in the A/UX 3.1 sh.
1554   cat <<_ACEOF
1555 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1556
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE.  See below for descriptions of some of the useful variables.
1561
1562 Defaults for the options are specified in brackets.
1563
1564 Configuration:
1565   -h, --help              display this help and exit
1566       --help=short        display options specific to this package
1567       --help=recursive    display the short help of all the included packages
1568   -V, --version           display version information and exit
1569   -q, --quiet, --silent   do not print \`checking...' messages
1570       --cache-file=FILE   cache test results in FILE [disabled]
1571   -C, --config-cache      alias for \`--cache-file=config.cache'
1572   -n, --no-create         do not create output files
1573       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1574
1575 Installation directories:
1576   --prefix=PREFIX         install architecture-independent files in PREFIX
1577                           [$ac_default_prefix]
1578   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1579                           [PREFIX]
1580
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1585
1586 For better control, use the options below.
1587
1588 Fine tuning of the installation directories:
1589   --bindir=DIR           user executables [EPREFIX/bin]
1590   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1591   --libexecdir=DIR       program executables [EPREFIX/libexec]
1592   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1593   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1594   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1595   --libdir=DIR           object code libraries [EPREFIX/lib]
1596   --includedir=DIR       C header files [PREFIX/include]
1597   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1598   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1599   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1600   --infodir=DIR          info documentation [DATAROOTDIR/info]
1601   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1602   --mandir=DIR           man documentation [DATAROOTDIR/man]
1603   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1604   --htmldir=DIR          html documentation [DOCDIR]
1605   --dvidir=DIR           dvi documentation [DOCDIR]
1606   --pdfdir=DIR           pdf documentation [DOCDIR]
1607   --psdir=DIR            ps documentation [DOCDIR]
1608 _ACEOF
1609
1610   cat <<\_ACEOF
1611
1612 X features:
1613   --x-includes=DIR    X include files are in DIR
1614   --x-libraries=DIR   X library files are in DIR
1615
1616 System types:
1617   --build=BUILD     configure for building on BUILD [guessed]
1618   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1619   --target=TARGET   configure for building compilers for TARGET [HOST]
1620 _ACEOF
1621 fi
1622
1623 if test -n "$ac_init_help"; then
1624   case $ac_init_help in
1625      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1626    esac
1627   cat <<\_ACEOF
1628
1629 Optional Features:
1630   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1631   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1632   --disable-gui           don't build GUI parts of the library
1633   --enable-monolithic     build wxWidgets as single library
1634   --enable-plugins        build parts of wxWidgets as loadable components
1635   --enable-official_build official build of wxWidgets (win32 DLL only)
1636   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1637   --disable-all-features  disable all optional features to build minimal library
1638   --enable-universal      use wxWidgets GUI controls instead of native ones
1639   --enable-nanox          use NanoX
1640   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1641   --enable-gpe            use GNOME PDA Environment features if possible
1642   --disable-shared        create static library instead of shared
1643   --disable-optimise      create optimised code
1644   --enable-debug          same as debug_flag and debug_info
1645   --enable-stl            use STL for containers
1646   --enable-std_iostreams  use standard C++ stream classes
1647   --enable-std_string     use standard C++ string classes
1648   --disable-unicode       compile without Unicode support
1649   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1650   --enable-utf8           use UTF-8 representation for strings (Unix only)
1651   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1652   --enable-extended_rtti  use extended RTTI (XTI)
1653   --enable-omf            use OMF object format
1654   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1655   --enable-debug_info     create code with debugging information
1656   --enable-debug_gdb      create code with extra GDB debugging information
1657   --enable-debug_cntxt    use wxDebugContext
1658   --enable-mem_tracing    create code with memory tracing
1659   --enable-profile        create code with profiling information
1660   --enable-no_rtti        create code without RTTI information
1661   --enable-no_exceptions  create code without C++ exceptions handling
1662   --enable-permissive     compile code disregarding strict ANSI
1663   --enable-no_deps        create code without dependency information
1664   --disable-vararg_macros don't use vararg macros, even if they are supported
1665   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1666   --enable-compat26       enable wxWidgets 2.6 compatibility
1667   --disable-compat28      disable wxWidgets 2.8 compatibility
1668   --disable-rpath         disable use of rpath for uninstalled builds
1669   --enable-objc_uniquifying enable Objective-C class name uniquifying
1670   --disable-visibility    disable use of ELF symbols visibility even if supported
1671   --enable-intl           use internationalization system
1672   --enable-config         use wxConfig (and derived) classes
1673   --enable-protocols      use wxProtocol and derived classes
1674   --enable-ftp            use wxFTP (requires wxProtocol
1675   --enable-http           use wxHTTP (requires wxProtocol
1676   --enable-fileproto      use wxFileProto class (requires wxProtocol
1677   --enable-sockets        use socket/network classes
1678   --enable-ipv6           enable IPv6 support in wxSocket
1679   --enable-ole            use OLE classes (Win32 only)
1680   --enable-dataobj        use data object classes
1681   --enable-ipc            use interprocess communication (wxSocket etc.)
1682   --enable-baseevtloop    use event loop in console programs too
1683   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1684   --enable-selectloop     use wxSelectDispatcher class
1685   --enable-apple_ieee     use the Apple IEEE codec
1686   --enable-arcstream      use wxArchive streams
1687   --enable-base64         use base64 encoding/decoding functions
1688   --enable-backtrace      use wxStackWalker class for getting backtraces
1689   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1690   --enable-cmdline        use wxCmdLineParser class
1691   --enable-datetime       use wxDateTime class
1692   --enable-debugreport    use wxDebugReport class
1693   --enable-dialupman      use dialup network classes
1694   --enable-dynlib         use wxLibrary class for DLL loading
1695   --enable-dynamicloader  use (new) wxDynamicLibrary class
1696   --enable-exceptions     build exception-safe library
1697   --enable-ffile          use wxFFile class
1698   --enable-file           use wxFile class
1699   --enable-filesystem     use virtual file systems classes
1700   --enable-fontenum       use wxFontEnumerator class
1701   --enable-fontmap        use font encodings conversion classes
1702   --enable-fs_archive     use virtual archive filesystems
1703   --enable-fs_inet        use virtual HTTP/FTP filesystems
1704   --enable-fs_zip         now replaced by fs_archive
1705   --enable-geometry       use geometry class
1706   --enable-log            use logging system
1707   --enable-longlong       use wxLongLong class
1708   --enable-mimetype       use wxMimeTypesManager
1709   --enable-snglinst       use wxSingleInstanceChecker class
1710   --enable-stdpaths       use wxStandardPaths class
1711   --enable-stopwatch      use wxStopWatch class
1712   --enable-streams        use wxStream etc classes
1713   --enable-sysoptions     use wxSystemOptions
1714   --enable-tarstream      use wxTar streams
1715   --enable-textbuf        use wxTextBuffer class
1716   --enable-textfile       use wxTextFile class
1717   --enable-timer          use wxTimer class
1718   --enable-sound          use wxSound class
1719   --enable-mediactrl      use wxMediaCtrl class
1720   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1721   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1722   --enable-zipstream      use wxZip streams
1723   --enable-url            use wxURL class
1724   --enable-variant        use wxVariant class
1725   --enable-protocol       use wxProtocol class
1726   --enable-protocol-http  HTTP support in wxProtocol
1727   --enable-protocol-ftp   FTP support in wxProtocol
1728   --enable-protocol-file  FILE support in wxProtocol
1729   --enable-threads        use threads
1730   --enable-iniconf        use wxIniConfig (Win32 only)
1731   --enable-regkey         use wxRegKey class (Win32 only)
1732   --enable-docview        use document view architecture
1733   --enable-help           use help subsystem
1734   --enable-mshtmlhelp     use MS HTML Help (win32)
1735   --enable-html           use wxHTML sub-library
1736   --enable-htmlhelp       use wxHTML-based help
1737   --enable-xrc            use XRC resources sub-library
1738   --enable-aui            use AUI docking library
1739   --enable-stc            use wxStyledTextCtrl library
1740   --enable-constraints    use layout-constraints system
1741   --enable-printarch      use printing architecture
1742   --enable-mdi            use multiple document interface architecture
1743   --enable-mdidoc         use docview architecture with MDI
1744   --enable-loggui         use standard GUI logger
1745   --enable-logwin         use wxLogWindow
1746   --enable-logdialog      use wxLogDialog
1747   --enable-webkit         use wxWebKitCtrl (Mac)
1748   --enable-richtext       use wxRichTextCtrl
1749   --enable-graphics_ctx   use graphics context 2D drawing API
1750   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1751   --enable-svg            use wxSVGFileDC device context
1752   --enable-clipboard      use wxClipboard class
1753   --enable-dnd            use Drag'n'Drop classes
1754   --enable-metafile       use win32 metafiles
1755   --disable-controls      disable compilation of all standard controls
1756   --enable-accel          use accelerators
1757   --enable-animatectrl    use wxAnimationCtrl class
1758   --enable-button         use wxButton class
1759   --enable-bmpbutton      use wxBitmapButton class
1760   --enable-bmpcombobox    use wxBitmapComboBox class
1761   --enable-calendar       use wxCalendarCtrl class
1762   --enable-caret          use wxCaret class
1763   --enable-checkbox       use wxCheckBox class
1764   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1765   --enable-choice         use wxChoice class
1766   --enable-choicebook     use wxChoicebook class
1767   --enable-collpane       use wxCollapsiblePane class
1768   --enable-colourpicker   use wxColourPickerCtrl class
1769   --enable-combobox       use wxComboBox class
1770   --enable-comboctrl      use wxComboCtrl class
1771   --enable-datepick       use wxDatePickerCtrl class
1772   --enable-dirpicker      use wxDirPickerCtrl class
1773   --enable-display        use wxDisplay class
1774   --enable-detect_sm      use code to detect X11 session manager
1775   --enable-editablebox    use wxEditableListBox class
1776   --enable-filepicker     use wxFilePickerCtrl class
1777   --enable-filectrl       use wxFileCtrl 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-notifmsg       use wxNotificationMessage class
1789   --enable-odcombobox     use wxOwnerDrawnComboBox class
1790   --enable-radiobox       use wxRadioBox class
1791   --enable-radiobtn       use wxRadioButton class
1792   --enable-sash           use wxSashWindow class
1793   --enable-scrollbar      use wxScrollBar class and scrollable windows
1794   --enable-searchctrl     use wxSearchCtrl class
1795   --enable-slider         use wxSlider class
1796   --enable-spinbtn        use wxSpinButton class
1797   --enable-spinctrl       use wxSpinCtrl class
1798   --enable-splitter       use wxSplitterWindow class
1799   --enable-statbmp        use wxStaticBitmap class
1800   --enable-statbox        use wxStaticBox class
1801   --enable-statline       use wxStaticLine class
1802   --enable-stattext       use wxStaticText class
1803   --enable-statusbar      use wxStatusBar class
1804   --enable-tabdialog      use wxTabControl class
1805   --enable-taskbaricon    use wxTaskBarIcon class
1806   --enable-textctrl       use wxTextCtrl class
1807   --enable-togglebtn      use wxToggleButton class
1808   --enable-toolbar        use wxToolBar class
1809   --enable-tbarnative     use native wxToolBar class
1810   --enable-treebook       use wxTreebook class
1811   --enable-toolbook       use wxToolbook class
1812   --enable-treectrl       use wxTreeCtrl class
1813   --enable-tipwindow      use wxTipWindow class
1814   --enable-popupwin       use wxPopUpWindow class
1815   --enable-commondlg      use all common dialogs
1816   --enable-aboutdlg       use wxAboutBox
1817   --enable-choicedlg      use wxChoiceDialog
1818   --enable-coldlg         use wxColourDialog
1819   --enable-filedlg        use wxFileDialog
1820   --enable-finddlg        use wxFindReplaceDialog
1821   --enable-fontdlg        use wxFontDialog
1822   --enable-dirdlg         use wxDirDialog
1823   --enable-msgdlg         use wxMessageDialog
1824   --enable-numberdlg      use wxNumberEntryDialog
1825   --enable-splash         use wxSplashScreen
1826   --enable-textdlg        use wxTextDialog
1827   --enable-tipdlg         use startup tips
1828   --enable-progressdlg    use wxProgressDialog
1829   --enable-wizarddlg      use wxWizard
1830   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1831   --enable-miniframe      use wxMiniFrame class
1832   --enable-tooltips       use wxToolTip class
1833   --enable-splines        use spline drawing code
1834   --enable-mousewheel     use mousewheel
1835   --enable-validators     use wxValidator and derived classes
1836   --enable-busyinfo       use wxBusyInfo
1837   --enable-joystick       use wxJoystick
1838   --enable-metafiles      use wxMetaFile (Win32 only)
1839   --enable-dragimage      use wxDragImage
1840   --enable-accessibility  enable accessibility support
1841   --enable-palette        use wxPalette class
1842   --enable-image          use wxImage class
1843   --enable-gif            use gif images (GIF file format)
1844   --enable-pcx            use pcx images (PCX file format)
1845   --enable-tga            use tga images (TGA file format)
1846   --enable-iff            use iff images (IFF file format)
1847   --enable-pnm            use pnm images (PNM file format)
1848   --enable-xpm            use xpm images (XPM file format)
1849   --enable-ico_cur        use Windows ICO and CUR formats
1850   --enable-dccache        cache temporary wxDC objects (Win32 only)
1851   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1852   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1853   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1854   --enable-wxdib          use wxDIB class (Win32 only)
1855   --enable-autoidman      use automatic ids management
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-libiconv         use libiconv (character conversion)
1889   --with-libmspack        use libmspack (CHM help files loading)
1890   --without-gtkprint      don't use GTK printing support
1891   --without-gnomeprint    don't use GNOME printing libraries
1892   --with-gnomevfs         use GNOME VFS for associating MIME types
1893   --with-hildon           use Hildon framework for Nokia 770
1894   --with-opengl           use OpenGL (or Mesa)
1895   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1896   --with-sdl              use SDL for audio on Unix
1897   --with-regex            enable support for wxRegEx class
1898   --with-zlib             use zlib for LZW compression
1899   --with-expat            enable XML support using expat parser
1900   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1901   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1902   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1903   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1904   --with-x                use the X Window System
1905   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1906   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1907   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1908   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1909   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1910
1911 Some influential environment variables:
1912   CC          C compiler command
1913   CFLAGS      C compiler flags
1914   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1915               nonstandard directory <lib dir>
1916   LIBS        libraries to pass to the linker, e.g. -l<library>
1917   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1918               you have headers in a nonstandard directory <include dir>
1919   CPP         C preprocessor
1920   CXX         C++ compiler command
1921   CXXFLAGS    C++ compiler flags
1922   PKG_CONFIG  path to pkg-config utility
1923   DIRECTFB_CFLAGS
1924               C compiler flags for DIRECTFB, overriding pkg-config
1925   DIRECTFB_LIBS
1926               linker flags for DIRECTFB, overriding pkg-config
1927   XMKMF       Path to xmkmf, Makefile generator for X Window System
1928   PANGOX_CFLAGS
1929               C compiler flags for PANGOX, overriding pkg-config
1930   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1931   PANGOFT2_CFLAGS
1932               C compiler flags for PANGOFT2, overriding pkg-config
1933   PANGOFT2_LIBS
1934               linker flags for PANGOFT2, overriding pkg-config
1935   PANGOXFT_CFLAGS
1936               C compiler flags for PANGOXFT, overriding pkg-config
1937   PANGOXFT_LIBS
1938               linker flags for PANGOXFT, overriding pkg-config
1939   GTKPRINT_CFLAGS
1940               C compiler flags for GTKPRINT, overriding pkg-config
1941   GTKPRINT_LIBS
1942               linker flags for GTKPRINT, overriding pkg-config
1943   LIBGNOMEPRINTUI_CFLAGS
1944               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1945   LIBGNOMEPRINTUI_LIBS
1946               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1947   GNOMEVFS_CFLAGS
1948               C compiler flags for GNOMEVFS, overriding pkg-config
1949   GNOMEVFS_LIBS
1950               linker flags for GNOMEVFS, overriding pkg-config
1951   HILDON_CFLAGS
1952               C compiler flags for HILDON, overriding pkg-config
1953   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1954   CAIRO_CFLAGS
1955               C compiler flags for CAIRO, overriding pkg-config
1956   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1957   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1958   GST_LIBS    linker flags for GST, overriding pkg-config
1959
1960 Use these variables to override the choices made by `configure' or to help
1961 it to find libraries and programs with nonstandard names/locations.
1962
1963 Report bugs to <wx-dev@lists.wxwidgets.org>.
1964 _ACEOF
1965 ac_status=$?
1966 fi
1967
1968 if test "$ac_init_help" = "recursive"; then
1969   # If there are subdirs, report their specific --help.
1970   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1971     test -d "$ac_dir" || continue
1972     ac_builddir=.
1973
1974 case "$ac_dir" in
1975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1976 *)
1977   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1978   # A ".." for each directory in $ac_dir_suffix.
1979   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1980   case $ac_top_builddir_sub in
1981   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1983   esac ;;
1984 esac
1985 ac_abs_top_builddir=$ac_pwd
1986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1987 # for backward compatibility:
1988 ac_top_builddir=$ac_top_build_prefix
1989
1990 case $srcdir in
1991   .)  # We are building in place.
1992     ac_srcdir=.
1993     ac_top_srcdir=$ac_top_builddir_sub
1994     ac_abs_top_srcdir=$ac_pwd ;;
1995   [\\/]* | ?:[\\/]* )  # Absolute name.
1996     ac_srcdir=$srcdir$ac_dir_suffix;
1997     ac_top_srcdir=$srcdir
1998     ac_abs_top_srcdir=$srcdir ;;
1999   *) # Relative name.
2000     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2001     ac_top_srcdir=$ac_top_build_prefix$srcdir
2002     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2003 esac
2004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2005
2006     cd "$ac_dir" || { ac_status=$?; continue; }
2007     # Check for guested configure.
2008     if test -f "$ac_srcdir/configure.gnu"; then
2009       echo &&
2010       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2011     elif test -f "$ac_srcdir/configure"; then
2012       echo &&
2013       $SHELL "$ac_srcdir/configure" --help=recursive
2014     else
2015       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2016     fi || ac_status=$?
2017     cd "$ac_pwd" || { ac_status=$?; break; }
2018   done
2019 fi
2020
2021 test -n "$ac_init_help" && exit $ac_status
2022 if $ac_init_version; then
2023   cat <<\_ACEOF
2024 wxWidgets configure 2.9.0
2025 generated by GNU Autoconf 2.61
2026
2027 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2028 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2029 This configure script is free software; the Free Software Foundation
2030 gives unlimited permission to copy, distribute and modify it.
2031 _ACEOF
2032   exit
2033 fi
2034 cat >config.log <<_ACEOF
2035 This file contains any messages produced by compilers while
2036 running configure, to aid debugging if configure makes a mistake.
2037
2038 It was created by wxWidgets $as_me 2.9.0, which was
2039 generated by GNU Autoconf 2.61.  Invocation command line was
2040
2041   $ $0 $@
2042
2043 _ACEOF
2044 exec 5>>config.log
2045 {
2046 cat <<_ASUNAME
2047 ## --------- ##
2048 ## Platform. ##
2049 ## --------- ##
2050
2051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056
2057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2059
2060 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2061 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2064 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2065 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2066 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2067
2068 _ASUNAME
2069
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   echo "PATH: $as_dir"
2076 done
2077 IFS=$as_save_IFS
2078
2079 } >&5
2080
2081 cat >&5 <<_ACEOF
2082
2083
2084 ## ----------- ##
2085 ## Core tests. ##
2086 ## ----------- ##
2087
2088 _ACEOF
2089
2090
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2096 ac_configure_args=
2097 ac_configure_args0=
2098 ac_configure_args1=
2099 ac_must_keep_next=false
2100 for ac_pass in 1 2
2101 do
2102   for ac_arg
2103   do
2104     case $ac_arg in
2105     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107     | -silent | --silent | --silen | --sile | --sil)
2108       continue ;;
2109     *\'*)
2110       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2111     esac
2112     case $ac_pass in
2113     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2114     2)
2115       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2116       if test $ac_must_keep_next = true; then
2117         ac_must_keep_next=false # Got value, back to normal.
2118       else
2119         case $ac_arg in
2120           *=* | --config-cache | -C | -disable-* | --disable-* \
2121           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123           | -with-* | --with-* | -without-* | --without-* | --x)
2124             case "$ac_configure_args0 " in
2125               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126             esac
2127             ;;
2128           -* ) ac_must_keep_next=true ;;
2129         esac
2130       fi
2131       ac_configure_args="$ac_configure_args '$ac_arg'"
2132       ;;
2133     esac
2134   done
2135 done
2136 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2137 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2138
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log.  We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145   # Save into config.log some information that might help in debugging.
2146   {
2147     echo
2148
2149     cat <<\_ASBOX
2150 ## ---------------- ##
2151 ## Cache variables. ##
2152 ## ---------------- ##
2153 _ASBOX
2154     echo
2155     # The following way of writing the cache mishandles newlines in values,
2156 (
2157   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2158     eval ac_val=\$$ac_var
2159     case $ac_val in #(
2160     *${as_nl}*)
2161       case $ac_var in #(
2162       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2163 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2164       esac
2165       case $ac_var in #(
2166       _ | IFS | as_nl) ;; #(
2167       *) $as_unset $ac_var ;;
2168       esac ;;
2169     esac
2170   done
2171   (set) 2>&1 |
2172     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2173     *${as_nl}ac_space=\ *)
2174       sed -n \
2175         "s/'\''/'\''\\\\'\'''\''/g;
2176           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177       ;; #(
2178     *)
2179       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180       ;;
2181     esac |
2182     sort
2183 )
2184     echo
2185
2186     cat <<\_ASBOX
2187 ## ----------------- ##
2188 ## Output variables. ##
2189 ## ----------------- ##
2190 _ASBOX
2191     echo
2192     for ac_var in $ac_subst_vars
2193     do
2194       eval ac_val=\$$ac_var
2195       case $ac_val in
2196       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197       esac
2198       echo "$ac_var='\''$ac_val'\''"
2199     done | sort
2200     echo
2201
2202     if test -n "$ac_subst_files"; then
2203       cat <<\_ASBOX
2204 ## ------------------- ##
2205 ## File substitutions. ##
2206 ## ------------------- ##
2207 _ASBOX
2208       echo
2209       for ac_var in $ac_subst_files
2210       do
2211         eval ac_val=\$$ac_var
2212         case $ac_val in
2213         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214         esac
2215         echo "$ac_var='\''$ac_val'\''"
2216       done | sort
2217       echo
2218     fi
2219
2220     if test -s confdefs.h; then
2221       cat <<\_ASBOX
2222 ## ----------- ##
2223 ## confdefs.h. ##
2224 ## ----------- ##
2225 _ASBOX
2226       echo
2227       cat confdefs.h
2228       echo
2229     fi
2230     test "$ac_signal" != 0 &&
2231       echo "$as_me: caught signal $ac_signal"
2232     echo "$as_me: exit $exit_status"
2233   } >&5
2234   rm -f core *.core core.conftest.* &&
2235     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236     exit $exit_status
2237 ' 0
2238 for ac_signal in 1 2 13 15; do
2239   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2240 done
2241 ac_signal=0
2242
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2245
2246 # Predefined preprocessor variables.
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_NAME "$PACKAGE_NAME"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255 _ACEOF
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 _ACEOF
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_STRING "$PACKAGE_STRING"
2265 _ACEOF
2266
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2270 _ACEOF
2271
2272
2273 # Let the site file select an alternate cache file if it wants to.
2274 # Prefer explicitly selected file to automatically selected ones.
2275 if test -n "$CONFIG_SITE"; then
2276   set x "$CONFIG_SITE"
2277 elif test "x$prefix" != xNONE; then
2278   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2279 else
2280   set x "$ac_default_prefix/share/config.site" \
2281         "$ac_default_prefix/etc/config.site"
2282 fi
2283 shift
2284 for ac_site_file
2285 do
2286   if test -r "$ac_site_file"; then
2287     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2288 echo "$as_me: loading site script $ac_site_file" >&6;}
2289     sed 's/^/| /' "$ac_site_file" >&5
2290     . "$ac_site_file"
2291   fi
2292 done
2293
2294 if test -r "$cache_file"; then
2295   # Some versions of bash will fail to source /dev/null (special
2296   # files actually), so we avoid doing that.
2297   if test -f "$cache_file"; then
2298     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2299 echo "$as_me: loading cache $cache_file" >&6;}
2300     case $cache_file in
2301       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2302       *)                      . "./$cache_file";;
2303     esac
2304   fi
2305 else
2306   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2307 echo "$as_me: creating cache $cache_file" >&6;}
2308   >$cache_file
2309 fi
2310
2311 # Check that the precious variables saved in the cache have kept the same
2312 # value.
2313 ac_cache_corrupted=false
2314 for ac_var in $ac_precious_vars; do
2315   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2316   eval ac_new_set=\$ac_env_${ac_var}_set
2317   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2318   eval ac_new_val=\$ac_env_${ac_var}_value
2319   case $ac_old_set,$ac_new_set in
2320     set,)
2321       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2322 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2323       ac_cache_corrupted=: ;;
2324     ,set)
2325       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2326 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2327       ac_cache_corrupted=: ;;
2328     ,);;
2329     *)
2330       if test "x$ac_old_val" != "x$ac_new_val"; then
2331         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2332 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2334 echo "$as_me:   former value:  $ac_old_val" >&2;}
2335         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2336 echo "$as_me:   current value: $ac_new_val" >&2;}
2337         ac_cache_corrupted=:
2338       fi;;
2339   esac
2340   # Pass precious variables to config.status.
2341   if test "$ac_new_set" = set; then
2342     case $ac_new_val in
2343     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2344     *) ac_arg=$ac_var=$ac_new_val ;;
2345     esac
2346     case " $ac_configure_args " in
2347       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2348       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2349     esac
2350   fi
2351 done
2352 if $ac_cache_corrupted; then
2353   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2355   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2356 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390
2391
2392
2393
2394 ac_aux_dir=
2395 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2396   if test -f "$ac_dir/install-sh"; then
2397     ac_aux_dir=$ac_dir
2398     ac_install_sh="$ac_aux_dir/install-sh -c"
2399     break
2400   elif test -f "$ac_dir/install.sh"; then
2401     ac_aux_dir=$ac_dir
2402     ac_install_sh="$ac_aux_dir/install.sh -c"
2403     break
2404   elif test -f "$ac_dir/shtool"; then
2405     ac_aux_dir=$ac_dir
2406     ac_install_sh="$ac_aux_dir/shtool install -c"
2407     break
2408   fi
2409 done
2410 if test -z "$ac_aux_dir"; then
2411   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2412 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2413    { (exit 1); exit 1; }; }
2414 fi
2415
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2423
2424
2425 # Make sure we can run config.sub.
2426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2427   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2428 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2429    { (exit 1); exit 1; }; }
2430
2431 { echo "$as_me:$LINENO: checking build system type" >&5
2432 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2433 if test "${ac_cv_build+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   ac_build_alias=$build_alias
2437 test "x$ac_build_alias" = x &&
2438   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2439 test "x$ac_build_alias" = x &&
2440   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2442    { (exit 1); exit 1; }; }
2443 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2444   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2445 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2446    { (exit 1); exit 1; }; }
2447
2448 fi
2449 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2450 echo "${ECHO_T}$ac_cv_build" >&6; }
2451 case $ac_cv_build in
2452 *-*-*) ;;
2453 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2454 echo "$as_me: error: invalid value of canonical build" >&2;}
2455    { (exit 1); exit 1; }; };;
2456 esac
2457 build=$ac_cv_build
2458 ac_save_IFS=$IFS; IFS='-'
2459 set x $ac_cv_build
2460 shift
2461 build_cpu=$1
2462 build_vendor=$2
2463 shift; shift
2464 # Remember, the first character of IFS is used to create $*,
2465 # except with old shells:
2466 build_os=$*
2467 IFS=$ac_save_IFS
2468 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2469
2470
2471 { echo "$as_me:$LINENO: checking host system type" >&5
2472 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2473 if test "${ac_cv_host+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   if test "x$host_alias" = x; then
2477   ac_cv_host=$ac_cv_build
2478 else
2479   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2480     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2481 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2482    { (exit 1); exit 1; }; }
2483 fi
2484
2485 fi
2486 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2487 echo "${ECHO_T}$ac_cv_host" >&6; }
2488 case $ac_cv_host in
2489 *-*-*) ;;
2490 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2491 echo "$as_me: error: invalid value of canonical host" >&2;}
2492    { (exit 1); exit 1; }; };;
2493 esac
2494 host=$ac_cv_host
2495 ac_save_IFS=$IFS; IFS='-'
2496 set x $ac_cv_host
2497 shift
2498 host_cpu=$1
2499 host_vendor=$2
2500 shift; shift
2501 # Remember, the first character of IFS is used to create $*,
2502 # except with old shells:
2503 host_os=$*
2504 IFS=$ac_save_IFS
2505 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2506
2507
2508 { echo "$as_me:$LINENO: checking target system type" >&5
2509 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2510 if test "${ac_cv_target+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   if test "x$target_alias" = x; then
2514   ac_cv_target=$ac_cv_host
2515 else
2516   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2517     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2518 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2519    { (exit 1); exit 1; }; }
2520 fi
2521
2522 fi
2523 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2524 echo "${ECHO_T}$ac_cv_target" >&6; }
2525 case $ac_cv_target in
2526 *-*-*) ;;
2527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2528 echo "$as_me: error: invalid value of canonical target" >&2;}
2529    { (exit 1); exit 1; }; };;
2530 esac
2531 target=$ac_cv_target
2532 ac_save_IFS=$IFS; IFS='-'
2533 set x $ac_cv_target
2534 shift
2535 target_cpu=$1
2536 target_vendor=$2
2537 shift; shift
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2540 target_os=$*
2541 IFS=$ac_save_IFS
2542 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2543
2544
2545 # The aliases save the names the user supplied, while $host etc.
2546 # will get canonicalized.
2547 test -n "$target_alias" &&
2548   test "$program_prefix$program_suffix$program_transform_name" = \
2549     NONENONEs,x,x, &&
2550   program_prefix=${target_alias}-
2551
2552
2553
2554 wx_major_version_number=2
2555 wx_minor_version_number=9
2556 wx_release_number=0
2557 wx_subrelease_number=0
2558
2559 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2560 WX_VERSION=$WX_RELEASE.$wx_release_number
2561 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2562
2563 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2564
2565
2566 wx_top_builddir="`pwd`"
2567
2568
2569
2570
2571 USE_UNIX=1
2572 USE_OS2=0
2573 USE_WIN32=0
2574 USE_DOS=0
2575 USE_BEOS=0
2576 USE_MAC=0
2577
2578 USE_AIX=
2579 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2580 USE_GNU=                            USE_HPUX=
2581 USE_LINUX=
2582 USE_NETBSD=
2583 USE_OPENBSD=
2584 USE_OSF=                            USE_SGI=
2585 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2586 USE_ULTRIX=
2587 USE_UNIXWARE=
2588
2589 USE_ALPHA=
2590
2591 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2592
2593 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2594
2595 DEFAULT_wxUSE_COCOA=0
2596 DEFAULT_wxUSE_GTK=0
2597 DEFAULT_wxUSE_MAC=0
2598 DEFAULT_wxUSE_MGL=0
2599 DEFAULT_wxUSE_MICROWIN=0
2600 DEFAULT_wxUSE_MOTIF=0
2601 DEFAULT_wxUSE_MSW=0
2602 DEFAULT_wxUSE_PM=0
2603 DEFAULT_wxUSE_X11=0
2604 DEFAULT_wxUSE_DFB=0
2605
2606 DEFAULT_DEFAULT_wxUSE_COCOA=0
2607 DEFAULT_DEFAULT_wxUSE_GTK=0
2608 DEFAULT_DEFAULT_wxUSE_MAC=0
2609 DEFAULT_DEFAULT_wxUSE_MGL=0
2610 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2611 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2612 DEFAULT_DEFAULT_wxUSE_MSW=0
2613 DEFAULT_DEFAULT_wxUSE_PM=0
2614 DEFAULT_DEFAULT_wxUSE_X11=0
2615 DEFAULT_DEFAULT_wxUSE_DFB=0
2616
2617 PROGRAM_EXT=
2618 SO_SUFFIX=so
2619 SAMPLES_RPATH_FLAG=
2620 SAMPLES_RPATH_POSTLINK=
2621
2622 DEFAULT_STD_FLAG=yes
2623
2624 case "${host}" in
2625   *-hp-hpux* )
2626     USE_HPUX=1
2627     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2628     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2629     SO_SUFFIX=sl
2630     cat >>confdefs.h <<\_ACEOF
2631 #define __HPUX__ 1
2632 _ACEOF
2633
2634
2635             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2636   ;;
2637   *-*-linux* )
2638     USE_LINUX=1
2639     cat >>confdefs.h <<\_ACEOF
2640 #define __LINUX__ 1
2641 _ACEOF
2642
2643     TMP=`uname -m`
2644     if test "x$TMP" = "xalpha"; then
2645       USE_ALPHA=1
2646       cat >>confdefs.h <<\_ACEOF
2647 #define __ALPHA__ 1
2648 _ACEOF
2649
2650     fi
2651     DEFAULT_DEFAULT_wxUSE_GTK=1
2652   ;;
2653   *-*-gnu* | *-*-k*bsd*-gnu )
2654     USE_GNU=1
2655     TMP=`uname -m`
2656     if test "x$TMP" = "xalpha"; then
2657       USE_ALPHA=1
2658       cat >>confdefs.h <<\_ACEOF
2659 #define __ALPHA__ 1
2660 _ACEOF
2661
2662     fi
2663     DEFAULT_DEFAULT_wxUSE_GTK=1
2664   ;;
2665   *-*-irix5* | *-*-irix6* )
2666     USE_SGI=1
2667     USE_SVR4=1
2668     cat >>confdefs.h <<\_ACEOF
2669 #define __SGI__ 1
2670 _ACEOF
2671
2672     cat >>confdefs.h <<\_ACEOF
2673 #define __SVR4__ 1
2674 _ACEOF
2675
2676     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2677   ;;
2678   *-*-solaris2* )
2679     USE_SUN=1
2680     USE_SOLARIS=1
2681     USE_SVR4=1
2682     cat >>confdefs.h <<\_ACEOF
2683 #define __SUN__ 1
2684 _ACEOF
2685
2686     cat >>confdefs.h <<\_ACEOF
2687 #define __SOLARIS__ 1
2688 _ACEOF
2689
2690     cat >>confdefs.h <<\_ACEOF
2691 #define __SVR4__ 1
2692 _ACEOF
2693
2694     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2695     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2696   ;;
2697   *-*-sunos4* )
2698     USE_SUN=1
2699     USE_SUNOS=1
2700     USE_BSD=1
2701     cat >>confdefs.h <<\_ACEOF
2702 #define __SUN__ 1
2703 _ACEOF
2704
2705     cat >>confdefs.h <<\_ACEOF
2706 #define __SUNOS__ 1
2707 _ACEOF
2708
2709     cat >>confdefs.h <<\_ACEOF
2710 #define __BSD__ 1
2711 _ACEOF
2712
2713     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2714   ;;
2715   *-*-freebsd*)
2716     USE_BSD=1
2717     USE_FREEBSD=1
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __FREEBSD__ 1
2720 _ACEOF
2721
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __BSD__ 1
2724 _ACEOF
2725
2726     DEFAULT_DEFAULT_wxUSE_GTK=1
2727   ;;
2728   *-*-openbsd*|*-*-mirbsd*)
2729     USE_BSD=1
2730     USE_OPENBSD=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __OPENBSD__ 1
2733 _ACEOF
2734
2735     cat >>confdefs.h <<\_ACEOF
2736 #define __BSD__ 1
2737 _ACEOF
2738
2739     DEFAULT_DEFAULT_wxUSE_GTK=1
2740   ;;
2741   *-*-netbsd*)
2742     USE_BSD=1
2743     USE_NETBSD=1
2744     cat >>confdefs.h <<\_ACEOF
2745 #define __NETBSD__ 1
2746 _ACEOF
2747
2748     cat >>confdefs.h <<\_ACEOF
2749 #define __BSD__ 1
2750 _ACEOF
2751
2752     DEFAULT_DEFAULT_wxUSE_GTK=1
2753     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2754
2755             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2756   ;;
2757   *-*-osf* )
2758     USE_ALPHA=1
2759     USE_OSF=1
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __ALPHA__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __OSF__ 1
2766 _ACEOF
2767
2768     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2769     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2770   ;;
2771   *-*-dgux5* )
2772     USE_ALPHA=1
2773     USE_SVR4=1
2774     cat >>confdefs.h <<\_ACEOF
2775 #define __ALPHA__ 1
2776 _ACEOF
2777
2778     cat >>confdefs.h <<\_ACEOF
2779 #define __SVR4__ 1
2780 _ACEOF
2781
2782     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2783   ;;
2784   *-*-sysv5* )
2785     USE_SYSV=1
2786     USE_SVR4=1
2787     cat >>confdefs.h <<\_ACEOF
2788 #define __SYSV__ 1
2789 _ACEOF
2790
2791     cat >>confdefs.h <<\_ACEOF
2792 #define __SVR4__ 1
2793 _ACEOF
2794
2795     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2796   ;;
2797   *-*-aix* )
2798     USE_AIX=1
2799     USE_SYSV=1
2800     USE_SVR4=1
2801                         SO_SUFFIX=a
2802     cat >>confdefs.h <<\_ACEOF
2803 #define __AIX__ 1
2804 _ACEOF
2805
2806     cat >>confdefs.h <<\_ACEOF
2807 #define __SYSV__ 1
2808 _ACEOF
2809
2810     cat >>confdefs.h <<\_ACEOF
2811 #define __SVR4__ 1
2812 _ACEOF
2813
2814     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2815   ;;
2816
2817   *-*-*UnixWare*)
2818     USE_SYSV=1
2819     USE_SVR4=1
2820     USE_UNIXWARE=1
2821     cat >>confdefs.h <<\_ACEOF
2822 #define __UNIXWARE__ 1
2823 _ACEOF
2824
2825   ;;
2826
2827   *-*-cygwin* | *-*-mingw32* )
2828                 SO_SUFFIX=dll
2829     PROGRAM_EXT=".exe"
2830     DEFAULT_DEFAULT_wxUSE_MSW=1
2831   ;;
2832
2833   *-pc-msdosdjgpp )
2834     USE_UNIX=0
2835     USE_DOS=1
2836     cat >>confdefs.h <<\_ACEOF
2837 #define __DOS__ 1
2838 _ACEOF
2839
2840     PROGRAM_EXT=".exe"
2841     DEFAULT_DEFAULT_wxUSE_MGL=1
2842   ;;
2843
2844   *-pc-os2_emx | *-pc-os2-emx )
2845     cat >>confdefs.h <<\_ACEOF
2846 #define __EMX__ 1
2847 _ACEOF
2848
2849     USE_OS2=1
2850     cat >>confdefs.h <<\_ACEOF
2851 #define __OS2__ 1
2852 _ACEOF
2853
2854     PROGRAM_EXT=".exe"
2855     DEFAULT_DEFAULT_wxUSE_PM=1
2856         CXX=gcc
2857     LDFLAGS="$LDFLAGS -Zcrtdll"
2858                         ac_executable_extensions=".exe"
2859     export ac_executable_extensions
2860             ac_save_IFS="$IFS"
2861     IFS='\\'
2862     ac_TEMP_PATH=
2863     for ac_dir in $PATH; do
2864       IFS=$ac_save_IFS
2865       if test -z "$ac_TEMP_PATH"; then
2866         ac_TEMP_PATH="$ac_dir"
2867       else
2868         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2869       fi
2870     done
2871     export PATH="$ac_TEMP_PATH"
2872     unset ac_TEMP_PATH
2873     DEFAULT_STD_FLAG=no
2874   ;;
2875
2876   *-*-darwin* )
2877         USE_BSD=1
2878     USE_DARWIN=1
2879     SO_SUFFIX=dylib
2880     cat >>confdefs.h <<\_ACEOF
2881 #define __BSD__ 1
2882 _ACEOF
2883
2884     cat >>confdefs.h <<\_ACEOF
2885 #define __DARWIN__ 1
2886 _ACEOF
2887
2888     cat >>confdefs.h <<\_ACEOF
2889 #define TARGET_CARBON 1
2890 _ACEOF
2891
2892     DEFAULT_DEFAULT_wxUSE_MAC=1
2893     DEFAULT_STD_FLAG=no
2894   ;;
2895   powerpc-apple-macos* )
2896         USE_UNIX=0
2897             ac_cv_c_bigendian=yes
2898     SO_SUFFIX=shlib
2899             DEFAULT_DEFAULT_wxUSE_MAC=1
2900     DEFAULT_STD_FLAG=no
2901   ;;
2902
2903   *-*-beos* )
2904         USE_BEOS=1
2905     cat >>confdefs.h <<\_ACEOF
2906 #define __BEOS__ 1
2907 _ACEOF
2908
2909   ;;
2910
2911   *)
2912     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2913 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2914     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2915 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2916
2917     DEFAULT_DEFAULT_wxUSE_X11=1
2918     DEFAULT_wxUSE_SHARED=no
2919 esac
2920
2921
2922
2923 DEFAULT_wxUSE_ALL_FEATURES=yes
2924
2925 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2926 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2927
2928 DEFAULT_wxUSE_DMALLOC=no
2929 DEFAULT_wxUSE_LIBGNOMEVFS=no
2930 DEFAULT_wxUSE_LIBHILDON=no
2931 DEFAULT_wxUSE_LIBMSPACK=no
2932 DEFAULT_wxUSE_LIBSDL=no
2933 DEFAULT_wxUSE_OPENGL=no
2934
2935 DEFAULT_wxUSE_ACCESSIBILITY=no
2936 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2937 DEFAULT_wxUSE_IPV6=no
2938 DEFAULT_wxUSE_MEDIACTRL=no
2939 DEFAULT_wxUSE_TAB_DIALOG=no
2940 DEFAULT_wxUSE_GSTREAMER8=no
2941
2942 DEFAULT_wxUSE_UNICODE_UTF8=auto
2943 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2944
2945 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2946
2947 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2948
2949 DEFAULT_wxUSE_GTK2=yes
2950
2951 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2952
2953
2954
2955
2956
2957           enablestring=disable
2958           defaultval=
2959           if test -z "$defaultval"; then
2960               if test x"$enablestring" = xdisable; then
2961                   defaultval=yes
2962               else
2963                   defaultval=no
2964               fi
2965           fi
2966
2967           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2968 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2969           # Check whether --enable-gui was given.
2970 if test "${enable_gui+set}" = set; then
2971   enableval=$enable_gui;
2972                           if test "$enableval" = yes; then
2973                             wx_cv_use_gui='wxUSE_GUI=yes'
2974                           else
2975                             wx_cv_use_gui='wxUSE_GUI=no'
2976                           fi
2977
2978 else
2979
2980                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2981
2982 fi
2983
2984
2985           eval "$wx_cv_use_gui"
2986
2987           if test x"$enablestring" = xdisable; then
2988             if test $wxUSE_GUI = yes; then
2989               result=no
2990             else
2991               result=yes
2992             fi
2993           else
2994             result=$wxUSE_GUI
2995           fi
2996
2997           { echo "$as_me:$LINENO: result: $result" >&5
2998 echo "${ECHO_T}$result" >&6; }
2999
3000
3001           enablestring=
3002           defaultval=
3003           if test -z "$defaultval"; then
3004               if test x"$enablestring" = xdisable; then
3005                   defaultval=yes
3006               else
3007                   defaultval=no
3008               fi
3009           fi
3010
3011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3012 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3013           # Check whether --enable-monolithic was given.
3014 if test "${enable_monolithic+set}" = set; then
3015   enableval=$enable_monolithic;
3016                           if test "$enableval" = yes; then
3017                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3018                           else
3019                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3020                           fi
3021
3022 else
3023
3024                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3025
3026 fi
3027
3028
3029           eval "$wx_cv_use_monolithic"
3030
3031           if test x"$enablestring" = xdisable; then
3032             if test $wxUSE_MONOLITHIC = yes; then
3033               result=no
3034             else
3035               result=yes
3036             fi
3037           else
3038             result=$wxUSE_MONOLITHIC
3039           fi
3040
3041           { echo "$as_me:$LINENO: result: $result" >&5
3042 echo "${ECHO_T}$result" >&6; }
3043
3044
3045           enablestring=
3046           defaultval=
3047           if test -z "$defaultval"; then
3048               if test x"$enablestring" = xdisable; then
3049                   defaultval=yes
3050               else
3051                   defaultval=no
3052               fi
3053           fi
3054
3055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3056 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3057           # Check whether --enable-plugins was given.
3058 if test "${enable_plugins+set}" = set; then
3059   enableval=$enable_plugins;
3060                           if test "$enableval" = yes; then
3061                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3062                           else
3063                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3064                           fi
3065
3066 else
3067
3068                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3069
3070 fi
3071
3072
3073           eval "$wx_cv_use_plugins"
3074
3075           if test x"$enablestring" = xdisable; then
3076             if test $wxUSE_PLUGINS = yes; then
3077               result=no
3078             else
3079               result=yes
3080             fi
3081           else
3082             result=$wxUSE_PLUGINS
3083           fi
3084
3085           { echo "$as_me:$LINENO: result: $result" >&5
3086 echo "${ECHO_T}$result" >&6; }
3087
3088
3089           withstring=without
3090           defaultval=$wxUSE_ALL_FEATURES
3091           if test -z "$defaultval"; then
3092               if test x"$withstring" = xwithout; then
3093                   defaultval=yes
3094               else
3095                   defaultval=no
3096               fi
3097           fi
3098           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3099 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3100
3101 # Check whether --with-subdirs was given.
3102 if test "${with_subdirs+set}" = set; then
3103   withval=$with_subdirs;
3104                         if test "$withval" = yes; then
3105                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3106                         else
3107                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3108                         fi
3109
3110 else
3111
3112                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3113
3114 fi
3115
3116
3117           eval "$wx_cv_use_subdirs"
3118
3119           if test x"$withstring" = xwithout; then
3120             if test $wxWITH_SUBDIRS = yes; then
3121               result=no
3122             else
3123               result=yes
3124             fi
3125           else
3126             result=$wxWITH_SUBDIRS
3127           fi
3128
3129           { echo "$as_me:$LINENO: result: $result" >&5
3130 echo "${ECHO_T}$result" >&6; }
3131
3132
3133 # Check whether --with-flavour was given.
3134 if test "${with_flavour+set}" = set; then
3135   withval=$with_flavour; WX_FLAVOUR="$withval"
3136 fi
3137
3138
3139           enablestring=
3140           defaultval=
3141           if test -z "$defaultval"; then
3142               if test x"$enablestring" = xdisable; then
3143                   defaultval=yes
3144               else
3145                   defaultval=no
3146               fi
3147           fi
3148
3149           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3150 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3151           # Check whether --enable-official_build was given.
3152 if test "${enable_official_build+set}" = set; then
3153   enableval=$enable_official_build;
3154                           if test "$enableval" = yes; then
3155                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3156                           else
3157                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3158                           fi
3159
3160 else
3161
3162                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3163
3164 fi
3165
3166
3167           eval "$wx_cv_use_official_build"
3168
3169           if test x"$enablestring" = xdisable; then
3170             if test $wxUSE_OFFICIAL_BUILD = yes; then
3171               result=no
3172             else
3173               result=yes
3174             fi
3175           else
3176             result=$wxUSE_OFFICIAL_BUILD
3177           fi
3178
3179           { echo "$as_me:$LINENO: result: $result" >&5
3180 echo "${ECHO_T}$result" >&6; }
3181
3182 # Check whether --enable-vendor was given.
3183 if test "${enable_vendor+set}" = set; then
3184   enableval=$enable_vendor; VENDOR="$enableval"
3185 fi
3186
3187 if test "x$VENDOR" = "x"; then
3188     VENDOR="custom"
3189 fi
3190
3191
3192           enablestring=disable
3193           defaultval=
3194           if test -z "$defaultval"; then
3195               if test x"$enablestring" = xdisable; then
3196                   defaultval=yes
3197               else
3198                   defaultval=no
3199               fi
3200           fi
3201
3202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3203 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3204           # Check whether --enable-all-features was given.
3205 if test "${enable_all_features+set}" = set; then
3206   enableval=$enable_all_features;
3207                           if test "$enableval" = yes; then
3208                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3209                           else
3210                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3211                           fi
3212
3213 else
3214
3215                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3216
3217 fi
3218
3219
3220           eval "$wx_cv_use_all_features"
3221
3222           if test x"$enablestring" = xdisable; then
3223             if test $wxUSE_ALL_FEATURES = yes; then
3224               result=no
3225             else
3226               result=yes
3227             fi
3228           else
3229             result=$wxUSE_ALL_FEATURES
3230           fi
3231
3232           { echo "$as_me:$LINENO: result: $result" >&5
3233 echo "${ECHO_T}$result" >&6; }
3234
3235
3236
3237 if test "$wxUSE_GUI" = "yes"; then
3238
3239
3240           enablestring=
3241           defaultval=
3242           if test -z "$defaultval"; then
3243               if test x"$enablestring" = xdisable; then
3244                   defaultval=yes
3245               else
3246                   defaultval=no
3247               fi
3248           fi
3249
3250           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3251 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3252           # Check whether --enable-universal was given.
3253 if test "${enable_universal+set}" = set; then
3254   enableval=$enable_universal;
3255                           if test "$enableval" = yes; then
3256                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3257                           else
3258                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3259                           fi
3260
3261 else
3262
3263                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3264
3265 fi
3266
3267
3268           eval "$wx_cv_use_universal"
3269
3270           if test x"$enablestring" = xdisable; then
3271             if test $wxUSE_UNIVERSAL = yes; then
3272               result=no
3273             else
3274               result=yes
3275             fi
3276           else
3277             result=$wxUSE_UNIVERSAL
3278           fi
3279
3280           { echo "$as_me:$LINENO: result: $result" >&5
3281 echo "${ECHO_T}$result" >&6; }
3282
3283 if test "$wxUSE_UNIVERSAL" = "yes"; then
3284
3285 # Check whether --with-themes was given.
3286 if test "${with_themes+set}" = set; then
3287   withval=$with_themes; wxUNIV_THEMES="$withval"
3288 fi
3289
3290 fi
3291
3292
3293 # Check whether --with-gtk was given.
3294 if test "${with_gtk+set}" = set; then
3295   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3296 fi
3297
3298
3299 # Check whether --with-motif was given.
3300 if test "${with_motif+set}" = set; then
3301   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3302 fi
3303
3304
3305 # Check whether --with-mac was given.
3306 if test "${with_mac+set}" = set; then
3307   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3308 fi
3309
3310
3311 # Check whether --with-cocoa was given.
3312 if test "${with_cocoa+set}" = set; then
3313   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3314 fi
3315
3316
3317 # Check whether --with-wine was given.
3318 if test "${with_wine+set}" = set; then
3319   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3320 fi
3321
3322
3323 # Check whether --with-msw was given.
3324 if test "${with_msw+set}" = set; then
3325   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3326 fi
3327
3328
3329 # Check whether --with-pm was given.
3330 if test "${with_pm+set}" = set; then
3331   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3332 fi
3333
3334
3335 # Check whether --with-mgl was given.
3336 if test "${with_mgl+set}" = set; then
3337   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3338 fi
3339
3340
3341 # Check whether --with-directfb was given.
3342 if test "${with_directfb+set}" = set; then
3343   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3344 fi
3345
3346
3347 # Check whether --with-microwin was given.
3348 if test "${with_microwin+set}" = set; then
3349   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3350 fi
3351
3352
3353 # Check whether --with-x11 was given.
3354 if test "${with_x11+set}" = set; then
3355   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3356 fi
3357
3358
3359           enablestring=
3360           defaultval=
3361           if test -z "$defaultval"; then
3362               if test x"$enablestring" = xdisable; then
3363                   defaultval=yes
3364               else
3365                   defaultval=no
3366               fi
3367           fi
3368
3369           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3370 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3371           # Check whether --enable-nanox was given.
3372 if test "${enable_nanox+set}" = set; then
3373   enableval=$enable_nanox;
3374                           if test "$enableval" = yes; then
3375                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3376                           else
3377                             wx_cv_use_nanox='wxUSE_NANOX=no'
3378                           fi
3379
3380 else
3381
3382                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3383
3384 fi
3385
3386
3387           eval "$wx_cv_use_nanox"
3388
3389           if test x"$enablestring" = xdisable; then
3390             if test $wxUSE_NANOX = yes; then
3391               result=no
3392             else
3393               result=yes
3394             fi
3395           else
3396             result=$wxUSE_NANOX
3397           fi
3398
3399           { echo "$as_me:$LINENO: result: $result" >&5
3400 echo "${ECHO_T}$result" >&6; }
3401
3402
3403 # Check whether --enable-gtk2 was given.
3404 if test "${enable_gtk2+set}" = set; then
3405   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3406 fi
3407
3408
3409           enablestring=
3410           defaultval=
3411           if test -z "$defaultval"; then
3412               if test x"$enablestring" = xdisable; then
3413                   defaultval=yes
3414               else
3415                   defaultval=no
3416               fi
3417           fi
3418
3419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3420 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3421           # Check whether --enable-gpe was given.
3422 if test "${enable_gpe+set}" = set; then
3423   enableval=$enable_gpe;
3424                           if test "$enableval" = yes; then
3425                             wx_cv_use_gpe='wxUSE_GPE=yes'
3426                           else
3427                             wx_cv_use_gpe='wxUSE_GPE=no'
3428                           fi
3429
3430 else
3431
3432                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3433
3434 fi
3435
3436
3437           eval "$wx_cv_use_gpe"
3438
3439           if test x"$enablestring" = xdisable; then
3440             if test $wxUSE_GPE = yes; then
3441               result=no
3442             else
3443               result=yes
3444             fi
3445           else
3446             result=$wxUSE_GPE
3447           fi
3448
3449           { echo "$as_me:$LINENO: result: $result" >&5
3450 echo "${ECHO_T}$result" >&6; }
3451
3452
3453
3454 { echo "$as_me:$LINENO: checking for toolkit" >&5
3455 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3456
3457 # In Wine, we need to default to MSW, not GTK or MOTIF
3458 if test "$wxUSE_WINE" = "yes"; then
3459     DEFAULT_DEFAULT_wxUSE_GTK=0
3460     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3461     DEFAULT_DEFAULT_wxUSE_MSW=1
3462     wxUSE_SHARED=no
3463     CC=${CC:-winegcc}
3464     CXX=${CXX:-wineg++}
3465 fi
3466
3467
3468 if test "$wxUSE_GUI" = "yes"; then
3469
3470     if test "$USE_BEOS" = 1; then
3471         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3472 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3473    { (exit 1); exit 1; }; }
3474     fi
3475
3476     if test "$TOOLKIT_GIVEN" = 1; then
3477             for toolkit in $ALL_TOOLKITS; do
3478         var=wxUSE_$toolkit
3479         eval "value=\$${var}"
3480         if test "x$value" = "xno"; then
3481           eval "$var=0"
3482         elif test "x$value" != "x"; then
3483           eval "$var=1"
3484         fi
3485
3486         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3487           eval "wx${toolkit}_VERSION=$value"
3488         fi
3489       done
3490     else
3491             for toolkit in $ALL_TOOLKITS; do
3492         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3493         eval "wxUSE_$toolkit=\$${var}"
3494       done
3495     fi
3496
3497             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
3498                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
3499                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3500
3501         case "${host}" in
3502       *-pc-os2_emx | *-pc-os2-emx )
3503         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3504     esac
3505
3506     case "$NUM_TOOLKITS" in
3507       1)
3508       ;;
3509       0)
3510         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3511 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3512    { (exit 1); exit 1; }; }
3513       ;;
3514       *)
3515         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3516 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3517    { (exit 1); exit 1; }; }
3518     esac
3519
3520     # to be removed when --disable-gtk2 isn't needed
3521     if test "x$wxUSE_GTK2" = "xyes"; then
3522         wxGTK_VERSION=2
3523     elif test "x$wxUSE_GTK2" = "xno"; then
3524         wxGTK_VERSION=1
3525     fi
3526
3527     for toolkit in $ALL_TOOLKITS; do
3528         var=wxUSE_$toolkit
3529         eval "value=\$${var}"
3530         if test "$value" = 1; then
3531           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3532           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3533 echo "${ECHO_T}$toolkit_echo" >&6; }
3534         fi
3535     done
3536 else
3537     if test "x$host_alias" != "x"; then
3538         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3539 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3540     else
3541         { echo "$as_me:$LINENO: result: base only" >&5
3542 echo "${ECHO_T}base only" >&6; }
3543     fi
3544 fi
3545
3546
3547
3548           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3549 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3550
3551 # Check whether --with-libpng was given.
3552 if test "${with_libpng+set}" = set; then
3553   withval=$with_libpng;
3554                         if test "$withval" = yes; then
3555                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3556                         elif test "$withval" = no; then
3557                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3558                         elif test "$withval" = sys; then
3559                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3560                         elif test "$withval" = builtin; then
3561                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3562                         else
3563                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3564 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3565    { (exit 1); exit 1; }; }
3566                         fi
3567
3568 else
3569
3570                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3571
3572 fi
3573
3574
3575           eval "$wx_cv_use_libpng"
3576
3577           if test "$wxUSE_LIBPNG" = yes; then
3578             { echo "$as_me:$LINENO: result: yes" >&5
3579 echo "${ECHO_T}yes" >&6; }
3580           elif test "$wxUSE_LIBPNG" = no; then
3581             { echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6; }
3583           elif test "$wxUSE_LIBPNG" = sys; then
3584             { echo "$as_me:$LINENO: result: system version" >&5
3585 echo "${ECHO_T}system version" >&6; }
3586           elif test "$wxUSE_LIBPNG" = builtin; then
3587             { echo "$as_me:$LINENO: result: builtin version" >&5
3588 echo "${ECHO_T}builtin version" >&6; }
3589           else
3590             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3591 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3592    { (exit 1); exit 1; }; }
3593           fi
3594
3595
3596           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3597 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3598
3599 # Check whether --with-libjpeg was given.
3600 if test "${with_libjpeg+set}" = set; then
3601   withval=$with_libjpeg;
3602                         if test "$withval" = yes; then
3603                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3604                         elif test "$withval" = no; then
3605                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3606                         elif test "$withval" = sys; then
3607                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3608                         elif test "$withval" = builtin; then
3609                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3610                         else
3611                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3612 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3613    { (exit 1); exit 1; }; }
3614                         fi
3615
3616 else
3617
3618                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3619
3620 fi
3621
3622
3623           eval "$wx_cv_use_libjpeg"
3624
3625           if test "$wxUSE_LIBJPEG" = yes; then
3626             { echo "$as_me:$LINENO: result: yes" >&5
3627 echo "${ECHO_T}yes" >&6; }
3628           elif test "$wxUSE_LIBJPEG" = no; then
3629             { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631           elif test "$wxUSE_LIBJPEG" = sys; then
3632             { echo "$as_me:$LINENO: result: system version" >&5
3633 echo "${ECHO_T}system version" >&6; }
3634           elif test "$wxUSE_LIBJPEG" = builtin; then
3635             { echo "$as_me:$LINENO: result: builtin version" >&5
3636 echo "${ECHO_T}builtin version" >&6; }
3637           else
3638             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3639 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3640    { (exit 1); exit 1; }; }
3641           fi
3642
3643
3644           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3645 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3646
3647 # Check whether --with-libtiff was given.
3648 if test "${with_libtiff+set}" = set; then
3649   withval=$with_libtiff;
3650                         if test "$withval" = yes; then
3651                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3652                         elif test "$withval" = no; then
3653                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3654                         elif test "$withval" = sys; then
3655                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3656                         elif test "$withval" = builtin; then
3657                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3658                         else
3659                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3660 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3661    { (exit 1); exit 1; }; }
3662                         fi
3663
3664 else
3665
3666                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3667
3668 fi
3669
3670
3671           eval "$wx_cv_use_libtiff"
3672
3673           if test "$wxUSE_LIBTIFF" = yes; then
3674             { echo "$as_me:$LINENO: result: yes" >&5
3675 echo "${ECHO_T}yes" >&6; }
3676           elif test "$wxUSE_LIBTIFF" = no; then
3677             { echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6; }
3679           elif test "$wxUSE_LIBTIFF" = sys; then
3680             { echo "$as_me:$LINENO: result: system version" >&5
3681 echo "${ECHO_T}system version" >&6; }
3682           elif test "$wxUSE_LIBTIFF" = builtin; then
3683             { echo "$as_me:$LINENO: result: builtin version" >&5
3684 echo "${ECHO_T}builtin version" >&6; }
3685           else
3686             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3687 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3688    { (exit 1); exit 1; }; }
3689           fi
3690
3691
3692           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3693 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3694
3695 # Check whether --with-libxpm was given.
3696 if test "${with_libxpm+set}" = set; then
3697   withval=$with_libxpm;
3698                         if test "$withval" = yes; then
3699                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3700                         elif test "$withval" = no; then
3701                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3702                         elif test "$withval" = sys; then
3703                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3704                         elif test "$withval" = builtin; then
3705                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3706                         else
3707                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3708 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3709    { (exit 1); exit 1; }; }
3710                         fi
3711
3712 else
3713
3714                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3715
3716 fi
3717
3718
3719           eval "$wx_cv_use_libxpm"
3720
3721           if test "$wxUSE_LIBXPM" = yes; then
3722             { echo "$as_me:$LINENO: result: yes" >&5
3723 echo "${ECHO_T}yes" >&6; }
3724           elif test "$wxUSE_LIBXPM" = no; then
3725             { echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6; }
3727           elif test "$wxUSE_LIBXPM" = sys; then
3728             { echo "$as_me:$LINENO: result: system version" >&5
3729 echo "${ECHO_T}system version" >&6; }
3730           elif test "$wxUSE_LIBXPM" = builtin; then
3731             { echo "$as_me:$LINENO: result: builtin version" >&5
3732 echo "${ECHO_T}builtin version" >&6; }
3733           else
3734             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3735 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3736    { (exit 1); exit 1; }; }
3737           fi
3738
3739
3740           withstring=
3741           defaultval=$wxUSE_ALL_FEATURES
3742           if test -z "$defaultval"; then
3743               if test x"$withstring" = xwithout; then
3744                   defaultval=yes
3745               else
3746                   defaultval=no
3747               fi
3748           fi
3749           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3750 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3751
3752 # Check whether --with-libiconv was given.
3753 if test "${with_libiconv+set}" = set; then
3754   withval=$with_libiconv;
3755                         if test "$withval" = yes; then
3756                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3757                         else
3758                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3759                         fi
3760
3761 else
3762
3763                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3764
3765 fi
3766
3767
3768           eval "$wx_cv_use_libiconv"
3769
3770           if test x"$withstring" = xwithout; then
3771             if test $wxUSE_LIBICONV = yes; then
3772               result=no
3773             else
3774               result=yes
3775             fi
3776           else
3777             result=$wxUSE_LIBICONV
3778           fi
3779
3780           { echo "$as_me:$LINENO: result: $result" >&5
3781 echo "${ECHO_T}$result" >&6; }
3782
3783
3784           withstring=
3785           defaultval=$wxUSE_ALL_FEATURES
3786           if test -z "$defaultval"; then
3787               if test x"$withstring" = xwithout; then
3788                   defaultval=yes
3789               else
3790                   defaultval=no
3791               fi
3792           fi
3793           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3794 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3795
3796 # Check whether --with-libmspack was given.
3797 if test "${with_libmspack+set}" = set; then
3798   withval=$with_libmspack;
3799                         if test "$withval" = yes; then
3800                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3801                         else
3802                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3803                         fi
3804
3805 else
3806
3807                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3808
3809 fi
3810
3811
3812           eval "$wx_cv_use_libmspack"
3813
3814           if test x"$withstring" = xwithout; then
3815             if test $wxUSE_LIBMSPACK = yes; then
3816               result=no
3817             else
3818               result=yes
3819             fi
3820           else
3821             result=$wxUSE_LIBMSPACK
3822           fi
3823
3824           { echo "$as_me:$LINENO: result: $result" >&5
3825 echo "${ECHO_T}$result" >&6; }
3826
3827
3828           withstring=without
3829           defaultval=$wxUSE_ALL_FEATURES
3830           if test -z "$defaultval"; then
3831               if test x"$withstring" = xwithout; then
3832                   defaultval=yes
3833               else
3834                   defaultval=no
3835               fi
3836           fi
3837           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3838 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3839
3840 # Check whether --with-gtkprint was given.
3841 if test "${with_gtkprint+set}" = set; then
3842   withval=$with_gtkprint;
3843                         if test "$withval" = yes; then
3844                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3845                         else
3846                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3847                         fi
3848
3849 else
3850
3851                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3852
3853 fi
3854
3855
3856           eval "$wx_cv_use_gtkprint"
3857
3858           if test x"$withstring" = xwithout; then
3859             if test $wxUSE_GTKPRINT = yes; then
3860               result=no
3861             else
3862               result=yes
3863             fi
3864           else
3865             result=$wxUSE_GTKPRINT
3866           fi
3867
3868           { echo "$as_me:$LINENO: result: $result" >&5
3869 echo "${ECHO_T}$result" >&6; }
3870
3871
3872           withstring=without
3873           defaultval=$wxUSE_ALL_FEATURES
3874           if test -z "$defaultval"; then
3875               if test x"$withstring" = xwithout; then
3876                   defaultval=yes
3877               else
3878                   defaultval=no
3879               fi
3880           fi
3881           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3882 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3883
3884 # Check whether --with-gnomeprint was given.
3885 if test "${with_gnomeprint+set}" = set; then
3886   withval=$with_gnomeprint;
3887                         if test "$withval" = yes; then
3888                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3889                         else
3890                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3891                         fi
3892
3893 else
3894
3895                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3896
3897 fi
3898
3899
3900           eval "$wx_cv_use_gnomeprint"
3901
3902           if test x"$withstring" = xwithout; then
3903             if test $wxUSE_LIBGNOMEPRINT = yes; then
3904               result=no
3905             else
3906               result=yes
3907             fi
3908           else
3909             result=$wxUSE_LIBGNOMEPRINT
3910           fi
3911
3912           { echo "$as_me:$LINENO: result: $result" >&5
3913 echo "${ECHO_T}$result" >&6; }
3914
3915
3916           withstring=
3917           defaultval=$wxUSE_ALL_FEATURES
3918           if test -z "$defaultval"; then
3919               if test x"$withstring" = xwithout; then
3920                   defaultval=yes
3921               else
3922                   defaultval=no
3923               fi
3924           fi
3925           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3926 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3927
3928 # Check whether --with-gnomevfs was given.
3929 if test "${with_gnomevfs+set}" = set; then
3930   withval=$with_gnomevfs;
3931                         if test "$withval" = yes; then
3932                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3933                         else
3934                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3935                         fi
3936
3937 else
3938
3939                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3940
3941 fi
3942
3943
3944           eval "$wx_cv_use_gnomevfs"
3945
3946           if test x"$withstring" = xwithout; then
3947             if test $wxUSE_LIBGNOMEVFS = yes; then
3948               result=no
3949             else
3950               result=yes
3951             fi
3952           else
3953             result=$wxUSE_LIBGNOMEVFS
3954           fi
3955
3956           { echo "$as_me:$LINENO: result: $result" >&5
3957 echo "${ECHO_T}$result" >&6; }
3958
3959
3960           withstring=
3961           defaultval=$wxUSE_ALL_FEATURES
3962           if test -z "$defaultval"; then
3963               if test x"$withstring" = xwithout; then
3964                   defaultval=yes
3965               else
3966                   defaultval=no
3967               fi
3968           fi
3969           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3970 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3971
3972 # Check whether --with-hildon was given.
3973 if test "${with_hildon+set}" = set; then
3974   withval=$with_hildon;
3975                         if test "$withval" = yes; then
3976                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3977                         else
3978                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3979                         fi
3980
3981 else
3982
3983                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3984
3985 fi
3986
3987
3988           eval "$wx_cv_use_hildon"
3989
3990           if test x"$withstring" = xwithout; then
3991             if test $wxUSE_LIBHILDON = yes; then
3992               result=no
3993             else
3994               result=yes
3995             fi
3996           else
3997             result=$wxUSE_LIBHILDON
3998           fi
3999
4000           { echo "$as_me:$LINENO: result: $result" >&5
4001 echo "${ECHO_T}$result" >&6; }
4002
4003
4004           withstring=
4005           defaultval=$wxUSE_ALL_FEATURES
4006           if test -z "$defaultval"; then
4007               if test x"$withstring" = xwithout; then
4008                   defaultval=yes
4009               else
4010                   defaultval=no
4011               fi
4012           fi
4013           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4014 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4015
4016 # Check whether --with-opengl was given.
4017 if test "${with_opengl+set}" = set; then
4018   withval=$with_opengl;
4019                         if test "$withval" = yes; then
4020                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4021                         else
4022                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4023                         fi
4024
4025 else
4026
4027                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4028
4029 fi
4030
4031
4032           eval "$wx_cv_use_opengl"
4033
4034           if test x"$withstring" = xwithout; then
4035             if test $wxUSE_OPENGL = yes; then
4036               result=no
4037             else
4038               result=yes
4039             fi
4040           else
4041             result=$wxUSE_OPENGL
4042           fi
4043
4044           { echo "$as_me:$LINENO: result: $result" >&5
4045 echo "${ECHO_T}$result" >&6; }
4046
4047
4048 fi
4049
4050
4051           withstring=
4052           defaultval=$wxUSE_ALL_FEATURES
4053           if test -z "$defaultval"; then
4054               if test x"$withstring" = xwithout; then
4055                   defaultval=yes
4056               else
4057                   defaultval=no
4058               fi
4059           fi
4060           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4061 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4062
4063 # Check whether --with-dmalloc was given.
4064 if test "${with_dmalloc+set}" = set; then
4065   withval=$with_dmalloc;
4066                         if test "$withval" = yes; then
4067                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4068                         else
4069                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4070                         fi
4071
4072 else
4073
4074                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4075
4076 fi
4077
4078
4079           eval "$wx_cv_use_dmalloc"
4080
4081           if test x"$withstring" = xwithout; then
4082             if test $wxUSE_DMALLOC = yes; then
4083               result=no
4084             else
4085               result=yes
4086             fi
4087           else
4088             result=$wxUSE_DMALLOC
4089           fi
4090
4091           { echo "$as_me:$LINENO: result: $result" >&5
4092 echo "${ECHO_T}$result" >&6; }
4093
4094
4095           withstring=
4096           defaultval=$wxUSE_ALL_FEATURES
4097           if test -z "$defaultval"; then
4098               if test x"$withstring" = xwithout; then
4099                   defaultval=yes
4100               else
4101                   defaultval=no
4102               fi
4103           fi
4104           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4105 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4106
4107 # Check whether --with-sdl was given.
4108 if test "${with_sdl+set}" = set; then
4109   withval=$with_sdl;
4110                         if test "$withval" = yes; then
4111                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4112                         else
4113                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4114                         fi
4115
4116 else
4117
4118                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4119
4120 fi
4121
4122
4123           eval "$wx_cv_use_sdl"
4124
4125           if test x"$withstring" = xwithout; then
4126             if test $wxUSE_LIBSDL = yes; then
4127               result=no
4128             else
4129               result=yes
4130             fi
4131           else
4132             result=$wxUSE_LIBSDL
4133           fi
4134
4135           { echo "$as_me:$LINENO: result: $result" >&5
4136 echo "${ECHO_T}$result" >&6; }
4137
4138
4139           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4140 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4141
4142 # Check whether --with-regex was given.
4143 if test "${with_regex+set}" = set; then
4144   withval=$with_regex;
4145                         if test "$withval" = yes; then
4146                           wx_cv_use_regex='wxUSE_REGEX=yes'
4147                         elif test "$withval" = no; then
4148                           wx_cv_use_regex='wxUSE_REGEX=no'
4149                         elif test "$withval" = sys; then
4150                           wx_cv_use_regex='wxUSE_REGEX=sys'
4151                         elif test "$withval" = builtin; then
4152                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4153                         else
4154                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4155 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4156    { (exit 1); exit 1; }; }
4157                         fi
4158
4159 else
4160
4161                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4162
4163 fi
4164
4165
4166           eval "$wx_cv_use_regex"
4167
4168           if test "$wxUSE_REGEX" = yes; then
4169             { echo "$as_me:$LINENO: result: yes" >&5
4170 echo "${ECHO_T}yes" >&6; }
4171           elif test "$wxUSE_REGEX" = no; then
4172             { echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6; }
4174           elif test "$wxUSE_REGEX" = sys; then
4175             { echo "$as_me:$LINENO: result: system version" >&5
4176 echo "${ECHO_T}system version" >&6; }
4177           elif test "$wxUSE_REGEX" = builtin; then
4178             { echo "$as_me:$LINENO: result: builtin version" >&5
4179 echo "${ECHO_T}builtin version" >&6; }
4180           else
4181             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4182 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4183    { (exit 1); exit 1; }; }
4184           fi
4185
4186
4187           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4188 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4189
4190 # Check whether --with-zlib was given.
4191 if test "${with_zlib+set}" = set; then
4192   withval=$with_zlib;
4193                         if test "$withval" = yes; then
4194                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4195                         elif test "$withval" = no; then
4196                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4197                         elif test "$withval" = sys; then
4198                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4199                         elif test "$withval" = builtin; then
4200                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4201                         else
4202                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4203 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4204    { (exit 1); exit 1; }; }
4205                         fi
4206
4207 else
4208
4209                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4210
4211 fi
4212
4213
4214           eval "$wx_cv_use_zlib"
4215
4216           if test "$wxUSE_ZLIB" = yes; then
4217             { echo "$as_me:$LINENO: result: yes" >&5
4218 echo "${ECHO_T}yes" >&6; }
4219           elif test "$wxUSE_ZLIB" = no; then
4220             { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4222           elif test "$wxUSE_ZLIB" = sys; then
4223             { echo "$as_me:$LINENO: result: system version" >&5
4224 echo "${ECHO_T}system version" >&6; }
4225           elif test "$wxUSE_ZLIB" = builtin; then
4226             { echo "$as_me:$LINENO: result: builtin version" >&5
4227 echo "${ECHO_T}builtin version" >&6; }
4228           else
4229             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4230 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4231    { (exit 1); exit 1; }; }
4232           fi
4233
4234
4235           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4236 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4237
4238 # Check whether --with-expat was given.
4239 if test "${with_expat+set}" = set; then
4240   withval=$with_expat;
4241                         if test "$withval" = yes; then
4242                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4243                         elif test "$withval" = no; then
4244                           wx_cv_use_expat='wxUSE_EXPAT=no'
4245                         elif test "$withval" = sys; then
4246                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4247                         elif test "$withval" = builtin; then
4248                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4249                         else
4250                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4251 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4252    { (exit 1); exit 1; }; }
4253                         fi
4254
4255 else
4256
4257                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4258
4259 fi
4260
4261
4262           eval "$wx_cv_use_expat"
4263
4264           if test "$wxUSE_EXPAT" = yes; then
4265             { echo "$as_me:$LINENO: result: yes" >&5
4266 echo "${ECHO_T}yes" >&6; }
4267           elif test "$wxUSE_EXPAT" = no; then
4268             { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4270           elif test "$wxUSE_EXPAT" = sys; then
4271             { echo "$as_me:$LINENO: result: system version" >&5
4272 echo "${ECHO_T}system version" >&6; }
4273           elif test "$wxUSE_EXPAT" = builtin; then
4274             { echo "$as_me:$LINENO: result: builtin version" >&5
4275 echo "${ECHO_T}builtin version" >&6; }
4276           else
4277             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4278 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4279    { (exit 1); exit 1; }; }
4280           fi
4281
4282
4283 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4284 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4285
4286 # Check whether --with-macosx-sdk was given.
4287 if test "${with_macosx_sdk+set}" = set; then
4288   withval=$with_macosx_sdk;
4289         wxUSE_MACOSX_SDK=$withval
4290         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4291
4292 fi
4293
4294 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4295 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4296
4297 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4298 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4299
4300 # Check whether --with-macosx-version-min was given.
4301 if test "${with_macosx_version_min+set}" = set; then
4302   withval=$with_macosx_version_min;
4303         wxUSE_MACOSX_VERSION_MIN=$withval
4304         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4305
4306 fi
4307
4308 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4309 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4310
4311
4312
4313           enablestring=disable
4314           defaultval=
4315           if test -z "$defaultval"; then
4316               if test x"$enablestring" = xdisable; then
4317                   defaultval=yes
4318               else
4319                   defaultval=no
4320               fi
4321           fi
4322
4323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4324 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4325           # Check whether --enable-shared was given.
4326 if test "${enable_shared+set}" = set; then
4327   enableval=$enable_shared;
4328                           if test "$enableval" = yes; then
4329                             wx_cv_use_shared='wxUSE_SHARED=yes'
4330                           else
4331                             wx_cv_use_shared='wxUSE_SHARED=no'
4332                           fi
4333
4334 else
4335
4336                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4337
4338 fi
4339
4340
4341           eval "$wx_cv_use_shared"
4342
4343           if test x"$enablestring" = xdisable; then
4344             if test $wxUSE_SHARED = yes; then
4345               result=no
4346             else
4347               result=yes
4348             fi
4349           else
4350             result=$wxUSE_SHARED
4351           fi
4352
4353           { echo "$as_me:$LINENO: result: $result" >&5
4354 echo "${ECHO_T}$result" >&6; }
4355
4356
4357           enablestring=disable
4358           defaultval=
4359           if test -z "$defaultval"; then
4360               if test x"$enablestring" = xdisable; then
4361                   defaultval=yes
4362               else
4363                   defaultval=no
4364               fi
4365           fi
4366
4367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4368 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4369           # Check whether --enable-optimise was given.
4370 if test "${enable_optimise+set}" = set; then
4371   enableval=$enable_optimise;
4372                           if test "$enableval" = yes; then
4373                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4374                           else
4375                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4376                           fi
4377
4378 else
4379
4380                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4381
4382 fi
4383
4384
4385           eval "$wx_cv_use_optimise"
4386
4387           if test x"$enablestring" = xdisable; then
4388             if test $wxUSE_OPTIMISE = yes; then
4389               result=no
4390             else
4391               result=yes
4392             fi
4393           else
4394             result=$wxUSE_OPTIMISE
4395           fi
4396
4397           { echo "$as_me:$LINENO: result: $result" >&5
4398 echo "${ECHO_T}$result" >&6; }
4399
4400
4401           enablestring=
4402           defaultval=
4403           if test -z "$defaultval"; then
4404               if test x"$enablestring" = xdisable; then
4405                   defaultval=yes
4406               else
4407                   defaultval=no
4408               fi
4409           fi
4410
4411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4412 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4413           # Check whether --enable-debug was given.
4414 if test "${enable_debug+set}" = set; then
4415   enableval=$enable_debug;
4416                           if test "$enableval" = yes; then
4417                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4418                           else
4419                             wx_cv_use_debug='wxUSE_DEBUG=no'
4420                           fi
4421
4422 else
4423
4424                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4425
4426 fi
4427
4428
4429           eval "$wx_cv_use_debug"
4430
4431           if test x"$enablestring" = xdisable; then
4432             if test $wxUSE_DEBUG = yes; then
4433               result=no
4434             else
4435               result=yes
4436             fi
4437           else
4438             result=$wxUSE_DEBUG
4439           fi
4440
4441           { echo "$as_me:$LINENO: result: $result" >&5
4442 echo "${ECHO_T}$result" >&6; }
4443
4444
4445           enablestring=
4446           defaultval=
4447           if test -z "$defaultval"; then
4448               if test x"$enablestring" = xdisable; then
4449                   defaultval=yes
4450               else
4451                   defaultval=no
4452               fi
4453           fi
4454
4455           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4456 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4457           # Check whether --enable-stl was given.
4458 if test "${enable_stl+set}" = set; then
4459   enableval=$enable_stl;
4460                           if test "$enableval" = yes; then
4461                             wx_cv_use_stl='wxUSE_STL=yes'
4462                           else
4463                             wx_cv_use_stl='wxUSE_STL=no'
4464                           fi
4465
4466 else
4467
4468                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4469
4470 fi
4471
4472
4473           eval "$wx_cv_use_stl"
4474
4475           if test x"$enablestring" = xdisable; then
4476             if test $wxUSE_STL = yes; then
4477               result=no
4478             else
4479               result=yes
4480             fi
4481           else
4482             result=$wxUSE_STL
4483           fi
4484
4485           { echo "$as_me:$LINENO: result: $result" >&5
4486 echo "${ECHO_T}$result" >&6; }
4487
4488
4489           enablestring=
4490           defaultval=
4491           if test -z "$defaultval"; then
4492               if test x"$enablestring" = xdisable; then
4493                   defaultval=yes
4494               else
4495                   defaultval=no
4496               fi
4497           fi
4498
4499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4500 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4501           # Check whether --enable-std_iostreams was given.
4502 if test "${enable_std_iostreams+set}" = set; then
4503   enableval=$enable_std_iostreams;
4504                           if test "$enableval" = yes; then
4505                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4506                           else
4507                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4508                           fi
4509
4510 else
4511
4512                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4513
4514 fi
4515
4516
4517           eval "$wx_cv_use_std_iostreams"
4518
4519           if test x"$enablestring" = xdisable; then
4520             if test $wxUSE_STD_IOSTREAM = yes; then
4521               result=no
4522             else
4523               result=yes
4524             fi
4525           else
4526             result=$wxUSE_STD_IOSTREAM
4527           fi
4528
4529           { echo "$as_me:$LINENO: result: $result" >&5
4530 echo "${ECHO_T}$result" >&6; }
4531
4532
4533           enablestring=
4534           defaultval=
4535           if test -z "$defaultval"; then
4536               if test x"$enablestring" = xdisable; then
4537                   defaultval=yes
4538               else
4539                   defaultval=no
4540               fi
4541           fi
4542
4543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4544 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4545           # Check whether --enable-std_string was given.
4546 if test "${enable_std_string+set}" = set; then
4547   enableval=$enable_std_string;
4548                           if test "$enableval" = yes; then
4549                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4550                           else
4551                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4552                           fi
4553
4554 else
4555
4556                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4557
4558 fi
4559
4560
4561           eval "$wx_cv_use_std_string"
4562
4563           if test x"$enablestring" = xdisable; then
4564             if test $wxUSE_STD_STRING = yes; then
4565               result=no
4566             else
4567               result=yes
4568             fi
4569           else
4570             result=$wxUSE_STD_STRING
4571           fi
4572
4573           { echo "$as_me:$LINENO: result: $result" >&5
4574 echo "${ECHO_T}$result" >&6; }
4575
4576
4577           enablestring=disable
4578           defaultval=
4579           if test -z "$defaultval"; then
4580               if test x"$enablestring" = xdisable; then
4581                   defaultval=yes
4582               else
4583                   defaultval=no
4584               fi
4585           fi
4586
4587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4588 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4589           # Check whether --enable-unicode was given.
4590 if test "${enable_unicode+set}" = set; then
4591   enableval=$enable_unicode;
4592                           if test "$enableval" = yes; then
4593                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4594                           else
4595                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4596                           fi
4597
4598 else
4599
4600                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4601
4602 fi
4603
4604
4605           eval "$wx_cv_use_unicode"
4606
4607           if test x"$enablestring" = xdisable; then
4608             if test $wxUSE_UNICODE = yes; then
4609               result=no
4610             else
4611               result=yes
4612             fi
4613           else
4614             result=$wxUSE_UNICODE
4615           fi
4616
4617           { echo "$as_me:$LINENO: result: $result" >&5
4618 echo "${ECHO_T}$result" >&6; }
4619
4620
4621           enablestring=
4622           defaultval=
4623           if test -z "$defaultval"; then
4624               if test x"$enablestring" = xdisable; then
4625                   defaultval=yes
4626               else
4627                   defaultval=no
4628               fi
4629           fi
4630
4631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4632 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4633           # Check whether --enable-mslu was given.
4634 if test "${enable_mslu+set}" = set; then
4635   enableval=$enable_mslu;
4636                           if test "$enableval" = yes; then
4637                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4638                           else
4639                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4640                           fi
4641
4642 else
4643
4644                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4645
4646 fi
4647
4648
4649           eval "$wx_cv_use_mslu"
4650
4651           if test x"$enablestring" = xdisable; then
4652             if test $wxUSE_UNICODE_MSLU = yes; then
4653               result=no
4654             else
4655               result=yes
4656             fi
4657           else
4658             result=$wxUSE_UNICODE_MSLU
4659           fi
4660
4661           { echo "$as_me:$LINENO: result: $result" >&5
4662 echo "${ECHO_T}$result" >&6; }
4663
4664
4665           enablestring=
4666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4667 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4668           # Check whether --enable-utf8 was given.
4669 if test "${enable_utf8+set}" = set; then
4670   enableval=$enable_utf8;
4671                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4672
4673 else
4674
4675                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4676
4677 fi
4678
4679
4680           eval "$wx_cv_use_utf8"
4681
4682           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4683 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4684
4685
4686           enablestring=
4687           defaultval=
4688           if test -z "$defaultval"; then
4689               if test x"$enablestring" = xdisable; then
4690                   defaultval=yes
4691               else
4692                   defaultval=no
4693               fi
4694           fi
4695
4696           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4697 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4698           # Check whether --enable-utf8only was given.
4699 if test "${enable_utf8only+set}" = set; then
4700   enableval=$enable_utf8only;
4701                           if test "$enableval" = yes; then
4702                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4703                           else
4704                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4705                           fi
4706
4707 else
4708
4709                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4710
4711 fi
4712
4713
4714           eval "$wx_cv_use_utf8only"
4715
4716           if test x"$enablestring" = xdisable; then
4717             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4718               result=no
4719             else
4720               result=yes
4721             fi
4722           else
4723             result=$wxUSE_UNICODE_UTF8_LOCALE
4724           fi
4725
4726           { echo "$as_me:$LINENO: result: $result" >&5
4727 echo "${ECHO_T}$result" >&6; }
4728
4729
4730           enablestring=
4731           defaultval=
4732           if test -z "$defaultval"; then
4733               if test x"$enablestring" = xdisable; then
4734                   defaultval=yes
4735               else
4736                   defaultval=no
4737               fi
4738           fi
4739
4740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4741 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4742           # Check whether --enable-extended_rtti was given.
4743 if test "${enable_extended_rtti+set}" = set; then
4744   enableval=$enable_extended_rtti;
4745                           if test "$enableval" = yes; then
4746                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4747                           else
4748                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4749                           fi
4750
4751 else
4752
4753                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4754
4755 fi
4756
4757
4758           eval "$wx_cv_use_extended_rtti"
4759
4760           if test x"$enablestring" = xdisable; then
4761             if test $wxUSE_EXTENDED_RTTI = yes; then
4762               result=no
4763             else
4764               result=yes
4765             fi
4766           else
4767             result=$wxUSE_EXTENDED_RTTI
4768           fi
4769
4770           { echo "$as_me:$LINENO: result: $result" >&5
4771 echo "${ECHO_T}$result" >&6; }
4772
4773 if test "$USE_OS2" = 1; then
4774     DEFAULT_wxUSE_OMF=no
4775
4776           enablestring=
4777           defaultval=
4778           if test -z "$defaultval"; then
4779               if test x"$enablestring" = xdisable; then
4780                   defaultval=yes
4781               else
4782                   defaultval=no
4783               fi
4784           fi
4785
4786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4787 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4788           # Check whether --enable-omf was given.
4789 if test "${enable_omf+set}" = set; then
4790   enableval=$enable_omf;
4791                           if test "$enableval" = yes; then
4792                             wx_cv_use_omf='wxUSE_OMF=yes'
4793                           else
4794                             wx_cv_use_omf='wxUSE_OMF=no'
4795                           fi
4796
4797 else
4798
4799                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4800
4801 fi
4802
4803
4804           eval "$wx_cv_use_omf"
4805
4806           if test x"$enablestring" = xdisable; then
4807             if test $wxUSE_OMF = yes; then
4808               result=no
4809             else
4810               result=yes
4811             fi
4812           else
4813             result=$wxUSE_OMF
4814           fi
4815
4816           { echo "$as_me:$LINENO: result: $result" >&5
4817 echo "${ECHO_T}$result" >&6; }
4818
4819 fi
4820
4821 if test "$wxUSE_DEBUG" = "yes"; then
4822     DEFAULT_wxUSE_DEBUG_FLAG=yes
4823     DEFAULT_wxUSE_DEBUG_INFO=yes
4824     BUILD=debug
4825 elif test "$wxUSE_DEBUG" = "no"; then
4826     DEFAULT_wxUSE_DEBUG_FLAG=no
4827     DEFAULT_wxUSE_DEBUG_INFO=no
4828     BUILD=release
4829 fi
4830
4831
4832           enablestring=
4833           defaultval=
4834           if test -z "$defaultval"; then
4835               if test x"$enablestring" = xdisable; then
4836                   defaultval=yes
4837               else
4838                   defaultval=no
4839               fi
4840           fi
4841
4842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4843 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4844           # Check whether --enable-debug_flag was given.
4845 if test "${enable_debug_flag+set}" = set; then
4846   enableval=$enable_debug_flag;
4847                           if test "$enableval" = yes; then
4848                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4849                           else
4850                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4851                           fi
4852
4853 else
4854
4855                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4856
4857 fi
4858
4859
4860           eval "$wx_cv_use_debug_flag"
4861
4862           if test x"$enablestring" = xdisable; then
4863             if test $wxUSE_DEBUG_FLAG = yes; then
4864               result=no
4865             else
4866               result=yes
4867             fi
4868           else
4869             result=$wxUSE_DEBUG_FLAG
4870           fi
4871
4872           { echo "$as_me:$LINENO: result: $result" >&5
4873 echo "${ECHO_T}$result" >&6; }
4874
4875
4876           enablestring=
4877           defaultval=
4878           if test -z "$defaultval"; then
4879               if test x"$enablestring" = xdisable; then
4880                   defaultval=yes
4881               else
4882                   defaultval=no
4883               fi
4884           fi
4885
4886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4887 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4888           # Check whether --enable-debug_info was given.
4889 if test "${enable_debug_info+set}" = set; then
4890   enableval=$enable_debug_info;
4891                           if test "$enableval" = yes; then
4892                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4893                           else
4894                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4895                           fi
4896
4897 else
4898
4899                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4900
4901 fi
4902
4903
4904           eval "$wx_cv_use_debug_info"
4905
4906           if test x"$enablestring" = xdisable; then
4907             if test $wxUSE_DEBUG_INFO = yes; then
4908               result=no
4909             else
4910               result=yes
4911             fi
4912           else
4913             result=$wxUSE_DEBUG_INFO
4914           fi
4915
4916           { echo "$as_me:$LINENO: result: $result" >&5
4917 echo "${ECHO_T}$result" >&6; }
4918
4919
4920 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4921     wxUSE_DEBUG=yes
4922     BUILD=debug
4923 fi
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}-debug_gdb" >&5
4937 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4938           # Check whether --enable-debug_gdb was given.
4939 if test "${enable_debug_gdb+set}" = set; then
4940   enableval=$enable_debug_gdb;
4941                           if test "$enableval" = yes; then
4942                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4943                           else
4944                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4945                           fi
4946
4947 else
4948
4949                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4950
4951 fi
4952
4953
4954           eval "$wx_cv_use_debug_gdb"
4955
4956           if test x"$enablestring" = xdisable; then
4957             if test $wxUSE_DEBUG_GDB = yes; then
4958               result=no
4959             else
4960               result=yes
4961             fi
4962           else
4963             result=$wxUSE_DEBUG_GDB
4964           fi
4965
4966           { echo "$as_me:$LINENO: result: $result" >&5
4967 echo "${ECHO_T}$result" >&6; }
4968
4969
4970           enablestring=
4971           defaultval=
4972           if test -z "$defaultval"; then
4973               if test x"$enablestring" = xdisable; then
4974                   defaultval=yes
4975               else
4976                   defaultval=no
4977               fi
4978           fi
4979
4980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4981 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4982           # Check whether --enable-debug_cntxt was given.
4983 if test "${enable_debug_cntxt+set}" = set; then
4984   enableval=$enable_debug_cntxt;
4985                           if test "$enableval" = yes; then
4986                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4987                           else
4988                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4989                           fi
4990
4991 else
4992
4993                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4994
4995 fi
4996
4997
4998           eval "$wx_cv_use_debug_cntxt"
4999
5000           if test x"$enablestring" = xdisable; then
5001             if test $wxUSE_DEBUG_CONTEXT = yes; then
5002               result=no
5003             else
5004               result=yes
5005             fi
5006           else
5007             result=$wxUSE_DEBUG_CONTEXT
5008           fi
5009
5010           { echo "$as_me:$LINENO: result: $result" >&5
5011 echo "${ECHO_T}$result" >&6; }
5012
5013
5014           enablestring=
5015           defaultval=
5016           if test -z "$defaultval"; then
5017               if test x"$enablestring" = xdisable; then
5018                   defaultval=yes
5019               else
5020                   defaultval=no
5021               fi
5022           fi
5023
5024           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5025 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5026           # Check whether --enable-mem_tracing was given.
5027 if test "${enable_mem_tracing+set}" = set; then
5028   enableval=$enable_mem_tracing;
5029                           if test "$enableval" = yes; then
5030                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5031                           else
5032                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5033                           fi
5034
5035 else
5036
5037                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5038
5039 fi
5040
5041
5042           eval "$wx_cv_use_mem_tracing"
5043
5044           if test x"$enablestring" = xdisable; then
5045             if test $wxUSE_MEM_TRACING = yes; then
5046               result=no
5047             else
5048               result=yes
5049             fi
5050           else
5051             result=$wxUSE_MEM_TRACING
5052           fi
5053
5054           { echo "$as_me:$LINENO: result: $result" >&5
5055 echo "${ECHO_T}$result" >&6; }
5056
5057
5058           enablestring=
5059           defaultval=
5060           if test -z "$defaultval"; then
5061               if test x"$enablestring" = xdisable; then
5062                   defaultval=yes
5063               else
5064                   defaultval=no
5065               fi
5066           fi
5067
5068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5069 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5070           # Check whether --enable-profile was given.
5071 if test "${enable_profile+set}" = set; then
5072   enableval=$enable_profile;
5073                           if test "$enableval" = yes; then
5074                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5075                           else
5076                             wx_cv_use_profile='wxUSE_PROFILE=no'
5077                           fi
5078
5079 else
5080
5081                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5082
5083 fi
5084
5085
5086           eval "$wx_cv_use_profile"
5087
5088           if test x"$enablestring" = xdisable; then
5089             if test $wxUSE_PROFILE = yes; then
5090               result=no
5091             else
5092               result=yes
5093             fi
5094           else
5095             result=$wxUSE_PROFILE
5096           fi
5097
5098           { echo "$as_me:$LINENO: result: $result" >&5
5099 echo "${ECHO_T}$result" >&6; }
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}-no_rtti" >&5
5113 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5114           # Check whether --enable-no_rtti was given.
5115 if test "${enable_no_rtti+set}" = set; then
5116   enableval=$enable_no_rtti;
5117                           if test "$enableval" = yes; then
5118                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5119                           else
5120                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5121                           fi
5122
5123 else
5124
5125                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5126
5127 fi
5128
5129
5130           eval "$wx_cv_use_no_rtti"
5131
5132           if test x"$enablestring" = xdisable; then
5133             if test $wxUSE_NO_RTTI = yes; then
5134               result=no
5135             else
5136               result=yes
5137             fi
5138           else
5139             result=$wxUSE_NO_RTTI
5140           fi
5141
5142           { echo "$as_me:$LINENO: result: $result" >&5
5143 echo "${ECHO_T}$result" >&6; }
5144
5145
5146           enablestring=
5147           defaultval=
5148           if test -z "$defaultval"; then
5149               if test x"$enablestring" = xdisable; then
5150                   defaultval=yes
5151               else
5152                   defaultval=no
5153               fi
5154           fi
5155
5156           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5157 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5158           # Check whether --enable-no_exceptions was given.
5159 if test "${enable_no_exceptions+set}" = set; then
5160   enableval=$enable_no_exceptions;
5161                           if test "$enableval" = yes; then
5162                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5163                           else
5164                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5165                           fi
5166
5167 else
5168
5169                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5170
5171 fi
5172
5173
5174           eval "$wx_cv_use_no_exceptions"
5175
5176           if test x"$enablestring" = xdisable; then
5177             if test $wxUSE_NO_EXCEPTIONS = yes; then
5178               result=no
5179             else
5180               result=yes
5181             fi
5182           else
5183             result=$wxUSE_NO_EXCEPTIONS
5184           fi
5185
5186           { echo "$as_me:$LINENO: result: $result" >&5
5187 echo "${ECHO_T}$result" >&6; }
5188
5189
5190           enablestring=
5191           defaultval=
5192           if test -z "$defaultval"; then
5193               if test x"$enablestring" = xdisable; then
5194                   defaultval=yes
5195               else
5196                   defaultval=no
5197               fi
5198           fi
5199
5200           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5201 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5202           # Check whether --enable-permissive was given.
5203 if test "${enable_permissive+set}" = set; then
5204   enableval=$enable_permissive;
5205                           if test "$enableval" = yes; then
5206                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5207                           else
5208                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5209                           fi
5210
5211 else
5212
5213                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5214
5215 fi
5216
5217
5218           eval "$wx_cv_use_permissive"
5219
5220           if test x"$enablestring" = xdisable; then
5221             if test $wxUSE_PERMISSIVE = yes; then
5222               result=no
5223             else
5224               result=yes
5225             fi
5226           else
5227             result=$wxUSE_PERMISSIVE
5228           fi
5229
5230           { echo "$as_me:$LINENO: result: $result" >&5
5231 echo "${ECHO_T}$result" >&6; }
5232
5233
5234           enablestring=
5235           defaultval=
5236           if test -z "$defaultval"; then
5237               if test x"$enablestring" = xdisable; then
5238                   defaultval=yes
5239               else
5240                   defaultval=no
5241               fi
5242           fi
5243
5244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5245 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5246           # Check whether --enable-no_deps was given.
5247 if test "${enable_no_deps+set}" = set; then
5248   enableval=$enable_no_deps;
5249                           if test "$enableval" = yes; then
5250                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5251                           else
5252                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5253                           fi
5254
5255 else
5256
5257                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5258
5259 fi
5260
5261
5262           eval "$wx_cv_use_no_deps"
5263
5264           if test x"$enablestring" = xdisable; then
5265             if test $wxUSE_NO_DEPS = yes; then
5266               result=no
5267             else
5268               result=yes
5269             fi
5270           else
5271             result=$wxUSE_NO_DEPS
5272           fi
5273
5274           { echo "$as_me:$LINENO: result: $result" >&5
5275 echo "${ECHO_T}$result" >&6; }
5276
5277
5278           enablestring=disable
5279           defaultval=
5280           if test -z "$defaultval"; then
5281               if test x"$enablestring" = xdisable; then
5282                   defaultval=yes
5283               else
5284                   defaultval=no
5285               fi
5286           fi
5287
5288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5289 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5290           # Check whether --enable-vararg_macros was given.
5291 if test "${enable_vararg_macros+set}" = set; then
5292   enableval=$enable_vararg_macros;
5293                           if test "$enableval" = yes; then
5294                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5295                           else
5296                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5297                           fi
5298
5299 else
5300
5301                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5302
5303 fi
5304
5305
5306           eval "$wx_cv_use_vararg_macros"
5307
5308           if test x"$enablestring" = xdisable; then
5309             if test $wxUSE_VARARG_MACROS = yes; then
5310               result=no
5311             else
5312               result=yes
5313             fi
5314           else
5315             result=$wxUSE_VARARG_MACROS
5316           fi
5317
5318           { echo "$as_me:$LINENO: result: $result" >&5
5319 echo "${ECHO_T}$result" >&6; }
5320
5321
5322           enablestring=
5323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5324 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5325           # Check whether --enable-universal_binary was given.
5326 if test "${enable_universal_binary+set}" = set; then
5327   enableval=$enable_universal_binary;
5328                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5329
5330 else
5331
5332                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5333
5334 fi
5335
5336
5337           eval "$wx_cv_use_universal_binary"
5338
5339           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5340 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5341
5342
5343
5344           enablestring=
5345           defaultval=
5346           if test -z "$defaultval"; then
5347               if test x"$enablestring" = xdisable; then
5348                   defaultval=yes
5349               else
5350                   defaultval=no
5351               fi
5352           fi
5353
5354           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5355 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5356           # Check whether --enable-compat26 was given.
5357 if test "${enable_compat26+set}" = set; then
5358   enableval=$enable_compat26;
5359                           if test "$enableval" = yes; then
5360                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5361                           else
5362                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5363                           fi
5364
5365 else
5366
5367                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5368
5369 fi
5370
5371
5372           eval "$wx_cv_use_compat26"
5373
5374           if test x"$enablestring" = xdisable; then
5375             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5376               result=no
5377             else
5378               result=yes
5379             fi
5380           else
5381             result=$WXWIN_COMPATIBILITY_2_6
5382           fi
5383
5384           { echo "$as_me:$LINENO: result: $result" >&5
5385 echo "${ECHO_T}$result" >&6; }
5386
5387
5388           enablestring=disable
5389           defaultval=
5390           if test -z "$defaultval"; then
5391               if test x"$enablestring" = xdisable; then
5392                   defaultval=yes
5393               else
5394                   defaultval=no
5395               fi
5396           fi
5397
5398           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5399 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5400           # Check whether --enable-compat28 was given.
5401 if test "${enable_compat28+set}" = set; then
5402   enableval=$enable_compat28;
5403                           if test "$enableval" = yes; then
5404                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5405                           else
5406                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5407                           fi
5408
5409 else
5410
5411                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5412
5413 fi
5414
5415
5416           eval "$wx_cv_use_compat28"
5417
5418           if test x"$enablestring" = xdisable; then
5419             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5420               result=no
5421             else
5422               result=yes
5423             fi
5424           else
5425             result=$WXWIN_COMPATIBILITY_2_8
5426           fi
5427
5428           { echo "$as_me:$LINENO: result: $result" >&5
5429 echo "${ECHO_T}$result" >&6; }
5430
5431
5432
5433           enablestring=disable
5434           defaultval=
5435           if test -z "$defaultval"; then
5436               if test x"$enablestring" = xdisable; then
5437                   defaultval=yes
5438               else
5439                   defaultval=no
5440               fi
5441           fi
5442
5443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5444 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5445           # Check whether --enable-rpath was given.
5446 if test "${enable_rpath+set}" = set; then
5447   enableval=$enable_rpath;
5448                           if test "$enableval" = yes; then
5449                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5450                           else
5451                             wx_cv_use_rpath='wxUSE_RPATH=no'
5452                           fi
5453
5454 else
5455
5456                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5457
5458 fi
5459
5460
5461           eval "$wx_cv_use_rpath"
5462
5463           if test x"$enablestring" = xdisable; then
5464             if test $wxUSE_RPATH = yes; then
5465               result=no
5466             else
5467               result=yes
5468             fi
5469           else
5470             result=$wxUSE_RPATH
5471           fi
5472
5473           { echo "$as_me:$LINENO: result: $result" >&5
5474 echo "${ECHO_T}$result" >&6; }
5475
5476
5477
5478           enablestring=
5479           defaultval=
5480           if test -z "$defaultval"; then
5481               if test x"$enablestring" = xdisable; then
5482                   defaultval=yes
5483               else
5484                   defaultval=no
5485               fi
5486           fi
5487
5488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5489 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5490           # Check whether --enable-objc_uniquifying was given.
5491 if test "${enable_objc_uniquifying+set}" = set; then
5492   enableval=$enable_objc_uniquifying;
5493                           if test "$enableval" = yes; then
5494                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5495                           else
5496                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5497                           fi
5498
5499 else
5500
5501                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5502
5503 fi
5504
5505
5506           eval "$wx_cv_use_objc_uniquifying"
5507
5508           if test x"$enablestring" = xdisable; then
5509             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5510               result=no
5511             else
5512               result=yes
5513             fi
5514           else
5515             result=$wxUSE_OBJC_UNIQUIFYING
5516           fi
5517
5518           { echo "$as_me:$LINENO: result: $result" >&5
5519 echo "${ECHO_T}$result" >&6; }
5520
5521
5522
5523           enablestring=disable
5524           defaultval=
5525           if test -z "$defaultval"; then
5526               if test x"$enablestring" = xdisable; then
5527                   defaultval=yes
5528               else
5529                   defaultval=no
5530               fi
5531           fi
5532
5533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5534 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5535           # Check whether --enable-visibility was given.
5536 if test "${enable_visibility+set}" = set; then
5537   enableval=$enable_visibility;
5538                           if test "$enableval" = yes; then
5539                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5540                           else
5541                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5542                           fi
5543
5544 else
5545
5546                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5547
5548 fi
5549
5550
5551           eval "$wx_cv_use_visibility"
5552
5553           if test x"$enablestring" = xdisable; then
5554             if test $wxUSE_VISIBILITY = yes; then
5555               result=no
5556             else
5557               result=yes
5558             fi
5559           else
5560             result=$wxUSE_VISIBILITY
5561           fi
5562
5563           { echo "$as_me:$LINENO: result: $result" >&5
5564 echo "${ECHO_T}$result" >&6; }
5565
5566
5567
5568
5569           enablestring=
5570           defaultval=$wxUSE_ALL_FEATURES
5571           if test -z "$defaultval"; then
5572               if test x"$enablestring" = xdisable; then
5573                   defaultval=yes
5574               else
5575                   defaultval=no
5576               fi
5577           fi
5578
5579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5580 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5581           # Check whether --enable-intl was given.
5582 if test "${enable_intl+set}" = set; then
5583   enableval=$enable_intl;
5584                           if test "$enableval" = yes; then
5585                             wx_cv_use_intl='wxUSE_INTL=yes'
5586                           else
5587                             wx_cv_use_intl='wxUSE_INTL=no'
5588                           fi
5589
5590 else
5591
5592                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5593
5594 fi
5595
5596
5597           eval "$wx_cv_use_intl"
5598
5599           if test x"$enablestring" = xdisable; then
5600             if test $wxUSE_INTL = yes; then
5601               result=no
5602             else
5603               result=yes
5604             fi
5605           else
5606             result=$wxUSE_INTL
5607           fi
5608
5609           { echo "$as_me:$LINENO: result: $result" >&5
5610 echo "${ECHO_T}$result" >&6; }
5611
5612
5613           enablestring=
5614           defaultval=$wxUSE_ALL_FEATURES
5615           if test -z "$defaultval"; then
5616               if test x"$enablestring" = xdisable; then
5617                   defaultval=yes
5618               else
5619                   defaultval=no
5620               fi
5621           fi
5622
5623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5624 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5625           # Check whether --enable-config was given.
5626 if test "${enable_config+set}" = set; then
5627   enableval=$enable_config;
5628                           if test "$enableval" = yes; then
5629                             wx_cv_use_config='wxUSE_CONFIG=yes'
5630                           else
5631                             wx_cv_use_config='wxUSE_CONFIG=no'
5632                           fi
5633
5634 else
5635
5636                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5637
5638 fi
5639
5640
5641           eval "$wx_cv_use_config"
5642
5643           if test x"$enablestring" = xdisable; then
5644             if test $wxUSE_CONFIG = yes; then
5645               result=no
5646             else
5647               result=yes
5648             fi
5649           else
5650             result=$wxUSE_CONFIG
5651           fi
5652
5653           { echo "$as_me:$LINENO: result: $result" >&5
5654 echo "${ECHO_T}$result" >&6; }
5655
5656
5657
5658           enablestring=
5659           defaultval=$wxUSE_ALL_FEATURES
5660           if test -z "$defaultval"; then
5661               if test x"$enablestring" = xdisable; then
5662                   defaultval=yes
5663               else
5664                   defaultval=no
5665               fi
5666           fi
5667
5668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5669 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5670           # Check whether --enable-protocols was given.
5671 if test "${enable_protocols+set}" = set; then
5672   enableval=$enable_protocols;
5673                           if test "$enableval" = yes; then
5674                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5675                           else
5676                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5677                           fi
5678
5679 else
5680
5681                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5682
5683 fi
5684
5685
5686           eval "$wx_cv_use_protocols"
5687
5688           if test x"$enablestring" = xdisable; then
5689             if test $wxUSE_PROTOCOL = yes; then
5690               result=no
5691             else
5692               result=yes
5693             fi
5694           else
5695             result=$wxUSE_PROTOCOL
5696           fi
5697
5698           { echo "$as_me:$LINENO: result: $result" >&5
5699 echo "${ECHO_T}$result" >&6; }
5700
5701
5702           enablestring=
5703           defaultval=$wxUSE_ALL_FEATURES
5704           if test -z "$defaultval"; then
5705               if test x"$enablestring" = xdisable; then
5706                   defaultval=yes
5707               else
5708                   defaultval=no
5709               fi
5710           fi
5711
5712           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5713 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5714           # Check whether --enable-ftp was given.
5715 if test "${enable_ftp+set}" = set; then
5716   enableval=$enable_ftp;
5717                           if test "$enableval" = yes; then
5718                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5719                           else
5720                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5721                           fi
5722
5723 else
5724
5725                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5726
5727 fi
5728
5729
5730           eval "$wx_cv_use_ftp"
5731
5732           if test x"$enablestring" = xdisable; then
5733             if test $wxUSE_PROTOCOL_FTP = yes; then
5734               result=no
5735             else
5736               result=yes
5737             fi
5738           else
5739             result=$wxUSE_PROTOCOL_FTP
5740           fi
5741
5742           { echo "$as_me:$LINENO: result: $result" >&5
5743 echo "${ECHO_T}$result" >&6; }
5744
5745
5746           enablestring=
5747           defaultval=$wxUSE_ALL_FEATURES
5748           if test -z "$defaultval"; then
5749               if test x"$enablestring" = xdisable; then
5750                   defaultval=yes
5751               else
5752                   defaultval=no
5753               fi
5754           fi
5755
5756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5757 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5758           # Check whether --enable-http was given.
5759 if test "${enable_http+set}" = set; then
5760   enableval=$enable_http;
5761                           if test "$enableval" = yes; then
5762                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5763                           else
5764                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5765                           fi
5766
5767 else
5768
5769                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5770
5771 fi
5772
5773
5774           eval "$wx_cv_use_http"
5775
5776           if test x"$enablestring" = xdisable; then
5777             if test $wxUSE_PROTOCOL_HTTP = yes; then
5778               result=no
5779             else
5780               result=yes
5781             fi
5782           else
5783             result=$wxUSE_PROTOCOL_HTTP
5784           fi
5785
5786           { echo "$as_me:$LINENO: result: $result" >&5
5787 echo "${ECHO_T}$result" >&6; }
5788
5789
5790           enablestring=
5791           defaultval=$wxUSE_ALL_FEATURES
5792           if test -z "$defaultval"; then
5793               if test x"$enablestring" = xdisable; then
5794                   defaultval=yes
5795               else
5796                   defaultval=no
5797               fi
5798           fi
5799
5800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5801 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5802           # Check whether --enable-fileproto was given.
5803 if test "${enable_fileproto+set}" = set; then
5804   enableval=$enable_fileproto;
5805                           if test "$enableval" = yes; then
5806                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5807                           else
5808                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5809                           fi
5810
5811 else
5812
5813                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5814
5815 fi
5816
5817
5818           eval "$wx_cv_use_fileproto"
5819
5820           if test x"$enablestring" = xdisable; then
5821             if test $wxUSE_PROTOCOL_FILE = yes; then
5822               result=no
5823             else
5824               result=yes
5825             fi
5826           else
5827             result=$wxUSE_PROTOCOL_FILE
5828           fi
5829
5830           { echo "$as_me:$LINENO: result: $result" >&5
5831 echo "${ECHO_T}$result" >&6; }
5832
5833
5834           enablestring=
5835           defaultval=$wxUSE_ALL_FEATURES
5836           if test -z "$defaultval"; then
5837               if test x"$enablestring" = xdisable; then
5838                   defaultval=yes
5839               else
5840                   defaultval=no
5841               fi
5842           fi
5843
5844           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5845 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5846           # Check whether --enable-sockets was given.
5847 if test "${enable_sockets+set}" = set; then
5848   enableval=$enable_sockets;
5849                           if test "$enableval" = yes; then
5850                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5851                           else
5852                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5853                           fi
5854
5855 else
5856
5857                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5858
5859 fi
5860
5861
5862           eval "$wx_cv_use_sockets"
5863
5864           if test x"$enablestring" = xdisable; then
5865             if test $wxUSE_SOCKETS = yes; then
5866               result=no
5867             else
5868               result=yes
5869             fi
5870           else
5871             result=$wxUSE_SOCKETS
5872           fi
5873
5874           { echo "$as_me:$LINENO: result: $result" >&5
5875 echo "${ECHO_T}$result" >&6; }
5876
5877
5878           enablestring=
5879           defaultval=$wxUSE_ALL_FEATURES
5880           if test -z "$defaultval"; then
5881               if test x"$enablestring" = xdisable; then
5882                   defaultval=yes
5883               else
5884                   defaultval=no
5885               fi
5886           fi
5887
5888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5889 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5890           # Check whether --enable-ipv6 was given.
5891 if test "${enable_ipv6+set}" = set; then
5892   enableval=$enable_ipv6;
5893                           if test "$enableval" = yes; then
5894                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5895                           else
5896                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5897                           fi
5898
5899 else
5900
5901                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5902
5903 fi
5904
5905
5906           eval "$wx_cv_use_ipv6"
5907
5908           if test x"$enablestring" = xdisable; then
5909             if test $wxUSE_IPV6 = yes; then
5910               result=no
5911             else
5912               result=yes
5913             fi
5914           else
5915             result=$wxUSE_IPV6
5916           fi
5917
5918           { echo "$as_me:$LINENO: result: $result" >&5
5919 echo "${ECHO_T}$result" >&6; }
5920
5921
5922           enablestring=
5923           defaultval=$wxUSE_ALL_FEATURES
5924           if test -z "$defaultval"; then
5925               if test x"$enablestring" = xdisable; then
5926                   defaultval=yes
5927               else
5928                   defaultval=no
5929               fi
5930           fi
5931
5932           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5933 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5934           # Check whether --enable-ole was given.
5935 if test "${enable_ole+set}" = set; then
5936   enableval=$enable_ole;
5937                           if test "$enableval" = yes; then
5938                             wx_cv_use_ole='wxUSE_OLE=yes'
5939                           else
5940                             wx_cv_use_ole='wxUSE_OLE=no'
5941                           fi
5942
5943 else
5944
5945                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
5946
5947 fi
5948
5949
5950           eval "$wx_cv_use_ole"
5951
5952           if test x"$enablestring" = xdisable; then
5953             if test $wxUSE_OLE = yes; then
5954               result=no
5955             else
5956               result=yes
5957             fi
5958           else
5959             result=$wxUSE_OLE
5960           fi
5961
5962           { echo "$as_me:$LINENO: result: $result" >&5
5963 echo "${ECHO_T}$result" >&6; }
5964
5965
5966           enablestring=
5967           defaultval=$wxUSE_ALL_FEATURES
5968           if test -z "$defaultval"; then
5969               if test x"$enablestring" = xdisable; then
5970                   defaultval=yes
5971               else
5972                   defaultval=no
5973               fi
5974           fi
5975
5976           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5977 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
5978           # Check whether --enable-dataobj was given.
5979 if test "${enable_dataobj+set}" = set; then
5980   enableval=$enable_dataobj;
5981                           if test "$enableval" = yes; then
5982                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5983                           else
5984                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
5985                           fi
5986
5987 else
5988
5989                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
5990
5991 fi
5992
5993
5994           eval "$wx_cv_use_dataobj"
5995
5996           if test x"$enablestring" = xdisable; then
5997             if test $wxUSE_DATAOBJ = yes; then
5998               result=no
5999             else
6000               result=yes
6001             fi
6002           else
6003             result=$wxUSE_DATAOBJ
6004           fi
6005
6006           { echo "$as_me:$LINENO: result: $result" >&5
6007 echo "${ECHO_T}$result" >&6; }
6008
6009
6010
6011           enablestring=
6012           defaultval=$wxUSE_ALL_FEATURES
6013           if test -z "$defaultval"; then
6014               if test x"$enablestring" = xdisable; then
6015                   defaultval=yes
6016               else
6017                   defaultval=no
6018               fi
6019           fi
6020
6021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6022 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6023           # Check whether --enable-ipc was given.
6024 if test "${enable_ipc+set}" = set; then
6025   enableval=$enable_ipc;
6026                           if test "$enableval" = yes; then
6027                             wx_cv_use_ipc='wxUSE_IPC=yes'
6028                           else
6029                             wx_cv_use_ipc='wxUSE_IPC=no'
6030                           fi
6031
6032 else
6033
6034                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6035
6036 fi
6037
6038
6039           eval "$wx_cv_use_ipc"
6040
6041           if test x"$enablestring" = xdisable; then
6042             if test $wxUSE_IPC = yes; then
6043               result=no
6044             else
6045               result=yes
6046             fi
6047           else
6048             result=$wxUSE_IPC
6049           fi
6050
6051           { echo "$as_me:$LINENO: result: $result" >&5
6052 echo "${ECHO_T}$result" >&6; }
6053
6054
6055
6056           enablestring=
6057           defaultval=$wxUSE_ALL_FEATURES
6058           if test -z "$defaultval"; then
6059               if test x"$enablestring" = xdisable; then
6060                   defaultval=yes
6061               else
6062                   defaultval=no
6063               fi
6064           fi
6065
6066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6067 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6068           # Check whether --enable-baseevtloop was given.
6069 if test "${enable_baseevtloop+set}" = set; then
6070   enableval=$enable_baseevtloop;
6071                           if test "$enableval" = yes; then
6072                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6073                           else
6074                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6075                           fi
6076
6077 else
6078
6079                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6080
6081 fi
6082
6083
6084           eval "$wx_cv_use_baseevtloop"
6085
6086           if test x"$enablestring" = xdisable; then
6087             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6088               result=no
6089             else
6090               result=yes
6091             fi
6092           else
6093             result=$wxUSE_CONSOLE_EVENTLOOP
6094           fi
6095
6096           { echo "$as_me:$LINENO: result: $result" >&5
6097 echo "${ECHO_T}$result" >&6; }
6098
6099
6100           enablestring=
6101           defaultval=$wxUSE_ALL_FEATURES
6102           if test -z "$defaultval"; then
6103               if test x"$enablestring" = xdisable; then
6104                   defaultval=yes
6105               else
6106                   defaultval=no
6107               fi
6108           fi
6109
6110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6111 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6112           # Check whether --enable-epollloop was given.
6113 if test "${enable_epollloop+set}" = set; then
6114   enableval=$enable_epollloop;
6115                           if test "$enableval" = yes; then
6116                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6117                           else
6118                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6119                           fi
6120
6121 else
6122
6123                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6124
6125 fi
6126
6127
6128           eval "$wx_cv_use_epollloop"
6129
6130           if test x"$enablestring" = xdisable; then
6131             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6132               result=no
6133             else
6134               result=yes
6135             fi
6136           else
6137             result=$wxUSE_EPOLL_DISPATCHER
6138           fi
6139
6140           { echo "$as_me:$LINENO: result: $result" >&5
6141 echo "${ECHO_T}$result" >&6; }
6142
6143
6144           enablestring=
6145           defaultval=$wxUSE_ALL_FEATURES
6146           if test -z "$defaultval"; then
6147               if test x"$enablestring" = xdisable; then
6148                   defaultval=yes
6149               else
6150                   defaultval=no
6151               fi
6152           fi
6153
6154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6155 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6156           # Check whether --enable-selectloop was given.
6157 if test "${enable_selectloop+set}" = set; then
6158   enableval=$enable_selectloop;
6159                           if test "$enableval" = yes; then
6160                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6161                           else
6162                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6163                           fi
6164
6165 else
6166
6167                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6168
6169 fi
6170
6171
6172           eval "$wx_cv_use_selectloop"
6173
6174           if test x"$enablestring" = xdisable; then
6175             if test $wxUSE_SELECT_DISPATCHER = yes; then
6176               result=no
6177             else
6178               result=yes
6179             fi
6180           else
6181             result=$wxUSE_SELECT_DISPATCHER
6182           fi
6183
6184           { echo "$as_me:$LINENO: result: $result" >&5
6185 echo "${ECHO_T}$result" >&6; }
6186
6187
6188
6189           enablestring=
6190           defaultval=$wxUSE_ALL_FEATURES
6191           if test -z "$defaultval"; then
6192               if test x"$enablestring" = xdisable; then
6193                   defaultval=yes
6194               else
6195                   defaultval=no
6196               fi
6197           fi
6198
6199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6200 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6201           # Check whether --enable-apple_ieee was given.
6202 if test "${enable_apple_ieee+set}" = set; then
6203   enableval=$enable_apple_ieee;
6204                           if test "$enableval" = yes; then
6205                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6206                           else
6207                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6208                           fi
6209
6210 else
6211
6212                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6213
6214 fi
6215
6216
6217           eval "$wx_cv_use_apple_ieee"
6218
6219           if test x"$enablestring" = xdisable; then
6220             if test $wxUSE_APPLE_IEEE = yes; then
6221               result=no
6222             else
6223               result=yes
6224             fi
6225           else
6226             result=$wxUSE_APPLE_IEEE
6227           fi
6228
6229           { echo "$as_me:$LINENO: result: $result" >&5
6230 echo "${ECHO_T}$result" >&6; }
6231
6232
6233           enablestring=
6234           defaultval=$wxUSE_ALL_FEATURES
6235           if test -z "$defaultval"; then
6236               if test x"$enablestring" = xdisable; then
6237                   defaultval=yes
6238               else
6239                   defaultval=no
6240               fi
6241           fi
6242
6243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6244 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6245           # Check whether --enable-arcstream was given.
6246 if test "${enable_arcstream+set}" = set; then
6247   enableval=$enable_arcstream;
6248                           if test "$enableval" = yes; then
6249                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6250                           else
6251                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6252                           fi
6253
6254 else
6255
6256                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6257
6258 fi
6259
6260
6261           eval "$wx_cv_use_arcstream"
6262
6263           if test x"$enablestring" = xdisable; then
6264             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6265               result=no
6266             else
6267               result=yes
6268             fi
6269           else
6270             result=$wxUSE_ARCHIVE_STREAMS
6271           fi
6272
6273           { echo "$as_me:$LINENO: result: $result" >&5
6274 echo "${ECHO_T}$result" >&6; }
6275
6276
6277           enablestring=
6278           defaultval=$wxUSE_ALL_FEATURES
6279           if test -z "$defaultval"; then
6280               if test x"$enablestring" = xdisable; then
6281                   defaultval=yes
6282               else
6283                   defaultval=no
6284               fi
6285           fi
6286
6287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6288 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6289           # Check whether --enable-base64 was given.
6290 if test "${enable_base64+set}" = set; then
6291   enableval=$enable_base64;
6292                           if test "$enableval" = yes; then
6293                             wx_cv_use_base64='wxUSE_BASE64=yes'
6294                           else
6295                             wx_cv_use_base64='wxUSE_BASE64=no'
6296                           fi
6297
6298 else
6299
6300                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6301
6302 fi
6303
6304
6305           eval "$wx_cv_use_base64"
6306
6307           if test x"$enablestring" = xdisable; then
6308             if test $wxUSE_BASE64 = yes; then
6309               result=no
6310             else
6311               result=yes
6312             fi
6313           else
6314             result=$wxUSE_BASE64
6315           fi
6316
6317           { echo "$as_me:$LINENO: result: $result" >&5
6318 echo "${ECHO_T}$result" >&6; }
6319
6320
6321           enablestring=
6322           defaultval=$wxUSE_ALL_FEATURES
6323           if test -z "$defaultval"; then
6324               if test x"$enablestring" = xdisable; then
6325                   defaultval=yes
6326               else
6327                   defaultval=no
6328               fi
6329           fi
6330
6331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6332 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6333           # Check whether --enable-backtrace was given.
6334 if test "${enable_backtrace+set}" = set; then
6335   enableval=$enable_backtrace;
6336                           if test "$enableval" = yes; then
6337                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6338                           else
6339                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6340                           fi
6341
6342 else
6343
6344                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6345
6346 fi
6347
6348
6349           eval "$wx_cv_use_backtrace"
6350
6351           if test x"$enablestring" = xdisable; then
6352             if test $wxUSE_STACKWALKER = yes; then
6353               result=no
6354             else
6355               result=yes
6356             fi
6357           else
6358             result=$wxUSE_STACKWALKER
6359           fi
6360
6361           { echo "$as_me:$LINENO: result: $result" >&5
6362 echo "${ECHO_T}$result" >&6; }
6363
6364
6365           enablestring=
6366           defaultval=$wxUSE_ALL_FEATURES
6367           if test -z "$defaultval"; then
6368               if test x"$enablestring" = xdisable; then
6369                   defaultval=yes
6370               else
6371                   defaultval=no
6372               fi
6373           fi
6374
6375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6376 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6377           # Check whether --enable-catch_segvs was given.
6378 if test "${enable_catch_segvs+set}" = set; then
6379   enableval=$enable_catch_segvs;
6380                           if test "$enableval" = yes; then
6381                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6382                           else
6383                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6384                           fi
6385
6386 else
6387
6388                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6389
6390 fi
6391
6392
6393           eval "$wx_cv_use_catch_segvs"
6394
6395           if test x"$enablestring" = xdisable; then
6396             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6397               result=no
6398             else
6399               result=yes
6400             fi
6401           else
6402             result=$wxUSE_ON_FATAL_EXCEPTION
6403           fi
6404
6405           { echo "$as_me:$LINENO: result: $result" >&5
6406 echo "${ECHO_T}$result" >&6; }
6407
6408
6409           enablestring=
6410           defaultval=$wxUSE_ALL_FEATURES
6411           if test -z "$defaultval"; then
6412               if test x"$enablestring" = xdisable; then
6413                   defaultval=yes
6414               else
6415                   defaultval=no
6416               fi
6417           fi
6418
6419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6420 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6421           # Check whether --enable-cmdline was given.
6422 if test "${enable_cmdline+set}" = set; then
6423   enableval=$enable_cmdline;
6424                           if test "$enableval" = yes; then
6425                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6426                           else
6427                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6428                           fi
6429
6430 else
6431
6432                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6433
6434 fi
6435
6436
6437           eval "$wx_cv_use_cmdline"
6438
6439           if test x"$enablestring" = xdisable; then
6440             if test $wxUSE_CMDLINE_PARSER = yes; then
6441               result=no
6442             else
6443               result=yes
6444             fi
6445           else
6446             result=$wxUSE_CMDLINE_PARSER
6447           fi
6448
6449           { echo "$as_me:$LINENO: result: $result" >&5
6450 echo "${ECHO_T}$result" >&6; }
6451
6452
6453           enablestring=
6454           defaultval=$wxUSE_ALL_FEATURES
6455           if test -z "$defaultval"; then
6456               if test x"$enablestring" = xdisable; then
6457                   defaultval=yes
6458               else
6459                   defaultval=no
6460               fi
6461           fi
6462
6463           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6464 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6465           # Check whether --enable-datetime was given.
6466 if test "${enable_datetime+set}" = set; then
6467   enableval=$enable_datetime;
6468                           if test "$enableval" = yes; then
6469                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6470                           else
6471                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6472                           fi
6473
6474 else
6475
6476                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6477
6478 fi
6479
6480
6481           eval "$wx_cv_use_datetime"
6482
6483           if test x"$enablestring" = xdisable; then
6484             if test $wxUSE_DATETIME = yes; then
6485               result=no
6486             else
6487               result=yes
6488             fi
6489           else
6490             result=$wxUSE_DATETIME
6491           fi
6492
6493           { echo "$as_me:$LINENO: result: $result" >&5
6494 echo "${ECHO_T}$result" >&6; }
6495
6496
6497           enablestring=
6498           defaultval=$wxUSE_ALL_FEATURES
6499           if test -z "$defaultval"; then
6500               if test x"$enablestring" = xdisable; then
6501                   defaultval=yes
6502               else
6503                   defaultval=no
6504               fi
6505           fi
6506
6507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6508 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6509           # Check whether --enable-debugreport was given.
6510 if test "${enable_debugreport+set}" = set; then
6511   enableval=$enable_debugreport;
6512                           if test "$enableval" = yes; then
6513                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6514                           else
6515                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6516                           fi
6517
6518 else
6519
6520                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6521
6522 fi
6523
6524
6525           eval "$wx_cv_use_debugreport"
6526
6527           if test x"$enablestring" = xdisable; then
6528             if test $wxUSE_DEBUGREPORT = yes; then
6529               result=no
6530             else
6531               result=yes
6532             fi
6533           else
6534             result=$wxUSE_DEBUGREPORT
6535           fi
6536
6537           { echo "$as_me:$LINENO: result: $result" >&5
6538 echo "${ECHO_T}$result" >&6; }
6539
6540
6541           enablestring=
6542           defaultval=$wxUSE_ALL_FEATURES
6543           if test -z "$defaultval"; then
6544               if test x"$enablestring" = xdisable; then
6545                   defaultval=yes
6546               else
6547                   defaultval=no
6548               fi
6549           fi
6550
6551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6552 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6553           # Check whether --enable-dialupman was given.
6554 if test "${enable_dialupman+set}" = set; then
6555   enableval=$enable_dialupman;
6556                           if test "$enableval" = yes; then
6557                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6558                           else
6559                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6560                           fi
6561
6562 else
6563
6564                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6565
6566 fi
6567
6568
6569           eval "$wx_cv_use_dialupman"
6570
6571           if test x"$enablestring" = xdisable; then
6572             if test $wxUSE_DIALUP_MANAGER = yes; then
6573               result=no
6574             else
6575               result=yes
6576             fi
6577           else
6578             result=$wxUSE_DIALUP_MANAGER
6579           fi
6580
6581           { echo "$as_me:$LINENO: result: $result" >&5
6582 echo "${ECHO_T}$result" >&6; }
6583
6584
6585           enablestring=
6586           defaultval=$wxUSE_ALL_FEATURES
6587           if test -z "$defaultval"; then
6588               if test x"$enablestring" = xdisable; then
6589                   defaultval=yes
6590               else
6591                   defaultval=no
6592               fi
6593           fi
6594
6595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6596 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6597           # Check whether --enable-dynlib was given.
6598 if test "${enable_dynlib+set}" = set; then
6599   enableval=$enable_dynlib;
6600                           if test "$enableval" = yes; then
6601                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6602                           else
6603                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6604                           fi
6605
6606 else
6607
6608                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6609
6610 fi
6611
6612
6613           eval "$wx_cv_use_dynlib"
6614
6615           if test x"$enablestring" = xdisable; then
6616             if test $wxUSE_DYNLIB_CLASS = yes; then
6617               result=no
6618             else
6619               result=yes
6620             fi
6621           else
6622             result=$wxUSE_DYNLIB_CLASS
6623           fi
6624
6625           { echo "$as_me:$LINENO: result: $result" >&5
6626 echo "${ECHO_T}$result" >&6; }
6627
6628
6629           enablestring=
6630           defaultval=$wxUSE_ALL_FEATURES
6631           if test -z "$defaultval"; then
6632               if test x"$enablestring" = xdisable; then
6633                   defaultval=yes
6634               else
6635                   defaultval=no
6636               fi
6637           fi
6638
6639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6640 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6641           # Check whether --enable-dynamicloader was given.
6642 if test "${enable_dynamicloader+set}" = set; then
6643   enableval=$enable_dynamicloader;
6644                           if test "$enableval" = yes; then
6645                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6646                           else
6647                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6648                           fi
6649
6650 else
6651
6652                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6653
6654 fi
6655
6656
6657           eval "$wx_cv_use_dynamicloader"
6658
6659           if test x"$enablestring" = xdisable; then
6660             if test $wxUSE_DYNAMIC_LOADER = yes; then
6661               result=no
6662             else
6663               result=yes
6664             fi
6665           else
6666             result=$wxUSE_DYNAMIC_LOADER
6667           fi
6668
6669           { echo "$as_me:$LINENO: result: $result" >&5
6670 echo "${ECHO_T}$result" >&6; }
6671
6672
6673           enablestring=
6674           defaultval=$wxUSE_ALL_FEATURES
6675           if test -z "$defaultval"; then
6676               if test x"$enablestring" = xdisable; then
6677                   defaultval=yes
6678               else
6679                   defaultval=no
6680               fi
6681           fi
6682
6683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6684 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6685           # Check whether --enable-exceptions was given.
6686 if test "${enable_exceptions+set}" = set; then
6687   enableval=$enable_exceptions;
6688                           if test "$enableval" = yes; then
6689                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6690                           else
6691                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6692                           fi
6693
6694 else
6695
6696                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6697
6698 fi
6699
6700
6701           eval "$wx_cv_use_exceptions"
6702
6703           if test x"$enablestring" = xdisable; then
6704             if test $wxUSE_EXCEPTIONS = yes; then
6705               result=no
6706             else
6707               result=yes
6708             fi
6709           else
6710             result=$wxUSE_EXCEPTIONS
6711           fi
6712
6713           { echo "$as_me:$LINENO: result: $result" >&5
6714 echo "${ECHO_T}$result" >&6; }
6715
6716
6717           enablestring=
6718           defaultval=$wxUSE_ALL_FEATURES
6719           if test -z "$defaultval"; then
6720               if test x"$enablestring" = xdisable; then
6721                   defaultval=yes
6722               else
6723                   defaultval=no
6724               fi
6725           fi
6726
6727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6728 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6729           # Check whether --enable-ffile was given.
6730 if test "${enable_ffile+set}" = set; then
6731   enableval=$enable_ffile;
6732                           if test "$enableval" = yes; then
6733                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6734                           else
6735                             wx_cv_use_ffile='wxUSE_FFILE=no'
6736                           fi
6737
6738 else
6739
6740                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6741
6742 fi
6743
6744
6745           eval "$wx_cv_use_ffile"
6746
6747           if test x"$enablestring" = xdisable; then
6748             if test $wxUSE_FFILE = yes; then
6749               result=no
6750             else
6751               result=yes
6752             fi
6753           else
6754             result=$wxUSE_FFILE
6755           fi
6756
6757           { echo "$as_me:$LINENO: result: $result" >&5
6758 echo "${ECHO_T}$result" >&6; }
6759
6760
6761           enablestring=
6762           defaultval=$wxUSE_ALL_FEATURES
6763           if test -z "$defaultval"; then
6764               if test x"$enablestring" = xdisable; then
6765                   defaultval=yes
6766               else
6767                   defaultval=no
6768               fi
6769           fi
6770
6771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6772 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6773           # Check whether --enable-file was given.
6774 if test "${enable_file+set}" = set; then
6775   enableval=$enable_file;
6776                           if test "$enableval" = yes; then
6777                             wx_cv_use_file='wxUSE_FILE=yes'
6778                           else
6779                             wx_cv_use_file='wxUSE_FILE=no'
6780                           fi
6781
6782 else
6783
6784                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6785
6786 fi
6787
6788
6789           eval "$wx_cv_use_file"
6790
6791           if test x"$enablestring" = xdisable; then
6792             if test $wxUSE_FILE = yes; then
6793               result=no
6794             else
6795               result=yes
6796             fi
6797           else
6798             result=$wxUSE_FILE
6799           fi
6800
6801           { echo "$as_me:$LINENO: result: $result" >&5
6802 echo "${ECHO_T}$result" >&6; }
6803
6804
6805           enablestring=
6806           defaultval=$wxUSE_ALL_FEATURES
6807           if test -z "$defaultval"; then
6808               if test x"$enablestring" = xdisable; then
6809                   defaultval=yes
6810               else
6811                   defaultval=no
6812               fi
6813           fi
6814
6815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6816 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6817           # Check whether --enable-filesystem was given.
6818 if test "${enable_filesystem+set}" = set; then
6819   enableval=$enable_filesystem;
6820                           if test "$enableval" = yes; then
6821                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6822                           else
6823                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6824                           fi
6825
6826 else
6827
6828                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6829
6830 fi
6831
6832
6833           eval "$wx_cv_use_filesystem"
6834
6835           if test x"$enablestring" = xdisable; then
6836             if test $wxUSE_FILESYSTEM = yes; then
6837               result=no
6838             else
6839               result=yes
6840             fi
6841           else
6842             result=$wxUSE_FILESYSTEM
6843           fi
6844
6845           { echo "$as_me:$LINENO: result: $result" >&5
6846 echo "${ECHO_T}$result" >&6; }
6847
6848
6849           enablestring=
6850           defaultval=$wxUSE_ALL_FEATURES
6851           if test -z "$defaultval"; then
6852               if test x"$enablestring" = xdisable; then
6853                   defaultval=yes
6854               else
6855                   defaultval=no
6856               fi
6857           fi
6858
6859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6860 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6861           # Check whether --enable-fontenum was given.
6862 if test "${enable_fontenum+set}" = set; then
6863   enableval=$enable_fontenum;
6864                           if test "$enableval" = yes; then
6865                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6866                           else
6867                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6868                           fi
6869
6870 else
6871
6872                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6873
6874 fi
6875
6876
6877           eval "$wx_cv_use_fontenum"
6878
6879           if test x"$enablestring" = xdisable; then
6880             if test $wxUSE_FONTENUM = yes; then
6881               result=no
6882             else
6883               result=yes
6884             fi
6885           else
6886             result=$wxUSE_FONTENUM
6887           fi
6888
6889           { echo "$as_me:$LINENO: result: $result" >&5
6890 echo "${ECHO_T}$result" >&6; }
6891
6892
6893           enablestring=
6894           defaultval=$wxUSE_ALL_FEATURES
6895           if test -z "$defaultval"; then
6896               if test x"$enablestring" = xdisable; then
6897                   defaultval=yes
6898               else
6899                   defaultval=no
6900               fi
6901           fi
6902
6903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6904 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6905           # Check whether --enable-fontmap was given.
6906 if test "${enable_fontmap+set}" = set; then
6907   enableval=$enable_fontmap;
6908                           if test "$enableval" = yes; then
6909                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6910                           else
6911                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6912                           fi
6913
6914 else
6915
6916                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6917
6918 fi
6919
6920
6921           eval "$wx_cv_use_fontmap"
6922
6923           if test x"$enablestring" = xdisable; then
6924             if test $wxUSE_FONTMAP = yes; then
6925               result=no
6926             else
6927               result=yes
6928             fi
6929           else
6930             result=$wxUSE_FONTMAP
6931           fi
6932
6933           { echo "$as_me:$LINENO: result: $result" >&5
6934 echo "${ECHO_T}$result" >&6; }
6935
6936
6937           enablestring=
6938           defaultval=$wxUSE_ALL_FEATURES
6939           if test -z "$defaultval"; then
6940               if test x"$enablestring" = xdisable; then
6941                   defaultval=yes
6942               else
6943                   defaultval=no
6944               fi
6945           fi
6946
6947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6948 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
6949           # Check whether --enable-fs_archive was given.
6950 if test "${enable_fs_archive+set}" = set; then
6951   enableval=$enable_fs_archive;
6952                           if test "$enableval" = yes; then
6953                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
6954                           else
6955                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
6956                           fi
6957
6958 else
6959
6960                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
6961
6962 fi
6963
6964
6965           eval "$wx_cv_use_fs_archive"
6966
6967           if test x"$enablestring" = xdisable; then
6968             if test $wxUSE_FS_ARCHIVE = yes; then
6969               result=no
6970             else
6971               result=yes
6972             fi
6973           else
6974             result=$wxUSE_FS_ARCHIVE
6975           fi
6976
6977           { echo "$as_me:$LINENO: result: $result" >&5
6978 echo "${ECHO_T}$result" >&6; }
6979
6980
6981           enablestring=
6982           defaultval=$wxUSE_ALL_FEATURES
6983           if test -z "$defaultval"; then
6984               if test x"$enablestring" = xdisable; then
6985                   defaultval=yes
6986               else
6987                   defaultval=no
6988               fi
6989           fi
6990
6991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
6992 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
6993           # Check whether --enable-fs_inet was given.
6994 if test "${enable_fs_inet+set}" = set; then
6995   enableval=$enable_fs_inet;
6996                           if test "$enableval" = yes; then
6997                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
6998                           else
6999                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7000                           fi
7001
7002 else
7003
7004                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7005
7006 fi
7007
7008
7009           eval "$wx_cv_use_fs_inet"
7010
7011           if test x"$enablestring" = xdisable; then
7012             if test $wxUSE_FS_INET = yes; then
7013               result=no
7014             else
7015               result=yes
7016             fi
7017           else
7018             result=$wxUSE_FS_INET
7019           fi
7020
7021           { echo "$as_me:$LINENO: result: $result" >&5
7022 echo "${ECHO_T}$result" >&6; }
7023
7024
7025           enablestring=
7026           defaultval=$wxUSE_ALL_FEATURES
7027           if test -z "$defaultval"; then
7028               if test x"$enablestring" = xdisable; then
7029                   defaultval=yes
7030               else
7031                   defaultval=no
7032               fi
7033           fi
7034
7035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7036 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7037           # Check whether --enable-fs_zip was given.
7038 if test "${enable_fs_zip+set}" = set; then
7039   enableval=$enable_fs_zip;
7040                           if test "$enableval" = yes; then
7041                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7042                           else
7043                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7044                           fi
7045
7046 else
7047
7048                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7049
7050 fi
7051
7052
7053           eval "$wx_cv_use_fs_zip"
7054
7055           if test x"$enablestring" = xdisable; then
7056             if test $wxUSE_FS_ZIP = yes; then
7057               result=no
7058             else
7059               result=yes
7060             fi
7061           else
7062             result=$wxUSE_FS_ZIP
7063           fi
7064
7065           { echo "$as_me:$LINENO: result: $result" >&5
7066 echo "${ECHO_T}$result" >&6; }
7067
7068
7069           enablestring=
7070           defaultval=$wxUSE_ALL_FEATURES
7071           if test -z "$defaultval"; then
7072               if test x"$enablestring" = xdisable; then
7073                   defaultval=yes
7074               else
7075                   defaultval=no
7076               fi
7077           fi
7078
7079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7080 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7081           # Check whether --enable-geometry was given.
7082 if test "${enable_geometry+set}" = set; then
7083   enableval=$enable_geometry;
7084                           if test "$enableval" = yes; then
7085                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7086                           else
7087                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7088                           fi
7089
7090 else
7091
7092                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7093
7094 fi
7095
7096
7097           eval "$wx_cv_use_geometry"
7098
7099           if test x"$enablestring" = xdisable; then
7100             if test $wxUSE_GEOMETRY = yes; then
7101               result=no
7102             else
7103               result=yes
7104             fi
7105           else
7106             result=$wxUSE_GEOMETRY
7107           fi
7108
7109           { echo "$as_me:$LINENO: result: $result" >&5
7110 echo "${ECHO_T}$result" >&6; }
7111
7112
7113           enablestring=
7114           defaultval=$wxUSE_ALL_FEATURES
7115           if test -z "$defaultval"; then
7116               if test x"$enablestring" = xdisable; then
7117                   defaultval=yes
7118               else
7119                   defaultval=no
7120               fi
7121           fi
7122
7123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7124 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7125           # Check whether --enable-log was given.
7126 if test "${enable_log+set}" = set; then
7127   enableval=$enable_log;
7128                           if test "$enableval" = yes; then
7129                             wx_cv_use_log='wxUSE_LOG=yes'
7130                           else
7131                             wx_cv_use_log='wxUSE_LOG=no'
7132                           fi
7133
7134 else
7135
7136                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7137
7138 fi
7139
7140
7141           eval "$wx_cv_use_log"
7142
7143           if test x"$enablestring" = xdisable; then
7144             if test $wxUSE_LOG = yes; then
7145               result=no
7146             else
7147               result=yes
7148             fi
7149           else
7150             result=$wxUSE_LOG
7151           fi
7152
7153           { echo "$as_me:$LINENO: result: $result" >&5
7154 echo "${ECHO_T}$result" >&6; }
7155
7156
7157           enablestring=
7158           defaultval=$wxUSE_ALL_FEATURES
7159           if test -z "$defaultval"; then
7160               if test x"$enablestring" = xdisable; then
7161                   defaultval=yes
7162               else
7163                   defaultval=no
7164               fi
7165           fi
7166
7167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7168 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7169           # Check whether --enable-longlong was given.
7170 if test "${enable_longlong+set}" = set; then
7171   enableval=$enable_longlong;
7172                           if test "$enableval" = yes; then
7173                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7174                           else
7175                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7176                           fi
7177
7178 else
7179
7180                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7181
7182 fi
7183
7184
7185           eval "$wx_cv_use_longlong"
7186
7187           if test x"$enablestring" = xdisable; then
7188             if test $wxUSE_LONGLONG = yes; then
7189               result=no
7190             else
7191               result=yes
7192             fi
7193           else
7194             result=$wxUSE_LONGLONG
7195           fi
7196
7197           { echo "$as_me:$LINENO: result: $result" >&5
7198 echo "${ECHO_T}$result" >&6; }
7199
7200
7201           enablestring=
7202           defaultval=$wxUSE_ALL_FEATURES
7203           if test -z "$defaultval"; then
7204               if test x"$enablestring" = xdisable; then
7205                   defaultval=yes
7206               else
7207                   defaultval=no
7208               fi
7209           fi
7210
7211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7212 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7213           # Check whether --enable-mimetype was given.
7214 if test "${enable_mimetype+set}" = set; then
7215   enableval=$enable_mimetype;
7216                           if test "$enableval" = yes; then
7217                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7218                           else
7219                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7220                           fi
7221
7222 else
7223
7224                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7225
7226 fi
7227
7228
7229           eval "$wx_cv_use_mimetype"
7230
7231           if test x"$enablestring" = xdisable; then
7232             if test $wxUSE_MIMETYPE = yes; then
7233               result=no
7234             else
7235               result=yes
7236             fi
7237           else
7238             result=$wxUSE_MIMETYPE
7239           fi
7240
7241           { echo "$as_me:$LINENO: result: $result" >&5
7242 echo "${ECHO_T}$result" >&6; }
7243
7244
7245           enablestring=
7246           defaultval=$wxUSE_ALL_FEATURES
7247           if test -z "$defaultval"; then
7248               if test x"$enablestring" = xdisable; then
7249                   defaultval=yes
7250               else
7251                   defaultval=no
7252               fi
7253           fi
7254
7255           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7256 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7257           # Check whether --enable-snglinst was given.
7258 if test "${enable_snglinst+set}" = set; then
7259   enableval=$enable_snglinst;
7260                           if test "$enableval" = yes; then
7261                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7262                           else
7263                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7264                           fi
7265
7266 else
7267
7268                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7269
7270 fi
7271
7272
7273           eval "$wx_cv_use_snglinst"
7274
7275           if test x"$enablestring" = xdisable; then
7276             if test $wxUSE_SNGLINST_CHECKER = yes; then
7277               result=no
7278             else
7279               result=yes
7280             fi
7281           else
7282             result=$wxUSE_SNGLINST_CHECKER
7283           fi
7284
7285           { echo "$as_me:$LINENO: result: $result" >&5
7286 echo "${ECHO_T}$result" >&6; }
7287
7288
7289           enablestring=
7290           defaultval=$wxUSE_ALL_FEATURES
7291           if test -z "$defaultval"; then
7292               if test x"$enablestring" = xdisable; then
7293                   defaultval=yes
7294               else
7295                   defaultval=no
7296               fi
7297           fi
7298
7299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7300 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7301           # Check whether --enable-stdpaths was given.
7302 if test "${enable_stdpaths+set}" = set; then
7303   enableval=$enable_stdpaths;
7304                           if test "$enableval" = yes; then
7305                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7306                           else
7307                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7308                           fi
7309
7310 else
7311
7312                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7313
7314 fi
7315
7316
7317           eval "$wx_cv_use_stdpaths"
7318
7319           if test x"$enablestring" = xdisable; then
7320             if test $wxUSE_STDPATHS = yes; then
7321               result=no
7322             else
7323               result=yes
7324             fi
7325           else
7326             result=$wxUSE_STDPATHS
7327           fi
7328
7329           { echo "$as_me:$LINENO: result: $result" >&5
7330 echo "${ECHO_T}$result" >&6; }
7331
7332
7333           enablestring=
7334           defaultval=$wxUSE_ALL_FEATURES
7335           if test -z "$defaultval"; then
7336               if test x"$enablestring" = xdisable; then
7337                   defaultval=yes
7338               else
7339                   defaultval=no
7340               fi
7341           fi
7342
7343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7344 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7345           # Check whether --enable-stopwatch was given.
7346 if test "${enable_stopwatch+set}" = set; then
7347   enableval=$enable_stopwatch;
7348                           if test "$enableval" = yes; then
7349                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7350                           else
7351                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7352                           fi
7353
7354 else
7355
7356                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7357
7358 fi
7359
7360
7361           eval "$wx_cv_use_stopwatch"
7362
7363           if test x"$enablestring" = xdisable; then
7364             if test $wxUSE_STOPWATCH = yes; then
7365               result=no
7366             else
7367               result=yes
7368             fi
7369           else
7370             result=$wxUSE_STOPWATCH
7371           fi
7372
7373           { echo "$as_me:$LINENO: result: $result" >&5
7374 echo "${ECHO_T}$result" >&6; }
7375
7376
7377           enablestring=
7378           defaultval=$wxUSE_ALL_FEATURES
7379           if test -z "$defaultval"; then
7380               if test x"$enablestring" = xdisable; then
7381                   defaultval=yes
7382               else
7383                   defaultval=no
7384               fi
7385           fi
7386
7387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7388 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7389           # Check whether --enable-streams was given.
7390 if test "${enable_streams+set}" = set; then
7391   enableval=$enable_streams;
7392                           if test "$enableval" = yes; then
7393                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7394                           else
7395                             wx_cv_use_streams='wxUSE_STREAMS=no'
7396                           fi
7397
7398 else
7399
7400                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7401
7402 fi
7403
7404
7405           eval "$wx_cv_use_streams"
7406
7407           if test x"$enablestring" = xdisable; then
7408             if test $wxUSE_STREAMS = yes; then
7409               result=no
7410             else
7411               result=yes
7412             fi
7413           else
7414             result=$wxUSE_STREAMS
7415           fi
7416
7417           { echo "$as_me:$LINENO: result: $result" >&5
7418 echo "${ECHO_T}$result" >&6; }
7419
7420
7421           enablestring=
7422           defaultval=$wxUSE_ALL_FEATURES
7423           if test -z "$defaultval"; then
7424               if test x"$enablestring" = xdisable; then
7425                   defaultval=yes
7426               else
7427                   defaultval=no
7428               fi
7429           fi
7430
7431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7432 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7433           # Check whether --enable-system_options was given.
7434 if test "${enable_system_options+set}" = set; then
7435   enableval=$enable_system_options;
7436                           if test "$enableval" = yes; then
7437                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7438                           else
7439                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7440                           fi
7441
7442 else
7443
7444                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7445
7446 fi
7447
7448
7449           eval "$wx_cv_use_system_options"
7450
7451           if test x"$enablestring" = xdisable; then
7452             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7453               result=no
7454             else
7455               result=yes
7456             fi
7457           else
7458             result=$wxUSE_SYSTEM_OPTIONS
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}-tarstream" >&5
7476 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7477           # Check whether --enable-tarstream was given.
7478 if test "${enable_tarstream+set}" = set; then
7479   enableval=$enable_tarstream;
7480                           if test "$enableval" = yes; then
7481                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7482                           else
7483                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7484                           fi
7485
7486 else
7487
7488                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7489
7490 fi
7491
7492
7493           eval "$wx_cv_use_tarstream"
7494
7495           if test x"$enablestring" = xdisable; then
7496             if test $wxUSE_TARSTREAM = yes; then
7497               result=no
7498             else
7499               result=yes
7500             fi
7501           else
7502             result=$wxUSE_TARSTREAM
7503           fi
7504
7505           { echo "$as_me:$LINENO: result: $result" >&5
7506 echo "${ECHO_T}$result" >&6; }
7507
7508
7509           enablestring=
7510           defaultval=$wxUSE_ALL_FEATURES
7511           if test -z "$defaultval"; then
7512               if test x"$enablestring" = xdisable; then
7513                   defaultval=yes
7514               else
7515                   defaultval=no
7516               fi
7517           fi
7518
7519           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7520 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7521           # Check whether --enable-textbuf was given.
7522 if test "${enable_textbuf+set}" = set; then
7523   enableval=$enable_textbuf;
7524                           if test "$enableval" = yes; then
7525                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7526                           else
7527                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7528                           fi
7529
7530 else
7531
7532                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7533
7534 fi
7535
7536
7537           eval "$wx_cv_use_textbuf"
7538
7539           if test x"$enablestring" = xdisable; then
7540             if test $wxUSE_TEXTBUFFER = yes; then
7541               result=no
7542             else
7543               result=yes
7544             fi
7545           else
7546             result=$wxUSE_TEXTBUFFER
7547           fi
7548
7549           { echo "$as_me:$LINENO: result: $result" >&5
7550 echo "${ECHO_T}$result" >&6; }
7551
7552
7553           enablestring=
7554           defaultval=$wxUSE_ALL_FEATURES
7555           if test -z "$defaultval"; then
7556               if test x"$enablestring" = xdisable; then
7557                   defaultval=yes
7558               else
7559                   defaultval=no
7560               fi
7561           fi
7562
7563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7564 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7565           # Check whether --enable-textfile was given.
7566 if test "${enable_textfile+set}" = set; then
7567   enableval=$enable_textfile;
7568                           if test "$enableval" = yes; then
7569                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7570                           else
7571                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7572                           fi
7573
7574 else
7575
7576                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7577
7578 fi
7579
7580
7581           eval "$wx_cv_use_textfile"
7582
7583           if test x"$enablestring" = xdisable; then
7584             if test $wxUSE_TEXTFILE = yes; then
7585               result=no
7586             else
7587               result=yes
7588             fi
7589           else
7590             result=$wxUSE_TEXTFILE
7591           fi
7592
7593           { echo "$as_me:$LINENO: result: $result" >&5
7594 echo "${ECHO_T}$result" >&6; }
7595
7596
7597           enablestring=
7598           defaultval=$wxUSE_ALL_FEATURES
7599           if test -z "$defaultval"; then
7600               if test x"$enablestring" = xdisable; then
7601                   defaultval=yes
7602               else
7603                   defaultval=no
7604               fi
7605           fi
7606
7607           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7608 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7609           # Check whether --enable-timer was given.
7610 if test "${enable_timer+set}" = set; then
7611   enableval=$enable_timer;
7612                           if test "$enableval" = yes; then
7613                             wx_cv_use_timer='wxUSE_TIMER=yes'
7614                           else
7615                             wx_cv_use_timer='wxUSE_TIMER=no'
7616                           fi
7617
7618 else
7619
7620                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7621
7622 fi
7623
7624
7625           eval "$wx_cv_use_timer"
7626
7627           if test x"$enablestring" = xdisable; then
7628             if test $wxUSE_TIMER = yes; then
7629               result=no
7630             else
7631               result=yes
7632             fi
7633           else
7634             result=$wxUSE_TIMER
7635           fi
7636
7637           { echo "$as_me:$LINENO: result: $result" >&5
7638 echo "${ECHO_T}$result" >&6; }
7639
7640
7641           enablestring=
7642           defaultval=$wxUSE_ALL_FEATURES
7643           if test -z "$defaultval"; then
7644               if test x"$enablestring" = xdisable; then
7645                   defaultval=yes
7646               else
7647                   defaultval=no
7648               fi
7649           fi
7650
7651           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7652 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7653           # Check whether --enable-sound was given.
7654 if test "${enable_sound+set}" = set; then
7655   enableval=$enable_sound;
7656                           if test "$enableval" = yes; then
7657                             wx_cv_use_sound='wxUSE_SOUND=yes'
7658                           else
7659                             wx_cv_use_sound='wxUSE_SOUND=no'
7660                           fi
7661
7662 else
7663
7664                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7665
7666 fi
7667
7668
7669           eval "$wx_cv_use_sound"
7670
7671           if test x"$enablestring" = xdisable; then
7672             if test $wxUSE_SOUND = yes; then
7673               result=no
7674             else
7675               result=yes
7676             fi
7677           else
7678             result=$wxUSE_SOUND
7679           fi
7680
7681           { echo "$as_me:$LINENO: result: $result" >&5
7682 echo "${ECHO_T}$result" >&6; }
7683
7684
7685           enablestring=
7686           defaultval=$wxUSE_ALL_FEATURES
7687           if test -z "$defaultval"; then
7688               if test x"$enablestring" = xdisable; then
7689                   defaultval=yes
7690               else
7691                   defaultval=no
7692               fi
7693           fi
7694
7695           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
7696 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
7697           # Check whether --enable-mediactrl was given.
7698 if test "${enable_mediactrl+set}" = set; then
7699   enableval=$enable_mediactrl;
7700                           if test "$enableval" = yes; then
7701                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
7702                           else
7703                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
7704                           fi
7705
7706 else
7707
7708                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
7709
7710 fi
7711
7712
7713           eval "$wx_cv_use_mediactrl"
7714
7715           if test x"$enablestring" = xdisable; then
7716             if test $wxUSE_MEDIACTRL = yes; then
7717               result=no
7718             else
7719               result=yes
7720             fi
7721           else
7722             result=$wxUSE_MEDIACTRL
7723           fi
7724
7725           { echo "$as_me:$LINENO: result: $result" >&5
7726 echo "${ECHO_T}$result" >&6; }
7727
7728
7729           enablestring=
7730           defaultval=$wxUSE_ALL_FEATURES
7731           if test -z "$defaultval"; then
7732               if test x"$enablestring" = xdisable; then
7733                   defaultval=yes
7734               else
7735                   defaultval=no
7736               fi
7737           fi
7738
7739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
7740 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
7741           # Check whether --enable-gstreamer8 was given.
7742 if test "${enable_gstreamer8+set}" = set; then
7743   enableval=$enable_gstreamer8;
7744                           if test "$enableval" = yes; then
7745                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
7746                           else
7747                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
7748                           fi
7749
7750 else
7751
7752                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
7753
7754 fi
7755
7756
7757           eval "$wx_cv_use_gstreamer8"
7758
7759           if test x"$enablestring" = xdisable; then
7760             if test $wxUSE_GSTREAMER8 = yes; then
7761               result=no
7762             else
7763               result=yes
7764             fi
7765           else
7766             result=$wxUSE_GSTREAMER8
7767           fi
7768
7769           { echo "$as_me:$LINENO: result: $result" >&5
7770 echo "${ECHO_T}$result" >&6; }
7771
7772
7773           enablestring=
7774           defaultval=$wxUSE_ALL_FEATURES
7775           if test -z "$defaultval"; then
7776               if test x"$enablestring" = xdisable; then
7777                   defaultval=yes
7778               else
7779                   defaultval=no
7780               fi
7781           fi
7782
7783           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7784 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7785           # Check whether --enable-printfposparam was given.
7786 if test "${enable_printfposparam+set}" = set; then
7787   enableval=$enable_printfposparam;
7788                           if test "$enableval" = yes; then
7789                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7790                           else
7791                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7792                           fi
7793
7794 else
7795
7796                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7797
7798 fi
7799
7800
7801           eval "$wx_cv_use_printfposparam"
7802
7803           if test x"$enablestring" = xdisable; then
7804             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7805               result=no
7806             else
7807               result=yes
7808             fi
7809           else
7810             result=$wxUSE_PRINTF_POS_PARAMS
7811           fi
7812
7813           { echo "$as_me:$LINENO: result: $result" >&5
7814 echo "${ECHO_T}$result" >&6; }
7815
7816
7817           enablestring=
7818           defaultval=$wxUSE_ALL_FEATURES
7819           if test -z "$defaultval"; then
7820               if test x"$enablestring" = xdisable; then
7821                   defaultval=yes
7822               else
7823                   defaultval=no
7824               fi
7825           fi
7826
7827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7828 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7829           # Check whether --enable-zipstream was given.
7830 if test "${enable_zipstream+set}" = set; then
7831   enableval=$enable_zipstream;
7832                           if test "$enableval" = yes; then
7833                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7834                           else
7835                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7836                           fi
7837
7838 else
7839
7840                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7841
7842 fi
7843
7844
7845           eval "$wx_cv_use_zipstream"
7846
7847           if test x"$enablestring" = xdisable; then
7848             if test $wxUSE_ZIPSTREAM = yes; then
7849               result=no
7850             else
7851               result=yes
7852             fi
7853           else
7854             result=$wxUSE_ZIPSTREAM
7855           fi
7856
7857           { echo "$as_me:$LINENO: result: $result" >&5
7858 echo "${ECHO_T}$result" >&6; }
7859
7860
7861
7862           enablestring=
7863           defaultval=$wxUSE_ALL_FEATURES
7864           if test -z "$defaultval"; then
7865               if test x"$enablestring" = xdisable; then
7866                   defaultval=yes
7867               else
7868                   defaultval=no
7869               fi
7870           fi
7871
7872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7873 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7874           # Check whether --enable-url was given.
7875 if test "${enable_url+set}" = set; then
7876   enableval=$enable_url;
7877                           if test "$enableval" = yes; then
7878                             wx_cv_use_url='wxUSE_URL=yes'
7879                           else
7880                             wx_cv_use_url='wxUSE_URL=no'
7881                           fi
7882
7883 else
7884
7885                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7886
7887 fi
7888
7889
7890           eval "$wx_cv_use_url"
7891
7892           if test x"$enablestring" = xdisable; then
7893             if test $wxUSE_URL = yes; then
7894               result=no
7895             else
7896               result=yes
7897             fi
7898           else
7899             result=$wxUSE_URL
7900           fi
7901
7902           { echo "$as_me:$LINENO: result: $result" >&5
7903 echo "${ECHO_T}$result" >&6; }
7904
7905
7906           enablestring=
7907           defaultval=$wxUSE_ALL_FEATURES
7908           if test -z "$defaultval"; then
7909               if test x"$enablestring" = xdisable; then
7910                   defaultval=yes
7911               else
7912                   defaultval=no
7913               fi
7914           fi
7915
7916           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7917 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7918           # Check whether --enable-variant was given.
7919 if test "${enable_variant+set}" = set; then
7920   enableval=$enable_variant;
7921                           if test "$enableval" = yes; then
7922                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7923                           else
7924                             wx_cv_use_variant='wxUSE_VARIANT=no'
7925                           fi
7926
7927 else
7928
7929                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7930
7931 fi
7932
7933
7934           eval "$wx_cv_use_variant"
7935
7936           if test x"$enablestring" = xdisable; then
7937             if test $wxUSE_VARIANT = yes; then
7938               result=no
7939             else
7940               result=yes
7941             fi
7942           else
7943             result=$wxUSE_VARIANT
7944           fi
7945
7946           { echo "$as_me:$LINENO: result: $result" >&5
7947 echo "${ECHO_T}$result" >&6; }
7948
7949
7950           enablestring=
7951           defaultval=$wxUSE_ALL_FEATURES
7952           if test -z "$defaultval"; then
7953               if test x"$enablestring" = xdisable; then
7954                   defaultval=yes
7955               else
7956                   defaultval=no
7957               fi
7958           fi
7959
7960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7961 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7962           # Check whether --enable-protocol was given.
7963 if test "${enable_protocol+set}" = set; then
7964   enableval=$enable_protocol;
7965                           if test "$enableval" = yes; then
7966                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7967                           else
7968                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7969                           fi
7970
7971 else
7972
7973                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7974
7975 fi
7976
7977
7978           eval "$wx_cv_use_protocol"
7979
7980           if test x"$enablestring" = xdisable; then
7981             if test $wxUSE_PROTOCOL = yes; then
7982               result=no
7983             else
7984               result=yes
7985             fi
7986           else
7987             result=$wxUSE_PROTOCOL
7988           fi
7989
7990           { echo "$as_me:$LINENO: result: $result" >&5
7991 echo "${ECHO_T}$result" >&6; }
7992
7993
7994           enablestring=
7995           defaultval=$wxUSE_ALL_FEATURES
7996           if test -z "$defaultval"; then
7997               if test x"$enablestring" = xdisable; then
7998                   defaultval=yes
7999               else
8000                   defaultval=no
8001               fi
8002           fi
8003
8004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8005 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8006           # Check whether --enable-protocol_http was given.
8007 if test "${enable_protocol_http+set}" = set; then
8008   enableval=$enable_protocol_http;
8009                           if test "$enableval" = yes; then
8010                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8011                           else
8012                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8013                           fi
8014
8015 else
8016
8017                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8018
8019 fi
8020
8021
8022           eval "$wx_cv_use_protocol_http"
8023
8024           if test x"$enablestring" = xdisable; then
8025             if test $wxUSE_PROTOCOL_HTTP = yes; then
8026               result=no
8027             else
8028               result=yes
8029             fi
8030           else
8031             result=$wxUSE_PROTOCOL_HTTP
8032           fi
8033
8034           { echo "$as_me:$LINENO: result: $result" >&5
8035 echo "${ECHO_T}$result" >&6; }
8036
8037
8038           enablestring=
8039           defaultval=$wxUSE_ALL_FEATURES
8040           if test -z "$defaultval"; then
8041               if test x"$enablestring" = xdisable; then
8042                   defaultval=yes
8043               else
8044                   defaultval=no
8045               fi
8046           fi
8047
8048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8049 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8050           # Check whether --enable-protocol_ftp was given.
8051 if test "${enable_protocol_ftp+set}" = set; then
8052   enableval=$enable_protocol_ftp;
8053                           if test "$enableval" = yes; then
8054                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8055                           else
8056                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8057                           fi
8058
8059 else
8060
8061                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8062
8063 fi
8064
8065
8066           eval "$wx_cv_use_protocol_ftp"
8067
8068           if test x"$enablestring" = xdisable; then
8069             if test $wxUSE_PROTOCOL_FTP = yes; then
8070               result=no
8071             else
8072               result=yes
8073             fi
8074           else
8075             result=$wxUSE_PROTOCOL_FTP
8076           fi
8077
8078           { echo "$as_me:$LINENO: result: $result" >&5
8079 echo "${ECHO_T}$result" >&6; }
8080
8081
8082           enablestring=
8083           defaultval=$wxUSE_ALL_FEATURES
8084           if test -z "$defaultval"; then
8085               if test x"$enablestring" = xdisable; then
8086                   defaultval=yes
8087               else
8088                   defaultval=no
8089               fi
8090           fi
8091
8092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8093 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8094           # Check whether --enable-protocol_file was given.
8095 if test "${enable_protocol_file+set}" = set; then
8096   enableval=$enable_protocol_file;
8097                           if test "$enableval" = yes; then
8098                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8099                           else
8100                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8101                           fi
8102
8103 else
8104
8105                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8106
8107 fi
8108
8109
8110           eval "$wx_cv_use_protocol_file"
8111
8112           if test x"$enablestring" = xdisable; then
8113             if test $wxUSE_PROTOCOL_FILE = yes; then
8114               result=no
8115             else
8116               result=yes
8117             fi
8118           else
8119             result=$wxUSE_PROTOCOL_FILE
8120           fi
8121
8122           { echo "$as_me:$LINENO: result: $result" >&5
8123 echo "${ECHO_T}$result" >&6; }
8124
8125
8126
8127           enablestring=
8128           defaultval=$wxUSE_ALL_FEATURES
8129           if test -z "$defaultval"; then
8130               if test x"$enablestring" = xdisable; then
8131                   defaultval=yes
8132               else
8133                   defaultval=no
8134               fi
8135           fi
8136
8137           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8138 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8139           # Check whether --enable-threads was given.
8140 if test "${enable_threads+set}" = set; then
8141   enableval=$enable_threads;
8142                           if test "$enableval" = yes; then
8143                             wx_cv_use_threads='wxUSE_THREADS=yes'
8144                           else
8145                             wx_cv_use_threads='wxUSE_THREADS=no'
8146                           fi
8147
8148 else
8149
8150                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8151
8152 fi
8153
8154
8155           eval "$wx_cv_use_threads"
8156
8157           if test x"$enablestring" = xdisable; then
8158             if test $wxUSE_THREADS = yes; then
8159               result=no
8160             else
8161               result=yes
8162             fi
8163           else
8164             result=$wxUSE_THREADS
8165           fi
8166
8167           { echo "$as_me:$LINENO: result: $result" >&5
8168 echo "${ECHO_T}$result" >&6; }
8169
8170
8171
8172           enablestring=
8173           defaultval=
8174           if test -z "$defaultval"; then
8175               if test x"$enablestring" = xdisable; then
8176                   defaultval=yes
8177               else
8178                   defaultval=no
8179               fi
8180           fi
8181
8182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8183 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8184           # Check whether --enable-iniconf was given.
8185 if test "${enable_iniconf+set}" = set; then
8186   enableval=$enable_iniconf;
8187                           if test "$enableval" = yes; then
8188                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8189                           else
8190                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8191                           fi
8192
8193 else
8194
8195                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8196
8197 fi
8198
8199
8200           eval "$wx_cv_use_iniconf"
8201
8202           if test x"$enablestring" = xdisable; then
8203             if test $wxUSE_INICONF = yes; then
8204               result=no
8205             else
8206               result=yes
8207             fi
8208           else
8209             result=$wxUSE_INICONF
8210           fi
8211
8212           { echo "$as_me:$LINENO: result: $result" >&5
8213 echo "${ECHO_T}$result" >&6; }
8214
8215
8216           enablestring=
8217           defaultval=$wxUSE_ALL_FEATURES
8218           if test -z "$defaultval"; then
8219               if test x"$enablestring" = xdisable; then
8220                   defaultval=yes
8221               else
8222                   defaultval=no
8223               fi
8224           fi
8225
8226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8227 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8228           # Check whether --enable-regkey was given.
8229 if test "${enable_regkey+set}" = set; then
8230   enableval=$enable_regkey;
8231                           if test "$enableval" = yes; then
8232                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8233                           else
8234                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8235                           fi
8236
8237 else
8238
8239                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8240
8241 fi
8242
8243
8244           eval "$wx_cv_use_regkey"
8245
8246           if test x"$enablestring" = xdisable; then
8247             if test $wxUSE_REGKEY = yes; then
8248               result=no
8249             else
8250               result=yes
8251             fi
8252           else
8253             result=$wxUSE_REGKEY
8254           fi
8255
8256           { echo "$as_me:$LINENO: result: $result" >&5
8257 echo "${ECHO_T}$result" >&6; }
8258
8259
8260 if test "$wxUSE_GUI" = "yes"; then
8261
8262
8263
8264           enablestring=
8265           defaultval=$wxUSE_ALL_FEATURES
8266           if test -z "$defaultval"; then
8267               if test x"$enablestring" = xdisable; then
8268                   defaultval=yes
8269               else
8270                   defaultval=no
8271               fi
8272           fi
8273
8274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8275 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8276           # Check whether --enable-docview was given.
8277 if test "${enable_docview+set}" = set; then
8278   enableval=$enable_docview;
8279                           if test "$enableval" = yes; then
8280                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8281                           else
8282                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8283                           fi
8284
8285 else
8286
8287                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8288
8289 fi
8290
8291
8292           eval "$wx_cv_use_docview"
8293
8294           if test x"$enablestring" = xdisable; then
8295             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8296               result=no
8297             else
8298               result=yes
8299             fi
8300           else
8301             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8302           fi
8303
8304           { echo "$as_me:$LINENO: result: $result" >&5
8305 echo "${ECHO_T}$result" >&6; }
8306
8307
8308           enablestring=
8309           defaultval=$wxUSE_ALL_FEATURES
8310           if test -z "$defaultval"; then
8311               if test x"$enablestring" = xdisable; then
8312                   defaultval=yes
8313               else
8314                   defaultval=no
8315               fi
8316           fi
8317
8318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8319 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8320           # Check whether --enable-help was given.
8321 if test "${enable_help+set}" = set; then
8322   enableval=$enable_help;
8323                           if test "$enableval" = yes; then
8324                             wx_cv_use_help='wxUSE_HELP=yes'
8325                           else
8326                             wx_cv_use_help='wxUSE_HELP=no'
8327                           fi
8328
8329 else
8330
8331                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8332
8333 fi
8334
8335
8336           eval "$wx_cv_use_help"
8337
8338           if test x"$enablestring" = xdisable; then
8339             if test $wxUSE_HELP = yes; then
8340               result=no
8341             else
8342               result=yes
8343             fi
8344           else
8345             result=$wxUSE_HELP
8346           fi
8347
8348           { echo "$as_me:$LINENO: result: $result" >&5
8349 echo "${ECHO_T}$result" >&6; }
8350
8351
8352           enablestring=
8353           defaultval=$wxUSE_ALL_FEATURES
8354           if test -z "$defaultval"; then
8355               if test x"$enablestring" = xdisable; then
8356                   defaultval=yes
8357               else
8358                   defaultval=no
8359               fi
8360           fi
8361
8362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8363 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8364           # Check whether --enable-mshtmlhelp was given.
8365 if test "${enable_mshtmlhelp+set}" = set; then
8366   enableval=$enable_mshtmlhelp;
8367                           if test "$enableval" = yes; then
8368                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8369                           else
8370                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8371                           fi
8372
8373 else
8374
8375                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8376
8377 fi
8378
8379
8380           eval "$wx_cv_use_mshtmlhelp"
8381
8382           if test x"$enablestring" = xdisable; then
8383             if test $wxUSE_MS_HTML_HELP = yes; then
8384               result=no
8385             else
8386               result=yes
8387             fi
8388           else
8389             result=$wxUSE_MS_HTML_HELP
8390           fi
8391
8392           { echo "$as_me:$LINENO: result: $result" >&5
8393 echo "${ECHO_T}$result" >&6; }
8394
8395
8396           enablestring=
8397           defaultval=$wxUSE_ALL_FEATURES
8398           if test -z "$defaultval"; then
8399               if test x"$enablestring" = xdisable; then
8400                   defaultval=yes
8401               else
8402                   defaultval=no
8403               fi
8404           fi
8405
8406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8407 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8408           # Check whether --enable-html was given.
8409 if test "${enable_html+set}" = set; then
8410   enableval=$enable_html;
8411                           if test "$enableval" = yes; then
8412                             wx_cv_use_html='wxUSE_HTML=yes'
8413                           else
8414                             wx_cv_use_html='wxUSE_HTML=no'
8415                           fi
8416
8417 else
8418
8419                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8420
8421 fi
8422
8423
8424           eval "$wx_cv_use_html"
8425
8426           if test x"$enablestring" = xdisable; then
8427             if test $wxUSE_HTML = yes; then
8428               result=no
8429             else
8430               result=yes
8431             fi
8432           else
8433             result=$wxUSE_HTML
8434           fi
8435
8436           { echo "$as_me:$LINENO: result: $result" >&5
8437 echo "${ECHO_T}$result" >&6; }
8438
8439
8440           enablestring=
8441           defaultval=$wxUSE_ALL_FEATURES
8442           if test -z "$defaultval"; then
8443               if test x"$enablestring" = xdisable; then
8444                   defaultval=yes
8445               else
8446                   defaultval=no
8447               fi
8448           fi
8449
8450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8451 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8452           # Check whether --enable-htmlhelp was given.
8453 if test "${enable_htmlhelp+set}" = set; then
8454   enableval=$enable_htmlhelp;
8455                           if test "$enableval" = yes; then
8456                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8457                           else
8458                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8459                           fi
8460
8461 else
8462
8463                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8464
8465 fi
8466
8467
8468           eval "$wx_cv_use_htmlhelp"
8469
8470           if test x"$enablestring" = xdisable; then
8471             if test $wxUSE_WXHTML_HELP = yes; then
8472               result=no
8473             else
8474               result=yes
8475             fi
8476           else
8477             result=$wxUSE_WXHTML_HELP
8478           fi
8479
8480           { echo "$as_me:$LINENO: result: $result" >&5
8481 echo "${ECHO_T}$result" >&6; }
8482
8483
8484           enablestring=
8485           defaultval=$wxUSE_ALL_FEATURES
8486           if test -z "$defaultval"; then
8487               if test x"$enablestring" = xdisable; then
8488                   defaultval=yes
8489               else
8490                   defaultval=no
8491               fi
8492           fi
8493
8494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8495 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8496           # Check whether --enable-xrc was given.
8497 if test "${enable_xrc+set}" = set; then
8498   enableval=$enable_xrc;
8499                           if test "$enableval" = yes; then
8500                             wx_cv_use_xrc='wxUSE_XRC=yes'
8501                           else
8502                             wx_cv_use_xrc='wxUSE_XRC=no'
8503                           fi
8504
8505 else
8506
8507                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8508
8509 fi
8510
8511
8512           eval "$wx_cv_use_xrc"
8513
8514           if test x"$enablestring" = xdisable; then
8515             if test $wxUSE_XRC = yes; then
8516               result=no
8517             else
8518               result=yes
8519             fi
8520           else
8521             result=$wxUSE_XRC
8522           fi
8523
8524           { echo "$as_me:$LINENO: result: $result" >&5
8525 echo "${ECHO_T}$result" >&6; }
8526
8527
8528           enablestring=
8529           defaultval=$wxUSE_ALL_FEATURES
8530           if test -z "$defaultval"; then
8531               if test x"$enablestring" = xdisable; then
8532                   defaultval=yes
8533               else
8534                   defaultval=no
8535               fi
8536           fi
8537
8538           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8539 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8540           # Check whether --enable-aui was given.
8541 if test "${enable_aui+set}" = set; then
8542   enableval=$enable_aui;
8543                           if test "$enableval" = yes; then
8544                             wx_cv_use_aui='wxUSE_AUI=yes'
8545                           else
8546                             wx_cv_use_aui='wxUSE_AUI=no'
8547                           fi
8548
8549 else
8550
8551                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8552
8553 fi
8554
8555
8556           eval "$wx_cv_use_aui"
8557
8558           if test x"$enablestring" = xdisable; then
8559             if test $wxUSE_AUI = yes; then
8560               result=no
8561             else
8562               result=yes
8563             fi
8564           else
8565             result=$wxUSE_AUI
8566           fi
8567
8568           { echo "$as_me:$LINENO: result: $result" >&5
8569 echo "${ECHO_T}$result" >&6; }
8570
8571
8572           enablestring=
8573           defaultval=$wxUSE_ALL_FEATURES
8574           if test -z "$defaultval"; then
8575               if test x"$enablestring" = xdisable; then
8576                   defaultval=yes
8577               else
8578                   defaultval=no
8579               fi
8580           fi
8581
8582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8583 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8584           # Check whether --enable-stc was given.
8585 if test "${enable_stc+set}" = set; then
8586   enableval=$enable_stc;
8587                           if test "$enableval" = yes; then
8588                             wx_cv_use_stc='wxUSE_STC=yes'
8589                           else
8590                             wx_cv_use_stc='wxUSE_STC=no'
8591                           fi
8592
8593 else
8594
8595                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8596
8597 fi
8598
8599
8600           eval "$wx_cv_use_stc"
8601
8602           if test x"$enablestring" = xdisable; then
8603             if test $wxUSE_STC = yes; then
8604               result=no
8605             else
8606               result=yes
8607             fi
8608           else
8609             result=$wxUSE_STC
8610           fi
8611
8612           { echo "$as_me:$LINENO: result: $result" >&5
8613 echo "${ECHO_T}$result" >&6; }
8614
8615
8616           enablestring=
8617           defaultval=$wxUSE_ALL_FEATURES
8618           if test -z "$defaultval"; then
8619               if test x"$enablestring" = xdisable; then
8620                   defaultval=yes
8621               else
8622                   defaultval=no
8623               fi
8624           fi
8625
8626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8627 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8628           # Check whether --enable-constraints was given.
8629 if test "${enable_constraints+set}" = set; then
8630   enableval=$enable_constraints;
8631                           if test "$enableval" = yes; then
8632                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8633                           else
8634                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8635                           fi
8636
8637 else
8638
8639                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8640
8641 fi
8642
8643
8644           eval "$wx_cv_use_constraints"
8645
8646           if test x"$enablestring" = xdisable; then
8647             if test $wxUSE_CONSTRAINTS = yes; then
8648               result=no
8649             else
8650               result=yes
8651             fi
8652           else
8653             result=$wxUSE_CONSTRAINTS
8654           fi
8655
8656           { echo "$as_me:$LINENO: result: $result" >&5
8657 echo "${ECHO_T}$result" >&6; }
8658
8659
8660           enablestring=
8661           defaultval=$wxUSE_ALL_FEATURES
8662           if test -z "$defaultval"; then
8663               if test x"$enablestring" = xdisable; then
8664                   defaultval=yes
8665               else
8666                   defaultval=no
8667               fi
8668           fi
8669
8670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
8671 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
8672           # Check whether --enable-printarch was given.
8673 if test "${enable_printarch+set}" = set; then
8674   enableval=$enable_printarch;
8675                           if test "$enableval" = yes; then
8676                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
8677                           else
8678                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
8679                           fi
8680
8681 else
8682
8683                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
8684
8685 fi
8686
8687
8688           eval "$wx_cv_use_printarch"
8689
8690           if test x"$enablestring" = xdisable; then
8691             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
8692               result=no
8693             else
8694               result=yes
8695             fi
8696           else
8697             result=$wxUSE_PRINTING_ARCHITECTURE
8698           fi
8699
8700           { echo "$as_me:$LINENO: result: $result" >&5
8701 echo "${ECHO_T}$result" >&6; }
8702
8703
8704           enablestring=
8705           defaultval=$wxUSE_ALL_FEATURES
8706           if test -z "$defaultval"; then
8707               if test x"$enablestring" = xdisable; then
8708                   defaultval=yes
8709               else
8710                   defaultval=no
8711               fi
8712           fi
8713
8714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8715 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8716           # Check whether --enable-mdi was given.
8717 if test "${enable_mdi+set}" = set; then
8718   enableval=$enable_mdi;
8719                           if test "$enableval" = yes; then
8720                             wx_cv_use_mdi='wxUSE_MDI=yes'
8721                           else
8722                             wx_cv_use_mdi='wxUSE_MDI=no'
8723                           fi
8724
8725 else
8726
8727                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8728
8729 fi
8730
8731
8732           eval "$wx_cv_use_mdi"
8733
8734           if test x"$enablestring" = xdisable; then
8735             if test $wxUSE_MDI = yes; then
8736               result=no
8737             else
8738               result=yes
8739             fi
8740           else
8741             result=$wxUSE_MDI
8742           fi
8743
8744           { echo "$as_me:$LINENO: result: $result" >&5
8745 echo "${ECHO_T}$result" >&6; }
8746
8747
8748           enablestring=
8749           defaultval=$wxUSE_ALL_FEATURES
8750           if test -z "$defaultval"; then
8751               if test x"$enablestring" = xdisable; then
8752                   defaultval=yes
8753               else
8754                   defaultval=no
8755               fi
8756           fi
8757
8758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8759 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8760           # Check whether --enable-mdidoc was given.
8761 if test "${enable_mdidoc+set}" = set; then
8762   enableval=$enable_mdidoc;
8763                           if test "$enableval" = yes; then
8764                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8765                           else
8766                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8767                           fi
8768
8769 else
8770
8771                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8772
8773 fi
8774
8775
8776           eval "$wx_cv_use_mdidoc"
8777
8778           if test x"$enablestring" = xdisable; then
8779             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8780               result=no
8781             else
8782               result=yes
8783             fi
8784           else
8785             result=$wxUSE_MDI_ARCHITECTURE
8786           fi
8787
8788           { echo "$as_me:$LINENO: result: $result" >&5
8789 echo "${ECHO_T}$result" >&6; }
8790
8791
8792           enablestring=
8793           defaultval=$wxUSE_ALL_FEATURES
8794           if test -z "$defaultval"; then
8795               if test x"$enablestring" = xdisable; then
8796                   defaultval=yes
8797               else
8798                   defaultval=no
8799               fi
8800           fi
8801
8802           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8803 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8804           # Check whether --enable-loggui was given.
8805 if test "${enable_loggui+set}" = set; then
8806   enableval=$enable_loggui;
8807                           if test "$enableval" = yes; then
8808                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8809                           else
8810                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8811                           fi
8812
8813 else
8814
8815                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8816
8817 fi
8818
8819
8820           eval "$wx_cv_use_loggui"
8821
8822           if test x"$enablestring" = xdisable; then
8823             if test $wxUSE_LOGGUI = yes; then
8824               result=no
8825             else
8826               result=yes
8827             fi
8828           else
8829             result=$wxUSE_LOGGUI
8830           fi
8831
8832           { echo "$as_me:$LINENO: result: $result" >&5
8833 echo "${ECHO_T}$result" >&6; }
8834
8835
8836           enablestring=
8837           defaultval=$wxUSE_ALL_FEATURES
8838           if test -z "$defaultval"; then
8839               if test x"$enablestring" = xdisable; then
8840                   defaultval=yes
8841               else
8842                   defaultval=no
8843               fi
8844           fi
8845
8846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8847 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8848           # Check whether --enable-logwin was given.
8849 if test "${enable_logwin+set}" = set; then
8850   enableval=$enable_logwin;
8851                           if test "$enableval" = yes; then
8852                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8853                           else
8854                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8855                           fi
8856
8857 else
8858
8859                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8860
8861 fi
8862
8863
8864           eval "$wx_cv_use_logwin"
8865
8866           if test x"$enablestring" = xdisable; then
8867             if test $wxUSE_LOGWINDOW = yes; then
8868               result=no
8869             else
8870               result=yes
8871             fi
8872           else
8873             result=$wxUSE_LOGWINDOW
8874           fi
8875
8876           { echo "$as_me:$LINENO: result: $result" >&5
8877 echo "${ECHO_T}$result" >&6; }
8878
8879
8880           enablestring=
8881           defaultval=$wxUSE_ALL_FEATURES
8882           if test -z "$defaultval"; then
8883               if test x"$enablestring" = xdisable; then
8884                   defaultval=yes
8885               else
8886                   defaultval=no
8887               fi
8888           fi
8889
8890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8891 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8892           # Check whether --enable-logdialog was given.
8893 if test "${enable_logdialog+set}" = set; then
8894   enableval=$enable_logdialog;
8895                           if test "$enableval" = yes; then
8896                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8897                           else
8898                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8899                           fi
8900
8901 else
8902
8903                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8904
8905 fi
8906
8907
8908           eval "$wx_cv_use_logdialog"
8909
8910           if test x"$enablestring" = xdisable; then
8911             if test $wxUSE_LOGDIALOG = yes; then
8912               result=no
8913             else
8914               result=yes
8915             fi
8916           else
8917             result=$wxUSE_LOGDIALOG
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}-webkit" >&5
8935 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8936           # Check whether --enable-webkit was given.
8937 if test "${enable_webkit+set}" = set; then
8938   enableval=$enable_webkit;
8939                           if test "$enableval" = yes; then
8940                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
8941                           else
8942                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
8943                           fi
8944
8945 else
8946
8947                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
8948
8949 fi
8950
8951
8952           eval "$wx_cv_use_webkit"
8953
8954           if test x"$enablestring" = xdisable; then
8955             if test $wxUSE_WEBKIT = yes; then
8956               result=no
8957             else
8958               result=yes
8959             fi
8960           else
8961             result=$wxUSE_WEBKIT
8962           fi
8963
8964           { echo "$as_me:$LINENO: result: $result" >&5
8965 echo "${ECHO_T}$result" >&6; }
8966
8967
8968           enablestring=
8969           defaultval=$wxUSE_ALL_FEATURES
8970           if test -z "$defaultval"; then
8971               if test x"$enablestring" = xdisable; then
8972                   defaultval=yes
8973               else
8974                   defaultval=no
8975               fi
8976           fi
8977
8978           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8979 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8980           # Check whether --enable-richtext was given.
8981 if test "${enable_richtext+set}" = set; then
8982   enableval=$enable_richtext;
8983                           if test "$enableval" = yes; then
8984                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
8985                           else
8986                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
8987                           fi
8988
8989 else
8990
8991                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
8992
8993 fi
8994
8995
8996           eval "$wx_cv_use_richtext"
8997
8998           if test x"$enablestring" = xdisable; then
8999             if test $wxUSE_RICHTEXT = yes; then
9000               result=no
9001             else
9002               result=yes
9003             fi
9004           else
9005             result=$wxUSE_RICHTEXT
9006           fi
9007
9008           { echo "$as_me:$LINENO: result: $result" >&5
9009 echo "${ECHO_T}$result" >&6; }
9010
9011
9012           enablestring=
9013           defaultval=$wxUSE_ALL_FEATURES
9014           if test -z "$defaultval"; then
9015               if test x"$enablestring" = xdisable; then
9016                   defaultval=yes
9017               else
9018                   defaultval=no
9019               fi
9020           fi
9021
9022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9023 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9024           # Check whether --enable-graphics_ctx was given.
9025 if test "${enable_graphics_ctx+set}" = set; then
9026   enableval=$enable_graphics_ctx;
9027                           if test "$enableval" = yes; then
9028                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9029                           else
9030                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9031                           fi
9032
9033 else
9034
9035                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9036
9037 fi
9038
9039
9040           eval "$wx_cv_use_graphics_ctx"
9041
9042           if test x"$enablestring" = xdisable; then
9043             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9044               result=no
9045             else
9046               result=yes
9047             fi
9048           else
9049             result=$wxUSE_GRAPHICS_CONTEXT
9050           fi
9051
9052           { echo "$as_me:$LINENO: result: $result" >&5
9053 echo "${ECHO_T}$result" >&6; }
9054
9055
9056           enablestring=
9057           defaultval=$wxUSE_ALL_FEATURES
9058           if test -z "$defaultval"; then
9059               if test x"$enablestring" = xdisable; then
9060                   defaultval=yes
9061               else
9062                   defaultval=no
9063               fi
9064           fi
9065
9066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9067 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9068           # Check whether --enable-postscript was given.
9069 if test "${enable_postscript+set}" = set; then
9070   enableval=$enable_postscript;
9071                           if test "$enableval" = yes; then
9072                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9073                           else
9074                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9075                           fi
9076
9077 else
9078
9079                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9080
9081 fi
9082
9083
9084           eval "$wx_cv_use_postscript"
9085
9086           if test x"$enablestring" = xdisable; then
9087             if test $wxUSE_POSTSCRIPT = yes; then
9088               result=no
9089             else
9090               result=yes
9091             fi
9092           else
9093             result=$wxUSE_POSTSCRIPT
9094           fi
9095
9096           { echo "$as_me:$LINENO: result: $result" >&5
9097 echo "${ECHO_T}$result" >&6; }
9098
9099
9100           enablestring=
9101           defaultval=$wxUSE_ALL_FEATURES
9102           if test -z "$defaultval"; then
9103               if test x"$enablestring" = xdisable; then
9104                   defaultval=yes
9105               else
9106                   defaultval=no
9107               fi
9108           fi
9109
9110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9111 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9112           # Check whether --enable-svg was given.
9113 if test "${enable_svg+set}" = set; then
9114   enableval=$enable_svg;
9115                           if test "$enableval" = yes; then
9116                             wx_cv_use_svg='wxUSE_SVG=yes'
9117                           else
9118                             wx_cv_use_svg='wxUSE_SVG=no'
9119                           fi
9120
9121 else
9122
9123                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9124
9125 fi
9126
9127
9128           eval "$wx_cv_use_svg"
9129
9130           if test x"$enablestring" = xdisable; then
9131             if test $wxUSE_SVG = yes; then
9132               result=no
9133             else
9134               result=yes
9135             fi
9136           else
9137             result=$wxUSE_SVG
9138           fi
9139
9140           { echo "$as_me:$LINENO: result: $result" >&5
9141 echo "${ECHO_T}$result" >&6; }
9142
9143
9144
9145
9146           enablestring=
9147           defaultval=$wxUSE_ALL_FEATURES
9148           if test -z "$defaultval"; then
9149               if test x"$enablestring" = xdisable; then
9150                   defaultval=yes
9151               else
9152                   defaultval=no
9153               fi
9154           fi
9155
9156           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9157 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9158           # Check whether --enable-clipboard was given.
9159 if test "${enable_clipboard+set}" = set; then
9160   enableval=$enable_clipboard;
9161                           if test "$enableval" = yes; then
9162                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9163                           else
9164                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9165                           fi
9166
9167 else
9168
9169                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9170
9171 fi
9172
9173
9174           eval "$wx_cv_use_clipboard"
9175
9176           if test x"$enablestring" = xdisable; then
9177             if test $wxUSE_CLIPBOARD = yes; then
9178               result=no
9179             else
9180               result=yes
9181             fi
9182           else
9183             result=$wxUSE_CLIPBOARD
9184           fi
9185
9186           { echo "$as_me:$LINENO: result: $result" >&5
9187 echo "${ECHO_T}$result" >&6; }
9188
9189
9190           enablestring=
9191           defaultval=$wxUSE_ALL_FEATURES
9192           if test -z "$defaultval"; then
9193               if test x"$enablestring" = xdisable; then
9194                   defaultval=yes
9195               else
9196                   defaultval=no
9197               fi
9198           fi
9199
9200           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9201 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9202           # Check whether --enable-dnd was given.
9203 if test "${enable_dnd+set}" = set; then
9204   enableval=$enable_dnd;
9205                           if test "$enableval" = yes; then
9206                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9207                           else
9208                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9209                           fi
9210
9211 else
9212
9213                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9214
9215 fi
9216
9217
9218           eval "$wx_cv_use_dnd"
9219
9220           if test x"$enablestring" = xdisable; then
9221             if test $wxUSE_DRAG_AND_DROP = yes; then
9222               result=no
9223             else
9224               result=yes
9225             fi
9226           else
9227             result=$wxUSE_DRAG_AND_DROP
9228           fi
9229
9230           { echo "$as_me:$LINENO: result: $result" >&5
9231 echo "${ECHO_T}$result" >&6; }
9232
9233
9234           enablestring=
9235           defaultval=$wxUSE_ALL_FEATURES
9236           if test -z "$defaultval"; then
9237               if test x"$enablestring" = xdisable; then
9238                   defaultval=yes
9239               else
9240                   defaultval=no
9241               fi
9242           fi
9243
9244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9245 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9246           # Check whether --enable-metafile was given.
9247 if test "${enable_metafile+set}" = set; then
9248   enableval=$enable_metafile;
9249                           if test "$enableval" = yes; then
9250                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9251                           else
9252                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9253                           fi
9254
9255 else
9256
9257                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9258
9259 fi
9260
9261
9262           eval "$wx_cv_use_metafile"
9263
9264           if test x"$enablestring" = xdisable; then
9265             if test $wxUSE_METAFILE = yes; then
9266               result=no
9267             else
9268               result=yes
9269             fi
9270           else
9271             result=$wxUSE_METAFILE
9272           fi
9273
9274           { echo "$as_me:$LINENO: result: $result" >&5
9275 echo "${ECHO_T}$result" >&6; }
9276
9277
9278
9279 DEFAULT_wxUSE_CONTROLS=none
9280
9281           enablestring=disable
9282           defaultval=
9283           if test -z "$defaultval"; then
9284               if test x"$enablestring" = xdisable; then
9285                   defaultval=yes
9286               else
9287                   defaultval=no
9288               fi
9289           fi
9290
9291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9292 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9293           # Check whether --enable-controls was given.
9294 if test "${enable_controls+set}" = set; then
9295   enableval=$enable_controls;
9296                           if test "$enableval" = yes; then
9297                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9298                           else
9299                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9300                           fi
9301
9302 else
9303
9304                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9305
9306 fi
9307
9308
9309           eval "$wx_cv_use_controls"
9310
9311           if test x"$enablestring" = xdisable; then
9312             if test $wxUSE_CONTROLS = yes; then
9313               result=no
9314             else
9315               result=yes
9316             fi
9317           else
9318             result=$wxUSE_CONTROLS
9319           fi
9320
9321           { echo "$as_me:$LINENO: result: $result" >&5
9322 echo "${ECHO_T}$result" >&6; }
9323
9324
9325 if test "$wxUSE_CONTROLS" = "yes"; then
9326   DEFAULT_wxUSE_ACCEL=yes
9327   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9328   DEFAULT_wxUSE_BMPBUTTON=yes
9329   DEFAULT_wxUSE_BUTTON=yes
9330   DEFAULT_wxUSE_CALCTRL=yes
9331   DEFAULT_wxUSE_CARET=yes
9332   DEFAULT_wxUSE_COMBOBOX=yes
9333   DEFAULT_wxUSE_CHECKBOX=yes
9334   DEFAULT_wxUSE_CHECKLISTBOX=yes
9335   DEFAULT_wxUSE_CHOICE=yes
9336   DEFAULT_wxUSE_CHOICEBOOK=yes
9337   DEFAULT_wxUSE_COLLPANE=yes
9338   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9339   DEFAULT_wxUSE_COMBOBOX=yes
9340   DEFAULT_wxUSE_DATEPICKCTRL=yes
9341   DEFAULT_wxUSE_DISPLAY=yes
9342   DEFAULT_wxUSE_DETECT_SM=yes
9343   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9344   DEFAULT_wxUSE_FILECTRL=yes
9345   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9346   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9347   DEFAULT_wxUSE_GAUGE=yes
9348   DEFAULT_wxUSE_GRID=yes
9349   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9350   DEFAULT_wxUSE_DATAVIEWCTRL=yes
9351   DEFAULT_wxUSE_IMAGLIST=yes
9352   DEFAULT_wxUSE_LISTBOOK=yes
9353   DEFAULT_wxUSE_LISTBOX=yes
9354   DEFAULT_wxUSE_LISTCTRL=yes
9355   DEFAULT_wxUSE_NOTEBOOK=yes
9356   DEFAULT_wxUSE_RADIOBOX=yes
9357   DEFAULT_wxUSE_RADIOBTN=yes
9358   DEFAULT_wxUSE_SASH=yes
9359   DEFAULT_wxUSE_SCROLLBAR=yes
9360   DEFAULT_wxUSE_SEARCHCTRL=yes
9361   DEFAULT_wxUSE_SLIDER=yes
9362   DEFAULT_wxUSE_SPINBTN=yes
9363   DEFAULT_wxUSE_SPINCTRL=yes
9364   DEFAULT_wxUSE_SPLITTER=yes
9365   DEFAULT_wxUSE_STATBMP=yes
9366   DEFAULT_wxUSE_STATBOX=yes
9367   DEFAULT_wxUSE_STATLINE=yes
9368   DEFAULT_wxUSE_STATUSBAR=yes
9369   DEFAULT_wxUSE_TAB_DIALOG=yes
9370   DEFAULT_wxUSE_TOGGLEBTN=yes
9371   DEFAULT_wxUSE_TOOLBAR=yes
9372   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9373   DEFAULT_wxUSE_TOOLTIPS=yes
9374   DEFAULT_wxUSE_TREEBOOK=yes
9375   DEFAULT_wxUSE_TOOLBOOK=yes
9376   DEFAULT_wxUSE_TREECTRL=yes
9377   DEFAULT_wxUSE_POPUPWIN=yes
9378   DEFAULT_wxUSE_TIPWINDOW=yes
9379 elif test "$wxUSE_CONTROLS" = "no"; then
9380   DEFAULT_wxUSE_ACCEL=no
9381   DEFAULT_wxUSE_ANIMATIONCTRL=no
9382   DEFAULT_wxUSE_BMPBUTTON=no
9383   DEFAULT_wxUSE_BUTTON=no
9384   DEFAULT_wxUSE_CALCTRL=no
9385   DEFAULT_wxUSE_CARET=no
9386   DEFAULT_wxUSE_COLLPANE=no
9387   DEFAULT_wxUSE_COMBOBOX=no
9388   DEFAULT_wxUSE_CHECKBOX=no
9389   DEFAULT_wxUSE_CHECKLISTBOX=no
9390   DEFAULT_wxUSE_CHOICE=no
9391   DEFAULT_wxUSE_CHOICEBOOK=no
9392   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9393   DEFAULT_wxUSE_COMBOBOX=no
9394   DEFAULT_wxUSE_DATEPICKCTRL=no
9395   DEFAULT_wxUSE_DISPLAY=no
9396   DEFAULT_wxUSE_DETECT_SM=no
9397   DEFAULT_wxUSE_DIRPICKERCTRL=no
9398   DEFAULT_wxUSE_FILECTRL=no
9399   DEFAULT_wxUSE_FILEPICKERCTRL=no
9400   DEFAULT_wxUSE_FONTPICKERCTRL=no
9401   DEFAULT_wxUSE_GAUGE=no
9402   DEFAULT_wxUSE_GRID=no
9403   DEFAULT_wxUSE_HYPERLINKCTRL=no
9404   DEFAULT_wxUSE_DATAVIEWCTRL=no
9405   DEFAULT_wxUSE_IMAGLIST=no
9406   DEFAULT_wxUSE_LISTBOOK=no
9407   DEFAULT_wxUSE_LISTBOX=no
9408   DEFAULT_wxUSE_LISTCTRL=no
9409   DEFAULT_wxUSE_NOTEBOOK=no
9410   DEFAULT_wxUSE_RADIOBOX=no
9411   DEFAULT_wxUSE_RADIOBTN=no
9412   DEFAULT_wxUSE_SASH=no
9413   DEFAULT_wxUSE_SCROLLBAR=no
9414   DEFAULT_wxUSE_SEARCHCTRL=no
9415   DEFAULT_wxUSE_SLIDER=no
9416   DEFAULT_wxUSE_SPINBTN=no
9417   DEFAULT_wxUSE_SPINCTRL=no
9418   DEFAULT_wxUSE_SPLITTER=no
9419   DEFAULT_wxUSE_STATBMP=no
9420   DEFAULT_wxUSE_STATBOX=no
9421   DEFAULT_wxUSE_STATLINE=no
9422   DEFAULT_wxUSE_STATUSBAR=no
9423   DEFAULT_wxUSE_TAB_DIALOG=no
9424   DEFAULT_wxUSE_TOGGLEBTN=no
9425   DEFAULT_wxUSE_TOOLBAR=no
9426   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9427   DEFAULT_wxUSE_TOOLTIPS=no
9428   DEFAULT_wxUSE_TREEBOOK=no
9429   DEFAULT_wxUSE_TOOLBOOK=no
9430   DEFAULT_wxUSE_TREECTRL=no
9431   DEFAULT_wxUSE_POPUPWIN=no
9432   DEFAULT_wxUSE_TIPWINDOW=no
9433 fi
9434
9435
9436           enablestring=
9437           defaultval=$wxUSE_ALL_FEATURES
9438           if test -z "$defaultval"; then
9439               if test x"$enablestring" = xdisable; then
9440                   defaultval=yes
9441               else
9442                   defaultval=no
9443               fi
9444           fi
9445
9446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9447 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9448           # Check whether --enable-accel was given.
9449 if test "${enable_accel+set}" = set; then
9450   enableval=$enable_accel;
9451                           if test "$enableval" = yes; then
9452                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9453                           else
9454                             wx_cv_use_accel='wxUSE_ACCEL=no'
9455                           fi
9456
9457 else
9458
9459                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9460
9461 fi
9462
9463
9464           eval "$wx_cv_use_accel"
9465
9466           if test x"$enablestring" = xdisable; then
9467             if test $wxUSE_ACCEL = yes; then
9468               result=no
9469             else
9470               result=yes
9471             fi
9472           else
9473             result=$wxUSE_ACCEL
9474           fi
9475
9476           { echo "$as_me:$LINENO: result: $result" >&5
9477 echo "${ECHO_T}$result" >&6; }
9478
9479
9480           enablestring=
9481           defaultval=$wxUSE_ALL_FEATURES
9482           if test -z "$defaultval"; then
9483               if test x"$enablestring" = xdisable; then
9484                   defaultval=yes
9485               else
9486                   defaultval=no
9487               fi
9488           fi
9489
9490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9491 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9492           # Check whether --enable-animatectrl was given.
9493 if test "${enable_animatectrl+set}" = set; then
9494   enableval=$enable_animatectrl;
9495                           if test "$enableval" = yes; then
9496                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9497                           else
9498                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9499                           fi
9500
9501 else
9502
9503                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9504
9505 fi
9506
9507
9508           eval "$wx_cv_use_animatectrl"
9509
9510           if test x"$enablestring" = xdisable; then
9511             if test $wxUSE_ANIMATIONCTRL = yes; then
9512               result=no
9513             else
9514               result=yes
9515             fi
9516           else
9517             result=$wxUSE_ANIMATIONCTRL
9518           fi
9519
9520           { echo "$as_me:$LINENO: result: $result" >&5
9521 echo "${ECHO_T}$result" >&6; }
9522
9523
9524           enablestring=
9525           defaultval=$wxUSE_ALL_FEATURES
9526           if test -z "$defaultval"; then
9527               if test x"$enablestring" = xdisable; then
9528                   defaultval=yes
9529               else
9530                   defaultval=no
9531               fi
9532           fi
9533
9534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9535 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9536           # Check whether --enable-button was given.
9537 if test "${enable_button+set}" = set; then
9538   enableval=$enable_button;
9539                           if test "$enableval" = yes; then
9540                             wx_cv_use_button='wxUSE_BUTTON=yes'
9541                           else
9542                             wx_cv_use_button='wxUSE_BUTTON=no'
9543                           fi
9544
9545 else
9546
9547                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9548
9549 fi
9550
9551
9552           eval "$wx_cv_use_button"
9553
9554           if test x"$enablestring" = xdisable; then
9555             if test $wxUSE_BUTTON = yes; then
9556               result=no
9557             else
9558               result=yes
9559             fi
9560           else
9561             result=$wxUSE_BUTTON
9562           fi
9563
9564           { echo "$as_me:$LINENO: result: $result" >&5
9565 echo "${ECHO_T}$result" >&6; }
9566
9567
9568           enablestring=
9569           defaultval=$wxUSE_ALL_FEATURES
9570           if test -z "$defaultval"; then
9571               if test x"$enablestring" = xdisable; then
9572                   defaultval=yes
9573               else
9574                   defaultval=no
9575               fi
9576           fi
9577
9578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9579 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9580           # Check whether --enable-bmpbutton was given.
9581 if test "${enable_bmpbutton+set}" = set; then
9582   enableval=$enable_bmpbutton;
9583                           if test "$enableval" = yes; then
9584                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9585                           else
9586                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9587                           fi
9588
9589 else
9590
9591                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9592
9593 fi
9594
9595
9596           eval "$wx_cv_use_bmpbutton"
9597
9598           if test x"$enablestring" = xdisable; then
9599             if test $wxUSE_BMPBUTTON = yes; then
9600               result=no
9601             else
9602               result=yes
9603             fi
9604           else
9605             result=$wxUSE_BMPBUTTON
9606           fi
9607
9608           { echo "$as_me:$LINENO: result: $result" >&5
9609 echo "${ECHO_T}$result" >&6; }
9610
9611
9612           enablestring=
9613           defaultval=$wxUSE_ALL_FEATURES
9614           if test -z "$defaultval"; then
9615               if test x"$enablestring" = xdisable; then
9616                   defaultval=yes
9617               else
9618                   defaultval=no
9619               fi
9620           fi
9621
9622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9623 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9624           # Check whether --enable-bmpcombobox was given.
9625 if test "${enable_bmpcombobox+set}" = set; then
9626   enableval=$enable_bmpcombobox;
9627                           if test "$enableval" = yes; then
9628                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9629                           else
9630                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9631                           fi
9632
9633 else
9634
9635                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9636
9637 fi
9638
9639
9640           eval "$wx_cv_use_bmpcombobox"
9641
9642           if test x"$enablestring" = xdisable; then
9643             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9644               result=no
9645             else
9646               result=yes
9647             fi
9648           else
9649             result=$wxUSE_BITMAPCOMBOBOX
9650           fi
9651
9652           { echo "$as_me:$LINENO: result: $result" >&5
9653 echo "${ECHO_T}$result" >&6; }
9654
9655
9656           enablestring=
9657           defaultval=$wxUSE_ALL_FEATURES
9658           if test -z "$defaultval"; then
9659               if test x"$enablestring" = xdisable; then
9660                   defaultval=yes
9661               else
9662                   defaultval=no
9663               fi
9664           fi
9665
9666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9667 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9668           # Check whether --enable-calendar was given.
9669 if test "${enable_calendar+set}" = set; then
9670   enableval=$enable_calendar;
9671                           if test "$enableval" = yes; then
9672                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9673                           else
9674                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9675                           fi
9676
9677 else
9678
9679                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9680
9681 fi
9682
9683
9684           eval "$wx_cv_use_calendar"
9685
9686           if test x"$enablestring" = xdisable; then
9687             if test $wxUSE_CALCTRL = yes; then
9688               result=no
9689             else
9690               result=yes
9691             fi
9692           else
9693             result=$wxUSE_CALCTRL
9694           fi
9695
9696           { echo "$as_me:$LINENO: result: $result" >&5
9697 echo "${ECHO_T}$result" >&6; }
9698
9699
9700           enablestring=
9701           defaultval=$wxUSE_ALL_FEATURES
9702           if test -z "$defaultval"; then
9703               if test x"$enablestring" = xdisable; then
9704                   defaultval=yes
9705               else
9706                   defaultval=no
9707               fi
9708           fi
9709
9710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9711 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9712           # Check whether --enable-caret was given.
9713 if test "${enable_caret+set}" = set; then
9714   enableval=$enable_caret;
9715                           if test "$enableval" = yes; then
9716                             wx_cv_use_caret='wxUSE_CARET=yes'
9717                           else
9718                             wx_cv_use_caret='wxUSE_CARET=no'
9719                           fi
9720
9721 else
9722
9723                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9724
9725 fi
9726
9727
9728           eval "$wx_cv_use_caret"
9729
9730           if test x"$enablestring" = xdisable; then
9731             if test $wxUSE_CARET = yes; then
9732               result=no
9733             else
9734               result=yes
9735             fi
9736           else
9737             result=$wxUSE_CARET
9738           fi
9739
9740           { echo "$as_me:$LINENO: result: $result" >&5
9741 echo "${ECHO_T}$result" >&6; }
9742
9743
9744           enablestring=
9745           defaultval=$wxUSE_ALL_FEATURES
9746           if test -z "$defaultval"; then
9747               if test x"$enablestring" = xdisable; then
9748                   defaultval=yes
9749               else
9750                   defaultval=no
9751               fi
9752           fi
9753
9754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9755 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9756           # Check whether --enable-checkbox was given.
9757 if test "${enable_checkbox+set}" = set; then
9758   enableval=$enable_checkbox;
9759                           if test "$enableval" = yes; then
9760                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9761                           else
9762                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9763                           fi
9764
9765 else
9766
9767                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9768
9769 fi
9770
9771
9772           eval "$wx_cv_use_checkbox"
9773
9774           if test x"$enablestring" = xdisable; then
9775             if test $wxUSE_CHECKBOX = yes; then
9776               result=no
9777             else
9778               result=yes
9779             fi
9780           else
9781             result=$wxUSE_CHECKBOX
9782           fi
9783
9784           { echo "$as_me:$LINENO: result: $result" >&5
9785 echo "${ECHO_T}$result" >&6; }
9786
9787
9788           enablestring=
9789           defaultval=$wxUSE_ALL_FEATURES
9790           if test -z "$defaultval"; then
9791               if test x"$enablestring" = xdisable; then
9792                   defaultval=yes
9793               else
9794                   defaultval=no
9795               fi
9796           fi
9797
9798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9799 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9800           # Check whether --enable-checklst was given.
9801 if test "${enable_checklst+set}" = set; then
9802   enableval=$enable_checklst;
9803                           if test "$enableval" = yes; then
9804                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9805                           else
9806                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9807                           fi
9808
9809 else
9810
9811                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9812
9813 fi
9814
9815
9816           eval "$wx_cv_use_checklst"
9817
9818           if test x"$enablestring" = xdisable; then
9819             if test $wxUSE_CHECKLST = yes; then
9820               result=no
9821             else
9822               result=yes
9823             fi
9824           else
9825             result=$wxUSE_CHECKLST
9826           fi
9827
9828           { echo "$as_me:$LINENO: result: $result" >&5
9829 echo "${ECHO_T}$result" >&6; }
9830
9831
9832           enablestring=
9833           defaultval=$wxUSE_ALL_FEATURES
9834           if test -z "$defaultval"; then
9835               if test x"$enablestring" = xdisable; then
9836                   defaultval=yes
9837               else
9838                   defaultval=no
9839               fi
9840           fi
9841
9842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9843 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9844           # Check whether --enable-choice was given.
9845 if test "${enable_choice+set}" = set; then
9846   enableval=$enable_choice;
9847                           if test "$enableval" = yes; then
9848                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9849                           else
9850                             wx_cv_use_choice='wxUSE_CHOICE=no'
9851                           fi
9852
9853 else
9854
9855                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9856
9857 fi
9858
9859
9860           eval "$wx_cv_use_choice"
9861
9862           if test x"$enablestring" = xdisable; then
9863             if test $wxUSE_CHOICE = yes; then
9864               result=no
9865             else
9866               result=yes
9867             fi
9868           else
9869             result=$wxUSE_CHOICE
9870           fi
9871
9872           { echo "$as_me:$LINENO: result: $result" >&5
9873 echo "${ECHO_T}$result" >&6; }
9874
9875
9876           enablestring=
9877           defaultval=$wxUSE_ALL_FEATURES
9878           if test -z "$defaultval"; then
9879               if test x"$enablestring" = xdisable; then
9880                   defaultval=yes
9881               else
9882                   defaultval=no
9883               fi
9884           fi
9885
9886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9887 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9888           # Check whether --enable-choicebook was given.
9889 if test "${enable_choicebook+set}" = set; then
9890   enableval=$enable_choicebook;
9891                           if test "$enableval" = yes; then
9892                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9893                           else
9894                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9895                           fi
9896
9897 else
9898
9899                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9900
9901 fi
9902
9903
9904           eval "$wx_cv_use_choicebook"
9905
9906           if test x"$enablestring" = xdisable; then
9907             if test $wxUSE_CHOICEBOOK = yes; then
9908               result=no
9909             else
9910               result=yes
9911             fi
9912           else
9913             result=$wxUSE_CHOICEBOOK
9914           fi
9915
9916           { echo "$as_me:$LINENO: result: $result" >&5
9917 echo "${ECHO_T}$result" >&6; }
9918
9919
9920           enablestring=
9921           defaultval=$wxUSE_ALL_FEATURES
9922           if test -z "$defaultval"; then
9923               if test x"$enablestring" = xdisable; then
9924                   defaultval=yes
9925               else
9926                   defaultval=no
9927               fi
9928           fi
9929
9930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9931 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9932           # Check whether --enable-collpane was given.
9933 if test "${enable_collpane+set}" = set; then
9934   enableval=$enable_collpane;
9935                           if test "$enableval" = yes; then
9936                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9937                           else
9938                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9939                           fi
9940
9941 else
9942
9943                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9944
9945 fi
9946
9947
9948           eval "$wx_cv_use_collpane"
9949
9950           if test x"$enablestring" = xdisable; then
9951             if test $wxUSE_COLLPANE = yes; then
9952               result=no
9953             else
9954               result=yes
9955             fi
9956           else
9957             result=$wxUSE_COLLPANE
9958           fi
9959
9960           { echo "$as_me:$LINENO: result: $result" >&5
9961 echo "${ECHO_T}$result" >&6; }
9962
9963
9964           enablestring=
9965           defaultval=$wxUSE_ALL_FEATURES
9966           if test -z "$defaultval"; then
9967               if test x"$enablestring" = xdisable; then
9968                   defaultval=yes
9969               else
9970                   defaultval=no
9971               fi
9972           fi
9973
9974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
9975 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
9976           # Check whether --enable-colourpicker was given.
9977 if test "${enable_colourpicker+set}" = set; then
9978   enableval=$enable_colourpicker;
9979                           if test "$enableval" = yes; then
9980                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
9981                           else
9982                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
9983                           fi
9984
9985 else
9986
9987                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
9988
9989 fi
9990
9991
9992           eval "$wx_cv_use_colourpicker"
9993
9994           if test x"$enablestring" = xdisable; then
9995             if test $wxUSE_COLOURPICKERCTRL = yes; then
9996               result=no
9997             else
9998               result=yes
9999             fi
10000           else
10001             result=$wxUSE_COLOURPICKERCTRL
10002           fi
10003
10004           { echo "$as_me:$LINENO: result: $result" >&5
10005 echo "${ECHO_T}$result" >&6; }
10006
10007
10008           enablestring=
10009           defaultval=$wxUSE_ALL_FEATURES
10010           if test -z "$defaultval"; then
10011               if test x"$enablestring" = xdisable; then
10012                   defaultval=yes
10013               else
10014                   defaultval=no
10015               fi
10016           fi
10017
10018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10019 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10020           # Check whether --enable-combobox was given.
10021 if test "${enable_combobox+set}" = set; then
10022   enableval=$enable_combobox;
10023                           if test "$enableval" = yes; then
10024                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10025                           else
10026                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10027                           fi
10028
10029 else
10030
10031                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10032
10033 fi
10034
10035
10036           eval "$wx_cv_use_combobox"
10037
10038           if test x"$enablestring" = xdisable; then
10039             if test $wxUSE_COMBOBOX = yes; then
10040               result=no
10041             else
10042               result=yes
10043             fi
10044           else
10045             result=$wxUSE_COMBOBOX
10046           fi
10047
10048           { echo "$as_me:$LINENO: result: $result" >&5
10049 echo "${ECHO_T}$result" >&6; }
10050
10051
10052           enablestring=
10053           defaultval=$wxUSE_ALL_FEATURES
10054           if test -z "$defaultval"; then
10055               if test x"$enablestring" = xdisable; then
10056                   defaultval=yes
10057               else
10058                   defaultval=no
10059               fi
10060           fi
10061
10062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10063 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10064           # Check whether --enable-comboctrl was given.
10065 if test "${enable_comboctrl+set}" = set; then
10066   enableval=$enable_comboctrl;
10067                           if test "$enableval" = yes; then
10068                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10069                           else
10070                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10071                           fi
10072
10073 else
10074
10075                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10076
10077 fi
10078
10079
10080           eval "$wx_cv_use_comboctrl"
10081
10082           if test x"$enablestring" = xdisable; then
10083             if test $wxUSE_COMBOCTRL = yes; then
10084               result=no
10085             else
10086               result=yes
10087             fi
10088           else
10089             result=$wxUSE_COMBOCTRL
10090           fi
10091
10092           { echo "$as_me:$LINENO: result: $result" >&5
10093 echo "${ECHO_T}$result" >&6; }
10094
10095
10096           enablestring=
10097           defaultval=$wxUSE_ALL_FEATURES
10098           if test -z "$defaultval"; then
10099               if test x"$enablestring" = xdisable; then
10100                   defaultval=yes
10101               else
10102                   defaultval=no
10103               fi
10104           fi
10105
10106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10107 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10108           # Check whether --enable-datepick was given.
10109 if test "${enable_datepick+set}" = set; then
10110   enableval=$enable_datepick;
10111                           if test "$enableval" = yes; then
10112                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10113                           else
10114                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10115                           fi
10116
10117 else
10118
10119                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10120
10121 fi
10122
10123
10124           eval "$wx_cv_use_datepick"
10125
10126           if test x"$enablestring" = xdisable; then
10127             if test $wxUSE_DATEPICKCTRL = yes; then
10128               result=no
10129             else
10130               result=yes
10131             fi
10132           else
10133             result=$wxUSE_DATEPICKCTRL
10134           fi
10135
10136           { echo "$as_me:$LINENO: result: $result" >&5
10137 echo "${ECHO_T}$result" >&6; }
10138
10139
10140           enablestring=
10141           defaultval=$wxUSE_ALL_FEATURES
10142           if test -z "$defaultval"; then
10143               if test x"$enablestring" = xdisable; then
10144                   defaultval=yes
10145               else
10146                   defaultval=no
10147               fi
10148           fi
10149
10150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10151 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10152           # Check whether --enable-dirpicker was given.
10153 if test "${enable_dirpicker+set}" = set; then
10154   enableval=$enable_dirpicker;
10155                           if test "$enableval" = yes; then
10156                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10157                           else
10158                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10159                           fi
10160
10161 else
10162
10163                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10164
10165 fi
10166
10167
10168           eval "$wx_cv_use_dirpicker"
10169
10170           if test x"$enablestring" = xdisable; then
10171             if test $wxUSE_DIRPICKERCTRL = yes; then
10172               result=no
10173             else
10174               result=yes
10175             fi
10176           else
10177             result=$wxUSE_DIRPICKERCTRL
10178           fi
10179
10180           { echo "$as_me:$LINENO: result: $result" >&5
10181 echo "${ECHO_T}$result" >&6; }
10182
10183
10184           enablestring=
10185           defaultval=$wxUSE_ALL_FEATURES
10186           if test -z "$defaultval"; then
10187               if test x"$enablestring" = xdisable; then
10188                   defaultval=yes
10189               else
10190                   defaultval=no
10191               fi
10192           fi
10193
10194           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10195 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10196           # Check whether --enable-display was given.
10197 if test "${enable_display+set}" = set; then
10198   enableval=$enable_display;
10199                           if test "$enableval" = yes; then
10200                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10201                           else
10202                             wx_cv_use_display='wxUSE_DISPLAY=no'
10203                           fi
10204
10205 else
10206
10207                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10208
10209 fi
10210
10211
10212           eval "$wx_cv_use_display"
10213
10214           if test x"$enablestring" = xdisable; then
10215             if test $wxUSE_DISPLAY = yes; then
10216               result=no
10217             else
10218               result=yes
10219             fi
10220           else
10221             result=$wxUSE_DISPLAY
10222           fi
10223
10224           { echo "$as_me:$LINENO: result: $result" >&5
10225 echo "${ECHO_T}$result" >&6; }
10226
10227
10228           enablestring=
10229           defaultval=$wxUSE_ALL_FEATURES
10230           if test -z "$defaultval"; then
10231               if test x"$enablestring" = xdisable; then
10232                   defaultval=yes
10233               else
10234                   defaultval=no
10235               fi
10236           fi
10237
10238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10239 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10240           # Check whether --enable-detect_sm was given.
10241 if test "${enable_detect_sm+set}" = set; then
10242   enableval=$enable_detect_sm;
10243                           if test "$enableval" = yes; then
10244                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10245                           else
10246                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10247                           fi
10248
10249 else
10250
10251                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10252
10253 fi
10254
10255
10256           eval "$wx_cv_use_detect_sm"
10257
10258           if test x"$enablestring" = xdisable; then
10259             if test $wxUSE_DETECT_SM = yes; then
10260               result=no
10261             else
10262               result=yes
10263             fi
10264           else
10265             result=$wxUSE_DETECT_SM
10266           fi
10267
10268           { echo "$as_me:$LINENO: result: $result" >&5
10269 echo "${ECHO_T}$result" >&6; }
10270
10271
10272           enablestring=
10273           defaultval=$wxUSE_ALL_FEATURES
10274           if test -z "$defaultval"; then
10275               if test x"$enablestring" = xdisable; then
10276                   defaultval=yes
10277               else
10278                   defaultval=no
10279               fi
10280           fi
10281
10282           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10283 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10284           # Check whether --enable-editablebox was given.
10285 if test "${enable_editablebox+set}" = set; then
10286   enableval=$enable_editablebox;
10287                           if test "$enableval" = yes; then
10288                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10289                           else
10290                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10291                           fi
10292
10293 else
10294
10295                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10296
10297 fi
10298
10299
10300           eval "$wx_cv_use_editablebox"
10301
10302           if test x"$enablestring" = xdisable; then
10303             if test $wxUSE_EDITABLELISTBOX = yes; then
10304               result=no
10305             else
10306               result=yes
10307             fi
10308           else
10309             result=$wxUSE_EDITABLELISTBOX
10310           fi
10311
10312           { echo "$as_me:$LINENO: result: $result" >&5
10313 echo "${ECHO_T}$result" >&6; }
10314
10315
10316           enablestring=
10317           defaultval=$wxUSE_ALL_FEATURES
10318           if test -z "$defaultval"; then
10319               if test x"$enablestring" = xdisable; then
10320                   defaultval=yes
10321               else
10322                   defaultval=no
10323               fi
10324           fi
10325
10326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10327 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10328           # Check whether --enable-filepicker was given.
10329 if test "${enable_filepicker+set}" = set; then
10330   enableval=$enable_filepicker;
10331                           if test "$enableval" = yes; then
10332                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10333                           else
10334                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10335                           fi
10336
10337 else
10338
10339                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10340
10341 fi
10342
10343
10344           eval "$wx_cv_use_filepicker"
10345
10346           if test x"$enablestring" = xdisable; then
10347             if test $wxUSE_FILEPICKERCTRL = yes; then
10348               result=no
10349             else
10350               result=yes
10351             fi
10352           else
10353             result=$wxUSE_FILEPICKERCTRL
10354           fi
10355
10356           { echo "$as_me:$LINENO: result: $result" >&5
10357 echo "${ECHO_T}$result" >&6; }
10358
10359
10360           enablestring=
10361           defaultval=$wxUSE_ALL_FEATURES
10362           if test -z "$defaultval"; then
10363               if test x"$enablestring" = xdisable; then
10364                   defaultval=yes
10365               else
10366                   defaultval=no
10367               fi
10368           fi
10369
10370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10371 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10372           # Check whether --enable-filectrl was given.
10373 if test "${enable_filectrl+set}" = set; then
10374   enableval=$enable_filectrl;
10375                           if test "$enableval" = yes; then
10376                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10377                           else
10378                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10379                           fi
10380
10381 else
10382
10383                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10384
10385 fi
10386
10387
10388           eval "$wx_cv_use_filectrl"
10389
10390           if test x"$enablestring" = xdisable; then
10391             if test $wxUSE_FILECTRL = yes; then
10392               result=no
10393             else
10394               result=yes
10395             fi
10396           else
10397             result=$wxUSE_FILECTRL
10398           fi
10399
10400           { echo "$as_me:$LINENO: result: $result" >&5
10401 echo "${ECHO_T}$result" >&6; }
10402
10403
10404           enablestring=
10405           defaultval=$wxUSE_ALL_FEATURES
10406           if test -z "$defaultval"; then
10407               if test x"$enablestring" = xdisable; then
10408                   defaultval=yes
10409               else
10410                   defaultval=no
10411               fi
10412           fi
10413
10414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10415 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10416           # Check whether --enable-fontpicker was given.
10417 if test "${enable_fontpicker+set}" = set; then
10418   enableval=$enable_fontpicker;
10419                           if test "$enableval" = yes; then
10420                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10421                           else
10422                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10423                           fi
10424
10425 else
10426
10427                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10428
10429 fi
10430
10431
10432           eval "$wx_cv_use_fontpicker"
10433
10434           if test x"$enablestring" = xdisable; then
10435             if test $wxUSE_FONTPICKERCTRL = yes; then
10436               result=no
10437             else
10438               result=yes
10439             fi
10440           else
10441             result=$wxUSE_FONTPICKERCTRL
10442           fi
10443
10444           { echo "$as_me:$LINENO: result: $result" >&5
10445 echo "${ECHO_T}$result" >&6; }
10446
10447
10448           enablestring=
10449           defaultval=$wxUSE_ALL_FEATURES
10450           if test -z "$defaultval"; then
10451               if test x"$enablestring" = xdisable; then
10452                   defaultval=yes
10453               else
10454                   defaultval=no
10455               fi
10456           fi
10457
10458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10459 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10460           # Check whether --enable-gauge was given.
10461 if test "${enable_gauge+set}" = set; then
10462   enableval=$enable_gauge;
10463                           if test "$enableval" = yes; then
10464                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10465                           else
10466                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10467                           fi
10468
10469 else
10470
10471                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10472
10473 fi
10474
10475
10476           eval "$wx_cv_use_gauge"
10477
10478           if test x"$enablestring" = xdisable; then
10479             if test $wxUSE_GAUGE = yes; then
10480               result=no
10481             else
10482               result=yes
10483             fi
10484           else
10485             result=$wxUSE_GAUGE
10486           fi
10487
10488           { echo "$as_me:$LINENO: result: $result" >&5
10489 echo "${ECHO_T}$result" >&6; }
10490
10491
10492           enablestring=
10493           defaultval=$wxUSE_ALL_FEATURES
10494           if test -z "$defaultval"; then
10495               if test x"$enablestring" = xdisable; then
10496                   defaultval=yes
10497               else
10498                   defaultval=no
10499               fi
10500           fi
10501
10502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10503 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10504           # Check whether --enable-grid was given.
10505 if test "${enable_grid+set}" = set; then
10506   enableval=$enable_grid;
10507                           if test "$enableval" = yes; then
10508                             wx_cv_use_grid='wxUSE_GRID=yes'
10509                           else
10510                             wx_cv_use_grid='wxUSE_GRID=no'
10511                           fi
10512
10513 else
10514
10515                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10516
10517 fi
10518
10519
10520           eval "$wx_cv_use_grid"
10521
10522           if test x"$enablestring" = xdisable; then
10523             if test $wxUSE_GRID = yes; then
10524               result=no
10525             else
10526               result=yes
10527             fi
10528           else
10529             result=$wxUSE_GRID
10530           fi
10531
10532           { echo "$as_me:$LINENO: result: $result" >&5
10533 echo "${ECHO_T}$result" >&6; }
10534
10535
10536           enablestring=
10537           defaultval=$wxUSE_ALL_FEATURES
10538           if test -z "$defaultval"; then
10539               if test x"$enablestring" = xdisable; then
10540                   defaultval=yes
10541               else
10542                   defaultval=no
10543               fi
10544           fi
10545
10546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10547 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10548           # Check whether --enable-dataviewctrl was given.
10549 if test "${enable_dataviewctrl+set}" = set; then
10550   enableval=$enable_dataviewctrl;
10551                           if test "$enableval" = yes; then
10552                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10553                           else
10554                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10555                           fi
10556
10557 else
10558
10559                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10560
10561 fi
10562
10563
10564           eval "$wx_cv_use_dataviewctrl"
10565
10566           if test x"$enablestring" = xdisable; then
10567             if test $wxUSE_DATAVIEWCTRL = yes; then
10568               result=no
10569             else
10570               result=yes
10571             fi
10572           else
10573             result=$wxUSE_DATAVIEWCTRL
10574           fi
10575
10576           { echo "$as_me:$LINENO: result: $result" >&5
10577 echo "${ECHO_T}$result" >&6; }
10578
10579
10580           enablestring=
10581           defaultval=$wxUSE_ALL_FEATURES
10582           if test -z "$defaultval"; then
10583               if test x"$enablestring" = xdisable; then
10584                   defaultval=yes
10585               else
10586                   defaultval=no
10587               fi
10588           fi
10589
10590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10591 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10592           # Check whether --enable-hyperlink was given.
10593 if test "${enable_hyperlink+set}" = set; then
10594   enableval=$enable_hyperlink;
10595                           if test "$enableval" = yes; then
10596                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10597                           else
10598                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10599                           fi
10600
10601 else
10602
10603                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10604
10605 fi
10606
10607
10608           eval "$wx_cv_use_hyperlink"
10609
10610           if test x"$enablestring" = xdisable; then
10611             if test $wxUSE_HYPERLINKCTRL = yes; then
10612               result=no
10613             else
10614               result=yes
10615             fi
10616           else
10617             result=$wxUSE_HYPERLINKCTRL
10618           fi
10619
10620           { echo "$as_me:$LINENO: result: $result" >&5
10621 echo "${ECHO_T}$result" >&6; }
10622
10623
10624           enablestring=
10625           defaultval=$wxUSE_ALL_FEATURES
10626           if test -z "$defaultval"; then
10627               if test x"$enablestring" = xdisable; then
10628                   defaultval=yes
10629               else
10630                   defaultval=no
10631               fi
10632           fi
10633
10634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10635 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10636           # Check whether --enable-imaglist was given.
10637 if test "${enable_imaglist+set}" = set; then
10638   enableval=$enable_imaglist;
10639                           if test "$enableval" = yes; then
10640                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10641                           else
10642                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10643                           fi
10644
10645 else
10646
10647                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10648
10649 fi
10650
10651
10652           eval "$wx_cv_use_imaglist"
10653
10654           if test x"$enablestring" = xdisable; then
10655             if test $wxUSE_IMAGLIST = yes; then
10656               result=no
10657             else
10658               result=yes
10659             fi
10660           else
10661             result=$wxUSE_IMAGLIST
10662           fi
10663
10664           { echo "$as_me:$LINENO: result: $result" >&5
10665 echo "${ECHO_T}$result" >&6; }
10666
10667
10668           enablestring=
10669           defaultval=$wxUSE_ALL_FEATURES
10670           if test -z "$defaultval"; then
10671               if test x"$enablestring" = xdisable; then
10672                   defaultval=yes
10673               else
10674                   defaultval=no
10675               fi
10676           fi
10677
10678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10679 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10680           # Check whether --enable-listbook was given.
10681 if test "${enable_listbook+set}" = set; then
10682   enableval=$enable_listbook;
10683                           if test "$enableval" = yes; then
10684                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10685                           else
10686                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10687                           fi
10688
10689 else
10690
10691                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10692
10693 fi
10694
10695
10696           eval "$wx_cv_use_listbook"
10697
10698           if test x"$enablestring" = xdisable; then
10699             if test $wxUSE_LISTBOOK = yes; then
10700               result=no
10701             else
10702               result=yes
10703             fi
10704           else
10705             result=$wxUSE_LISTBOOK
10706           fi
10707
10708           { echo "$as_me:$LINENO: result: $result" >&5
10709 echo "${ECHO_T}$result" >&6; }
10710
10711
10712           enablestring=
10713           defaultval=$wxUSE_ALL_FEATURES
10714           if test -z "$defaultval"; then
10715               if test x"$enablestring" = xdisable; then
10716                   defaultval=yes
10717               else
10718                   defaultval=no
10719               fi
10720           fi
10721
10722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10723 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10724           # Check whether --enable-listbox was given.
10725 if test "${enable_listbox+set}" = set; then
10726   enableval=$enable_listbox;
10727                           if test "$enableval" = yes; then
10728                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10729                           else
10730                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10731                           fi
10732
10733 else
10734
10735                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10736
10737 fi
10738
10739
10740           eval "$wx_cv_use_listbox"
10741
10742           if test x"$enablestring" = xdisable; then
10743             if test $wxUSE_LISTBOX = yes; then
10744               result=no
10745             else
10746               result=yes
10747             fi
10748           else
10749             result=$wxUSE_LISTBOX
10750           fi
10751
10752           { echo "$as_me:$LINENO: result: $result" >&5
10753 echo "${ECHO_T}$result" >&6; }
10754
10755
10756           enablestring=
10757           defaultval=$wxUSE_ALL_FEATURES
10758           if test -z "$defaultval"; then
10759               if test x"$enablestring" = xdisable; then
10760                   defaultval=yes
10761               else
10762                   defaultval=no
10763               fi
10764           fi
10765
10766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10767 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10768           # Check whether --enable-listctrl was given.
10769 if test "${enable_listctrl+set}" = set; then
10770   enableval=$enable_listctrl;
10771                           if test "$enableval" = yes; then
10772                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10773                           else
10774                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10775                           fi
10776
10777 else
10778
10779                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10780
10781 fi
10782
10783
10784           eval "$wx_cv_use_listctrl"
10785
10786           if test x"$enablestring" = xdisable; then
10787             if test $wxUSE_LISTCTRL = yes; then
10788               result=no
10789             else
10790               result=yes
10791             fi
10792           else
10793             result=$wxUSE_LISTCTRL
10794           fi
10795
10796           { echo "$as_me:$LINENO: result: $result" >&5
10797 echo "${ECHO_T}$result" >&6; }
10798
10799
10800           enablestring=
10801           defaultval=$wxUSE_ALL_FEATURES
10802           if test -z "$defaultval"; then
10803               if test x"$enablestring" = xdisable; then
10804                   defaultval=yes
10805               else
10806                   defaultval=no
10807               fi
10808           fi
10809
10810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10811 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10812           # Check whether --enable-notebook was given.
10813 if test "${enable_notebook+set}" = set; then
10814   enableval=$enable_notebook;
10815                           if test "$enableval" = yes; then
10816                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10817                           else
10818                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10819                           fi
10820
10821 else
10822
10823                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10824
10825 fi
10826
10827
10828           eval "$wx_cv_use_notebook"
10829
10830           if test x"$enablestring" = xdisable; then
10831             if test $wxUSE_NOTEBOOK = yes; then
10832               result=no
10833             else
10834               result=yes
10835             fi
10836           else
10837             result=$wxUSE_NOTEBOOK
10838           fi
10839
10840           { echo "$as_me:$LINENO: result: $result" >&5
10841 echo "${ECHO_T}$result" >&6; }
10842
10843
10844           enablestring=
10845           defaultval=$wxUSE_ALL_FEATURES
10846           if test -z "$defaultval"; then
10847               if test x"$enablestring" = xdisable; then
10848                   defaultval=yes
10849               else
10850                   defaultval=no
10851               fi
10852           fi
10853
10854           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10855 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10856           # Check whether --enable-notifmsg was given.
10857 if test "${enable_notifmsg+set}" = set; then
10858   enableval=$enable_notifmsg;
10859                           if test "$enableval" = yes; then
10860                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10861                           else
10862                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10863                           fi
10864
10865 else
10866
10867                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10868
10869 fi
10870
10871
10872           eval "$wx_cv_use_notifmsg"
10873
10874           if test x"$enablestring" = xdisable; then
10875             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10876               result=no
10877             else
10878               result=yes
10879             fi
10880           else
10881             result=$wxUSE_NOTIFICATION_MESSAGE
10882           fi
10883
10884           { echo "$as_me:$LINENO: result: $result" >&5
10885 echo "${ECHO_T}$result" >&6; }
10886
10887
10888           enablestring=
10889           defaultval=$wxUSE_ALL_FEATURES
10890           if test -z "$defaultval"; then
10891               if test x"$enablestring" = xdisable; then
10892                   defaultval=yes
10893               else
10894                   defaultval=no
10895               fi
10896           fi
10897
10898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10899 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10900           # Check whether --enable-odcombobox was given.
10901 if test "${enable_odcombobox+set}" = set; then
10902   enableval=$enable_odcombobox;
10903                           if test "$enableval" = yes; then
10904                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10905                           else
10906                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10907                           fi
10908
10909 else
10910
10911                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
10912
10913 fi
10914
10915
10916           eval "$wx_cv_use_odcombobox"
10917
10918           if test x"$enablestring" = xdisable; then
10919             if test $wxUSE_ODCOMBOBOX = yes; then
10920               result=no
10921             else
10922               result=yes
10923             fi
10924           else
10925             result=$wxUSE_ODCOMBOBOX
10926           fi
10927
10928           { echo "$as_me:$LINENO: result: $result" >&5
10929 echo "${ECHO_T}$result" >&6; }
10930
10931
10932           enablestring=
10933           defaultval=$wxUSE_ALL_FEATURES
10934           if test -z "$defaultval"; then
10935               if test x"$enablestring" = xdisable; then
10936                   defaultval=yes
10937               else
10938                   defaultval=no
10939               fi
10940           fi
10941
10942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10943 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10944           # Check whether --enable-radiobox was given.
10945 if test "${enable_radiobox+set}" = set; then
10946   enableval=$enable_radiobox;
10947                           if test "$enableval" = yes; then
10948                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
10949                           else
10950                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
10951                           fi
10952
10953 else
10954
10955                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
10956
10957 fi
10958
10959
10960           eval "$wx_cv_use_radiobox"
10961
10962           if test x"$enablestring" = xdisable; then
10963             if test $wxUSE_RADIOBOX = yes; then
10964               result=no
10965             else
10966               result=yes
10967             fi
10968           else
10969             result=$wxUSE_RADIOBOX
10970           fi
10971
10972           { echo "$as_me:$LINENO: result: $result" >&5
10973 echo "${ECHO_T}$result" >&6; }
10974
10975
10976           enablestring=
10977           defaultval=$wxUSE_ALL_FEATURES
10978           if test -z "$defaultval"; then
10979               if test x"$enablestring" = xdisable; then
10980                   defaultval=yes
10981               else
10982                   defaultval=no
10983               fi
10984           fi
10985
10986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
10987 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
10988           # Check whether --enable-radiobtn was given.
10989 if test "${enable_radiobtn+set}" = set; then
10990   enableval=$enable_radiobtn;
10991                           if test "$enableval" = yes; then
10992                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
10993                           else
10994                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
10995                           fi
10996
10997 else
10998
10999                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11000
11001 fi
11002
11003
11004           eval "$wx_cv_use_radiobtn"
11005
11006           if test x"$enablestring" = xdisable; then
11007             if test $wxUSE_RADIOBTN = yes; then
11008               result=no
11009             else
11010               result=yes
11011             fi
11012           else
11013             result=$wxUSE_RADIOBTN
11014           fi
11015
11016           { echo "$as_me:$LINENO: result: $result" >&5
11017 echo "${ECHO_T}$result" >&6; }
11018
11019
11020           enablestring=
11021           defaultval=$wxUSE_ALL_FEATURES
11022           if test -z "$defaultval"; then
11023               if test x"$enablestring" = xdisable; then
11024                   defaultval=yes
11025               else
11026                   defaultval=no
11027               fi
11028           fi
11029
11030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11031 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11032           # Check whether --enable-sash was given.
11033 if test "${enable_sash+set}" = set; then
11034   enableval=$enable_sash;
11035                           if test "$enableval" = yes; then
11036                             wx_cv_use_sash='wxUSE_SASH=yes'
11037                           else
11038                             wx_cv_use_sash='wxUSE_SASH=no'
11039                           fi
11040
11041 else
11042
11043                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11044
11045 fi
11046
11047
11048           eval "$wx_cv_use_sash"
11049
11050           if test x"$enablestring" = xdisable; then
11051             if test $wxUSE_SASH = yes; then
11052               result=no
11053             else
11054               result=yes
11055             fi
11056           else
11057             result=$wxUSE_SASH
11058           fi
11059
11060           { echo "$as_me:$LINENO: result: $result" >&5
11061 echo "${ECHO_T}$result" >&6; }
11062
11063
11064           enablestring=
11065           defaultval=$wxUSE_ALL_FEATURES
11066           if test -z "$defaultval"; then
11067               if test x"$enablestring" = xdisable; then
11068                   defaultval=yes
11069               else
11070                   defaultval=no
11071               fi
11072           fi
11073
11074           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11075 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11076           # Check whether --enable-scrollbar was given.
11077 if test "${enable_scrollbar+set}" = set; then
11078   enableval=$enable_scrollbar;
11079                           if test "$enableval" = yes; then
11080                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11081                           else
11082                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11083                           fi
11084
11085 else
11086
11087                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11088
11089 fi
11090
11091
11092           eval "$wx_cv_use_scrollbar"
11093
11094           if test x"$enablestring" = xdisable; then
11095             if test $wxUSE_SCROLLBAR = yes; then
11096               result=no
11097             else
11098               result=yes
11099             fi
11100           else
11101             result=$wxUSE_SCROLLBAR
11102           fi
11103
11104           { echo "$as_me:$LINENO: result: $result" >&5
11105 echo "${ECHO_T}$result" >&6; }
11106
11107
11108           enablestring=
11109           defaultval=$wxUSE_ALL_FEATURES
11110           if test -z "$defaultval"; then
11111               if test x"$enablestring" = xdisable; then
11112                   defaultval=yes
11113               else
11114                   defaultval=no
11115               fi
11116           fi
11117
11118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11119 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11120           # Check whether --enable-searchctrl was given.
11121 if test "${enable_searchctrl+set}" = set; then
11122   enableval=$enable_searchctrl;
11123                           if test "$enableval" = yes; then
11124                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11125                           else
11126                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11127                           fi
11128
11129 else
11130
11131                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11132
11133 fi
11134
11135
11136           eval "$wx_cv_use_searchctrl"
11137
11138           if test x"$enablestring" = xdisable; then
11139             if test $wxUSE_SEARCHCTRL = yes; then
11140               result=no
11141             else
11142               result=yes
11143             fi
11144           else
11145             result=$wxUSE_SEARCHCTRL
11146           fi
11147
11148           { echo "$as_me:$LINENO: result: $result" >&5
11149 echo "${ECHO_T}$result" >&6; }
11150
11151
11152           enablestring=
11153           defaultval=$wxUSE_ALL_FEATURES
11154           if test -z "$defaultval"; then
11155               if test x"$enablestring" = xdisable; then
11156                   defaultval=yes
11157               else
11158                   defaultval=no
11159               fi
11160           fi
11161
11162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11163 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11164           # Check whether --enable-slider was given.
11165 if test "${enable_slider+set}" = set; then
11166   enableval=$enable_slider;
11167                           if test "$enableval" = yes; then
11168                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11169                           else
11170                             wx_cv_use_slider='wxUSE_SLIDER=no'
11171                           fi
11172
11173 else
11174
11175                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11176
11177 fi
11178
11179
11180           eval "$wx_cv_use_slider"
11181
11182           if test x"$enablestring" = xdisable; then
11183             if test $wxUSE_SLIDER = yes; then
11184               result=no
11185             else
11186               result=yes
11187             fi
11188           else
11189             result=$wxUSE_SLIDER
11190           fi
11191
11192           { echo "$as_me:$LINENO: result: $result" >&5
11193 echo "${ECHO_T}$result" >&6; }
11194
11195
11196           enablestring=
11197           defaultval=$wxUSE_ALL_FEATURES
11198           if test -z "$defaultval"; then
11199               if test x"$enablestring" = xdisable; then
11200                   defaultval=yes
11201               else
11202                   defaultval=no
11203               fi
11204           fi
11205
11206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11207 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11208           # Check whether --enable-spinbtn was given.
11209 if test "${enable_spinbtn+set}" = set; then
11210   enableval=$enable_spinbtn;
11211                           if test "$enableval" = yes; then
11212                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11213                           else
11214                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11215                           fi
11216
11217 else
11218
11219                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11220
11221 fi
11222
11223
11224           eval "$wx_cv_use_spinbtn"
11225
11226           if test x"$enablestring" = xdisable; then
11227             if test $wxUSE_SPINBTN = yes; then
11228               result=no
11229             else
11230               result=yes
11231             fi
11232           else
11233             result=$wxUSE_SPINBTN
11234           fi
11235
11236           { echo "$as_me:$LINENO: result: $result" >&5
11237 echo "${ECHO_T}$result" >&6; }
11238
11239
11240           enablestring=
11241           defaultval=$wxUSE_ALL_FEATURES
11242           if test -z "$defaultval"; then
11243               if test x"$enablestring" = xdisable; then
11244                   defaultval=yes
11245               else
11246                   defaultval=no
11247               fi
11248           fi
11249
11250           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11251 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11252           # Check whether --enable-spinctrl was given.
11253 if test "${enable_spinctrl+set}" = set; then
11254   enableval=$enable_spinctrl;
11255                           if test "$enableval" = yes; then
11256                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11257                           else
11258                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11259                           fi
11260
11261 else
11262
11263                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11264
11265 fi
11266
11267
11268           eval "$wx_cv_use_spinctrl"
11269
11270           if test x"$enablestring" = xdisable; then
11271             if test $wxUSE_SPINCTRL = yes; then
11272               result=no
11273             else
11274               result=yes
11275             fi
11276           else
11277             result=$wxUSE_SPINCTRL
11278           fi
11279
11280           { echo "$as_me:$LINENO: result: $result" >&5
11281 echo "${ECHO_T}$result" >&6; }
11282
11283
11284           enablestring=
11285           defaultval=$wxUSE_ALL_FEATURES
11286           if test -z "$defaultval"; then
11287               if test x"$enablestring" = xdisable; then
11288                   defaultval=yes
11289               else
11290                   defaultval=no
11291               fi
11292           fi
11293
11294           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11295 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11296           # Check whether --enable-splitter was given.
11297 if test "${enable_splitter+set}" = set; then
11298   enableval=$enable_splitter;
11299                           if test "$enableval" = yes; then
11300                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11301                           else
11302                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11303                           fi
11304
11305 else
11306
11307                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11308
11309 fi
11310
11311
11312           eval "$wx_cv_use_splitter"
11313
11314           if test x"$enablestring" = xdisable; then
11315             if test $wxUSE_SPLITTER = yes; then
11316               result=no
11317             else
11318               result=yes
11319             fi
11320           else
11321             result=$wxUSE_SPLITTER
11322           fi
11323
11324           { echo "$as_me:$LINENO: result: $result" >&5
11325 echo "${ECHO_T}$result" >&6; }
11326
11327
11328           enablestring=
11329           defaultval=$wxUSE_ALL_FEATURES
11330           if test -z "$defaultval"; then
11331               if test x"$enablestring" = xdisable; then
11332                   defaultval=yes
11333               else
11334                   defaultval=no
11335               fi
11336           fi
11337
11338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11339 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11340           # Check whether --enable-statbmp was given.
11341 if test "${enable_statbmp+set}" = set; then
11342   enableval=$enable_statbmp;
11343                           if test "$enableval" = yes; then
11344                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11345                           else
11346                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11347                           fi
11348
11349 else
11350
11351                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11352
11353 fi
11354
11355
11356           eval "$wx_cv_use_statbmp"
11357
11358           if test x"$enablestring" = xdisable; then
11359             if test $wxUSE_STATBMP = yes; then
11360               result=no
11361             else
11362               result=yes
11363             fi
11364           else
11365             result=$wxUSE_STATBMP
11366           fi
11367
11368           { echo "$as_me:$LINENO: result: $result" >&5
11369 echo "${ECHO_T}$result" >&6; }
11370
11371
11372           enablestring=
11373           defaultval=$wxUSE_ALL_FEATURES
11374           if test -z "$defaultval"; then
11375               if test x"$enablestring" = xdisable; then
11376                   defaultval=yes
11377               else
11378                   defaultval=no
11379               fi
11380           fi
11381
11382           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11383 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11384           # Check whether --enable-statbox was given.
11385 if test "${enable_statbox+set}" = set; then
11386   enableval=$enable_statbox;
11387                           if test "$enableval" = yes; then
11388                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11389                           else
11390                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11391                           fi
11392
11393 else
11394
11395                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11396
11397 fi
11398
11399
11400           eval "$wx_cv_use_statbox"
11401
11402           if test x"$enablestring" = xdisable; then
11403             if test $wxUSE_STATBOX = yes; then
11404               result=no
11405             else
11406               result=yes
11407             fi
11408           else
11409             result=$wxUSE_STATBOX
11410           fi
11411
11412           { echo "$as_me:$LINENO: result: $result" >&5
11413 echo "${ECHO_T}$result" >&6; }
11414
11415
11416           enablestring=
11417           defaultval=$wxUSE_ALL_FEATURES
11418           if test -z "$defaultval"; then
11419               if test x"$enablestring" = xdisable; then
11420                   defaultval=yes
11421               else
11422                   defaultval=no
11423               fi
11424           fi
11425
11426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11427 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11428           # Check whether --enable-statline was given.
11429 if test "${enable_statline+set}" = set; then
11430   enableval=$enable_statline;
11431                           if test "$enableval" = yes; then
11432                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11433                           else
11434                             wx_cv_use_statline='wxUSE_STATLINE=no'
11435                           fi
11436
11437 else
11438
11439                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11440
11441 fi
11442
11443
11444           eval "$wx_cv_use_statline"
11445
11446           if test x"$enablestring" = xdisable; then
11447             if test $wxUSE_STATLINE = yes; then
11448               result=no
11449             else
11450               result=yes
11451             fi
11452           else
11453             result=$wxUSE_STATLINE
11454           fi
11455
11456           { echo "$as_me:$LINENO: result: $result" >&5
11457 echo "${ECHO_T}$result" >&6; }
11458
11459
11460           enablestring=
11461           defaultval=$wxUSE_ALL_FEATURES
11462           if test -z "$defaultval"; then
11463               if test x"$enablestring" = xdisable; then
11464                   defaultval=yes
11465               else
11466                   defaultval=no
11467               fi
11468           fi
11469
11470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11471 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11472           # Check whether --enable-stattext was given.
11473 if test "${enable_stattext+set}" = set; then
11474   enableval=$enable_stattext;
11475                           if test "$enableval" = yes; then
11476                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11477                           else
11478                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11479                           fi
11480
11481 else
11482
11483                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11484
11485 fi
11486
11487
11488           eval "$wx_cv_use_stattext"
11489
11490           if test x"$enablestring" = xdisable; then
11491             if test $wxUSE_STATTEXT = yes; then
11492               result=no
11493             else
11494               result=yes
11495             fi
11496           else
11497             result=$wxUSE_STATTEXT
11498           fi
11499
11500           { echo "$as_me:$LINENO: result: $result" >&5
11501 echo "${ECHO_T}$result" >&6; }
11502
11503
11504           enablestring=
11505           defaultval=$wxUSE_ALL_FEATURES
11506           if test -z "$defaultval"; then
11507               if test x"$enablestring" = xdisable; then
11508                   defaultval=yes
11509               else
11510                   defaultval=no
11511               fi
11512           fi
11513
11514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11515 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11516           # Check whether --enable-statusbar was given.
11517 if test "${enable_statusbar+set}" = set; then
11518   enableval=$enable_statusbar;
11519                           if test "$enableval" = yes; then
11520                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11521                           else
11522                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11523                           fi
11524
11525 else
11526
11527                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11528
11529 fi
11530
11531
11532           eval "$wx_cv_use_statusbar"
11533
11534           if test x"$enablestring" = xdisable; then
11535             if test $wxUSE_STATUSBAR = yes; then
11536               result=no
11537             else
11538               result=yes
11539             fi
11540           else
11541             result=$wxUSE_STATUSBAR
11542           fi
11543
11544           { echo "$as_me:$LINENO: result: $result" >&5
11545 echo "${ECHO_T}$result" >&6; }
11546
11547
11548           enablestring=
11549           defaultval=$wxUSE_ALL_FEATURES
11550           if test -z "$defaultval"; then
11551               if test x"$enablestring" = xdisable; then
11552                   defaultval=yes
11553               else
11554                   defaultval=no
11555               fi
11556           fi
11557
11558           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
11559 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11560           # Check whether --enable-tabdialog was given.
11561 if test "${enable_tabdialog+set}" = set; then
11562   enableval=$enable_tabdialog;
11563                           if test "$enableval" = yes; then
11564                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11565                           else
11566                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11567                           fi
11568
11569 else
11570
11571                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11572
11573 fi
11574
11575
11576           eval "$wx_cv_use_tabdialog"
11577
11578           if test x"$enablestring" = xdisable; then
11579             if test $wxUSE_TAB_DIALOG = yes; then
11580               result=no
11581             else
11582               result=yes
11583             fi
11584           else
11585             result=$wxUSE_TAB_DIALOG
11586           fi
11587
11588           { echo "$as_me:$LINENO: result: $result" >&5
11589 echo "${ECHO_T}$result" >&6; }
11590
11591
11592           enablestring=
11593           defaultval=$wxUSE_ALL_FEATURES
11594           if test -z "$defaultval"; then
11595               if test x"$enablestring" = xdisable; then
11596                   defaultval=yes
11597               else
11598                   defaultval=no
11599               fi
11600           fi
11601
11602           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11603 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11604           # Check whether --enable-taskbaricon was given.
11605 if test "${enable_taskbaricon+set}" = set; then
11606   enableval=$enable_taskbaricon;
11607                           if test "$enableval" = yes; then
11608                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11609                           else
11610                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11611                           fi
11612
11613 else
11614
11615                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11616
11617 fi
11618
11619
11620           eval "$wx_cv_use_taskbaricon"
11621
11622           if test x"$enablestring" = xdisable; then
11623             if test $wxUSE_TASKBARICON = yes; then
11624               result=no
11625             else
11626               result=yes
11627             fi
11628           else
11629             result=$wxUSE_TASKBARICON
11630           fi
11631
11632           { echo "$as_me:$LINENO: result: $result" >&5
11633 echo "${ECHO_T}$result" >&6; }
11634
11635
11636           enablestring=
11637           defaultval=$wxUSE_ALL_FEATURES
11638           if test -z "$defaultval"; then
11639               if test x"$enablestring" = xdisable; then
11640                   defaultval=yes
11641               else
11642                   defaultval=no
11643               fi
11644           fi
11645
11646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11647 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11648           # Check whether --enable-textctrl was given.
11649 if test "${enable_textctrl+set}" = set; then
11650   enableval=$enable_textctrl;
11651                           if test "$enableval" = yes; then
11652                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11653                           else
11654                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11655                           fi
11656
11657 else
11658
11659                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11660
11661 fi
11662
11663
11664           eval "$wx_cv_use_textctrl"
11665
11666           if test x"$enablestring" = xdisable; then
11667             if test $wxUSE_TEXTCTRL = yes; then
11668               result=no
11669             else
11670               result=yes
11671             fi
11672           else
11673             result=$wxUSE_TEXTCTRL
11674           fi
11675
11676           { echo "$as_me:$LINENO: result: $result" >&5
11677 echo "${ECHO_T}$result" >&6; }
11678
11679
11680           enablestring=
11681           defaultval=$wxUSE_ALL_FEATURES
11682           if test -z "$defaultval"; then
11683               if test x"$enablestring" = xdisable; then
11684                   defaultval=yes
11685               else
11686                   defaultval=no
11687               fi
11688           fi
11689
11690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11691 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11692           # Check whether --enable-togglebtn was given.
11693 if test "${enable_togglebtn+set}" = set; then
11694   enableval=$enable_togglebtn;
11695                           if test "$enableval" = yes; then
11696                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11697                           else
11698                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11699                           fi
11700
11701 else
11702
11703                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11704
11705 fi
11706
11707
11708           eval "$wx_cv_use_togglebtn"
11709
11710           if test x"$enablestring" = xdisable; then
11711             if test $wxUSE_TOGGLEBTN = yes; then
11712               result=no
11713             else
11714               result=yes
11715             fi
11716           else
11717             result=$wxUSE_TOGGLEBTN
11718           fi
11719
11720           { echo "$as_me:$LINENO: result: $result" >&5
11721 echo "${ECHO_T}$result" >&6; }
11722
11723
11724           enablestring=
11725           defaultval=$wxUSE_ALL_FEATURES
11726           if test -z "$defaultval"; then
11727               if test x"$enablestring" = xdisable; then
11728                   defaultval=yes
11729               else
11730                   defaultval=no
11731               fi
11732           fi
11733
11734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11735 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11736           # Check whether --enable-toolbar was given.
11737 if test "${enable_toolbar+set}" = set; then
11738   enableval=$enable_toolbar;
11739                           if test "$enableval" = yes; then
11740                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11741                           else
11742                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11743                           fi
11744
11745 else
11746
11747                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11748
11749 fi
11750
11751
11752           eval "$wx_cv_use_toolbar"
11753
11754           if test x"$enablestring" = xdisable; then
11755             if test $wxUSE_TOOLBAR = yes; then
11756               result=no
11757             else
11758               result=yes
11759             fi
11760           else
11761             result=$wxUSE_TOOLBAR
11762           fi
11763
11764           { echo "$as_me:$LINENO: result: $result" >&5
11765 echo "${ECHO_T}$result" >&6; }
11766
11767
11768           enablestring=
11769           defaultval=$wxUSE_ALL_FEATURES
11770           if test -z "$defaultval"; then
11771               if test x"$enablestring" = xdisable; then
11772                   defaultval=yes
11773               else
11774                   defaultval=no
11775               fi
11776           fi
11777
11778           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11779 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11780           # Check whether --enable-tbarnative was given.
11781 if test "${enable_tbarnative+set}" = set; then
11782   enableval=$enable_tbarnative;
11783                           if test "$enableval" = yes; then
11784                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11785                           else
11786                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11787                           fi
11788
11789 else
11790
11791                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11792
11793 fi
11794
11795
11796           eval "$wx_cv_use_tbarnative"
11797
11798           if test x"$enablestring" = xdisable; then
11799             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11800               result=no
11801             else
11802               result=yes
11803             fi
11804           else
11805             result=$wxUSE_TOOLBAR_NATIVE
11806           fi
11807
11808           { echo "$as_me:$LINENO: result: $result" >&5
11809 echo "${ECHO_T}$result" >&6; }
11810
11811
11812           enablestring=
11813           defaultval=$wxUSE_ALL_FEATURES
11814           if test -z "$defaultval"; then
11815               if test x"$enablestring" = xdisable; then
11816                   defaultval=yes
11817               else
11818                   defaultval=no
11819               fi
11820           fi
11821
11822           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11823 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11824           # Check whether --enable-treebook was given.
11825 if test "${enable_treebook+set}" = set; then
11826   enableval=$enable_treebook;
11827                           if test "$enableval" = yes; then
11828                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11829                           else
11830                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11831                           fi
11832
11833 else
11834
11835                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11836
11837 fi
11838
11839
11840           eval "$wx_cv_use_treebook"
11841
11842           if test x"$enablestring" = xdisable; then
11843             if test $wxUSE_TREEBOOK = yes; then
11844               result=no
11845             else
11846               result=yes
11847             fi
11848           else
11849             result=$wxUSE_TREEBOOK
11850           fi
11851
11852           { echo "$as_me:$LINENO: result: $result" >&5
11853 echo "${ECHO_T}$result" >&6; }
11854
11855
11856           enablestring=
11857           defaultval=$wxUSE_ALL_FEATURES
11858           if test -z "$defaultval"; then
11859               if test x"$enablestring" = xdisable; then
11860                   defaultval=yes
11861               else
11862                   defaultval=no
11863               fi
11864           fi
11865
11866           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
11867 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
11868           # Check whether --enable-toolbook was given.
11869 if test "${enable_toolbook+set}" = set; then
11870   enableval=$enable_toolbook;
11871                           if test "$enableval" = yes; then
11872                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
11873                           else
11874                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
11875                           fi
11876
11877 else
11878
11879                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
11880
11881 fi
11882
11883
11884           eval "$wx_cv_use_toolbook"
11885
11886           if test x"$enablestring" = xdisable; then
11887             if test $wxUSE_TOOLBOOK = yes; then
11888               result=no
11889             else
11890               result=yes
11891             fi
11892           else
11893             result=$wxUSE_TOOLBOOK
11894           fi
11895
11896           { echo "$as_me:$LINENO: result: $result" >&5
11897 echo "${ECHO_T}$result" >&6; }
11898
11899
11900           enablestring=
11901           defaultval=$wxUSE_ALL_FEATURES
11902           if test -z "$defaultval"; then
11903               if test x"$enablestring" = xdisable; then
11904                   defaultval=yes
11905               else
11906                   defaultval=no
11907               fi
11908           fi
11909
11910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
11911 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
11912           # Check whether --enable-treectrl was given.
11913 if test "${enable_treectrl+set}" = set; then
11914   enableval=$enable_treectrl;
11915                           if test "$enableval" = yes; then
11916                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
11917                           else
11918                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
11919                           fi
11920
11921 else
11922
11923                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
11924
11925 fi
11926
11927
11928           eval "$wx_cv_use_treectrl"
11929
11930           if test x"$enablestring" = xdisable; then
11931             if test $wxUSE_TREECTRL = yes; then
11932               result=no
11933             else
11934               result=yes
11935             fi
11936           else
11937             result=$wxUSE_TREECTRL
11938           fi
11939
11940           { echo "$as_me:$LINENO: result: $result" >&5
11941 echo "${ECHO_T}$result" >&6; }
11942
11943
11944           enablestring=
11945           defaultval=$wxUSE_ALL_FEATURES
11946           if test -z "$defaultval"; then
11947               if test x"$enablestring" = xdisable; then
11948                   defaultval=yes
11949               else
11950                   defaultval=no
11951               fi
11952           fi
11953
11954           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11955 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11956           # Check whether --enable-tipwindow was given.
11957 if test "${enable_tipwindow+set}" = set; then
11958   enableval=$enable_tipwindow;
11959                           if test "$enableval" = yes; then
11960                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11961                           else
11962                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11963                           fi
11964
11965 else
11966
11967                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11968
11969 fi
11970
11971
11972           eval "$wx_cv_use_tipwindow"
11973
11974           if test x"$enablestring" = xdisable; then
11975             if test $wxUSE_TIPWINDOW = yes; then
11976               result=no
11977             else
11978               result=yes
11979             fi
11980           else
11981             result=$wxUSE_TIPWINDOW
11982           fi
11983
11984           { echo "$as_me:$LINENO: result: $result" >&5
11985 echo "${ECHO_T}$result" >&6; }
11986
11987
11988           enablestring=
11989           defaultval=$wxUSE_ALL_FEATURES
11990           if test -z "$defaultval"; then
11991               if test x"$enablestring" = xdisable; then
11992                   defaultval=yes
11993               else
11994                   defaultval=no
11995               fi
11996           fi
11997
11998           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11999 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
12000           # Check whether --enable-popupwin was given.
12001 if test "${enable_popupwin+set}" = set; then
12002   enableval=$enable_popupwin;
12003                           if test "$enableval" = yes; then
12004                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
12005                           else
12006                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
12007                           fi
12008
12009 else
12010
12011                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
12012
12013 fi
12014
12015
12016           eval "$wx_cv_use_popupwin"
12017
12018           if test x"$enablestring" = xdisable; then
12019             if test $wxUSE_POPUPWIN = yes; then
12020               result=no
12021             else
12022               result=yes
12023             fi
12024           else
12025             result=$wxUSE_POPUPWIN
12026           fi
12027
12028           { echo "$as_me:$LINENO: result: $result" >&5
12029 echo "${ECHO_T}$result" >&6; }
12030
12031
12032
12033
12034           enablestring=
12035           defaultval=$wxUSE_ALL_FEATURES
12036           if test -z "$defaultval"; then
12037               if test x"$enablestring" = xdisable; then
12038                   defaultval=yes
12039               else
12040                   defaultval=no
12041               fi
12042           fi
12043
12044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12045 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12046           # Check whether --enable-commondlg was given.
12047 if test "${enable_commondlg+set}" = set; then
12048   enableval=$enable_commondlg;
12049                           if test "$enableval" = yes; then
12050                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12051                           else
12052                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12053                           fi
12054
12055 else
12056
12057                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12058
12059 fi
12060
12061
12062           eval "$wx_cv_use_commondlg"
12063
12064           if test x"$enablestring" = xdisable; then
12065             if test $wxUSE_COMMONDLGS = yes; then
12066               result=no
12067             else
12068               result=yes
12069             fi
12070           else
12071             result=$wxUSE_COMMONDLGS
12072           fi
12073
12074           { echo "$as_me:$LINENO: result: $result" >&5
12075 echo "${ECHO_T}$result" >&6; }
12076
12077
12078           enablestring=
12079           defaultval=$wxUSE_ALL_FEATURES
12080           if test -z "$defaultval"; then
12081               if test x"$enablestring" = xdisable; then
12082                   defaultval=yes
12083               else
12084                   defaultval=no
12085               fi
12086           fi
12087
12088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12089 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12090           # Check whether --enable-aboutdlg was given.
12091 if test "${enable_aboutdlg+set}" = set; then
12092   enableval=$enable_aboutdlg;
12093                           if test "$enableval" = yes; then
12094                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12095                           else
12096                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12097                           fi
12098
12099 else
12100
12101                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12102
12103 fi
12104
12105
12106           eval "$wx_cv_use_aboutdlg"
12107
12108           if test x"$enablestring" = xdisable; then
12109             if test $wxUSE_ABOUTDLG = yes; then
12110               result=no
12111             else
12112               result=yes
12113             fi
12114           else
12115             result=$wxUSE_ABOUTDLG
12116           fi
12117
12118           { echo "$as_me:$LINENO: result: $result" >&5
12119 echo "${ECHO_T}$result" >&6; }
12120
12121
12122           enablestring=
12123           defaultval=$wxUSE_ALL_FEATURES
12124           if test -z "$defaultval"; then
12125               if test x"$enablestring" = xdisable; then
12126                   defaultval=yes
12127               else
12128                   defaultval=no
12129               fi
12130           fi
12131
12132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12133 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12134           # Check whether --enable-choicedlg was given.
12135 if test "${enable_choicedlg+set}" = set; then
12136   enableval=$enable_choicedlg;
12137                           if test "$enableval" = yes; then
12138                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12139                           else
12140                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12141                           fi
12142
12143 else
12144
12145                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12146
12147 fi
12148
12149
12150           eval "$wx_cv_use_choicedlg"
12151
12152           if test x"$enablestring" = xdisable; then
12153             if test $wxUSE_CHOICEDLG = yes; then
12154               result=no
12155             else
12156               result=yes
12157             fi
12158           else
12159             result=$wxUSE_CHOICEDLG
12160           fi
12161
12162           { echo "$as_me:$LINENO: result: $result" >&5
12163 echo "${ECHO_T}$result" >&6; }
12164
12165
12166           enablestring=
12167           defaultval=$wxUSE_ALL_FEATURES
12168           if test -z "$defaultval"; then
12169               if test x"$enablestring" = xdisable; then
12170                   defaultval=yes
12171               else
12172                   defaultval=no
12173               fi
12174           fi
12175
12176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12177 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12178           # Check whether --enable-coldlg was given.
12179 if test "${enable_coldlg+set}" = set; then
12180   enableval=$enable_coldlg;
12181                           if test "$enableval" = yes; then
12182                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12183                           else
12184                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12185                           fi
12186
12187 else
12188
12189                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12190
12191 fi
12192
12193
12194           eval "$wx_cv_use_coldlg"
12195
12196           if test x"$enablestring" = xdisable; then
12197             if test $wxUSE_COLOURDLG = yes; then
12198               result=no
12199             else
12200               result=yes
12201             fi
12202           else
12203             result=$wxUSE_COLOURDLG
12204           fi
12205
12206           { echo "$as_me:$LINENO: result: $result" >&5
12207 echo "${ECHO_T}$result" >&6; }
12208
12209
12210           enablestring=
12211           defaultval=$wxUSE_ALL_FEATURES
12212           if test -z "$defaultval"; then
12213               if test x"$enablestring" = xdisable; then
12214                   defaultval=yes
12215               else
12216                   defaultval=no
12217               fi
12218           fi
12219
12220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12221 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12222           # Check whether --enable-filedlg was given.
12223 if test "${enable_filedlg+set}" = set; then
12224   enableval=$enable_filedlg;
12225                           if test "$enableval" = yes; then
12226                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12227                           else
12228                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12229                           fi
12230
12231 else
12232
12233                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12234
12235 fi
12236
12237
12238           eval "$wx_cv_use_filedlg"
12239
12240           if test x"$enablestring" = xdisable; then
12241             if test $wxUSE_FILEDLG = yes; then
12242               result=no
12243             else
12244               result=yes
12245             fi
12246           else
12247             result=$wxUSE_FILEDLG
12248           fi
12249
12250           { echo "$as_me:$LINENO: result: $result" >&5
12251 echo "${ECHO_T}$result" >&6; }
12252
12253
12254           enablestring=
12255           defaultval=$wxUSE_ALL_FEATURES
12256           if test -z "$defaultval"; then
12257               if test x"$enablestring" = xdisable; then
12258                   defaultval=yes
12259               else
12260                   defaultval=no
12261               fi
12262           fi
12263
12264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12265 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12266           # Check whether --enable-finddlg was given.
12267 if test "${enable_finddlg+set}" = set; then
12268   enableval=$enable_finddlg;
12269                           if test "$enableval" = yes; then
12270                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12271                           else
12272                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12273                           fi
12274
12275 else
12276
12277                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12278
12279 fi
12280
12281
12282           eval "$wx_cv_use_finddlg"
12283
12284           if test x"$enablestring" = xdisable; then
12285             if test $wxUSE_FINDREPLDLG = yes; then
12286               result=no
12287             else
12288               result=yes
12289             fi
12290           else
12291             result=$wxUSE_FINDREPLDLG
12292           fi
12293
12294           { echo "$as_me:$LINENO: result: $result" >&5
12295 echo "${ECHO_T}$result" >&6; }
12296
12297
12298           enablestring=
12299           defaultval=$wxUSE_ALL_FEATURES
12300           if test -z "$defaultval"; then
12301               if test x"$enablestring" = xdisable; then
12302                   defaultval=yes
12303               else
12304                   defaultval=no
12305               fi
12306           fi
12307
12308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12309 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12310           # Check whether --enable-fontdlg was given.
12311 if test "${enable_fontdlg+set}" = set; then
12312   enableval=$enable_fontdlg;
12313                           if test "$enableval" = yes; then
12314                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12315                           else
12316                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12317                           fi
12318
12319 else
12320
12321                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12322
12323 fi
12324
12325
12326           eval "$wx_cv_use_fontdlg"
12327
12328           if test x"$enablestring" = xdisable; then
12329             if test $wxUSE_FONTDLG = yes; then
12330               result=no
12331             else
12332               result=yes
12333             fi
12334           else
12335             result=$wxUSE_FONTDLG
12336           fi
12337
12338           { echo "$as_me:$LINENO: result: $result" >&5
12339 echo "${ECHO_T}$result" >&6; }
12340
12341
12342           enablestring=
12343           defaultval=$wxUSE_ALL_FEATURES
12344           if test -z "$defaultval"; then
12345               if test x"$enablestring" = xdisable; then
12346                   defaultval=yes
12347               else
12348                   defaultval=no
12349               fi
12350           fi
12351
12352           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12353 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12354           # Check whether --enable-dirdlg was given.
12355 if test "${enable_dirdlg+set}" = set; then
12356   enableval=$enable_dirdlg;
12357                           if test "$enableval" = yes; then
12358                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12359                           else
12360                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12361                           fi
12362
12363 else
12364
12365                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12366
12367 fi
12368
12369
12370           eval "$wx_cv_use_dirdlg"
12371
12372           if test x"$enablestring" = xdisable; then
12373             if test $wxUSE_DIRDLG = yes; then
12374               result=no
12375             else
12376               result=yes
12377             fi
12378           else
12379             result=$wxUSE_DIRDLG
12380           fi
12381
12382           { echo "$as_me:$LINENO: result: $result" >&5
12383 echo "${ECHO_T}$result" >&6; }
12384
12385
12386           enablestring=
12387           defaultval=$wxUSE_ALL_FEATURES
12388           if test -z "$defaultval"; then
12389               if test x"$enablestring" = xdisable; then
12390                   defaultval=yes
12391               else
12392                   defaultval=no
12393               fi
12394           fi
12395
12396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12397 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12398           # Check whether --enable-msgdlg was given.
12399 if test "${enable_msgdlg+set}" = set; then
12400   enableval=$enable_msgdlg;
12401                           if test "$enableval" = yes; then
12402                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12403                           else
12404                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12405                           fi
12406
12407 else
12408
12409                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12410
12411 fi
12412
12413
12414           eval "$wx_cv_use_msgdlg"
12415
12416           if test x"$enablestring" = xdisable; then
12417             if test $wxUSE_MSGDLG = yes; then
12418               result=no
12419             else
12420               result=yes
12421             fi
12422           else
12423             result=$wxUSE_MSGDLG
12424           fi
12425
12426           { echo "$as_me:$LINENO: result: $result" >&5
12427 echo "${ECHO_T}$result" >&6; }
12428
12429
12430           enablestring=
12431           defaultval=$wxUSE_ALL_FEATURES
12432           if test -z "$defaultval"; then
12433               if test x"$enablestring" = xdisable; then
12434                   defaultval=yes
12435               else
12436                   defaultval=no
12437               fi
12438           fi
12439
12440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12441 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12442           # Check whether --enable-numberdlg was given.
12443 if test "${enable_numberdlg+set}" = set; then
12444   enableval=$enable_numberdlg;
12445                           if test "$enableval" = yes; then
12446                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12447                           else
12448                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12449                           fi
12450
12451 else
12452
12453                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12454
12455 fi
12456
12457
12458           eval "$wx_cv_use_numberdlg"
12459
12460           if test x"$enablestring" = xdisable; then
12461             if test $wxUSE_NUMBERDLG = yes; then
12462               result=no
12463             else
12464               result=yes
12465             fi
12466           else
12467             result=$wxUSE_NUMBERDLG
12468           fi
12469
12470           { echo "$as_me:$LINENO: result: $result" >&5
12471 echo "${ECHO_T}$result" >&6; }
12472
12473
12474           enablestring=
12475           defaultval=$wxUSE_ALL_FEATURES
12476           if test -z "$defaultval"; then
12477               if test x"$enablestring" = xdisable; then
12478                   defaultval=yes
12479               else
12480                   defaultval=no
12481               fi
12482           fi
12483
12484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12485 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12486           # Check whether --enable-splash was given.
12487 if test "${enable_splash+set}" = set; then
12488   enableval=$enable_splash;
12489                           if test "$enableval" = yes; then
12490                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12491                           else
12492                             wx_cv_use_splash='wxUSE_SPLASH=no'
12493                           fi
12494
12495 else
12496
12497                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12498
12499 fi
12500
12501
12502           eval "$wx_cv_use_splash"
12503
12504           if test x"$enablestring" = xdisable; then
12505             if test $wxUSE_SPLASH = yes; then
12506               result=no
12507             else
12508               result=yes
12509             fi
12510           else
12511             result=$wxUSE_SPLASH
12512           fi
12513
12514           { echo "$as_me:$LINENO: result: $result" >&5
12515 echo "${ECHO_T}$result" >&6; }
12516
12517
12518           enablestring=
12519           defaultval=$wxUSE_ALL_FEATURES
12520           if test -z "$defaultval"; then
12521               if test x"$enablestring" = xdisable; then
12522                   defaultval=yes
12523               else
12524                   defaultval=no
12525               fi
12526           fi
12527
12528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12529 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12530           # Check whether --enable-textdlg was given.
12531 if test "${enable_textdlg+set}" = set; then
12532   enableval=$enable_textdlg;
12533                           if test "$enableval" = yes; then
12534                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12535                           else
12536                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12537                           fi
12538
12539 else
12540
12541                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12542
12543 fi
12544
12545
12546           eval "$wx_cv_use_textdlg"
12547
12548           if test x"$enablestring" = xdisable; then
12549             if test $wxUSE_TEXTDLG = yes; then
12550               result=no
12551             else
12552               result=yes
12553             fi
12554           else
12555             result=$wxUSE_TEXTDLG
12556           fi
12557
12558           { echo "$as_me:$LINENO: result: $result" >&5
12559 echo "${ECHO_T}$result" >&6; }
12560
12561
12562           enablestring=
12563           defaultval=$wxUSE_ALL_FEATURES
12564           if test -z "$defaultval"; then
12565               if test x"$enablestring" = xdisable; then
12566                   defaultval=yes
12567               else
12568                   defaultval=no
12569               fi
12570           fi
12571
12572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12573 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12574           # Check whether --enable-tipdlg was given.
12575 if test "${enable_tipdlg+set}" = set; then
12576   enableval=$enable_tipdlg;
12577                           if test "$enableval" = yes; then
12578                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12579                           else
12580                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12581                           fi
12582
12583 else
12584
12585                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12586
12587 fi
12588
12589
12590           eval "$wx_cv_use_tipdlg"
12591
12592           if test x"$enablestring" = xdisable; then
12593             if test $wxUSE_STARTUP_TIPS = yes; then
12594               result=no
12595             else
12596               result=yes
12597             fi
12598           else
12599             result=$wxUSE_STARTUP_TIPS
12600           fi
12601
12602           { echo "$as_me:$LINENO: result: $result" >&5
12603 echo "${ECHO_T}$result" >&6; }
12604
12605
12606           enablestring=
12607           defaultval=$wxUSE_ALL_FEATURES
12608           if test -z "$defaultval"; then
12609               if test x"$enablestring" = xdisable; then
12610                   defaultval=yes
12611               else
12612                   defaultval=no
12613               fi
12614           fi
12615
12616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12617 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12618           # Check whether --enable-progressdlg was given.
12619 if test "${enable_progressdlg+set}" = set; then
12620   enableval=$enable_progressdlg;
12621                           if test "$enableval" = yes; then
12622                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12623                           else
12624                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12625                           fi
12626
12627 else
12628
12629                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12630
12631 fi
12632
12633
12634           eval "$wx_cv_use_progressdlg"
12635
12636           if test x"$enablestring" = xdisable; then
12637             if test $wxUSE_PROGRESSDLG = yes; then
12638               result=no
12639             else
12640               result=yes
12641             fi
12642           else
12643             result=$wxUSE_PROGRESSDLG
12644           fi
12645
12646           { echo "$as_me:$LINENO: result: $result" >&5
12647 echo "${ECHO_T}$result" >&6; }
12648
12649
12650           enablestring=
12651           defaultval=$wxUSE_ALL_FEATURES
12652           if test -z "$defaultval"; then
12653               if test x"$enablestring" = xdisable; then
12654                   defaultval=yes
12655               else
12656                   defaultval=no
12657               fi
12658           fi
12659
12660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12661 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12662           # Check whether --enable-wizarddlg was given.
12663 if test "${enable_wizarddlg+set}" = set; then
12664   enableval=$enable_wizarddlg;
12665                           if test "$enableval" = yes; then
12666                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12667                           else
12668                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12669                           fi
12670
12671 else
12672
12673                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12674
12675 fi
12676
12677
12678           eval "$wx_cv_use_wizarddlg"
12679
12680           if test x"$enablestring" = xdisable; then
12681             if test $wxUSE_WIZARDDLG = yes; then
12682               result=no
12683             else
12684               result=yes
12685             fi
12686           else
12687             result=$wxUSE_WIZARDDLG
12688           fi
12689
12690           { echo "$as_me:$LINENO: result: $result" >&5
12691 echo "${ECHO_T}$result" >&6; }
12692
12693
12694
12695
12696           enablestring=
12697           defaultval=$wxUSE_ALL_FEATURES
12698           if test -z "$defaultval"; then
12699               if test x"$enablestring" = xdisable; then
12700                   defaultval=yes
12701               else
12702                   defaultval=no
12703               fi
12704           fi
12705
12706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12707 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12708           # Check whether --enable-menus was given.
12709 if test "${enable_menus+set}" = set; then
12710   enableval=$enable_menus;
12711                           if test "$enableval" = yes; then
12712                             wx_cv_use_menus='wxUSE_MENUS=yes'
12713                           else
12714                             wx_cv_use_menus='wxUSE_MENUS=no'
12715                           fi
12716
12717 else
12718
12719                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12720
12721 fi
12722
12723
12724           eval "$wx_cv_use_menus"
12725
12726           if test x"$enablestring" = xdisable; then
12727             if test $wxUSE_MENUS = yes; then
12728               result=no
12729             else
12730               result=yes
12731             fi
12732           else
12733             result=$wxUSE_MENUS
12734           fi
12735
12736           { echo "$as_me:$LINENO: result: $result" >&5
12737 echo "${ECHO_T}$result" >&6; }
12738
12739
12740           enablestring=
12741           defaultval=$wxUSE_ALL_FEATURES
12742           if test -z "$defaultval"; then
12743               if test x"$enablestring" = xdisable; then
12744                   defaultval=yes
12745               else
12746                   defaultval=no
12747               fi
12748           fi
12749
12750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12751 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12752           # Check whether --enable-miniframe was given.
12753 if test "${enable_miniframe+set}" = set; then
12754   enableval=$enable_miniframe;
12755                           if test "$enableval" = yes; then
12756                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12757                           else
12758                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12759                           fi
12760
12761 else
12762
12763                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12764
12765 fi
12766
12767
12768           eval "$wx_cv_use_miniframe"
12769
12770           if test x"$enablestring" = xdisable; then
12771             if test $wxUSE_MINIFRAME = yes; then
12772               result=no
12773             else
12774               result=yes
12775             fi
12776           else
12777             result=$wxUSE_MINIFRAME
12778           fi
12779
12780           { echo "$as_me:$LINENO: result: $result" >&5
12781 echo "${ECHO_T}$result" >&6; }
12782
12783
12784           enablestring=
12785           defaultval=$wxUSE_ALL_FEATURES
12786           if test -z "$defaultval"; then
12787               if test x"$enablestring" = xdisable; then
12788                   defaultval=yes
12789               else
12790                   defaultval=no
12791               fi
12792           fi
12793
12794           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12795 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12796           # Check whether --enable-tooltips was given.
12797 if test "${enable_tooltips+set}" = set; then
12798   enableval=$enable_tooltips;
12799                           if test "$enableval" = yes; then
12800                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12801                           else
12802                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12803                           fi
12804
12805 else
12806
12807                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12808
12809 fi
12810
12811
12812           eval "$wx_cv_use_tooltips"
12813
12814           if test x"$enablestring" = xdisable; then
12815             if test $wxUSE_TOOLTIPS = yes; then
12816               result=no
12817             else
12818               result=yes
12819             fi
12820           else
12821             result=$wxUSE_TOOLTIPS
12822           fi
12823
12824           { echo "$as_me:$LINENO: result: $result" >&5
12825 echo "${ECHO_T}$result" >&6; }
12826
12827
12828           enablestring=
12829           defaultval=$wxUSE_ALL_FEATURES
12830           if test -z "$defaultval"; then
12831               if test x"$enablestring" = xdisable; then
12832                   defaultval=yes
12833               else
12834                   defaultval=no
12835               fi
12836           fi
12837
12838           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12839 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12840           # Check whether --enable-splines was given.
12841 if test "${enable_splines+set}" = set; then
12842   enableval=$enable_splines;
12843                           if test "$enableval" = yes; then
12844                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12845                           else
12846                             wx_cv_use_splines='wxUSE_SPLINES=no'
12847                           fi
12848
12849 else
12850
12851                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12852
12853 fi
12854
12855
12856           eval "$wx_cv_use_splines"
12857
12858           if test x"$enablestring" = xdisable; then
12859             if test $wxUSE_SPLINES = yes; then
12860               result=no
12861             else
12862               result=yes
12863             fi
12864           else
12865             result=$wxUSE_SPLINES
12866           fi
12867
12868           { echo "$as_me:$LINENO: result: $result" >&5
12869 echo "${ECHO_T}$result" >&6; }
12870
12871
12872           enablestring=
12873           defaultval=$wxUSE_ALL_FEATURES
12874           if test -z "$defaultval"; then
12875               if test x"$enablestring" = xdisable; then
12876                   defaultval=yes
12877               else
12878                   defaultval=no
12879               fi
12880           fi
12881
12882           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12883 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12884           # Check whether --enable-mousewheel was given.
12885 if test "${enable_mousewheel+set}" = set; then
12886   enableval=$enable_mousewheel;
12887                           if test "$enableval" = yes; then
12888                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12889                           else
12890                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12891                           fi
12892
12893 else
12894
12895                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12896
12897 fi
12898
12899
12900           eval "$wx_cv_use_mousewheel"
12901
12902           if test x"$enablestring" = xdisable; then
12903             if test $wxUSE_MOUSEWHEEL = yes; then
12904               result=no
12905             else
12906               result=yes
12907             fi
12908           else
12909             result=$wxUSE_MOUSEWHEEL
12910           fi
12911
12912           { echo "$as_me:$LINENO: result: $result" >&5
12913 echo "${ECHO_T}$result" >&6; }
12914
12915
12916           enablestring=
12917           defaultval=$wxUSE_ALL_FEATURES
12918           if test -z "$defaultval"; then
12919               if test x"$enablestring" = xdisable; then
12920                   defaultval=yes
12921               else
12922                   defaultval=no
12923               fi
12924           fi
12925
12926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
12927 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
12928           # Check whether --enable-validators was given.
12929 if test "${enable_validators+set}" = set; then
12930   enableval=$enable_validators;
12931                           if test "$enableval" = yes; then
12932                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
12933                           else
12934                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
12935                           fi
12936
12937 else
12938
12939                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
12940
12941 fi
12942
12943
12944           eval "$wx_cv_use_validators"
12945
12946           if test x"$enablestring" = xdisable; then
12947             if test $wxUSE_VALIDATORS = yes; then
12948               result=no
12949             else
12950               result=yes
12951             fi
12952           else
12953             result=$wxUSE_VALIDATORS
12954           fi
12955
12956           { echo "$as_me:$LINENO: result: $result" >&5
12957 echo "${ECHO_T}$result" >&6; }
12958
12959
12960           enablestring=
12961           defaultval=$wxUSE_ALL_FEATURES
12962           if test -z "$defaultval"; then
12963               if test x"$enablestring" = xdisable; then
12964                   defaultval=yes
12965               else
12966                   defaultval=no
12967               fi
12968           fi
12969
12970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
12971 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
12972           # Check whether --enable-busyinfo was given.
12973 if test "${enable_busyinfo+set}" = set; then
12974   enableval=$enable_busyinfo;
12975                           if test "$enableval" = yes; then
12976                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
12977                           else
12978                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
12979                           fi
12980
12981 else
12982
12983                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
12984
12985 fi
12986
12987
12988           eval "$wx_cv_use_busyinfo"
12989
12990           if test x"$enablestring" = xdisable; then
12991             if test $wxUSE_BUSYINFO = yes; then
12992               result=no
12993             else
12994               result=yes
12995             fi
12996           else
12997             result=$wxUSE_BUSYINFO
12998           fi
12999
13000           { echo "$as_me:$LINENO: result: $result" >&5
13001 echo "${ECHO_T}$result" >&6; }
13002
13003
13004           enablestring=
13005           defaultval=$wxUSE_ALL_FEATURES
13006           if test -z "$defaultval"; then
13007               if test x"$enablestring" = xdisable; then
13008                   defaultval=yes
13009               else
13010                   defaultval=no
13011               fi
13012           fi
13013
13014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13015 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13016           # Check whether --enable-joystick was given.
13017 if test "${enable_joystick+set}" = set; then
13018   enableval=$enable_joystick;
13019                           if test "$enableval" = yes; then
13020                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13021                           else
13022                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13023                           fi
13024
13025 else
13026
13027                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13028
13029 fi
13030
13031
13032           eval "$wx_cv_use_joystick"
13033
13034           if test x"$enablestring" = xdisable; then
13035             if test $wxUSE_JOYSTICK = yes; then
13036               result=no
13037             else
13038               result=yes
13039             fi
13040           else
13041             result=$wxUSE_JOYSTICK
13042           fi
13043
13044           { echo "$as_me:$LINENO: result: $result" >&5
13045 echo "${ECHO_T}$result" >&6; }
13046
13047
13048           enablestring=
13049           defaultval=$wxUSE_ALL_FEATURES
13050           if test -z "$defaultval"; then
13051               if test x"$enablestring" = xdisable; then
13052                   defaultval=yes
13053               else
13054                   defaultval=no
13055               fi
13056           fi
13057
13058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13059 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13060           # Check whether --enable-metafile was given.
13061 if test "${enable_metafile+set}" = set; then
13062   enableval=$enable_metafile;
13063                           if test "$enableval" = yes; then
13064                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13065                           else
13066                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13067                           fi
13068
13069 else
13070
13071                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13072
13073 fi
13074
13075
13076           eval "$wx_cv_use_metafile"
13077
13078           if test x"$enablestring" = xdisable; then
13079             if test $wxUSE_METAFILE = yes; then
13080               result=no
13081             else
13082               result=yes
13083             fi
13084           else
13085             result=$wxUSE_METAFILE
13086           fi
13087
13088           { echo "$as_me:$LINENO: result: $result" >&5
13089 echo "${ECHO_T}$result" >&6; }
13090
13091
13092           enablestring=
13093           defaultval=$wxUSE_ALL_FEATURES
13094           if test -z "$defaultval"; then
13095               if test x"$enablestring" = xdisable; then
13096                   defaultval=yes
13097               else
13098                   defaultval=no
13099               fi
13100           fi
13101
13102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13103 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13104           # Check whether --enable-dragimage was given.
13105 if test "${enable_dragimage+set}" = set; then
13106   enableval=$enable_dragimage;
13107                           if test "$enableval" = yes; then
13108                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13109                           else
13110                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13111                           fi
13112
13113 else
13114
13115                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13116
13117 fi
13118
13119
13120           eval "$wx_cv_use_dragimage"
13121
13122           if test x"$enablestring" = xdisable; then
13123             if test $wxUSE_DRAGIMAGE = yes; then
13124               result=no
13125             else
13126               result=yes
13127             fi
13128           else
13129             result=$wxUSE_DRAGIMAGE
13130           fi
13131
13132           { echo "$as_me:$LINENO: result: $result" >&5
13133 echo "${ECHO_T}$result" >&6; }
13134
13135
13136           enablestring=
13137           defaultval=$wxUSE_ALL_FEATURES
13138           if test -z "$defaultval"; then
13139               if test x"$enablestring" = xdisable; then
13140                   defaultval=yes
13141               else
13142                   defaultval=no
13143               fi
13144           fi
13145
13146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13147 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13148           # Check whether --enable-accessibility was given.
13149 if test "${enable_accessibility+set}" = set; then
13150   enableval=$enable_accessibility;
13151                           if test "$enableval" = yes; then
13152                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13153                           else
13154                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13155                           fi
13156
13157 else
13158
13159                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13160
13161 fi
13162
13163
13164           eval "$wx_cv_use_accessibility"
13165
13166           if test x"$enablestring" = xdisable; then
13167             if test $wxUSE_ACCESSIBILITY = yes; then
13168               result=no
13169             else
13170               result=yes
13171             fi
13172           else
13173             result=$wxUSE_ACCESSIBILITY
13174           fi
13175
13176           { echo "$as_me:$LINENO: result: $result" >&5
13177 echo "${ECHO_T}$result" >&6; }
13178
13179
13180
13181
13182           enablestring=
13183           defaultval=$wxUSE_ALL_FEATURES
13184           if test -z "$defaultval"; then
13185               if test x"$enablestring" = xdisable; then
13186                   defaultval=yes
13187               else
13188                   defaultval=no
13189               fi
13190           fi
13191
13192           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13193 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13194           # Check whether --enable-palette was given.
13195 if test "${enable_palette+set}" = set; then
13196   enableval=$enable_palette;
13197                           if test "$enableval" = yes; then
13198                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13199                           else
13200                             wx_cv_use_palette='wxUSE_PALETTE=no'
13201                           fi
13202
13203 else
13204
13205                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13206
13207 fi
13208
13209
13210           eval "$wx_cv_use_palette"
13211
13212           if test x"$enablestring" = xdisable; then
13213             if test $wxUSE_PALETTE = yes; then
13214               result=no
13215             else
13216               result=yes
13217             fi
13218           else
13219             result=$wxUSE_PALETTE
13220           fi
13221
13222           { echo "$as_me:$LINENO: result: $result" >&5
13223 echo "${ECHO_T}$result" >&6; }
13224
13225
13226           enablestring=
13227           defaultval=$wxUSE_ALL_FEATURES
13228           if test -z "$defaultval"; then
13229               if test x"$enablestring" = xdisable; then
13230                   defaultval=yes
13231               else
13232                   defaultval=no
13233               fi
13234           fi
13235
13236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13237 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13238           # Check whether --enable-image was given.
13239 if test "${enable_image+set}" = set; then
13240   enableval=$enable_image;
13241                           if test "$enableval" = yes; then
13242                             wx_cv_use_image='wxUSE_IMAGE=yes'
13243                           else
13244                             wx_cv_use_image='wxUSE_IMAGE=no'
13245                           fi
13246
13247 else
13248
13249                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13250
13251 fi
13252
13253
13254           eval "$wx_cv_use_image"
13255
13256           if test x"$enablestring" = xdisable; then
13257             if test $wxUSE_IMAGE = yes; then
13258               result=no
13259             else
13260               result=yes
13261             fi
13262           else
13263             result=$wxUSE_IMAGE
13264           fi
13265
13266           { echo "$as_me:$LINENO: result: $result" >&5
13267 echo "${ECHO_T}$result" >&6; }
13268
13269
13270           enablestring=
13271           defaultval=$wxUSE_ALL_FEATURES
13272           if test -z "$defaultval"; then
13273               if test x"$enablestring" = xdisable; then
13274                   defaultval=yes
13275               else
13276                   defaultval=no
13277               fi
13278           fi
13279
13280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13281 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13282           # Check whether --enable-gif was given.
13283 if test "${enable_gif+set}" = set; then
13284   enableval=$enable_gif;
13285                           if test "$enableval" = yes; then
13286                             wx_cv_use_gif='wxUSE_GIF=yes'
13287                           else
13288                             wx_cv_use_gif='wxUSE_GIF=no'
13289                           fi
13290
13291 else
13292
13293                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13294
13295 fi
13296
13297
13298           eval "$wx_cv_use_gif"
13299
13300           if test x"$enablestring" = xdisable; then
13301             if test $wxUSE_GIF = yes; then
13302               result=no
13303             else
13304               result=yes
13305             fi
13306           else
13307             result=$wxUSE_GIF
13308           fi
13309
13310           { echo "$as_me:$LINENO: result: $result" >&5
13311 echo "${ECHO_T}$result" >&6; }
13312
13313
13314           enablestring=
13315           defaultval=$wxUSE_ALL_FEATURES
13316           if test -z "$defaultval"; then
13317               if test x"$enablestring" = xdisable; then
13318                   defaultval=yes
13319               else
13320                   defaultval=no
13321               fi
13322           fi
13323
13324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13325 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13326           # Check whether --enable-pcx was given.
13327 if test "${enable_pcx+set}" = set; then
13328   enableval=$enable_pcx;
13329                           if test "$enableval" = yes; then
13330                             wx_cv_use_pcx='wxUSE_PCX=yes'
13331                           else
13332                             wx_cv_use_pcx='wxUSE_PCX=no'
13333                           fi
13334
13335 else
13336
13337                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13338
13339 fi
13340
13341
13342           eval "$wx_cv_use_pcx"
13343
13344           if test x"$enablestring" = xdisable; then
13345             if test $wxUSE_PCX = yes; then
13346               result=no
13347             else
13348               result=yes
13349             fi
13350           else
13351             result=$wxUSE_PCX
13352           fi
13353
13354           { echo "$as_me:$LINENO: result: $result" >&5
13355 echo "${ECHO_T}$result" >&6; }
13356
13357
13358           enablestring=
13359           defaultval=$wxUSE_ALL_FEATURES
13360           if test -z "$defaultval"; then
13361               if test x"$enablestring" = xdisable; then
13362                   defaultval=yes
13363               else
13364                   defaultval=no
13365               fi
13366           fi
13367
13368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13369 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13370           # Check whether --enable-tga was given.
13371 if test "${enable_tga+set}" = set; then
13372   enableval=$enable_tga;
13373                           if test "$enableval" = yes; then
13374                             wx_cv_use_tga='wxUSE_TGA=yes'
13375                           else
13376                             wx_cv_use_tga='wxUSE_TGA=no'
13377                           fi
13378
13379 else
13380
13381                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13382
13383 fi
13384
13385
13386           eval "$wx_cv_use_tga"
13387
13388           if test x"$enablestring" = xdisable; then
13389             if test $wxUSE_TGA = yes; then
13390               result=no
13391             else
13392               result=yes
13393             fi
13394           else
13395             result=$wxUSE_TGA
13396           fi
13397
13398           { echo "$as_me:$LINENO: result: $result" >&5
13399 echo "${ECHO_T}$result" >&6; }
13400
13401
13402           enablestring=
13403           defaultval=$wxUSE_ALL_FEATURES
13404           if test -z "$defaultval"; then
13405               if test x"$enablestring" = xdisable; then
13406                   defaultval=yes
13407               else
13408                   defaultval=no
13409               fi
13410           fi
13411
13412           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13413 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13414           # Check whether --enable-iff was given.
13415 if test "${enable_iff+set}" = set; then
13416   enableval=$enable_iff;
13417                           if test "$enableval" = yes; then
13418                             wx_cv_use_iff='wxUSE_IFF=yes'
13419                           else
13420                             wx_cv_use_iff='wxUSE_IFF=no'
13421                           fi
13422
13423 else
13424
13425                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13426
13427 fi
13428
13429
13430           eval "$wx_cv_use_iff"
13431
13432           if test x"$enablestring" = xdisable; then
13433             if test $wxUSE_IFF = yes; then
13434               result=no
13435             else
13436               result=yes
13437             fi
13438           else
13439             result=$wxUSE_IFF
13440           fi
13441
13442           { echo "$as_me:$LINENO: result: $result" >&5
13443 echo "${ECHO_T}$result" >&6; }
13444
13445
13446           enablestring=
13447           defaultval=$wxUSE_ALL_FEATURES
13448           if test -z "$defaultval"; then
13449               if test x"$enablestring" = xdisable; then
13450                   defaultval=yes
13451               else
13452                   defaultval=no
13453               fi
13454           fi
13455
13456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13457 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13458           # Check whether --enable-pnm was given.
13459 if test "${enable_pnm+set}" = set; then
13460   enableval=$enable_pnm;
13461                           if test "$enableval" = yes; then
13462                             wx_cv_use_pnm='wxUSE_PNM=yes'
13463                           else
13464                             wx_cv_use_pnm='wxUSE_PNM=no'
13465                           fi
13466
13467 else
13468
13469                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13470
13471 fi
13472
13473
13474           eval "$wx_cv_use_pnm"
13475
13476           if test x"$enablestring" = xdisable; then
13477             if test $wxUSE_PNM = yes; then
13478               result=no
13479             else
13480               result=yes
13481             fi
13482           else
13483             result=$wxUSE_PNM
13484           fi
13485
13486           { echo "$as_me:$LINENO: result: $result" >&5
13487 echo "${ECHO_T}$result" >&6; }
13488
13489
13490           enablestring=
13491           defaultval=$wxUSE_ALL_FEATURES
13492           if test -z "$defaultval"; then
13493               if test x"$enablestring" = xdisable; then
13494                   defaultval=yes
13495               else
13496                   defaultval=no
13497               fi
13498           fi
13499
13500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13501 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13502           # Check whether --enable-xpm was given.
13503 if test "${enable_xpm+set}" = set; then
13504   enableval=$enable_xpm;
13505                           if test "$enableval" = yes; then
13506                             wx_cv_use_xpm='wxUSE_XPM=yes'
13507                           else
13508                             wx_cv_use_xpm='wxUSE_XPM=no'
13509                           fi
13510
13511 else
13512
13513                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13514
13515 fi
13516
13517
13518           eval "$wx_cv_use_xpm"
13519
13520           if test x"$enablestring" = xdisable; then
13521             if test $wxUSE_XPM = yes; then
13522               result=no
13523             else
13524               result=yes
13525             fi
13526           else
13527             result=$wxUSE_XPM
13528           fi
13529
13530           { echo "$as_me:$LINENO: result: $result" >&5
13531 echo "${ECHO_T}$result" >&6; }
13532
13533
13534           enablestring=
13535           defaultval=$wxUSE_ALL_FEATURES
13536           if test -z "$defaultval"; then
13537               if test x"$enablestring" = xdisable; then
13538                   defaultval=yes
13539               else
13540                   defaultval=no
13541               fi
13542           fi
13543
13544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13545 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13546           # Check whether --enable-ico_cur was given.
13547 if test "${enable_ico_cur+set}" = set; then
13548   enableval=$enable_ico_cur;
13549                           if test "$enableval" = yes; then
13550                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13551                           else
13552                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13553                           fi
13554
13555 else
13556
13557                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13558
13559 fi
13560
13561
13562           eval "$wx_cv_use_ico_cur"
13563
13564           if test x"$enablestring" = xdisable; then
13565             if test $wxUSE_ICO_CUR = yes; then
13566               result=no
13567             else
13568               result=yes
13569             fi
13570           else
13571             result=$wxUSE_ICO_CUR
13572           fi
13573
13574           { echo "$as_me:$LINENO: result: $result" >&5
13575 echo "${ECHO_T}$result" >&6; }
13576
13577
13578
13579
13580           enablestring=
13581           defaultval=$wxUSE_ALL_FEATURES
13582           if test -z "$defaultval"; then
13583               if test x"$enablestring" = xdisable; then
13584                   defaultval=yes
13585               else
13586                   defaultval=no
13587               fi
13588           fi
13589
13590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13591 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13592           # Check whether --enable-dccache was given.
13593 if test "${enable_dccache+set}" = set; then
13594   enableval=$enable_dccache;
13595                           if test "$enableval" = yes; then
13596                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13597                           else
13598                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13599                           fi
13600
13601 else
13602
13603                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13604
13605 fi
13606
13607
13608           eval "$wx_cv_use_dccache"
13609
13610           if test x"$enablestring" = xdisable; then
13611             if test $wxUSE_DC_CACHEING = yes; then
13612               result=no
13613             else
13614               result=yes
13615             fi
13616           else
13617             result=$wxUSE_DC_CACHEING
13618           fi
13619
13620           { echo "$as_me:$LINENO: result: $result" >&5
13621 echo "${ECHO_T}$result" >&6; }
13622
13623
13624           enablestring=
13625           defaultval=$wxUSE_ALL_FEATURES
13626           if test -z "$defaultval"; then
13627               if test x"$enablestring" = xdisable; then
13628                   defaultval=yes
13629               else
13630                   defaultval=no
13631               fi
13632           fi
13633
13634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13635 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13636           # Check whether --enable-ps-in-msw was given.
13637 if test "${enable_ps_in_msw+set}" = set; then
13638   enableval=$enable_ps_in_msw;
13639                           if test "$enableval" = yes; then
13640                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13641                           else
13642                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13643                           fi
13644
13645 else
13646
13647                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13648
13649 fi
13650
13651
13652           eval "$wx_cv_use_ps_in_msw"
13653
13654           if test x"$enablestring" = xdisable; then
13655             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13656               result=no
13657             else
13658               result=yes
13659             fi
13660           else
13661             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13662           fi
13663
13664           { echo "$as_me:$LINENO: result: $result" >&5
13665 echo "${ECHO_T}$result" >&6; }
13666
13667
13668           enablestring=
13669           defaultval=$wxUSE_ALL_FEATURES
13670           if test -z "$defaultval"; then
13671               if test x"$enablestring" = xdisable; then
13672                   defaultval=yes
13673               else
13674                   defaultval=no
13675               fi
13676           fi
13677
13678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13679 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13680           # Check whether --enable-ownerdrawn was given.
13681 if test "${enable_ownerdrawn+set}" = set; then
13682   enableval=$enable_ownerdrawn;
13683                           if test "$enableval" = yes; then
13684                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13685                           else
13686                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13687                           fi
13688
13689 else
13690
13691                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13692
13693 fi
13694
13695
13696           eval "$wx_cv_use_ownerdrawn"
13697
13698           if test x"$enablestring" = xdisable; then
13699             if test $wxUSE_OWNER_DRAWN = yes; then
13700               result=no
13701             else
13702               result=yes
13703             fi
13704           else
13705             result=$wxUSE_OWNER_DRAWN
13706           fi
13707
13708           { echo "$as_me:$LINENO: result: $result" >&5
13709 echo "${ECHO_T}$result" >&6; }
13710
13711
13712           enablestring=
13713           defaultval=$wxUSE_ALL_FEATURES
13714           if test -z "$defaultval"; then
13715               if test x"$enablestring" = xdisable; then
13716                   defaultval=yes
13717               else
13718                   defaultval=no
13719               fi
13720           fi
13721
13722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13723 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13724           # Check whether --enable-uxtheme was given.
13725 if test "${enable_uxtheme+set}" = set; then
13726   enableval=$enable_uxtheme;
13727                           if test "$enableval" = yes; then
13728                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13729                           else
13730                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13731                           fi
13732
13733 else
13734
13735                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13736
13737 fi
13738
13739
13740           eval "$wx_cv_use_uxtheme"
13741
13742           if test x"$enablestring" = xdisable; then
13743             if test $wxUSE_UXTHEME = yes; then
13744               result=no
13745             else
13746               result=yes
13747             fi
13748           else
13749             result=$wxUSE_UXTHEME
13750           fi
13751
13752           { echo "$as_me:$LINENO: result: $result" >&5
13753 echo "${ECHO_T}$result" >&6; }
13754
13755
13756           enablestring=
13757           defaultval=$wxUSE_ALL_FEATURES
13758           if test -z "$defaultval"; then
13759               if test x"$enablestring" = xdisable; then
13760                   defaultval=yes
13761               else
13762                   defaultval=no
13763               fi
13764           fi
13765
13766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13767 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13768           # Check whether --enable-wxdib was given.
13769 if test "${enable_wxdib+set}" = set; then
13770   enableval=$enable_wxdib;
13771                           if test "$enableval" = yes; then
13772                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13773                           else
13774                             wx_cv_use_wxdib='wxUSE_DIB=no'
13775                           fi
13776
13777 else
13778
13779                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13780
13781 fi
13782
13783
13784           eval "$wx_cv_use_wxdib"
13785
13786           if test x"$enablestring" = xdisable; then
13787             if test $wxUSE_DIB = yes; then
13788               result=no
13789             else
13790               result=yes
13791             fi
13792           else
13793             result=$wxUSE_DIB
13794           fi
13795
13796           { echo "$as_me:$LINENO: result: $result" >&5
13797 echo "${ECHO_T}$result" >&6; }
13798
13799
13800 if test "$wxUSE_MSW" != 1; then
13801     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13802 fi
13803
13804
13805           enablestring=
13806           defaultval=$wxUSE_ALL_FEATURES
13807           if test -z "$defaultval"; then
13808               if test x"$enablestring" = xdisable; then
13809                   defaultval=yes
13810               else
13811                   defaultval=no
13812               fi
13813           fi
13814
13815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13816 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13817           # Check whether --enable-autoidman was given.
13818 if test "${enable_autoidman+set}" = set; then
13819   enableval=$enable_autoidman;
13820                           if test "$enableval" = yes; then
13821                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13822                           else
13823                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13824                           fi
13825
13826 else
13827
13828                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13829
13830 fi
13831
13832
13833           eval "$wx_cv_use_autoidman"
13834
13835           if test x"$enablestring" = xdisable; then
13836             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13837               result=no
13838             else
13839               result=yes
13840             fi
13841           else
13842             result=$wxUSE_AUTOID_MANAGEMENT
13843           fi
13844
13845           { echo "$as_me:$LINENO: result: $result" >&5
13846 echo "${ECHO_T}$result" >&6; }
13847
13848
13849 fi
13850
13851
13852 cat >confcache <<\_ACEOF
13853 # This file is a shell script that caches the results of configure
13854 # tests run on this system so they can be shared between configure
13855 # scripts and configure runs, see configure's option --config-cache.
13856 # It is not useful on other systems.  If it contains results you don't
13857 # want to keep, you may remove or edit it.
13858 #
13859 # config.status only pays attention to the cache file if you give it
13860 # the --recheck option to rerun configure.
13861 #
13862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13864 # following values.
13865
13866 _ACEOF
13867
13868 # The following way of writing the cache mishandles newlines in values,
13869 # but we know of no workaround that is simple, portable, and efficient.
13870 # So, we kill variables containing newlines.
13871 # Ultrix sh set writes to stderr and can't be redirected directly,
13872 # and sets the high bit in the cache file unless we assign to the vars.
13873 (
13874   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13875     eval ac_val=\$$ac_var
13876     case $ac_val in #(
13877     *${as_nl}*)
13878       case $ac_var in #(
13879       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13880 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13881       esac
13882       case $ac_var in #(
13883       _ | IFS | as_nl) ;; #(
13884       *) $as_unset $ac_var ;;
13885       esac ;;
13886     esac
13887   done
13888
13889   (set) 2>&1 |
13890     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13891     *${as_nl}ac_space=\ *)
13892       # `set' does not quote correctly, so add quotes (double-quote
13893       # substitution turns \\\\ into \\, and sed turns \\ into \).
13894       sed -n \
13895         "s/'/'\\\\''/g;
13896           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13897       ;; #(
13898     *)
13899       # `set' quotes correctly as required by POSIX, so do not add quotes.
13900       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13901       ;;
13902     esac |
13903     sort
13904 ) |
13905   sed '
13906      /^ac_cv_env_/b end
13907      t clear
13908      :clear
13909      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13910      t end
13911      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13912      :end' >>confcache
13913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13914   if test -w "$cache_file"; then
13915     test "x$cache_file" != "x/dev/null" &&
13916       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13917 echo "$as_me: updating cache $cache_file" >&6;}
13918     cat confcache >$cache_file
13919   else
13920     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13921 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13922   fi
13923 fi
13924 rm -f confcache
13925
13926 CFLAGS=${CFLAGS:=}
13927
13928
13929
13930     ac_ext=c
13931 ac_cpp='$CPP $CPPFLAGS'
13932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13935 if test -n "$ac_tool_prefix"; then
13936   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13940 if test "${ac_cv_prog_CC+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   if test -n "$CC"; then
13944   ac_cv_prog_CC="$CC" # Let the user override the test.
13945 else
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13948 do
13949   IFS=$as_save_IFS
13950   test -z "$as_dir" && as_dir=.
13951   for ac_exec_ext in '' $ac_executable_extensions; do
13952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13953     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13955     break 2
13956   fi
13957 done
13958 done
13959 IFS=$as_save_IFS
13960
13961 fi
13962 fi
13963 CC=$ac_cv_prog_CC
13964 if test -n "$CC"; then
13965   { echo "$as_me:$LINENO: result: $CC" >&5
13966 echo "${ECHO_T}$CC" >&6; }
13967 else
13968   { echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6; }
13970 fi
13971
13972
13973 fi
13974 if test -z "$ac_cv_prog_CC"; then
13975   ac_ct_CC=$CC
13976   # Extract the first word of "gcc", so it can be a program name with args.
13977 set dummy gcc; ac_word=$2
13978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983   if test -n "$ac_ct_CC"; then
13984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13985 else
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13988 do
13989   IFS=$as_save_IFS
13990   test -z "$as_dir" && as_dir=.
13991   for ac_exec_ext in '' $ac_executable_extensions; do
13992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13993     ac_cv_prog_ac_ct_CC="gcc"
13994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13995     break 2
13996   fi
13997 done
13998 done
13999 IFS=$as_save_IFS
14000
14001 fi
14002 fi
14003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14004 if test -n "$ac_ct_CC"; then
14005   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14006 echo "${ECHO_T}$ac_ct_CC" >&6; }
14007 else
14008   { echo "$as_me:$LINENO: result: no" >&5
14009 echo "${ECHO_T}no" >&6; }
14010 fi
14011
14012   if test "x$ac_ct_CC" = x; then
14013     CC=""
14014   else
14015     case $cross_compiling:$ac_tool_warned in
14016 yes:)
14017 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14018 whose name does not start with the host triplet.  If you think this
14019 configuration is useful to you, please write to autoconf@gnu.org." >&5
14020 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14021 whose name does not start with the host triplet.  If you think this
14022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14023 ac_tool_warned=yes ;;
14024 esac
14025     CC=$ac_ct_CC
14026   fi
14027 else
14028   CC="$ac_cv_prog_CC"
14029 fi
14030
14031 if test -z "$CC"; then
14032           if test -n "$ac_tool_prefix"; then
14033     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14034 set dummy ${ac_tool_prefix}cc; ac_word=$2
14035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14037 if test "${ac_cv_prog_CC+set}" = set; then
14038   echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040   if test -n "$CC"; then
14041   ac_cv_prog_CC="$CC" # Let the user override the test.
14042 else
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14045 do
14046   IFS=$as_save_IFS
14047   test -z "$as_dir" && as_dir=.
14048   for ac_exec_ext in '' $ac_executable_extensions; do
14049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14050     ac_cv_prog_CC="${ac_tool_prefix}cc"
14051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14052     break 2
14053   fi
14054 done
14055 done
14056 IFS=$as_save_IFS
14057
14058 fi
14059 fi
14060 CC=$ac_cv_prog_CC
14061 if test -n "$CC"; then
14062   { echo "$as_me:$LINENO: result: $CC" >&5
14063 echo "${ECHO_T}$CC" >&6; }
14064 else
14065   { echo "$as_me:$LINENO: result: no" >&5
14066 echo "${ECHO_T}no" >&6; }
14067 fi
14068
14069
14070   fi
14071 fi
14072 if test -z "$CC"; then
14073   # Extract the first word of "cc", so it can be a program name with args.
14074 set dummy cc; ac_word=$2
14075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14077 if test "${ac_cv_prog_CC+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   if test -n "$CC"; then
14081   ac_cv_prog_CC="$CC" # Let the user override the test.
14082 else
14083   ac_prog_rejected=no
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14086 do
14087   IFS=$as_save_IFS
14088   test -z "$as_dir" && as_dir=.
14089   for ac_exec_ext in '' $ac_executable_extensions; do
14090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14092        ac_prog_rejected=yes
14093        continue
14094      fi
14095     ac_cv_prog_CC="cc"
14096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14097     break 2
14098   fi
14099 done
14100 done
14101 IFS=$as_save_IFS
14102
14103 if test $ac_prog_rejected = yes; then
14104   # We found a bogon in the path, so make sure we never use it.
14105   set dummy $ac_cv_prog_CC
14106   shift
14107   if test $# != 0; then
14108     # We chose a different compiler from the bogus one.
14109     # However, it has the same basename, so the bogon will be chosen
14110     # first if we set CC to just the basename; use the full file name.
14111     shift
14112     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14113   fi
14114 fi
14115 fi
14116 fi
14117 CC=$ac_cv_prog_CC
14118 if test -n "$CC"; then
14119   { echo "$as_me:$LINENO: result: $CC" >&5
14120 echo "${ECHO_T}$CC" >&6; }
14121 else
14122   { echo "$as_me:$LINENO: result: no" >&5
14123 echo "${ECHO_T}no" >&6; }
14124 fi
14125
14126
14127 fi
14128 if test -z "$CC"; then
14129   if test -n "$ac_tool_prefix"; then
14130   for ac_prog in cl.exe
14131   do
14132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14136 if test "${ac_cv_prog_CC+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   if test -n "$CC"; then
14140   ac_cv_prog_CC="$CC" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14144 do
14145   IFS=$as_save_IFS
14146   test -z "$as_dir" && as_dir=.
14147   for ac_exec_ext in '' $ac_executable_extensions; do
14148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151     break 2
14152   fi
14153 done
14154 done
14155 IFS=$as_save_IFS
14156
14157 fi
14158 fi
14159 CC=$ac_cv_prog_CC
14160 if test -n "$CC"; then
14161   { echo "$as_me:$LINENO: result: $CC" >&5
14162 echo "${ECHO_T}$CC" >&6; }
14163 else
14164   { echo "$as_me:$LINENO: result: no" >&5
14165 echo "${ECHO_T}no" >&6; }
14166 fi
14167
14168
14169     test -n "$CC" && break
14170   done
14171 fi
14172 if test -z "$CC"; then
14173   ac_ct_CC=$CC
14174   for ac_prog in cl.exe
14175 do
14176   # Extract the first word of "$ac_prog", so it can be a program name with args.
14177 set dummy $ac_prog; ac_word=$2
14178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   if test -n "$ac_ct_CC"; then
14184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189   IFS=$as_save_IFS
14190   test -z "$as_dir" && as_dir=.
14191   for ac_exec_ext in '' $ac_executable_extensions; do
14192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14193     ac_cv_prog_ac_ct_CC="$ac_prog"
14194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195     break 2
14196   fi
14197 done
14198 done
14199 IFS=$as_save_IFS
14200
14201 fi
14202 fi
14203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14204 if test -n "$ac_ct_CC"; then
14205   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14206 echo "${ECHO_T}$ac_ct_CC" >&6; }
14207 else
14208   { echo "$as_me:$LINENO: result: no" >&5
14209 echo "${ECHO_T}no" >&6; }
14210 fi
14211
14212
14213   test -n "$ac_ct_CC" && break
14214 done
14215
14216   if test "x$ac_ct_CC" = x; then
14217     CC=""
14218   else
14219     case $cross_compiling:$ac_tool_warned in
14220 yes:)
14221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14222 whose name does not start with the host triplet.  If you think this
14223 configuration is useful to you, please write to autoconf@gnu.org." >&5
14224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14225 whose name does not start with the host triplet.  If you think this
14226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14227 ac_tool_warned=yes ;;
14228 esac
14229     CC=$ac_ct_CC
14230   fi
14231 fi
14232
14233 fi
14234
14235
14236 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14237 See \`config.log' for more details." >&5
14238 echo "$as_me: error: no acceptable C compiler found in \$PATH
14239 See \`config.log' for more details." >&2;}
14240    { (exit 1); exit 1; }; }
14241
14242 # Provide some information about the compiler.
14243 echo "$as_me:$LINENO: checking for C compiler version" >&5
14244 ac_compiler=`set X $ac_compile; echo $2`
14245 { (ac_try="$ac_compiler --version >&5"
14246 case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_compiler --version >&5") 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }
14255 { (ac_try="$ac_compiler -v >&5"
14256 case "(($ac_try" in
14257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258   *) ac_try_echo=$ac_try;;
14259 esac
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261   (eval "$ac_compiler -v >&5") 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }
14265 { (ac_try="$ac_compiler -V >&5"
14266 case "(($ac_try" in
14267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268   *) ac_try_echo=$ac_try;;
14269 esac
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271   (eval "$ac_compiler -V >&5") 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }
14275
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282
14283 int
14284 main ()
14285 {
14286
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 ac_clean_files_save=$ac_clean_files
14292 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14293 # Try to create an executable without -o first, disregard a.out.
14294 # It will help us diagnose broken compilers, and finding out an intuition
14295 # of exeext.
14296 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14298 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14299 #
14300 # List of possible output files, starting from the most likely.
14301 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14302 # only as a last resort.  b.out is created by i960 compilers.
14303 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14304 #
14305 # The IRIX 6 linker writes into existing files which may not be
14306 # executable, retaining their permissions.  Remove them first so a
14307 # subsequent execution test works.
14308 ac_rmfiles=
14309 for ac_file in $ac_files
14310 do
14311   case $ac_file in
14312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14314   esac
14315 done
14316 rm -f $ac_rmfiles
14317
14318 if { (ac_try="$ac_link_default"
14319 case "(($ac_try" in
14320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321   *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324   (eval "$ac_link_default") 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; then
14328   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14330 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14331 # so that the user can short-circuit this test for compilers unknown to
14332 # Autoconf.
14333 for ac_file in $ac_files ''
14334 do
14335   test -f "$ac_file" || continue
14336   case $ac_file in
14337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14338         ;;
14339     [ab].out )
14340         # We found the default executable, but exeext='' is most
14341         # certainly right.
14342         break;;
14343     *.* )
14344         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14345         then :; else
14346            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14347         fi
14348         # We set ac_cv_exeext here because the later test for it is not
14349         # safe: cross compilers may not add the suffix if given an `-o'
14350         # argument, so we may need to know it at that point already.
14351         # Even if this section looks crufty: it has the advantage of
14352         # actually working.
14353         break;;
14354     * )
14355         break;;
14356   esac
14357 done
14358 test "$ac_cv_exeext" = no && ac_cv_exeext=
14359
14360 else
14361   ac_file=''
14362 fi
14363
14364 { echo "$as_me:$LINENO: result: $ac_file" >&5
14365 echo "${ECHO_T}$ac_file" >&6; }
14366 if test -z "$ac_file"; then
14367   echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14369
14370 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14371 See \`config.log' for more details." >&5
14372 echo "$as_me: error: C compiler cannot create executables
14373 See \`config.log' for more details." >&2;}
14374    { (exit 77); exit 77; }; }
14375 fi
14376
14377 ac_exeext=$ac_cv_exeext
14378
14379 # Check that the compiler produces executables we can run.  If not, either
14380 # the compiler is broken, or we cross compile.
14381 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14382 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14383 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14384 # If not cross compiling, check that we can run a simple program.
14385 if test "$cross_compiling" != yes; then
14386   if { ac_try='./$ac_file'
14387   { (case "(($ac_try" in
14388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389   *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392   (eval "$ac_try") 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; }; then
14396     cross_compiling=no
14397   else
14398     if test "$cross_compiling" = maybe; then
14399         cross_compiling=yes
14400     else
14401         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14402 If you meant to cross compile, use \`--host'.
14403 See \`config.log' for more details." >&5
14404 echo "$as_me: error: cannot run C compiled programs.
14405 If you meant to cross compile, use \`--host'.
14406 See \`config.log' for more details." >&2;}
14407    { (exit 1); exit 1; }; }
14408     fi
14409   fi
14410 fi
14411 { echo "$as_me:$LINENO: result: yes" >&5
14412 echo "${ECHO_T}yes" >&6; }
14413
14414 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14415 ac_clean_files=$ac_clean_files_save
14416 # Check that the compiler produces executables we can run.  If not, either
14417 # the compiler is broken, or we cross compile.
14418 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14419 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14420 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14421 echo "${ECHO_T}$cross_compiling" >&6; }
14422
14423 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14424 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14425 if { (ac_try="$ac_link"
14426 case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_link") 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; then
14435   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14436 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14437 # work properly (i.e., refer to `conftest.exe'), while it won't with
14438 # `rm'.
14439 for ac_file in conftest.exe conftest conftest.*; do
14440   test -f "$ac_file" || continue
14441   case $ac_file in
14442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14443     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14444           break;;
14445     * ) break;;
14446   esac
14447 done
14448 else
14449   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14450 See \`config.log' for more details." >&5
14451 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14452 See \`config.log' for more details." >&2;}
14453    { (exit 1); exit 1; }; }
14454 fi
14455
14456 rm -f conftest$ac_cv_exeext
14457 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14458 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14459
14460 rm -f conftest.$ac_ext
14461 EXEEXT=$ac_cv_exeext
14462 ac_exeext=$EXEEXT
14463 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14464 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14465 if test "${ac_cv_objext+set}" = set; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468   cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h.  */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h.  */
14474
14475 int
14476 main ()
14477 {
14478
14479   ;
14480   return 0;
14481 }
14482 _ACEOF
14483 rm -f conftest.o conftest.obj
14484 if { (ac_try="$ac_compile"
14485 case "(($ac_try" in
14486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487   *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490   (eval "$ac_compile") 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; then
14494   for ac_file in conftest.o conftest.obj conftest.*; do
14495   test -f "$ac_file" || continue;
14496   case $ac_file in
14497     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14498     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14499        break;;
14500   esac
14501 done
14502 else
14503   echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14507 See \`config.log' for more details." >&5
14508 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14509 See \`config.log' for more details." >&2;}
14510    { (exit 1); exit 1; }; }
14511 fi
14512
14513 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14514 fi
14515 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14516 echo "${ECHO_T}$ac_cv_objext" >&6; }
14517 OBJEXT=$ac_cv_objext
14518 ac_objext=$OBJEXT
14519 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14520 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14521 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14522   echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524   cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530
14531 int
14532 main ()
14533 {
14534 #ifndef __GNUC__
14535        choke me
14536 #endif
14537
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549   (eval "$ac_compile") 2>conftest.er1
14550   ac_status=$?
14551   grep -v '^ *+' conftest.er1 >conftest.err
14552   rm -f conftest.er1
14553   cat conftest.err >&5
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); } && {
14556          test -z "$ac_c_werror_flag" ||
14557          test ! -s conftest.err
14558        } && test -s conftest.$ac_objext; then
14559   ac_compiler_gnu=yes
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564         ac_compiler_gnu=no
14565 fi
14566
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14569
14570 fi
14571 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14573 GCC=`test $ac_compiler_gnu = yes && echo yes`
14574 ac_test_CFLAGS=${CFLAGS+set}
14575 ac_save_CFLAGS=$CFLAGS
14576 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14578 if test "${ac_cv_prog_cc_g+set}" = set; then
14579   echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581   ac_save_c_werror_flag=$ac_c_werror_flag
14582    ac_c_werror_flag=yes
14583    ac_cv_prog_cc_g=no
14584    CFLAGS="-g"
14585    cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h.  */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h.  */
14591
14592 int
14593 main ()
14594 {
14595
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (ac_try="$ac_compile"
14602 case "(($ac_try" in
14603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604   *) ac_try_echo=$ac_try;;
14605 esac
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607   (eval "$ac_compile") 2>conftest.er1
14608   ac_status=$?
14609   grep -v '^ *+' conftest.er1 >conftest.err
14610   rm -f conftest.er1
14611   cat conftest.err >&5
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } && {
14614          test -z "$ac_c_werror_flag" ||
14615          test ! -s conftest.err
14616        } && test -s conftest.$ac_objext; then
14617   ac_cv_prog_cc_g=yes
14618 else
14619   echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622         CFLAGS=""
14623       cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h.  */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h.  */
14629
14630 int
14631 main ()
14632 {
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (ac_try="$ac_compile"
14640 case "(($ac_try" in
14641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642   *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645   (eval "$ac_compile") 2>conftest.er1
14646   ac_status=$?
14647   grep -v '^ *+' conftest.er1 >conftest.err
14648   rm -f conftest.er1
14649   cat conftest.err >&5
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); } && {
14652          test -z "$ac_c_werror_flag" ||
14653          test ! -s conftest.err
14654        } && test -s conftest.$ac_objext; then
14655   :
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660         ac_c_werror_flag=$ac_save_c_werror_flag
14661          CFLAGS="-g"
14662          cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h.  */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h.  */
14668
14669 int
14670 main ()
14671 {
14672
14673   ;
14674   return 0;
14675 }
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681   *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684   (eval "$ac_compile") 2>conftest.er1
14685   ac_status=$?
14686   grep -v '^ *+' conftest.er1 >conftest.err
14687   rm -f conftest.er1
14688   cat conftest.err >&5
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } && {
14691          test -z "$ac_c_werror_flag" ||
14692          test ! -s conftest.err
14693        } && test -s conftest.$ac_objext; then
14694   ac_cv_prog_cc_g=yes
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699
14700 fi
14701
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 fi
14704
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 fi
14707
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709    ac_c_werror_flag=$ac_save_c_werror_flag
14710 fi
14711 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14713 if test "$ac_test_CFLAGS" = set; then
14714   CFLAGS=$ac_save_CFLAGS
14715 elif test $ac_cv_prog_cc_g = yes; then
14716   if test "$GCC" = yes; then
14717     CFLAGS="-g -O2"
14718   else
14719     CFLAGS="-g"
14720   fi
14721 else
14722   if test "$GCC" = yes; then
14723     CFLAGS="-O2"
14724   else
14725     CFLAGS=
14726   fi
14727 fi
14728 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14729 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14730 if test "${ac_cv_prog_cc_c89+set}" = set; then
14731   echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733   ac_cv_prog_cc_c89=no
14734 ac_save_CC=$CC
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h.  */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h.  */
14741 #include <stdarg.h>
14742 #include <stdio.h>
14743 #include <sys/types.h>
14744 #include <sys/stat.h>
14745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14746 struct buf { int x; };
14747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14748 static char *e (p, i)
14749      char **p;
14750      int i;
14751 {
14752   return p[i];
14753 }
14754 static char *f (char * (*g) (char **, int), char **p, ...)
14755 {
14756   char *s;
14757   va_list v;
14758   va_start (v,p);
14759   s = g (p, va_arg (v,int));
14760   va_end (v);
14761   return s;
14762 }
14763
14764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14765    function prototypes and stuff, but not '\xHH' hex character constants.
14766    These don't provoke an error unfortunately, instead are silently treated
14767    as 'x'.  The following induces an error, until -std is added to get
14768    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14769    array size at least.  It's necessary to write '\x00'==0 to get something
14770    that's true only with -std.  */
14771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14772
14773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14774    inside strings and character constants.  */
14775 #define FOO(x) 'x'
14776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14777
14778 int test (int i, double x);
14779 struct s1 {int (*f) (int a);};
14780 struct s2 {int (*f) (double a);};
14781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14782 int argc;
14783 char **argv;
14784 int
14785 main ()
14786 {
14787 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14793         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14794 do
14795   CC="$ac_save_CC $ac_arg"
14796   rm -f conftest.$ac_objext
14797 if { (ac_try="$ac_compile"
14798 case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_compile") 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } && {
14810          test -z "$ac_c_werror_flag" ||
14811          test ! -s conftest.err
14812        } && test -s conftest.$ac_objext; then
14813   ac_cv_prog_cc_c89=$ac_arg
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818
14819 fi
14820
14821 rm -f core conftest.err conftest.$ac_objext
14822   test "x$ac_cv_prog_cc_c89" != "xno" && break
14823 done
14824 rm -f conftest.$ac_ext
14825 CC=$ac_save_CC
14826
14827 fi
14828 # AC_CACHE_VAL
14829 case "x$ac_cv_prog_cc_c89" in
14830   x)
14831     { echo "$as_me:$LINENO: result: none needed" >&5
14832 echo "${ECHO_T}none needed" >&6; } ;;
14833   xno)
14834     { echo "$as_me:$LINENO: result: unsupported" >&5
14835 echo "${ECHO_T}unsupported" >&6; } ;;
14836   *)
14837     CC="$CC $ac_cv_prog_cc_c89"
14838     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14839 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14840 esac
14841
14842
14843 ac_ext=c
14844 ac_cpp='$CPP $CPPFLAGS'
14845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14848
14849
14850
14851
14852     ac_ext=c
14853 ac_cpp='$CPP $CPPFLAGS'
14854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14857
14858     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14859 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14860 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14861   echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863   cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869
14870 int
14871 main ()
14872 {
14873
14874              #ifndef __INTEL_COMPILER
14875                 choke me
14876              #endif
14877
14878   ;
14879   return 0;
14880 }
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_compile") 2>conftest.er1
14890   ac_status=$?
14891   grep -v '^ *+' conftest.er1 >conftest.err
14892   rm -f conftest.er1
14893   cat conftest.err >&5
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } && {
14896          test -z "$ac_c_werror_flag" ||
14897          test ! -s conftest.err
14898        } && test -s conftest.$ac_objext; then
14899   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14900 else
14901   echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904         bakefile_cv_c_compiler___INTEL_COMPILER=no
14905
14906 fi
14907
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909
14910
14911 fi
14912 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
14913 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
14914     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
14915         :; INTELCC=yes
14916     else
14917         :;
14918     fi
14919     ac_ext=c
14920 ac_cpp='$CPP $CPPFLAGS'
14921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924
14925
14926
14927
14928         if test "x$GCC" != "xyes"; then
14929         if test "xCC" = "xC"; then
14930             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14931 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
14932 if test "${bakefile_cv_c_exto+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941
14942 int
14943 main ()
14944 {
14945
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 rm -f conftest.$ac_objext conftest.$ac_ext.o
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952   (eval $ac_compile) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; then
14956   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14957     case $ac_file in
14958         conftest.$ac_ext.o)
14959             bakefile_cv_c_exto="-ext o"
14960             ;;
14961         *)
14962             ;;
14963     esac
14964 done
14965 else
14966   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14967 See \`config.log' for more details." >&5
14968 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14969 See \`config.log' for more details." >&2;}
14970    { (exit 1); exit 1; }; }
14971
14972 fi
14973
14974 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14975
14976 fi
14977 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14978 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
14979 if test "x$bakefile_cv_c_exto" '!=' "x"; then
14980     if test "c" = "c"; then
14981         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
14982     fi
14983     if test "c" = "cxx"; then
14984         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
14985     fi
14986 fi
14987
14988             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14989                 unset ac_cv_prog_cc_g
14990                 ac_test_CFLAGS=${CFLAGS+set}
14991 ac_save_CFLAGS=$CFLAGS
14992 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14994 if test "${ac_cv_prog_cc_g+set}" = set; then
14995   echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997   ac_save_c_werror_flag=$ac_c_werror_flag
14998    ac_c_werror_flag=yes
14999    ac_cv_prog_cc_g=no
15000    CFLAGS="-g"
15001    cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007
15008 int
15009 main ()
15010 {
15011
15012   ;
15013   return 0;
15014 }
15015 _ACEOF
15016 rm -f conftest.$ac_objext
15017 if { (ac_try="$ac_compile"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_compile") 2>conftest.er1
15024   ac_status=$?
15025   grep -v '^ *+' conftest.er1 >conftest.err
15026   rm -f conftest.er1
15027   cat conftest.err >&5
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } && {
15030          test -z "$ac_c_werror_flag" ||
15031          test ! -s conftest.err
15032        } && test -s conftest.$ac_objext; then
15033   ac_cv_prog_cc_g=yes
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038         CFLAGS=""
15039       cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h.  */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h.  */
15045
15046 int
15047 main ()
15048 {
15049
15050   ;
15051   return 0;
15052 }
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_compile") 2>conftest.er1
15062   ac_status=$?
15063   grep -v '^ *+' conftest.er1 >conftest.err
15064   rm -f conftest.er1
15065   cat conftest.err >&5
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } && {
15068          test -z "$ac_c_werror_flag" ||
15069          test ! -s conftest.err
15070        } && test -s conftest.$ac_objext; then
15071   :
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076         ac_c_werror_flag=$ac_save_c_werror_flag
15077          CFLAGS="-g"
15078          cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h.  */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h.  */
15084
15085 int
15086 main ()
15087 {
15088
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097   *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100   (eval "$ac_compile") 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } && {
15107          test -z "$ac_c_werror_flag" ||
15108          test ! -s conftest.err
15109        } && test -s conftest.$ac_objext; then
15110   ac_cv_prog_cc_g=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115
15116 fi
15117
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 fi
15120
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 fi
15123
15124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125    ac_c_werror_flag=$ac_save_c_werror_flag
15126 fi
15127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15128 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15129 if test "$ac_test_CFLAGS" = set; then
15130   CFLAGS=$ac_save_CFLAGS
15131 elif test $ac_cv_prog_cc_g = yes; then
15132   if test "$GCC" = yes; then
15133     CFLAGS="-g -O2"
15134   else
15135     CFLAGS="-g"
15136   fi
15137 else
15138   if test "$GCC" = yes; then
15139     CFLAGS="-O2"
15140   else
15141     CFLAGS=
15142   fi
15143 fi
15144             fi
15145         fi
15146
15147                         case `uname -s` in
15148             AIX*)
15149
15150
15151     ac_ext=c
15152 ac_cpp='$CPP $CPPFLAGS'
15153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15156
15157     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15158 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15159 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15160   echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162   cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168
15169 int
15170 main ()
15171 {
15172
15173              #ifndef __xlC__
15174                 choke me
15175              #endif
15176
15177   ;
15178   return 0;
15179 }
15180 _ACEOF
15181 rm -f conftest.$ac_objext
15182 if { (ac_try="$ac_compile"
15183 case "(($ac_try" in
15184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185   *) ac_try_echo=$ac_try;;
15186 esac
15187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188   (eval "$ac_compile") 2>conftest.er1
15189   ac_status=$?
15190   grep -v '^ *+' conftest.er1 >conftest.err
15191   rm -f conftest.er1
15192   cat conftest.err >&5
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); } && {
15195          test -z "$ac_c_werror_flag" ||
15196          test ! -s conftest.err
15197        } && test -s conftest.$ac_objext; then
15198   bakefile_cv_c_compiler___xlC__=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203         bakefile_cv_c_compiler___xlC__=no
15204
15205 fi
15206
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208
15209
15210 fi
15211 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15212 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15213     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15214         :; XLCC=yes
15215     else
15216         :;
15217     fi
15218     ac_ext=c
15219 ac_cpp='$CPP $CPPFLAGS'
15220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15223
15224
15225
15226                 ;;
15227
15228             Darwin)
15229
15230
15231     ac_ext=c
15232 ac_cpp='$CPP $CPPFLAGS'
15233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15236
15237     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15238 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15239 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248
15249 int
15250 main ()
15251 {
15252
15253              #ifndef __MWERKS__
15254                 choke me
15255              #endif
15256
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268   (eval "$ac_compile") 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } && {
15275          test -z "$ac_c_werror_flag" ||
15276          test ! -s conftest.err
15277        } && test -s conftest.$ac_objext; then
15278   bakefile_cv_c_compiler___MWERKS__=yes
15279 else
15280   echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283         bakefile_cv_c_compiler___MWERKS__=no
15284
15285 fi
15286
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288
15289
15290 fi
15291 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15292 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15293     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15294         :; MWCC=yes
15295     else
15296         :;
15297     fi
15298     ac_ext=c
15299 ac_cpp='$CPP $CPPFLAGS'
15300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15303
15304
15305
15306
15307
15308     ac_ext=c
15309 ac_cpp='$CPP $CPPFLAGS'
15310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15313
15314     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15315 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15316 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319   cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h.  */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h.  */
15325
15326 int
15327 main ()
15328 {
15329
15330              #ifndef __xlC__
15331                 choke me
15332              #endif
15333
15334   ;
15335   return 0;
15336 }
15337 _ACEOF
15338 rm -f conftest.$ac_objext
15339 if { (ac_try="$ac_compile"
15340 case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_compile") 2>conftest.er1
15346   ac_status=$?
15347   grep -v '^ *+' conftest.er1 >conftest.err
15348   rm -f conftest.er1
15349   cat conftest.err >&5
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } && {
15352          test -z "$ac_c_werror_flag" ||
15353          test ! -s conftest.err
15354        } && test -s conftest.$ac_objext; then
15355   bakefile_cv_c_compiler___xlC__=yes
15356 else
15357   echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360         bakefile_cv_c_compiler___xlC__=no
15361
15362 fi
15363
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365
15366
15367 fi
15368 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15369 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15370     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15371         :; XLCC=yes
15372     else
15373         :;
15374     fi
15375     ac_ext=c
15376 ac_cpp='$CPP $CPPFLAGS'
15377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380
15381
15382
15383                 ;;
15384
15385             IRIX*)
15386
15387
15388     ac_ext=c
15389 ac_cpp='$CPP $CPPFLAGS'
15390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15393
15394     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15395 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15396 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15397   echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399   cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h.  */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h.  */
15405
15406 int
15407 main ()
15408 {
15409
15410              #ifndef _SGI_COMPILER_VERSION
15411                 choke me
15412              #endif
15413
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext
15419 if { (ac_try="$ac_compile"
15420 case "(($ac_try" in
15421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422   *) ac_try_echo=$ac_try;;
15423 esac
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425   (eval "$ac_compile") 2>conftest.er1
15426   ac_status=$?
15427   grep -v '^ *+' conftest.er1 >conftest.err
15428   rm -f conftest.er1
15429   cat conftest.err >&5
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); } && {
15432          test -z "$ac_c_werror_flag" ||
15433          test ! -s conftest.err
15434        } && test -s conftest.$ac_objext; then
15435   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15441
15442 fi
15443
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445
15446
15447 fi
15448 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15449 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15450     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15451         :; SGICC=yes
15452     else
15453         :;
15454     fi
15455     ac_ext=c
15456 ac_cpp='$CPP $CPPFLAGS'
15457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15460
15461
15462
15463                 ;;
15464
15465             Linux*)
15466
15467
15468     ac_ext=c
15469 ac_cpp='$CPP $CPPFLAGS'
15470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15473
15474     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15475 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15476 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15477   echo $ECHO_N "(cached) $ECHO_C" >&6
15478 else
15479   cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485
15486 int
15487 main ()
15488 {
15489
15490              #ifndef __SUNPRO_C
15491                 choke me
15492              #endif
15493
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 rm -f conftest.$ac_objext
15499 if { (ac_try="$ac_compile"
15500 case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_compile") 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } && {
15512          test -z "$ac_c_werror_flag" ||
15513          test ! -s conftest.err
15514        } && test -s conftest.$ac_objext; then
15515   bakefile_cv_c_compiler___SUNPRO_C=yes
15516 else
15517   echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15519
15520         bakefile_cv_c_compiler___SUNPRO_C=no
15521
15522 fi
15523
15524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525
15526
15527 fi
15528 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15529 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15530     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15531         :; SUNCC=yes
15532     else
15533         :;
15534     fi
15535     ac_ext=c
15536 ac_cpp='$CPP $CPPFLAGS'
15537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15540
15541
15542
15543                 ;;
15544
15545             HP-UX*)
15546
15547
15548     ac_ext=c
15549 ac_cpp='$CPP $CPPFLAGS'
15550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15553
15554     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15555 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15556 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15557   echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559   cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h.  */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h.  */
15565
15566 int
15567 main ()
15568 {
15569
15570              #ifndef __HP_cc
15571                 choke me
15572              #endif
15573
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (ac_try="$ac_compile"
15580 case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_compile") 2>conftest.er1
15586   ac_status=$?
15587   grep -v '^ *+' conftest.er1 >conftest.err
15588   rm -f conftest.er1
15589   cat conftest.err >&5
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } && {
15592          test -z "$ac_c_werror_flag" ||
15593          test ! -s conftest.err
15594        } && test -s conftest.$ac_objext; then
15595   bakefile_cv_c_compiler___HP_cc=yes
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600         bakefile_cv_c_compiler___HP_cc=no
15601
15602 fi
15603
15604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605
15606
15607 fi
15608 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15609 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15610     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15611         :; HPCC=yes
15612     else
15613         :;
15614     fi
15615     ac_ext=c
15616 ac_cpp='$CPP $CPPFLAGS'
15617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15620
15621
15622
15623                 ;;
15624
15625             OSF1)
15626
15627
15628     ac_ext=c
15629 ac_cpp='$CPP $CPPFLAGS'
15630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15633
15634     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15635 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15636 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639   cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h.  */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h.  */
15645
15646 int
15647 main ()
15648 {
15649
15650              #ifndef __DECC
15651                 choke me
15652              #endif
15653
15654   ;
15655   return 0;
15656 }
15657 _ACEOF
15658 rm -f conftest.$ac_objext
15659 if { (ac_try="$ac_compile"
15660 case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_compile") 2>conftest.er1
15666   ac_status=$?
15667   grep -v '^ *+' conftest.er1 >conftest.err
15668   rm -f conftest.er1
15669   cat conftest.err >&5
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } && {
15672          test -z "$ac_c_werror_flag" ||
15673          test ! -s conftest.err
15674        } && test -s conftest.$ac_objext; then
15675   bakefile_cv_c_compiler___DECC=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680         bakefile_cv_c_compiler___DECC=no
15681
15682 fi
15683
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685
15686
15687 fi
15688 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15689 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15690     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15691         :; COMPAQCC=yes
15692     else
15693         :;
15694     fi
15695     ac_ext=c
15696 ac_cpp='$CPP $CPPFLAGS'
15697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15700
15701
15702
15703                 ;;
15704
15705             SunOS)
15706
15707
15708     ac_ext=c
15709 ac_cpp='$CPP $CPPFLAGS'
15710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15713
15714     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15715 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15716 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719   cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h.  */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h.  */
15725
15726 int
15727 main ()
15728 {
15729
15730              #ifndef __SUNPRO_C
15731                 choke me
15732              #endif
15733
15734   ;
15735   return 0;
15736 }
15737 _ACEOF
15738 rm -f conftest.$ac_objext
15739 if { (ac_try="$ac_compile"
15740 case "(($ac_try" in
15741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742   *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745   (eval "$ac_compile") 2>conftest.er1
15746   ac_status=$?
15747   grep -v '^ *+' conftest.er1 >conftest.err
15748   rm -f conftest.er1
15749   cat conftest.err >&5
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); } && {
15752          test -z "$ac_c_werror_flag" ||
15753          test ! -s conftest.err
15754        } && test -s conftest.$ac_objext; then
15755   bakefile_cv_c_compiler___SUNPRO_C=yes
15756 else
15757   echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15759
15760         bakefile_cv_c_compiler___SUNPRO_C=no
15761
15762 fi
15763
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765
15766
15767 fi
15768 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15769 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15770     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15771         :; SUNCC=yes
15772     else
15773         :;
15774     fi
15775     ac_ext=c
15776 ac_cpp='$CPP $CPPFLAGS'
15777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15780
15781
15782
15783                 ;;
15784         esac
15785     fi
15786
15787
15788
15789 ac_ext=c
15790 ac_cpp='$CPP $CPPFLAGS'
15791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15794 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15795 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
15796 # On Suns, sometimes $CPP names a directory.
15797 if test -n "$CPP" && test -d "$CPP"; then
15798   CPP=
15799 fi
15800 if test -z "$CPP"; then
15801   if test "${ac_cv_prog_CPP+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804       # Double quotes because CPP needs to be expanded
15805     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15806     do
15807       ac_preproc_ok=false
15808 for ac_c_preproc_warn_flag in '' yes
15809 do
15810   # Use a header file that comes with gcc, so configuring glibc
15811   # with a fresh cross-compiler works.
15812   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15813   # <limits.h> exists even on freestanding compilers.
15814   # On the NeXT, cc -E runs the code through the compiler's parser,
15815   # not just through cpp. "Syntax error" is here to catch this case.
15816   cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822 #ifdef __STDC__
15823 # include <limits.h>
15824 #else
15825 # include <assert.h>
15826 #endif
15827                      Syntax error
15828 _ACEOF
15829 if { (ac_try="$ac_cpp conftest.$ac_ext"
15830 case "(($ac_try" in
15831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832   *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15836   ac_status=$?
15837   grep -v '^ *+' conftest.er1 >conftest.err
15838   rm -f conftest.er1
15839   cat conftest.err >&5
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } >/dev/null && {
15842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15843          test ! -s conftest.err
15844        }; then
15845   :
15846 else
15847   echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850   # Broken: fails on valid input.
15851 continue
15852 fi
15853
15854 rm -f conftest.err conftest.$ac_ext
15855
15856   # OK, works on sane cases.  Now check whether nonexistent headers
15857   # can be detected and how.
15858   cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864 #include <ac_nonexistent.h>
15865 _ACEOF
15866 if { (ac_try="$ac_cpp conftest.$ac_ext"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15873   ac_status=$?
15874   grep -v '^ *+' conftest.er1 >conftest.err
15875   rm -f conftest.er1
15876   cat conftest.err >&5
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } >/dev/null && {
15879          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15880          test ! -s conftest.err
15881        }; then
15882   # Broken: success on invalid input.
15883 continue
15884 else
15885   echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888   # Passes both tests.
15889 ac_preproc_ok=:
15890 break
15891 fi
15892
15893 rm -f conftest.err conftest.$ac_ext
15894
15895 done
15896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15897 rm -f conftest.err conftest.$ac_ext
15898 if $ac_preproc_ok; then
15899   break
15900 fi
15901
15902     done
15903     ac_cv_prog_CPP=$CPP
15904
15905 fi
15906   CPP=$ac_cv_prog_CPP
15907 else
15908   ac_cv_prog_CPP=$CPP
15909 fi
15910 { echo "$as_me:$LINENO: result: $CPP" >&5
15911 echo "${ECHO_T}$CPP" >&6; }
15912 ac_preproc_ok=false
15913 for ac_c_preproc_warn_flag in '' yes
15914 do
15915   # Use a header file that comes with gcc, so configuring glibc
15916   # with a fresh cross-compiler works.
15917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918   # <limits.h> exists even on freestanding compilers.
15919   # On the NeXT, cc -E runs the code through the compiler's parser,
15920   # not just through cpp. "Syntax error" is here to catch this case.
15921   cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927 #ifdef __STDC__
15928 # include <limits.h>
15929 #else
15930 # include <assert.h>
15931 #endif
15932                      Syntax error
15933 _ACEOF
15934 if { (ac_try="$ac_cpp conftest.$ac_ext"
15935 case "(($ac_try" in
15936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937   *) ac_try_echo=$ac_try;;
15938 esac
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15941   ac_status=$?
15942   grep -v '^ *+' conftest.er1 >conftest.err
15943   rm -f conftest.er1
15944   cat conftest.err >&5
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } >/dev/null && {
15947          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15948          test ! -s conftest.err
15949        }; then
15950   :
15951 else
15952   echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15954
15955   # Broken: fails on valid input.
15956 continue
15957 fi
15958
15959 rm -f conftest.err conftest.$ac_ext
15960
15961   # OK, works on sane cases.  Now check whether nonexistent headers
15962   # can be detected and how.
15963   cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h.  */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h.  */
15969 #include <ac_nonexistent.h>
15970 _ACEOF
15971 if { (ac_try="$ac_cpp conftest.$ac_ext"
15972 case "(($ac_try" in
15973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974   *) ac_try_echo=$ac_try;;
15975 esac
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15978   ac_status=$?
15979   grep -v '^ *+' conftest.er1 >conftest.err
15980   rm -f conftest.er1
15981   cat conftest.err >&5
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } >/dev/null && {
15984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15985          test ! -s conftest.err
15986        }; then
15987   # Broken: success on invalid input.
15988 continue
15989 else
15990   echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15992
15993   # Passes both tests.
15994 ac_preproc_ok=:
15995 break
15996 fi
15997
15998 rm -f conftest.err conftest.$ac_ext
15999
16000 done
16001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16002 rm -f conftest.err conftest.$ac_ext
16003 if $ac_preproc_ok; then
16004   :
16005 else
16006   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16007 See \`config.log' for more details." >&5
16008 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16009 See \`config.log' for more details." >&2;}
16010    { (exit 1); exit 1; }; }
16011 fi
16012
16013 ac_ext=c
16014 ac_cpp='$CPP $CPPFLAGS'
16015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16018
16019
16020 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16021 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16022 if test "${ac_cv_path_GREP+set}" = set; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025   # Extract the first word of "grep ggrep" to use in msg output
16026 if test -z "$GREP"; then
16027 set dummy grep ggrep; ac_prog_name=$2
16028 if test "${ac_cv_path_GREP+set}" = set; then
16029   echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031   ac_path_GREP_found=false
16032 # Loop through the user's path and test for each of PROGNAME-LIST
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16035 do
16036   IFS=$as_save_IFS
16037   test -z "$as_dir" && as_dir=.
16038   for ac_prog in grep ggrep; do
16039   for ac_exec_ext in '' $ac_executable_extensions; do
16040     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16041     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16042     # Check for GNU ac_path_GREP and select it if it is found.
16043   # Check for GNU $ac_path_GREP
16044 case `"$ac_path_GREP" --version 2>&1` in
16045 *GNU*)
16046   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16047 *)
16048   ac_count=0
16049   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16050   while :
16051   do
16052     cat "conftest.in" "conftest.in" >"conftest.tmp"
16053     mv "conftest.tmp" "conftest.in"
16054     cp "conftest.in" "conftest.nl"
16055     echo 'GREP' >> "conftest.nl"
16056     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16057     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16058     ac_count=`expr $ac_count + 1`
16059     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16060       # Best one so far, save it but keep looking for a better one
16061       ac_cv_path_GREP="$ac_path_GREP"
16062       ac_path_GREP_max=$ac_count
16063     fi
16064     # 10*(2^10) chars as input seems more than enough
16065     test $ac_count -gt 10 && break
16066   done
16067   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16068 esac
16069
16070
16071     $ac_path_GREP_found && break 3
16072   done
16073 done
16074
16075 done
16076 IFS=$as_save_IFS
16077
16078
16079 fi
16080
16081 GREP="$ac_cv_path_GREP"
16082 if test -z "$GREP"; then
16083   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16085    { (exit 1); exit 1; }; }
16086 fi
16087
16088 else
16089   ac_cv_path_GREP=$GREP
16090 fi
16091
16092
16093 fi
16094 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16095 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16096  GREP="$ac_cv_path_GREP"
16097
16098
16099 { echo "$as_me:$LINENO: checking for egrep" >&5
16100 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16101 if test "${ac_cv_path_EGREP+set}" = set; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16105    then ac_cv_path_EGREP="$GREP -E"
16106    else
16107      # Extract the first word of "egrep" to use in msg output
16108 if test -z "$EGREP"; then
16109 set dummy egrep; ac_prog_name=$2
16110 if test "${ac_cv_path_EGREP+set}" = set; then
16111   echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113   ac_path_EGREP_found=false
16114 # Loop through the user's path and test for each of PROGNAME-LIST
16115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16117 do
16118   IFS=$as_save_IFS
16119   test -z "$as_dir" && as_dir=.
16120   for ac_prog in egrep; do
16121   for ac_exec_ext in '' $ac_executable_extensions; do
16122     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16123     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16124     # Check for GNU ac_path_EGREP and select it if it is found.
16125   # Check for GNU $ac_path_EGREP
16126 case `"$ac_path_EGREP" --version 2>&1` in
16127 *GNU*)
16128   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16129 *)
16130   ac_count=0
16131   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16132   while :
16133   do
16134     cat "conftest.in" "conftest.in" >"conftest.tmp"
16135     mv "conftest.tmp" "conftest.in"
16136     cp "conftest.in" "conftest.nl"
16137     echo 'EGREP' >> "conftest.nl"
16138     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16139     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16140     ac_count=`expr $ac_count + 1`
16141     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16142       # Best one so far, save it but keep looking for a better one
16143       ac_cv_path_EGREP="$ac_path_EGREP"
16144       ac_path_EGREP_max=$ac_count
16145     fi
16146     # 10*(2^10) chars as input seems more than enough
16147     test $ac_count -gt 10 && break
16148   done
16149   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16150 esac
16151
16152
16153     $ac_path_EGREP_found && break 3
16154   done
16155 done
16156
16157 done
16158 IFS=$as_save_IFS
16159
16160
16161 fi
16162
16163 EGREP="$ac_cv_path_EGREP"
16164 if test -z "$EGREP"; then
16165   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16166 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16167    { (exit 1); exit 1; }; }
16168 fi
16169
16170 else
16171   ac_cv_path_EGREP=$EGREP
16172 fi
16173
16174
16175    fi
16176 fi
16177 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16178 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16179  EGREP="$ac_cv_path_EGREP"
16180
16181
16182 if test $ac_cv_c_compiler_gnu = yes; then
16183     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16184 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16185 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16186   echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188     ac_pattern="Autoconf.*'x'"
16189   cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195 #include <sgtty.h>
16196 Autoconf TIOCGETP
16197 _ACEOF
16198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16199   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16200   ac_cv_prog_gcc_traditional=yes
16201 else
16202   ac_cv_prog_gcc_traditional=no
16203 fi
16204 rm -f conftest*
16205
16206
16207   if test $ac_cv_prog_gcc_traditional = no; then
16208     cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h.  */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h.  */
16214 #include <termio.h>
16215 Autoconf TCGETA
16216 _ACEOF
16217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16218   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16219   ac_cv_prog_gcc_traditional=yes
16220 fi
16221 rm -f conftest*
16222
16223   fi
16224 fi
16225 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16226 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16227   if test $ac_cv_prog_gcc_traditional = yes; then
16228     CC="$CC -traditional"
16229   fi
16230 fi
16231
16232
16233 CXXFLAGS=${CXXFLAGS:=}
16234
16235
16236
16237     ac_ext=cpp
16238 ac_cpp='$CXXCPP $CPPFLAGS'
16239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16242 if test -z "$CXX"; then
16243   if test -n "$CCC"; then
16244     CXX=$CCC
16245   else
16246     if test -n "$ac_tool_prefix"; then
16247   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16248   do
16249     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16253 if test "${ac_cv_prog_CXX+set}" = set; then
16254   echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256   if test -n "$CXX"; then
16257   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16258 else
16259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16260 for as_dir in $PATH
16261 do
16262   IFS=$as_save_IFS
16263   test -z "$as_dir" && as_dir=.
16264   for ac_exec_ext in '' $ac_executable_extensions; do
16265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16266     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16268     break 2
16269   fi
16270 done
16271 done
16272 IFS=$as_save_IFS
16273
16274 fi
16275 fi
16276 CXX=$ac_cv_prog_CXX
16277 if test -n "$CXX"; then
16278   { echo "$as_me:$LINENO: result: $CXX" >&5
16279 echo "${ECHO_T}$CXX" >&6; }
16280 else
16281   { echo "$as_me:$LINENO: result: no" >&5
16282 echo "${ECHO_T}no" >&6; }
16283 fi
16284
16285
16286     test -n "$CXX" && break
16287   done
16288 fi
16289 if test -z "$CXX"; then
16290   ac_ct_CXX=$CXX
16291   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16292 do
16293   # Extract the first word of "$ac_prog", so it can be a program name with args.
16294 set dummy $ac_prog; ac_word=$2
16295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16297 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   if test -n "$ac_ct_CXX"; then
16301   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16302 else
16303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16304 for as_dir in $PATH
16305 do
16306   IFS=$as_save_IFS
16307   test -z "$as_dir" && as_dir=.
16308   for ac_exec_ext in '' $ac_executable_extensions; do
16309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16310     ac_cv_prog_ac_ct_CXX="$ac_prog"
16311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16312     break 2
16313   fi
16314 done
16315 done
16316 IFS=$as_save_IFS
16317
16318 fi
16319 fi
16320 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16321 if test -n "$ac_ct_CXX"; then
16322   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16323 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16324 else
16325   { echo "$as_me:$LINENO: result: no" >&5
16326 echo "${ECHO_T}no" >&6; }
16327 fi
16328
16329
16330   test -n "$ac_ct_CXX" && break
16331 done
16332
16333   if test "x$ac_ct_CXX" = x; then
16334     CXX="g++"
16335   else
16336     case $cross_compiling:$ac_tool_warned in
16337 yes:)
16338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16339 whose name does not start with the host triplet.  If you think this
16340 configuration is useful to you, please write to autoconf@gnu.org." >&5
16341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16342 whose name does not start with the host triplet.  If you think this
16343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16344 ac_tool_warned=yes ;;
16345 esac
16346     CXX=$ac_ct_CXX
16347   fi
16348 fi
16349
16350   fi
16351 fi
16352 # Provide some information about the compiler.
16353 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16354 ac_compiler=`set X $ac_compile; echo $2`
16355 { (ac_try="$ac_compiler --version >&5"
16356 case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361   (eval "$ac_compiler --version >&5") 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }
16365 { (ac_try="$ac_compiler -v >&5"
16366 case "(($ac_try" in
16367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368   *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371   (eval "$ac_compiler -v >&5") 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); }
16375 { (ac_try="$ac_compiler -V >&5"
16376 case "(($ac_try" in
16377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378   *) ac_try_echo=$ac_try;;
16379 esac
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381   (eval "$ac_compiler -V >&5") 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }
16385
16386 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16387 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16388 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391   cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397
16398 int
16399 main ()
16400 {
16401 #ifndef __GNUC__
16402        choke me
16403 #endif
16404
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 rm -f conftest.$ac_objext
16410 if { (ac_try="$ac_compile"
16411 case "(($ac_try" in
16412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413   *) ac_try_echo=$ac_try;;
16414 esac
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416   (eval "$ac_compile") 2>conftest.er1
16417   ac_status=$?
16418   grep -v '^ *+' conftest.er1 >conftest.err
16419   rm -f conftest.er1
16420   cat conftest.err >&5
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } && {
16423          test -z "$ac_cxx_werror_flag" ||
16424          test ! -s conftest.err
16425        } && test -s conftest.$ac_objext; then
16426   ac_compiler_gnu=yes
16427 else
16428   echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16430
16431         ac_compiler_gnu=no
16432 fi
16433
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16436
16437 fi
16438 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16439 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16440 GXX=`test $ac_compiler_gnu = yes && echo yes`
16441 ac_test_CXXFLAGS=${CXXFLAGS+set}
16442 ac_save_CXXFLAGS=$CXXFLAGS
16443 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16444 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16445 if test "${ac_cv_prog_cxx_g+set}" = set; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16449    ac_cxx_werror_flag=yes
16450    ac_cv_prog_cxx_g=no
16451    CXXFLAGS="-g"
16452    cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h.  */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h.  */
16458
16459 int
16460 main ()
16461 {
16462
16463   ;
16464   return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest.$ac_objext
16468 if { (ac_try="$ac_compile"
16469 case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_compile") 2>conftest.er1
16475   ac_status=$?
16476   grep -v '^ *+' conftest.er1 >conftest.err
16477   rm -f conftest.er1
16478   cat conftest.err >&5
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } && {
16481          test -z "$ac_cxx_werror_flag" ||
16482          test ! -s conftest.err
16483        } && test -s conftest.$ac_objext; then
16484   ac_cv_prog_cxx_g=yes
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489         CXXFLAGS=""
16490       cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h.  */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h.  */
16496
16497 int
16498 main ()
16499 {
16500
16501   ;
16502   return 0;
16503 }
16504 _ACEOF
16505 rm -f conftest.$ac_objext
16506 if { (ac_try="$ac_compile"
16507 case "(($ac_try" in
16508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509   *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512   (eval "$ac_compile") 2>conftest.er1
16513   ac_status=$?
16514   grep -v '^ *+' conftest.er1 >conftest.err
16515   rm -f conftest.er1
16516   cat conftest.err >&5
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); } && {
16519          test -z "$ac_cxx_werror_flag" ||
16520          test ! -s conftest.err
16521        } && test -s conftest.$ac_objext; then
16522   :
16523 else
16524   echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16526
16527         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16528          CXXFLAGS="-g"
16529          cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535
16536 int
16537 main ()
16538 {
16539
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_compile") 2>conftest.er1
16552   ac_status=$?
16553   grep -v '^ *+' conftest.er1 >conftest.err
16554   rm -f conftest.er1
16555   cat conftest.err >&5
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); } && {
16558          test -z "$ac_cxx_werror_flag" ||
16559          test ! -s conftest.err
16560        } && test -s conftest.$ac_objext; then
16561   ac_cv_prog_cxx_g=yes
16562 else
16563   echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16565
16566
16567 fi
16568
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 fi
16571
16572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16573 fi
16574
16575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16576    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16577 fi
16578 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16579 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16580 if test "$ac_test_CXXFLAGS" = set; then
16581   CXXFLAGS=$ac_save_CXXFLAGS
16582 elif test $ac_cv_prog_cxx_g = yes; then
16583   if test "$GXX" = yes; then
16584     CXXFLAGS="-g -O2"
16585   else
16586     CXXFLAGS="-g"
16587   fi
16588 else
16589   if test "$GXX" = yes; then
16590     CXXFLAGS="-O2"
16591   else
16592     CXXFLAGS=
16593   fi
16594 fi
16595 ac_ext=c
16596 ac_cpp='$CPP $CPPFLAGS'
16597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16600
16601
16602
16603
16604     ac_ext=cpp
16605 ac_cpp='$CXXCPP $CPPFLAGS'
16606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16609
16610     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16611 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16612 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621
16622 int
16623 main ()
16624 {
16625
16626              #ifndef __INTEL_COMPILER
16627                 choke me
16628              #endif
16629
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_compile") 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } && {
16648          test -z "$ac_cxx_werror_flag" ||
16649          test ! -s conftest.err
16650        } && test -s conftest.$ac_objext; then
16651   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16657
16658 fi
16659
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661
16662
16663 fi
16664 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16665 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16666     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16667         :; INTELCXX=yes
16668     else
16669         :;
16670     fi
16671     ac_ext=c
16672 ac_cpp='$CPP $CPPFLAGS'
16673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16676
16677
16678
16679
16680         if test "x$GCXX" != "xyes"; then
16681         if test "xCXX" = "xC"; then
16682             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16683 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16684 if test "${bakefile_cv_c_exto+set}" = set; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693
16694 int
16695 main ()
16696 {
16697
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest.$ac_ext.o
16703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704   (eval $ac_compile) 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); }; then
16708   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16709     case $ac_file in
16710         conftest.$ac_ext.o)
16711             bakefile_cv_c_exto="-ext o"
16712             ;;
16713         *)
16714             ;;
16715     esac
16716 done
16717 else
16718   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16719 See \`config.log' for more details." >&5
16720 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16721 See \`config.log' for more details." >&2;}
16722    { (exit 1); exit 1; }; }
16723
16724 fi
16725
16726 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16727
16728 fi
16729 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16730 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16731 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16732     if test "c" = "c"; then
16733         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16734     fi
16735     if test "c" = "cxx"; then
16736         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16737     fi
16738 fi
16739
16740             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16741                 unset ac_cv_prog_cc_g
16742                 ac_test_CFLAGS=${CFLAGS+set}
16743 ac_save_CFLAGS=$CFLAGS
16744 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16745 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16746 if test "${ac_cv_prog_cc_g+set}" = set; then
16747   echo $ECHO_N "(cached) $ECHO_C" >&6
16748 else
16749   ac_save_c_werror_flag=$ac_c_werror_flag
16750    ac_c_werror_flag=yes
16751    ac_cv_prog_cc_g=no
16752    CFLAGS="-g"
16753    cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759
16760 int
16761 main ()
16762 {
16763
16764   ;
16765   return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_compile") 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } && {
16782          test -z "$ac_c_werror_flag" ||
16783          test ! -s conftest.err
16784        } && test -s conftest.$ac_objext; then
16785   ac_cv_prog_cc_g=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790         CFLAGS=""
16791       cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h.  */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h.  */
16797
16798 int
16799 main ()
16800 {
16801
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (ac_try="$ac_compile"
16808 case "(($ac_try" in
16809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810   *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813   (eval "$ac_compile") 2>conftest.er1
16814   ac_status=$?
16815   grep -v '^ *+' conftest.er1 >conftest.err
16816   rm -f conftest.er1
16817   cat conftest.err >&5
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); } && {
16820          test -z "$ac_c_werror_flag" ||
16821          test ! -s conftest.err
16822        } && test -s conftest.$ac_objext; then
16823   :
16824 else
16825   echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16827
16828         ac_c_werror_flag=$ac_save_c_werror_flag
16829          CFLAGS="-g"
16830          cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836
16837 int
16838 main ()
16839 {
16840
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext
16846 if { (ac_try="$ac_compile"
16847 case "(($ac_try" in
16848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849   *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852   (eval "$ac_compile") 2>conftest.er1
16853   ac_status=$?
16854   grep -v '^ *+' conftest.er1 >conftest.err
16855   rm -f conftest.er1
16856   cat conftest.err >&5
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } && {
16859          test -z "$ac_c_werror_flag" ||
16860          test ! -s conftest.err
16861        } && test -s conftest.$ac_objext; then
16862   ac_cv_prog_cc_g=yes
16863 else
16864   echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867
16868 fi
16869
16870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877    ac_c_werror_flag=$ac_save_c_werror_flag
16878 fi
16879 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16880 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16881 if test "$ac_test_CFLAGS" = set; then
16882   CFLAGS=$ac_save_CFLAGS
16883 elif test $ac_cv_prog_cc_g = yes; then
16884   if test "$GCC" = yes; then
16885     CFLAGS="-g -O2"
16886   else
16887     CFLAGS="-g"
16888   fi
16889 else
16890   if test "$GCC" = yes; then
16891     CFLAGS="-O2"
16892   else
16893     CFLAGS=
16894   fi
16895 fi
16896             fi
16897         fi
16898
16899                         case `uname -s` in
16900             AIX*)
16901
16902
16903     ac_ext=cpp
16904 ac_cpp='$CXXCPP $CPPFLAGS'
16905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16908
16909     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16910 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16911 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914   cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920
16921 int
16922 main ()
16923 {
16924
16925              #ifndef __xlC__
16926                 choke me
16927              #endif
16928
16929   ;
16930   return 0;
16931 }
16932 _ACEOF
16933 rm -f conftest.$ac_objext
16934 if { (ac_try="$ac_compile"
16935 case "(($ac_try" in
16936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937   *) ac_try_echo=$ac_try;;
16938 esac
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940   (eval "$ac_compile") 2>conftest.er1
16941   ac_status=$?
16942   grep -v '^ *+' conftest.er1 >conftest.err
16943   rm -f conftest.er1
16944   cat conftest.err >&5
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); } && {
16947          test -z "$ac_cxx_werror_flag" ||
16948          test ! -s conftest.err
16949        } && test -s conftest.$ac_objext; then
16950   bakefile_cv_cxx_compiler___xlC__=yes
16951 else
16952   echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955         bakefile_cv_cxx_compiler___xlC__=no
16956
16957 fi
16958
16959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960
16961
16962 fi
16963 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
16964 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
16965     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
16966         :; XLCXX=yes
16967     else
16968         :;
16969     fi
16970     ac_ext=c
16971 ac_cpp='$CPP $CPPFLAGS'
16972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16975
16976
16977
16978                 ;;
16979
16980             Darwin)
16981
16982
16983     ac_ext=cpp
16984 ac_cpp='$CXXCPP $CPPFLAGS'
16985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16988
16989     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
16990 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
16991 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
16992   echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994   cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000
17001 int
17002 main ()
17003 {
17004
17005              #ifndef __MWERKS__
17006                 choke me
17007              #endif
17008
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017   *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020   (eval "$ac_compile") 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } && {
17027          test -z "$ac_cxx_werror_flag" ||
17028          test ! -s conftest.err
17029        } && test -s conftest.$ac_objext; then
17030   bakefile_cv_cxx_compiler___MWERKS__=yes
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035         bakefile_cv_cxx_compiler___MWERKS__=no
17036
17037 fi
17038
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17040
17041
17042 fi
17043 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17044 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17045     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17046         :; MWCXX=yes
17047     else
17048         :;
17049     fi
17050     ac_ext=c
17051 ac_cpp='$CPP $CPPFLAGS'
17052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17055
17056
17057
17058
17059
17060     ac_ext=cpp
17061 ac_cpp='$CXXCPP $CPPFLAGS'
17062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17065
17066     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17067 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17068 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071   cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h.  */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h.  */
17077
17078 int
17079 main ()
17080 {
17081
17082              #ifndef __xlC__
17083                 choke me
17084              #endif
17085
17086   ;
17087   return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097   (eval "$ac_compile") 2>conftest.er1
17098   ac_status=$?
17099   grep -v '^ *+' conftest.er1 >conftest.err
17100   rm -f conftest.er1
17101   cat conftest.err >&5
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } && {
17104          test -z "$ac_cxx_werror_flag" ||
17105          test ! -s conftest.err
17106        } && test -s conftest.$ac_objext; then
17107   bakefile_cv_cxx_compiler___xlC__=yes
17108 else
17109   echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112         bakefile_cv_cxx_compiler___xlC__=no
17113
17114 fi
17115
17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117
17118
17119 fi
17120 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17121 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17122     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17123         :; XLCXX=yes
17124     else
17125         :;
17126     fi
17127     ac_ext=c
17128 ac_cpp='$CPP $CPPFLAGS'
17129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17132
17133
17134
17135                 ;;
17136
17137             IRIX*)
17138
17139
17140     ac_ext=cpp
17141 ac_cpp='$CXXCPP $CPPFLAGS'
17142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17145
17146     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17147 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17148 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h.  */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h.  */
17157
17158 int
17159 main ()
17160 {
17161
17162              #ifndef _SGI_COMPILER_VERSION
17163                 choke me
17164              #endif
17165
17166   ;
17167   return 0;
17168 }
17169 _ACEOF
17170 rm -f conftest.$ac_objext
17171 if { (ac_try="$ac_compile"
17172 case "(($ac_try" in
17173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174   *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177   (eval "$ac_compile") 2>conftest.er1
17178   ac_status=$?
17179   grep -v '^ *+' conftest.er1 >conftest.err
17180   rm -f conftest.er1
17181   cat conftest.err >&5
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } && {
17184          test -z "$ac_cxx_werror_flag" ||
17185          test ! -s conftest.err
17186        } && test -s conftest.$ac_objext; then
17187   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17188 else
17189   echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17193
17194 fi
17195
17196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197
17198
17199 fi
17200 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17201 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17202     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17203         :; SGICXX=yes
17204     else
17205         :;
17206     fi
17207     ac_ext=c
17208 ac_cpp='$CPP $CPPFLAGS'
17209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17212
17213
17214
17215                 ;;
17216
17217             Linux*)
17218
17219
17220     ac_ext=cpp
17221 ac_cpp='$CXXCPP $CPPFLAGS'
17222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17225
17226     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17227 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17228 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231   cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237
17238 int
17239 main ()
17240 {
17241
17242              #ifndef __SUNPRO_CC
17243                 choke me
17244              #endif
17245
17246   ;
17247   return 0;
17248 }
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (ac_try="$ac_compile"
17252 case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_compile") 2>conftest.er1
17258   ac_status=$?
17259   grep -v '^ *+' conftest.er1 >conftest.err
17260   rm -f conftest.er1
17261   cat conftest.err >&5
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } && {
17264          test -z "$ac_cxx_werror_flag" ||
17265          test ! -s conftest.err
17266        } && test -s conftest.$ac_objext; then
17267   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17273
17274 fi
17275
17276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277
17278
17279 fi
17280 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17281 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17282     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17283         :; SUNCXX=yes
17284     else
17285         :;
17286     fi
17287     ac_ext=c
17288 ac_cpp='$CPP $CPPFLAGS'
17289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17292
17293
17294
17295                 ;;
17296
17297             HP-UX*)
17298
17299
17300     ac_ext=cpp
17301 ac_cpp='$CXXCPP $CPPFLAGS'
17302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17305
17306     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17307 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17308 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317
17318 int
17319 main ()
17320 {
17321
17322              #ifndef __HP_aCC
17323                 choke me
17324              #endif
17325
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_compile") 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } && {
17344          test -z "$ac_cxx_werror_flag" ||
17345          test ! -s conftest.err
17346        } && test -s conftest.$ac_objext; then
17347   bakefile_cv_cxx_compiler___HP_aCC=yes
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352         bakefile_cv_cxx_compiler___HP_aCC=no
17353
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357
17358
17359 fi
17360 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17361 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17362     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17363         :; HPCXX=yes
17364     else
17365         :;
17366     fi
17367     ac_ext=c
17368 ac_cpp='$CPP $CPPFLAGS'
17369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17372
17373
17374
17375                 ;;
17376
17377             OSF1)
17378
17379
17380     ac_ext=cpp
17381 ac_cpp='$CXXCPP $CPPFLAGS'
17382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17385
17386     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17387 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17388 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397
17398 int
17399 main ()
17400 {
17401
17402              #ifndef __DECCXX
17403                 choke me
17404              #endif
17405
17406   ;
17407   return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_compile") 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } && {
17424          test -z "$ac_cxx_werror_flag" ||
17425          test ! -s conftest.err
17426        } && test -s conftest.$ac_objext; then
17427   bakefile_cv_cxx_compiler___DECCXX=yes
17428 else
17429   echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432         bakefile_cv_cxx_compiler___DECCXX=no
17433
17434 fi
17435
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437
17438
17439 fi
17440 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17441 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17442     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17443         :; COMPAQCXX=yes
17444     else
17445         :;
17446     fi
17447     ac_ext=c
17448 ac_cpp='$CPP $CPPFLAGS'
17449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17452
17453
17454
17455                 ;;
17456
17457             SunOS)
17458
17459
17460     ac_ext=cpp
17461 ac_cpp='$CXXCPP $CPPFLAGS'
17462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17465
17466     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17467 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17468 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471   cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h.  */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h.  */
17477
17478 int
17479 main ()
17480 {
17481
17482              #ifndef __SUNPRO_CC
17483                 choke me
17484              #endif
17485
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 rm -f conftest.$ac_objext
17491 if { (ac_try="$ac_compile"
17492 case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_compile") 2>conftest.er1
17498   ac_status=$?
17499   grep -v '^ *+' conftest.er1 >conftest.err
17500   rm -f conftest.er1
17501   cat conftest.err >&5
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); } && {
17504          test -z "$ac_cxx_werror_flag" ||
17505          test ! -s conftest.err
17506        } && test -s conftest.$ac_objext; then
17507   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17508 else
17509   echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17513
17514 fi
17515
17516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17517
17518
17519 fi
17520 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17521 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17522     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17523         :; SUNCXX=yes
17524     else
17525         :;
17526     fi
17527     ac_ext=c
17528 ac_cpp='$CPP $CPPFLAGS'
17529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17532
17533
17534
17535                 ;;
17536         esac
17537     fi
17538
17539
17540
17541 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17542     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17543 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17544    { (exit 1); exit 1; }; }
17545 fi
17546
17547 if test "x$SUNCXX" != xyes; then
17548     if test -n "$ac_tool_prefix"; then
17549   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17550 set dummy ${ac_tool_prefix}ar; ac_word=$2
17551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17553 if test "${ac_cv_prog_AR+set}" = set; then
17554   echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556   if test -n "$AR"; then
17557   ac_cv_prog_AR="$AR" # Let the user override the test.
17558 else
17559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17560 for as_dir in $PATH
17561 do
17562   IFS=$as_save_IFS
17563   test -z "$as_dir" && as_dir=.
17564   for ac_exec_ext in '' $ac_executable_extensions; do
17565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17566     ac_cv_prog_AR="${ac_tool_prefix}ar"
17567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17568     break 2
17569   fi
17570 done
17571 done
17572 IFS=$as_save_IFS
17573
17574 fi
17575 fi
17576 AR=$ac_cv_prog_AR
17577 if test -n "$AR"; then
17578   { echo "$as_me:$LINENO: result: $AR" >&5
17579 echo "${ECHO_T}$AR" >&6; }
17580 else
17581   { echo "$as_me:$LINENO: result: no" >&5
17582 echo "${ECHO_T}no" >&6; }
17583 fi
17584
17585
17586 fi
17587 if test -z "$ac_cv_prog_AR"; then
17588   ac_ct_AR=$AR
17589   # Extract the first word of "ar", so it can be a program name with args.
17590 set dummy ar; ac_word=$2
17591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17593 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596   if test -n "$ac_ct_AR"; then
17597   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17598 else
17599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17600 for as_dir in $PATH
17601 do
17602   IFS=$as_save_IFS
17603   test -z "$as_dir" && as_dir=.
17604   for ac_exec_ext in '' $ac_executable_extensions; do
17605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17606     ac_cv_prog_ac_ct_AR="ar"
17607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17608     break 2
17609   fi
17610 done
17611 done
17612 IFS=$as_save_IFS
17613
17614 fi
17615 fi
17616 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17617 if test -n "$ac_ct_AR"; then
17618   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17619 echo "${ECHO_T}$ac_ct_AR" >&6; }
17620 else
17621   { echo "$as_me:$LINENO: result: no" >&5
17622 echo "${ECHO_T}no" >&6; }
17623 fi
17624
17625   if test "x$ac_ct_AR" = x; then
17626     AR=""
17627   else
17628     case $cross_compiling:$ac_tool_warned in
17629 yes:)
17630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17631 whose name does not start with the host triplet.  If you think this
17632 configuration is useful to you, please write to autoconf@gnu.org." >&5
17633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17634 whose name does not start with the host triplet.  If you think this
17635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17636 ac_tool_warned=yes ;;
17637 esac
17638     AR=$ac_ct_AR
17639   fi
17640 else
17641   AR="$ac_cv_prog_AR"
17642 fi
17643
17644     if test "x$AR" = "x" ; then
17645         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
17646 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
17647    { (exit 1); exit 1; }; }
17648     fi
17649 fi
17650
17651 retest_macosx_linking=no
17652
17653 #if test "$wxUSE_MAC" = 1; then
17654     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
17655                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
17656             # Implicitly turn on the new --with-macosx-sdk using the default
17657             # SDK which provides the behavior this option has always had.
17658             if test "x$wxUSE_MACOSX_SDK" = "x"; then
17659                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
17660 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
17661                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
17662 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
17663                 wxUSE_MACOSX_SDK=yes
17664             fi
17665         else
17666             # Complain to user if he specified an argument to --enable-universal_binary
17667             # and also 1) specified --with-macosx-sdk using the default (yes) or
17668             # 2) specified --with-macosx-sdk using a path or 3) specified
17669             # --without-macosx-sdk (no).
17670             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
17671                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17672 See \`config.log' for more details." >&5
17673 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17674 See \`config.log' for more details." >&2;}
17675    { (exit 1); exit 1; }; }
17676             else
17677                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
17678                 # special-case the empty string because the below test simply
17679                 # converts "no" to the empty string anyway.
17680                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
17681                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
17682 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
17683             fi
17684         fi
17685                 OSX_UNIV_OPTS="-arch ppc -arch i386"
17686         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
17687         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
17688         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
17689         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
17690         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
17691                                                                                                                 retest_macosx_linking=yes
17692
17693                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
17694 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
17695         bk_use_pch=no
17696     fi
17697 #fi
17698
17699 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
17700     wxUSE_MACOSX_SDK=
17701 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
17702     # TODO: Search for most recent SDK and use it.
17703     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
17704 fi
17705
17706
17707 if test "x$wxUSE_MACOSX_SDK" != "x"; then
17708     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
17709 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
17710     if ! test -d "$wxUSE_MACOSX_SDK"; then
17711         { { echo "$as_me:$LINENO: error: not found
17712 See \`config.log' for more details." >&5
17713 echo "$as_me: error: not found
17714 See \`config.log' for more details." >&2;}
17715    { (exit 1); exit 1; }; }
17716     else
17717         { echo "$as_me:$LINENO: result: exists" >&5
17718 echo "${ECHO_T}exists" >&6; }
17719     fi
17720     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
17721     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
17722     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
17723     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
17724     retest_macosx_linking=yes
17725             fi
17726
17727 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
17728     wxUSE_MACOSX_VERSION_MIN=
17729 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
17730     if test "x$wxUSE_MACOSX_SDK" != "x"; then
17731         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
17732 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
17733
17734         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/'`
17735
17736         # If that failed, try again with the new key
17737         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
17738
17739             MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
17740
17741         fi
17742
17743         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
17744             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
17745             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
17746 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
17747         else
17748             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
17749 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
17750             wxUSE_MACOSX_VERSION_MIN=
17751         fi
17752     else
17753         wxUSE_MACOSX_VERSION_MIN=
17754     fi
17755 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
17756     if test "$wxUSE_MAC" = 1; then
17757         # otherwise configure stops on leopard for universal_binary
17758         wxUSE_MACOSX_VERSION_MIN=10.4
17759     fi
17760 fi
17761
17762 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
17763     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
17764     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
17765     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
17766     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
17767     retest_macosx_linking=yes
17768 fi
17769
17770 if test "x$retest_macosx_linking" = "xyes"; then
17771     ac_ext=c
17772 ac_cpp='$CPP $CPPFLAGS'
17773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17776
17777     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
17778 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
17779     cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h.  */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h.  */
17785
17786 int
17787 main ()
17788 {
17789
17790   ;
17791   return 0;
17792 }
17793 _ACEOF
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (ac_try="$ac_link"
17796 case "(($ac_try" in
17797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798   *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801   (eval "$ac_link") 2>conftest.er1
17802   ac_status=$?
17803   grep -v '^ *+' conftest.er1 >conftest.err
17804   rm -f conftest.er1
17805   cat conftest.err >&5
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); } && {
17808          test -z "$ac_c_werror_flag" ||
17809          test ! -s conftest.err
17810        } && test -s conftest$ac_exeext &&
17811        $as_test_x conftest$ac_exeext; then
17812   { echo "$as_me:$LINENO: result: yes" >&5
17813 echo "${ECHO_T}yes" >&6; }
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17819 See \`config.log' for more details." >&5
17820 echo "$as_me: error: no.  Try a different SDK
17821 See \`config.log' for more details." >&2;}
17822    { (exit 1); exit 1; }; }; exit 1
17823 fi
17824
17825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17826       conftest$ac_exeext conftest.$ac_ext
17827     ac_ext=c
17828 ac_cpp='$CPP $CPPFLAGS'
17829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17832
17833
17834     ac_ext=cpp
17835 ac_cpp='$CXXCPP $CPPFLAGS'
17836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17839
17840     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
17841 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
17842     cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h.  */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h.  */
17848
17849 int
17850 main ()
17851 {
17852
17853   ;
17854   return 0;
17855 }
17856 _ACEOF
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (ac_try="$ac_link"
17859 case "(($ac_try" in
17860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861   *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864   (eval "$ac_link") 2>conftest.er1
17865   ac_status=$?
17866   grep -v '^ *+' conftest.er1 >conftest.err
17867   rm -f conftest.er1
17868   cat conftest.err >&5
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); } && {
17871          test -z "$ac_cxx_werror_flag" ||
17872          test ! -s conftest.err
17873        } && test -s conftest$ac_exeext &&
17874        $as_test_x conftest$ac_exeext; then
17875   { echo "$as_me:$LINENO: result: yes" >&5
17876 echo "${ECHO_T}yes" >&6; }
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17882 See \`config.log' for more details." >&5
17883 echo "$as_me: error: no.  Try a different SDK
17884 See \`config.log' for more details." >&2;}
17885    { (exit 1); exit 1; }; }; exit 1
17886 fi
17887
17888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17889       conftest$ac_exeext conftest.$ac_ext
17890     ac_ext=c
17891 ac_cpp='$CPP $CPPFLAGS'
17892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17895
17896 fi
17897
17898
17899 case "${host}" in
17900
17901                 *-*-darwin* )
17902         INSTALL_PROGRAM="cp -fp"
17903         INSTALL_DATA="cp -fp"
17904         ;;
17905     *)
17906         ;;
17907 esac
17908
17909
17910 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17911     CXXFLAGS="-qunique $CXXFLAGS"
17912 fi
17913
17914 case "${host}" in
17915   powerpc-*-darwin* )
17916     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17917 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17918     cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h.  */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h.  */
17924
17925 int
17926 main ()
17927 {
17928 #ifndef __POWERPC__
17929         choke me for lack of PowerPC
17930 #endif
17931
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (ac_try="$ac_compile"
17938 case "(($ac_try" in
17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940   *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943   (eval "$ac_compile") 2>conftest.er1
17944   ac_status=$?
17945   grep -v '^ *+' conftest.er1 >conftest.err
17946   rm -f conftest.er1
17947   cat conftest.err >&5
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); } && {
17950          test -z "$ac_c_werror_flag" ||
17951          test ! -s conftest.err
17952        } && test -s conftest.$ac_objext; then
17953   { echo "$as_me:$LINENO: result: yes" >&5
17954 echo "${ECHO_T}yes" >&6; }
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959         { echo "$as_me:$LINENO: result: no" >&5
17960 echo "${ECHO_T}no" >&6; }
17961         cat >>confdefs.h <<\_ACEOF
17962 #define __POWERPC__ 1
17963 _ACEOF
17964
17965
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969   ;;
17970 esac
17971
17972 case "${host}" in
17973   *-*-darwin* )
17974     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
17975 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
17976     cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h.  */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h.  */
17982 #include <CoreFoundation/CFBase.h>
17983
17984 int
17985 main ()
17986 {
17987
17988   ;
17989   return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext
17993 if { (ac_try="$ac_compile"
17994 case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_compile") 2>conftest.er1
18000   ac_status=$?
18001   grep -v '^ *+' conftest.er1 >conftest.err
18002   rm -f conftest.er1
18003   cat conftest.err >&5
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } && {
18006          test -z "$ac_c_werror_flag" ||
18007          test ! -s conftest.err
18008        } && test -s conftest.$ac_objext; then
18009   { echo "$as_me:$LINENO: result: yes" >&5
18010 echo "${ECHO_T}yes" >&6; }
18011 else
18012   echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015         { echo "$as_me:$LINENO: result: no" >&5
18016 echo "${ECHO_T}no" >&6; }
18017         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18018 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18019         cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h.  */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h.  */
18025 #define __CF_USE_FRAMEWORK_INCLUDES__
18026 #include <CoreFoundation/CFBase.h>
18027
18028 int
18029 main ()
18030 {
18031
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext
18037 if { (ac_try="$ac_compile"
18038 case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_compile") 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } && {
18050          test -z "$ac_c_werror_flag" ||
18051          test ! -s conftest.err
18052        } && test -s conftest.$ac_objext; then
18053   { echo "$as_me:$LINENO: result: yes" >&5
18054 echo "${ECHO_T}yes" >&6; }
18055                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18061 See \`config.log' for more details." >&5
18062 echo "$as_me: error: no.  CoreFoundation not available.
18063 See \`config.log' for more details." >&2;}
18064    { (exit 1); exit 1; }; }
18065
18066 fi
18067
18068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069
18070
18071 fi
18072
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074   ;;
18075 esac
18076
18077 wants_win32=0
18078 doesnt_want_win32=0
18079 case "${host}" in
18080   *-*-cygwin*)
18081       if test "$wxUSE_MSW" = 1 ; then
18082         wants_win32=1
18083       else
18084                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18085 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18086 if test "${wx_cv_nocygwin+set}" = set; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089
18090                 cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096
18097 int
18098 main ()
18099 {
18100
18101                         #ifdef __MINGW32__
18102                             choke me
18103                         #endif
18104
18105   ;
18106   return 0;
18107 }
18108 _ACEOF
18109 rm -f conftest.$ac_objext
18110 if { (ac_try="$ac_compile"
18111 case "(($ac_try" in
18112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113   *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116   (eval "$ac_compile") 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } && {
18123          test -z "$ac_c_werror_flag" ||
18124          test ! -s conftest.err
18125        } && test -s conftest.$ac_objext; then
18126   wx_cv_nocygwin=no
18127 else
18128   echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131         wx_cv_nocygwin=yes
18132
18133 fi
18134
18135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18136
18137
18138 fi
18139 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18140 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18141
18142         if test "$wx_cv_nocygwin" = "yes"; then
18143             wants_win32=1
18144         else
18145             doesnt_want_win32=1
18146         fi
18147       fi
18148       if test "$wants_win32" = 1 ; then
18149         BAKEFILE_FORCE_PLATFORM=win32
18150       fi
18151   ;;
18152   *-*-mingw*)
18153       wants_win32=1
18154   ;;
18155 esac
18156
18157 if test "$wxUSE_WINE" = "yes"; then
18158     wants_win32=1
18159     LDFLAGS_GUI="-mwindows"
18160 fi
18161
18162 if test "$wants_win32" = 1 ; then
18163     USE_UNIX=0
18164     USE_WIN32=1
18165     cat >>confdefs.h <<\_ACEOF
18166 #define __WIN32__ 1
18167 _ACEOF
18168
18169     cat >>confdefs.h <<\_ACEOF
18170 #define __WIN95__ 1
18171 _ACEOF
18172
18173     cat >>confdefs.h <<\_ACEOF
18174 #define __WINDOWS__ 1
18175 _ACEOF
18176
18177     cat >>confdefs.h <<\_ACEOF
18178 #define __GNUWIN32__ 1
18179 _ACEOF
18180
18181     cat >>confdefs.h <<\_ACEOF
18182 #define STRICT 1
18183 _ACEOF
18184
18185 fi
18186 if test "$doesnt_want_win32" = 1 ; then
18187     USE_UNIX=1
18188     USE_WIN32=0
18189 fi
18190
18191 if test "$USE_UNIX" = 1 ; then
18192     wxUSE_UNIX=yes
18193     cat >>confdefs.h <<\_ACEOF
18194 #define __UNIX__ 1
18195 _ACEOF
18196
18197 fi
18198
18199 case "${host}" in
18200   *-pc-os2_emx | *-pc-os2-emx )
18201                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18202                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18203 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18204 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lcExt  $LIBS"
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216 /* Override any GCC internal prototype to avoid an error.
18217    Use char because int might match the return type of a GCC
18218    builtin and then its argument prototype would still apply.  */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char drand48 ();
18223 int
18224 main ()
18225 {
18226 return drand48 ();
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238   (eval "$ac_link") 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } && {
18245          test -z "$ac_c_werror_flag" ||
18246          test ! -s conftest.err
18247        } && test -s conftest$ac_exeext &&
18248        $as_test_x conftest$ac_exeext; then
18249   ac_cv_lib_cExt_drand48=yes
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254         ac_cv_lib_cExt_drand48=no
18255 fi
18256
18257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18258       conftest$ac_exeext conftest.$ac_ext
18259 LIBS=$ac_check_lib_save_LIBS
18260 fi
18261 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18262 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18263 if test $ac_cv_lib_cExt_drand48 = yes; then
18264   LIBS="$LIBS -lcExt"
18265 fi
18266
18267       else
18268                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18269       fi
18270                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18271 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18272 if test "${wx_cv_gccversion+set}" = set; then
18273   echo $ECHO_N "(cached) $ECHO_C" >&6
18274 else
18275
18276           if test "$cross_compiling" = yes; then
18277                 wx_cv_gccversion="EMX2"
18278
18279 else
18280   cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286
18287                   #include <stdio.h>
18288
18289                   int main()
18290                   {
18291                       FILE *f=fopen("conftestval", "w");
18292                       if (!f) exit(1);
18293                       fprintf(f,
18294                   #if (__GNUC__ < 3)
18295                               "EMX2"
18296                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18297                               "EMX3"
18298                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18299                               "Innotek5"
18300                   #else
18301                               "Innotek6"
18302                   #endif
18303                       );
18304                       exit(0);
18305                   }
18306
18307 _ACEOF
18308 rm -f conftest$ac_exeext
18309 if { (ac_try="$ac_link"
18310 case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_link") 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18319   { (case "(($ac_try" in
18320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321   *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324   (eval "$ac_try") 2>&5
18325   ac_status=$?
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); }; }; then
18328   wx_cv_gccversion=`cat conftestval`
18329 else
18330   echo "$as_me: program exited with status $ac_status" >&5
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 ( exit $ac_status )
18335 wx_cv_gccversion="EMX2"
18336 fi
18337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18338 fi
18339
18340
18341
18342 fi
18343 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18344 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18345       if test "$wx_cv_gccversion" = "EMX2"; then
18346           LIBS="$LIBS -lstdcpp"
18347           LDFLAGS="$LDFLAGS -Zsysv-signals"
18348       else
18349           if test "$wx_cv_gccversion" = "EMX3"; then
18350               LIBS="$LIBS -lstdcxx -lgcc"
18351               LDFLAGS="$LDFLAGS -Zsysv-signals"
18352           else
18353               LIBS="$LIBS -lstdc++"
18354           fi
18355       fi
18356       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18357         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18358 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18359         wxUSE_OMF=yes
18360         enable_omf=yes
18361       fi
18362         ;;
18363   *)
18364
18365       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18366 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18367 if test "${ac_cv_string_strcasecmp+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370
18371           cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377
18378               #include <string.h>
18379
18380 int
18381 main ()
18382 {
18383
18384                   strcasecmp("foo", "bar");
18385
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (ac_try="$ac_link"
18392 case "(($ac_try" in
18393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394   *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397   (eval "$ac_link") 2>conftest.er1
18398   ac_status=$?
18399   grep -v '^ *+' conftest.er1 >conftest.err
18400   rm -f conftest.er1
18401   cat conftest.err >&5
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } && {
18404          test -z "$ac_c_werror_flag" ||
18405          test ! -s conftest.err
18406        } && test -s conftest$ac_exeext &&
18407        $as_test_x conftest$ac_exeext; then
18408   ac_cv_string_strcasecmp=yes
18409 else
18410   echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413         ac_cv_string_strcasecmp=no
18414
18415 fi
18416
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418       conftest$ac_exeext conftest.$ac_ext
18419
18420 fi
18421 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18422 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18423
18424       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18425           cat >>confdefs.h <<\_ACEOF
18426 #define HAVE_STRCASECMP_IN_STRING_H 1
18427 _ACEOF
18428
18429       else
18430           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18431 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18432 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18433   echo $ECHO_N "(cached) $ECHO_C" >&6
18434 else
18435
18436               cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442
18443                   #include <strings.h>
18444
18445 int
18446 main ()
18447 {
18448
18449                       strcasecmp("foo", "bar");
18450
18451   ;
18452   return 0;
18453 }
18454 _ACEOF
18455 rm -f conftest.$ac_objext conftest$ac_exeext
18456 if { (ac_try="$ac_link"
18457 case "(($ac_try" in
18458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459   *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462   (eval "$ac_link") 2>conftest.er1
18463   ac_status=$?
18464   grep -v '^ *+' conftest.er1 >conftest.err
18465   rm -f conftest.er1
18466   cat conftest.err >&5
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } && {
18469          test -z "$ac_c_werror_flag" ||
18470          test ! -s conftest.err
18471        } && test -s conftest$ac_exeext &&
18472        $as_test_x conftest$ac_exeext; then
18473   ac_cv_strings_strcasecmp=yes
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478         ac_cv_strings_strcasecmp=no
18479
18480 fi
18481
18482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18483       conftest$ac_exeext conftest.$ac_ext
18484
18485 fi
18486 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18487 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18488
18489           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18490               cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18492 _ACEOF
18493
18494           else
18495               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18496 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18497    { (exit 1); exit 1; }; }
18498           fi
18499       fi
18500
18501         ;;
18502 esac
18503
18504
18505 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18507 if test "${ac_cv_header_stdc+set}" = set; then
18508   echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510   cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h.  */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h.  */
18516 #include <stdlib.h>
18517 #include <stdarg.h>
18518 #include <string.h>
18519 #include <float.h>
18520
18521 int
18522 main ()
18523 {
18524
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_compile") 2>conftest.er1
18537   ac_status=$?
18538   grep -v '^ *+' conftest.er1 >conftest.err
18539   rm -f conftest.er1
18540   cat conftest.err >&5
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); } && {
18543          test -z "$ac_c_werror_flag" ||
18544          test ! -s conftest.err
18545        } && test -s conftest.$ac_objext; then
18546   ac_cv_header_stdc=yes
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         ac_cv_header_stdc=no
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555
18556 if test $ac_cv_header_stdc = yes; then
18557   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18558   cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564 #include <string.h>
18565
18566 _ACEOF
18567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18568   $EGREP "memchr" >/dev/null 2>&1; then
18569   :
18570 else
18571   ac_cv_header_stdc=no
18572 fi
18573 rm -f conftest*
18574
18575 fi
18576
18577 if test $ac_cv_header_stdc = yes; then
18578   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18579   cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585 #include <stdlib.h>
18586
18587 _ACEOF
18588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18589   $EGREP "free" >/dev/null 2>&1; then
18590   :
18591 else
18592   ac_cv_header_stdc=no
18593 fi
18594 rm -f conftest*
18595
18596 fi
18597
18598 if test $ac_cv_header_stdc = yes; then
18599   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18600   if test "$cross_compiling" = yes; then
18601   :
18602 else
18603   cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h.  */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h.  */
18609 #include <ctype.h>
18610 #include <stdlib.h>
18611 #if ((' ' & 0x0FF) == 0x020)
18612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18614 #else
18615 # define ISLOWER(c) \
18616                    (('a' <= (c) && (c) <= 'i') \
18617                      || ('j' <= (c) && (c) <= 'r') \
18618                      || ('s' <= (c) && (c) <= 'z'))
18619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18620 #endif
18621
18622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18623 int
18624 main ()
18625 {
18626   int i;
18627   for (i = 0; i < 256; i++)
18628     if (XOR (islower (i), ISLOWER (i))
18629         || toupper (i) != TOUPPER (i))
18630       return 2;
18631   return 0;
18632 }
18633 _ACEOF
18634 rm -f conftest$ac_exeext
18635 if { (ac_try="$ac_link"
18636 case "(($ac_try" in
18637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638   *) ac_try_echo=$ac_try;;
18639 esac
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641   (eval "$ac_link") 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18645   { (case "(($ac_try" in
18646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647   *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650   (eval "$ac_try") 2>&5
18651   ac_status=$?
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); }; }; then
18654   :
18655 else
18656   echo "$as_me: program exited with status $ac_status" >&5
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660 ( exit $ac_status )
18661 ac_cv_header_stdc=no
18662 fi
18663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18664 fi
18665
18666
18667 fi
18668 fi
18669 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18671 if test $ac_cv_header_stdc = yes; then
18672
18673 cat >>confdefs.h <<\_ACEOF
18674 #define STDC_HEADERS 1
18675 _ACEOF
18676
18677 fi
18678
18679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18690                   inttypes.h stdint.h unistd.h
18691 do
18692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18696   echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698   cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h.  */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h.  */
18704 $ac_includes_default
18705
18706 #include <$ac_header>
18707 _ACEOF
18708 rm -f conftest.$ac_objext
18709 if { (ac_try="$ac_compile"
18710 case "(($ac_try" in
18711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712   *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715   (eval "$ac_compile") 2>conftest.er1
18716   ac_status=$?
18717   grep -v '^ *+' conftest.er1 >conftest.err
18718   rm -f conftest.er1
18719   cat conftest.err >&5
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); } && {
18722          test -z "$ac_c_werror_flag" ||
18723          test ! -s conftest.err
18724        } && test -s conftest.$ac_objext; then
18725   eval "$as_ac_Header=yes"
18726 else
18727   echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730         eval "$as_ac_Header=no"
18731 fi
18732
18733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734 fi
18735 ac_res=`eval echo '${'$as_ac_Header'}'`
18736                { echo "$as_me:$LINENO: result: $ac_res" >&5
18737 echo "${ECHO_T}$ac_res" >&6; }
18738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18739   cat >>confdefs.h <<_ACEOF
18740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18741 _ACEOF
18742
18743 fi
18744
18745 done
18746
18747
18748
18749
18750 for ac_header in langinfo.h wchar.h
18751 do
18752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h.  */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h.  */
18764 $ac_includes_default
18765
18766 #include <$ac_header>
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (ac_try="$ac_compile"
18770 case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775   (eval "$ac_compile") 2>conftest.er1
18776   ac_status=$?
18777   grep -v '^ *+' conftest.er1 >conftest.err
18778   rm -f conftest.er1
18779   cat conftest.err >&5
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); } && {
18782          test -z "$ac_c_werror_flag" ||
18783          test ! -s conftest.err
18784        } && test -s conftest.$ac_objext; then
18785   eval "$as_ac_Header=yes"
18786 else
18787   echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790         eval "$as_ac_Header=no"
18791 fi
18792
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794 fi
18795 ac_res=`eval echo '${'$as_ac_Header'}'`
18796                { echo "$as_me:$LINENO: result: $ac_res" >&5
18797 echo "${ECHO_T}$ac_res" >&6; }
18798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18799   cat >>confdefs.h <<_ACEOF
18800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18801 _ACEOF
18802
18803 fi
18804
18805 done
18806
18807
18808 if test "$ac_cv_header_wchar_h" != "yes"; then
18809
18810 for ac_header in wcstr.h
18811 do
18812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824 $ac_includes_default
18825
18826 #include <$ac_header>
18827 _ACEOF
18828 rm -f conftest.$ac_objext
18829 if { (ac_try="$ac_compile"
18830 case "(($ac_try" in
18831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832   *) ac_try_echo=$ac_try;;
18833 esac
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835   (eval "$ac_compile") 2>conftest.er1
18836   ac_status=$?
18837   grep -v '^ *+' conftest.er1 >conftest.err
18838   rm -f conftest.er1
18839   cat conftest.err >&5
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); } && {
18842          test -z "$ac_c_werror_flag" ||
18843          test ! -s conftest.err
18844        } && test -s conftest.$ac_objext; then
18845   eval "$as_ac_Header=yes"
18846 else
18847   echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18849
18850         eval "$as_ac_Header=no"
18851 fi
18852
18853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18854 fi
18855 ac_res=`eval echo '${'$as_ac_Header'}'`
18856                { echo "$as_me:$LINENO: result: $ac_res" >&5
18857 echo "${ECHO_T}$ac_res" >&6; }
18858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18859   cat >>confdefs.h <<_ACEOF
18860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18861 _ACEOF
18862
18863 fi
18864
18865 done
18866
18867 fi
18868
18869 case "${host}" in
18870   *-pc-os2_emx | *-pc-os2-emx )
18871                   if test $ac_cv_header_langinfo_h = "yes" \
18872                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18873                      -o "$wx_cv_gccversion" = "EMX3" \
18874                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18875           LIBS="$LIBS -lintl"
18876       fi
18877   ;;
18878 esac
18879
18880 if test "$USE_UNIX" = 1 ; then
18881
18882 for ac_header in sys/select.h
18883 do
18884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h.  */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h.  */
18896 $ac_includes_default
18897
18898 #include <$ac_header>
18899 _ACEOF
18900 rm -f conftest.$ac_objext
18901 if { (ac_try="$ac_compile"
18902 case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_compile") 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } && {
18914          test -z "$ac_c_werror_flag" ||
18915          test ! -s conftest.err
18916        } && test -s conftest.$ac_objext; then
18917   eval "$as_ac_Header=yes"
18918 else
18919   echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18921
18922         eval "$as_ac_Header=no"
18923 fi
18924
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 fi
18927 ac_res=`eval echo '${'$as_ac_Header'}'`
18928                { echo "$as_me:$LINENO: result: $ac_res" >&5
18929 echo "${ECHO_T}$ac_res" >&6; }
18930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18931   cat >>confdefs.h <<_ACEOF
18932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18933 _ACEOF
18934
18935 fi
18936
18937 done
18938
18939 fi
18940
18941
18942 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18943 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18944 if test "${ac_cv_c_const+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947   cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953
18954 int
18955 main ()
18956 {
18957 /* FIXME: Include the comments suggested by Paul. */
18958 #ifndef __cplusplus
18959   /* Ultrix mips cc rejects this.  */
18960   typedef int charset[2];
18961   const charset cs;
18962   /* SunOS 4.1.1 cc rejects this.  */
18963   char const *const *pcpcc;
18964   char **ppc;
18965   /* NEC SVR4.0.2 mips cc rejects this.  */
18966   struct point {int x, y;};
18967   static struct point const zero = {0,0};
18968   /* AIX XL C 1.02.0.0 rejects this.
18969      It does not let you subtract one const X* pointer from another in
18970      an arm of an if-expression whose if-part is not a constant
18971      expression */
18972   const char *g = "string";
18973   pcpcc = &g + (g ? g-g : 0);
18974   /* HPUX 7.0 cc rejects these. */
18975   ++pcpcc;
18976   ppc = (char**) pcpcc;
18977   pcpcc = (char const *const *) ppc;
18978   { /* SCO 3.2v4 cc rejects this.  */
18979     char *t;
18980     char const *s = 0 ? (char *) 0 : (char const *) 0;
18981
18982     *t++ = 0;
18983     if (s) return 0;
18984   }
18985   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18986     int x[] = {25, 17};
18987     const int *foo = &x[0];
18988     ++foo;
18989   }
18990   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18991     typedef const int *iptr;
18992     iptr p = 0;
18993     ++p;
18994   }
18995   { /* AIX XL C 1.02.0.0 rejects this saying
18996        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18997     struct s { int j; const int *ap[3]; };
18998     struct s *b; b->j = 5;
18999   }
19000   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19001     const int foo = 10;
19002     if (!foo) return 0;
19003   }
19004   return !cs[0] && !zero.x;
19005 #endif
19006
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015   *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018   (eval "$ac_compile") 2>conftest.er1
19019   ac_status=$?
19020   grep -v '^ *+' conftest.er1 >conftest.err
19021   rm -f conftest.er1
19022   cat conftest.err >&5
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); } && {
19025          test -z "$ac_c_werror_flag" ||
19026          test ! -s conftest.err
19027        } && test -s conftest.$ac_objext; then
19028   ac_cv_c_const=yes
19029 else
19030   echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19032
19033         ac_cv_c_const=no
19034 fi
19035
19036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037 fi
19038 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19039 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19040 if test $ac_cv_c_const = no; then
19041
19042 cat >>confdefs.h <<\_ACEOF
19043 #define const
19044 _ACEOF
19045
19046 fi
19047
19048 { echo "$as_me:$LINENO: checking for inline" >&5
19049 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19050 if test "${ac_cv_c_inline+set}" = set; then
19051   echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053   ac_cv_c_inline=no
19054 for ac_kw in inline __inline__ __inline; do
19055   cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h.  */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h.  */
19061 #ifndef __cplusplus
19062 typedef int foo_t;
19063 static $ac_kw foo_t static_foo () {return 0; }
19064 $ac_kw foo_t foo () {return 0; }
19065 #endif
19066
19067 _ACEOF
19068 rm -f conftest.$ac_objext
19069 if { (ac_try="$ac_compile"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_compile") 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } && {
19082          test -z "$ac_c_werror_flag" ||
19083          test ! -s conftest.err
19084        } && test -s conftest.$ac_objext; then
19085   ac_cv_c_inline=$ac_kw
19086 else
19087   echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19089
19090
19091 fi
19092
19093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19094   test "$ac_cv_c_inline" != no && break
19095 done
19096
19097 fi
19098 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19099 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19100
19101
19102 case $ac_cv_c_inline in
19103   inline | yes) ;;
19104   *)
19105     case $ac_cv_c_inline in
19106       no) ac_val=;;
19107       *) ac_val=$ac_cv_c_inline;;
19108     esac
19109     cat >>confdefs.h <<_ACEOF
19110 #ifndef __cplusplus
19111 #define inline $ac_val
19112 #endif
19113 _ACEOF
19114     ;;
19115 esac
19116
19117
19118 { echo "$as_me:$LINENO: checking for short" >&5
19119 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19120 if test "${ac_cv_type_short+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h.  */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h.  */
19129 $ac_includes_default
19130 typedef short ac__type_new_;
19131 int
19132 main ()
19133 {
19134 if ((ac__type_new_ *) 0)
19135   return 0;
19136 if (sizeof (ac__type_new_))
19137   return 0;
19138   ;
19139   return 0;
19140 }
19141 _ACEOF
19142 rm -f conftest.$ac_objext
19143 if { (ac_try="$ac_compile"
19144 case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149   (eval "$ac_compile") 2>conftest.er1
19150   ac_status=$?
19151   grep -v '^ *+' conftest.er1 >conftest.err
19152   rm -f conftest.er1
19153   cat conftest.err >&5
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } && {
19156          test -z "$ac_c_werror_flag" ||
19157          test ! -s conftest.err
19158        } && test -s conftest.$ac_objext; then
19159   ac_cv_type_short=yes
19160 else
19161   echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164         ac_cv_type_short=no
19165 fi
19166
19167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19168 fi
19169 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19170 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19171
19172 # The cast to long int works around a bug in the HP C Compiler
19173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19175 # This bug is HP SR number 8606223364.
19176 { echo "$as_me:$LINENO: checking size of short" >&5
19177 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19178 if test "${ac_cv_sizeof_short+set}" = set; then
19179   echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181   if test "$cross_compiling" = yes; then
19182   # Depending upon the size, compute the lo and hi bounds.
19183 cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189 $ac_includes_default
19190    typedef short ac__type_sizeof_;
19191 int
19192 main ()
19193 {
19194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19195 test_array [0] = 0
19196
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 rm -f conftest.$ac_objext
19202 if { (ac_try="$ac_compile"
19203 case "(($ac_try" in
19204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205   *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208   (eval "$ac_compile") 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } && {
19215          test -z "$ac_c_werror_flag" ||
19216          test ! -s conftest.err
19217        } && test -s conftest.$ac_objext; then
19218   ac_lo=0 ac_mid=0
19219   while :; do
19220     cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h.  */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h.  */
19226 $ac_includes_default
19227    typedef short ac__type_sizeof_;
19228 int
19229 main ()
19230 {
19231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19232 test_array [0] = 0
19233
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (ac_try="$ac_compile"
19240 case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_compile") 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } && {
19252          test -z "$ac_c_werror_flag" ||
19253          test ! -s conftest.err
19254        } && test -s conftest.$ac_objext; then
19255   ac_hi=$ac_mid; break
19256 else
19257   echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19259
19260         ac_lo=`expr $ac_mid + 1`
19261                         if test $ac_lo -le $ac_mid; then
19262                           ac_lo= ac_hi=
19263                           break
19264                         fi
19265                         ac_mid=`expr 2 '*' $ac_mid + 1`
19266 fi
19267
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269   done
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274         cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h.  */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h.  */
19280 $ac_includes_default
19281    typedef short ac__type_sizeof_;
19282 int
19283 main ()
19284 {
19285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19286 test_array [0] = 0
19287
19288   ;
19289   return 0;
19290 }
19291 _ACEOF
19292 rm -f conftest.$ac_objext
19293 if { (ac_try="$ac_compile"
19294 case "(($ac_try" in
19295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296   *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299   (eval "$ac_compile") 2>conftest.er1
19300   ac_status=$?
19301   grep -v '^ *+' conftest.er1 >conftest.err
19302   rm -f conftest.er1
19303   cat conftest.err >&5
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); } && {
19306          test -z "$ac_c_werror_flag" ||
19307          test ! -s conftest.err
19308        } && test -s conftest.$ac_objext; then
19309   ac_hi=-1 ac_mid=-1
19310   while :; do
19311     cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h.  */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h.  */
19317 $ac_includes_default
19318    typedef short ac__type_sizeof_;
19319 int
19320 main ()
19321 {
19322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19323 test_array [0] = 0
19324
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_compile") 2>conftest.er1
19337   ac_status=$?
19338   grep -v '^ *+' conftest.er1 >conftest.err
19339   rm -f conftest.er1
19340   cat conftest.err >&5
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } && {
19343          test -z "$ac_c_werror_flag" ||
19344          test ! -s conftest.err
19345        } && test -s conftest.$ac_objext; then
19346   ac_lo=$ac_mid; break
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351         ac_hi=`expr '(' $ac_mid ')' - 1`
19352                         if test $ac_mid -le $ac_hi; then
19353                           ac_lo= ac_hi=
19354                           break
19355                         fi
19356                         ac_mid=`expr 2 '*' $ac_mid`
19357 fi
19358
19359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19360   done
19361 else
19362   echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19364
19365         ac_lo= ac_hi=
19366 fi
19367
19368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19369 fi
19370
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372 # Binary search between lo and hi bounds.
19373 while test "x$ac_lo" != "x$ac_hi"; do
19374   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19375   cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h.  */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h.  */
19381 $ac_includes_default
19382    typedef short ac__type_sizeof_;
19383 int
19384 main ()
19385 {
19386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19387 test_array [0] = 0
19388
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (ac_try="$ac_compile"
19395 case "(($ac_try" in
19396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397   *) ac_try_echo=$ac_try;;
19398 esac
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400   (eval "$ac_compile") 2>conftest.er1
19401   ac_status=$?
19402   grep -v '^ *+' conftest.er1 >conftest.err
19403   rm -f conftest.er1
19404   cat conftest.err >&5
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); } && {
19407          test -z "$ac_c_werror_flag" ||
19408          test ! -s conftest.err
19409        } && test -s conftest.$ac_objext; then
19410   ac_hi=$ac_mid
19411 else
19412   echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415         ac_lo=`expr '(' $ac_mid ')' + 1`
19416 fi
19417
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 done
19420 case $ac_lo in
19421 ?*) ac_cv_sizeof_short=$ac_lo;;
19422 '') if test "$ac_cv_type_short" = yes; then
19423      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19424 See \`config.log' for more details." >&5
19425 echo "$as_me: error: cannot compute sizeof (short)
19426 See \`config.log' for more details." >&2;}
19427    { (exit 77); exit 77; }; }
19428    else
19429      ac_cv_sizeof_short=0
19430    fi ;;
19431 esac
19432 else
19433   cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439 $ac_includes_default
19440    typedef short ac__type_sizeof_;
19441 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19442 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19443 #include <stdio.h>
19444 #include <stdlib.h>
19445 int
19446 main ()
19447 {
19448
19449   FILE *f = fopen ("conftest.val", "w");
19450   if (! f)
19451     return 1;
19452   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19453     {
19454       long int i = longval ();
19455       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19456         return 1;
19457       fprintf (f, "%ld\n", i);
19458     }
19459   else
19460     {
19461       unsigned long int i = ulongval ();
19462       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19463         return 1;
19464       fprintf (f, "%lu\n", i);
19465     }
19466   return ferror (f) || fclose (f) != 0;
19467
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 rm -f conftest$ac_exeext
19473 if { (ac_try="$ac_link"
19474 case "(($ac_try" in
19475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476   *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479   (eval "$ac_link") 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19483   { (case "(($ac_try" in
19484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485   *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488   (eval "$ac_try") 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   ac_cv_sizeof_short=`cat conftest.val`
19493 else
19494   echo "$as_me: program exited with status $ac_status" >&5
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498 ( exit $ac_status )
19499 if test "$ac_cv_type_short" = yes; then
19500      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19501 See \`config.log' for more details." >&5
19502 echo "$as_me: error: cannot compute sizeof (short)
19503 See \`config.log' for more details." >&2;}
19504    { (exit 77); exit 77; }; }
19505    else
19506      ac_cv_sizeof_short=0
19507    fi
19508 fi
19509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19510 fi
19511 rm -f conftest.val
19512 fi
19513 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19514 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19515
19516
19517
19518 cat >>confdefs.h <<_ACEOF
19519 #define SIZEOF_SHORT $ac_cv_sizeof_short
19520 _ACEOF
19521
19522
19523 { echo "$as_me:$LINENO: checking for void *" >&5
19524 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19525 if test "${ac_cv_type_void_p+set}" = set; then
19526   echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528   cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h.  */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h.  */
19534 $ac_includes_default
19535 typedef void * ac__type_new_;
19536 int
19537 main ()
19538 {
19539 if ((ac__type_new_ *) 0)
19540   return 0;
19541 if (sizeof (ac__type_new_))
19542   return 0;
19543   ;
19544   return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_compile") 2>conftest.er1
19555   ac_status=$?
19556   grep -v '^ *+' conftest.er1 >conftest.err
19557   rm -f conftest.er1
19558   cat conftest.err >&5
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); } && {
19561          test -z "$ac_c_werror_flag" ||
19562          test ! -s conftest.err
19563        } && test -s conftest.$ac_objext; then
19564   ac_cv_type_void_p=yes
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         ac_cv_type_void_p=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 fi
19574 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19575 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19576
19577 # The cast to long int works around a bug in the HP C Compiler
19578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19580 # This bug is HP SR number 8606223364.
19581 { echo "$as_me:$LINENO: checking size of void *" >&5
19582 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19583 if test "${ac_cv_sizeof_void_p+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586   if test "$cross_compiling" = yes; then
19587   # Depending upon the size, compute the lo and hi bounds.
19588 cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 $ac_includes_default
19595    typedef void * ac__type_sizeof_;
19596 int
19597 main ()
19598 {
19599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19600 test_array [0] = 0
19601
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 rm -f conftest.$ac_objext
19607 if { (ac_try="$ac_compile"
19608 case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613   (eval "$ac_compile") 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } && {
19620          test -z "$ac_c_werror_flag" ||
19621          test ! -s conftest.err
19622        } && test -s conftest.$ac_objext; then
19623   ac_lo=0 ac_mid=0
19624   while :; do
19625     cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 $ac_includes_default
19632    typedef void * ac__type_sizeof_;
19633 int
19634 main ()
19635 {
19636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19637 test_array [0] = 0
19638
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (ac_try="$ac_compile"
19645 case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_compile") 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } && {
19657          test -z "$ac_c_werror_flag" ||
19658          test ! -s conftest.err
19659        } && test -s conftest.$ac_objext; then
19660   ac_hi=$ac_mid; break
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_lo=`expr $ac_mid + 1`
19666                         if test $ac_lo -le $ac_mid; then
19667                           ac_lo= ac_hi=
19668                           break
19669                         fi
19670                         ac_mid=`expr 2 '*' $ac_mid + 1`
19671 fi
19672
19673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19674   done
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679         cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685 $ac_includes_default
19686    typedef void * ac__type_sizeof_;
19687 int
19688 main ()
19689 {
19690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19691 test_array [0] = 0
19692
19693   ;
19694   return 0;
19695 }
19696 _ACEOF
19697 rm -f conftest.$ac_objext
19698 if { (ac_try="$ac_compile"
19699 case "(($ac_try" in
19700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701   *) ac_try_echo=$ac_try;;
19702 esac
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704   (eval "$ac_compile") 2>conftest.er1
19705   ac_status=$?
19706   grep -v '^ *+' conftest.er1 >conftest.err
19707   rm -f conftest.er1
19708   cat conftest.err >&5
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); } && {
19711          test -z "$ac_c_werror_flag" ||
19712          test ! -s conftest.err
19713        } && test -s conftest.$ac_objext; then
19714   ac_hi=-1 ac_mid=-1
19715   while :; do
19716     cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h.  */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h.  */
19722 $ac_includes_default
19723    typedef void * ac__type_sizeof_;
19724 int
19725 main ()
19726 {
19727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19728 test_array [0] = 0
19729
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext
19735 if { (ac_try="$ac_compile"
19736 case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_compile") 2>conftest.er1
19742   ac_status=$?
19743   grep -v '^ *+' conftest.er1 >conftest.err
19744   rm -f conftest.er1
19745   cat conftest.err >&5
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } && {
19748          test -z "$ac_c_werror_flag" ||
19749          test ! -s conftest.err
19750        } && test -s conftest.$ac_objext; then
19751   ac_lo=$ac_mid; break
19752 else
19753   echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756         ac_hi=`expr '(' $ac_mid ')' - 1`
19757                         if test $ac_mid -le $ac_hi; then
19758                           ac_lo= ac_hi=
19759                           break
19760                         fi
19761                         ac_mid=`expr 2 '*' $ac_mid`
19762 fi
19763
19764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19765   done
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770         ac_lo= ac_hi=
19771 fi
19772
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774 fi
19775
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 # Binary search between lo and hi bounds.
19778 while test "x$ac_lo" != "x$ac_hi"; do
19779   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19780   cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786 $ac_includes_default
19787    typedef void * ac__type_sizeof_;
19788 int
19789 main ()
19790 {
19791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19792 test_array [0] = 0
19793
19794   ;
19795   return 0;
19796 }
19797 _ACEOF
19798 rm -f conftest.$ac_objext
19799 if { (ac_try="$ac_compile"
19800 case "(($ac_try" in
19801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802   *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805   (eval "$ac_compile") 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } && {
19812          test -z "$ac_c_werror_flag" ||
19813          test ! -s conftest.err
19814        } && test -s conftest.$ac_objext; then
19815   ac_hi=$ac_mid
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820         ac_lo=`expr '(' $ac_mid ')' + 1`
19821 fi
19822
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824 done
19825 case $ac_lo in
19826 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19827 '') if test "$ac_cv_type_void_p" = yes; then
19828      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19829 See \`config.log' for more details." >&5
19830 echo "$as_me: error: cannot compute sizeof (void *)
19831 See \`config.log' for more details." >&2;}
19832    { (exit 77); exit 77; }; }
19833    else
19834      ac_cv_sizeof_void_p=0
19835    fi ;;
19836 esac
19837 else
19838   cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844 $ac_includes_default
19845    typedef void * ac__type_sizeof_;
19846 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19847 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19848 #include <stdio.h>
19849 #include <stdlib.h>
19850 int
19851 main ()
19852 {
19853
19854   FILE *f = fopen ("conftest.val", "w");
19855   if (! f)
19856     return 1;
19857   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19858     {
19859       long int i = longval ();
19860       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19861         return 1;
19862       fprintf (f, "%ld\n", i);
19863     }
19864   else
19865     {
19866       unsigned long int i = ulongval ();
19867       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19868         return 1;
19869       fprintf (f, "%lu\n", i);
19870     }
19871   return ferror (f) || fclose (f) != 0;
19872
19873   ;
19874   return 0;
19875 }
19876 _ACEOF
19877 rm -f conftest$ac_exeext
19878 if { (ac_try="$ac_link"
19879 case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_link") 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19888   { (case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_try") 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; }; then
19897   ac_cv_sizeof_void_p=`cat conftest.val`
19898 else
19899   echo "$as_me: program exited with status $ac_status" >&5
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 ( exit $ac_status )
19904 if test "$ac_cv_type_void_p" = yes; then
19905      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19906 See \`config.log' for more details." >&5
19907 echo "$as_me: error: cannot compute sizeof (void *)
19908 See \`config.log' for more details." >&2;}
19909    { (exit 77); exit 77; }; }
19910    else
19911      ac_cv_sizeof_void_p=0
19912    fi
19913 fi
19914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19915 fi
19916 rm -f conftest.val
19917 fi
19918 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19919 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
19920
19921
19922
19923 cat >>confdefs.h <<_ACEOF
19924 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19925 _ACEOF
19926
19927
19928 { echo "$as_me:$LINENO: checking for int" >&5
19929 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19930 if test "${ac_cv_type_int+set}" = set; then
19931   echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933   cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h.  */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h.  */
19939 $ac_includes_default
19940 typedef int ac__type_new_;
19941 int
19942 main ()
19943 {
19944 if ((ac__type_new_ *) 0)
19945   return 0;
19946 if (sizeof (ac__type_new_))
19947   return 0;
19948   ;
19949   return 0;
19950 }
19951 _ACEOF
19952 rm -f conftest.$ac_objext
19953 if { (ac_try="$ac_compile"
19954 case "(($ac_try" in
19955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956   *) ac_try_echo=$ac_try;;
19957 esac
19958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19959   (eval "$ac_compile") 2>conftest.er1
19960   ac_status=$?
19961   grep -v '^ *+' conftest.er1 >conftest.err
19962   rm -f conftest.er1
19963   cat conftest.err >&5
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); } && {
19966          test -z "$ac_c_werror_flag" ||
19967          test ! -s conftest.err
19968        } && test -s conftest.$ac_objext; then
19969   ac_cv_type_int=yes
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974         ac_cv_type_int=no
19975 fi
19976
19977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19978 fi
19979 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19980 echo "${ECHO_T}$ac_cv_type_int" >&6; }
19981
19982 # The cast to long int works around a bug in the HP C Compiler
19983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19985 # This bug is HP SR number 8606223364.
19986 { echo "$as_me:$LINENO: checking size of int" >&5
19987 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19988 if test "${ac_cv_sizeof_int+set}" = set; then
19989   echo $ECHO_N "(cached) $ECHO_C" >&6
19990 else
19991   if test "$cross_compiling" = yes; then
19992   # Depending upon the size, compute the lo and hi bounds.
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 $ac_includes_default
20000    typedef int ac__type_sizeof_;
20001 int
20002 main ()
20003 {
20004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20005 test_array [0] = 0
20006
20007   ;
20008   return 0;
20009 }
20010 _ACEOF
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_compile") 2>conftest.er1
20019   ac_status=$?
20020   grep -v '^ *+' conftest.er1 >conftest.err
20021   rm -f conftest.er1
20022   cat conftest.err >&5
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } && {
20025          test -z "$ac_c_werror_flag" ||
20026          test ! -s conftest.err
20027        } && test -s conftest.$ac_objext; then
20028   ac_lo=0 ac_mid=0
20029   while :; do
20030     cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 $ac_includes_default
20037    typedef int ac__type_sizeof_;
20038 int
20039 main ()
20040 {
20041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20042 test_array [0] = 0
20043
20044   ;
20045   return 0;
20046 }
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (ac_try="$ac_compile"
20050 case "(($ac_try" in
20051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052   *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055   (eval "$ac_compile") 2>conftest.er1
20056   ac_status=$?
20057   grep -v '^ *+' conftest.er1 >conftest.err
20058   rm -f conftest.er1
20059   cat conftest.err >&5
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); } && {
20062          test -z "$ac_c_werror_flag" ||
20063          test ! -s conftest.err
20064        } && test -s conftest.$ac_objext; then
20065   ac_hi=$ac_mid; break
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070         ac_lo=`expr $ac_mid + 1`
20071                         if test $ac_lo -le $ac_mid; then
20072                           ac_lo= ac_hi=
20073                           break
20074                         fi
20075                         ac_mid=`expr 2 '*' $ac_mid + 1`
20076 fi
20077
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20079   done
20080 else
20081   echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20083
20084         cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090 $ac_includes_default
20091    typedef int ac__type_sizeof_;
20092 int
20093 main ()
20094 {
20095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20096 test_array [0] = 0
20097
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (ac_try="$ac_compile"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_compile") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_c_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest.$ac_objext; then
20119   ac_hi=-1 ac_mid=-1
20120   while :; do
20121     cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h.  */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h.  */
20127 $ac_includes_default
20128    typedef int ac__type_sizeof_;
20129 int
20130 main ()
20131 {
20132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20133 test_array [0] = 0
20134
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143   *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146   (eval "$ac_compile") 2>conftest.er1
20147   ac_status=$?
20148   grep -v '^ *+' conftest.er1 >conftest.err
20149   rm -f conftest.er1
20150   cat conftest.err >&5
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } && {
20153          test -z "$ac_c_werror_flag" ||
20154          test ! -s conftest.err
20155        } && test -s conftest.$ac_objext; then
20156   ac_lo=$ac_mid; break
20157 else
20158   echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161         ac_hi=`expr '(' $ac_mid ')' - 1`
20162                         if test $ac_mid -le $ac_hi; then
20163                           ac_lo= ac_hi=
20164                           break
20165                         fi
20166                         ac_mid=`expr 2 '*' $ac_mid`
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170   done
20171 else
20172   echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175         ac_lo= ac_hi=
20176 fi
20177
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20179 fi
20180
20181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20182 # Binary search between lo and hi bounds.
20183 while test "x$ac_lo" != "x$ac_hi"; do
20184   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20185   cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191 $ac_includes_default
20192    typedef int ac__type_sizeof_;
20193 int
20194 main ()
20195 {
20196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20197 test_array [0] = 0
20198
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 rm -f conftest.$ac_objext
20204 if { (ac_try="$ac_compile"
20205 case "(($ac_try" in
20206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207   *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210   (eval "$ac_compile") 2>conftest.er1
20211   ac_status=$?
20212   grep -v '^ *+' conftest.er1 >conftest.err
20213   rm -f conftest.er1
20214   cat conftest.err >&5
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); } && {
20217          test -z "$ac_c_werror_flag" ||
20218          test ! -s conftest.err
20219        } && test -s conftest.$ac_objext; then
20220   ac_hi=$ac_mid
20221 else
20222   echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20224
20225         ac_lo=`expr '(' $ac_mid ')' + 1`
20226 fi
20227
20228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 done
20230 case $ac_lo in
20231 ?*) ac_cv_sizeof_int=$ac_lo;;
20232 '') if test "$ac_cv_type_int" = yes; then
20233      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20234 See \`config.log' for more details." >&5
20235 echo "$as_me: error: cannot compute sizeof (int)
20236 See \`config.log' for more details." >&2;}
20237    { (exit 77); exit 77; }; }
20238    else
20239      ac_cv_sizeof_int=0
20240    fi ;;
20241 esac
20242 else
20243   cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h.  */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h.  */
20249 $ac_includes_default
20250    typedef int ac__type_sizeof_;
20251 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20252 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20253 #include <stdio.h>
20254 #include <stdlib.h>
20255 int
20256 main ()
20257 {
20258
20259   FILE *f = fopen ("conftest.val", "w");
20260   if (! f)
20261     return 1;
20262   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20263     {
20264       long int i = longval ();
20265       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20266         return 1;
20267       fprintf (f, "%ld\n", i);
20268     }
20269   else
20270     {
20271       unsigned long int i = ulongval ();
20272       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20273         return 1;
20274       fprintf (f, "%lu\n", i);
20275     }
20276   return ferror (f) || fclose (f) != 0;
20277
20278   ;
20279   return 0;
20280 }
20281 _ACEOF
20282 rm -f conftest$ac_exeext
20283 if { (ac_try="$ac_link"
20284 case "(($ac_try" in
20285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286   *) ac_try_echo=$ac_try;;
20287 esac
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289   (eval "$ac_link") 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20293   { (case "(($ac_try" in
20294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295   *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298   (eval "$ac_try") 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; }; then
20302   ac_cv_sizeof_int=`cat conftest.val`
20303 else
20304   echo "$as_me: program exited with status $ac_status" >&5
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20307
20308 ( exit $ac_status )
20309 if test "$ac_cv_type_int" = yes; then
20310      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20311 See \`config.log' for more details." >&5
20312 echo "$as_me: error: cannot compute sizeof (int)
20313 See \`config.log' for more details." >&2;}
20314    { (exit 77); exit 77; }; }
20315    else
20316      ac_cv_sizeof_int=0
20317    fi
20318 fi
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20320 fi
20321 rm -f conftest.val
20322 fi
20323 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20324 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20325
20326
20327
20328 cat >>confdefs.h <<_ACEOF
20329 #define SIZEOF_INT $ac_cv_sizeof_int
20330 _ACEOF
20331
20332
20333 { echo "$as_me:$LINENO: checking for long" >&5
20334 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20335 if test "${ac_cv_type_long+set}" = set; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338   cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h.  */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h.  */
20344 $ac_includes_default
20345 typedef long ac__type_new_;
20346 int
20347 main ()
20348 {
20349 if ((ac__type_new_ *) 0)
20350   return 0;
20351 if (sizeof (ac__type_new_))
20352   return 0;
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest.$ac_objext
20358 if { (ac_try="$ac_compile"
20359 case "(($ac_try" in
20360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361   *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364   (eval "$ac_compile") 2>conftest.er1
20365   ac_status=$?
20366   grep -v '^ *+' conftest.er1 >conftest.err
20367   rm -f conftest.er1
20368   cat conftest.err >&5
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } && {
20371          test -z "$ac_c_werror_flag" ||
20372          test ! -s conftest.err
20373        } && test -s conftest.$ac_objext; then
20374   ac_cv_type_long=yes
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379         ac_cv_type_long=no
20380 fi
20381
20382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383 fi
20384 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20385 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20386
20387 # The cast to long int works around a bug in the HP C Compiler
20388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20390 # This bug is HP SR number 8606223364.
20391 { echo "$as_me:$LINENO: checking size of long" >&5
20392 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20393 if test "${ac_cv_sizeof_long+set}" = set; then
20394   echo $ECHO_N "(cached) $ECHO_C" >&6
20395 else
20396   if test "$cross_compiling" = yes; then
20397   # Depending upon the size, compute the lo and hi bounds.
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 $ac_includes_default
20405    typedef long ac__type_sizeof_;
20406 int
20407 main ()
20408 {
20409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20410 test_array [0] = 0
20411
20412   ;
20413   return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_compile") 2>conftest.er1
20424   ac_status=$?
20425   grep -v '^ *+' conftest.er1 >conftest.err
20426   rm -f conftest.er1
20427   cat conftest.err >&5
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } && {
20430          test -z "$ac_c_werror_flag" ||
20431          test ! -s conftest.err
20432        } && test -s conftest.$ac_objext; then
20433   ac_lo=0 ac_mid=0
20434   while :; do
20435     cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h.  */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h.  */
20441 $ac_includes_default
20442    typedef long ac__type_sizeof_;
20443 int
20444 main ()
20445 {
20446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20447 test_array [0] = 0
20448
20449   ;
20450   return 0;
20451 }
20452 _ACEOF
20453 rm -f conftest.$ac_objext
20454 if { (ac_try="$ac_compile"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_compile") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest.$ac_objext; then
20470   ac_hi=$ac_mid; break
20471 else
20472   echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475         ac_lo=`expr $ac_mid + 1`
20476                         if test $ac_lo -le $ac_mid; then
20477                           ac_lo= ac_hi=
20478                           break
20479                         fi
20480                         ac_mid=`expr 2 '*' $ac_mid + 1`
20481 fi
20482
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484   done
20485 else
20486   echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489         cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495 $ac_includes_default
20496    typedef long ac__type_sizeof_;
20497 int
20498 main ()
20499 {
20500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20501 test_array [0] = 0
20502
20503   ;
20504   return 0;
20505 }
20506 _ACEOF
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511   *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514   (eval "$ac_compile") 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } && {
20521          test -z "$ac_c_werror_flag" ||
20522          test ! -s conftest.err
20523        } && test -s conftest.$ac_objext; then
20524   ac_hi=-1 ac_mid=-1
20525   while :; do
20526     cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532 $ac_includes_default
20533    typedef long ac__type_sizeof_;
20534 int
20535 main ()
20536 {
20537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20538 test_array [0] = 0
20539
20540   ;
20541   return 0;
20542 }
20543 _ACEOF
20544 rm -f conftest.$ac_objext
20545 if { (ac_try="$ac_compile"
20546 case "(($ac_try" in
20547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548   *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551   (eval "$ac_compile") 2>conftest.er1
20552   ac_status=$?
20553   grep -v '^ *+' conftest.er1 >conftest.err
20554   rm -f conftest.er1
20555   cat conftest.err >&5
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } && {
20558          test -z "$ac_c_werror_flag" ||
20559          test ! -s conftest.err
20560        } && test -s conftest.$ac_objext; then
20561   ac_lo=$ac_mid; break
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566         ac_hi=`expr '(' $ac_mid ')' - 1`
20567                         if test $ac_mid -le $ac_hi; then
20568                           ac_lo= ac_hi=
20569                           break
20570                         fi
20571                         ac_mid=`expr 2 '*' $ac_mid`
20572 fi
20573
20574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20575   done
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580         ac_lo= ac_hi=
20581 fi
20582
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584 fi
20585
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 # Binary search between lo and hi bounds.
20588 while test "x$ac_lo" != "x$ac_hi"; do
20589   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20590   cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h.  */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h.  */
20596 $ac_includes_default
20597    typedef long ac__type_sizeof_;
20598 int
20599 main ()
20600 {
20601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20602 test_array [0] = 0
20603
20604   ;
20605   return 0;
20606 }
20607 _ACEOF
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612   *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615   (eval "$ac_compile") 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } && {
20622          test -z "$ac_c_werror_flag" ||
20623          test ! -s conftest.err
20624        } && test -s conftest.$ac_objext; then
20625   ac_hi=$ac_mid
20626 else
20627   echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630         ac_lo=`expr '(' $ac_mid ')' + 1`
20631 fi
20632
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 done
20635 case $ac_lo in
20636 ?*) ac_cv_sizeof_long=$ac_lo;;
20637 '') if test "$ac_cv_type_long" = yes; then
20638      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20639 See \`config.log' for more details." >&5
20640 echo "$as_me: error: cannot compute sizeof (long)
20641 See \`config.log' for more details." >&2;}
20642    { (exit 77); exit 77; }; }
20643    else
20644      ac_cv_sizeof_long=0
20645    fi ;;
20646 esac
20647 else
20648   cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654 $ac_includes_default
20655    typedef long ac__type_sizeof_;
20656 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20657 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20658 #include <stdio.h>
20659 #include <stdlib.h>
20660 int
20661 main ()
20662 {
20663
20664   FILE *f = fopen ("conftest.val", "w");
20665   if (! f)
20666     return 1;
20667   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20668     {
20669       long int i = longval ();
20670       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20671         return 1;
20672       fprintf (f, "%ld\n", i);
20673     }
20674   else
20675     {
20676       unsigned long int i = ulongval ();
20677       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20678         return 1;
20679       fprintf (f, "%lu\n", i);
20680     }
20681   return ferror (f) || fclose (f) != 0;
20682
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest$ac_exeext
20688 if { (ac_try="$ac_link"
20689 case "(($ac_try" in
20690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691   *) ac_try_echo=$ac_try;;
20692 esac
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694   (eval "$ac_link") 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20698   { (case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_try") 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; }; then
20707   ac_cv_sizeof_long=`cat conftest.val`
20708 else
20709   echo "$as_me: program exited with status $ac_status" >&5
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713 ( exit $ac_status )
20714 if test "$ac_cv_type_long" = yes; then
20715      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20716 See \`config.log' for more details." >&5
20717 echo "$as_me: error: cannot compute sizeof (long)
20718 See \`config.log' for more details." >&2;}
20719    { (exit 77); exit 77; }; }
20720    else
20721      ac_cv_sizeof_long=0
20722    fi
20723 fi
20724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20725 fi
20726 rm -f conftest.val
20727 fi
20728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20729 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20730
20731
20732
20733 cat >>confdefs.h <<_ACEOF
20734 #define SIZEOF_LONG $ac_cv_sizeof_long
20735 _ACEOF
20736
20737
20738 { echo "$as_me:$LINENO: checking for size_t" >&5
20739 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20740 if test "${ac_cv_type_size_t+set}" = set; then
20741   echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743   cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 $ac_includes_default
20750 typedef size_t ac__type_new_;
20751 int
20752 main ()
20753 {
20754 if ((ac__type_new_ *) 0)
20755   return 0;
20756 if (sizeof (ac__type_new_))
20757   return 0;
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext
20763 if { (ac_try="$ac_compile"
20764 case "(($ac_try" in
20765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766   *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769   (eval "$ac_compile") 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } && {
20776          test -z "$ac_c_werror_flag" ||
20777          test ! -s conftest.err
20778        } && test -s conftest.$ac_objext; then
20779   ac_cv_type_size_t=yes
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784         ac_cv_type_size_t=no
20785 fi
20786
20787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20788 fi
20789 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20790 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20791
20792 # The cast to long int works around a bug in the HP C Compiler
20793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20795 # This bug is HP SR number 8606223364.
20796 { echo "$as_me:$LINENO: checking size of size_t" >&5
20797 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20798 if test "${ac_cv_sizeof_size_t+set}" = set; then
20799   echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801   if test "$cross_compiling" = yes; then
20802   # Depending upon the size, compute the lo and hi bounds.
20803 cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h.  */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h.  */
20809 $ac_includes_default
20810    typedef size_t ac__type_sizeof_;
20811 int
20812 main ()
20813 {
20814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20815 test_array [0] = 0
20816
20817   ;
20818   return 0;
20819 }
20820 _ACEOF
20821 rm -f conftest.$ac_objext
20822 if { (ac_try="$ac_compile"
20823 case "(($ac_try" in
20824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825   *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828   (eval "$ac_compile") 2>conftest.er1
20829   ac_status=$?
20830   grep -v '^ *+' conftest.er1 >conftest.err
20831   rm -f conftest.er1
20832   cat conftest.err >&5
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); } && {
20835          test -z "$ac_c_werror_flag" ||
20836          test ! -s conftest.err
20837        } && test -s conftest.$ac_objext; then
20838   ac_lo=0 ac_mid=0
20839   while :; do
20840     cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h.  */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h.  */
20846 $ac_includes_default
20847    typedef size_t ac__type_sizeof_;
20848 int
20849 main ()
20850 {
20851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20852 test_array [0] = 0
20853
20854   ;
20855   return 0;
20856 }
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_compile") 2>conftest.er1
20866   ac_status=$?
20867   grep -v '^ *+' conftest.er1 >conftest.err
20868   rm -f conftest.er1
20869   cat conftest.err >&5
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); } && {
20872          test -z "$ac_c_werror_flag" ||
20873          test ! -s conftest.err
20874        } && test -s conftest.$ac_objext; then
20875   ac_hi=$ac_mid; break
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880         ac_lo=`expr $ac_mid + 1`
20881                         if test $ac_lo -le $ac_mid; then
20882                           ac_lo= ac_hi=
20883                           break
20884                         fi
20885                         ac_mid=`expr 2 '*' $ac_mid + 1`
20886 fi
20887
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889   done
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894         cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 $ac_includes_default
20901    typedef size_t ac__type_sizeof_;
20902 int
20903 main ()
20904 {
20905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20906 test_array [0] = 0
20907
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext
20913 if { (ac_try="$ac_compile"
20914 case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919   (eval "$ac_compile") 2>conftest.er1
20920   ac_status=$?
20921   grep -v '^ *+' conftest.er1 >conftest.err
20922   rm -f conftest.er1
20923   cat conftest.err >&5
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); } && {
20926          test -z "$ac_c_werror_flag" ||
20927          test ! -s conftest.err
20928        } && test -s conftest.$ac_objext; then
20929   ac_hi=-1 ac_mid=-1
20930   while :; do
20931     cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 $ac_includes_default
20938    typedef size_t ac__type_sizeof_;
20939 int
20940 main ()
20941 {
20942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20943 test_array [0] = 0
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   ac_lo=$ac_mid; break
20967 else
20968   echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         ac_hi=`expr '(' $ac_mid ')' - 1`
20972                         if test $ac_mid -le $ac_hi; then
20973                           ac_lo= ac_hi=
20974                           break
20975                         fi
20976                         ac_mid=`expr 2 '*' $ac_mid`
20977 fi
20978
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980   done
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985         ac_lo= ac_hi=
20986 fi
20987
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 fi
20990
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992 # Binary search between lo and hi bounds.
20993 while test "x$ac_lo" != "x$ac_hi"; do
20994   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20995   cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 $ac_includes_default
21002    typedef size_t ac__type_sizeof_;
21003 int
21004 main ()
21005 {
21006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21007 test_array [0] = 0
21008
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017   *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020   (eval "$ac_compile") 2>conftest.er1
21021   ac_status=$?
21022   grep -v '^ *+' conftest.er1 >conftest.err
21023   rm -f conftest.er1
21024   cat conftest.err >&5
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); } && {
21027          test -z "$ac_c_werror_flag" ||
21028          test ! -s conftest.err
21029        } && test -s conftest.$ac_objext; then
21030   ac_hi=$ac_mid
21031 else
21032   echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035         ac_lo=`expr '(' $ac_mid ')' + 1`
21036 fi
21037
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 done
21040 case $ac_lo in
21041 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21042 '') if test "$ac_cv_type_size_t" = yes; then
21043      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21044 See \`config.log' for more details." >&5
21045 echo "$as_me: error: cannot compute sizeof (size_t)
21046 See \`config.log' for more details." >&2;}
21047    { (exit 77); exit 77; }; }
21048    else
21049      ac_cv_sizeof_size_t=0
21050    fi ;;
21051 esac
21052 else
21053   cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 $ac_includes_default
21060    typedef size_t ac__type_sizeof_;
21061 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21062 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21063 #include <stdio.h>
21064 #include <stdlib.h>
21065 int
21066 main ()
21067 {
21068
21069   FILE *f = fopen ("conftest.val", "w");
21070   if (! f)
21071     return 1;
21072   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21073     {
21074       long int i = longval ();
21075       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21076         return 1;
21077       fprintf (f, "%ld\n", i);
21078     }
21079   else
21080     {
21081       unsigned long int i = ulongval ();
21082       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21083         return 1;
21084       fprintf (f, "%lu\n", i);
21085     }
21086   return ferror (f) || fclose (f) != 0;
21087
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest$ac_exeext
21093 if { (ac_try="$ac_link"
21094 case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_link") 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21103   { (case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_try") 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; }; then
21112   ac_cv_sizeof_size_t=`cat conftest.val`
21113 else
21114   echo "$as_me: program exited with status $ac_status" >&5
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ( exit $ac_status )
21119 if test "$ac_cv_type_size_t" = yes; then
21120      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21121 See \`config.log' for more details." >&5
21122 echo "$as_me: error: cannot compute sizeof (size_t)
21123 See \`config.log' for more details." >&2;}
21124    { (exit 77); exit 77; }; }
21125    else
21126      ac_cv_sizeof_size_t=0
21127    fi
21128 fi
21129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21130 fi
21131 rm -f conftest.val
21132 fi
21133 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21134 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21135
21136
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21140 _ACEOF
21141
21142
21143
21144 case "${host}" in
21145     arm-*-linux* )
21146         { echo "$as_me:$LINENO: checking for long long" >&5
21147 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21148 if test "${ac_cv_type_long_long+set}" = set; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157 $ac_includes_default
21158 typedef long long ac__type_new_;
21159 int
21160 main ()
21161 {
21162 if ((ac__type_new_ *) 0)
21163   return 0;
21164 if (sizeof (ac__type_new_))
21165   return 0;
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_compile") 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } && {
21184          test -z "$ac_c_werror_flag" ||
21185          test ! -s conftest.err
21186        } && test -s conftest.$ac_objext; then
21187   ac_cv_type_long_long=yes
21188 else
21189   echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192         ac_cv_type_long_long=no
21193 fi
21194
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 fi
21197 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21198 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21199
21200 # The cast to long int works around a bug in the HP C Compiler
21201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21203 # This bug is HP SR number 8606223364.
21204 { echo "$as_me:$LINENO: checking size of long long" >&5
21205 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21206 if test "${ac_cv_sizeof_long_long+set}" = set; then
21207   echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209   if test "$cross_compiling" = yes; then
21210   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
21218    typedef long long ac__type_sizeof_;
21219 int
21220 main ()
21221 {
21222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21223 test_array [0] = 0
21224
21225   ;
21226   return 0;
21227 }
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (ac_try="$ac_compile"
21231 case "(($ac_try" in
21232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233   *) ac_try_echo=$ac_try;;
21234 esac
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236   (eval "$ac_compile") 2>conftest.er1
21237   ac_status=$?
21238   grep -v '^ *+' conftest.er1 >conftest.err
21239   rm -f conftest.er1
21240   cat conftest.err >&5
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); } && {
21243          test -z "$ac_c_werror_flag" ||
21244          test ! -s conftest.err
21245        } && test -s conftest.$ac_objext; then
21246   ac_lo=0 ac_mid=0
21247   while :; do
21248     cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254 $ac_includes_default
21255    typedef long long ac__type_sizeof_;
21256 int
21257 main ()
21258 {
21259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21260 test_array [0] = 0
21261
21262   ;
21263   return 0;
21264 }
21265 _ACEOF
21266 rm -f conftest.$ac_objext
21267 if { (ac_try="$ac_compile"
21268 case "(($ac_try" in
21269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270   *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273   (eval "$ac_compile") 2>conftest.er1
21274   ac_status=$?
21275   grep -v '^ *+' conftest.er1 >conftest.err
21276   rm -f conftest.er1
21277   cat conftest.err >&5
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } && {
21280          test -z "$ac_c_werror_flag" ||
21281          test ! -s conftest.err
21282        } && test -s conftest.$ac_objext; then
21283   ac_hi=$ac_mid; break
21284 else
21285   echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21287
21288         ac_lo=`expr $ac_mid + 1`
21289                         if test $ac_lo -le $ac_mid; then
21290                           ac_lo= ac_hi=
21291                           break
21292                         fi
21293                         ac_mid=`expr 2 '*' $ac_mid + 1`
21294 fi
21295
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297   done
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302         cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h.  */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h.  */
21308 $ac_includes_default
21309    typedef long long ac__type_sizeof_;
21310 int
21311 main ()
21312 {
21313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21314 test_array [0] = 0
21315
21316   ;
21317   return 0;
21318 }
21319 _ACEOF
21320 rm -f conftest.$ac_objext
21321 if { (ac_try="$ac_compile"
21322 case "(($ac_try" in
21323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324   *) ac_try_echo=$ac_try;;
21325 esac
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327   (eval "$ac_compile") 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } && {
21334          test -z "$ac_c_werror_flag" ||
21335          test ! -s conftest.err
21336        } && test -s conftest.$ac_objext; then
21337   ac_hi=-1 ac_mid=-1
21338   while :; do
21339     cat >conftest.$ac_ext <<_ACEOF
21340 /* confdefs.h.  */
21341 _ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h.  */
21345 $ac_includes_default
21346    typedef long long ac__type_sizeof_;
21347 int
21348 main ()
21349 {
21350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21351 test_array [0] = 0
21352
21353   ;
21354   return 0;
21355 }
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (ac_try="$ac_compile"
21359 case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_compile") 2>conftest.er1
21365   ac_status=$?
21366   grep -v '^ *+' conftest.er1 >conftest.err
21367   rm -f conftest.er1
21368   cat conftest.err >&5
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); } && {
21371          test -z "$ac_c_werror_flag" ||
21372          test ! -s conftest.err
21373        } && test -s conftest.$ac_objext; then
21374   ac_lo=$ac_mid; break
21375 else
21376   echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21378
21379         ac_hi=`expr '(' $ac_mid ')' - 1`
21380                         if test $ac_mid -le $ac_hi; then
21381                           ac_lo= ac_hi=
21382                           break
21383                         fi
21384                         ac_mid=`expr 2 '*' $ac_mid`
21385 fi
21386
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388   done
21389 else
21390   echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393         ac_lo= ac_hi=
21394 fi
21395
21396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 # Binary search between lo and hi bounds.
21401 while test "x$ac_lo" != "x$ac_hi"; do
21402   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21403   cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 $ac_includes_default
21410    typedef long long ac__type_sizeof_;
21411 int
21412 main ()
21413 {
21414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21415 test_array [0] = 0
21416
21417   ;
21418   return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425   *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428   (eval "$ac_compile") 2>conftest.er1
21429   ac_status=$?
21430   grep -v '^ *+' conftest.er1 >conftest.err
21431   rm -f conftest.er1
21432   cat conftest.err >&5
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } && {
21435          test -z "$ac_c_werror_flag" ||
21436          test ! -s conftest.err
21437        } && test -s conftest.$ac_objext; then
21438   ac_hi=$ac_mid
21439 else
21440   echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443         ac_lo=`expr '(' $ac_mid ')' + 1`
21444 fi
21445
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447 done
21448 case $ac_lo in
21449 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21450 '') if test "$ac_cv_type_long_long" = yes; then
21451      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21452 See \`config.log' for more details." >&5
21453 echo "$as_me: error: cannot compute sizeof (long long)
21454 See \`config.log' for more details." >&2;}
21455    { (exit 77); exit 77; }; }
21456    else
21457      ac_cv_sizeof_long_long=0
21458    fi ;;
21459 esac
21460 else
21461   cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h.  */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h.  */
21467 $ac_includes_default
21468    typedef long long ac__type_sizeof_;
21469 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21470 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21471 #include <stdio.h>
21472 #include <stdlib.h>
21473 int
21474 main ()
21475 {
21476
21477   FILE *f = fopen ("conftest.val", "w");
21478   if (! f)
21479     return 1;
21480   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21481     {
21482       long int i = longval ();
21483       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21484         return 1;
21485       fprintf (f, "%ld\n", i);
21486     }
21487   else
21488     {
21489       unsigned long int i = ulongval ();
21490       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21491         return 1;
21492       fprintf (f, "%lu\n", i);
21493     }
21494   return ferror (f) || fclose (f) != 0;
21495
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest$ac_exeext
21501 if { (ac_try="$ac_link"
21502 case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_link") 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21511   { (case "(($ac_try" in
21512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513   *) ac_try_echo=$ac_try;;
21514 esac
21515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21516   (eval "$ac_try") 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); }; }; then
21520   ac_cv_sizeof_long_long=`cat conftest.val`
21521 else
21522   echo "$as_me: program exited with status $ac_status" >&5
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ( exit $ac_status )
21527 if test "$ac_cv_type_long_long" = yes; then
21528      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21529 See \`config.log' for more details." >&5
21530 echo "$as_me: error: cannot compute sizeof (long long)
21531 See \`config.log' for more details." >&2;}
21532    { (exit 77); exit 77; }; }
21533    else
21534      ac_cv_sizeof_long_long=0
21535    fi
21536 fi
21537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21538 fi
21539 rm -f conftest.val
21540 fi
21541 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21542 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21543
21544
21545
21546 cat >>confdefs.h <<_ACEOF
21547 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21548 _ACEOF
21549
21550
21551     ;;
21552     *-hp-hpux* )
21553         { echo "$as_me:$LINENO: checking for long long" >&5
21554 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21555 if test "${ac_cv_type_long_long+set}" = set; then
21556   echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558   cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564 $ac_includes_default
21565 typedef long long ac__type_new_;
21566 int
21567 main ()
21568 {
21569 if ((ac__type_new_ *) 0)
21570   return 0;
21571 if (sizeof (ac__type_new_))
21572   return 0;
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 rm -f conftest.$ac_objext
21578 if { (ac_try="$ac_compile"
21579 case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_compile") 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } && {
21591          test -z "$ac_c_werror_flag" ||
21592          test ! -s conftest.err
21593        } && test -s conftest.$ac_objext; then
21594   ac_cv_type_long_long=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599         ac_cv_type_long_long=no
21600 fi
21601
21602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21603 fi
21604 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21605 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21606
21607 # The cast to long int works around a bug in the HP C Compiler
21608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21610 # This bug is HP SR number 8606223364.
21611 { echo "$as_me:$LINENO: checking size of long long" >&5
21612 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21613 if test "${ac_cv_sizeof_long_long+set}" = set; then
21614   echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616   if test "$cross_compiling" = yes; then
21617   # Depending upon the size, compute the lo and hi bounds.
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 $ac_includes_default
21625    typedef long long ac__type_sizeof_;
21626 int
21627 main ()
21628 {
21629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21630 test_array [0] = 0
21631
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (ac_try="$ac_compile"
21638 case "(($ac_try" in
21639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640   *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643   (eval "$ac_compile") 2>conftest.er1
21644   ac_status=$?
21645   grep -v '^ *+' conftest.er1 >conftest.err
21646   rm -f conftest.er1
21647   cat conftest.err >&5
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); } && {
21650          test -z "$ac_c_werror_flag" ||
21651          test ! -s conftest.err
21652        } && test -s conftest.$ac_objext; then
21653   ac_lo=0 ac_mid=0
21654   while :; do
21655     cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661 $ac_includes_default
21662    typedef long long ac__type_sizeof_;
21663 int
21664 main ()
21665 {
21666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21667 test_array [0] = 0
21668
21669   ;
21670   return 0;
21671 }
21672 _ACEOF
21673 rm -f conftest.$ac_objext
21674 if { (ac_try="$ac_compile"
21675 case "(($ac_try" in
21676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677   *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680   (eval "$ac_compile") 2>conftest.er1
21681   ac_status=$?
21682   grep -v '^ *+' conftest.er1 >conftest.err
21683   rm -f conftest.er1
21684   cat conftest.err >&5
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); } && {
21687          test -z "$ac_c_werror_flag" ||
21688          test ! -s conftest.err
21689        } && test -s conftest.$ac_objext; then
21690   ac_hi=$ac_mid; break
21691 else
21692   echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695         ac_lo=`expr $ac_mid + 1`
21696                         if test $ac_lo -le $ac_mid; then
21697                           ac_lo= ac_hi=
21698                           break
21699                         fi
21700                         ac_mid=`expr 2 '*' $ac_mid + 1`
21701 fi
21702
21703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704   done
21705 else
21706   echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709         cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h.  */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h.  */
21715 $ac_includes_default
21716    typedef long long ac__type_sizeof_;
21717 int
21718 main ()
21719 {
21720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21721 test_array [0] = 0
21722
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext
21728 if { (ac_try="$ac_compile"
21729 case "(($ac_try" in
21730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731   *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734   (eval "$ac_compile") 2>conftest.er1
21735   ac_status=$?
21736   grep -v '^ *+' conftest.er1 >conftest.err
21737   rm -f conftest.er1
21738   cat conftest.err >&5
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } && {
21741          test -z "$ac_c_werror_flag" ||
21742          test ! -s conftest.err
21743        } && test -s conftest.$ac_objext; then
21744   ac_hi=-1 ac_mid=-1
21745   while :; do
21746     cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h.  */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h.  */
21752 $ac_includes_default
21753    typedef long long ac__type_sizeof_;
21754 int
21755 main ()
21756 {
21757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21758 test_array [0] = 0
21759
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && {
21778          test -z "$ac_c_werror_flag" ||
21779          test ! -s conftest.err
21780        } && test -s conftest.$ac_objext; then
21781   ac_lo=$ac_mid; break
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_hi=`expr '(' $ac_mid ')' - 1`
21787                         if test $ac_mid -le $ac_hi; then
21788                           ac_lo= ac_hi=
21789                           break
21790                         fi
21791                         ac_mid=`expr 2 '*' $ac_mid`
21792 fi
21793
21794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21795   done
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         ac_lo= ac_hi=
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 fi
21805
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 # Binary search between lo and hi bounds.
21808 while test "x$ac_lo" != "x$ac_hi"; do
21809   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21810   cat >conftest.$ac_ext <<_ACEOF
21811 /* confdefs.h.  */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h.  */
21816 $ac_includes_default
21817    typedef long long ac__type_sizeof_;
21818 int
21819 main ()
21820 {
21821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21822 test_array [0] = 0
21823
21824   ;
21825   return 0;
21826 }
21827 _ACEOF
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832   *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835   (eval "$ac_compile") 2>conftest.er1
21836   ac_status=$?
21837   grep -v '^ *+' conftest.er1 >conftest.err
21838   rm -f conftest.er1
21839   cat conftest.err >&5
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } && {
21842          test -z "$ac_c_werror_flag" ||
21843          test ! -s conftest.err
21844        } && test -s conftest.$ac_objext; then
21845   ac_hi=$ac_mid
21846 else
21847   echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850         ac_lo=`expr '(' $ac_mid ')' + 1`
21851 fi
21852
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 done
21855 case $ac_lo in
21856 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21857 '') if test "$ac_cv_type_long_long" = yes; then
21858      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21859 See \`config.log' for more details." >&5
21860 echo "$as_me: error: cannot compute sizeof (long long)
21861 See \`config.log' for more details." >&2;}
21862    { (exit 77); exit 77; }; }
21863    else
21864      ac_cv_sizeof_long_long=0
21865    fi ;;
21866 esac
21867 else
21868   cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h.  */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h.  */
21874 $ac_includes_default
21875    typedef long long ac__type_sizeof_;
21876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21878 #include <stdio.h>
21879 #include <stdlib.h>
21880 int
21881 main ()
21882 {
21883
21884   FILE *f = fopen ("conftest.val", "w");
21885   if (! f)
21886     return 1;
21887   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21888     {
21889       long int i = longval ();
21890       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21891         return 1;
21892       fprintf (f, "%ld\n", i);
21893     }
21894   else
21895     {
21896       unsigned long int i = ulongval ();
21897       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21898         return 1;
21899       fprintf (f, "%lu\n", i);
21900     }
21901   return ferror (f) || fclose (f) != 0;
21902
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_link") 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21918   { (case "(($ac_try" in
21919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920   *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923   (eval "$ac_try") 2>&5
21924   ac_status=$?
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); }; }; then
21927   ac_cv_sizeof_long_long=`cat conftest.val`
21928 else
21929   echo "$as_me: program exited with status $ac_status" >&5
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 ( exit $ac_status )
21934 if test "$ac_cv_type_long_long" = yes; then
21935      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21936 See \`config.log' for more details." >&5
21937 echo "$as_me: error: cannot compute sizeof (long long)
21938 See \`config.log' for more details." >&2;}
21939    { (exit 77); exit 77; }; }
21940    else
21941      ac_cv_sizeof_long_long=0
21942    fi
21943 fi
21944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21945 fi
21946 rm -f conftest.val
21947 fi
21948 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21949 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21950
21951
21952
21953 cat >>confdefs.h <<_ACEOF
21954 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21955 _ACEOF
21956
21957
21958         if test "$ac_cv_sizeof_long_long" != 0; then
21959                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21960         fi
21961     ;;
21962     * )
21963         { echo "$as_me:$LINENO: checking for long long" >&5
21964 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21965 if test "${ac_cv_type_long_long+set}" = set; then
21966   echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968   cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h.  */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h.  */
21974 $ac_includes_default
21975 typedef long long ac__type_new_;
21976 int
21977 main ()
21978 {
21979 if ((ac__type_new_ *) 0)
21980   return 0;
21981 if (sizeof (ac__type_new_))
21982   return 0;
21983   ;
21984   return 0;
21985 }
21986 _ACEOF
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991   *) ac_try_echo=$ac_try;;
21992 esac
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994   (eval "$ac_compile") 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } && {
22001          test -z "$ac_c_werror_flag" ||
22002          test ! -s conftest.err
22003        } && test -s conftest.$ac_objext; then
22004   ac_cv_type_long_long=yes
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009         ac_cv_type_long_long=no
22010 fi
22011
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 fi
22014 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22015 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22016
22017 # The cast to long int works around a bug in the HP C Compiler
22018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22020 # This bug is HP SR number 8606223364.
22021 { echo "$as_me:$LINENO: checking size of long long" >&5
22022 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22023 if test "${ac_cv_sizeof_long_long+set}" = set; then
22024   echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026   if test "$cross_compiling" = yes; then
22027   # Depending upon the size, compute the lo and hi bounds.
22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h.  */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h.  */
22034 $ac_includes_default
22035    typedef long long ac__type_sizeof_;
22036 int
22037 main ()
22038 {
22039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22040 test_array [0] = 0
22041
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (ac_try="$ac_compile"
22048 case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_compile") 2>conftest.er1
22054   ac_status=$?
22055   grep -v '^ *+' conftest.er1 >conftest.err
22056   rm -f conftest.er1
22057   cat conftest.err >&5
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); } && {
22060          test -z "$ac_c_werror_flag" ||
22061          test ! -s conftest.err
22062        } && test -s conftest.$ac_objext; then
22063   ac_lo=0 ac_mid=0
22064   while :; do
22065     cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071 $ac_includes_default
22072    typedef long long ac__type_sizeof_;
22073 int
22074 main ()
22075 {
22076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22077 test_array [0] = 0
22078
22079   ;
22080   return 0;
22081 }
22082 _ACEOF
22083 rm -f conftest.$ac_objext
22084 if { (ac_try="$ac_compile"
22085 case "(($ac_try" in
22086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087   *) ac_try_echo=$ac_try;;
22088 esac
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090   (eval "$ac_compile") 2>conftest.er1
22091   ac_status=$?
22092   grep -v '^ *+' conftest.er1 >conftest.err
22093   rm -f conftest.er1
22094   cat conftest.err >&5
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); } && {
22097          test -z "$ac_c_werror_flag" ||
22098          test ! -s conftest.err
22099        } && test -s conftest.$ac_objext; then
22100   ac_hi=$ac_mid; break
22101 else
22102   echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105         ac_lo=`expr $ac_mid + 1`
22106                         if test $ac_lo -le $ac_mid; then
22107                           ac_lo= ac_hi=
22108                           break
22109                         fi
22110                         ac_mid=`expr 2 '*' $ac_mid + 1`
22111 fi
22112
22113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22114   done
22115 else
22116   echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119         cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h.  */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h.  */
22125 $ac_includes_default
22126    typedef long long ac__type_sizeof_;
22127 int
22128 main ()
22129 {
22130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22131 test_array [0] = 0
22132
22133   ;
22134   return 0;
22135 }
22136 _ACEOF
22137 rm -f conftest.$ac_objext
22138 if { (ac_try="$ac_compile"
22139 case "(($ac_try" in
22140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141   *) ac_try_echo=$ac_try;;
22142 esac
22143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144   (eval "$ac_compile") 2>conftest.er1
22145   ac_status=$?
22146   grep -v '^ *+' conftest.er1 >conftest.err
22147   rm -f conftest.er1
22148   cat conftest.err >&5
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); } && {
22151          test -z "$ac_c_werror_flag" ||
22152          test ! -s conftest.err
22153        } && test -s conftest.$ac_objext; then
22154   ac_hi=-1 ac_mid=-1
22155   while :; do
22156     cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h.  */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h.  */
22162 $ac_includes_default
22163    typedef long long ac__type_sizeof_;
22164 int
22165 main ()
22166 {
22167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22168 test_array [0] = 0
22169
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 rm -f conftest.$ac_objext
22175 if { (ac_try="$ac_compile"
22176 case "(($ac_try" in
22177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178   *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181   (eval "$ac_compile") 2>conftest.er1
22182   ac_status=$?
22183   grep -v '^ *+' conftest.er1 >conftest.err
22184   rm -f conftest.er1
22185   cat conftest.err >&5
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } && {
22188          test -z "$ac_c_werror_flag" ||
22189          test ! -s conftest.err
22190        } && test -s conftest.$ac_objext; then
22191   ac_lo=$ac_mid; break
22192 else
22193   echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196         ac_hi=`expr '(' $ac_mid ')' - 1`
22197                         if test $ac_mid -le $ac_hi; then
22198                           ac_lo= ac_hi=
22199                           break
22200                         fi
22201                         ac_mid=`expr 2 '*' $ac_mid`
22202 fi
22203
22204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205   done
22206 else
22207   echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22209
22210         ac_lo= ac_hi=
22211 fi
22212
22213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 fi
22215
22216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217 # Binary search between lo and hi bounds.
22218 while test "x$ac_lo" != "x$ac_hi"; do
22219   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22220   cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226 $ac_includes_default
22227    typedef long long ac__type_sizeof_;
22228 int
22229 main ()
22230 {
22231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22232 test_array [0] = 0
22233
22234   ;
22235   return 0;
22236 }
22237 _ACEOF
22238 rm -f conftest.$ac_objext
22239 if { (ac_try="$ac_compile"
22240 case "(($ac_try" in
22241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242   *) ac_try_echo=$ac_try;;
22243 esac
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245   (eval "$ac_compile") 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } && {
22252          test -z "$ac_c_werror_flag" ||
22253          test ! -s conftest.err
22254        } && test -s conftest.$ac_objext; then
22255   ac_hi=$ac_mid
22256 else
22257   echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260         ac_lo=`expr '(' $ac_mid ')' + 1`
22261 fi
22262
22263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 done
22265 case $ac_lo in
22266 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22267 '') if test "$ac_cv_type_long_long" = yes; then
22268      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22269 See \`config.log' for more details." >&5
22270 echo "$as_me: error: cannot compute sizeof (long long)
22271 See \`config.log' for more details." >&2;}
22272    { (exit 77); exit 77; }; }
22273    else
22274      ac_cv_sizeof_long_long=0
22275    fi ;;
22276 esac
22277 else
22278   cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22284 $ac_includes_default
22285    typedef long long ac__type_sizeof_;
22286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22288 #include <stdio.h>
22289 #include <stdlib.h>
22290 int
22291 main ()
22292 {
22293
22294   FILE *f = fopen ("conftest.val", "w");
22295   if (! f)
22296     return 1;
22297   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22298     {
22299       long int i = longval ();
22300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22301         return 1;
22302       fprintf (f, "%ld\n", i);
22303     }
22304   else
22305     {
22306       unsigned long int i = ulongval ();
22307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22308         return 1;
22309       fprintf (f, "%lu\n", i);
22310     }
22311   return ferror (f) || fclose (f) != 0;
22312
22313   ;
22314   return 0;
22315 }
22316 _ACEOF
22317 rm -f conftest$ac_exeext
22318 if { (ac_try="$ac_link"
22319 case "(($ac_try" in
22320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321   *) ac_try_echo=$ac_try;;
22322 esac
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324   (eval "$ac_link") 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22328   { (case "(($ac_try" in
22329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330   *) ac_try_echo=$ac_try;;
22331 esac
22332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22333   (eval "$ac_try") 2>&5
22334   ac_status=$?
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); }; }; then
22337   ac_cv_sizeof_long_long=`cat conftest.val`
22338 else
22339   echo "$as_me: program exited with status $ac_status" >&5
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343 ( exit $ac_status )
22344 if test "$ac_cv_type_long_long" = yes; then
22345      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22346 See \`config.log' for more details." >&5
22347 echo "$as_me: error: cannot compute sizeof (long long)
22348 See \`config.log' for more details." >&2;}
22349    { (exit 77); exit 77; }; }
22350    else
22351      ac_cv_sizeof_long_long=0
22352    fi
22353 fi
22354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22355 fi
22356 rm -f conftest.val
22357 fi
22358 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22359 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22360
22361
22362
22363 cat >>confdefs.h <<_ACEOF
22364 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22365 _ACEOF
22366
22367
22368 esac
22369
22370 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22371 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22372 if test "${ac_cv_type_wchar_t+set}" = set; then
22373   echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375   cat >conftest.$ac_ext <<_ACEOF
22376 /* confdefs.h.  */
22377 _ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h.  */
22381
22382         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22383         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22384         #  error "fake wchar_t"
22385         #endif
22386         #ifdef HAVE_WCHAR_H
22387         #  ifdef __CYGWIN__
22388         #    include <stddef.h>
22389         #  endif
22390         #  include <wchar.h>
22391         #endif
22392         #ifdef HAVE_STDLIB_H
22393         #  include <stdlib.h>
22394         #endif
22395         #include <stdio.h>
22396
22397
22398
22399 typedef wchar_t ac__type_new_;
22400 int
22401 main ()
22402 {
22403 if ((ac__type_new_ *) 0)
22404   return 0;
22405 if (sizeof (ac__type_new_))
22406   return 0;
22407   ;
22408   return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415   *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418   (eval "$ac_compile") 2>conftest.er1
22419   ac_status=$?
22420   grep -v '^ *+' conftest.er1 >conftest.err
22421   rm -f conftest.er1
22422   cat conftest.err >&5
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } && {
22425          test -z "$ac_c_werror_flag" ||
22426          test ! -s conftest.err
22427        } && test -s conftest.$ac_objext; then
22428   ac_cv_type_wchar_t=yes
22429 else
22430   echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22432
22433         ac_cv_type_wchar_t=no
22434 fi
22435
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 fi
22438 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22439 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22440
22441 # The cast to long int works around a bug in the HP C Compiler
22442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22444 # This bug is HP SR number 8606223364.
22445 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22446 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22447 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22448   echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450   if test "$cross_compiling" = yes; then
22451   # Depending upon the size, compute the lo and hi bounds.
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h.  */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h.  */
22458
22459         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22460         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22461         #  error "fake wchar_t"
22462         #endif
22463         #ifdef HAVE_WCHAR_H
22464         #  ifdef __CYGWIN__
22465         #    include <stddef.h>
22466         #  endif
22467         #  include <wchar.h>
22468         #endif
22469         #ifdef HAVE_STDLIB_H
22470         #  include <stdlib.h>
22471         #endif
22472         #include <stdio.h>
22473
22474
22475
22476    typedef wchar_t ac__type_sizeof_;
22477 int
22478 main ()
22479 {
22480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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_lo=0 ac_mid=0
22505   while :; do
22506     cat >conftest.$ac_ext <<_ACEOF
22507 /* confdefs.h.  */
22508 _ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h.  */
22512
22513         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22514         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22515         #  error "fake wchar_t"
22516         #endif
22517         #ifdef HAVE_WCHAR_H
22518         #  ifdef __CYGWIN__
22519         #    include <stddef.h>
22520         #  endif
22521         #  include <wchar.h>
22522         #endif
22523         #ifdef HAVE_STDLIB_H
22524         #  include <stdlib.h>
22525         #endif
22526         #include <stdio.h>
22527
22528
22529
22530    typedef wchar_t ac__type_sizeof_;
22531 int
22532 main ()
22533 {
22534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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=$ac_mid; break
22559 else
22560   echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22562
22563         ac_lo=`expr $ac_mid + 1`
22564                         if test $ac_lo -le $ac_mid; then
22565                           ac_lo= ac_hi=
22566                           break
22567                         fi
22568                         ac_mid=`expr 2 '*' $ac_mid + 1`
22569 fi
22570
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572   done
22573 else
22574   echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22576
22577         cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h.  */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h.  */
22583
22584         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22585         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22586         #  error "fake wchar_t"
22587         #endif
22588         #ifdef HAVE_WCHAR_H
22589         #  ifdef __CYGWIN__
22590         #    include <stddef.h>
22591         #  endif
22592         #  include <wchar.h>
22593         #endif
22594         #ifdef HAVE_STDLIB_H
22595         #  include <stdlib.h>
22596         #endif
22597         #include <stdio.h>
22598
22599
22600
22601    typedef wchar_t ac__type_sizeof_;
22602 int
22603 main ()
22604 {
22605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22606 test_array [0] = 0
22607
22608   ;
22609   return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616   *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619   (eval "$ac_compile") 2>conftest.er1
22620   ac_status=$?
22621   grep -v '^ *+' conftest.er1 >conftest.err
22622   rm -f conftest.er1
22623   cat conftest.err >&5
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } && {
22626          test -z "$ac_c_werror_flag" ||
22627          test ! -s conftest.err
22628        } && test -s conftest.$ac_objext; then
22629   ac_hi=-1 ac_mid=-1
22630   while :; do
22631     cat >conftest.$ac_ext <<_ACEOF
22632 /* confdefs.h.  */
22633 _ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h.  */
22637
22638         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22639         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22640         #  error "fake wchar_t"
22641         #endif
22642         #ifdef HAVE_WCHAR_H
22643         #  ifdef __CYGWIN__
22644         #    include <stddef.h>
22645         #  endif
22646         #  include <wchar.h>
22647         #endif
22648         #ifdef HAVE_STDLIB_H
22649         #  include <stdlib.h>
22650         #endif
22651         #include <stdio.h>
22652
22653
22654
22655    typedef wchar_t ac__type_sizeof_;
22656 int
22657 main ()
22658 {
22659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22660 test_array [0] = 0
22661
22662   ;
22663   return 0;
22664 }
22665 _ACEOF
22666 rm -f conftest.$ac_objext
22667 if { (ac_try="$ac_compile"
22668 case "(($ac_try" in
22669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670   *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673   (eval "$ac_compile") 2>conftest.er1
22674   ac_status=$?
22675   grep -v '^ *+' conftest.er1 >conftest.err
22676   rm -f conftest.er1
22677   cat conftest.err >&5
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); } && {
22680          test -z "$ac_c_werror_flag" ||
22681          test ! -s conftest.err
22682        } && test -s conftest.$ac_objext; then
22683   ac_lo=$ac_mid; break
22684 else
22685   echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688         ac_hi=`expr '(' $ac_mid ')' - 1`
22689                         if test $ac_mid -le $ac_hi; then
22690                           ac_lo= ac_hi=
22691                           break
22692                         fi
22693                         ac_mid=`expr 2 '*' $ac_mid`
22694 fi
22695
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697   done
22698 else
22699   echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22701
22702         ac_lo= ac_hi=
22703 fi
22704
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 fi
22707
22708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709 # Binary search between lo and hi bounds.
22710 while test "x$ac_lo" != "x$ac_hi"; do
22711   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22712   cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h.  */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h.  */
22718
22719         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22720         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22721         #  error "fake wchar_t"
22722         #endif
22723         #ifdef HAVE_WCHAR_H
22724         #  ifdef __CYGWIN__
22725         #    include <stddef.h>
22726         #  endif
22727         #  include <wchar.h>
22728         #endif
22729         #ifdef HAVE_STDLIB_H
22730         #  include <stdlib.h>
22731         #endif
22732         #include <stdio.h>
22733
22734
22735
22736    typedef wchar_t ac__type_sizeof_;
22737 int
22738 main ()
22739 {
22740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22741 test_array [0] = 0
22742
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 rm -f conftest.$ac_objext
22748 if { (ac_try="$ac_compile"
22749 case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_compile") 2>conftest.er1
22755   ac_status=$?
22756   grep -v '^ *+' conftest.er1 >conftest.err
22757   rm -f conftest.er1
22758   cat conftest.err >&5
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } && {
22761          test -z "$ac_c_werror_flag" ||
22762          test ! -s conftest.err
22763        } && test -s conftest.$ac_objext; then
22764   ac_hi=$ac_mid
22765 else
22766   echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22768
22769         ac_lo=`expr '(' $ac_mid ')' + 1`
22770 fi
22771
22772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773 done
22774 case $ac_lo in
22775 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22776 '') if test "$ac_cv_type_wchar_t" = yes; then
22777      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22778 See \`config.log' for more details." >&5
22779 echo "$as_me: error: cannot compute sizeof (wchar_t)
22780 See \`config.log' for more details." >&2;}
22781    { (exit 77); exit 77; }; }
22782    else
22783      ac_cv_sizeof_wchar_t=0
22784    fi ;;
22785 esac
22786 else
22787   cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h.  */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h.  */
22793
22794         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22795         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22796         #  error "fake wchar_t"
22797         #endif
22798         #ifdef HAVE_WCHAR_H
22799         #  ifdef __CYGWIN__
22800         #    include <stddef.h>
22801         #  endif
22802         #  include <wchar.h>
22803         #endif
22804         #ifdef HAVE_STDLIB_H
22805         #  include <stdlib.h>
22806         #endif
22807         #include <stdio.h>
22808
22809
22810
22811    typedef wchar_t ac__type_sizeof_;
22812 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22813 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22814 #include <stdio.h>
22815 #include <stdlib.h>
22816 int
22817 main ()
22818 {
22819
22820   FILE *f = fopen ("conftest.val", "w");
22821   if (! f)
22822     return 1;
22823   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22824     {
22825       long int i = longval ();
22826       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22827         return 1;
22828       fprintf (f, "%ld\n", i);
22829     }
22830   else
22831     {
22832       unsigned long int i = ulongval ();
22833       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22834         return 1;
22835       fprintf (f, "%lu\n", i);
22836     }
22837   return ferror (f) || fclose (f) != 0;
22838
22839   ;
22840   return 0;
22841 }
22842 _ACEOF
22843 rm -f conftest$ac_exeext
22844 if { (ac_try="$ac_link"
22845 case "(($ac_try" in
22846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847   *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850   (eval "$ac_link") 2>&5
22851   ac_status=$?
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22854   { (case "(($ac_try" in
22855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856   *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859   (eval "$ac_try") 2>&5
22860   ac_status=$?
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); }; }; then
22863   ac_cv_sizeof_wchar_t=`cat conftest.val`
22864 else
22865   echo "$as_me: program exited with status $ac_status" >&5
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869 ( exit $ac_status )
22870 if test "$ac_cv_type_wchar_t" = yes; then
22871      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22872 See \`config.log' for more details." >&5
22873 echo "$as_me: error: cannot compute sizeof (wchar_t)
22874 See \`config.log' for more details." >&2;}
22875    { (exit 77); exit 77; }; }
22876    else
22877      ac_cv_sizeof_wchar_t=0
22878    fi
22879 fi
22880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22881 fi
22882 rm -f conftest.val
22883 fi
22884 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22885 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22886
22887
22888
22889 cat >>confdefs.h <<_ACEOF
22890 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22891 _ACEOF
22892
22893
22894 if test "$ac_cv_sizeof_wchar_t" != 0; then
22895     wxUSE_WCHAR_T=yes
22896 else
22897     wxUSE_WCHAR_T=no
22898 fi
22899
22900 { echo "$as_me:$LINENO: checking for va_copy" >&5
22901 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
22902 if test "${wx_cv_func_va_copy+set}" = set; then
22903   echo $ECHO_N "(cached) $ECHO_C" >&6
22904 else
22905
22906         ac_ext=cpp
22907 ac_cpp='$CXXCPP $CPPFLAGS'
22908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22911
22912         cat >conftest.$ac_ext <<_ACEOF
22913
22914             #include <stdarg.h>
22915             void foo(char *f, ...)
22916             {
22917                 va_list ap1, ap2;
22918                 va_start(ap1, f);
22919                 va_copy(ap2, ap1);
22920                 va_end(ap2);
22921                 va_end(ap1);
22922             }
22923             int main()
22924             {
22925                 foo("hi", 17);
22926                 return 0;
22927             }
22928 _ACEOF
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (ac_try="$ac_link"
22931 case "(($ac_try" in
22932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933   *) ac_try_echo=$ac_try;;
22934 esac
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936   (eval "$ac_link") 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } && {
22943          test -z "$ac_cxx_werror_flag" ||
22944          test ! -s conftest.err
22945        } && test -s conftest$ac_exeext &&
22946        $as_test_x conftest$ac_exeext; then
22947   wx_cv_func_va_copy=yes
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952         wx_cv_func_va_copy=no
22953
22954 fi
22955
22956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22957       conftest$ac_exeext conftest.$ac_ext
22958         ac_ext=c
22959 ac_cpp='$CPP $CPPFLAGS'
22960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22963
22964
22965
22966 fi
22967 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22968 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
22969
22970 if test $wx_cv_func_va_copy = "yes"; then
22971     cat >>confdefs.h <<\_ACEOF
22972 #define HAVE_VA_COPY 1
22973 _ACEOF
22974
22975 else
22976         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22977 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
22978 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22979   echo $ECHO_N "(cached) $ECHO_C" >&6
22980 else
22981
22982             if test "$cross_compiling" = yes; then
22983                   wx_cv_type_va_list_lvalue=yes
22984
22985 else
22986   cat >conftest.$ac_ext <<_ACEOF
22987
22988                 #include <stdarg.h>
22989                 int foo(char *f, ...)
22990                 {
22991                     va_list ap1, ap2;
22992                     va_start(ap1, f);
22993                     ap2 = ap1;
22994                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22995                         return 1;
22996                     va_end(ap2);
22997                     va_end(ap1);
22998                     return 0;
22999                 }
23000                 int main()
23001                 {
23002                     return foo("hi", 17);
23003                 }
23004 _ACEOF
23005 rm -f conftest$ac_exeext
23006 if { (ac_try="$ac_link"
23007 case "(($ac_try" in
23008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009   *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012   (eval "$ac_link") 2>&5
23013   ac_status=$?
23014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23016   { (case "(($ac_try" in
23017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018   *) ac_try_echo=$ac_try;;
23019 esac
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021   (eval "$ac_try") 2>&5
23022   ac_status=$?
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); }; }; then
23025   wx_cv_type_va_list_lvalue=yes
23026 else
23027   echo "$as_me: program exited with status $ac_status" >&5
23028 echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23030
23031 ( exit $ac_status )
23032 wx_cv_type_va_list_lvalue=no
23033 fi
23034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23035 fi
23036
23037
23038
23039
23040 fi
23041 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23042 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23043
23044     if test $wx_cv_type_va_list_lvalue != "yes"; then
23045                         cat >>confdefs.h <<\_ACEOF
23046 #define VA_LIST_IS_ARRAY 1
23047 _ACEOF
23048
23049     fi
23050 fi
23051
23052 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23053
23054 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23055 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23056 if test "${wx_cv_have_variadic_macros+set}" = set; then
23057   echo $ECHO_N "(cached) $ECHO_C" >&6
23058 else
23059
23060                         ac_ext=cpp
23061 ac_cpp='$CXXCPP $CPPFLAGS'
23062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23065
23066         cat >conftest.$ac_ext <<_ACEOF
23067 /* confdefs.h.  */
23068 _ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h.  */
23072
23073                     #include <stdio.h>
23074                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23075
23076 int
23077 main ()
23078 {
23079
23080                     test("%s %d %p", "test", 1, 0);
23081
23082
23083   ;
23084   return 0;
23085 }
23086 _ACEOF
23087 rm -f conftest.$ac_objext
23088 if { (ac_try="$ac_compile"
23089 case "(($ac_try" in
23090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091   *) ac_try_echo=$ac_try;;
23092 esac
23093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23094   (eval "$ac_compile") 2>conftest.er1
23095   ac_status=$?
23096   grep -v '^ *+' conftest.er1 >conftest.err
23097   rm -f conftest.er1
23098   cat conftest.err >&5
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); } && {
23101          test -z "$ac_cxx_werror_flag" ||
23102          test ! -s conftest.err
23103        } && test -s conftest.$ac_objext; then
23104   wx_cv_have_variadic_macros=yes
23105 else
23106   echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23108
23109         wx_cv_have_variadic_macros=no
23110
23111 fi
23112
23113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114         ac_ext=c
23115 ac_cpp='$CPP $CPPFLAGS'
23116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23119
23120
23121
23122 fi
23123 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23124 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23125
23126 if test $wx_cv_have_variadic_macros = "yes"; then
23127     cat >>confdefs.h <<\_ACEOF
23128 #define HAVE_VARIADIC_MACROS 1
23129 _ACEOF
23130
23131 fi
23132
23133 fi
23134 # Check whether --enable-largefile was given.
23135 if test "${enable_largefile+set}" = set; then
23136   enableval=$enable_largefile;
23137 fi
23138
23139 if test "$enable_largefile" != no; then
23140             wx_largefile=no
23141
23142     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23143 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23144 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23145   echo $ECHO_N "(cached) $ECHO_C" >&6
23146 else
23147
23148           cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h.  */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h.  */
23154 #define _FILE_OFFSET_BITS 64
23155                           #include <sys/types.h>
23156 int
23157 main ()
23158 {
23159 typedef struct {
23160     unsigned int field: sizeof(off_t) == 8;
23161 } wxlf;
23162
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest.$ac_objext
23168 if { (ac_try="$ac_compile"
23169 case "(($ac_try" in
23170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171   *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174   (eval "$ac_compile") 2>conftest.er1
23175   ac_status=$?
23176   grep -v '^ *+' conftest.er1 >conftest.err
23177   rm -f conftest.er1
23178   cat conftest.err >&5
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } && {
23181          test -z "$ac_c_werror_flag" ||
23182          test ! -s conftest.err
23183        } && test -s conftest.$ac_objext; then
23184   ac_cv_sys_file_offset_bits=64
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189         ac_cv_sys_file_offset_bits=no
23190 fi
23191
23192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23193
23194
23195 fi
23196 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23197 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23198
23199     if test "$ac_cv_sys_file_offset_bits" != no; then
23200         wx_largefile=yes
23201         cat >>confdefs.h <<_ACEOF
23202 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23203 _ACEOF
23204
23205     fi
23206
23207     if test "x$wx_largefile" != "xyes"; then
23208
23209     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23210 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23211 if test "${ac_cv_sys_large_files+set}" = set; then
23212   echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214
23215           cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h.  */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h.  */
23221 #define _LARGE_FILES 1
23222                           #include <sys/types.h>
23223 int
23224 main ()
23225 {
23226 typedef struct {
23227     unsigned int field: sizeof(off_t) == 8;
23228 } wxlf;
23229
23230   ;
23231   return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241   (eval "$ac_compile") 2>conftest.er1
23242   ac_status=$?
23243   grep -v '^ *+' conftest.er1 >conftest.err
23244   rm -f conftest.er1
23245   cat conftest.err >&5
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } && {
23248          test -z "$ac_c_werror_flag" ||
23249          test ! -s conftest.err
23250        } && test -s conftest.$ac_objext; then
23251   ac_cv_sys_large_files=1
23252 else
23253   echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256         ac_cv_sys_large_files=no
23257 fi
23258
23259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260
23261
23262 fi
23263 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23264 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23265
23266     if test "$ac_cv_sys_large_files" != no; then
23267         wx_largefile=yes
23268         cat >>confdefs.h <<_ACEOF
23269 #define _LARGE_FILES $ac_cv_sys_large_files
23270 _ACEOF
23271
23272     fi
23273
23274     fi
23275
23276     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23277 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23278     if test "x$wx_largefile" = "xyes"; then
23279         cat >>confdefs.h <<\_ACEOF
23280 #define HAVE_LARGEFILE_SUPPORT 1
23281 _ACEOF
23282
23283     fi
23284     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23285 echo "${ECHO_T}$wx_largefile" >&6; }
23286 fi
23287
23288
23289 if test "x$wx_largefile" = "xyes"; then
23290     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
23291         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
23292
23293                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23294             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23295 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23296 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23297   echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299
23300                     ac_ext=cpp
23301 ac_cpp='$CXXCPP $CPPFLAGS'
23302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23305
23306                     cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312
23313 int
23314 main ()
23315 {
23316
23317                             #ifndef __STDC_EXT__
23318                                 choke me
23319                             #endif
23320
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 rm -f conftest.$ac_objext
23326 if { (ac_try="$ac_compile"
23327 case "(($ac_try" in
23328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329   *) ac_try_echo=$ac_try;;
23330 esac
23331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23332   (eval "$ac_compile") 2>conftest.er1
23333   ac_status=$?
23334   grep -v '^ *+' conftest.er1 >conftest.err
23335   rm -f conftest.er1
23336   cat conftest.err >&5
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); } && {
23339          test -z "$ac_cxx_werror_flag" ||
23340          test ! -s conftest.err
23341        } && test -s conftest.$ac_objext; then
23342   wx_cv_STDC_EXT_required=no
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347         wx_cv_STDC_EXT_required=yes
23348
23349 fi
23350
23351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352                     ac_ext=c
23353 ac_cpp='$CPP $CPPFLAGS'
23354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23357
23358
23359
23360 fi
23361 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23362 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23363             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23364                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23365             fi
23366         fi
23367     else
23368         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
23369     fi
23370         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23371 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23372 if test "${ac_cv_sys_largefile_source+set}" = set; then
23373   echo $ECHO_N "(cached) $ECHO_C" >&6
23374 else
23375   while :; do
23376   cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h.  */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h.  */
23382 #include <sys/types.h> /* for off_t */
23383      #include <stdio.h>
23384 int
23385 main ()
23386 {
23387 int (*fp) (FILE *, off_t, int) = fseeko;
23388      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext conftest$ac_exeext
23394 if { (ac_try="$ac_link"
23395 case "(($ac_try" in
23396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397   *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400   (eval "$ac_link") 2>conftest.er1
23401   ac_status=$?
23402   grep -v '^ *+' conftest.er1 >conftest.err
23403   rm -f conftest.er1
23404   cat conftest.err >&5
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); } && {
23407          test -z "$ac_c_werror_flag" ||
23408          test ! -s conftest.err
23409        } && test -s conftest$ac_exeext &&
23410        $as_test_x conftest$ac_exeext; then
23411   ac_cv_sys_largefile_source=no; break
23412 else
23413   echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416
23417 fi
23418
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23420       conftest$ac_exeext conftest.$ac_ext
23421   cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h.  */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h.  */
23427 #define _LARGEFILE_SOURCE 1
23428 #include <sys/types.h> /* for off_t */
23429      #include <stdio.h>
23430 int
23431 main ()
23432 {
23433 int (*fp) (FILE *, off_t, int) = fseeko;
23434      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23435   ;
23436   return 0;
23437 }
23438 _ACEOF
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (ac_try="$ac_link"
23441 case "(($ac_try" in
23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443   *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446   (eval "$ac_link") 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } && {
23453          test -z "$ac_c_werror_flag" ||
23454          test ! -s conftest.err
23455        } && test -s conftest$ac_exeext &&
23456        $as_test_x conftest$ac_exeext; then
23457   ac_cv_sys_largefile_source=1; break
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462
23463 fi
23464
23465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23466       conftest$ac_exeext conftest.$ac_ext
23467   ac_cv_sys_largefile_source=unknown
23468   break
23469 done
23470 fi
23471 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23472 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23473 case $ac_cv_sys_largefile_source in #(
23474   no | unknown) ;;
23475   *)
23476 cat >>confdefs.h <<_ACEOF
23477 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23478 _ACEOF
23479 ;;
23480 esac
23481 rm -f conftest*
23482
23483 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23484 # in glibc 2.1.3, but that breaks too many other things.
23485 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23486 if test $ac_cv_sys_largefile_source != unknown; then
23487
23488 cat >>confdefs.h <<\_ACEOF
23489 #define HAVE_FSEEKO 1
23490 _ACEOF
23491
23492 fi
23493
23494     if test "$ac_cv_sys_largefile_source" != no; then
23495         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23496     fi
23497 fi
23498
23499 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23500 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23501 if test "${ac_cv_c_bigendian+set}" = set; then
23502   echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504   ac_cv_c_bigendian=unknown
23505 # See if sys/param.h defines the BYTE_ORDER macro.
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 #include <sys/types.h>
23513 #include <sys/param.h>
23514 int
23515 main ()
23516 {
23517
23518 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23519  bogus endian macros
23520 #endif
23521   ;
23522   return 0;
23523 }
23524 _ACEOF
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529   *) ac_try_echo=$ac_try;;
23530 esac
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532   (eval "$ac_compile") 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } && {
23539          test -z "$ac_c_werror_flag" ||
23540          test ! -s conftest.err
23541        } && test -s conftest.$ac_objext; then
23542   # It does; now see whether it defined to BIG_ENDIAN or not.
23543 cat >conftest.$ac_ext <<_ACEOF
23544 /* confdefs.h.  */
23545 _ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h.  */
23549 #include <sys/types.h>
23550 #include <sys/param.h>
23551 int
23552 main ()
23553 {
23554
23555 #if BYTE_ORDER != BIG_ENDIAN
23556  not big endian
23557 #endif
23558   ;
23559   return 0;
23560 }
23561 _ACEOF
23562 rm -f conftest.$ac_objext
23563 if { (ac_try="$ac_compile"
23564 case "(($ac_try" in
23565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566   *) ac_try_echo=$ac_try;;
23567 esac
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569   (eval "$ac_compile") 2>conftest.er1
23570   ac_status=$?
23571   grep -v '^ *+' conftest.er1 >conftest.err
23572   rm -f conftest.er1
23573   cat conftest.err >&5
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); } && {
23576          test -z "$ac_c_werror_flag" ||
23577          test ! -s conftest.err
23578        } && test -s conftest.$ac_objext; then
23579   ac_cv_c_bigendian=yes
23580 else
23581   echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584         ac_cv_c_bigendian=no
23585 fi
23586
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 else
23589   echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23591
23592
23593 fi
23594
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596 if test $ac_cv_c_bigendian = unknown; then
23597 if test "$cross_compiling" = yes; then
23598   ac_cv_c_bigendian=unknown
23599 else
23600   cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606 main () {
23607   /* Are we little or big endian?  From Harbison&Steele.  */
23608   union
23609   {
23610     long l;
23611     char c[sizeof (long)];
23612   } u;
23613   u.l = 1;
23614   exit (u.c[sizeof (long) - 1] == 1);
23615 }
23616 _ACEOF
23617 rm -f conftest$ac_exeext
23618 if { (ac_try="$ac_link"
23619 case "(($ac_try" in
23620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621   *) ac_try_echo=$ac_try;;
23622 esac
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624   (eval "$ac_link") 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23628   { (case "(($ac_try" in
23629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630   *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633   (eval "$ac_try") 2>&5
23634   ac_status=$?
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); }; }; then
23637   ac_cv_c_bigendian=no
23638 else
23639   echo "$as_me: program exited with status $ac_status" >&5
23640 echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643 ( exit $ac_status )
23644 ac_cv_c_bigendian=yes
23645 fi
23646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23647 fi
23648
23649
23650 fi
23651 fi
23652 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23653 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23654 if test $ac_cv_c_bigendian = unknown; then
23655   { 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
23656 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;}
23657 fi
23658 if test $ac_cv_c_bigendian = yes; then
23659   cat >>confdefs.h <<\_ACEOF
23660 #define WORDS_BIGENDIAN 1
23661 _ACEOF
23662
23663 fi
23664
23665
23666
23667
23668     ac_ext=cpp
23669 ac_cpp='$CXXCPP $CPPFLAGS'
23670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23673
23674
23675
23676 for ac_header in iostream
23677 do
23678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23682   echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
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
23691
23692 #include <$ac_header>
23693 _ACEOF
23694 rm -f conftest.$ac_objext
23695 if { (ac_try="$ac_compile"
23696 case "(($ac_try" in
23697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698   *) ac_try_echo=$ac_try;;
23699 esac
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701   (eval "$ac_compile") 2>conftest.er1
23702   ac_status=$?
23703   grep -v '^ *+' conftest.er1 >conftest.err
23704   rm -f conftest.er1
23705   cat conftest.err >&5
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); } && {
23708          test -z "$ac_cxx_werror_flag" ||
23709          test ! -s conftest.err
23710        } && test -s conftest.$ac_objext; then
23711   eval "$as_ac_Header=yes"
23712 else
23713   echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23715
23716         eval "$as_ac_Header=no"
23717 fi
23718
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720 fi
23721 ac_res=`eval echo '${'$as_ac_Header'}'`
23722                { echo "$as_me:$LINENO: result: $ac_res" >&5
23723 echo "${ECHO_T}$ac_res" >&6; }
23724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23725   cat >>confdefs.h <<_ACEOF
23726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23727 _ACEOF
23728
23729 fi
23730
23731 done
23732
23733
23734     if test "$ac_cv_header_iostream" = "yes" ; then
23735       :
23736     else
23737       cat >>confdefs.h <<\_ACEOF
23738 #define wxUSE_IOSTREAMH 1
23739 _ACEOF
23740
23741     fi
23742
23743     ac_ext=c
23744 ac_cpp='$CPP $CPPFLAGS'
23745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23748
23749
23750
23751
23752   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23753 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23754 if test "${wx_cv_cpp_bool+set}" = set; then
23755   echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23757
23758
23759     ac_ext=cpp
23760 ac_cpp='$CXXCPP $CPPFLAGS'
23761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23764
23765
23766     cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772
23773
23774 int
23775 main ()
23776 {
23777
23778         bool b = true;
23779
23780         return 0;
23781
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790   *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793   (eval "$ac_compile") 2>conftest.er1
23794   ac_status=$?
23795   grep -v '^ *+' conftest.er1 >conftest.err
23796   rm -f conftest.er1
23797   cat conftest.err >&5
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); } && {
23800          test -z "$ac_cxx_werror_flag" ||
23801          test ! -s conftest.err
23802        } && test -s conftest.$ac_objext; then
23803
23804         wx_cv_cpp_bool=yes
23805
23806 else
23807   echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23809
23810
23811         wx_cv_cpp_bool=no
23812
23813
23814 fi
23815
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817
23818     ac_ext=c
23819 ac_cpp='$CPP $CPPFLAGS'
23820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23823
23824
23825 fi
23826 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23827 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23828
23829   if test "$wx_cv_cpp_bool" = "yes"; then
23830     cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_BOOL 1
23832 _ACEOF
23833
23834   fi
23835
23836
23837
23838   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23839 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23840 if test "${wx_cv_explicit+set}" = set; then
23841   echo $ECHO_N "(cached) $ECHO_C" >&6
23842 else
23843
23844
23845     ac_ext=cpp
23846 ac_cpp='$CXXCPP $CPPFLAGS'
23847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23850
23851
23852             cat >conftest.$ac_ext <<_ACEOF
23853 /* confdefs.h.  */
23854 _ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h.  */
23858
23859         class Foo { public: explicit Foo(int) {} };
23860
23861 int
23862 main ()
23863 {
23864
23865         return 0;
23866
23867   ;
23868   return 0;
23869 }
23870 _ACEOF
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875   *) ac_try_echo=$ac_try;;
23876 esac
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878   (eval "$ac_compile") 2>conftest.er1
23879   ac_status=$?
23880   grep -v '^ *+' conftest.er1 >conftest.err
23881   rm -f conftest.er1
23882   cat conftest.err >&5
23883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884   (exit $ac_status); } && {
23885          test -z "$ac_cxx_werror_flag" ||
23886          test ! -s conftest.err
23887        } && test -s conftest.$ac_objext; then
23888
23889         cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h.  */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h.  */
23895
23896                 class Foo { public: explicit Foo(int) {} };
23897                 static void TakeFoo(const Foo& foo) { }
23898
23899 int
23900 main ()
23901 {
23902
23903                 TakeFoo(17);
23904                 return 0;
23905
23906   ;
23907   return 0;
23908 }
23909 _ACEOF
23910 rm -f conftest.$ac_objext
23911 if { (ac_try="$ac_compile"
23912 case "(($ac_try" in
23913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914   *) ac_try_echo=$ac_try;;
23915 esac
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917   (eval "$ac_compile") 2>conftest.er1
23918   ac_status=$?
23919   grep -v '^ *+' conftest.er1 >conftest.err
23920   rm -f conftest.er1
23921   cat conftest.err >&5
23922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923   (exit $ac_status); } && {
23924          test -z "$ac_cxx_werror_flag" ||
23925          test ! -s conftest.err
23926        } && test -s conftest.$ac_objext; then
23927   wx_cv_explicit=no
23928 else
23929   echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932         wx_cv_explicit=yes
23933
23934 fi
23935
23936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23937
23938 else
23939   echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942         wx_cv_explicit=no
23943
23944 fi
23945
23946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947
23948     ac_ext=c
23949 ac_cpp='$CPP $CPPFLAGS'
23950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23953
23954
23955 fi
23956 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23957 echo "${ECHO_T}$wx_cv_explicit" >&6; }
23958
23959   if test "$wx_cv_explicit" = "yes"; then
23960     cat >>confdefs.h <<\_ACEOF
23961 #define HAVE_EXPLICIT 1
23962 _ACEOF
23963
23964   fi
23965
23966
23967 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23968 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
23969 if test "${ac_cv_cxx_const_cast+set}" = set; then
23970   echo $ECHO_N "(cached) $ECHO_C" >&6
23971 else
23972
23973  ac_ext=cpp
23974 ac_cpp='$CXXCPP $CPPFLAGS'
23975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23978
23979  cat >conftest.$ac_ext <<_ACEOF
23980 /* confdefs.h.  */
23981 _ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h.  */
23985
23986 int
23987 main ()
23988 {
23989 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23990   ;
23991   return 0;
23992 }
23993 _ACEOF
23994 rm -f conftest.$ac_objext
23995 if { (ac_try="$ac_compile"
23996 case "(($ac_try" in
23997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998   *) ac_try_echo=$ac_try;;
23999 esac
24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001   (eval "$ac_compile") 2>conftest.er1
24002   ac_status=$?
24003   grep -v '^ *+' conftest.er1 >conftest.err
24004   rm -f conftest.er1
24005   cat conftest.err >&5
24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007   (exit $ac_status); } && {
24008          test -z "$ac_cxx_werror_flag" ||
24009          test ! -s conftest.err
24010        } && test -s conftest.$ac_objext; then
24011   ac_cv_cxx_const_cast=yes
24012 else
24013   echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24015
24016         ac_cv_cxx_const_cast=no
24017 fi
24018
24019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24020  ac_ext=c
24021 ac_cpp='$CPP $CPPFLAGS'
24022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24025
24026
24027 fi
24028 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
24029 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
24030 if test "$ac_cv_cxx_const_cast" = yes; then
24031
24032 cat >>confdefs.h <<\_ACEOF
24033 #define HAVE_CONST_CAST
24034 _ACEOF
24035
24036 fi
24037
24038 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
24039 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
24040 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
24041   echo $ECHO_N "(cached) $ECHO_C" >&6
24042 else
24043
24044  ac_ext=cpp
24045 ac_cpp='$CXXCPP $CPPFLAGS'
24046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24049
24050  cat >conftest.$ac_ext <<_ACEOF
24051 /* confdefs.h.  */
24052 _ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h.  */
24056 #include <typeinfo>
24057 class Base { public : Base () {} virtual void f () = 0;};
24058 class Derived : public Base { public : Derived () {} virtual void f () {} };
24059 class Unrelated { public : Unrelated () {} };
24060 int g (Unrelated&) { return 0; }
24061 int
24062 main ()
24063 {
24064
24065 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 rm -f conftest.$ac_objext
24071 if { (ac_try="$ac_compile"
24072 case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077   (eval "$ac_compile") 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } && {
24084          test -z "$ac_cxx_werror_flag" ||
24085          test ! -s conftest.err
24086        } && test -s conftest.$ac_objext; then
24087   ac_cv_cxx_reinterpret_cast=yes
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092         ac_cv_cxx_reinterpret_cast=no
24093 fi
24094
24095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24096  ac_ext=c
24097 ac_cpp='$CPP $CPPFLAGS'
24098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24101
24102
24103 fi
24104 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
24105 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
24106 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
24107
24108 cat >>confdefs.h <<\_ACEOF
24109 #define HAVE_REINTERPRET_CAST
24110 _ACEOF
24111
24112 fi
24113
24114 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
24115 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
24116 if test "${ac_cv_cxx_static_cast+set}" = set; then
24117   echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119
24120  ac_ext=cpp
24121 ac_cpp='$CXXCPP $CPPFLAGS'
24122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24125
24126  cat >conftest.$ac_ext <<_ACEOF
24127 /* confdefs.h.  */
24128 _ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h.  */
24132 #include <typeinfo>
24133 class Base { public : Base () {} virtual void f () = 0; };
24134 class Derived : public Base { public : Derived () {} virtual void f () {} };
24135 int g (Derived&) { return 0; }
24136 int
24137 main ()
24138 {
24139
24140 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
24141   ;
24142   return 0;
24143 }
24144 _ACEOF
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149   *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152   (eval "$ac_compile") 2>conftest.er1
24153   ac_status=$?
24154   grep -v '^ *+' conftest.er1 >conftest.err
24155   rm -f conftest.er1
24156   cat conftest.err >&5
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); } && {
24159          test -z "$ac_cxx_werror_flag" ||
24160          test ! -s conftest.err
24161        } && test -s conftest.$ac_objext; then
24162   ac_cv_cxx_static_cast=yes
24163 else
24164   echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24166
24167         ac_cv_cxx_static_cast=no
24168 fi
24169
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171  ac_ext=c
24172 ac_cpp='$CPP $CPPFLAGS'
24173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24176
24177
24178 fi
24179 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
24180 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
24181 if test "$ac_cv_cxx_static_cast" = yes; then
24182
24183 cat >>confdefs.h <<\_ACEOF
24184 #define HAVE_STATIC_CAST
24185 _ACEOF
24186
24187 fi
24188
24189
24190 if test "x$SUNCXX" = xyes; then
24191     CXXFLAGS="-features=tmplife $CXXFLAGS"
24192 fi
24193
24194 if test "x$SUNCC" = xyes; then
24195     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24196 fi
24197
24198 if test "x$SGICC" = "xyes"; then
24199     CFLAGS="-woff 3970 $CFLAGS"
24200 fi
24201 if test "x$SGICXX" = "xyes"; then
24202     CXXFLAGS="-woff 3970 $CXXFLAGS"
24203 fi
24204
24205 if test "x$HPCC" = "xyes"; then
24206                     CFLAGS="+W 2011,2450 $CFLAGS"
24207 fi
24208 if test "x$HPCXX" = "xyes"; then
24209             CXXFLAGS="+W 2340 $CXXFLAGS"
24210 fi
24211
24212 if test "x$COMPAQCXX" = "xyes"; then
24213                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24214 fi
24215
24216 ac_ext=cpp
24217 ac_cpp='$CXXCPP $CPPFLAGS'
24218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24221
24222
24223 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24224     if test "$wxUSE_UNICODE" = "yes"; then
24225         std_string="std::wstring"
24226         char_type="wchar_t"
24227     else
24228         std_string="std::string"
24229         char_type="char"
24230     fi
24231
24232         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24233 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24234 if test "${wx_cv_class_stdstring+set}" = set; then
24235   echo $ECHO_N "(cached) $ECHO_C" >&6
24236 else
24237
24238             cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244 #include <string>
24245 int
24246 main ()
24247 {
24248 $std_string foo;
24249   ;
24250   return 0;
24251 }
24252 _ACEOF
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_compile") 2>conftest.er1
24261   ac_status=$?
24262   grep -v '^ *+' conftest.er1 >conftest.err
24263   rm -f conftest.er1
24264   cat conftest.err >&5
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } && {
24267          test -z "$ac_cxx_werror_flag" ||
24268          test ! -s conftest.err
24269        } && test -s conftest.$ac_objext; then
24270   wx_cv_class_stdstring=yes
24271 else
24272   echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24274
24275         wx_cv_class_stdstring=no
24276
24277 fi
24278
24279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280
24281
24282 fi
24283 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24284 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24285
24286     if test "$wx_cv_class_stdstring" = yes; then
24287         if test "$wxUSE_UNICODE" = "yes"; then
24288             cat >>confdefs.h <<\_ACEOF
24289 #define HAVE_STD_WSTRING 1
24290 _ACEOF
24291
24292         fi
24293                     else
24294         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24295 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24296 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24297   echo $ECHO_N "(cached) $ECHO_C" >&6
24298 else
24299
24300                 cat >conftest.$ac_ext <<_ACEOF
24301 /* confdefs.h.  */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h.  */
24306
24307                     #ifdef HAVE_WCHAR_H
24308                     #  ifdef __CYGWIN__
24309                     #    include <stddef.h>
24310                     #  endif
24311                     #  include <wchar.h>
24312                     #endif
24313                     #ifdef HAVE_STDLIB_H
24314                     #  include <stdlib.h>
24315                     #endif
24316                     #include <stdio.h>
24317                     #include <string>
24318
24319 int
24320 main ()
24321 {
24322 std::basic_string<$char_type> foo;
24323                      const $char_type* dummy = foo.c_str();
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332   *) ac_try_echo=$ac_try;;
24333 esac
24334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24335   (eval "$ac_compile") 2>conftest.er1
24336   ac_status=$?
24337   grep -v '^ *+' conftest.er1 >conftest.err
24338   rm -f conftest.er1
24339   cat conftest.err >&5
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } && {
24342          test -z "$ac_cxx_werror_flag" ||
24343          test ! -s conftest.err
24344        } && test -s conftest.$ac_objext; then
24345   wx_cv_class_stdbasicstring=yes
24346 else
24347   echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350         wx_cv_class_stdbasicstring=no
24351
24352 fi
24353
24354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24355
24356
24357 fi
24358 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24359 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24360
24361         if test "$wx_cv_class_stdbasicstring" != yes; then
24362             if test "$wxUSE_STL" = "yes"; then
24363                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24364 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24365    { (exit 1); exit 1; }; }
24366             elif test "$wxUSE_STD_STRING" = "yes"; then
24367                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24368 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24369    { (exit 1); exit 1; }; }
24370             else
24371                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24372 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24373                 wxUSE_STD_STRING=no
24374             fi
24375         fi
24376     fi
24377 fi
24378
24379 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24380     { echo "$as_me:$LINENO: checking for std::istream" >&5
24381 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24382 if test "${ac_cv_type_std__istream+set}" = set; then
24383   echo $ECHO_N "(cached) $ECHO_C" >&6
24384 else
24385   cat >conftest.$ac_ext <<_ACEOF
24386 /* confdefs.h.  */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h.  */
24391 #include <iostream>
24392
24393 typedef std::istream ac__type_new_;
24394 int
24395 main ()
24396 {
24397 if ((ac__type_new_ *) 0)
24398   return 0;
24399 if (sizeof (ac__type_new_))
24400   return 0;
24401   ;
24402   return 0;
24403 }
24404 _ACEOF
24405 rm -f conftest.$ac_objext
24406 if { (ac_try="$ac_compile"
24407 case "(($ac_try" in
24408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409   *) ac_try_echo=$ac_try;;
24410 esac
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412   (eval "$ac_compile") 2>conftest.er1
24413   ac_status=$?
24414   grep -v '^ *+' conftest.er1 >conftest.err
24415   rm -f conftest.er1
24416   cat conftest.err >&5
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); } && {
24419          test -z "$ac_cxx_werror_flag" ||
24420          test ! -s conftest.err
24421        } && test -s conftest.$ac_objext; then
24422   ac_cv_type_std__istream=yes
24423 else
24424   echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24426
24427         ac_cv_type_std__istream=no
24428 fi
24429
24430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24431 fi
24432 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24433 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24434 if test $ac_cv_type_std__istream = yes; then
24435
24436 cat >>confdefs.h <<_ACEOF
24437 #define HAVE_STD__ISTREAM 1
24438 _ACEOF
24439
24440
24441 else
24442   wxUSE_STD_IOSTREAM=no
24443 fi
24444 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24445 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24446 if test "${ac_cv_type_std__ostream+set}" = set; then
24447   echo $ECHO_N "(cached) $ECHO_C" >&6
24448 else
24449   cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455 #include <iostream>
24456
24457 typedef std::ostream ac__type_new_;
24458 int
24459 main ()
24460 {
24461 if ((ac__type_new_ *) 0)
24462   return 0;
24463 if (sizeof (ac__type_new_))
24464   return 0;
24465   ;
24466   return 0;
24467 }
24468 _ACEOF
24469 rm -f conftest.$ac_objext
24470 if { (ac_try="$ac_compile"
24471 case "(($ac_try" in
24472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473   *) ac_try_echo=$ac_try;;
24474 esac
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476   (eval "$ac_compile") 2>conftest.er1
24477   ac_status=$?
24478   grep -v '^ *+' conftest.er1 >conftest.err
24479   rm -f conftest.er1
24480   cat conftest.err >&5
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); } && {
24483          test -z "$ac_cxx_werror_flag" ||
24484          test ! -s conftest.err
24485        } && test -s conftest.$ac_objext; then
24486   ac_cv_type_std__ostream=yes
24487 else
24488   echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24490
24491         ac_cv_type_std__ostream=no
24492 fi
24493
24494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24495 fi
24496 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24497 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24498 if test $ac_cv_type_std__ostream = yes; then
24499
24500 cat >>confdefs.h <<_ACEOF
24501 #define HAVE_STD__OSTREAM 1
24502 _ACEOF
24503
24504
24505 else
24506   wxUSE_STD_IOSTREAM=no
24507 fi
24508
24509
24510     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24511         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24512             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24513 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24514    { (exit 1); exit 1; }; }
24515         else
24516             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24517 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24518         fi
24519     fi
24520 fi
24521
24522 if test "$wxUSE_STL" = "yes"; then
24523         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24524 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24525 if test "${wx_cv_lib_stl+set}" = set; then
24526   echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528   cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534 #include <string>
24535             #include <functional>
24536             #include <algorithm>
24537             #include <vector>
24538             #include <list>
24539 int
24540 main ()
24541 {
24542 std::vector<int> moo;
24543              std::list<int> foo;
24544              std::vector<int>::iterator it =
24545                  std::find_if(moo.begin(), moo.end(),
24546                               std::bind2nd(std::less<int>(), 3));
24547   ;
24548   return 0;
24549 }
24550 _ACEOF
24551 rm -f conftest.$ac_objext
24552 if { (ac_try="$ac_compile"
24553 case "(($ac_try" in
24554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24555   *) ac_try_echo=$ac_try;;
24556 esac
24557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24558   (eval "$ac_compile") 2>conftest.er1
24559   ac_status=$?
24560   grep -v '^ *+' conftest.er1 >conftest.err
24561   rm -f conftest.er1
24562   cat conftest.err >&5
24563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); } && {
24565          test -z "$ac_cxx_werror_flag" ||
24566          test ! -s conftest.err
24567        } && test -s conftest.$ac_objext; then
24568   wx_cv_lib_stl=yes
24569 else
24570   echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24572
24573         wx_cv_lib_stl=no
24574
24575 fi
24576
24577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24578
24579 fi
24580 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24581 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24582
24583     if test "$wx_cv_lib_stl" != yes; then
24584          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24585 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24586    { (exit 1); exit 1; }; }
24587     fi
24588
24589         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24590 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24591 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24592   echo $ECHO_N "(cached) $ECHO_C" >&6
24593 else
24594   cat >conftest.$ac_ext <<_ACEOF
24595 /* confdefs.h.  */
24596 _ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h.  */
24600 #include <string>
24601 int
24602 main ()
24603 {
24604 std::string foo, bar;
24605             foo.compare(bar);
24606             foo.compare(1, 1, bar);
24607             foo.compare(1, 1, bar, 1, 1);
24608             foo.compare("");
24609             foo.compare(1, 1, "");
24610             foo.compare(1, 1, "", 2);
24611   ;
24612   return 0;
24613 }
24614 _ACEOF
24615 rm -f conftest.$ac_objext
24616 if { (ac_try="$ac_compile"
24617 case "(($ac_try" in
24618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619   *) ac_try_echo=$ac_try;;
24620 esac
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622   (eval "$ac_compile") 2>conftest.er1
24623   ac_status=$?
24624   grep -v '^ *+' conftest.er1 >conftest.err
24625   rm -f conftest.er1
24626   cat conftest.err >&5
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } && {
24629          test -z "$ac_cxx_werror_flag" ||
24630          test ! -s conftest.err
24631        } && test -s conftest.$ac_objext; then
24632   wx_cv_func_stdstring_compare=yes
24633 else
24634   echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24636
24637         wx_cv_func_stdstring_compare=no
24638
24639 fi
24640
24641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24642
24643 fi
24644 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24645 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24646
24647     if test "$wx_cv_func_stdstring_compare" = yes; then
24648         cat >>confdefs.h <<\_ACEOF
24649 #define HAVE_STD_STRING_COMPARE 1
24650 _ACEOF
24651
24652     fi
24653
24654         { echo "$as_me:$LINENO: checking for hash_map" >&5
24655 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
24656 if test "${ac_cv_header_hash_map+set}" = set; then
24657   echo $ECHO_N "(cached) $ECHO_C" >&6
24658 else
24659   cat >conftest.$ac_ext <<_ACEOF
24660 /* confdefs.h.  */
24661 _ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h.  */
24665
24666
24667
24668 #include <hash_map>
24669 _ACEOF
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674   *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677   (eval "$ac_compile") 2>conftest.er1
24678   ac_status=$?
24679   grep -v '^ *+' conftest.er1 >conftest.err
24680   rm -f conftest.er1
24681   cat conftest.err >&5
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } && {
24684          test -z "$ac_cxx_werror_flag" ||
24685          test ! -s conftest.err
24686        } && test -s conftest.$ac_objext; then
24687   ac_cv_header_hash_map=yes
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692         ac_cv_header_hash_map=no
24693 fi
24694
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24696 fi
24697 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24698 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
24699 if test $ac_cv_header_hash_map = yes; then
24700   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
24701 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
24702 if test "${wx_cv_class_stdhashmapset+set}" = set; then
24703   echo $ECHO_N "(cached) $ECHO_C" >&6
24704 else
24705   cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h.  */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h.  */
24711 #include <hash_map>
24712                 #include <hash_set>
24713 int
24714 main ()
24715 {
24716 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24717                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729   (eval "$ac_compile") 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } && {
24736          test -z "$ac_cxx_werror_flag" ||
24737          test ! -s conftest.err
24738        } && test -s conftest.$ac_objext; then
24739   wx_cv_class_stdhashmapset=yes
24740 else
24741   echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744         wx_cv_class_stdhashmapset=no
24745 fi
24746
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748
24749
24750 fi
24751 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
24752 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
24753 fi
24754
24755
24756
24757     if test "$wx_cv_class_stdhashmapset" = yes; then
24758         cat >>confdefs.h <<\_ACEOF
24759 #define HAVE_HASH_MAP 1
24760 _ACEOF
24761
24762         cat >>confdefs.h <<\_ACEOF
24763 #define HAVE_STD_HASH_MAP 1
24764 _ACEOF
24765
24766     fi
24767
24768     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24769 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
24770 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24771   echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773   cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779
24780
24781
24782 #include <ext/hash_map>
24783 _ACEOF
24784 rm -f conftest.$ac_objext
24785 if { (ac_try="$ac_compile"
24786 case "(($ac_try" in
24787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788   *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791   (eval "$ac_compile") 2>conftest.er1
24792   ac_status=$?
24793   grep -v '^ *+' conftest.er1 >conftest.err
24794   rm -f conftest.er1
24795   cat conftest.err >&5
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); } && {
24798          test -z "$ac_cxx_werror_flag" ||
24799          test ! -s conftest.err
24800        } && test -s conftest.$ac_objext; then
24801   ac_cv_header_ext_hash_map=yes
24802 else
24803   echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806         ac_cv_header_ext_hash_map=no
24807 fi
24808
24809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24810 fi
24811 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24812 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
24813 if test $ac_cv_header_ext_hash_map = yes; then
24814   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24815 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
24816 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24817   echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819   cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h.  */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h.  */
24825 #include <ext/hash_map>
24826                 #include <ext/hash_set>
24827 int
24828 main ()
24829 {
24830 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24831                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840   *) ac_try_echo=$ac_try;;
24841 esac
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843   (eval "$ac_compile") 2>conftest.er1
24844   ac_status=$?
24845   grep -v '^ *+' conftest.er1 >conftest.err
24846   rm -f conftest.er1
24847   cat conftest.err >&5
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); } && {
24850          test -z "$ac_cxx_werror_flag" ||
24851          test ! -s conftest.err
24852        } && test -s conftest.$ac_objext; then
24853   wx_cv_class_gnuhashmapset=yes
24854 else
24855   echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858         wx_cv_class_gnuhashmapset=no
24859 fi
24860
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24862
24863
24864 fi
24865 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24866 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
24867 fi
24868
24869
24870
24871     if test "$wx_cv_class_gnuhashmapset" = yes; then
24872          cat >>confdefs.h <<\_ACEOF
24873 #define HAVE_EXT_HASH_MAP 1
24874 _ACEOF
24875
24876          cat >>confdefs.h <<\_ACEOF
24877 #define HAVE_GNU_CXX_HASH_MAP 1
24878 _ACEOF
24879
24880     fi
24881 fi
24882
24883
24884
24885   if test -n "$GCC"; then
24886     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
24887 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
24888     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
24889   echo $ECHO_N "(cached) $ECHO_C" >&6
24890 else
24891
24892       cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h.  */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h.  */
24898
24899 int
24900 main ()
24901 {
24902
24903           unsigned int value=0;
24904           /* wxAtomicInc doesn't use return value here */
24905           __sync_fetch_and_add(&value, 2);
24906           __sync_sub_and_fetch(&value, 1);
24907           /* but wxAtomicDec does, so mimic that: */
24908           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
24909
24910   ;
24911   return 0;
24912 }
24913 _ACEOF
24914 rm -f conftest.$ac_objext conftest$ac_exeext
24915 if { (ac_try="$ac_link"
24916 case "(($ac_try" in
24917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918   *) ac_try_echo=$ac_try;;
24919 esac
24920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24921   (eval "$ac_link") 2>conftest.er1
24922   ac_status=$?
24923   grep -v '^ *+' conftest.er1 >conftest.err
24924   rm -f conftest.er1
24925   cat conftest.err >&5
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); } && {
24928          test -z "$ac_cxx_werror_flag" ||
24929          test ! -s conftest.err
24930        } && test -s conftest$ac_exeext &&
24931        $as_test_x conftest$ac_exeext; then
24932   wx_cv_cc_gcc_atomic_builtins=yes
24933 else
24934   echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24936
24937         wx_cv_cc_gcc_atomic_builtins=no
24938 fi
24939
24940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24941       conftest$ac_exeext conftest.$ac_ext
24942
24943 fi
24944
24945     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
24946 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
24947     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
24948       cat >>confdefs.h <<\_ACEOF
24949 #define HAVE_GCC_ATOMIC_BUILTINS 1
24950 _ACEOF
24951
24952     fi
24953   fi
24954
24955
24956 ac_ext=c
24957 ac_cpp='$CPP $CPPFLAGS'
24958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24961
24962
24963
24964 SEARCH_INCLUDE="\
24965     /usr/local/include        \
24966                               \
24967     /usr/Motif-2.1/include    \
24968     /usr/Motif-1.2/include    \
24969     /usr/include/Motif1.2     \
24970                               \
24971     /usr/dt/include           \
24972     /usr/openwin/include      \
24973                               \
24974     /usr/include/Xm           \
24975                               \
24976     /usr/X11R6/include        \
24977     /usr/X11R6.4/include      \
24978     /usr/X11R5/include        \
24979     /usr/X11R4/include        \
24980                               \
24981     /usr/include/X11R6        \
24982     /usr/include/X11R5        \
24983     /usr/include/X11R4        \
24984                               \
24985     /usr/local/X11R6/include  \
24986     /usr/local/X11R5/include  \
24987     /usr/local/X11R4/include  \
24988                               \
24989     /usr/local/include/X11R6  \
24990     /usr/local/include/X11R5  \
24991     /usr/local/include/X11R4  \
24992                               \
24993     /usr/X11/include          \
24994     /usr/include/X11          \
24995     /usr/local/X11/include    \
24996     /usr/local/include/X11    \
24997                               \
24998     /usr/XFree86/include/X11  \
24999     /usr/pkg/include          \
25000                               \
25001     /usr/openwin/share/include"
25002
25003 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25004 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25005
25006 case "${host}" in
25007     *-*-irix6* )
25008         if test "${wx_cv_std_libpath+set}" = set; then
25009   echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011
25012                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25013                     for e in a so sl dylib dll.a; do
25014                         libc="$d/libc.$e"
25015                         if test -f $libc; then
25016                             save_LIBS="$LIBS"
25017                             LIBS="$libc"
25018                             cat >conftest.$ac_ext <<_ACEOF
25019 int main() { return 0; }
25020 _ACEOF
25021 rm -f conftest.$ac_objext conftest$ac_exeext
25022 if { (ac_try="$ac_link"
25023 case "(($ac_try" in
25024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025   *) ac_try_echo=$ac_try;;
25026 esac
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028   (eval "$ac_link") 2>conftest.er1
25029   ac_status=$?
25030   grep -v '^ *+' conftest.er1 >conftest.err
25031   rm -f conftest.er1
25032   cat conftest.err >&5
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); } && {
25035          test -z "$ac_c_werror_flag" ||
25036          test ! -s conftest.err
25037        } && test -s conftest$ac_exeext &&
25038        $as_test_x conftest$ac_exeext; then
25039   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25040 else
25041   echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25043
25044
25045 fi
25046
25047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25048       conftest$ac_exeext conftest.$ac_ext
25049                             LIBS="$save_LIBS"
25050                             if test "x$wx_cv_std_libpath" != "x"; then
25051                                 break 2
25052                             fi
25053                         fi
25054                     done
25055                 done
25056                 if test "x$wx_cv_std_libpath" = "x"; then
25057                     wx_cv_std_libpath="lib"
25058                 fi
25059
25060
25061 fi
25062
25063         ;;
25064
25065     *-*-solaris2* )
25066                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25067             wx_cv_std_libpath="lib/64"
25068         else
25069             wx_cv_std_libpath="lib"
25070         fi
25071         ;;
25072
25073     *-*-linux* )
25074                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25075                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25076             wx_cv_std_libpath="lib64"
25077         else
25078             wx_cv_std_libpath="lib"
25079         fi
25080         ;;
25081
25082     *)
25083         wx_cv_std_libpath="lib";
25084         ;;
25085 esac
25086
25087 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25088 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25089
25090 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25091
25092 if test "$build" != "$host" -a "$GCC" = yes; then
25093                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25094         cross_root=`dirname $cross_root`
25095         cross_root=`dirname $cross_root`
25096
25097                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25098         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25099         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25100
25101                 if test -z "$PKG_CONFIG_PATH"; then
25102             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25103             export PKG_CONFIG_PATH
25104         fi
25105
25106                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25107
25108 ac_find_includes=
25109 for ac_dir in $SEARCH_INCLUDE /usr/include;
25110   do
25111     if test -f "$ac_dir/X11/Intrinsic.h"; then
25112       ac_find_includes=$ac_dir
25113       break
25114     fi
25115   done
25116
25117             x_includes=$ac_find_includes
25118         fi
25119         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25120
25121   ac_find_libraries=
25122   for ac_dir in $SEARCH_LIB;
25123   do
25124     for ac_extension in a so sl dylib dll.a; do
25125       if test -f "$ac_dir/libXt.$ac_extension"; then
25126         ac_find_libraries=$ac_dir
25127         break 2
25128       fi
25129     done
25130   done
25131
25132             x_libraries=$ac_find_libraries
25133         fi
25134     fi
25135 fi
25136
25137
25138 cat >confcache <<\_ACEOF
25139 # This file is a shell script that caches the results of configure
25140 # tests run on this system so they can be shared between configure
25141 # scripts and configure runs, see configure's option --config-cache.
25142 # It is not useful on other systems.  If it contains results you don't
25143 # want to keep, you may remove or edit it.
25144 #
25145 # config.status only pays attention to the cache file if you give it
25146 # the --recheck option to rerun configure.
25147 #
25148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25150 # following values.
25151
25152 _ACEOF
25153
25154 # The following way of writing the cache mishandles newlines in values,
25155 # but we know of no workaround that is simple, portable, and efficient.
25156 # So, we kill variables containing newlines.
25157 # Ultrix sh set writes to stderr and can't be redirected directly,
25158 # and sets the high bit in the cache file unless we assign to the vars.
25159 (
25160   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25161     eval ac_val=\$$ac_var
25162     case $ac_val in #(
25163     *${as_nl}*)
25164       case $ac_var in #(
25165       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25166 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25167       esac
25168       case $ac_var in #(
25169       _ | IFS | as_nl) ;; #(
25170       *) $as_unset $ac_var ;;
25171       esac ;;
25172     esac
25173   done
25174
25175   (set) 2>&1 |
25176     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25177     *${as_nl}ac_space=\ *)
25178       # `set' does not quote correctly, so add quotes (double-quote
25179       # substitution turns \\\\ into \\, and sed turns \\ into \).
25180       sed -n \
25181         "s/'/'\\\\''/g;
25182           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25183       ;; #(
25184     *)
25185       # `set' quotes correctly as required by POSIX, so do not add quotes.
25186       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25187       ;;
25188     esac |
25189     sort
25190 ) |
25191   sed '
25192      /^ac_cv_env_/b end
25193      t clear
25194      :clear
25195      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25196      t end
25197      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25198      :end' >>confcache
25199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25200   if test -w "$cache_file"; then
25201     test "x$cache_file" != "x/dev/null" &&
25202       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25203 echo "$as_me: updating cache $cache_file" >&6;}
25204     cat confcache >$cache_file
25205   else
25206     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25207 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25208   fi
25209 fi
25210 rm -f confcache
25211
25212 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25213     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25214 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25215 if test "${wx_cv_lib_glibc21+set}" = set; then
25216   echo $ECHO_N "(cached) $ECHO_C" >&6
25217 else
25218
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 #include <features.h>
25226 int
25227 main ()
25228 {
25229
25230                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25231                 not glibc 2.1
25232                 #endif
25233
25234   ;
25235   return 0;
25236 }
25237 _ACEOF
25238 rm -f conftest.$ac_objext
25239 if { (ac_try="$ac_compile"
25240 case "(($ac_try" in
25241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242   *) ac_try_echo=$ac_try;;
25243 esac
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245   (eval "$ac_compile") 2>conftest.er1
25246   ac_status=$?
25247   grep -v '^ *+' conftest.er1 >conftest.err
25248   rm -f conftest.er1
25249   cat conftest.err >&5
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } && {
25252          test -z "$ac_c_werror_flag" ||
25253          test ! -s conftest.err
25254        } && test -s conftest.$ac_objext; then
25255
25256                 wx_cv_lib_glibc21=yes
25257
25258 else
25259   echo "$as_me: failed program was:" >&5
25260 sed 's/^/| /' conftest.$ac_ext >&5
25261
25262
25263                 wx_cv_lib_glibc21=no
25264
25265
25266 fi
25267
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269
25270 fi
25271 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25272 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25273     if test "$wx_cv_lib_glibc21" = "yes"; then
25274         cat >>confdefs.h <<\_ACEOF
25275 #define wxHAVE_GLIBC2 1
25276 _ACEOF
25277
25278     fi
25279 fi
25280
25281 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25282     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25283         cat >>confdefs.h <<\_ACEOF
25284 #define _GNU_SOURCE 1
25285 _ACEOF
25286
25287     fi
25288 fi
25289
25290 have_cos=0
25291 have_floor=0
25292
25293 for ac_func in cos
25294 do
25295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25299   echo $ECHO_N "(cached) $ECHO_C" >&6
25300 else
25301   cat >conftest.$ac_ext <<_ACEOF
25302 /* confdefs.h.  */
25303 _ACEOF
25304 cat confdefs.h >>conftest.$ac_ext
25305 cat >>conftest.$ac_ext <<_ACEOF
25306 /* end confdefs.h.  */
25307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25309 #define $ac_func innocuous_$ac_func
25310
25311 /* System header to define __stub macros and hopefully few prototypes,
25312     which can conflict with char $ac_func (); below.
25313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25314     <limits.h> exists even on freestanding compilers.  */
25315
25316 #ifdef __STDC__
25317 # include <limits.h>
25318 #else
25319 # include <assert.h>
25320 #endif
25321
25322 #undef $ac_func
25323
25324 /* Override any GCC internal prototype to avoid an error.
25325    Use char because int might match the return type of a GCC
25326    builtin and then its argument prototype would still apply.  */
25327 #ifdef __cplusplus
25328 extern "C"
25329 #endif
25330 char $ac_func ();
25331 /* The GNU C library defines this for functions which it implements
25332     to always fail with ENOSYS.  Some functions are actually named
25333     something starting with __ and the normal name is an alias.  */
25334 #if defined __stub_$ac_func || defined __stub___$ac_func
25335 choke me
25336 #endif
25337
25338 int
25339 main ()
25340 {
25341 return $ac_func ();
25342   ;
25343   return 0;
25344 }
25345 _ACEOF
25346 rm -f conftest.$ac_objext conftest$ac_exeext
25347 if { (ac_try="$ac_link"
25348 case "(($ac_try" in
25349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350   *) ac_try_echo=$ac_try;;
25351 esac
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353   (eval "$ac_link") 2>conftest.er1
25354   ac_status=$?
25355   grep -v '^ *+' conftest.er1 >conftest.err
25356   rm -f conftest.er1
25357   cat conftest.err >&5
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); } && {
25360          test -z "$ac_c_werror_flag" ||
25361          test ! -s conftest.err
25362        } && test -s conftest$ac_exeext &&
25363        $as_test_x conftest$ac_exeext; then
25364   eval "$as_ac_var=yes"
25365 else
25366   echo "$as_me: failed program was:" >&5
25367 sed 's/^/| /' conftest.$ac_ext >&5
25368
25369         eval "$as_ac_var=no"
25370 fi
25371
25372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25373       conftest$ac_exeext conftest.$ac_ext
25374 fi
25375 ac_res=`eval echo '${'$as_ac_var'}'`
25376                { echo "$as_me:$LINENO: result: $ac_res" >&5
25377 echo "${ECHO_T}$ac_res" >&6; }
25378 if test `eval echo '${'$as_ac_var'}'` = yes; then
25379   cat >>confdefs.h <<_ACEOF
25380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25381 _ACEOF
25382  have_cos=1
25383 fi
25384 done
25385
25386
25387 for ac_func in floor
25388 do
25389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25393   echo $ECHO_N "(cached) $ECHO_C" >&6
25394 else
25395   cat >conftest.$ac_ext <<_ACEOF
25396 /* confdefs.h.  */
25397 _ACEOF
25398 cat confdefs.h >>conftest.$ac_ext
25399 cat >>conftest.$ac_ext <<_ACEOF
25400 /* end confdefs.h.  */
25401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25403 #define $ac_func innocuous_$ac_func
25404
25405 /* System header to define __stub macros and hopefully few prototypes,
25406     which can conflict with char $ac_func (); below.
25407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25408     <limits.h> exists even on freestanding compilers.  */
25409
25410 #ifdef __STDC__
25411 # include <limits.h>
25412 #else
25413 # include <assert.h>
25414 #endif
25415
25416 #undef $ac_func
25417
25418 /* Override any GCC internal prototype to avoid an error.
25419    Use char because int might match the return type of a GCC
25420    builtin and then its argument prototype would still apply.  */
25421 #ifdef __cplusplus
25422 extern "C"
25423 #endif
25424 char $ac_func ();
25425 /* The GNU C library defines this for functions which it implements
25426     to always fail with ENOSYS.  Some functions are actually named
25427     something starting with __ and the normal name is an alias.  */
25428 #if defined __stub_$ac_func || defined __stub___$ac_func
25429 choke me
25430 #endif
25431
25432 int
25433 main ()
25434 {
25435 return $ac_func ();
25436   ;
25437   return 0;
25438 }
25439 _ACEOF
25440 rm -f conftest.$ac_objext conftest$ac_exeext
25441 if { (ac_try="$ac_link"
25442 case "(($ac_try" in
25443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444   *) ac_try_echo=$ac_try;;
25445 esac
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447   (eval "$ac_link") 2>conftest.er1
25448   ac_status=$?
25449   grep -v '^ *+' conftest.er1 >conftest.err
25450   rm -f conftest.er1
25451   cat conftest.err >&5
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); } && {
25454          test -z "$ac_c_werror_flag" ||
25455          test ! -s conftest.err
25456        } && test -s conftest$ac_exeext &&
25457        $as_test_x conftest$ac_exeext; then
25458   eval "$as_ac_var=yes"
25459 else
25460   echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463         eval "$as_ac_var=no"
25464 fi
25465
25466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25467       conftest$ac_exeext conftest.$ac_ext
25468 fi
25469 ac_res=`eval echo '${'$as_ac_var'}'`
25470                { echo "$as_me:$LINENO: result: $ac_res" >&5
25471 echo "${ECHO_T}$ac_res" >&6; }
25472 if test `eval echo '${'$as_ac_var'}'` = yes; then
25473   cat >>confdefs.h <<_ACEOF
25474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25475 _ACEOF
25476  have_floor=1
25477 fi
25478 done
25479
25480 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25481 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25482 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25483     { echo "$as_me:$LINENO: result: yes" >&5
25484 echo "${ECHO_T}yes" >&6; }
25485 else
25486     { echo "$as_me:$LINENO: result: no" >&5
25487 echo "${ECHO_T}no" >&6; }
25488     LIBS="$LIBS -lm"
25489     # use different functions to avoid configure caching
25490     have_sin=0
25491     have_ceil=0
25492
25493 for ac_func in sin
25494 do
25495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25499   echo $ECHO_N "(cached) $ECHO_C" >&6
25500 else
25501   cat >conftest.$ac_ext <<_ACEOF
25502 /* confdefs.h.  */
25503 _ACEOF
25504 cat confdefs.h >>conftest.$ac_ext
25505 cat >>conftest.$ac_ext <<_ACEOF
25506 /* end confdefs.h.  */
25507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25509 #define $ac_func innocuous_$ac_func
25510
25511 /* System header to define __stub macros and hopefully few prototypes,
25512     which can conflict with char $ac_func (); below.
25513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25514     <limits.h> exists even on freestanding compilers.  */
25515
25516 #ifdef __STDC__
25517 # include <limits.h>
25518 #else
25519 # include <assert.h>
25520 #endif
25521
25522 #undef $ac_func
25523
25524 /* Override any GCC internal prototype to avoid an error.
25525    Use char because int might match the return type of a GCC
25526    builtin and then its argument prototype would still apply.  */
25527 #ifdef __cplusplus
25528 extern "C"
25529 #endif
25530 char $ac_func ();
25531 /* The GNU C library defines this for functions which it implements
25532     to always fail with ENOSYS.  Some functions are actually named
25533     something starting with __ and the normal name is an alias.  */
25534 #if defined __stub_$ac_func || defined __stub___$ac_func
25535 choke me
25536 #endif
25537
25538 int
25539 main ()
25540 {
25541 return $ac_func ();
25542   ;
25543   return 0;
25544 }
25545 _ACEOF
25546 rm -f conftest.$ac_objext conftest$ac_exeext
25547 if { (ac_try="$ac_link"
25548 case "(($ac_try" in
25549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550   *) ac_try_echo=$ac_try;;
25551 esac
25552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25553   (eval "$ac_link") 2>conftest.er1
25554   ac_status=$?
25555   grep -v '^ *+' conftest.er1 >conftest.err
25556   rm -f conftest.er1
25557   cat conftest.err >&5
25558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559   (exit $ac_status); } && {
25560          test -z "$ac_c_werror_flag" ||
25561          test ! -s conftest.err
25562        } && test -s conftest$ac_exeext &&
25563        $as_test_x conftest$ac_exeext; then
25564   eval "$as_ac_var=yes"
25565 else
25566   echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25568
25569         eval "$as_ac_var=no"
25570 fi
25571
25572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25573       conftest$ac_exeext conftest.$ac_ext
25574 fi
25575 ac_res=`eval echo '${'$as_ac_var'}'`
25576                { echo "$as_me:$LINENO: result: $ac_res" >&5
25577 echo "${ECHO_T}$ac_res" >&6; }
25578 if test `eval echo '${'$as_ac_var'}'` = yes; then
25579   cat >>confdefs.h <<_ACEOF
25580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25581 _ACEOF
25582  have_sin=1
25583 fi
25584 done
25585
25586
25587 for ac_func in ceil
25588 do
25589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25593   echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595   cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25603 #define $ac_func innocuous_$ac_func
25604
25605 /* System header to define __stub macros and hopefully few prototypes,
25606     which can conflict with char $ac_func (); below.
25607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25608     <limits.h> exists even on freestanding compilers.  */
25609
25610 #ifdef __STDC__
25611 # include <limits.h>
25612 #else
25613 # include <assert.h>
25614 #endif
25615
25616 #undef $ac_func
25617
25618 /* Override any GCC internal prototype to avoid an error.
25619    Use char because int might match the return type of a GCC
25620    builtin and then its argument prototype would still apply.  */
25621 #ifdef __cplusplus
25622 extern "C"
25623 #endif
25624 char $ac_func ();
25625 /* The GNU C library defines this for functions which it implements
25626     to always fail with ENOSYS.  Some functions are actually named
25627     something starting with __ and the normal name is an alias.  */
25628 #if defined __stub_$ac_func || defined __stub___$ac_func
25629 choke me
25630 #endif
25631
25632 int
25633 main ()
25634 {
25635 return $ac_func ();
25636   ;
25637   return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest.$ac_objext conftest$ac_exeext
25641 if { (ac_try="$ac_link"
25642 case "(($ac_try" in
25643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644   *) ac_try_echo=$ac_try;;
25645 esac
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647   (eval "$ac_link") 2>conftest.er1
25648   ac_status=$?
25649   grep -v '^ *+' conftest.er1 >conftest.err
25650   rm -f conftest.er1
25651   cat conftest.err >&5
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); } && {
25654          test -z "$ac_c_werror_flag" ||
25655          test ! -s conftest.err
25656        } && test -s conftest$ac_exeext &&
25657        $as_test_x conftest$ac_exeext; then
25658   eval "$as_ac_var=yes"
25659 else
25660   echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25662
25663         eval "$as_ac_var=no"
25664 fi
25665
25666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25667       conftest$ac_exeext conftest.$ac_ext
25668 fi
25669 ac_res=`eval echo '${'$as_ac_var'}'`
25670                { echo "$as_me:$LINENO: result: $ac_res" >&5
25671 echo "${ECHO_T}$ac_res" >&6; }
25672 if test `eval echo '${'$as_ac_var'}'` = yes; then
25673   cat >>confdefs.h <<_ACEOF
25674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25675 _ACEOF
25676  have_ceil=1
25677 fi
25678 done
25679
25680     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25681 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
25682     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25683         { echo "$as_me:$LINENO: result: yes" >&5
25684 echo "${ECHO_T}yes" >&6; }
25685     else
25686         { echo "$as_me:$LINENO: result: no" >&5
25687 echo "${ECHO_T}no" >&6; }
25688         # not sure we should warn the user, crash, etc.
25689     fi
25690 fi
25691
25692 ac_ext=cpp
25693 ac_cpp='$CXXCPP $CPPFLAGS'
25694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25697
25698 if test "wxUSE_UNICODE" = "yes"; then
25699
25700   for wx_func in wcstoull
25701   do
25702     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25703 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25704 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25705   echo $ECHO_N "(cached) $ECHO_C" >&6
25706 else
25707
25708         cat >conftest.$ac_ext <<_ACEOF
25709
25710             /* confdefs.h.  */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h.  */
25715
25716
25717                 $ac_includes_default
25718
25719 int
25720 main ()
25721 {
25722
25723                 #ifndef $wx_func
25724                   &$wx_func;
25725                 #endif
25726
25727
25728   ;
25729   return 0;
25730 }
25731
25732 _ACEOF
25733 rm -f conftest.$ac_objext conftest$ac_exeext
25734 if { (ac_try="$ac_link"
25735 case "(($ac_try" in
25736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737   *) ac_try_echo=$ac_try;;
25738 esac
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740   (eval "$ac_link") 2>conftest.er1
25741   ac_status=$?
25742   grep -v '^ *+' conftest.er1 >conftest.err
25743   rm -f conftest.er1
25744   cat conftest.err >&5
25745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746   (exit $ac_status); } && {
25747          test -z "$ac_cxx_werror_flag" ||
25748          test ! -s conftest.err
25749        } && test -s conftest$ac_exeext &&
25750        $as_test_x conftest$ac_exeext; then
25751   eval wx_cv_func_$wx_func=yes
25752 else
25753   echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756         eval wx_cv_func_$wx_func=no
25757 fi
25758
25759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25760       conftest$ac_exeext conftest.$ac_ext
25761
25762 fi
25763 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25764                { echo "$as_me:$LINENO: result: $ac_res" >&5
25765 echo "${ECHO_T}$ac_res" >&6; }
25766
25767     if eval test \$wx_cv_func_$wx_func = yes
25768     then
25769       cat >>confdefs.h <<_ACEOF
25770 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25771 _ACEOF
25772
25773
25774     else
25775       :
25776
25777     fi
25778   done
25779
25780 else
25781
25782   for wx_func in strtoull
25783   do
25784     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25785 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25786 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25787   echo $ECHO_N "(cached) $ECHO_C" >&6
25788 else
25789
25790         cat >conftest.$ac_ext <<_ACEOF
25791
25792             /* confdefs.h.  */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h.  */
25797
25798
25799                 $ac_includes_default
25800
25801 int
25802 main ()
25803 {
25804
25805                 #ifndef $wx_func
25806                   &$wx_func;
25807                 #endif
25808
25809
25810   ;
25811   return 0;
25812 }
25813
25814 _ACEOF
25815 rm -f conftest.$ac_objext conftest$ac_exeext
25816 if { (ac_try="$ac_link"
25817 case "(($ac_try" in
25818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819   *) ac_try_echo=$ac_try;;
25820 esac
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822   (eval "$ac_link") 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } && {
25829          test -z "$ac_cxx_werror_flag" ||
25830          test ! -s conftest.err
25831        } && test -s conftest$ac_exeext &&
25832        $as_test_x conftest$ac_exeext; then
25833   eval wx_cv_func_$wx_func=yes
25834 else
25835   echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25837
25838         eval wx_cv_func_$wx_func=no
25839 fi
25840
25841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25842       conftest$ac_exeext conftest.$ac_ext
25843
25844 fi
25845 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25846                { echo "$as_me:$LINENO: result: $ac_res" >&5
25847 echo "${ECHO_T}$ac_res" >&6; }
25848
25849     if eval test \$wx_cv_func_$wx_func = yes
25850     then
25851       cat >>confdefs.h <<_ACEOF
25852 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25853 _ACEOF
25854
25855
25856     else
25857       :
25858
25859     fi
25860   done
25861
25862 fi
25863 ac_ext=c
25864 ac_cpp='$CPP $CPPFLAGS'
25865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25868
25869
25870
25871
25872 if test "$wxUSE_REGEX" != "no"; then
25873     cat >>confdefs.h <<\_ACEOF
25874 #define wxUSE_REGEX 1
25875 _ACEOF
25876
25877
25878     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25879         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
25880 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
25881         wxUSE_REGEX=builtin
25882     fi
25883
25884     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25885                         { echo "$as_me:$LINENO: checking for regex.h" >&5
25886 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
25887 if test "${ac_cv_header_regex_h+set}" = set; then
25888   echo $ECHO_N "(cached) $ECHO_C" >&6
25889 else
25890   cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h.  */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h.  */
25896
25897
25898 #include <regex.h>
25899 _ACEOF
25900 rm -f conftest.$ac_objext
25901 if { (ac_try="$ac_compile"
25902 case "(($ac_try" in
25903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904   *) ac_try_echo=$ac_try;;
25905 esac
25906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25907   (eval "$ac_compile") 2>conftest.er1
25908   ac_status=$?
25909   grep -v '^ *+' conftest.er1 >conftest.err
25910   rm -f conftest.er1
25911   cat conftest.err >&5
25912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913   (exit $ac_status); } && {
25914          test -z "$ac_c_werror_flag" ||
25915          test ! -s conftest.err
25916        } && test -s conftest.$ac_objext; then
25917   ac_cv_header_regex_h=yes
25918 else
25919   echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25921
25922         ac_cv_header_regex_h=no
25923 fi
25924
25925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25926 fi
25927 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25928 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
25929 if test $ac_cv_header_regex_h = yes; then
25930
25931
25932 for ac_func in regcomp re_search
25933 do
25934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25938   echo $ECHO_N "(cached) $ECHO_C" >&6
25939 else
25940   cat >conftest.$ac_ext <<_ACEOF
25941 /* confdefs.h.  */
25942 _ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h.  */
25946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25948 #define $ac_func innocuous_$ac_func
25949
25950 /* System header to define __stub macros and hopefully few prototypes,
25951     which can conflict with char $ac_func (); below.
25952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25953     <limits.h> exists even on freestanding compilers.  */
25954
25955 #ifdef __STDC__
25956 # include <limits.h>
25957 #else
25958 # include <assert.h>
25959 #endif
25960
25961 #undef $ac_func
25962
25963 /* Override any GCC internal prototype to avoid an error.
25964    Use char because int might match the return type of a GCC
25965    builtin and then its argument prototype would still apply.  */
25966 #ifdef __cplusplus
25967 extern "C"
25968 #endif
25969 char $ac_func ();
25970 /* The GNU C library defines this for functions which it implements
25971     to always fail with ENOSYS.  Some functions are actually named
25972     something starting with __ and the normal name is an alias.  */
25973 #if defined __stub_$ac_func || defined __stub___$ac_func
25974 choke me
25975 #endif
25976
25977 int
25978 main ()
25979 {
25980 return $ac_func ();
25981   ;
25982   return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest.$ac_objext conftest$ac_exeext
25986 if { (ac_try="$ac_link"
25987 case "(($ac_try" in
25988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989   *) ac_try_echo=$ac_try;;
25990 esac
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992   (eval "$ac_link") 2>conftest.er1
25993   ac_status=$?
25994   grep -v '^ *+' conftest.er1 >conftest.err
25995   rm -f conftest.er1
25996   cat conftest.err >&5
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } && {
25999          test -z "$ac_c_werror_flag" ||
26000          test ! -s conftest.err
26001        } && test -s conftest$ac_exeext &&
26002        $as_test_x conftest$ac_exeext; then
26003   eval "$as_ac_var=yes"
26004 else
26005   echo "$as_me: failed program was:" >&5
26006 sed 's/^/| /' conftest.$ac_ext >&5
26007
26008         eval "$as_ac_var=no"
26009 fi
26010
26011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26012       conftest$ac_exeext conftest.$ac_ext
26013 fi
26014 ac_res=`eval echo '${'$as_ac_var'}'`
26015                { echo "$as_me:$LINENO: result: $ac_res" >&5
26016 echo "${ECHO_T}$ac_res" >&6; }
26017 if test `eval echo '${'$as_ac_var'}'` = yes; then
26018   cat >>confdefs.h <<_ACEOF
26019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26020 _ACEOF
26021
26022 fi
26023 done
26024
26025 fi
26026
26027
26028
26029         if test "x$ac_cv_func_regcomp" != "xyes"; then
26030             if test "$wxUSE_REGEX" = "sys" ; then
26031                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26032 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26033    { (exit 1); exit 1; }; }
26034             else
26035                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26036 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26037                 wxUSE_REGEX=builtin
26038             fi
26039         else
26040                         wxUSE_REGEX=sys
26041                         cat >>confdefs.h <<\_ACEOF
26042 #define WX_NO_REGEX_ADVANCED 1
26043 _ACEOF
26044
26045         fi
26046     fi
26047 fi
26048
26049
26050 ZLIB_LINK=
26051 if test "$wxUSE_ZLIB" != "no" ; then
26052     cat >>confdefs.h <<\_ACEOF
26053 #define wxUSE_ZLIB 1
26054 _ACEOF
26055
26056
26057     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26058                                                 if test "$USE_DARWIN" = 1; then
26059             system_zlib_h_ok="yes"
26060         else
26061                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26062 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26063 if test "${ac_cv_header_zlib_h+set}" = set; then
26064   echo $ECHO_N "(cached) $ECHO_C" >&6
26065 else
26066   if test "$cross_compiling" = yes; then
26067                       unset ac_cv_header_zlib_h
26068
26069 else
26070   cat >conftest.$ac_ext <<_ACEOF
26071 /* confdefs.h.  */
26072 _ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h.  */
26076
26077                         #include <zlib.h>
26078                         #include <stdio.h>
26079
26080                         int main()
26081                         {
26082                             FILE *f=fopen("conftestval", "w");
26083                             if (!f) exit(1);
26084                             fprintf(f, "%s",
26085                                     ZLIB_VERSION[0] == '1' &&
26086                                     (ZLIB_VERSION[2] > '1' ||
26087                                     (ZLIB_VERSION[2] == '1' &&
26088                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26089                             exit(0);
26090                         }
26091
26092 _ACEOF
26093 rm -f conftest$ac_exeext
26094 if { (ac_try="$ac_link"
26095 case "(($ac_try" in
26096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26097   *) ac_try_echo=$ac_try;;
26098 esac
26099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26100   (eval "$ac_link") 2>&5
26101   ac_status=$?
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26104   { (case "(($ac_try" in
26105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106   *) ac_try_echo=$ac_try;;
26107 esac
26108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109   (eval "$ac_try") 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; }; then
26113   ac_cv_header_zlib_h=`cat conftestval`
26114 else
26115   echo "$as_me: program exited with status $ac_status" >&5
26116 echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26118
26119 ( exit $ac_status )
26120 ac_cv_header_zlib_h=no
26121 fi
26122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26123 fi
26124
26125
26126
26127 fi
26128 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26129 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26130                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26131 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26132 if test "${ac_cv_header_zlib_h+set}" = set; then
26133   echo $ECHO_N "(cached) $ECHO_C" >&6
26134 else
26135   cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141
26142
26143 #include <zlib.h>
26144 _ACEOF
26145 rm -f conftest.$ac_objext
26146 if { (ac_try="$ac_compile"
26147 case "(($ac_try" in
26148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149   *) ac_try_echo=$ac_try;;
26150 esac
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152   (eval "$ac_compile") 2>conftest.er1
26153   ac_status=$?
26154   grep -v '^ *+' conftest.er1 >conftest.err
26155   rm -f conftest.er1
26156   cat conftest.err >&5
26157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); } && {
26159          test -z "$ac_c_werror_flag" ||
26160          test ! -s conftest.err
26161        } && test -s conftest.$ac_objext; then
26162   ac_cv_header_zlib_h=yes
26163 else
26164   echo "$as_me: failed program was:" >&5
26165 sed 's/^/| /' conftest.$ac_ext >&5
26166
26167         ac_cv_header_zlib_h=no
26168 fi
26169
26170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26171 fi
26172 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26173 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26174
26175
26176
26177             system_zlib_h_ok=$ac_cv_header_zlib_h
26178         fi
26179
26180         if test "$system_zlib_h_ok" = "yes"; then
26181             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26182 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26183 if test "${ac_cv_lib_z_deflate+set}" = set; then
26184   echo $ECHO_N "(cached) $ECHO_C" >&6
26185 else
26186   ac_check_lib_save_LIBS=$LIBS
26187 LIBS="-lz  $LIBS"
26188 cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h.  */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h.  */
26194
26195 /* Override any GCC internal prototype to avoid an error.
26196    Use char because int might match the return type of a GCC
26197    builtin and then its argument prototype would still apply.  */
26198 #ifdef __cplusplus
26199 extern "C"
26200 #endif
26201 char deflate ();
26202 int
26203 main ()
26204 {
26205 return deflate ();
26206   ;
26207   return 0;
26208 }
26209 _ACEOF
26210 rm -f conftest.$ac_objext conftest$ac_exeext
26211 if { (ac_try="$ac_link"
26212 case "(($ac_try" in
26213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26214   *) ac_try_echo=$ac_try;;
26215 esac
26216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26217   (eval "$ac_link") 2>conftest.er1
26218   ac_status=$?
26219   grep -v '^ *+' conftest.er1 >conftest.err
26220   rm -f conftest.er1
26221   cat conftest.err >&5
26222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); } && {
26224          test -z "$ac_c_werror_flag" ||
26225          test ! -s conftest.err
26226        } && test -s conftest$ac_exeext &&
26227        $as_test_x conftest$ac_exeext; then
26228   ac_cv_lib_z_deflate=yes
26229 else
26230   echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26232
26233         ac_cv_lib_z_deflate=no
26234 fi
26235
26236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26237       conftest$ac_exeext conftest.$ac_ext
26238 LIBS=$ac_check_lib_save_LIBS
26239 fi
26240 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26241 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26242 if test $ac_cv_lib_z_deflate = yes; then
26243   ZLIB_LINK=" -lz"
26244 fi
26245
26246         fi
26247
26248         if test "x$ZLIB_LINK" = "x" ; then
26249             if test "$wxUSE_ZLIB" = "sys" ; then
26250                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26251 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26252    { (exit 1); exit 1; }; }
26253             else
26254                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26255 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26256                 wxUSE_ZLIB=builtin
26257             fi
26258         else
26259                         wxUSE_ZLIB=sys
26260         fi
26261     fi
26262 fi
26263
26264
26265 PNG_LINK=
26266 if test "$wxUSE_LIBPNG" != "no" ; then
26267     cat >>confdefs.h <<\_ACEOF
26268 #define wxUSE_LIBPNG 1
26269 _ACEOF
26270
26271
26272     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26273         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26274 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26275         wxUSE_LIBPNG=sys
26276     fi
26277
26278                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26279         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26280 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26281         wxUSE_LIBPNG=builtin
26282     fi
26283
26284     if test "$wxUSE_MGL" != 1 ; then
26285                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26286                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26287 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26288 if test "${ac_cv_header_png_h+set}" = set; then
26289   echo $ECHO_N "(cached) $ECHO_C" >&6
26290 else
26291   if test "$cross_compiling" = yes; then
26292                       unset ac_cv_header_png_h
26293
26294 else
26295   cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301
26302                         #include <png.h>
26303                         #include <stdio.h>
26304
26305                         int main()
26306                         {
26307                             FILE *f=fopen("conftestval", "w");
26308                             if (!f) exit(1);
26309                             fprintf(f, "%s",
26310                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26311                             exit(0);
26312                         }
26313
26314 _ACEOF
26315 rm -f conftest$ac_exeext
26316 if { (ac_try="$ac_link"
26317 case "(($ac_try" in
26318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319   *) ac_try_echo=$ac_try;;
26320 esac
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322   (eval "$ac_link") 2>&5
26323   ac_status=$?
26324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26326   { (case "(($ac_try" in
26327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328   *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331   (eval "$ac_try") 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335   ac_cv_header_png_h=`cat conftestval`
26336 else
26337   echo "$as_me: program exited with status $ac_status" >&5
26338 echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26340
26341 ( exit $ac_status )
26342 ac_cv_header_png_h=no
26343 fi
26344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26345 fi
26346
26347
26348
26349 fi
26350 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26351 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26352             { echo "$as_me:$LINENO: checking for png.h" >&5
26353 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26354 if test "${ac_cv_header_png_h+set}" = set; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 else
26357   cat >conftest.$ac_ext <<_ACEOF
26358 /* confdefs.h.  */
26359 _ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h.  */
26363
26364
26365 #include <png.h>
26366 _ACEOF
26367 rm -f conftest.$ac_objext
26368 if { (ac_try="$ac_compile"
26369 case "(($ac_try" in
26370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26371   *) ac_try_echo=$ac_try;;
26372 esac
26373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26374   (eval "$ac_compile") 2>conftest.er1
26375   ac_status=$?
26376   grep -v '^ *+' conftest.er1 >conftest.err
26377   rm -f conftest.er1
26378   cat conftest.err >&5
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); } && {
26381          test -z "$ac_c_werror_flag" ||
26382          test ! -s conftest.err
26383        } && test -s conftest.$ac_objext; then
26384   ac_cv_header_png_h=yes
26385 else
26386   echo "$as_me: failed program was:" >&5
26387 sed 's/^/| /' conftest.$ac_ext >&5
26388
26389         ac_cv_header_png_h=no
26390 fi
26391
26392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393 fi
26394 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26395 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26396
26397
26398
26399             if test "$ac_cv_header_png_h" = "yes"; then
26400                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26401 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26402 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26403   echo $ECHO_N "(cached) $ECHO_C" >&6
26404 else
26405   ac_check_lib_save_LIBS=$LIBS
26406 LIBS="-lpng -lz -lm $LIBS"
26407 cat >conftest.$ac_ext <<_ACEOF
26408 /* confdefs.h.  */
26409 _ACEOF
26410 cat confdefs.h >>conftest.$ac_ext
26411 cat >>conftest.$ac_ext <<_ACEOF
26412 /* end confdefs.h.  */
26413
26414 /* Override any GCC internal prototype to avoid an error.
26415    Use char because int might match the return type of a GCC
26416    builtin and then its argument prototype would still apply.  */
26417 #ifdef __cplusplus
26418 extern "C"
26419 #endif
26420 char png_check_sig ();
26421 int
26422 main ()
26423 {
26424 return png_check_sig ();
26425   ;
26426   return 0;
26427 }
26428 _ACEOF
26429 rm -f conftest.$ac_objext conftest$ac_exeext
26430 if { (ac_try="$ac_link"
26431 case "(($ac_try" in
26432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26433   *) ac_try_echo=$ac_try;;
26434 esac
26435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26436   (eval "$ac_link") 2>conftest.er1
26437   ac_status=$?
26438   grep -v '^ *+' conftest.er1 >conftest.err
26439   rm -f conftest.er1
26440   cat conftest.err >&5
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); } && {
26443          test -z "$ac_c_werror_flag" ||
26444          test ! -s conftest.err
26445        } && test -s conftest$ac_exeext &&
26446        $as_test_x conftest$ac_exeext; then
26447   ac_cv_lib_png_png_check_sig=yes
26448 else
26449   echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26451
26452         ac_cv_lib_png_png_check_sig=no
26453 fi
26454
26455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26456       conftest$ac_exeext conftest.$ac_ext
26457 LIBS=$ac_check_lib_save_LIBS
26458 fi
26459 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26460 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26461 if test $ac_cv_lib_png_png_check_sig = yes; then
26462   PNG_LINK=" -lpng -lz"
26463 fi
26464
26465             fi
26466
26467             if test "x$PNG_LINK" = "x" ; then
26468                 if test "$wxUSE_LIBPNG" = "sys" ; then
26469                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26470 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26471    { (exit 1); exit 1; }; }
26472                 else
26473                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26474 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26475                     wxUSE_LIBPNG=builtin
26476                 fi
26477             else
26478                                 wxUSE_LIBPNG=sys
26479             fi
26480         fi
26481     fi
26482 fi
26483
26484
26485 JPEG_LINK=
26486 if test "$wxUSE_LIBJPEG" != "no" ; then
26487     cat >>confdefs.h <<\_ACEOF
26488 #define wxUSE_LIBJPEG 1
26489 _ACEOF
26490
26491
26492     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26493         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26494 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26495         wxUSE_LIBJPEG=sys
26496     fi
26497
26498     if test "$wxUSE_MGL" != 1 ; then
26499                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26500                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26501 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26502             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26503   echo $ECHO_N "(cached) $ECHO_C" >&6
26504 else
26505   cat >conftest.$ac_ext <<_ACEOF
26506 /* confdefs.h.  */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h.  */
26511
26512                         #undef HAVE_STDLIB_H
26513                         #include <stdio.h>
26514                         #include <jpeglib.h>
26515
26516 int
26517 main ()
26518 {
26519
26520
26521   ;
26522   return 0;
26523 }
26524 _ACEOF
26525 rm -f conftest.$ac_objext
26526 if { (ac_try="$ac_compile"
26527 case "(($ac_try" in
26528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26529   *) ac_try_echo=$ac_try;;
26530 esac
26531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26532   (eval "$ac_compile") 2>conftest.er1
26533   ac_status=$?
26534   grep -v '^ *+' conftest.er1 >conftest.err
26535   rm -f conftest.er1
26536   cat conftest.err >&5
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); } && {
26539          test -z "$ac_c_werror_flag" ||
26540          test ! -s conftest.err
26541        } && test -s conftest.$ac_objext; then
26542   ac_cv_header_jpeglib_h=yes
26543 else
26544   echo "$as_me: failed program was:" >&5
26545 sed 's/^/| /' conftest.$ac_ext >&5
26546
26547         ac_cv_header_jpeglib_h=no
26548
26549 fi
26550
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552
26553 fi
26554
26555             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26556 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26557
26558             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26559                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26560 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26561 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26562   echo $ECHO_N "(cached) $ECHO_C" >&6
26563 else
26564   ac_check_lib_save_LIBS=$LIBS
26565 LIBS="-ljpeg  $LIBS"
26566 cat >conftest.$ac_ext <<_ACEOF
26567 /* confdefs.h.  */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h.  */
26572
26573 /* Override any GCC internal prototype to avoid an error.
26574    Use char because int might match the return type of a GCC
26575    builtin and then its argument prototype would still apply.  */
26576 #ifdef __cplusplus
26577 extern "C"
26578 #endif
26579 char jpeg_read_header ();
26580 int
26581 main ()
26582 {
26583 return jpeg_read_header ();
26584   ;
26585   return 0;
26586 }
26587 _ACEOF
26588 rm -f conftest.$ac_objext conftest$ac_exeext
26589 if { (ac_try="$ac_link"
26590 case "(($ac_try" in
26591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592   *) ac_try_echo=$ac_try;;
26593 esac
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595   (eval "$ac_link") 2>conftest.er1
26596   ac_status=$?
26597   grep -v '^ *+' conftest.er1 >conftest.err
26598   rm -f conftest.er1
26599   cat conftest.err >&5
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); } && {
26602          test -z "$ac_c_werror_flag" ||
26603          test ! -s conftest.err
26604        } && test -s conftest$ac_exeext &&
26605        $as_test_x conftest$ac_exeext; then
26606   ac_cv_lib_jpeg_jpeg_read_header=yes
26607 else
26608   echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611         ac_cv_lib_jpeg_jpeg_read_header=no
26612 fi
26613
26614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26615       conftest$ac_exeext conftest.$ac_ext
26616 LIBS=$ac_check_lib_save_LIBS
26617 fi
26618 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26619 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26620 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26621   JPEG_LINK=" -ljpeg"
26622 fi
26623
26624             fi
26625
26626             if test "x$JPEG_LINK" = "x" ; then
26627                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26628                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26629 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26630    { (exit 1); exit 1; }; }
26631                 else
26632                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26633 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26634                     wxUSE_LIBJPEG=builtin
26635                 fi
26636             else
26637                                 wxUSE_LIBJPEG=sys
26638
26639                 if test "$wxUSE_MSW" = 1; then
26640                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26641 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26642 if test "${ac_cv_type_boolean+set}" = set; then
26643   echo $ECHO_N "(cached) $ECHO_C" >&6
26644 else
26645   cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h.  */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h.  */
26651 #include <windows.h>
26652
26653 typedef boolean ac__type_new_;
26654 int
26655 main ()
26656 {
26657 if ((ac__type_new_ *) 0)
26658   return 0;
26659 if (sizeof (ac__type_new_))
26660   return 0;
26661   ;
26662   return 0;
26663 }
26664 _ACEOF
26665 rm -f conftest.$ac_objext
26666 if { (ac_try="$ac_compile"
26667 case "(($ac_try" in
26668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669   *) ac_try_echo=$ac_try;;
26670 esac
26671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26672   (eval "$ac_compile") 2>conftest.er1
26673   ac_status=$?
26674   grep -v '^ *+' conftest.er1 >conftest.err
26675   rm -f conftest.er1
26676   cat conftest.err >&5
26677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); } && {
26679          test -z "$ac_c_werror_flag" ||
26680          test ! -s conftest.err
26681        } && test -s conftest.$ac_objext; then
26682   ac_cv_type_boolean=yes
26683 else
26684   echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26686
26687         ac_cv_type_boolean=no
26688 fi
26689
26690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26691 fi
26692 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26693 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26694 if test $ac_cv_type_boolean = yes; then
26695
26696 cat >>confdefs.h <<_ACEOF
26697 #define HAVE_BOOLEAN 1
26698 _ACEOF
26699
26700
26701                             { echo "$as_me:$LINENO: checking for boolean" >&5
26702 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26703 if test "${ac_cv_type_boolean+set}" = set; then
26704   echo $ECHO_N "(cached) $ECHO_C" >&6
26705 else
26706   cat >conftest.$ac_ext <<_ACEOF
26707 /* confdefs.h.  */
26708 _ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h.  */
26712
26713                                     #undef HAVE_BOOLEAN
26714                                     #include <stdio.h>
26715                                     #include <jpeglib.h>
26716
26717
26718 typedef boolean ac__type_new_;
26719 int
26720 main ()
26721 {
26722 if ((ac__type_new_ *) 0)
26723   return 0;
26724 if (sizeof (ac__type_new_))
26725   return 0;
26726   ;
26727   return 0;
26728 }
26729 _ACEOF
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734   *) ac_try_echo=$ac_try;;
26735 esac
26736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26737   (eval "$ac_compile") 2>conftest.er1
26738   ac_status=$?
26739   grep -v '^ *+' conftest.er1 >conftest.err
26740   rm -f conftest.er1
26741   cat conftest.err >&5
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } && {
26744          test -z "$ac_c_werror_flag" ||
26745          test ! -s conftest.err
26746        } && test -s conftest.$ac_objext; then
26747   ac_cv_type_boolean=yes
26748 else
26749   echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26751
26752         ac_cv_type_boolean=no
26753 fi
26754
26755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26756 fi
26757 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26758 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26759
26760 # The cast to long int works around a bug in the HP C Compiler
26761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26763 # This bug is HP SR number 8606223364.
26764 { echo "$as_me:$LINENO: checking size of boolean" >&5
26765 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
26766 if test "${ac_cv_sizeof_boolean+set}" = set; then
26767   echo $ECHO_N "(cached) $ECHO_C" >&6
26768 else
26769   if test "$cross_compiling" = yes; then
26770   # Depending upon the size, compute the lo and hi bounds.
26771 cat >conftest.$ac_ext <<_ACEOF
26772 /* confdefs.h.  */
26773 _ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h.  */
26777
26778                                     #undef HAVE_BOOLEAN
26779                                     #include <stdio.h>
26780                                     #include <jpeglib.h>
26781
26782
26783    typedef boolean ac__type_sizeof_;
26784 int
26785 main ()
26786 {
26787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26788 test_array [0] = 0
26789
26790   ;
26791   return 0;
26792 }
26793 _ACEOF
26794 rm -f conftest.$ac_objext
26795 if { (ac_try="$ac_compile"
26796 case "(($ac_try" in
26797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798   *) ac_try_echo=$ac_try;;
26799 esac
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801   (eval "$ac_compile") 2>conftest.er1
26802   ac_status=$?
26803   grep -v '^ *+' conftest.er1 >conftest.err
26804   rm -f conftest.er1
26805   cat conftest.err >&5
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); } && {
26808          test -z "$ac_c_werror_flag" ||
26809          test ! -s conftest.err
26810        } && test -s conftest.$ac_objext; then
26811   ac_lo=0 ac_mid=0
26812   while :; do
26813     cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h.  */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h.  */
26819
26820                                     #undef HAVE_BOOLEAN
26821                                     #include <stdio.h>
26822                                     #include <jpeglib.h>
26823
26824
26825    typedef boolean ac__type_sizeof_;
26826 int
26827 main ()
26828 {
26829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26830 test_array [0] = 0
26831
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 rm -f conftest.$ac_objext
26837 if { (ac_try="$ac_compile"
26838 case "(($ac_try" in
26839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840   *) ac_try_echo=$ac_try;;
26841 esac
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843   (eval "$ac_compile") 2>conftest.er1
26844   ac_status=$?
26845   grep -v '^ *+' conftest.er1 >conftest.err
26846   rm -f conftest.er1
26847   cat conftest.err >&5
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); } && {
26850          test -z "$ac_c_werror_flag" ||
26851          test ! -s conftest.err
26852        } && test -s conftest.$ac_objext; then
26853   ac_hi=$ac_mid; break
26854 else
26855   echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858         ac_lo=`expr $ac_mid + 1`
26859                         if test $ac_lo -le $ac_mid; then
26860                           ac_lo= ac_hi=
26861                           break
26862                         fi
26863                         ac_mid=`expr 2 '*' $ac_mid + 1`
26864 fi
26865
26866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26867   done
26868 else
26869   echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872         cat >conftest.$ac_ext <<_ACEOF
26873 /* confdefs.h.  */
26874 _ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h.  */
26878
26879                                     #undef HAVE_BOOLEAN
26880                                     #include <stdio.h>
26881                                     #include <jpeglib.h>
26882
26883
26884    typedef boolean ac__type_sizeof_;
26885 int
26886 main ()
26887 {
26888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26889 test_array [0] = 0
26890
26891   ;
26892   return 0;
26893 }
26894 _ACEOF
26895 rm -f conftest.$ac_objext
26896 if { (ac_try="$ac_compile"
26897 case "(($ac_try" in
26898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899   *) ac_try_echo=$ac_try;;
26900 esac
26901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902   (eval "$ac_compile") 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } && {
26909          test -z "$ac_c_werror_flag" ||
26910          test ! -s conftest.err
26911        } && test -s conftest.$ac_objext; then
26912   ac_hi=-1 ac_mid=-1
26913   while :; do
26914     cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h.  */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h.  */
26920
26921                                     #undef HAVE_BOOLEAN
26922                                     #include <stdio.h>
26923                                     #include <jpeglib.h>
26924
26925
26926    typedef boolean ac__type_sizeof_;
26927 int
26928 main ()
26929 {
26930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26931 test_array [0] = 0
26932
26933   ;
26934   return 0;
26935 }
26936 _ACEOF
26937 rm -f conftest.$ac_objext
26938 if { (ac_try="$ac_compile"
26939 case "(($ac_try" in
26940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941   *) ac_try_echo=$ac_try;;
26942 esac
26943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26944   (eval "$ac_compile") 2>conftest.er1
26945   ac_status=$?
26946   grep -v '^ *+' conftest.er1 >conftest.err
26947   rm -f conftest.er1
26948   cat conftest.err >&5
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); } && {
26951          test -z "$ac_c_werror_flag" ||
26952          test ! -s conftest.err
26953        } && test -s conftest.$ac_objext; then
26954   ac_lo=$ac_mid; break
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959         ac_hi=`expr '(' $ac_mid ')' - 1`
26960                         if test $ac_mid -le $ac_hi; then
26961                           ac_lo= ac_hi=
26962                           break
26963                         fi
26964                         ac_mid=`expr 2 '*' $ac_mid`
26965 fi
26966
26967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26968   done
26969 else
26970   echo "$as_me: failed program was:" >&5
26971 sed 's/^/| /' conftest.$ac_ext >&5
26972
26973         ac_lo= ac_hi=
26974 fi
26975
26976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26977 fi
26978
26979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26980 # Binary search between lo and hi bounds.
26981 while test "x$ac_lo" != "x$ac_hi"; do
26982   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26983   cat >conftest.$ac_ext <<_ACEOF
26984 /* confdefs.h.  */
26985 _ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h.  */
26989
26990                                     #undef HAVE_BOOLEAN
26991                                     #include <stdio.h>
26992                                     #include <jpeglib.h>
26993
26994
26995    typedef boolean ac__type_sizeof_;
26996 int
26997 main ()
26998 {
26999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27000 test_array [0] = 0
27001
27002   ;
27003   return 0;
27004 }
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (ac_try="$ac_compile"
27008 case "(($ac_try" in
27009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010   *) ac_try_echo=$ac_try;;
27011 esac
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013   (eval "$ac_compile") 2>conftest.er1
27014   ac_status=$?
27015   grep -v '^ *+' conftest.er1 >conftest.err
27016   rm -f conftest.er1
27017   cat conftest.err >&5
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); } && {
27020          test -z "$ac_c_werror_flag" ||
27021          test ! -s conftest.err
27022        } && test -s conftest.$ac_objext; then
27023   ac_hi=$ac_mid
27024 else
27025   echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27027
27028         ac_lo=`expr '(' $ac_mid ')' + 1`
27029 fi
27030
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27032 done
27033 case $ac_lo in
27034 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27035 '') if test "$ac_cv_type_boolean" = yes; then
27036      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27037 See \`config.log' for more details." >&5
27038 echo "$as_me: error: cannot compute sizeof (boolean)
27039 See \`config.log' for more details." >&2;}
27040    { (exit 77); exit 77; }; }
27041    else
27042      ac_cv_sizeof_boolean=0
27043    fi ;;
27044 esac
27045 else
27046   cat >conftest.$ac_ext <<_ACEOF
27047 /* confdefs.h.  */
27048 _ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h.  */
27052
27053                                     #undef HAVE_BOOLEAN
27054                                     #include <stdio.h>
27055                                     #include <jpeglib.h>
27056
27057
27058    typedef boolean ac__type_sizeof_;
27059 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27060 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27061 #include <stdio.h>
27062 #include <stdlib.h>
27063 int
27064 main ()
27065 {
27066
27067   FILE *f = fopen ("conftest.val", "w");
27068   if (! f)
27069     return 1;
27070   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27071     {
27072       long int i = longval ();
27073       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27074         return 1;
27075       fprintf (f, "%ld\n", i);
27076     }
27077   else
27078     {
27079       unsigned long int i = ulongval ();
27080       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27081         return 1;
27082       fprintf (f, "%lu\n", i);
27083     }
27084   return ferror (f) || fclose (f) != 0;
27085
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest$ac_exeext
27091 if { (ac_try="$ac_link"
27092 case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097   (eval "$ac_link") 2>&5
27098   ac_status=$?
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27101   { (case "(($ac_try" in
27102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27103   *) ac_try_echo=$ac_try;;
27104 esac
27105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27106   (eval "$ac_try") 2>&5
27107   ac_status=$?
27108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); }; }; then
27110   ac_cv_sizeof_boolean=`cat conftest.val`
27111 else
27112   echo "$as_me: program exited with status $ac_status" >&5
27113 echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27115
27116 ( exit $ac_status )
27117 if test "$ac_cv_type_boolean" = yes; then
27118      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27119 See \`config.log' for more details." >&5
27120 echo "$as_me: error: cannot compute sizeof (boolean)
27121 See \`config.log' for more details." >&2;}
27122    { (exit 77); exit 77; }; }
27123    else
27124      ac_cv_sizeof_boolean=0
27125    fi
27126 fi
27127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27128 fi
27129 rm -f conftest.val
27130 fi
27131 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27132 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27133
27134
27135
27136 cat >>confdefs.h <<_ACEOF
27137 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27138 _ACEOF
27139
27140
27141                             cat >>confdefs.h <<_ACEOF
27142 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27143 _ACEOF
27144
27145
27146 fi
27147
27148                 fi
27149             fi
27150         fi
27151     fi
27152 fi
27153
27154
27155 TIFF_LINK=
27156 TIFF_PREREQ_LINKS=-lm
27157 if test "$wxUSE_LIBTIFF" != "no" ; then
27158     cat >>confdefs.h <<\_ACEOF
27159 #define wxUSE_LIBTIFF 1
27160 _ACEOF
27161
27162
27163     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27164                         if test "$wxUSE_LIBJPEG" = "sys"; then
27165             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27166         fi
27167         if test "$wxUSE_ZLIB" = "sys"; then
27168             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27169         fi
27170         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27171 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27172 if test "${ac_cv_header_tiffio_h+set}" = set; then
27173   echo $ECHO_N "(cached) $ECHO_C" >&6
27174 else
27175   cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h.  */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h.  */
27181
27182
27183
27184 #include <tiffio.h>
27185 _ACEOF
27186 rm -f conftest.$ac_objext
27187 if { (ac_try="$ac_compile"
27188 case "(($ac_try" in
27189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190   *) ac_try_echo=$ac_try;;
27191 esac
27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193   (eval "$ac_compile") 2>conftest.er1
27194   ac_status=$?
27195   grep -v '^ *+' conftest.er1 >conftest.err
27196   rm -f conftest.er1
27197   cat conftest.err >&5
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } && {
27200          test -z "$ac_c_werror_flag" ||
27201          test ! -s conftest.err
27202        } && test -s conftest.$ac_objext; then
27203   ac_cv_header_tiffio_h=yes
27204 else
27205   echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27207
27208         ac_cv_header_tiffio_h=no
27209 fi
27210
27211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27212 fi
27213 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27214 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27215 if test $ac_cv_header_tiffio_h = yes; then
27216
27217                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27218 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27219 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27220   echo $ECHO_N "(cached) $ECHO_C" >&6
27221 else
27222   ac_check_lib_save_LIBS=$LIBS
27223 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27224 cat >conftest.$ac_ext <<_ACEOF
27225 /* confdefs.h.  */
27226 _ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h.  */
27230
27231 /* Override any GCC internal prototype to avoid an error.
27232    Use char because int might match the return type of a GCC
27233    builtin and then its argument prototype would still apply.  */
27234 #ifdef __cplusplus
27235 extern "C"
27236 #endif
27237 char TIFFError ();
27238 int
27239 main ()
27240 {
27241 return TIFFError ();
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (ac_try="$ac_link"
27248 case "(($ac_try" in
27249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250   *) ac_try_echo=$ac_try;;
27251 esac
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253   (eval "$ac_link") 2>conftest.er1
27254   ac_status=$?
27255   grep -v '^ *+' conftest.er1 >conftest.err
27256   rm -f conftest.er1
27257   cat conftest.err >&5
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); } && {
27260          test -z "$ac_c_werror_flag" ||
27261          test ! -s conftest.err
27262        } && test -s conftest$ac_exeext &&
27263        $as_test_x conftest$ac_exeext; then
27264   ac_cv_lib_tiff_TIFFError=yes
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269         ac_cv_lib_tiff_TIFFError=no
27270 fi
27271
27272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27273       conftest$ac_exeext conftest.$ac_ext
27274 LIBS=$ac_check_lib_save_LIBS
27275 fi
27276 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27277 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27278 if test $ac_cv_lib_tiff_TIFFError = yes; then
27279   TIFF_LINK=" -ltiff"
27280 fi
27281
27282
27283 fi
27284
27285
27286
27287         if test "x$TIFF_LINK" = "x" ; then
27288             if test "$wxUSE_LIBTIFF" = "sys" ; then
27289                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27290 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27291    { (exit 1); exit 1; }; }
27292             else
27293                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27294 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27295                 wxUSE_LIBTIFF=builtin
27296             fi
27297         else
27298                         wxUSE_LIBTIFF=sys
27299         fi
27300     fi
27301     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27302         if test "$wxUSE_LIBJPEG" = "no"; then
27303                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27304         fi
27305         subdirs="$subdirs src/tiff"
27306
27307     fi
27308 fi
27309
27310
27311 if test "$wxUSE_WCHAR_T" != "yes"; then
27312     if test "$wxUSE_EXPAT" != "no"; then
27313         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27314 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27315         wxUSE_EXPAT=no
27316     fi
27317     if test "$wxUSE_XML" != "no"; then
27318         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27319 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27320         wxUSE_XML=no
27321     fi
27322 fi
27323
27324 if test "$wxUSE_EXPAT" != "no"; then
27325     wxUSE_XML=yes
27326     cat >>confdefs.h <<\_ACEOF
27327 #define wxUSE_EXPAT 1
27328 _ACEOF
27329
27330     cat >>confdefs.h <<\_ACEOF
27331 #define wxUSE_XML 1
27332 _ACEOF
27333
27334
27335     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27336         { echo "$as_me:$LINENO: checking for expat.h" >&5
27337 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27338 if test "${ac_cv_header_expat_h+set}" = set; then
27339   echo $ECHO_N "(cached) $ECHO_C" >&6
27340 else
27341   cat >conftest.$ac_ext <<_ACEOF
27342 /* confdefs.h.  */
27343 _ACEOF
27344 cat confdefs.h >>conftest.$ac_ext
27345 cat >>conftest.$ac_ext <<_ACEOF
27346 /* end confdefs.h.  */
27347
27348
27349 #include <expat.h>
27350 _ACEOF
27351 rm -f conftest.$ac_objext
27352 if { (ac_try="$ac_compile"
27353 case "(($ac_try" in
27354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355   *) ac_try_echo=$ac_try;;
27356 esac
27357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358   (eval "$ac_compile") 2>conftest.er1
27359   ac_status=$?
27360   grep -v '^ *+' conftest.er1 >conftest.err
27361   rm -f conftest.er1
27362   cat conftest.err >&5
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); } && {
27365          test -z "$ac_c_werror_flag" ||
27366          test ! -s conftest.err
27367        } && test -s conftest.$ac_objext; then
27368   ac_cv_header_expat_h=yes
27369 else
27370   echo "$as_me: failed program was:" >&5
27371 sed 's/^/| /' conftest.$ac_ext >&5
27372
27373         ac_cv_header_expat_h=no
27374 fi
27375
27376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27377 fi
27378 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27379 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27380 if test $ac_cv_header_expat_h = yes; then
27381   found_expat_h=1
27382 fi
27383
27384
27385         if test "x$found_expat_h" = "x1"; then
27386                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27387 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27388 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27389   echo $ECHO_N "(cached) $ECHO_C" >&6
27390 else
27391
27392                 ac_ext=cpp
27393 ac_cpp='$CXXCPP $CPPFLAGS'
27394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27397
27398                 cat >conftest.$ac_ext <<_ACEOF
27399 /* confdefs.h.  */
27400 _ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h.  */
27404 #include <expat.h>
27405 int
27406 main ()
27407 {
27408
27409   ;
27410   return 0;
27411 }
27412 _ACEOF
27413 rm -f conftest.$ac_objext
27414 if { (ac_try="$ac_compile"
27415 case "(($ac_try" in
27416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417   *) ac_try_echo=$ac_try;;
27418 esac
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420   (eval "$ac_compile") 2>conftest.er1
27421   ac_status=$?
27422   grep -v '^ *+' conftest.er1 >conftest.err
27423   rm -f conftest.er1
27424   cat conftest.err >&5
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); } && {
27427          test -z "$ac_cxx_werror_flag" ||
27428          test ! -s conftest.err
27429        } && test -s conftest.$ac_objext; then
27430   wx_cv_expat_is_not_broken=yes
27431 else
27432   echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435         wx_cv_expat_is_not_broken=no
27436
27437 fi
27438
27439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27440                 ac_ext=c
27441 ac_cpp='$CPP $CPPFLAGS'
27442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27445
27446
27447
27448 fi
27449 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27450 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27451             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27452                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27453 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27454 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27455   echo $ECHO_N "(cached) $ECHO_C" >&6
27456 else
27457   ac_check_lib_save_LIBS=$LIBS
27458 LIBS="-lexpat  $LIBS"
27459 cat >conftest.$ac_ext <<_ACEOF
27460 /* confdefs.h.  */
27461 _ACEOF
27462 cat confdefs.h >>conftest.$ac_ext
27463 cat >>conftest.$ac_ext <<_ACEOF
27464 /* end confdefs.h.  */
27465
27466 /* Override any GCC internal prototype to avoid an error.
27467    Use char because int might match the return type of a GCC
27468    builtin and then its argument prototype would still apply.  */
27469 #ifdef __cplusplus
27470 extern "C"
27471 #endif
27472 char XML_ParserCreate ();
27473 int
27474 main ()
27475 {
27476 return XML_ParserCreate ();
27477   ;
27478   return 0;
27479 }
27480 _ACEOF
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485   *) ac_try_echo=$ac_try;;
27486 esac
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488   (eval "$ac_link") 2>conftest.er1
27489   ac_status=$?
27490   grep -v '^ *+' conftest.er1 >conftest.err
27491   rm -f conftest.er1
27492   cat conftest.err >&5
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); } && {
27495          test -z "$ac_c_werror_flag" ||
27496          test ! -s conftest.err
27497        } && test -s conftest$ac_exeext &&
27498        $as_test_x conftest$ac_exeext; then
27499   ac_cv_lib_expat_XML_ParserCreate=yes
27500 else
27501   echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27503
27504         ac_cv_lib_expat_XML_ParserCreate=no
27505 fi
27506
27507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27508       conftest$ac_exeext conftest.$ac_ext
27509 LIBS=$ac_check_lib_save_LIBS
27510 fi
27511 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27512 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27513 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27514   EXPAT_LINK=" -lexpat"
27515 fi
27516
27517             fi
27518         fi
27519         if test "x$EXPAT_LINK" = "x" ; then
27520             if test "$wxUSE_EXPAT" = "sys" ; then
27521                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27522 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27523    { (exit 1); exit 1; }; }
27524             else
27525                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27526 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27527                 wxUSE_EXPAT=builtin
27528             fi
27529         else
27530                         wxUSE_EXPAT=sys
27531         fi
27532     fi
27533     if test "$wxUSE_EXPAT" = "builtin" ; then
27534                 subdirs="$subdirs src/expat"
27535
27536     fi
27537 fi
27538
27539
27540
27541 if test "$wxUSE_LIBMSPACK" != "no"; then
27542     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27543 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27544 if test "${ac_cv_header_mspack_h+set}" = set; then
27545   echo $ECHO_N "(cached) $ECHO_C" >&6
27546 else
27547   cat >conftest.$ac_ext <<_ACEOF
27548 /* confdefs.h.  */
27549 _ACEOF
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h.  */
27553
27554
27555 #include <mspack.h>
27556 _ACEOF
27557 rm -f conftest.$ac_objext
27558 if { (ac_try="$ac_compile"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564   (eval "$ac_compile") 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } && {
27571          test -z "$ac_c_werror_flag" ||
27572          test ! -s conftest.err
27573        } && test -s conftest.$ac_objext; then
27574   ac_cv_header_mspack_h=yes
27575 else
27576   echo "$as_me: failed program was:" >&5
27577 sed 's/^/| /' conftest.$ac_ext >&5
27578
27579         ac_cv_header_mspack_h=no
27580 fi
27581
27582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583 fi
27584 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27585 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27586 if test $ac_cv_header_mspack_h = yes; then
27587   found_mspack_h=1
27588 fi
27589
27590
27591     if test "x$found_mspack_h" = "x1"; then
27592         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27593 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27594 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27595   echo $ECHO_N "(cached) $ECHO_C" >&6
27596 else
27597   ac_check_lib_save_LIBS=$LIBS
27598 LIBS="-lmspack  $LIBS"
27599 cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605
27606 /* Override any GCC internal prototype to avoid an error.
27607    Use char because int might match the return type of a GCC
27608    builtin and then its argument prototype would still apply.  */
27609 #ifdef __cplusplus
27610 extern "C"
27611 #endif
27612 char mspack_create_chm_decompressor ();
27613 int
27614 main ()
27615 {
27616 return mspack_create_chm_decompressor ();
27617   ;
27618   return 0;
27619 }
27620 _ACEOF
27621 rm -f conftest.$ac_objext conftest$ac_exeext
27622 if { (ac_try="$ac_link"
27623 case "(($ac_try" in
27624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625   *) ac_try_echo=$ac_try;;
27626 esac
27627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628   (eval "$ac_link") 2>conftest.er1
27629   ac_status=$?
27630   grep -v '^ *+' conftest.er1 >conftest.err
27631   rm -f conftest.er1
27632   cat conftest.err >&5
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); } && {
27635          test -z "$ac_c_werror_flag" ||
27636          test ! -s conftest.err
27637        } && test -s conftest$ac_exeext &&
27638        $as_test_x conftest$ac_exeext; then
27639   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27640 else
27641   echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27645 fi
27646
27647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27648       conftest$ac_exeext conftest.$ac_ext
27649 LIBS=$ac_check_lib_save_LIBS
27650 fi
27651 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27652 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
27653 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27654   MSPACK_LINK=" -lmspack"
27655 fi
27656
27657     fi
27658     if test "x$MSPACK_LINK" = "x" ; then
27659         wxUSE_LIBMSPACK=no
27660     fi
27661 fi
27662
27663 if test "$wxUSE_LIBMSPACK" != "no"; then
27664     cat >>confdefs.h <<\_ACEOF
27665 #define wxUSE_LIBMSPACK 1
27666 _ACEOF
27667
27668 fi
27669
27670
27671
27672 AFMINSTALL=
27673 WIN32INSTALL=
27674
27675 TOOLKIT=
27676 TOOLKIT_INCLUDE=
27677 WIDGET_SET=
27678
27679 if test "$USE_WIN32" = 1 ; then
27680
27681 for ac_header in w32api.h
27682 do
27683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27687   echo $ECHO_N "(cached) $ECHO_C" >&6
27688 else
27689   cat >conftest.$ac_ext <<_ACEOF
27690 /* confdefs.h.  */
27691 _ACEOF
27692 cat confdefs.h >>conftest.$ac_ext
27693 cat >>conftest.$ac_ext <<_ACEOF
27694 /* end confdefs.h.  */
27695
27696
27697 #include <$ac_header>
27698 _ACEOF
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706   (eval "$ac_compile") 2>conftest.er1
27707   ac_status=$?
27708   grep -v '^ *+' conftest.er1 >conftest.err
27709   rm -f conftest.er1
27710   cat conftest.err >&5
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); } && {
27713          test -z "$ac_c_werror_flag" ||
27714          test ! -s conftest.err
27715        } && test -s conftest.$ac_objext; then
27716   eval "$as_ac_Header=yes"
27717 else
27718   echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721         eval "$as_ac_Header=no"
27722 fi
27723
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725 fi
27726 ac_res=`eval echo '${'$as_ac_Header'}'`
27727                { echo "$as_me:$LINENO: result: $ac_res" >&5
27728 echo "${ECHO_T}$ac_res" >&6; }
27729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27730   cat >>confdefs.h <<_ACEOF
27731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27732 _ACEOF
27733
27734 fi
27735
27736 done
27737
27738     { echo "$as_me:$LINENO: checking for windows.h" >&5
27739 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
27740 if test "${ac_cv_header_windows_h+set}" = set; then
27741   echo $ECHO_N "(cached) $ECHO_C" >&6
27742 else
27743   cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h.  */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h.  */
27749
27750
27751 #include <windows.h>
27752 _ACEOF
27753 rm -f conftest.$ac_objext
27754 if { (ac_try="$ac_compile"
27755 case "(($ac_try" in
27756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757   *) ac_try_echo=$ac_try;;
27758 esac
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760   (eval "$ac_compile") 2>conftest.er1
27761   ac_status=$?
27762   grep -v '^ *+' conftest.er1 >conftest.err
27763   rm -f conftest.er1
27764   cat conftest.err >&5
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); } && {
27767          test -z "$ac_c_werror_flag" ||
27768          test ! -s conftest.err
27769        } && test -s conftest.$ac_objext; then
27770   ac_cv_header_windows_h=yes
27771 else
27772   echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27774
27775         ac_cv_header_windows_h=no
27776 fi
27777
27778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779 fi
27780 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27781 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
27782 if test $ac_cv_header_windows_h = yes; then
27783   :
27784 else
27785
27786         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27787 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27788    { (exit 1); exit 1; }; }
27789
27790 fi
27791
27792
27793
27794             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27795
27796     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27797         LIBS="$LIBS -loleacc"
27798     fi
27799
27800     case "${host}" in
27801         *-*-cygwin* )
27802                         LIBS="$LIBS -lkernel32 -luser32"
27803     esac
27804
27805         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27806     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27807
27808                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27809
27810         WIN32INSTALL=win32install
27811
27812         { echo "$as_me:$LINENO: checking for pbt.h" >&5
27813 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
27814 if test "${ac_cv_header_pbt_h+set}" = set; then
27815   echo $ECHO_N "(cached) $ECHO_C" >&6
27816 else
27817   cat >conftest.$ac_ext <<_ACEOF
27818 /* confdefs.h.  */
27819 _ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h.  */
27823
27824
27825 #include <pbt.h>
27826 _ACEOF
27827 rm -f conftest.$ac_objext
27828 if { (ac_try="$ac_compile"
27829 case "(($ac_try" in
27830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831   *) ac_try_echo=$ac_try;;
27832 esac
27833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834   (eval "$ac_compile") 2>conftest.er1
27835   ac_status=$?
27836   grep -v '^ *+' conftest.er1 >conftest.err
27837   rm -f conftest.er1
27838   cat conftest.err >&5
27839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); } && {
27841          test -z "$ac_c_werror_flag" ||
27842          test ! -s conftest.err
27843        } && test -s conftest.$ac_objext; then
27844   ac_cv_header_pbt_h=yes
27845 else
27846   echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27848
27849         ac_cv_header_pbt_h=no
27850 fi
27851
27852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27853 fi
27854 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
27855 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
27856 if test $ac_cv_header_pbt_h = yes; then
27857   :
27858 else
27859   cat >>confdefs.h <<\_ACEOF
27860 #define NEED_PBT_H 1
27861 _ACEOF
27862
27863 fi
27864
27865
27866 fi
27867
27868 if test "$wxUSE_GUI" = "yes"; then
27869     USE_GUI=1
27870
27871     GUI_TK_LIBRARY=
27872
27873     WXGTK12=
27874     WXGTK127=
27875     WXGTK2=
27876     WXGPE=
27877
27878     if test "$wxUSE_COCOA" = 1 ; then
27879         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27880             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27881 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27882             wxUSE_PRINTING_ARCHITECTURE=no
27883         fi
27884         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27885             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27886 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27887             wxUSE_DRAG_AND_DROP=no
27888         fi
27889         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27890             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
27891 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
27892             wxUSE_DRAGIMAGE=no
27893         fi
27894     fi
27895
27896     if test "$wxUSE_MSW" = 1 ; then
27897         TOOLKIT=MSW
27898         GUIDIST=MSW_DIST
27899
27900                 case "${host}" in
27901             *-*-mingw32* )
27902                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27903         esac
27904     fi
27905
27906     if test "$wxUSE_GTK" = 1; then
27907                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
27908 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
27909
27910         gtk_version_cached=1
27911         if test "${wx_cv_lib_gtk+set}" = set; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914
27915                                                 gtk_version_cached=0
27916                 { echo "$as_me:$LINENO: result: " >&5
27917 echo "${ECHO_T}" >&6; }
27918
27919                                                 GTK_MODULES=
27920                 if test "$wxUSE_THREADS" = "yes"; then
27921                     GTK_MODULES=gthread
27922                 fi
27923
27924                                 wx_cv_lib_gtk=
27925                 if test "x$wxGTK_VERSION" != "x1"
27926                 then
27927                                                                                 case "${host}" in
27928                         *-*-solaris2* )
27929                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27930                                 enable_gtktest=no
27931                             fi
27932                     esac
27933
27934                     # Check whether --enable-gtktest was given.
27935 if test "${enable_gtktest+set}" = set; then
27936   enableval=$enable_gtktest;
27937 else
27938   enable_gtktest=yes
27939 fi
27940
27941
27942   pkg_config_args=gtk+-2.0
27943   for module in . $GTK_MODULES
27944   do
27945       case "$module" in
27946          gthread)
27947              pkg_config_args="$pkg_config_args gthread-2.0"
27948          ;;
27949       esac
27950   done
27951
27952   no_gtk=""
27953
27954   # Extract the first word of "pkg-config", so it can be a program name with args.
27955 set dummy pkg-config; ac_word=$2
27956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27958 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27959   echo $ECHO_N "(cached) $ECHO_C" >&6
27960 else
27961   case $PKG_CONFIG in
27962   [\\/]* | ?:[\\/]*)
27963   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27964   ;;
27965   *)
27966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27967 for as_dir in $PATH
27968 do
27969   IFS=$as_save_IFS
27970   test -z "$as_dir" && as_dir=.
27971   for ac_exec_ext in '' $ac_executable_extensions; do
27972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27973     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27975     break 2
27976   fi
27977 done
27978 done
27979 IFS=$as_save_IFS
27980
27981   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27982   ;;
27983 esac
27984 fi
27985 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27986 if test -n "$PKG_CONFIG"; then
27987   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27988 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27989 else
27990   { echo "$as_me:$LINENO: result: no" >&5
27991 echo "${ECHO_T}no" >&6; }
27992 fi
27993
27994
27995
27996   if test x$PKG_CONFIG != xno ; then
27997     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27998       :
27999     else
28000       echo "*** pkg-config too old; version 0.7 or better required."
28001       no_gtk=yes
28002       PKG_CONFIG=no
28003     fi
28004   else
28005     no_gtk=yes
28006   fi
28007
28008   min_gtk_version=2.4.0
28009   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28010 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28011
28012   if test x$PKG_CONFIG != xno ; then
28013     ## don't try to run the test against uninstalled libtool libs
28014     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28015           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28016           enable_gtktest=no
28017     fi
28018
28019     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28020           :
28021     else
28022           no_gtk=yes
28023     fi
28024   fi
28025
28026   if test x"$no_gtk" = x ; then
28027     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28028     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28029     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28030            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28031     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28032            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28033     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28034            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28035     if test "x$enable_gtktest" = "xyes" ; then
28036       ac_save_CFLAGS="$CFLAGS"
28037       ac_save_LIBS="$LIBS"
28038       CFLAGS="$CFLAGS $GTK_CFLAGS"
28039       LIBS="$GTK_LIBS $LIBS"
28040       rm -f conf.gtktest
28041       if test "$cross_compiling" = yes; then
28042   echo $ac_n "cross compiling; assumed OK... $ac_c"
28043 else
28044   cat >conftest.$ac_ext <<_ACEOF
28045 /* confdefs.h.  */
28046 _ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h.  */
28050
28051 #include <gtk/gtk.h>
28052 #include <stdio.h>
28053 #include <stdlib.h>
28054
28055 int
28056 main ()
28057 {
28058   int major, minor, micro;
28059   char *tmp_version;
28060
28061   system ("touch conf.gtktest");
28062
28063   /* HP/UX 9 (%@#!) writes to sscanf strings */
28064   tmp_version = g_strdup("$min_gtk_version");
28065   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28066      printf("%s, bad version string\n", "$min_gtk_version");
28067      exit(1);
28068    }
28069
28070   if ((gtk_major_version != $gtk_config_major_version) ||
28071       (gtk_minor_version != $gtk_config_minor_version) ||
28072       (gtk_micro_version != $gtk_config_micro_version))
28073     {
28074       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28075              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28076              gtk_major_version, gtk_minor_version, gtk_micro_version);
28077       printf ("*** was found! If pkg-config was correct, then it is best\n");
28078       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28079       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28080       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28081       printf("*** required on your system.\n");
28082       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28083       printf("*** to point to the correct configuration files\n");
28084     }
28085   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28086            (gtk_minor_version != GTK_MINOR_VERSION) ||
28087            (gtk_micro_version != GTK_MICRO_VERSION))
28088     {
28089       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28090              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28091       printf("*** library (version %d.%d.%d)\n",
28092              gtk_major_version, gtk_minor_version, gtk_micro_version);
28093     }
28094   else
28095     {
28096       if ((gtk_major_version > major) ||
28097         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28098         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28099       {
28100         return 0;
28101        }
28102      else
28103       {
28104         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28105                gtk_major_version, gtk_minor_version, gtk_micro_version);
28106         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28107                major, minor, micro);
28108         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28109         printf("***\n");
28110         printf("*** If you have already installed a sufficiently new version, this error\n");
28111         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28112         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28113         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28114         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28115         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28116         printf("*** so that the correct libraries are found at run-time))\n");
28117       }
28118     }
28119   return 1;
28120 }
28121
28122 _ACEOF
28123 rm -f conftest$ac_exeext
28124 if { (ac_try="$ac_link"
28125 case "(($ac_try" in
28126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127   *) ac_try_echo=$ac_try;;
28128 esac
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130   (eval "$ac_link") 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28134   { (case "(($ac_try" in
28135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136   *) ac_try_echo=$ac_try;;
28137 esac
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139   (eval "$ac_try") 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; }; then
28143   :
28144 else
28145   echo "$as_me: program exited with status $ac_status" >&5
28146 echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149 ( exit $ac_status )
28150 no_gtk=yes
28151 fi
28152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28153 fi
28154
28155
28156        CFLAGS="$ac_save_CFLAGS"
28157        LIBS="$ac_save_LIBS"
28158      fi
28159   fi
28160   if test "x$no_gtk" = x ; then
28161      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28162 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28163      wx_cv_lib_gtk=2.0
28164   else
28165      { echo "$as_me:$LINENO: result: no" >&5
28166 echo "${ECHO_T}no" >&6; }
28167      if test "$PKG_CONFIG" = "no" ; then
28168        echo "*** A new enough version of pkg-config was not found."
28169        echo "*** See http://pkgconfig.sourceforge.net"
28170      else
28171        if test -f conf.gtktest ; then
28172         :
28173        else
28174           echo "*** Could not run GTK+ test program, checking why..."
28175           ac_save_CFLAGS="$CFLAGS"
28176           ac_save_LIBS="$LIBS"
28177           CFLAGS="$CFLAGS $GTK_CFLAGS"
28178           LIBS="$LIBS $GTK_LIBS"
28179           cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h.  */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h.  */
28185
28186 #include <gtk/gtk.h>
28187 #include <stdio.h>
28188
28189 int
28190 main ()
28191 {
28192  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28193   ;
28194   return 0;
28195 }
28196 _ACEOF
28197 rm -f conftest.$ac_objext conftest$ac_exeext
28198 if { (ac_try="$ac_link"
28199 case "(($ac_try" in
28200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201   *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204   (eval "$ac_link") 2>conftest.er1
28205   ac_status=$?
28206   grep -v '^ *+' conftest.er1 >conftest.err
28207   rm -f conftest.er1
28208   cat conftest.err >&5
28209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210   (exit $ac_status); } && {
28211          test -z "$ac_c_werror_flag" ||
28212          test ! -s conftest.err
28213        } && test -s conftest$ac_exeext &&
28214        $as_test_x conftest$ac_exeext; then
28215    echo "*** The test program compiled, but did not run. This usually means"
28216           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28217           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28218           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28219           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28220           echo "*** is required on your system"
28221           echo "***"
28222           echo "*** If you have an old version installed, it is best to remove it, although"
28223           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28224 else
28225   echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28227
28228          echo "*** The test program failed to compile or link. See the file config.log for the"
28229           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28230 fi
28231
28232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28233       conftest$ac_exeext conftest.$ac_ext
28234           CFLAGS="$ac_save_CFLAGS"
28235           LIBS="$ac_save_LIBS"
28236        fi
28237      fi
28238      GTK_CFLAGS=""
28239      GTK_LIBS=""
28240      :
28241   fi
28242
28243
28244   rm -f conf.gtktest
28245
28246
28247                                         case "${host}" in
28248                         *-*-solaris2* )
28249                             if test "$wxUSE_SHARED" != "yes"; then
28250                                 GTK_LIBS="$GTK_LIBS -lX11"
28251                             fi
28252                     esac
28253                 fi
28254
28255                                 if test -z "$wx_cv_lib_gtk"; then
28256                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28257
28258 # Check whether --with-gtk-prefix was given.
28259 if test "${with_gtk_prefix+set}" = set; then
28260   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28261 else
28262   gtk_config_prefix=""
28263 fi
28264
28265
28266 # Check whether --with-gtk-exec-prefix was given.
28267 if test "${with_gtk_exec_prefix+set}" = set; then
28268   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28269 else
28270   gtk_config_exec_prefix=""
28271 fi
28272
28273 # Check whether --enable-gtktest was given.
28274 if test "${enable_gtktest+set}" = set; then
28275   enableval=$enable_gtktest;
28276 else
28277   enable_gtktest=yes
28278 fi
28279
28280
28281   for module in . $GTK_MODULES
28282   do
28283       case "$module" in
28284          gthread)
28285              gtk_config_args="$gtk_config_args gthread"
28286          ;;
28287       esac
28288   done
28289
28290   if test x$gtk_config_exec_prefix != x ; then
28291      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28292      if test x${GTK_CONFIG+set} != xset ; then
28293         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28294      fi
28295   fi
28296   if test x$gtk_config_prefix != x ; then
28297      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28298      if test x${GTK_CONFIG+set} != xset ; then
28299         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28300      fi
28301   fi
28302
28303   # Extract the first word of "gtk-config", so it can be a program name with args.
28304 set dummy gtk-config; ac_word=$2
28305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28307 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28308   echo $ECHO_N "(cached) $ECHO_C" >&6
28309 else
28310   case $GTK_CONFIG in
28311   [\\/]* | ?:[\\/]*)
28312   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28313   ;;
28314   *)
28315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28316 for as_dir in $PATH
28317 do
28318   IFS=$as_save_IFS
28319   test -z "$as_dir" && as_dir=.
28320   for ac_exec_ext in '' $ac_executable_extensions; do
28321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28322     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28324     break 2
28325   fi
28326 done
28327 done
28328 IFS=$as_save_IFS
28329
28330   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28331   ;;
28332 esac
28333 fi
28334 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28335 if test -n "$GTK_CONFIG"; then
28336   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28337 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28338 else
28339   { echo "$as_me:$LINENO: result: no" >&5
28340 echo "${ECHO_T}no" >&6; }
28341 fi
28342
28343
28344   min_gtk_version=1.2.7
28345   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28346 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28347   no_gtk=""
28348   if test "$GTK_CONFIG" = "no" ; then
28349     no_gtk=yes
28350   else
28351     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28352     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28353     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28354            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28355     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28356            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28357     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28358            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28359     if test "x$enable_gtktest" = "xyes" ; then
28360       ac_save_CFLAGS="$CFLAGS"
28361       ac_save_LIBS="$LIBS"
28362       CFLAGS="$CFLAGS $GTK_CFLAGS"
28363       LIBS="$GTK_LIBS $LIBS"
28364       rm -f conf.gtktest
28365       if test "$cross_compiling" = yes; then
28366   echo $ac_n "cross compiling; assumed OK... $ac_c"
28367 else
28368   cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374
28375 #include <gtk/gtk.h>
28376 #include <stdio.h>
28377 #include <stdlib.h>
28378
28379 int
28380 main ()
28381 {
28382   int major, minor, micro;
28383   char *tmp_version;
28384
28385   system ("touch conf.gtktest");
28386
28387   /* HP/UX 9 (%@#!) writes to sscanf strings */
28388   tmp_version = g_strdup("$min_gtk_version");
28389   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28390      printf("%s, bad version string\n", "$min_gtk_version");
28391      exit(1);
28392    }
28393
28394   if ((gtk_major_version != $gtk_config_major_version) ||
28395       (gtk_minor_version != $gtk_config_minor_version) ||
28396       (gtk_micro_version != $gtk_config_micro_version))
28397     {
28398       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28399              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28400              gtk_major_version, gtk_minor_version, gtk_micro_version);
28401       printf ("*** was found! If gtk-config was correct, then it is best\n");
28402       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28403       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28404       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28405       printf("*** required on your system.\n");
28406       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28407       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28408       printf("*** before re-running configure\n");
28409     }
28410 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28411   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28412            (gtk_minor_version != GTK_MINOR_VERSION) ||
28413            (gtk_micro_version != GTK_MICRO_VERSION))
28414     {
28415       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28416              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28417       printf("*** library (version %d.%d.%d)\n",
28418              gtk_major_version, gtk_minor_version, gtk_micro_version);
28419     }
28420 #endif /* defined (GTK_MAJOR_VERSION) ... */
28421   else
28422     {
28423       if ((gtk_major_version > major) ||
28424         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28425         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28426       {
28427         return 0;
28428        }
28429      else
28430       {
28431         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28432                gtk_major_version, gtk_minor_version, gtk_micro_version);
28433         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28434                major, minor, micro);
28435         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28436         printf("***\n");
28437         printf("*** If you have already installed a sufficiently new version, this error\n");
28438         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28439         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28440         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28441         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28442         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28443         printf("*** so that the correct libraries are found at run-time))\n");
28444       }
28445     }
28446   return 1;
28447 }
28448
28449 _ACEOF
28450 rm -f conftest$ac_exeext
28451 if { (ac_try="$ac_link"
28452 case "(($ac_try" in
28453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454   *) ac_try_echo=$ac_try;;
28455 esac
28456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457   (eval "$ac_link") 2>&5
28458   ac_status=$?
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28461   { (case "(($ac_try" in
28462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463   *) ac_try_echo=$ac_try;;
28464 esac
28465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466   (eval "$ac_try") 2>&5
28467   ac_status=$?
28468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469   (exit $ac_status); }; }; then
28470   :
28471 else
28472   echo "$as_me: program exited with status $ac_status" >&5
28473 echo "$as_me: failed program was:" >&5
28474 sed 's/^/| /' conftest.$ac_ext >&5
28475
28476 ( exit $ac_status )
28477 no_gtk=yes
28478 fi
28479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28480 fi
28481
28482
28483        CFLAGS="$ac_save_CFLAGS"
28484        LIBS="$ac_save_LIBS"
28485      fi
28486   fi
28487   if test "x$no_gtk" = x ; then
28488      { echo "$as_me:$LINENO: result: yes" >&5
28489 echo "${ECHO_T}yes" >&6; }
28490      wx_cv_lib_gtk=1.2.7
28491   else
28492      { echo "$as_me:$LINENO: result: no" >&5
28493 echo "${ECHO_T}no" >&6; }
28494      if test "$GTK_CONFIG" = "no" ; then
28495        echo "*** The gtk-config script installed by GTK could not be found"
28496        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28497        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28498        echo "*** full path to gtk-config."
28499      else
28500        if test -f conf.gtktest ; then
28501         :
28502        else
28503           echo "*** Could not run GTK test program, checking why..."
28504           CFLAGS="$CFLAGS $GTK_CFLAGS"
28505           LIBS="$LIBS $GTK_LIBS"
28506           cat >conftest.$ac_ext <<_ACEOF
28507 /* confdefs.h.  */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h.  */
28512
28513 #include <gtk/gtk.h>
28514 #include <stdio.h>
28515
28516 int
28517 main ()
28518 {
28519  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28520   ;
28521   return 0;
28522 }
28523 _ACEOF
28524 rm -f conftest.$ac_objext conftest$ac_exeext
28525 if { (ac_try="$ac_link"
28526 case "(($ac_try" in
28527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528   *) ac_try_echo=$ac_try;;
28529 esac
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531   (eval "$ac_link") 2>conftest.er1
28532   ac_status=$?
28533   grep -v '^ *+' conftest.er1 >conftest.err
28534   rm -f conftest.er1
28535   cat conftest.err >&5
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); } && {
28538          test -z "$ac_c_werror_flag" ||
28539          test ! -s conftest.err
28540        } && test -s conftest$ac_exeext &&
28541        $as_test_x conftest$ac_exeext; then
28542    echo "*** The test program compiled, but did not run. This usually means"
28543           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28544           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28545           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28546           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28547           echo "*** is required on your system"
28548           echo "***"
28549           echo "*** If you have an old version installed, it is best to remove it, although"
28550           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28551           echo "***"
28552           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28553           echo "*** came with the system with the command"
28554           echo "***"
28555           echo "***    rpm --erase --nodeps gtk gtk-devel"
28556 else
28557   echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28559
28560          echo "*** The test program failed to compile or link. See the file config.log for the"
28561           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28562           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28563           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28564 fi
28565
28566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28567       conftest$ac_exeext conftest.$ac_ext
28568           CFLAGS="$ac_save_CFLAGS"
28569           LIBS="$ac_save_LIBS"
28570        fi
28571      fi
28572      GTK_CFLAGS=""
28573      GTK_LIBS=""
28574      :
28575   fi
28576
28577
28578   rm -f conf.gtktest
28579
28580
28581                         if test -z "$wx_cv_lib_gtk"; then
28582
28583 # Check whether --with-gtk-prefix was given.
28584 if test "${with_gtk_prefix+set}" = set; then
28585   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28586 else
28587   gtk_config_prefix=""
28588 fi
28589
28590
28591 # Check whether --with-gtk-exec-prefix was given.
28592 if test "${with_gtk_exec_prefix+set}" = set; then
28593   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28594 else
28595   gtk_config_exec_prefix=""
28596 fi
28597
28598 # Check whether --enable-gtktest was given.
28599 if test "${enable_gtktest+set}" = set; then
28600   enableval=$enable_gtktest;
28601 else
28602   enable_gtktest=yes
28603 fi
28604
28605
28606   for module in . $GTK_MODULES
28607   do
28608       case "$module" in
28609          gthread)
28610              gtk_config_args="$gtk_config_args gthread"
28611          ;;
28612       esac
28613   done
28614
28615   if test x$gtk_config_exec_prefix != x ; then
28616      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28617      if test x${GTK_CONFIG+set} != xset ; then
28618         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28619      fi
28620   fi
28621   if test x$gtk_config_prefix != x ; then
28622      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28623      if test x${GTK_CONFIG+set} != xset ; then
28624         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28625      fi
28626   fi
28627
28628   # Extract the first word of "gtk-config", so it can be a program name with args.
28629 set dummy gtk-config; ac_word=$2
28630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28632 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28633   echo $ECHO_N "(cached) $ECHO_C" >&6
28634 else
28635   case $GTK_CONFIG in
28636   [\\/]* | ?:[\\/]*)
28637   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28638   ;;
28639   *)
28640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28641 for as_dir in $PATH
28642 do
28643   IFS=$as_save_IFS
28644   test -z "$as_dir" && as_dir=.
28645   for ac_exec_ext in '' $ac_executable_extensions; do
28646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28647     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28649     break 2
28650   fi
28651 done
28652 done
28653 IFS=$as_save_IFS
28654
28655   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28656   ;;
28657 esac
28658 fi
28659 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28660 if test -n "$GTK_CONFIG"; then
28661   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28662 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28663 else
28664   { echo "$as_me:$LINENO: result: no" >&5
28665 echo "${ECHO_T}no" >&6; }
28666 fi
28667
28668
28669   min_gtk_version=1.2.3
28670   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28671 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28672   no_gtk=""
28673   if test "$GTK_CONFIG" = "no" ; then
28674     no_gtk=yes
28675   else
28676     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28677     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28678     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28679            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28680     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28681            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28682     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28683            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28684     if test "x$enable_gtktest" = "xyes" ; then
28685       ac_save_CFLAGS="$CFLAGS"
28686       ac_save_LIBS="$LIBS"
28687       CFLAGS="$CFLAGS $GTK_CFLAGS"
28688       LIBS="$GTK_LIBS $LIBS"
28689       rm -f conf.gtktest
28690       if test "$cross_compiling" = yes; then
28691   echo $ac_n "cross compiling; assumed OK... $ac_c"
28692 else
28693   cat >conftest.$ac_ext <<_ACEOF
28694 /* confdefs.h.  */
28695 _ACEOF
28696 cat confdefs.h >>conftest.$ac_ext
28697 cat >>conftest.$ac_ext <<_ACEOF
28698 /* end confdefs.h.  */
28699
28700 #include <gtk/gtk.h>
28701 #include <stdio.h>
28702 #include <stdlib.h>
28703
28704 int
28705 main ()
28706 {
28707   int major, minor, micro;
28708   char *tmp_version;
28709
28710   system ("touch conf.gtktest");
28711
28712   /* HP/UX 9 (%@#!) writes to sscanf strings */
28713   tmp_version = g_strdup("$min_gtk_version");
28714   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28715      printf("%s, bad version string\n", "$min_gtk_version");
28716      exit(1);
28717    }
28718
28719   if ((gtk_major_version != $gtk_config_major_version) ||
28720       (gtk_minor_version != $gtk_config_minor_version) ||
28721       (gtk_micro_version != $gtk_config_micro_version))
28722     {
28723       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28724              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28725              gtk_major_version, gtk_minor_version, gtk_micro_version);
28726       printf ("*** was found! If gtk-config was correct, then it is best\n");
28727       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28728       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28729       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28730       printf("*** required on your system.\n");
28731       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28732       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28733       printf("*** before re-running configure\n");
28734     }
28735 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28736   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28737            (gtk_minor_version != GTK_MINOR_VERSION) ||
28738            (gtk_micro_version != GTK_MICRO_VERSION))
28739     {
28740       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28741              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28742       printf("*** library (version %d.%d.%d)\n",
28743              gtk_major_version, gtk_minor_version, gtk_micro_version);
28744     }
28745 #endif /* defined (GTK_MAJOR_VERSION) ... */
28746   else
28747     {
28748       if ((gtk_major_version > major) ||
28749         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28750         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28751       {
28752         return 0;
28753        }
28754      else
28755       {
28756         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28757                gtk_major_version, gtk_minor_version, gtk_micro_version);
28758         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28759                major, minor, micro);
28760         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28761         printf("***\n");
28762         printf("*** If you have already installed a sufficiently new version, this error\n");
28763         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28764         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28765         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28766         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28767         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28768         printf("*** so that the correct libraries are found at run-time))\n");
28769       }
28770     }
28771   return 1;
28772 }
28773
28774 _ACEOF
28775 rm -f conftest$ac_exeext
28776 if { (ac_try="$ac_link"
28777 case "(($ac_try" in
28778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779   *) ac_try_echo=$ac_try;;
28780 esac
28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782   (eval "$ac_link") 2>&5
28783   ac_status=$?
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28786   { (case "(($ac_try" in
28787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788   *) ac_try_echo=$ac_try;;
28789 esac
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791   (eval "$ac_try") 2>&5
28792   ac_status=$?
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); }; }; then
28795   :
28796 else
28797   echo "$as_me: program exited with status $ac_status" >&5
28798 echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28800
28801 ( exit $ac_status )
28802 no_gtk=yes
28803 fi
28804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28805 fi
28806
28807
28808        CFLAGS="$ac_save_CFLAGS"
28809        LIBS="$ac_save_LIBS"
28810      fi
28811   fi
28812   if test "x$no_gtk" = x ; then
28813      { echo "$as_me:$LINENO: result: yes" >&5
28814 echo "${ECHO_T}yes" >&6; }
28815      wx_cv_lib_gtk=1.2.3
28816   else
28817      { echo "$as_me:$LINENO: result: no" >&5
28818 echo "${ECHO_T}no" >&6; }
28819      if test "$GTK_CONFIG" = "no" ; then
28820        echo "*** The gtk-config script installed by GTK could not be found"
28821        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28822        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28823        echo "*** full path to gtk-config."
28824      else
28825        if test -f conf.gtktest ; then
28826         :
28827        else
28828           echo "*** Could not run GTK test program, checking why..."
28829           CFLAGS="$CFLAGS $GTK_CFLAGS"
28830           LIBS="$LIBS $GTK_LIBS"
28831           cat >conftest.$ac_ext <<_ACEOF
28832 /* confdefs.h.  */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h.  */
28837
28838 #include <gtk/gtk.h>
28839 #include <stdio.h>
28840
28841 int
28842 main ()
28843 {
28844  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28845   ;
28846   return 0;
28847 }
28848 _ACEOF
28849 rm -f conftest.$ac_objext conftest$ac_exeext
28850 if { (ac_try="$ac_link"
28851 case "(($ac_try" in
28852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853   *) ac_try_echo=$ac_try;;
28854 esac
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856   (eval "$ac_link") 2>conftest.er1
28857   ac_status=$?
28858   grep -v '^ *+' conftest.er1 >conftest.err
28859   rm -f conftest.er1
28860   cat conftest.err >&5
28861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862   (exit $ac_status); } && {
28863          test -z "$ac_c_werror_flag" ||
28864          test ! -s conftest.err
28865        } && test -s conftest$ac_exeext &&
28866        $as_test_x conftest$ac_exeext; then
28867    echo "*** The test program compiled, but did not run. This usually means"
28868           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28869           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28870           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28871           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28872           echo "*** is required on your system"
28873           echo "***"
28874           echo "*** If you have an old version installed, it is best to remove it, although"
28875           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28876           echo "***"
28877           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28878           echo "*** came with the system with the command"
28879           echo "***"
28880           echo "***    rpm --erase --nodeps gtk gtk-devel"
28881 else
28882   echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28884
28885          echo "*** The test program failed to compile or link. See the file config.log for the"
28886           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28887           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28888           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28889 fi
28890
28891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28892       conftest$ac_exeext conftest.$ac_ext
28893           CFLAGS="$ac_save_CFLAGS"
28894           LIBS="$ac_save_LIBS"
28895        fi
28896      fi
28897      GTK_CFLAGS=""
28898      GTK_LIBS=""
28899      :
28900   fi
28901
28902
28903   rm -f conf.gtktest
28904
28905                         fi
28906                     fi
28907                 fi
28908
28909                 if test -z "$wx_cv_lib_gtk"; then
28910                                         wx_cv_lib_gtk=none
28911                 else
28912                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28913                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28914                 fi
28915
28916
28917 fi
28918
28919
28920                         if test "$gtk_version_cached" = 1; then
28921             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28922 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
28923         fi
28924
28925         case "$wx_cv_lib_gtk" in
28926             2.0)    WXGTK2=1
28927                     TOOLKIT_VERSION=2
28928                     ;;
28929             1.2.7)  WXGTK127=1
28930                     WXGTK12=1
28931                     ;;
28932             1.2.3)  WXGTK12=1
28933                     ;;
28934             *)      { { echo "$as_me:$LINENO: error:
28935 The development files for GTK+ were not found. For GTK+ 2, please
28936 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28937 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28938 and that the version is 1.2.3 or above. Also check that the
28939 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28940 --libs' are in the LD_LIBRARY_PATH or equivalent.
28941                             " >&5
28942 echo "$as_me: error:
28943 The development files for GTK+ were not found. For GTK+ 2, please
28944 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28945 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28946 and that the version is 1.2.3 or above. Also check that the
28947 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28948 --libs' are in the LD_LIBRARY_PATH or equivalent.
28949                             " >&2;}
28950    { (exit 1); exit 1; }; }
28951                     ;;
28952         esac
28953
28954         if test "$WXGTK2" = 1; then
28955             save_CFLAGS="$CFLAGS"
28956             save_LIBS="$LIBS"
28957             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28958             LIBS="$LIBS $wx_cv_libs_gtk"
28959
28960                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
28961 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
28962             cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h.  */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h.  */
28968
28969                             #include <gtk/gtk.h>
28970
28971 int
28972 main ()
28973 {
28974
28975                             #if !GTK_CHECK_VERSION(2,10,0)
28976                             Not GTK+ 2.10
28977                             #endif
28978
28979   ;
28980   return 0;
28981 }
28982 _ACEOF
28983 rm -f conftest.$ac_objext
28984 if { (ac_try="$ac_compile"
28985 case "(($ac_try" in
28986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28987   *) ac_try_echo=$ac_try;;
28988 esac
28989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28990   (eval "$ac_compile") 2>conftest.er1
28991   ac_status=$?
28992   grep -v '^ *+' conftest.er1 >conftest.err
28993   rm -f conftest.er1
28994   cat conftest.err >&5
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); } && {
28997          test -z "$ac_c_werror_flag" ||
28998          test ! -s conftest.err
28999        } && test -s conftest.$ac_objext; then
29000
29001                             cat >>confdefs.h <<\_ACEOF
29002 #define __WXGTK210__ 1
29003 _ACEOF
29004
29005                             cat >>confdefs.h <<\_ACEOF
29006 #define __WXGTK26__ 1
29007 _ACEOF
29008
29009                             { echo "$as_me:$LINENO: result: yes" >&5
29010 echo "${ECHO_T}yes" >&6; }
29011                             ac_wxgtk210=1
29012
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017
29018                             { echo "$as_me:$LINENO: result: no" >&5
29019 echo "${ECHO_T}no" >&6; }
29020                             ac_wxgtk210=0
29021
29022 fi
29023
29024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29025
29026             if test "$ac_wxgtk210" = 0; then
29027                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29028 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29029                 cat >conftest.$ac_ext <<_ACEOF
29030 /* confdefs.h.  */
29031 _ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h.  */
29035
29036                                 #include <gtk/gtk.h>
29037
29038 int
29039 main ()
29040 {
29041
29042                                 #if !GTK_CHECK_VERSION(2,6,0)
29043                                 Not GTK+ 2.6
29044                                 #endif
29045
29046   ;
29047   return 0;
29048 }
29049 _ACEOF
29050 rm -f conftest.$ac_objext
29051 if { (ac_try="$ac_compile"
29052 case "(($ac_try" in
29053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054   *) ac_try_echo=$ac_try;;
29055 esac
29056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29057   (eval "$ac_compile") 2>conftest.er1
29058   ac_status=$?
29059   grep -v '^ *+' conftest.er1 >conftest.err
29060   rm -f conftest.er1
29061   cat conftest.err >&5
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); } && {
29064          test -z "$ac_c_werror_flag" ||
29065          test ! -s conftest.err
29066        } && test -s conftest.$ac_objext; then
29067
29068                                 cat >>confdefs.h <<\_ACEOF
29069 #define __WXGTK26__ 1
29070 _ACEOF
29071
29072                                 { echo "$as_me:$LINENO: result: yes" >&5
29073 echo "${ECHO_T}yes" >&6; }
29074                                 ac_wxgtk26=1
29075
29076 else
29077   echo "$as_me: failed program was:" >&5
29078 sed 's/^/| /' conftest.$ac_ext >&5
29079
29080
29081                                 { echo "$as_me:$LINENO: result: no" >&5
29082 echo "${ECHO_T}no" >&6; }
29083                                 ac_wxgtk26=0
29084
29085 fi
29086
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088             fi
29089
29090             CFLAGS="$save_CFLAGS"
29091             LIBS="$save_LIBS"
29092         else
29093             if test "$wxUSE_UNICODE" = "yes"; then
29094                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29095 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29096                 wxUSE_UNICODE=no
29097             fi
29098
29099                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29100 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29101 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29102   echo $ECHO_N "(cached) $ECHO_C" >&6
29103 else
29104   ac_check_lib_save_LIBS=$LIBS
29105 LIBS="-lgdk  $LIBS"
29106 cat >conftest.$ac_ext <<_ACEOF
29107 /* confdefs.h.  */
29108 _ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h.  */
29112
29113 /* Override any GCC internal prototype to avoid an error.
29114    Use char because int might match the return type of a GCC
29115    builtin and then its argument prototype would still apply.  */
29116 #ifdef __cplusplus
29117 extern "C"
29118 #endif
29119 char gdk_im_open ();
29120 int
29121 main ()
29122 {
29123 return gdk_im_open ();
29124   ;
29125   return 0;
29126 }
29127 _ACEOF
29128 rm -f conftest.$ac_objext conftest$ac_exeext
29129 if { (ac_try="$ac_link"
29130 case "(($ac_try" in
29131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132   *) ac_try_echo=$ac_try;;
29133 esac
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135   (eval "$ac_link") 2>conftest.er1
29136   ac_status=$?
29137   grep -v '^ *+' conftest.er1 >conftest.err
29138   rm -f conftest.er1
29139   cat conftest.err >&5
29140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141   (exit $ac_status); } && {
29142          test -z "$ac_c_werror_flag" ||
29143          test ! -s conftest.err
29144        } && test -s conftest$ac_exeext &&
29145        $as_test_x conftest$ac_exeext; then
29146   ac_cv_lib_gdk_gdk_im_open=yes
29147 else
29148   echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29150
29151         ac_cv_lib_gdk_gdk_im_open=no
29152 fi
29153
29154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29155       conftest$ac_exeext conftest.$ac_ext
29156 LIBS=$ac_check_lib_save_LIBS
29157 fi
29158 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29159 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29160 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29161   cat >>confdefs.h <<\_ACEOF
29162 #define HAVE_XIM 1
29163 _ACEOF
29164
29165 fi
29166
29167
29168                                     if test "$USE_DARWIN" != 1; then
29169
29170 for ac_func in poll
29171 do
29172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29186 #define $ac_func innocuous_$ac_func
29187
29188 /* System header to define __stub macros and hopefully few prototypes,
29189     which can conflict with char $ac_func (); below.
29190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29191     <limits.h> exists even on freestanding compilers.  */
29192
29193 #ifdef __STDC__
29194 # include <limits.h>
29195 #else
29196 # include <assert.h>
29197 #endif
29198
29199 #undef $ac_func
29200
29201 /* Override any GCC internal prototype to avoid an error.
29202    Use char because int might match the return type of a GCC
29203    builtin and then its argument prototype would still apply.  */
29204 #ifdef __cplusplus
29205 extern "C"
29206 #endif
29207 char $ac_func ();
29208 /* The GNU C library defines this for functions which it implements
29209     to always fail with ENOSYS.  Some functions are actually named
29210     something starting with __ and the normal name is an alias.  */
29211 #if defined __stub_$ac_func || defined __stub___$ac_func
29212 choke me
29213 #endif
29214
29215 int
29216 main ()
29217 {
29218 return $ac_func ();
29219   ;
29220   return 0;
29221 }
29222 _ACEOF
29223 rm -f conftest.$ac_objext conftest$ac_exeext
29224 if { (ac_try="$ac_link"
29225 case "(($ac_try" in
29226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227   *) ac_try_echo=$ac_try;;
29228 esac
29229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230   (eval "$ac_link") 2>conftest.er1
29231   ac_status=$?
29232   grep -v '^ *+' conftest.er1 >conftest.err
29233   rm -f conftest.er1
29234   cat conftest.err >&5
29235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236   (exit $ac_status); } && {
29237          test -z "$ac_c_werror_flag" ||
29238          test ! -s conftest.err
29239        } && test -s conftest$ac_exeext &&
29240        $as_test_x conftest$ac_exeext; then
29241   eval "$as_ac_var=yes"
29242 else
29243   echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29245
29246         eval "$as_ac_var=no"
29247 fi
29248
29249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29250       conftest$ac_exeext conftest.$ac_ext
29251 fi
29252 ac_res=`eval echo '${'$as_ac_var'}'`
29253                { echo "$as_me:$LINENO: result: $ac_res" >&5
29254 echo "${ECHO_T}$ac_res" >&6; }
29255 if test `eval echo '${'$as_ac_var'}'` = yes; then
29256   cat >>confdefs.h <<_ACEOF
29257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29258 _ACEOF
29259
29260 fi
29261 done
29262
29263             fi
29264         fi
29265
29266         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29267         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29268
29269         AFMINSTALL=afminstall
29270         TOOLKIT=GTK
29271         GUIDIST=GTK_DIST
29272
29273                 if test "$wxUSE_GPE" = "yes"; then
29274             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29275 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29276
29277   ac_find_libraries=
29278   for ac_dir in $SEARCH_LIB;
29279   do
29280     for ac_extension in a so sl dylib dll.a; do
29281       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29282         ac_find_libraries=$ac_dir
29283         break 2
29284       fi
29285     done
29286   done
29287
29288             if test "$ac_find_libraries" != "" ; then
29289
29290     if test "$ac_find_libraries" = "default location"; then
29291     ac_path_to_link=""
29292   else
29293     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29294     result=$?
29295     if test $result = 0; then
29296       ac_path_to_link=""
29297     else
29298       ac_path_to_link=" -L$ac_find_libraries"
29299     fi
29300   fi
29301
29302                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29303                 WXGPE=1
29304                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29305 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29306             else
29307                 { echo "$as_me:$LINENO: result: not found" >&5
29308 echo "${ECHO_T}not found" >&6; }
29309             fi
29310
29311                                                                                                                     fi
29312     fi
29313
29314     if test "$wxUSE_MGL" = 1; then
29315        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29316 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29317         if test "x$MGL_ROOT" = x ; then
29318             { echo "$as_me:$LINENO: result: not found" >&5
29319 echo "${ECHO_T}not found" >&6; }
29320             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29321 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29322    { (exit 1); exit 1; }; }
29323         else
29324             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29325 echo "${ECHO_T}$MGL_ROOT" >&6; }
29326         fi
29327
29328         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29329 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29330                                 case "${host}" in
29331             *-*-linux* )
29332                                           if test "x$wxUSE_SHARED" = xyes ; then
29333                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29334               else
29335                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29336               fi
29337               ;;
29338             *-pc-msdosdjgpp )
29339               mgl_os_candidates="dos32/dj2"
29340               ;;
29341             *)
29342               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29343 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29344    { (exit 1); exit 1; }; }
29345         esac
29346
29347         mgl_lib_type=""
29348         mgl_os=""
29349
29350         for mgl_os_i in $mgl_os_candidates ; do
29351             if test "x$mgl_os" = x ; then
29352                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29353                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29354                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29355                         mgl_lib_type=debug
29356                         mgl_os=$mgl_os_i
29357                     fi
29358                 fi
29359                 if test "x$mgl_lib_type" = x ; then
29360                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29361                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29362                         mgl_lib_type=release
29363                         mgl_os=$mgl_os_i
29364                     fi
29365                 fi
29366             fi
29367         done
29368
29369         if test "x$mgl_os" = x ; then
29370             { echo "$as_me:$LINENO: result: not found" >&5
29371 echo "${ECHO_T}not found" >&6; }
29372             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29373 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29374    { (exit 1); exit 1; }; }
29375         fi
29376         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29377 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29378
29379         wxUSE_UNIVERSAL="yes"
29380
29381         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29382         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29383
29384         AFMINSTALL=afminstall
29385         TOOLKIT=MGL
29386         GUIDIST=MGL_DIST
29387     fi
29388
29389     if test "$wxUSE_DFB" = 1; then
29390
29391
29392 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29393         if test -n "$ac_tool_prefix"; then
29394   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29395 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29398 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29399   echo $ECHO_N "(cached) $ECHO_C" >&6
29400 else
29401   case $PKG_CONFIG in
29402   [\\/]* | ?:[\\/]*)
29403   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29404   ;;
29405   *)
29406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29407 for as_dir in $PATH
29408 do
29409   IFS=$as_save_IFS
29410   test -z "$as_dir" && as_dir=.
29411   for ac_exec_ext in '' $ac_executable_extensions; do
29412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29413     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29415     break 2
29416   fi
29417 done
29418 done
29419 IFS=$as_save_IFS
29420
29421   ;;
29422 esac
29423 fi
29424 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29425 if test -n "$PKG_CONFIG"; then
29426   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29427 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29428 else
29429   { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29431 fi
29432
29433
29434 fi
29435 if test -z "$ac_cv_path_PKG_CONFIG"; then
29436   ac_pt_PKG_CONFIG=$PKG_CONFIG
29437   # Extract the first word of "pkg-config", so it can be a program name with args.
29438 set dummy pkg-config; ac_word=$2
29439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29441 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29442   echo $ECHO_N "(cached) $ECHO_C" >&6
29443 else
29444   case $ac_pt_PKG_CONFIG in
29445   [\\/]* | ?:[\\/]*)
29446   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29447   ;;
29448   *)
29449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29450 for as_dir in $PATH
29451 do
29452   IFS=$as_save_IFS
29453   test -z "$as_dir" && as_dir=.
29454   for ac_exec_ext in '' $ac_executable_extensions; do
29455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29456     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29458     break 2
29459   fi
29460 done
29461 done
29462 IFS=$as_save_IFS
29463
29464   ;;
29465 esac
29466 fi
29467 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29468 if test -n "$ac_pt_PKG_CONFIG"; then
29469   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29470 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29471 else
29472   { echo "$as_me:$LINENO: result: no" >&5
29473 echo "${ECHO_T}no" >&6; }
29474 fi
29475
29476   if test "x$ac_pt_PKG_CONFIG" = x; then
29477     PKG_CONFIG=""
29478   else
29479     case $cross_compiling:$ac_tool_warned in
29480 yes:)
29481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29482 whose name does not start with the host triplet.  If you think this
29483 configuration is useful to you, please write to autoconf@gnu.org." >&5
29484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29485 whose name does not start with the host triplet.  If you think this
29486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29487 ac_tool_warned=yes ;;
29488 esac
29489     PKG_CONFIG=$ac_pt_PKG_CONFIG
29490   fi
29491 else
29492   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29493 fi
29494
29495 fi
29496 if test -n "$PKG_CONFIG"; then
29497         _pkg_min_version=0.9.0
29498         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29499 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29500         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29501                 { echo "$as_me:$LINENO: result: yes" >&5
29502 echo "${ECHO_T}yes" >&6; }
29503         else
29504                 { echo "$as_me:$LINENO: result: no" >&5
29505 echo "${ECHO_T}no" >&6; }
29506                 PKG_CONFIG=""
29507         fi
29508
29509 fi
29510
29511
29512 pkg_failed=no
29513 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29514 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29515
29516 if test -n "$PKG_CONFIG"; then
29517     if test -n "$DIRECTFB_CFLAGS"; then
29518         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29519     else
29520         if test -n "$PKG_CONFIG" && \
29521     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29522   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29523   ac_status=$?
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); }; then
29526   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29527 else
29528   pkg_failed=yes
29529 fi
29530     fi
29531 else
29532         pkg_failed=untried
29533 fi
29534 if test -n "$PKG_CONFIG"; then
29535     if test -n "$DIRECTFB_LIBS"; then
29536         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29537     else
29538         if test -n "$PKG_CONFIG" && \
29539     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29540   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29541   ac_status=$?
29542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543   (exit $ac_status); }; then
29544   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29545 else
29546   pkg_failed=yes
29547 fi
29548     fi
29549 else
29550         pkg_failed=untried
29551 fi
29552
29553
29554
29555 if test $pkg_failed = yes; then
29556
29557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29558         _pkg_short_errors_supported=yes
29559 else
29560         _pkg_short_errors_supported=no
29561 fi
29562         if test $_pkg_short_errors_supported = yes; then
29563                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29564         else
29565                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29566         fi
29567         # Put the nasty error message in config.log where it belongs
29568         echo "$DIRECTFB_PKG_ERRORS" >&5
29569
29570
29571                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29572 echo "$as_me: error: DirectFB not found." >&2;}
29573    { (exit 1); exit 1; }; }
29574
29575
29576 elif test $pkg_failed = untried; then
29577
29578                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29579 echo "$as_me: error: DirectFB not found." >&2;}
29580    { (exit 1); exit 1; }; }
29581
29582
29583 else
29584         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29585         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29586         { echo "$as_me:$LINENO: result: yes" >&5
29587 echo "${ECHO_T}yes" >&6; }
29588
29589                            wxUSE_UNIVERSAL="yes"
29590                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29591                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29592                            TOOLKIT=DFB
29593                            GUIDIST=DFB_DIST
29594
29595 fi
29596     fi
29597
29598     if test "$wxUSE_MICROWIN" = 1; then
29599         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29600 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29601         if test "x$MICROWINDOWS" = x ; then
29602             { echo "$as_me:$LINENO: result: not found" >&5
29603 echo "${ECHO_T}not found" >&6; }
29604             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29605 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29606    { (exit 1); exit 1; }; }
29607         else
29608             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29609 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29610         fi
29611
29612         if test -f $MICROWINDOWS/lib/libmwin.a; then
29613             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29614 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29615         else
29616             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29617 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29618    { (exit 1); exit 1; }; }
29619         fi
29620
29621         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29622         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29623
29624         wxUSE_UNIVERSAL="yes"
29625
29626         AFMINSTALL=afminstall
29627         TOOLKIT=MICROWIN
29628         GUIDIST=MICROWIN_DIST
29629
29630         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29631     fi
29632
29633         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29634                                 { echo "$as_me:$LINENO: checking for X" >&5
29635 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29636
29637
29638 # Check whether --with-x was given.
29639 if test "${with_x+set}" = set; then
29640   withval=$with_x;
29641 fi
29642
29643 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29644 if test "x$with_x" = xno; then
29645   # The user explicitly disabled X.
29646   have_x=disabled
29647 else
29648   case $x_includes,$x_libraries in #(
29649     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29650 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29651    { (exit 1); exit 1; }; };; #(
29652     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29653   echo $ECHO_N "(cached) $ECHO_C" >&6
29654 else
29655   # One or both of the vars are not set, and there is no cached value.
29656 ac_x_includes=no ac_x_libraries=no
29657 rm -f -r conftest.dir
29658 if mkdir conftest.dir; then
29659   cd conftest.dir
29660   cat >Imakefile <<'_ACEOF'
29661 incroot:
29662         @echo incroot='${INCROOT}'
29663 usrlibdir:
29664         @echo usrlibdir='${USRLIBDIR}'
29665 libdir:
29666         @echo libdir='${LIBDIR}'
29667 _ACEOF
29668   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29669     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29670     for ac_var in incroot usrlibdir libdir; do
29671       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29672     done
29673     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29674     for ac_extension in a so sl; do
29675       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29676          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29677         ac_im_usrlibdir=$ac_im_libdir; break
29678       fi
29679     done
29680     # Screen out bogus values from the imake configuration.  They are
29681     # bogus both because they are the default anyway, and because
29682     # using them would break gcc on systems where it needs fixed includes.
29683     case $ac_im_incroot in
29684         /usr/include) ac_x_includes= ;;
29685         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29686     esac
29687     case $ac_im_usrlibdir in
29688         /usr/lib | /lib) ;;
29689         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29690     esac
29691   fi
29692   cd ..
29693   rm -f -r conftest.dir
29694 fi
29695
29696 # Standard set of common directories for X headers.
29697 # Check X11 before X11Rn because it is often a symlink to the current release.
29698 ac_x_header_dirs='
29699 /usr/X11/include
29700 /usr/X11R6/include
29701 /usr/X11R5/include
29702 /usr/X11R4/include
29703
29704 /usr/include/X11
29705 /usr/include/X11R6
29706 /usr/include/X11R5
29707 /usr/include/X11R4
29708
29709 /usr/local/X11/include
29710 /usr/local/X11R6/include
29711 /usr/local/X11R5/include
29712 /usr/local/X11R4/include
29713
29714 /usr/local/include/X11
29715 /usr/local/include/X11R6
29716 /usr/local/include/X11R5
29717 /usr/local/include/X11R4
29718
29719 /usr/X386/include
29720 /usr/x386/include
29721 /usr/XFree86/include/X11
29722
29723 /usr/include
29724 /usr/local/include
29725 /usr/unsupported/include
29726 /usr/athena/include
29727 /usr/local/x11r5/include
29728 /usr/lpp/Xamples/include
29729
29730 /usr/openwin/include
29731 /usr/openwin/share/include'
29732
29733 if test "$ac_x_includes" = no; then
29734   # Guess where to find include files, by looking for Xlib.h.
29735   # First, try using that file with no special directory specified.
29736   cat >conftest.$ac_ext <<_ACEOF
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742 #include <X11/Xlib.h>
29743 _ACEOF
29744 if { (ac_try="$ac_cpp conftest.$ac_ext"
29745 case "(($ac_try" in
29746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747   *) ac_try_echo=$ac_try;;
29748 esac
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29751   ac_status=$?
29752   grep -v '^ *+' conftest.er1 >conftest.err
29753   rm -f conftest.er1
29754   cat conftest.err >&5
29755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); } >/dev/null && {
29757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29758          test ! -s conftest.err
29759        }; then
29760   # We can compile using X headers with no special include directory.
29761 ac_x_includes=
29762 else
29763   echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29765
29766   for ac_dir in $ac_x_header_dirs; do
29767   if test -r "$ac_dir/X11/Xlib.h"; then
29768     ac_x_includes=$ac_dir
29769     break
29770   fi
29771 done
29772 fi
29773
29774 rm -f conftest.err conftest.$ac_ext
29775 fi # $ac_x_includes = no
29776
29777 if test "$ac_x_libraries" = no; then
29778   # Check for the libraries.
29779   # See if we find them without any special options.
29780   # Don't add to $LIBS permanently.
29781   ac_save_LIBS=$LIBS
29782   LIBS="-lX11 $LIBS"
29783   cat >conftest.$ac_ext <<_ACEOF
29784 /* confdefs.h.  */
29785 _ACEOF
29786 cat confdefs.h >>conftest.$ac_ext
29787 cat >>conftest.$ac_ext <<_ACEOF
29788 /* end confdefs.h.  */
29789 #include <X11/Xlib.h>
29790 int
29791 main ()
29792 {
29793 XrmInitialize ()
29794   ;
29795   return 0;
29796 }
29797 _ACEOF
29798 rm -f conftest.$ac_objext conftest$ac_exeext
29799 if { (ac_try="$ac_link"
29800 case "(($ac_try" in
29801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802   *) ac_try_echo=$ac_try;;
29803 esac
29804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805   (eval "$ac_link") 2>conftest.er1
29806   ac_status=$?
29807   grep -v '^ *+' conftest.er1 >conftest.err
29808   rm -f conftest.er1
29809   cat conftest.err >&5
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); } && {
29812          test -z "$ac_c_werror_flag" ||
29813          test ! -s conftest.err
29814        } && test -s conftest$ac_exeext &&
29815        $as_test_x conftest$ac_exeext; then
29816   LIBS=$ac_save_LIBS
29817 # We can link X programs with no special library path.
29818 ac_x_libraries=
29819 else
29820   echo "$as_me: failed program was:" >&5
29821 sed 's/^/| /' conftest.$ac_ext >&5
29822
29823         LIBS=$ac_save_LIBS
29824 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29825 do
29826   # Don't even attempt the hair of trying to link an X program!
29827   for ac_extension in a so sl; do
29828     if test -r "$ac_dir/libX11.$ac_extension"; then
29829       ac_x_libraries=$ac_dir
29830       break 2
29831     fi
29832   done
29833 done
29834 fi
29835
29836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29837       conftest$ac_exeext conftest.$ac_ext
29838 fi # $ac_x_libraries = no
29839
29840 case $ac_x_includes,$ac_x_libraries in #(
29841   no,* | *,no | *\'*)
29842     # Didn't find X, or a directory has "'" in its name.
29843     ac_cv_have_x="have_x=no";; #(
29844   *)
29845     # Record where we found X for the cache.
29846     ac_cv_have_x="have_x=yes\
29847         ac_x_includes='$ac_x_includes'\
29848         ac_x_libraries='$ac_x_libraries'"
29849 esac
29850 fi
29851 ;; #(
29852     *) have_x=yes;;
29853   esac
29854   eval "$ac_cv_have_x"
29855 fi # $with_x != no
29856
29857 if test "$have_x" != yes; then
29858   { echo "$as_me:$LINENO: result: $have_x" >&5
29859 echo "${ECHO_T}$have_x" >&6; }
29860   no_x=yes
29861 else
29862   # If each of the values was on the command line, it overrides each guess.
29863   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29864   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29865   # Update the cache value to reflect the command line values.
29866   ac_cv_have_x="have_x=yes\
29867         ac_x_includes='$x_includes'\
29868         ac_x_libraries='$x_libraries'"
29869   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29870 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29871 fi
29872
29873 if test "$no_x" = yes; then
29874   # Not all programs may use this symbol, but it does not hurt to define it.
29875
29876 cat >>confdefs.h <<\_ACEOF
29877 #define X_DISPLAY_MISSING 1
29878 _ACEOF
29879
29880   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29881 else
29882   if test -n "$x_includes"; then
29883     X_CFLAGS="$X_CFLAGS -I$x_includes"
29884   fi
29885
29886   # It would also be nice to do this for all -L options, not just this one.
29887   if test -n "$x_libraries"; then
29888     X_LIBS="$X_LIBS -L$x_libraries"
29889     # For Solaris; some versions of Sun CC require a space after -R and
29890     # others require no space.  Words are not sufficient . . . .
29891     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29892 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29893     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29894     ac_xsave_c_werror_flag=$ac_c_werror_flag
29895     ac_c_werror_flag=yes
29896     cat >conftest.$ac_ext <<_ACEOF
29897 /* confdefs.h.  */
29898 _ACEOF
29899 cat confdefs.h >>conftest.$ac_ext
29900 cat >>conftest.$ac_ext <<_ACEOF
29901 /* end confdefs.h.  */
29902
29903 int
29904 main ()
29905 {
29906
29907   ;
29908   return 0;
29909 }
29910 _ACEOF
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (ac_try="$ac_link"
29913 case "(($ac_try" in
29914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915   *) ac_try_echo=$ac_try;;
29916 esac
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918   (eval "$ac_link") 2>conftest.er1
29919   ac_status=$?
29920   grep -v '^ *+' conftest.er1 >conftest.err
29921   rm -f conftest.er1
29922   cat conftest.err >&5
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); } && {
29925          test -z "$ac_c_werror_flag" ||
29926          test ! -s conftest.err
29927        } && test -s conftest$ac_exeext &&
29928        $as_test_x conftest$ac_exeext; then
29929   { echo "$as_me:$LINENO: result: no" >&5
29930 echo "${ECHO_T}no" >&6; }
29931        X_LIBS="$X_LIBS -R$x_libraries"
29932 else
29933   echo "$as_me: failed program was:" >&5
29934 sed 's/^/| /' conftest.$ac_ext >&5
29935
29936         LIBS="$ac_xsave_LIBS -R $x_libraries"
29937        cat >conftest.$ac_ext <<_ACEOF
29938 /* confdefs.h.  */
29939 _ACEOF
29940 cat confdefs.h >>conftest.$ac_ext
29941 cat >>conftest.$ac_ext <<_ACEOF
29942 /* end confdefs.h.  */
29943
29944 int
29945 main ()
29946 {
29947
29948   ;
29949   return 0;
29950 }
29951 _ACEOF
29952 rm -f conftest.$ac_objext conftest$ac_exeext
29953 if { (ac_try="$ac_link"
29954 case "(($ac_try" in
29955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956   *) ac_try_echo=$ac_try;;
29957 esac
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959   (eval "$ac_link") 2>conftest.er1
29960   ac_status=$?
29961   grep -v '^ *+' conftest.er1 >conftest.err
29962   rm -f conftest.er1
29963   cat conftest.err >&5
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); } && {
29966          test -z "$ac_c_werror_flag" ||
29967          test ! -s conftest.err
29968        } && test -s conftest$ac_exeext &&
29969        $as_test_x conftest$ac_exeext; then
29970   { echo "$as_me:$LINENO: result: yes" >&5
29971 echo "${ECHO_T}yes" >&6; }
29972           X_LIBS="$X_LIBS -R $x_libraries"
29973 else
29974   echo "$as_me: failed program was:" >&5
29975 sed 's/^/| /' conftest.$ac_ext >&5
29976
29977         { echo "$as_me:$LINENO: result: neither works" >&5
29978 echo "${ECHO_T}neither works" >&6; }
29979 fi
29980
29981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29982       conftest$ac_exeext conftest.$ac_ext
29983 fi
29984
29985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29986       conftest$ac_exeext conftest.$ac_ext
29987     ac_c_werror_flag=$ac_xsave_c_werror_flag
29988     LIBS=$ac_xsave_LIBS
29989   fi
29990
29991   # Check for system-dependent libraries X programs must link with.
29992   # Do this before checking for the system-independent R6 libraries
29993   # (-lICE), since we may need -lsocket or whatever for X linking.
29994
29995   if test "$ISC" = yes; then
29996     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29997   else
29998     # Martyn Johnson says this is needed for Ultrix, if the X
29999     # libraries were built with DECnet support.  And Karl Berry says
30000     # the Alpha needs dnet_stub (dnet does not exist).
30001     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30002     cat >conftest.$ac_ext <<_ACEOF
30003 /* confdefs.h.  */
30004 _ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h.  */
30008
30009 /* Override any GCC internal prototype to avoid an error.
30010    Use char because int might match the return type of a GCC
30011    builtin and then its argument prototype would still apply.  */
30012 #ifdef __cplusplus
30013 extern "C"
30014 #endif
30015 char XOpenDisplay ();
30016 int
30017 main ()
30018 {
30019 return XOpenDisplay ();
30020   ;
30021   return 0;
30022 }
30023 _ACEOF
30024 rm -f conftest.$ac_objext conftest$ac_exeext
30025 if { (ac_try="$ac_link"
30026 case "(($ac_try" in
30027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30028   *) ac_try_echo=$ac_try;;
30029 esac
30030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30031   (eval "$ac_link") 2>conftest.er1
30032   ac_status=$?
30033   grep -v '^ *+' conftest.er1 >conftest.err
30034   rm -f conftest.er1
30035   cat conftest.err >&5
30036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037   (exit $ac_status); } && {
30038          test -z "$ac_c_werror_flag" ||
30039          test ! -s conftest.err
30040        } && test -s conftest$ac_exeext &&
30041        $as_test_x conftest$ac_exeext; then
30042   :
30043 else
30044   echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.$ac_ext >&5
30046
30047         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30048 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30049 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30050   echo $ECHO_N "(cached) $ECHO_C" >&6
30051 else
30052   ac_check_lib_save_LIBS=$LIBS
30053 LIBS="-ldnet  $LIBS"
30054 cat >conftest.$ac_ext <<_ACEOF
30055 /* confdefs.h.  */
30056 _ACEOF
30057 cat confdefs.h >>conftest.$ac_ext
30058 cat >>conftest.$ac_ext <<_ACEOF
30059 /* end confdefs.h.  */
30060
30061 /* Override any GCC internal prototype to avoid an error.
30062    Use char because int might match the return type of a GCC
30063    builtin and then its argument prototype would still apply.  */
30064 #ifdef __cplusplus
30065 extern "C"
30066 #endif
30067 char dnet_ntoa ();
30068 int
30069 main ()
30070 {
30071 return dnet_ntoa ();
30072   ;
30073   return 0;
30074 }
30075 _ACEOF
30076 rm -f conftest.$ac_objext conftest$ac_exeext
30077 if { (ac_try="$ac_link"
30078 case "(($ac_try" in
30079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080   *) ac_try_echo=$ac_try;;
30081 esac
30082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083   (eval "$ac_link") 2>conftest.er1
30084   ac_status=$?
30085   grep -v '^ *+' conftest.er1 >conftest.err
30086   rm -f conftest.er1
30087   cat conftest.err >&5
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); } && {
30090          test -z "$ac_c_werror_flag" ||
30091          test ! -s conftest.err
30092        } && test -s conftest$ac_exeext &&
30093        $as_test_x conftest$ac_exeext; then
30094   ac_cv_lib_dnet_dnet_ntoa=yes
30095 else
30096   echo "$as_me: failed program was:" >&5
30097 sed 's/^/| /' conftest.$ac_ext >&5
30098
30099         ac_cv_lib_dnet_dnet_ntoa=no
30100 fi
30101
30102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30103       conftest$ac_exeext conftest.$ac_ext
30104 LIBS=$ac_check_lib_save_LIBS
30105 fi
30106 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30107 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30108 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30109   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30110 fi
30111
30112     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30113       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30114 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30115 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30116   echo $ECHO_N "(cached) $ECHO_C" >&6
30117 else
30118   ac_check_lib_save_LIBS=$LIBS
30119 LIBS="-ldnet_stub  $LIBS"
30120 cat >conftest.$ac_ext <<_ACEOF
30121 /* confdefs.h.  */
30122 _ACEOF
30123 cat confdefs.h >>conftest.$ac_ext
30124 cat >>conftest.$ac_ext <<_ACEOF
30125 /* end confdefs.h.  */
30126
30127 /* Override any GCC internal prototype to avoid an error.
30128    Use char because int might match the return type of a GCC
30129    builtin and then its argument prototype would still apply.  */
30130 #ifdef __cplusplus
30131 extern "C"
30132 #endif
30133 char dnet_ntoa ();
30134 int
30135 main ()
30136 {
30137 return dnet_ntoa ();
30138   ;
30139   return 0;
30140 }
30141 _ACEOF
30142 rm -f conftest.$ac_objext conftest$ac_exeext
30143 if { (ac_try="$ac_link"
30144 case "(($ac_try" in
30145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30146   *) ac_try_echo=$ac_try;;
30147 esac
30148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30149   (eval "$ac_link") 2>conftest.er1
30150   ac_status=$?
30151   grep -v '^ *+' conftest.er1 >conftest.err
30152   rm -f conftest.er1
30153   cat conftest.err >&5
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); } && {
30156          test -z "$ac_c_werror_flag" ||
30157          test ! -s conftest.err
30158        } && test -s conftest$ac_exeext &&
30159        $as_test_x conftest$ac_exeext; then
30160   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30161 else
30162   echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30164
30165         ac_cv_lib_dnet_stub_dnet_ntoa=no
30166 fi
30167
30168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30169       conftest$ac_exeext conftest.$ac_ext
30170 LIBS=$ac_check_lib_save_LIBS
30171 fi
30172 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30173 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30174 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30175   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30176 fi
30177
30178     fi
30179 fi
30180
30181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30182       conftest$ac_exeext conftest.$ac_ext
30183     LIBS="$ac_xsave_LIBS"
30184
30185     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30186     # to get the SysV transport functions.
30187     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30188     # needs -lnsl.
30189     # The nsl library prevents programs from opening the X display
30190     # on Irix 5.2, according to T.E. Dickey.
30191     # The functions gethostbyname, getservbyname, and inet_addr are
30192     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30193     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30194 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30195 if test "${ac_cv_func_gethostbyname+set}" = set; then
30196   echo $ECHO_N "(cached) $ECHO_C" >&6
30197 else
30198   cat >conftest.$ac_ext <<_ACEOF
30199 /* confdefs.h.  */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h.  */
30204 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30206 #define gethostbyname innocuous_gethostbyname
30207
30208 /* System header to define __stub macros and hopefully few prototypes,
30209     which can conflict with char gethostbyname (); below.
30210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30211     <limits.h> exists even on freestanding compilers.  */
30212
30213 #ifdef __STDC__
30214 # include <limits.h>
30215 #else
30216 # include <assert.h>
30217 #endif
30218
30219 #undef gethostbyname
30220
30221 /* Override any GCC internal prototype to avoid an error.
30222    Use char because int might match the return type of a GCC
30223    builtin and then its argument prototype would still apply.  */
30224 #ifdef __cplusplus
30225 extern "C"
30226 #endif
30227 char gethostbyname ();
30228 /* The GNU C library defines this for functions which it implements
30229     to always fail with ENOSYS.  Some functions are actually named
30230     something starting with __ and the normal name is an alias.  */
30231 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30232 choke me
30233 #endif
30234
30235 int
30236 main ()
30237 {
30238 return gethostbyname ();
30239   ;
30240   return 0;
30241 }
30242 _ACEOF
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (ac_try="$ac_link"
30245 case "(($ac_try" in
30246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247   *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250   (eval "$ac_link") 2>conftest.er1
30251   ac_status=$?
30252   grep -v '^ *+' conftest.er1 >conftest.err
30253   rm -f conftest.er1
30254   cat conftest.err >&5
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); } && {
30257          test -z "$ac_c_werror_flag" ||
30258          test ! -s conftest.err
30259        } && test -s conftest$ac_exeext &&
30260        $as_test_x conftest$ac_exeext; then
30261   ac_cv_func_gethostbyname=yes
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266         ac_cv_func_gethostbyname=no
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270       conftest$ac_exeext conftest.$ac_ext
30271 fi
30272 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30273 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30274
30275     if test $ac_cv_func_gethostbyname = no; then
30276       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30277 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30278 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30279   echo $ECHO_N "(cached) $ECHO_C" >&6
30280 else
30281   ac_check_lib_save_LIBS=$LIBS
30282 LIBS="-lnsl  $LIBS"
30283 cat >conftest.$ac_ext <<_ACEOF
30284 /* confdefs.h.  */
30285 _ACEOF
30286 cat confdefs.h >>conftest.$ac_ext
30287 cat >>conftest.$ac_ext <<_ACEOF
30288 /* end confdefs.h.  */
30289
30290 /* Override any GCC internal prototype to avoid an error.
30291    Use char because int might match the return type of a GCC
30292    builtin and then its argument prototype would still apply.  */
30293 #ifdef __cplusplus
30294 extern "C"
30295 #endif
30296 char gethostbyname ();
30297 int
30298 main ()
30299 {
30300 return gethostbyname ();
30301   ;
30302   return 0;
30303 }
30304 _ACEOF
30305 rm -f conftest.$ac_objext conftest$ac_exeext
30306 if { (ac_try="$ac_link"
30307 case "(($ac_try" in
30308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309   *) ac_try_echo=$ac_try;;
30310 esac
30311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30312   (eval "$ac_link") 2>conftest.er1
30313   ac_status=$?
30314   grep -v '^ *+' conftest.er1 >conftest.err
30315   rm -f conftest.er1
30316   cat conftest.err >&5
30317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318   (exit $ac_status); } && {
30319          test -z "$ac_c_werror_flag" ||
30320          test ! -s conftest.err
30321        } && test -s conftest$ac_exeext &&
30322        $as_test_x conftest$ac_exeext; then
30323   ac_cv_lib_nsl_gethostbyname=yes
30324 else
30325   echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30327
30328         ac_cv_lib_nsl_gethostbyname=no
30329 fi
30330
30331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30332       conftest$ac_exeext conftest.$ac_ext
30333 LIBS=$ac_check_lib_save_LIBS
30334 fi
30335 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30336 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30337 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30338   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30339 fi
30340
30341       if test $ac_cv_lib_nsl_gethostbyname = no; then
30342         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30343 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30344 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30345   echo $ECHO_N "(cached) $ECHO_C" >&6
30346 else
30347   ac_check_lib_save_LIBS=$LIBS
30348 LIBS="-lbsd  $LIBS"
30349 cat >conftest.$ac_ext <<_ACEOF
30350 /* confdefs.h.  */
30351 _ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h.  */
30355
30356 /* Override any GCC internal prototype to avoid an error.
30357    Use char because int might match the return type of a GCC
30358    builtin and then its argument prototype would still apply.  */
30359 #ifdef __cplusplus
30360 extern "C"
30361 #endif
30362 char gethostbyname ();
30363 int
30364 main ()
30365 {
30366 return gethostbyname ();
30367   ;
30368   return 0;
30369 }
30370 _ACEOF
30371 rm -f conftest.$ac_objext conftest$ac_exeext
30372 if { (ac_try="$ac_link"
30373 case "(($ac_try" in
30374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30375   *) ac_try_echo=$ac_try;;
30376 esac
30377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30378   (eval "$ac_link") 2>conftest.er1
30379   ac_status=$?
30380   grep -v '^ *+' conftest.er1 >conftest.err
30381   rm -f conftest.er1
30382   cat conftest.err >&5
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); } && {
30385          test -z "$ac_c_werror_flag" ||
30386          test ! -s conftest.err
30387        } && test -s conftest$ac_exeext &&
30388        $as_test_x conftest$ac_exeext; then
30389   ac_cv_lib_bsd_gethostbyname=yes
30390 else
30391   echo "$as_me: failed program was:" >&5
30392 sed 's/^/| /' conftest.$ac_ext >&5
30393
30394         ac_cv_lib_bsd_gethostbyname=no
30395 fi
30396
30397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30398       conftest$ac_exeext conftest.$ac_ext
30399 LIBS=$ac_check_lib_save_LIBS
30400 fi
30401 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30402 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30403 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30404   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30405 fi
30406
30407       fi
30408     fi
30409
30410     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30411     # socket/setsockopt and other routines are undefined under SCO ODT
30412     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30413     # on later versions), says Simon Leinen: it contains gethostby*
30414     # variants that don't use the name server (or something).  -lsocket
30415     # must be given before -lnsl if both are needed.  We assume that
30416     # if connect needs -lnsl, so does gethostbyname.
30417     { echo "$as_me:$LINENO: checking for connect" >&5
30418 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30419 if test "${ac_cv_func_connect+set}" = set; then
30420   echo $ECHO_N "(cached) $ECHO_C" >&6
30421 else
30422   cat >conftest.$ac_ext <<_ACEOF
30423 /* confdefs.h.  */
30424 _ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h.  */
30428 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30430 #define connect innocuous_connect
30431
30432 /* System header to define __stub macros and hopefully few prototypes,
30433     which can conflict with char connect (); below.
30434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435     <limits.h> exists even on freestanding compilers.  */
30436
30437 #ifdef __STDC__
30438 # include <limits.h>
30439 #else
30440 # include <assert.h>
30441 #endif
30442
30443 #undef connect
30444
30445 /* Override any GCC internal prototype to avoid an error.
30446    Use char because int might match the return type of a GCC
30447    builtin and then its argument prototype would still apply.  */
30448 #ifdef __cplusplus
30449 extern "C"
30450 #endif
30451 char connect ();
30452 /* The GNU C library defines this for functions which it implements
30453     to always fail with ENOSYS.  Some functions are actually named
30454     something starting with __ and the normal name is an alias.  */
30455 #if defined __stub_connect || defined __stub___connect
30456 choke me
30457 #endif
30458
30459 int
30460 main ()
30461 {
30462 return connect ();
30463   ;
30464   return 0;
30465 }
30466 _ACEOF
30467 rm -f conftest.$ac_objext conftest$ac_exeext
30468 if { (ac_try="$ac_link"
30469 case "(($ac_try" in
30470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471   *) ac_try_echo=$ac_try;;
30472 esac
30473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474   (eval "$ac_link") 2>conftest.er1
30475   ac_status=$?
30476   grep -v '^ *+' conftest.er1 >conftest.err
30477   rm -f conftest.er1
30478   cat conftest.err >&5
30479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480   (exit $ac_status); } && {
30481          test -z "$ac_c_werror_flag" ||
30482          test ! -s conftest.err
30483        } && test -s conftest$ac_exeext &&
30484        $as_test_x conftest$ac_exeext; then
30485   ac_cv_func_connect=yes
30486 else
30487   echo "$as_me: failed program was:" >&5
30488 sed 's/^/| /' conftest.$ac_ext >&5
30489
30490         ac_cv_func_connect=no
30491 fi
30492
30493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30494       conftest$ac_exeext conftest.$ac_ext
30495 fi
30496 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30497 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30498
30499     if test $ac_cv_func_connect = no; then
30500       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30501 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30502 if test "${ac_cv_lib_socket_connect+set}" = set; then
30503   echo $ECHO_N "(cached) $ECHO_C" >&6
30504 else
30505   ac_check_lib_save_LIBS=$LIBS
30506 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30507 cat >conftest.$ac_ext <<_ACEOF
30508 /* confdefs.h.  */
30509 _ACEOF
30510 cat confdefs.h >>conftest.$ac_ext
30511 cat >>conftest.$ac_ext <<_ACEOF
30512 /* end confdefs.h.  */
30513
30514 /* Override any GCC internal prototype to avoid an error.
30515    Use char because int might match the return type of a GCC
30516    builtin and then its argument prototype would still apply.  */
30517 #ifdef __cplusplus
30518 extern "C"
30519 #endif
30520 char connect ();
30521 int
30522 main ()
30523 {
30524 return connect ();
30525   ;
30526   return 0;
30527 }
30528 _ACEOF
30529 rm -f conftest.$ac_objext conftest$ac_exeext
30530 if { (ac_try="$ac_link"
30531 case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_link") 2>conftest.er1
30537   ac_status=$?
30538   grep -v '^ *+' conftest.er1 >conftest.err
30539   rm -f conftest.er1
30540   cat conftest.err >&5
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); } && {
30543          test -z "$ac_c_werror_flag" ||
30544          test ! -s conftest.err
30545        } && test -s conftest$ac_exeext &&
30546        $as_test_x conftest$ac_exeext; then
30547   ac_cv_lib_socket_connect=yes
30548 else
30549   echo "$as_me: failed program was:" >&5
30550 sed 's/^/| /' conftest.$ac_ext >&5
30551
30552         ac_cv_lib_socket_connect=no
30553 fi
30554
30555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30556       conftest$ac_exeext conftest.$ac_ext
30557 LIBS=$ac_check_lib_save_LIBS
30558 fi
30559 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30560 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30561 if test $ac_cv_lib_socket_connect = yes; then
30562   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30563 fi
30564
30565     fi
30566
30567     # Guillermo Gomez says -lposix is necessary on A/UX.
30568     { echo "$as_me:$LINENO: checking for remove" >&5
30569 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30570 if test "${ac_cv_func_remove+set}" = set; then
30571   echo $ECHO_N "(cached) $ECHO_C" >&6
30572 else
30573   cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h.  */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h.  */
30579 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30581 #define remove innocuous_remove
30582
30583 /* System header to define __stub macros and hopefully few prototypes,
30584     which can conflict with char remove (); below.
30585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30586     <limits.h> exists even on freestanding compilers.  */
30587
30588 #ifdef __STDC__
30589 # include <limits.h>
30590 #else
30591 # include <assert.h>
30592 #endif
30593
30594 #undef remove
30595
30596 /* Override any GCC internal prototype to avoid an error.
30597    Use char because int might match the return type of a GCC
30598    builtin and then its argument prototype would still apply.  */
30599 #ifdef __cplusplus
30600 extern "C"
30601 #endif
30602 char remove ();
30603 /* The GNU C library defines this for functions which it implements
30604     to always fail with ENOSYS.  Some functions are actually named
30605     something starting with __ and the normal name is an alias.  */
30606 #if defined __stub_remove || defined __stub___remove
30607 choke me
30608 #endif
30609
30610 int
30611 main ()
30612 {
30613 return remove ();
30614   ;
30615   return 0;
30616 }
30617 _ACEOF
30618 rm -f conftest.$ac_objext conftest$ac_exeext
30619 if { (ac_try="$ac_link"
30620 case "(($ac_try" in
30621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622   *) ac_try_echo=$ac_try;;
30623 esac
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625   (eval "$ac_link") 2>conftest.er1
30626   ac_status=$?
30627   grep -v '^ *+' conftest.er1 >conftest.err
30628   rm -f conftest.er1
30629   cat conftest.err >&5
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); } && {
30632          test -z "$ac_c_werror_flag" ||
30633          test ! -s conftest.err
30634        } && test -s conftest$ac_exeext &&
30635        $as_test_x conftest$ac_exeext; then
30636   ac_cv_func_remove=yes
30637 else
30638   echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30640
30641         ac_cv_func_remove=no
30642 fi
30643
30644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30645       conftest$ac_exeext conftest.$ac_ext
30646 fi
30647 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30648 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30649
30650     if test $ac_cv_func_remove = no; then
30651       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30652 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30653 if test "${ac_cv_lib_posix_remove+set}" = set; then
30654   echo $ECHO_N "(cached) $ECHO_C" >&6
30655 else
30656   ac_check_lib_save_LIBS=$LIBS
30657 LIBS="-lposix  $LIBS"
30658 cat >conftest.$ac_ext <<_ACEOF
30659 /* confdefs.h.  */
30660 _ACEOF
30661 cat confdefs.h >>conftest.$ac_ext
30662 cat >>conftest.$ac_ext <<_ACEOF
30663 /* end confdefs.h.  */
30664
30665 /* Override any GCC internal prototype to avoid an error.
30666    Use char because int might match the return type of a GCC
30667    builtin and then its argument prototype would still apply.  */
30668 #ifdef __cplusplus
30669 extern "C"
30670 #endif
30671 char remove ();
30672 int
30673 main ()
30674 {
30675 return remove ();
30676   ;
30677   return 0;
30678 }
30679 _ACEOF
30680 rm -f conftest.$ac_objext conftest$ac_exeext
30681 if { (ac_try="$ac_link"
30682 case "(($ac_try" in
30683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684   *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687   (eval "$ac_link") 2>conftest.er1
30688   ac_status=$?
30689   grep -v '^ *+' conftest.er1 >conftest.err
30690   rm -f conftest.er1
30691   cat conftest.err >&5
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); } && {
30694          test -z "$ac_c_werror_flag" ||
30695          test ! -s conftest.err
30696        } && test -s conftest$ac_exeext &&
30697        $as_test_x conftest$ac_exeext; then
30698   ac_cv_lib_posix_remove=yes
30699 else
30700   echo "$as_me: failed program was:" >&5
30701 sed 's/^/| /' conftest.$ac_ext >&5
30702
30703         ac_cv_lib_posix_remove=no
30704 fi
30705
30706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30707       conftest$ac_exeext conftest.$ac_ext
30708 LIBS=$ac_check_lib_save_LIBS
30709 fi
30710 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30711 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30712 if test $ac_cv_lib_posix_remove = yes; then
30713   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30714 fi
30715
30716     fi
30717
30718     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30719     { echo "$as_me:$LINENO: checking for shmat" >&5
30720 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30721 if test "${ac_cv_func_shmat+set}" = set; then
30722   echo $ECHO_N "(cached) $ECHO_C" >&6
30723 else
30724   cat >conftest.$ac_ext <<_ACEOF
30725 /* confdefs.h.  */
30726 _ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h.  */
30730 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30732 #define shmat innocuous_shmat
30733
30734 /* System header to define __stub macros and hopefully few prototypes,
30735     which can conflict with char shmat (); below.
30736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30737     <limits.h> exists even on freestanding compilers.  */
30738
30739 #ifdef __STDC__
30740 # include <limits.h>
30741 #else
30742 # include <assert.h>
30743 #endif
30744
30745 #undef shmat
30746
30747 /* Override any GCC internal prototype to avoid an error.
30748    Use char because int might match the return type of a GCC
30749    builtin and then its argument prototype would still apply.  */
30750 #ifdef __cplusplus
30751 extern "C"
30752 #endif
30753 char shmat ();
30754 /* The GNU C library defines this for functions which it implements
30755     to always fail with ENOSYS.  Some functions are actually named
30756     something starting with __ and the normal name is an alias.  */
30757 #if defined __stub_shmat || defined __stub___shmat
30758 choke me
30759 #endif
30760
30761 int
30762 main ()
30763 {
30764 return shmat ();
30765   ;
30766   return 0;
30767 }
30768 _ACEOF
30769 rm -f conftest.$ac_objext conftest$ac_exeext
30770 if { (ac_try="$ac_link"
30771 case "(($ac_try" in
30772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773   *) ac_try_echo=$ac_try;;
30774 esac
30775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776   (eval "$ac_link") 2>conftest.er1
30777   ac_status=$?
30778   grep -v '^ *+' conftest.er1 >conftest.err
30779   rm -f conftest.er1
30780   cat conftest.err >&5
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); } && {
30783          test -z "$ac_c_werror_flag" ||
30784          test ! -s conftest.err
30785        } && test -s conftest$ac_exeext &&
30786        $as_test_x conftest$ac_exeext; then
30787   ac_cv_func_shmat=yes
30788 else
30789   echo "$as_me: failed program was:" >&5
30790 sed 's/^/| /' conftest.$ac_ext >&5
30791
30792         ac_cv_func_shmat=no
30793 fi
30794
30795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30796       conftest$ac_exeext conftest.$ac_ext
30797 fi
30798 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30799 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30800
30801     if test $ac_cv_func_shmat = no; then
30802       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30803 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30804 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30805   echo $ECHO_N "(cached) $ECHO_C" >&6
30806 else
30807   ac_check_lib_save_LIBS=$LIBS
30808 LIBS="-lipc  $LIBS"
30809 cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h.  */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h.  */
30815
30816 /* Override any GCC internal prototype to avoid an error.
30817    Use char because int might match the return type of a GCC
30818    builtin and then its argument prototype would still apply.  */
30819 #ifdef __cplusplus
30820 extern "C"
30821 #endif
30822 char shmat ();
30823 int
30824 main ()
30825 {
30826 return shmat ();
30827   ;
30828   return 0;
30829 }
30830 _ACEOF
30831 rm -f conftest.$ac_objext conftest$ac_exeext
30832 if { (ac_try="$ac_link"
30833 case "(($ac_try" in
30834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835   *) ac_try_echo=$ac_try;;
30836 esac
30837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838   (eval "$ac_link") 2>conftest.er1
30839   ac_status=$?
30840   grep -v '^ *+' conftest.er1 >conftest.err
30841   rm -f conftest.er1
30842   cat conftest.err >&5
30843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844   (exit $ac_status); } && {
30845          test -z "$ac_c_werror_flag" ||
30846          test ! -s conftest.err
30847        } && test -s conftest$ac_exeext &&
30848        $as_test_x conftest$ac_exeext; then
30849   ac_cv_lib_ipc_shmat=yes
30850 else
30851   echo "$as_me: failed program was:" >&5
30852 sed 's/^/| /' conftest.$ac_ext >&5
30853
30854         ac_cv_lib_ipc_shmat=no
30855 fi
30856
30857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30858       conftest$ac_exeext conftest.$ac_ext
30859 LIBS=$ac_check_lib_save_LIBS
30860 fi
30861 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30862 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30863 if test $ac_cv_lib_ipc_shmat = yes; then
30864   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30865 fi
30866
30867     fi
30868   fi
30869
30870   # Check for libraries that X11R6 Xt/Xaw programs need.
30871   ac_save_LDFLAGS=$LDFLAGS
30872   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30873   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30874   # check for ICE first), but we must link in the order -lSM -lICE or
30875   # we get undefined symbols.  So assume we have SM if we have ICE.
30876   # These have to be linked with before -lX11, unlike the other
30877   # libraries we check for below, so use a different variable.
30878   # John Interrante, Karl Berry
30879   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30880 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30881 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30882   echo $ECHO_N "(cached) $ECHO_C" >&6
30883 else
30884   ac_check_lib_save_LIBS=$LIBS
30885 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30886 cat >conftest.$ac_ext <<_ACEOF
30887 /* confdefs.h.  */
30888 _ACEOF
30889 cat confdefs.h >>conftest.$ac_ext
30890 cat >>conftest.$ac_ext <<_ACEOF
30891 /* end confdefs.h.  */
30892
30893 /* Override any GCC internal prototype to avoid an error.
30894    Use char because int might match the return type of a GCC
30895    builtin and then its argument prototype would still apply.  */
30896 #ifdef __cplusplus
30897 extern "C"
30898 #endif
30899 char IceConnectionNumber ();
30900 int
30901 main ()
30902 {
30903 return IceConnectionNumber ();
30904   ;
30905   return 0;
30906 }
30907 _ACEOF
30908 rm -f conftest.$ac_objext conftest$ac_exeext
30909 if { (ac_try="$ac_link"
30910 case "(($ac_try" in
30911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912   *) ac_try_echo=$ac_try;;
30913 esac
30914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915   (eval "$ac_link") 2>conftest.er1
30916   ac_status=$?
30917   grep -v '^ *+' conftest.er1 >conftest.err
30918   rm -f conftest.er1
30919   cat conftest.err >&5
30920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921   (exit $ac_status); } && {
30922          test -z "$ac_c_werror_flag" ||
30923          test ! -s conftest.err
30924        } && test -s conftest$ac_exeext &&
30925        $as_test_x conftest$ac_exeext; then
30926   ac_cv_lib_ICE_IceConnectionNumber=yes
30927 else
30928   echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30930
30931         ac_cv_lib_ICE_IceConnectionNumber=no
30932 fi
30933
30934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30935       conftest$ac_exeext conftest.$ac_ext
30936 LIBS=$ac_check_lib_save_LIBS
30937 fi
30938 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30939 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30940 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30941   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30942 fi
30943
30944   LDFLAGS=$ac_save_LDFLAGS
30945
30946 fi
30947
30948
30949         if test "$no_x" = "yes"; then
30950           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30951 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30952    { (exit 1); exit 1; }; }
30953         fi
30954
30955                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30956         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30957         AFMINSTALL=afminstall
30958         COMPILED_X_PROGRAM=0
30959
30960     fi
30961
30962     if test "$wxUSE_X11" = 1; then
30963         if test "$wxUSE_NANOX" = "yes"; then
30964             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30965 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
30966             if test "x$MICROWIN" = x ; then
30967                 { echo "$as_me:$LINENO: result: not found" >&5
30968 echo "${ECHO_T}not found" >&6; }
30969                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30970 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30971    { (exit 1); exit 1; }; }
30972             else
30973                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
30974 echo "${ECHO_T}$MICROWIN" >&6; }
30975                 cat >>confdefs.h <<\_ACEOF
30976 #define wxUSE_NANOX 1
30977 _ACEOF
30978
30979             fi
30980         fi
30981
30982         if test "$wxUSE_UNICODE" = "yes"; then
30983
30984
30985 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30986         if test -n "$ac_tool_prefix"; then
30987   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30991 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30992   echo $ECHO_N "(cached) $ECHO_C" >&6
30993 else
30994   case $PKG_CONFIG in
30995   [\\/]* | ?:[\\/]*)
30996   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30997   ;;
30998   *)
30999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31000 for as_dir in $PATH
31001 do
31002   IFS=$as_save_IFS
31003   test -z "$as_dir" && as_dir=.
31004   for ac_exec_ext in '' $ac_executable_extensions; do
31005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31006     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31008     break 2
31009   fi
31010 done
31011 done
31012 IFS=$as_save_IFS
31013
31014   ;;
31015 esac
31016 fi
31017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31018 if test -n "$PKG_CONFIG"; then
31019   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31020 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31021 else
31022   { echo "$as_me:$LINENO: result: no" >&5
31023 echo "${ECHO_T}no" >&6; }
31024 fi
31025
31026
31027 fi
31028 if test -z "$ac_cv_path_PKG_CONFIG"; then
31029   ac_pt_PKG_CONFIG=$PKG_CONFIG
31030   # Extract the first word of "pkg-config", so it can be a program name with args.
31031 set dummy pkg-config; ac_word=$2
31032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31034 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31035   echo $ECHO_N "(cached) $ECHO_C" >&6
31036 else
31037   case $ac_pt_PKG_CONFIG in
31038   [\\/]* | ?:[\\/]*)
31039   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31040   ;;
31041   *)
31042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31043 for as_dir in $PATH
31044 do
31045   IFS=$as_save_IFS
31046   test -z "$as_dir" && as_dir=.
31047   for ac_exec_ext in '' $ac_executable_extensions; do
31048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31049     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31051     break 2
31052   fi
31053 done
31054 done
31055 IFS=$as_save_IFS
31056
31057   ;;
31058 esac
31059 fi
31060 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31061 if test -n "$ac_pt_PKG_CONFIG"; then
31062   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31063 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31064 else
31065   { echo "$as_me:$LINENO: result: no" >&5
31066 echo "${ECHO_T}no" >&6; }
31067 fi
31068
31069   if test "x$ac_pt_PKG_CONFIG" = x; then
31070     PKG_CONFIG=""
31071   else
31072     case $cross_compiling:$ac_tool_warned in
31073 yes:)
31074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31075 whose name does not start with the host triplet.  If you think this
31076 configuration is useful to you, please write to autoconf@gnu.org." >&5
31077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31078 whose name does not start with the host triplet.  If you think this
31079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31080 ac_tool_warned=yes ;;
31081 esac
31082     PKG_CONFIG=$ac_pt_PKG_CONFIG
31083   fi
31084 else
31085   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31086 fi
31087
31088 fi
31089 if test -n "$PKG_CONFIG"; then
31090         _pkg_min_version=0.9.0
31091         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31092 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31093         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31094                 { echo "$as_me:$LINENO: result: yes" >&5
31095 echo "${ECHO_T}yes" >&6; }
31096         else
31097                 { echo "$as_me:$LINENO: result: no" >&5
31098 echo "${ECHO_T}no" >&6; }
31099                 PKG_CONFIG=""
31100         fi
31101
31102 fi
31103
31104
31105 pkg_failed=no
31106 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31107 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31108
31109 if test -n "$PKG_CONFIG"; then
31110     if test -n "$PANGOX_CFLAGS"; then
31111         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31112     else
31113         if test -n "$PKG_CONFIG" && \
31114     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31115   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31116   ac_status=$?
31117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118   (exit $ac_status); }; then
31119   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31120 else
31121   pkg_failed=yes
31122 fi
31123     fi
31124 else
31125         pkg_failed=untried
31126 fi
31127 if test -n "$PKG_CONFIG"; then
31128     if test -n "$PANGOX_LIBS"; then
31129         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31130     else
31131         if test -n "$PKG_CONFIG" && \
31132     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31133   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31134   ac_status=$?
31135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136   (exit $ac_status); }; then
31137   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31138 else
31139   pkg_failed=yes
31140 fi
31141     fi
31142 else
31143         pkg_failed=untried
31144 fi
31145
31146
31147
31148 if test $pkg_failed = yes; then
31149
31150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31151         _pkg_short_errors_supported=yes
31152 else
31153         _pkg_short_errors_supported=no
31154 fi
31155         if test $_pkg_short_errors_supported = yes; then
31156                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31157         else
31158                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31159         fi
31160         # Put the nasty error message in config.log where it belongs
31161         echo "$PANGOX_PKG_ERRORS" >&5
31162
31163
31164                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31165 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31166    { (exit 1); exit 1; }; }
31167
31168
31169 elif test $pkg_failed = untried; then
31170
31171                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31172 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31173    { (exit 1); exit 1; }; }
31174
31175
31176 else
31177         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31178         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31179         { echo "$as_me:$LINENO: result: yes" >&5
31180 echo "${ECHO_T}yes" >&6; }
31181
31182                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31183                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31184                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31185
31186 fi
31187
31188 pkg_failed=no
31189 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31190 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31191
31192 if test -n "$PKG_CONFIG"; then
31193     if test -n "$PANGOFT2_CFLAGS"; then
31194         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31195     else
31196         if test -n "$PKG_CONFIG" && \
31197     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31198   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31199   ac_status=$?
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); }; then
31202   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31203 else
31204   pkg_failed=yes
31205 fi
31206     fi
31207 else
31208         pkg_failed=untried
31209 fi
31210 if test -n "$PKG_CONFIG"; then
31211     if test -n "$PANGOFT2_LIBS"; then
31212         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31213     else
31214         if test -n "$PKG_CONFIG" && \
31215     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31216   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31217   ac_status=$?
31218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219   (exit $ac_status); }; then
31220   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31221 else
31222   pkg_failed=yes
31223 fi
31224     fi
31225 else
31226         pkg_failed=untried
31227 fi
31228
31229
31230
31231 if test $pkg_failed = yes; then
31232
31233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31234         _pkg_short_errors_supported=yes
31235 else
31236         _pkg_short_errors_supported=no
31237 fi
31238         if test $_pkg_short_errors_supported = yes; then
31239                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31240         else
31241                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31242         fi
31243         # Put the nasty error message in config.log where it belongs
31244         echo "$PANGOFT2_PKG_ERRORS" >&5
31245
31246
31247                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31248 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31249                     wxUSE_PRINTING_ARCHITECTURE="no"
31250
31251
31252 elif test $pkg_failed = untried; then
31253
31254                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31255 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31256                     wxUSE_PRINTING_ARCHITECTURE="no"
31257
31258
31259 else
31260         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31261         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31262         { echo "$as_me:$LINENO: result: yes" >&5
31263 echo "${ECHO_T}yes" >&6; }
31264
31265                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31266                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31267                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31268
31269 fi
31270
31271 pkg_failed=no
31272 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31273 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31274
31275 if test -n "$PKG_CONFIG"; then
31276     if test -n "$PANGOXFT_CFLAGS"; then
31277         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31278     else
31279         if test -n "$PKG_CONFIG" && \
31280     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31281   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31282   ac_status=$?
31283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284   (exit $ac_status); }; then
31285   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31286 else
31287   pkg_failed=yes
31288 fi
31289     fi
31290 else
31291         pkg_failed=untried
31292 fi
31293 if test -n "$PKG_CONFIG"; then
31294     if test -n "$PANGOXFT_LIBS"; then
31295         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31296     else
31297         if test -n "$PKG_CONFIG" && \
31298     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31299   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31300   ac_status=$?
31301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302   (exit $ac_status); }; then
31303   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31304 else
31305   pkg_failed=yes
31306 fi
31307     fi
31308 else
31309         pkg_failed=untried
31310 fi
31311
31312
31313
31314 if test $pkg_failed = yes; then
31315
31316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31317         _pkg_short_errors_supported=yes
31318 else
31319         _pkg_short_errors_supported=no
31320 fi
31321         if test $_pkg_short_errors_supported = yes; then
31322                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31323         else
31324                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31325         fi
31326         # Put the nasty error message in config.log where it belongs
31327         echo "$PANGOXFT_PKG_ERRORS" >&5
31328
31329
31330                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31331 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31332
31333
31334 elif test $pkg_failed = untried; then
31335
31336                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31337 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31338
31339
31340 else
31341         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31342         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31343         { echo "$as_me:$LINENO: result: yes" >&5
31344 echo "${ECHO_T}yes" >&6; }
31345
31346                     cat >>confdefs.h <<\_ACEOF
31347 #define HAVE_PANGO_XFT 1
31348 _ACEOF
31349
31350                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31351                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31352                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31353
31354 fi
31355             save_LIBS="$LIBS"
31356             LIBS="$LIBS $PANGOX_LIBS"
31357
31358 for ac_func in pango_font_family_is_monospace
31359 do
31360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31364   echo $ECHO_N "(cached) $ECHO_C" >&6
31365 else
31366   cat >conftest.$ac_ext <<_ACEOF
31367 /* confdefs.h.  */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h.  */
31372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31374 #define $ac_func innocuous_$ac_func
31375
31376 /* System header to define __stub macros and hopefully few prototypes,
31377     which can conflict with char $ac_func (); below.
31378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31379     <limits.h> exists even on freestanding compilers.  */
31380
31381 #ifdef __STDC__
31382 # include <limits.h>
31383 #else
31384 # include <assert.h>
31385 #endif
31386
31387 #undef $ac_func
31388
31389 /* Override any GCC internal prototype to avoid an error.
31390    Use char because int might match the return type of a GCC
31391    builtin and then its argument prototype would still apply.  */
31392 #ifdef __cplusplus
31393 extern "C"
31394 #endif
31395 char $ac_func ();
31396 /* The GNU C library defines this for functions which it implements
31397     to always fail with ENOSYS.  Some functions are actually named
31398     something starting with __ and the normal name is an alias.  */
31399 #if defined __stub_$ac_func || defined __stub___$ac_func
31400 choke me
31401 #endif
31402
31403 int
31404 main ()
31405 {
31406 return $ac_func ();
31407   ;
31408   return 0;
31409 }
31410 _ACEOF
31411 rm -f conftest.$ac_objext conftest$ac_exeext
31412 if { (ac_try="$ac_link"
31413 case "(($ac_try" in
31414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415   *) ac_try_echo=$ac_try;;
31416 esac
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418   (eval "$ac_link") 2>conftest.er1
31419   ac_status=$?
31420   grep -v '^ *+' conftest.er1 >conftest.err
31421   rm -f conftest.er1
31422   cat conftest.err >&5
31423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424   (exit $ac_status); } && {
31425          test -z "$ac_c_werror_flag" ||
31426          test ! -s conftest.err
31427        } && test -s conftest$ac_exeext &&
31428        $as_test_x conftest$ac_exeext; then
31429   eval "$as_ac_var=yes"
31430 else
31431   echo "$as_me: failed program was:" >&5
31432 sed 's/^/| /' conftest.$ac_ext >&5
31433
31434         eval "$as_ac_var=no"
31435 fi
31436
31437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31438       conftest$ac_exeext conftest.$ac_ext
31439 fi
31440 ac_res=`eval echo '${'$as_ac_var'}'`
31441                { echo "$as_me:$LINENO: result: $ac_res" >&5
31442 echo "${ECHO_T}$ac_res" >&6; }
31443 if test `eval echo '${'$as_ac_var'}'` = yes; then
31444   cat >>confdefs.h <<_ACEOF
31445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31446 _ACEOF
31447
31448 fi
31449 done
31450
31451             LIBS="$save_LIBS"
31452         fi
31453
31454         wxUSE_UNIVERSAL="yes"
31455
31456         if test "$wxUSE_NANOX" = "yes"; then
31457             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31458             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"
31459             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31460         else
31461             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31462         fi
31463
31464         TOOLKIT=X11
31465         GUIDIST=X11_DIST
31466     fi
31467
31468     if test "$wxUSE_MOTIF" = 1; then
31469         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31470 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31471
31472 ac_find_includes=
31473 for ac_dir in $SEARCH_INCLUDE /usr/include;
31474   do
31475     if test -f "$ac_dir/Xm/Xm.h"; then
31476       ac_find_includes=$ac_dir
31477       break
31478     fi
31479   done
31480
31481         if test "$ac_find_includes" != "" ; then
31482             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31483 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31484
31485     if test "x$ac_find_includes" = "x/usr/include"; then
31486     ac_path_to_include=""
31487   else
31488     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31489     result=$?
31490     if test $result = 0; then
31491       ac_path_to_include=""
31492     else
31493       ac_path_to_include=" -I$ac_find_includes"
31494     fi
31495   fi
31496
31497             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31498         else
31499             save_CFLAGS=$CFLAGS
31500             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31501
31502             cat >conftest.$ac_ext <<_ACEOF
31503 /* confdefs.h.  */
31504 _ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h.  */
31508
31509                     #include <Xm/Xm.h>
31510
31511 int
31512 main ()
31513 {
31514
31515                     int version;
31516                     version = xmUseVersion;
31517
31518   ;
31519   return 0;
31520 }
31521 _ACEOF
31522 rm -f conftest.$ac_objext
31523 if { (ac_try="$ac_compile"
31524 case "(($ac_try" in
31525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526   *) ac_try_echo=$ac_try;;
31527 esac
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529   (eval "$ac_compile") 2>conftest.er1
31530   ac_status=$?
31531   grep -v '^ *+' conftest.er1 >conftest.err
31532   rm -f conftest.er1
31533   cat conftest.err >&5
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); } && {
31536          test -z "$ac_c_werror_flag" ||
31537          test ! -s conftest.err
31538        } && test -s conftest.$ac_objext; then
31539
31540                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31541 echo "${ECHO_T}found in default search path" >&6; }
31542                     COMPILED_X_PROGRAM=1
31543
31544 else
31545   echo "$as_me: failed program was:" >&5
31546 sed 's/^/| /' conftest.$ac_ext >&5
31547
31548
31549                     { echo "$as_me:$LINENO: result: no" >&5
31550 echo "${ECHO_T}no" >&6; }
31551                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31552 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31553    { (exit 1); exit 1; }; }
31554
31555
31556 fi
31557
31558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31559
31560             CFLAGS=$save_CFLAGS
31561         fi
31562
31563
31564         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31565 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31566
31567   ac_find_libraries=
31568   for ac_dir in $SEARCH_LIB;
31569   do
31570     for ac_extension in a so sl dylib dll.a; do
31571       if test -f "$ac_dir/libXm.$ac_extension"; then
31572         ac_find_libraries=$ac_dir
31573         break 2
31574       fi
31575     done
31576   done
31577
31578
31579         if test "x$ac_find_libraries" != "x" ; then
31580             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31581 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31582
31583
31584     if test "$ac_find_libraries" = "default location"; then
31585     ac_path_to_link=""
31586   else
31587     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31588     result=$?
31589     if test $result = 0; then
31590       ac_path_to_link=""
31591     else
31592       ac_path_to_link=" -L$ac_find_libraries"
31593     fi
31594   fi
31595
31596             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31597         else
31598                                                 save_CFLAGS=$CFLAGS
31599             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31600             save_LIBS="$LIBS"
31601             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31602
31603             cat >conftest.$ac_ext <<_ACEOF
31604 /* confdefs.h.  */
31605 _ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h.  */
31609
31610                     #include <Xm/Xm.h>
31611
31612 int
31613 main ()
31614 {
31615
31616                     int version;
31617                     version = xmUseVersion;
31618
31619   ;
31620   return 0;
31621 }
31622 _ACEOF
31623 rm -f conftest.$ac_objext conftest$ac_exeext
31624 if { (ac_try="$ac_link"
31625 case "(($ac_try" in
31626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627   *) ac_try_echo=$ac_try;;
31628 esac
31629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31630   (eval "$ac_link") 2>conftest.er1
31631   ac_status=$?
31632   grep -v '^ *+' conftest.er1 >conftest.err
31633   rm -f conftest.er1
31634   cat conftest.err >&5
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); } && {
31637          test -z "$ac_c_werror_flag" ||
31638          test ! -s conftest.err
31639        } && test -s conftest$ac_exeext &&
31640        $as_test_x conftest$ac_exeext; then
31641
31642                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31643 echo "${ECHO_T}found in default search path" >&6; }
31644                     COMPILED_X_PROGRAM=1
31645
31646 else
31647   echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31649
31650
31651                     { echo "$as_me:$LINENO: result: no" >&5
31652 echo "${ECHO_T}no" >&6; }
31653                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31654 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31655    { (exit 1); exit 1; }; }
31656
31657
31658 fi
31659
31660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31661       conftest$ac_exeext conftest.$ac_ext
31662
31663             CFLAGS=$save_CFLAGS
31664             LIBS="$save_LIBS"
31665         fi
31666
31667         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31668 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
31669         libp_link=""
31670         libsm_ice_link=""
31671         libs_found=0
31672         for libp in "" " -lXp"; do
31673             if test "$libs_found" = 0; then
31674                 for libsm_ice in "" " -lSM -lICE"; do
31675                     if test "$libs_found" = 0; then
31676                         save_LIBS="$LIBS"
31677                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31678                         save_CFLAGS=$CFLAGS
31679                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31680
31681                         cat >conftest.$ac_ext <<_ACEOF
31682 /* confdefs.h.  */
31683 _ACEOF
31684 cat confdefs.h >>conftest.$ac_ext
31685 cat >>conftest.$ac_ext <<_ACEOF
31686 /* end confdefs.h.  */
31687
31688                                 #include <Xm/Xm.h>
31689                                 #include <Xm/List.h>
31690
31691 int
31692 main ()
31693 {
31694
31695                                 XmString string = NULL;
31696                                 Widget w = NULL;
31697                                 int position = 0;
31698                                 XmListAddItem(w, string, position);
31699
31700   ;
31701   return 0;
31702 }
31703 _ACEOF
31704 rm -f conftest.$ac_objext conftest$ac_exeext
31705 if { (ac_try="$ac_link"
31706 case "(($ac_try" in
31707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708   *) ac_try_echo=$ac_try;;
31709 esac
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711   (eval "$ac_link") 2>conftest.er1
31712   ac_status=$?
31713   grep -v '^ *+' conftest.er1 >conftest.err
31714   rm -f conftest.er1
31715   cat conftest.err >&5
31716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717   (exit $ac_status); } && {
31718          test -z "$ac_c_werror_flag" ||
31719          test ! -s conftest.err
31720        } && test -s conftest$ac_exeext &&
31721        $as_test_x conftest$ac_exeext; then
31722
31723                                 libp_link="$libp"
31724                                 libsm_ice_link="$libsm_ice"
31725                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31726 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
31727                                 libs_found=1
31728
31729 else
31730   echo "$as_me: failed program was:" >&5
31731 sed 's/^/| /' conftest.$ac_ext >&5
31732
31733
31734
31735 fi
31736
31737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31738       conftest$ac_exeext conftest.$ac_ext
31739
31740                         LIBS="$save_LIBS"
31741                         CFLAGS=$save_CFLAGS
31742                     fi
31743                 done
31744             fi
31745         done
31746
31747         if test "$libs_found" = 0; then
31748             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31749 echo "${ECHO_T}can't find the right libraries" >&6; }
31750             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31751 echo "$as_me: error: can't link a simple motif program" >&2;}
31752    { (exit 1); exit 1; }; }
31753         fi
31754
31755                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31756 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
31757 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31758   echo $ECHO_N "(cached) $ECHO_C" >&6
31759 else
31760   ac_check_lib_save_LIBS=$LIBS
31761 LIBS="-lSgm  $LIBS"
31762 cat >conftest.$ac_ext <<_ACEOF
31763 /* confdefs.h.  */
31764 _ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h.  */
31768
31769 /* Override any GCC internal prototype to avoid an error.
31770    Use char because int might match the return type of a GCC
31771    builtin and then its argument prototype would still apply.  */
31772 #ifdef __cplusplus
31773 extern "C"
31774 #endif
31775 char SgCreateList ();
31776 int
31777 main ()
31778 {
31779 return SgCreateList ();
31780   ;
31781   return 0;
31782 }
31783 _ACEOF
31784 rm -f conftest.$ac_objext conftest$ac_exeext
31785 if { (ac_try="$ac_link"
31786 case "(($ac_try" in
31787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788   *) ac_try_echo=$ac_try;;
31789 esac
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791   (eval "$ac_link") 2>conftest.er1
31792   ac_status=$?
31793   grep -v '^ *+' conftest.er1 >conftest.err
31794   rm -f conftest.er1
31795   cat conftest.err >&5
31796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797   (exit $ac_status); } && {
31798          test -z "$ac_c_werror_flag" ||
31799          test ! -s conftest.err
31800        } && test -s conftest$ac_exeext &&
31801        $as_test_x conftest$ac_exeext; then
31802   ac_cv_lib_Sgm_SgCreateList=yes
31803 else
31804   echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31806
31807         ac_cv_lib_Sgm_SgCreateList=no
31808 fi
31809
31810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31811       conftest$ac_exeext conftest.$ac_ext
31812 LIBS=$ac_check_lib_save_LIBS
31813 fi
31814 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31815 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
31816 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31817   libsgm_link=" -lSgm"
31818 fi
31819
31820
31821         save_CFLAGS=$CFLAGS
31822         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31823
31824         { echo "$as_me:$LINENO: checking for Motif 2" >&5
31825 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
31826 if test "${wx_cv_lib_motif2+set}" = set; then
31827   echo $ECHO_N "(cached) $ECHO_C" >&6
31828 else
31829   cat >conftest.$ac_ext <<_ACEOF
31830 /* confdefs.h.  */
31831 _ACEOF
31832 cat confdefs.h >>conftest.$ac_ext
31833 cat >>conftest.$ac_ext <<_ACEOF
31834 /* end confdefs.h.  */
31835
31836                             #include <Xm/Xm.h>
31837
31838 int
31839 main ()
31840 {
31841
31842                             #if XmVersion < 2000
31843                             Not Motif 2
31844                             #endif
31845
31846   ;
31847   return 0;
31848 }
31849 _ACEOF
31850 rm -f conftest.$ac_objext
31851 if { (ac_try="$ac_compile"
31852 case "(($ac_try" in
31853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854   *) ac_try_echo=$ac_try;;
31855 esac
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857   (eval "$ac_compile") 2>conftest.er1
31858   ac_status=$?
31859   grep -v '^ *+' conftest.er1 >conftest.err
31860   rm -f conftest.er1
31861   cat conftest.err >&5
31862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863   (exit $ac_status); } && {
31864          test -z "$ac_c_werror_flag" ||
31865          test ! -s conftest.err
31866        } && test -s conftest.$ac_objext; then
31867   wx_cv_lib_motif2="yes"
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872         wx_cv_lib_motif2="no"
31873 fi
31874
31875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31876 fi
31877 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31878 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
31879         if test "$wx_cv_lib_motif2" = "yes"; then
31880             cat >>confdefs.h <<\_ACEOF
31881 #define __WXMOTIF20__ 1
31882 _ACEOF
31883
31884         else
31885             cat >>confdefs.h <<\_ACEOF
31886 #define __WXMOTIF20__ 0
31887 _ACEOF
31888
31889         fi
31890
31891         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31892 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
31893 if test "${wx_cv_lib_lesstif+set}" = set; then
31894   echo $ECHO_N "(cached) $ECHO_C" >&6
31895 else
31896   cat >conftest.$ac_ext <<_ACEOF
31897 /* confdefs.h.  */
31898 _ACEOF
31899 cat confdefs.h >>conftest.$ac_ext
31900 cat >>conftest.$ac_ext <<_ACEOF
31901 /* end confdefs.h.  */
31902
31903                             #include <Xm/Xm.h>
31904
31905 int
31906 main ()
31907 {
31908
31909                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31910                             Not Lesstif
31911                             #endif
31912
31913   ;
31914   return 0;
31915 }
31916 _ACEOF
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_compile") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } && {
31931          test -z "$ac_c_werror_flag" ||
31932          test ! -s conftest.err
31933        } && test -s conftest.$ac_objext; then
31934   wx_cv_lib_lesstif="yes"
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939         wx_cv_lib_lesstif="no"
31940 fi
31941
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943
31944 fi
31945 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31946 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
31947         if test "$wx_cv_lib_lesstif" = "yes"; then
31948             cat >>confdefs.h <<\_ACEOF
31949 #define __WXLESSTIF__ 1
31950 _ACEOF
31951
31952         else
31953             cat >>confdefs.h <<\_ACEOF
31954 #define __WXLESSTIF__ 0
31955 _ACEOF
31956
31957         fi
31958
31959         CFLAGS=$save_CFLAGS
31960
31961         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31962         TOOLKIT=MOTIF
31963         GUIDIST=MOTIF_DIST
31964     fi
31965
31966         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31967                 if test "$wxUSE_LIBXPM" = "sys"; then
31968             { echo "$as_me:$LINENO: checking for Xpm library" >&5
31969 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
31970
31971   ac_find_libraries=
31972   for ac_dir in $SEARCH_LIB;
31973   do
31974     for ac_extension in a so sl dylib dll.a; do
31975       if test -f "$ac_dir/libXpm.$ac_extension"; then
31976         ac_find_libraries=$ac_dir
31977         break 2
31978       fi
31979     done
31980   done
31981
31982             if test "$ac_find_libraries" != "" ; then
31983
31984     if test "$ac_find_libraries" = "default location"; then
31985     ac_path_to_link=""
31986   else
31987     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31988     result=$?
31989     if test $result = 0; then
31990       ac_path_to_link=""
31991     else
31992       ac_path_to_link=" -L$ac_find_libraries"
31993     fi
31994   fi
31995
31996                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31997                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31998 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31999
32000                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32001 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32002 if test "${wx_cv_x11_xpm_h+set}" = set; then
32003   echo $ECHO_N "(cached) $ECHO_C" >&6
32004 else
32005
32006                         save_CFLAGS=$CFLAGS
32007                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32008
32009                         cat >conftest.$ac_ext <<_ACEOF
32010 /* confdefs.h.  */
32011 _ACEOF
32012 cat confdefs.h >>conftest.$ac_ext
32013 cat >>conftest.$ac_ext <<_ACEOF
32014 /* end confdefs.h.  */
32015
32016                                 #include <X11/xpm.h>
32017
32018 int
32019 main ()
32020 {
32021
32022                                 int version;
32023                                 version = XpmLibraryVersion();
32024
32025   ;
32026   return 0;
32027 }
32028 _ACEOF
32029 rm -f conftest.$ac_objext
32030 if { (ac_try="$ac_compile"
32031 case "(($ac_try" in
32032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033   *) ac_try_echo=$ac_try;;
32034 esac
32035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036   (eval "$ac_compile") 2>conftest.er1
32037   ac_status=$?
32038   grep -v '^ *+' conftest.er1 >conftest.err
32039   rm -f conftest.er1
32040   cat conftest.err >&5
32041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); } && {
32043          test -z "$ac_c_werror_flag" ||
32044          test ! -s conftest.err
32045        } && test -s conftest.$ac_objext; then
32046   wx_cv_x11_xpm_h=yes
32047 else
32048   echo "$as_me: failed program was:" >&5
32049 sed 's/^/| /' conftest.$ac_ext >&5
32050
32051         wx_cv_x11_xpm_h=no
32052
32053 fi
32054
32055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32056
32057                         CFLAGS=$save_CFLAGS
32058
32059
32060 fi
32061 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32062 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32063
32064                 if test $wx_cv_x11_xpm_h = "yes"; then
32065                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32066                     cat >>confdefs.h <<\_ACEOF
32067 #define wxHAVE_LIB_XPM 1
32068 _ACEOF
32069
32070                 else
32071                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32072 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32073                 fi
32074             fi
32075
32076         fi
32077
32078                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32079 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32080 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32081   echo $ECHO_N "(cached) $ECHO_C" >&6
32082 else
32083   ac_check_lib_save_LIBS=$LIBS
32084 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32085 cat >conftest.$ac_ext <<_ACEOF
32086 /* confdefs.h.  */
32087 _ACEOF
32088 cat confdefs.h >>conftest.$ac_ext
32089 cat >>conftest.$ac_ext <<_ACEOF
32090 /* end confdefs.h.  */
32091
32092 /* Override any GCC internal prototype to avoid an error.
32093    Use char because int might match the return type of a GCC
32094    builtin and then its argument prototype would still apply.  */
32095 #ifdef __cplusplus
32096 extern "C"
32097 #endif
32098 char XShapeQueryExtension ();
32099 int
32100 main ()
32101 {
32102 return XShapeQueryExtension ();
32103   ;
32104   return 0;
32105 }
32106 _ACEOF
32107 rm -f conftest.$ac_objext conftest$ac_exeext
32108 if { (ac_try="$ac_link"
32109 case "(($ac_try" in
32110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111   *) ac_try_echo=$ac_try;;
32112 esac
32113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114   (eval "$ac_link") 2>conftest.er1
32115   ac_status=$?
32116   grep -v '^ *+' conftest.er1 >conftest.err
32117   rm -f conftest.er1
32118   cat conftest.err >&5
32119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120   (exit $ac_status); } && {
32121          test -z "$ac_c_werror_flag" ||
32122          test ! -s conftest.err
32123        } && test -s conftest$ac_exeext &&
32124        $as_test_x conftest$ac_exeext; then
32125   ac_cv_lib_Xext_XShapeQueryExtension=yes
32126 else
32127   echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32129
32130         ac_cv_lib_Xext_XShapeQueryExtension=no
32131 fi
32132
32133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32134       conftest$ac_exeext conftest.$ac_ext
32135 LIBS=$ac_check_lib_save_LIBS
32136 fi
32137 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32138 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32139 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32140
32141                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32142                       wxHAVE_XEXT_LIB=1
32143
32144 fi
32145
32146
32147         if test "$wxHAVE_XEXT_LIB" = 1; then
32148             save_CFLAGS="$CFLAGS"
32149             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32150
32151             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32152 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32153             cat >conftest.$ac_ext <<_ACEOF
32154 /* confdefs.h.  */
32155 _ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h.  */
32159
32160                             #include <X11/Xlib.h>
32161                             #include <X11/extensions/shape.h>
32162
32163 int
32164 main ()
32165 {
32166
32167                             int dummy1, dummy2;
32168                             XShapeQueryExtension((Display*)NULL,
32169                                                  (int*)NULL, (int*)NULL);
32170
32171   ;
32172   return 0;
32173 }
32174 _ACEOF
32175 rm -f conftest.$ac_objext
32176 if { (ac_try="$ac_compile"
32177 case "(($ac_try" in
32178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32179   *) ac_try_echo=$ac_try;;
32180 esac
32181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32182   (eval "$ac_compile") 2>conftest.er1
32183   ac_status=$?
32184   grep -v '^ *+' conftest.er1 >conftest.err
32185   rm -f conftest.er1
32186   cat conftest.err >&5
32187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188   (exit $ac_status); } && {
32189          test -z "$ac_c_werror_flag" ||
32190          test ! -s conftest.err
32191        } && test -s conftest.$ac_objext; then
32192
32193                             cat >>confdefs.h <<\_ACEOF
32194 #define HAVE_XSHAPE 1
32195 _ACEOF
32196
32197                             { echo "$as_me:$LINENO: result: found" >&5
32198 echo "${ECHO_T}found" >&6; }
32199
32200 else
32201   echo "$as_me: failed program was:" >&5
32202 sed 's/^/| /' conftest.$ac_ext >&5
32203
32204
32205                             { echo "$as_me:$LINENO: result: not found" >&5
32206 echo "${ECHO_T}not found" >&6; }
32207
32208 fi
32209
32210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32211             CFLAGS="$save_CFLAGS"
32212
32213         fi
32214     fi
32215
32216     if test "$wxUSE_MAC" = 1; then
32217         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32218 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32219         if test "$GCC" = yes; then
32220             { echo "$as_me:$LINENO: result: gcc" >&5
32221 echo "${ECHO_T}gcc" >&6; }
32222             CPPFLAGS_PASCAL="-fpascal-strings"
32223         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32224             { echo "$as_me:$LINENO: result: xlc" >&5
32225 echo "${ECHO_T}xlc" >&6; }
32226             CPPFLAGS_PASCAL="-qmacpstr"
32227         else
32228             { echo "$as_me:$LINENO: result: none" >&5
32229 echo "${ECHO_T}none" >&6; }
32230         fi
32231
32232         if test "x$wxUSE_UNIX" = "xyes"; then
32233             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32234         else
32235                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32236         fi
32237
32238         TOOLKIT=MAC
32239                 GUIDIST=MACX_DIST
32240                         WXBASEPORT="_carbon"
32241     fi
32242
32243     if test "$wxUSE_COCOA" = 1; then
32244         TOOLKIT=COCOA
32245         GUIDIST=COCOA_DIST
32246     fi
32247
32248     if test "$wxUSE_PM" = 1; then
32249         TOOLKIT=PM
32250         GUIDIST=PM_DIST
32251         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32252 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32253 if test "${wx_cv_spbcdata+set}" = set; then
32254   echo $ECHO_N "(cached) $ECHO_C" >&6
32255 else
32256
32257                 cat >conftest.$ac_ext <<_ACEOF
32258 /* confdefs.h.  */
32259 _ACEOF
32260 cat confdefs.h >>conftest.$ac_ext
32261 cat >>conftest.$ac_ext <<_ACEOF
32262 /* end confdefs.h.  */
32263
32264                         #define INCL_PM
32265                         #include <os2.h>
32266
32267 int
32268 main ()
32269 {
32270
32271                         SPBCDATA test;
32272
32273   ;
32274   return 0;
32275 }
32276 _ACEOF
32277 rm -f conftest.$ac_objext
32278 if { (ac_try="$ac_compile"
32279 case "(($ac_try" in
32280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32281   *) ac_try_echo=$ac_try;;
32282 esac
32283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32284   (eval "$ac_compile") 2>conftest.er1
32285   ac_status=$?
32286   grep -v '^ *+' conftest.er1 >conftest.err
32287   rm -f conftest.er1
32288   cat conftest.err >&5
32289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290   (exit $ac_status); } && {
32291          test -z "$ac_c_werror_flag" ||
32292          test ! -s conftest.err
32293        } && test -s conftest.$ac_objext; then
32294   wx_cv_spbcdata=yes
32295 else
32296   echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32298
32299         wx_cv_spbcdata=no
32300
32301 fi
32302
32303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32304
32305
32306 fi
32307 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32308 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32309
32310         if test $wx_cv_spbcdata = "yes"; then
32311             cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_SPBCDATA 1
32313 _ACEOF
32314
32315         fi
32316     fi
32317
32318         if test "$TOOLKIT" = "PM" ; then
32319         TOOLKIT_DIR="os2"
32320     else
32321         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32322     fi
32323
32324     if test "$wxUSE_UNIVERSAL" = "yes"; then
32325         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32326         WIDGET_SET=univ
32327     fi
32328
32329         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32330     DISTDIR="wx\$(TOOLKIT)"
32331 else
32332     USE_GUI=0
32333
32334             TOOLKIT_DIR="base"
32335
32336         if test "$USE_WIN32" = 1 ; then
32337                         TOOLKIT="MSW"
32338     fi
32339
32340         GUIDIST="BASE_DIST"
32341     DISTDIR="wxBase"
32342 fi
32343
32344
32345
32346 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32347     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32348         wxUSE_UNICODE_UTF8=yes
32349     elif test "$USE_OS2" = 1 ; then
32350                                 wxUSE_UNICODE_UTF8=yes
32351     else
32352         wxUSE_UNICODE_UTF8=no
32353     fi
32354 fi
32355
32356
32357 if test "$wxUSE_GUI" = "yes"; then
32358     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32359
32360 for ac_header in X11/Xlib.h
32361 do
32362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32366   echo $ECHO_N "(cached) $ECHO_C" >&6
32367 else
32368   cat >conftest.$ac_ext <<_ACEOF
32369 /* confdefs.h.  */
32370 _ACEOF
32371 cat confdefs.h >>conftest.$ac_ext
32372 cat >>conftest.$ac_ext <<_ACEOF
32373 /* end confdefs.h.  */
32374
32375
32376 #include <$ac_header>
32377 _ACEOF
32378 rm -f conftest.$ac_objext
32379 if { (ac_try="$ac_compile"
32380 case "(($ac_try" in
32381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382   *) ac_try_echo=$ac_try;;
32383 esac
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385   (eval "$ac_compile") 2>conftest.er1
32386   ac_status=$?
32387   grep -v '^ *+' conftest.er1 >conftest.err
32388   rm -f conftest.er1
32389   cat conftest.err >&5
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); } && {
32392          test -z "$ac_c_werror_flag" ||
32393          test ! -s conftest.err
32394        } && test -s conftest.$ac_objext; then
32395   eval "$as_ac_Header=yes"
32396 else
32397   echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32399
32400         eval "$as_ac_Header=no"
32401 fi
32402
32403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32404 fi
32405 ac_res=`eval echo '${'$as_ac_Header'}'`
32406                { echo "$as_me:$LINENO: result: $ac_res" >&5
32407 echo "${ECHO_T}$ac_res" >&6; }
32408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32409   cat >>confdefs.h <<_ACEOF
32410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32411 _ACEOF
32412
32413 fi
32414
32415 done
32416
32417
32418 for ac_header in X11/XKBlib.h
32419 do
32420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32424   echo $ECHO_N "(cached) $ECHO_C" >&6
32425 else
32426   cat >conftest.$ac_ext <<_ACEOF
32427 /* confdefs.h.  */
32428 _ACEOF
32429 cat confdefs.h >>conftest.$ac_ext
32430 cat >>conftest.$ac_ext <<_ACEOF
32431 /* end confdefs.h.  */
32432
32433                           #if HAVE_X11_XLIB_H
32434                             #include <X11/Xlib.h>
32435                           #endif
32436
32437
32438 #include <$ac_header>
32439 _ACEOF
32440 rm -f conftest.$ac_objext
32441 if { (ac_try="$ac_compile"
32442 case "(($ac_try" in
32443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444   *) ac_try_echo=$ac_try;;
32445 esac
32446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447   (eval "$ac_compile") 2>conftest.er1
32448   ac_status=$?
32449   grep -v '^ *+' conftest.er1 >conftest.err
32450   rm -f conftest.er1
32451   cat conftest.err >&5
32452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453   (exit $ac_status); } && {
32454          test -z "$ac_c_werror_flag" ||
32455          test ! -s conftest.err
32456        } && test -s conftest.$ac_objext; then
32457   eval "$as_ac_Header=yes"
32458 else
32459   echo "$as_me: failed program was:" >&5
32460 sed 's/^/| /' conftest.$ac_ext >&5
32461
32462         eval "$as_ac_Header=no"
32463 fi
32464
32465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32466 fi
32467 ac_res=`eval echo '${'$as_ac_Header'}'`
32468                { echo "$as_me:$LINENO: result: $ac_res" >&5
32469 echo "${ECHO_T}$ac_res" >&6; }
32470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32471   cat >>confdefs.h <<_ACEOF
32472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32473 _ACEOF
32474
32475 fi
32476
32477 done
32478
32479     fi
32480 fi
32481
32482
32483
32484 if test "$wxUSE_DISPLAY" = "yes"; then
32485     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32486         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32487 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32488
32489   ac_find_libraries=
32490   for ac_dir in $SEARCH_LIB;
32491   do
32492     for ac_extension in a so sl dylib dll.a; do
32493       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32494         ac_find_libraries=$ac_dir
32495         break 2
32496       fi
32497     done
32498   done
32499
32500         if test "$ac_find_libraries" != "" ; then
32501
32502     if test "$ac_find_libraries" = "default location"; then
32503     ac_path_to_link=""
32504   else
32505     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32506     result=$?
32507     if test $result = 0; then
32508       ac_path_to_link=""
32509     else
32510       ac_path_to_link=" -L$ac_find_libraries"
32511     fi
32512   fi
32513
32514             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32515                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32516             fi
32517             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32518             { echo "$as_me:$LINENO: result: yes" >&5
32519 echo "${ECHO_T}yes" >&6; }
32520
32521             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32522 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32523
32524   ac_find_libraries=
32525   for ac_dir in $SEARCH_LIB;
32526   do
32527     for ac_extension in a so sl dylib dll.a; do
32528       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32529         ac_find_libraries=$ac_dir
32530         break 2
32531       fi
32532     done
32533   done
32534
32535             if test "$ac_find_libraries" != "" ; then
32536                 { echo "$as_me:$LINENO: result: yes" >&5
32537 echo "${ECHO_T}yes" >&6; }
32538
32539 for ac_header in X11/extensions/xf86vmode.h
32540 do
32541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32545   echo $ECHO_N "(cached) $ECHO_C" >&6
32546 else
32547   cat >conftest.$ac_ext <<_ACEOF
32548 /* confdefs.h.  */
32549 _ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h.  */
32553
32554                                       #if HAVE_X11_XLIB_H
32555                                         #include <X11/Xlib.h>
32556                                       #endif
32557
32558
32559 #include <$ac_header>
32560 _ACEOF
32561 rm -f conftest.$ac_objext
32562 if { (ac_try="$ac_compile"
32563 case "(($ac_try" in
32564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565   *) ac_try_echo=$ac_try;;
32566 esac
32567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568   (eval "$ac_compile") 2>conftest.er1
32569   ac_status=$?
32570   grep -v '^ *+' conftest.er1 >conftest.err
32571   rm -f conftest.er1
32572   cat conftest.err >&5
32573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574   (exit $ac_status); } && {
32575          test -z "$ac_c_werror_flag" ||
32576          test ! -s conftest.err
32577        } && test -s conftest.$ac_objext; then
32578   eval "$as_ac_Header=yes"
32579 else
32580   echo "$as_me: failed program was:" >&5
32581 sed 's/^/| /' conftest.$ac_ext >&5
32582
32583         eval "$as_ac_Header=no"
32584 fi
32585
32586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32587 fi
32588 ac_res=`eval echo '${'$as_ac_Header'}'`
32589                { echo "$as_me:$LINENO: result: $ac_res" >&5
32590 echo "${ECHO_T}$ac_res" >&6; }
32591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32592   cat >>confdefs.h <<_ACEOF
32593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32594 _ACEOF
32595
32596                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32597
32598 fi
32599
32600 done
32601
32602             else
32603                 { echo "$as_me:$LINENO: result: no" >&5
32604 echo "${ECHO_T}no" >&6; }
32605             fi
32606
32607         else
32608             { echo "$as_me:$LINENO: result: no" >&5
32609 echo "${ECHO_T}no" >&6; }
32610             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32611 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32612             wxUSE_DISPLAY="no"
32613         fi
32614     elif test "$wxUSE_MSW" = 1; then
32615         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32616 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32617 if test "${ac_cv_header_ddraw_h+set}" = set; then
32618   echo $ECHO_N "(cached) $ECHO_C" >&6
32619 else
32620   cat >conftest.$ac_ext <<_ACEOF
32621 /* confdefs.h.  */
32622 _ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h.  */
32626 #include <windows.h>
32627
32628 #include <ddraw.h>
32629 _ACEOF
32630 rm -f conftest.$ac_objext
32631 if { (ac_try="$ac_compile"
32632 case "(($ac_try" in
32633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634   *) ac_try_echo=$ac_try;;
32635 esac
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637   (eval "$ac_compile") 2>conftest.er1
32638   ac_status=$?
32639   grep -v '^ *+' conftest.er1 >conftest.err
32640   rm -f conftest.er1
32641   cat conftest.err >&5
32642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643   (exit $ac_status); } && {
32644          test -z "$ac_c_werror_flag" ||
32645          test ! -s conftest.err
32646        } && test -s conftest.$ac_objext; then
32647   ac_cv_header_ddraw_h=yes
32648 else
32649   echo "$as_me: failed program was:" >&5
32650 sed 's/^/| /' conftest.$ac_ext >&5
32651
32652         ac_cv_header_ddraw_h=no
32653 fi
32654
32655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32656 fi
32657 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
32658 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
32659
32660
32661     fi
32662 fi
32663
32664 if test "$wxUSE_DETECT_SM" = "yes"; then
32665     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32666         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32667 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
32668
32669   ac_find_libraries=
32670   for ac_dir in $SEARCH_LIB;
32671   do
32672     for ac_extension in a so sl dylib dll.a; do
32673       if test -f "$ac_dir/libSM.$ac_extension"; then
32674         ac_find_libraries=$ac_dir
32675         break 2
32676       fi
32677     done
32678   done
32679
32680         if test "$ac_find_libraries" != "" ; then
32681
32682     if test "$ac_find_libraries" = "default location"; then
32683     ac_path_to_link=""
32684   else
32685     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32686     result=$?
32687     if test $result = 0; then
32688       ac_path_to_link=""
32689     else
32690       ac_path_to_link=" -L$ac_find_libraries"
32691     fi
32692   fi
32693
32694             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32695                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32696             fi
32697             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32698             { echo "$as_me:$LINENO: result: yes" >&5
32699 echo "${ECHO_T}yes" >&6; }
32700         else
32701             { echo "$as_me:$LINENO: result: no" >&5
32702 echo "${ECHO_T}no" >&6; }
32703             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32704 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32705             wxUSE_DETECT_SM="no"
32706         fi
32707     else
32708         wxUSE_DETECT_SM="no"
32709     fi
32710 fi
32711
32712
32713
32714 USE_OPENGL=0
32715 if test "$wxUSE_OPENGL" = "yes"; then
32716     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
32717         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
32718 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
32719         wxUSE_OPENGL="no"
32720     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
32721         OPENGL_LIBS="-framework OpenGL -framework AGL"
32722     elif test "$wxUSE_MSW" = 1; then
32723         OPENGL_LIBS="-lopengl32 -lglu32"
32724     else
32725                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
32726 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
32727
32728 ac_find_includes=
32729 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
32730   do
32731     if test -f "$ac_dir/GL/gl.h"; then
32732       ac_find_includes=$ac_dir
32733       break
32734     fi
32735   done
32736
32737         if test "$ac_find_includes" != "" ; then
32738             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32739 echo "${ECHO_T}found in $ac_find_includes" >&6; }
32740
32741     if test "x$ac_find_includes" = "x/usr/include"; then
32742     ac_path_to_include=""
32743   else
32744     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32745     result=$?
32746     if test $result = 0; then
32747       ac_path_to_include=""
32748     else
32749       ac_path_to_include=" -I$ac_find_includes"
32750     fi
32751   fi
32752
32753             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32754         else
32755             { echo "$as_me:$LINENO: result: not found" >&5
32756 echo "${ECHO_T}not found" >&6; }
32757         fi
32758
32759         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32760 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
32761 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32762   echo $ECHO_N "(cached) $ECHO_C" >&6
32763 else
32764   cat >conftest.$ac_ext <<_ACEOF
32765 /* confdefs.h.  */
32766 _ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h.  */
32770
32771
32772 #include <GL/gl.h>
32773 _ACEOF
32774 rm -f conftest.$ac_objext
32775 if { (ac_try="$ac_compile"
32776 case "(($ac_try" in
32777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778   *) ac_try_echo=$ac_try;;
32779 esac
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781   (eval "$ac_compile") 2>conftest.er1
32782   ac_status=$?
32783   grep -v '^ *+' conftest.er1 >conftest.err
32784   rm -f conftest.er1
32785   cat conftest.err >&5
32786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787   (exit $ac_status); } && {
32788          test -z "$ac_c_werror_flag" ||
32789          test ! -s conftest.err
32790        } && test -s conftest.$ac_objext; then
32791   ac_cv_header_GL_gl_h=yes
32792 else
32793   echo "$as_me: failed program was:" >&5
32794 sed 's/^/| /' conftest.$ac_ext >&5
32795
32796         ac_cv_header_GL_gl_h=no
32797 fi
32798
32799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32800 fi
32801 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32802 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
32803 if test $ac_cv_header_GL_gl_h = yes; then
32804
32805             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
32806 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
32807 if test "${ac_cv_header_GL_glu_h+set}" = set; then
32808   echo $ECHO_N "(cached) $ECHO_C" >&6
32809 else
32810   cat >conftest.$ac_ext <<_ACEOF
32811 /* confdefs.h.  */
32812 _ACEOF
32813 cat confdefs.h >>conftest.$ac_ext
32814 cat >>conftest.$ac_ext <<_ACEOF
32815 /* end confdefs.h.  */
32816
32817
32818 #include <GL/glu.h>
32819 _ACEOF
32820 rm -f conftest.$ac_objext
32821 if { (ac_try="$ac_compile"
32822 case "(($ac_try" in
32823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32824   *) ac_try_echo=$ac_try;;
32825 esac
32826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32827   (eval "$ac_compile") 2>conftest.er1
32828   ac_status=$?
32829   grep -v '^ *+' conftest.er1 >conftest.err
32830   rm -f conftest.er1
32831   cat conftest.err >&5
32832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833   (exit $ac_status); } && {
32834          test -z "$ac_c_werror_flag" ||
32835          test ! -s conftest.err
32836        } && test -s conftest.$ac_objext; then
32837   ac_cv_header_GL_glu_h=yes
32838 else
32839   echo "$as_me: failed program was:" >&5
32840 sed 's/^/| /' conftest.$ac_ext >&5
32841
32842         ac_cv_header_GL_glu_h=no
32843 fi
32844
32845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32846 fi
32847 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
32848 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
32849 if test $ac_cv_header_GL_glu_h = yes; then
32850
32851                 found_gl=0
32852
32853                 { echo "$as_me:$LINENO: checking for -lGL" >&5
32854 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
32855
32856   ac_find_libraries=
32857   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
32858   do
32859     for ac_extension in a so sl dylib dll.a; do
32860       if test -f "$ac_dir/libGL.$ac_extension"; then
32861         ac_find_libraries=$ac_dir
32862         break 2
32863       fi
32864     done
32865   done
32866
32867                 if test "$ac_find_libraries" != "" ; then
32868                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32869 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32870
32871
32872     if test "$ac_find_libraries" = "default location"; then
32873     ac_path_to_link=""
32874   else
32875     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32876     result=$?
32877     if test $result = 0; then
32878       ac_path_to_link=""
32879     else
32880       ac_path_to_link=" -L$ac_find_libraries"
32881     fi
32882   fi
32883
32884                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32885                         LDFLAGS_GL="$ac_path_to_link"
32886                     fi
32887
32888                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
32889 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
32890
32891   ac_find_libraries=
32892   for ac_dir in $SEARCH_LIB;
32893   do
32894     for ac_extension in a so sl dylib dll.a; do
32895       if test -f "$ac_dir/libGLU.$ac_extension"; then
32896         ac_find_libraries=$ac_dir
32897         break 2
32898       fi
32899     done
32900   done
32901
32902                     if test "$ac_find_libraries" != "" ; then
32903
32904     if test "$ac_find_libraries" = "default location"; then
32905     ac_path_to_link=""
32906   else
32907     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32908     result=$?
32909     if test $result = 0; then
32910       ac_path_to_link=""
32911     else
32912       ac_path_to_link=" -L$ac_find_libraries"
32913     fi
32914   fi
32915
32916                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32917                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32918                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32919                         fi
32920
32921                         found_gl=1
32922                         OPENGL_LIBS="-lGL -lGLU"
32923                         { echo "$as_me:$LINENO: result: yes" >&5
32924 echo "${ECHO_T}yes" >&6; }
32925                     else
32926                         { echo "$as_me:$LINENO: result: no" >&5
32927 echo "${ECHO_T}no" >&6; }
32928                     fi
32929                 else
32930                     { echo "$as_me:$LINENO: result: no" >&5
32931 echo "${ECHO_T}no" >&6; }
32932                 fi
32933
32934                 if test "$found_gl" != 1; then
32935                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32936 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
32937
32938   ac_find_libraries=
32939   for ac_dir in $SEARCH_LIB;
32940   do
32941     for ac_extension in a so sl dylib dll.a; do
32942       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32943         ac_find_libraries=$ac_dir
32944         break 2
32945       fi
32946     done
32947   done
32948
32949                     if test "$ac_find_libraries" != "" ; then
32950
32951     if test "$ac_find_libraries" = "default location"; then
32952     ac_path_to_link=""
32953   else
32954     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32955     result=$?
32956     if test $result = 0; then
32957       ac_path_to_link=""
32958     else
32959       ac_path_to_link=" -L$ac_find_libraries"
32960     fi
32961   fi
32962
32963                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32964                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32965                         { echo "$as_me:$LINENO: result: yes" >&5
32966 echo "${ECHO_T}yes" >&6; }
32967                     else
32968                         { echo "$as_me:$LINENO: result: no" >&5
32969 echo "${ECHO_T}no" >&6; }
32970                     fi
32971                 fi
32972
32973 fi
32974
32975
32976
32977 fi
32978
32979
32980
32981         if test "x$OPENGL_LIBS" = "x"; then
32982                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32983 echo "$as_me: error: OpenGL libraries not available" >&2;}
32984    { (exit 1); exit 1; }; }
32985         fi
32986     fi
32987
32988     if test "$wxUSE_OPENGL" = "yes"; then
32989         USE_OPENGL=1
32990         cat >>confdefs.h <<\_ACEOF
32991 #define wxUSE_OPENGL 1
32992 _ACEOF
32993
32994         cat >>confdefs.h <<\_ACEOF
32995 #define wxUSE_GLCANVAS 1
32996 _ACEOF
32997
32998         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32999     fi
33000 fi
33001
33002
33003 if test -n "$TOOLKIT" ; then
33004     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33005 fi
33006
33007
33008
33009 if test "$wxUSE_SHARED" = "yes"; then
33010     case "${host}" in
33011       *-pc-msdosdjgpp )
33012                 wxUSE_SHARED=no
33013         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33014 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33015       ;;
33016     esac
33017 fi
33018
33019 if test "$wxUSE_SHARED" = "yes"; then
33020
33021
33022     case "${host}" in
33023         *-*-cygwin* | *-*-mingw* )
33024                                                                                                 wx_cv_version_script=no
33025             ;;
33026
33027         *)
33028             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33029 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33030 if test "${wx_cv_version_script+set}" = set; then
33031   echo $ECHO_N "(cached) $ECHO_C" >&6
33032 else
33033
33034                 echo "VER_1 { *; };" >conftest.sym
33035                 echo "int main() { return 0; }" >conftest.cpp
33036
33037                 if { ac_try='
33038                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33039                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041   (eval $ac_try) 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; } ; then
33045                   if test -s conftest.stderr ; then
33046                       wx_cv_version_script=no
33047                   else
33048                       wx_cv_version_script=yes
33049                   fi
33050                 else
33051                   wx_cv_version_script=no
33052                 fi
33053
33054                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33055                 then
33056                   echo "struct B { virtual ~B() { } }; \
33057                         struct D : public B { }; \
33058                         void F() { D d; }" > conftest.cpp
33059
33060                   if { ac_try='
33061                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33062                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064   (eval $ac_try) 2>&5
33065   ac_status=$?
33066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067   (exit $ac_status); }; } &&
33068                      { ac_try='
33069                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33070                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33072   (eval $ac_try) 2>&5
33073   ac_status=$?
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); }; }
33076                   then
33077                     if { ac_try='
33078                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33079                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081   (eval $ac_try) 2>&5
33082   ac_status=$?
33083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084   (exit $ac_status); }; }
33085                     then
33086                       wx_cv_version_script=yes
33087                     else
33088                       wx_cv_version_script=no
33089                     fi
33090                   fi
33091                 fi
33092
33093                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33094                 rm -f conftest1.output conftest2.output conftest3.output
33095
33096 fi
33097 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33098 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33099
33100             if test $wx_cv_version_script = yes ; then
33101                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33102             fi
33103             ;;
33104     esac
33105
33106
33107             if test "$wxUSE_VISIBILITY" != "no"; then
33108
33109
33110   if test -n "$GCC"; then
33111     CFLAGS_VISIBILITY="-fvisibility=hidden"
33112     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33113     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33114 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33115     if test "${wx_cv_cc_visibility+set}" = set; then
33116   echo $ECHO_N "(cached) $ECHO_C" >&6
33117 else
33118
33119       wx_save_CXXFLAGS="$CXXFLAGS"
33120       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33121       ac_ext=cpp
33122 ac_cpp='$CXXCPP $CPPFLAGS'
33123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33126
33127       cat >conftest.$ac_ext <<_ACEOF
33128 /* confdefs.h.  */
33129 _ACEOF
33130 cat confdefs.h >>conftest.$ac_ext
33131 cat >>conftest.$ac_ext <<_ACEOF
33132 /* end confdefs.h.  */
33133
33134          /* we need gcc >= 4.0, older versions with visibility support
33135             didn't have class visibility: */
33136          #if defined(__GNUC__) && __GNUC__ < 4
33137          error this gcc is too old;
33138          #endif
33139
33140          /* visibility only makes sense for ELF shared libs: */
33141          #if !defined(__ELF__) && !defined(__APPLE__)
33142          error this platform has no visibility;
33143          #endif
33144
33145          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33146          extern __attribute__((__visibility__("default"))) int exportedvar;
33147          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33148          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33149          class __attribute__((__visibility__("default"))) Foo {
33150            Foo() {}
33151          };
33152
33153 int
33154 main ()
33155 {
33156
33157   ;
33158   return 0;
33159 }
33160 _ACEOF
33161 rm -f conftest.$ac_objext
33162 if { (ac_try="$ac_compile"
33163 case "(($ac_try" in
33164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165   *) ac_try_echo=$ac_try;;
33166 esac
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168   (eval "$ac_compile") 2>conftest.er1
33169   ac_status=$?
33170   grep -v '^ *+' conftest.er1 >conftest.err
33171   rm -f conftest.er1
33172   cat conftest.err >&5
33173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174   (exit $ac_status); } && {
33175          test -z "$ac_cxx_werror_flag" ||
33176          test ! -s conftest.err
33177        } && test -s conftest.$ac_objext; then
33178   wx_cv_cc_visibility=yes
33179 else
33180   echo "$as_me: failed program was:" >&5
33181 sed 's/^/| /' conftest.$ac_ext >&5
33182
33183         wx_cv_cc_visibility=no
33184 fi
33185
33186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187       ac_ext=c
33188 ac_cpp='$CPP $CPPFLAGS'
33189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33192
33193       CXXFLAGS="$wx_save_CXXFLAGS"
33194 fi
33195
33196     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33197 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33198     if test $wx_cv_cc_visibility = yes; then
33199                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33200 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33201       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33202   echo $ECHO_N "(cached) $ECHO_C" >&6
33203 else
33204
33205         wx_save_CXXFLAGS="$CXXFLAGS"
33206         wx_save_LDFLAGS="$LDFLAGS"
33207         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33208         LDFLAGS="$LDFLAGS -shared -fPIC"
33209         ac_ext=cpp
33210 ac_cpp='$CXXCPP $CPPFLAGS'
33211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33214
33215         cat >conftest.$ac_ext <<_ACEOF
33216 /* confdefs.h.  */
33217 _ACEOF
33218 cat confdefs.h >>conftest.$ac_ext
33219 cat >>conftest.$ac_ext <<_ACEOF
33220 /* end confdefs.h.  */
33221
33222             #include <string>
33223
33224 int
33225 main ()
33226 {
33227
33228             std::string s("hello");
33229             return s.length();
33230
33231   ;
33232   return 0;
33233 }
33234 _ACEOF
33235 rm -f conftest.$ac_objext conftest$ac_exeext
33236 if { (ac_try="$ac_link"
33237 case "(($ac_try" in
33238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239   *) ac_try_echo=$ac_try;;
33240 esac
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242   (eval "$ac_link") 2>conftest.er1
33243   ac_status=$?
33244   grep -v '^ *+' conftest.er1 >conftest.err
33245   rm -f conftest.er1
33246   cat conftest.err >&5
33247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248   (exit $ac_status); } && {
33249          test -z "$ac_cxx_werror_flag" ||
33250          test ! -s conftest.err
33251        } && test -s conftest$ac_exeext &&
33252        $as_test_x conftest$ac_exeext; then
33253   wx_cv_cc_broken_libstdcxx_visibility=no
33254 else
33255   echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33257
33258         wx_cv_cc_broken_libstdcxx_visibility=yes
33259 fi
33260
33261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33262       conftest$ac_exeext conftest.$ac_ext
33263         ac_ext=c
33264 ac_cpp='$CPP $CPPFLAGS'
33265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33268
33269         CXXFLAGS="$wx_save_CXXFLAGS"
33270         LDFLAGS="$wx_save_LDFLAGS"
33271 fi
33272
33273       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33274 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33275
33276       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33277         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33278 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33279         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33280   echo $ECHO_N "(cached) $ECHO_C" >&6
33281 else
33282
33283           ac_ext=cpp
33284 ac_cpp='$CXXCPP $CPPFLAGS'
33285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33288
33289           cat >conftest.$ac_ext <<_ACEOF
33290 /* confdefs.h.  */
33291 _ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h.  */
33295
33296               #pragma GCC visibility push(default)
33297               #include <string>
33298               #pragma GCC visibility pop
33299
33300 int
33301 main ()
33302 {
33303
33304               std::string s("hello");
33305               return s.length();
33306
33307   ;
33308   return 0;
33309 }
33310 _ACEOF
33311 rm -f conftest.$ac_objext conftest$ac_exeext
33312 if { (ac_try="$ac_link"
33313 case "(($ac_try" in
33314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315   *) ac_try_echo=$ac_try;;
33316 esac
33317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318   (eval "$ac_link") 2>conftest.er1
33319   ac_status=$?
33320   grep -v '^ *+' conftest.er1 >conftest.err
33321   rm -f conftest.er1
33322   cat conftest.err >&5
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); } && {
33325          test -z "$ac_cxx_werror_flag" ||
33326          test ! -s conftest.err
33327        } && test -s conftest$ac_exeext &&
33328        $as_test_x conftest$ac_exeext; then
33329   wx_cv_cc_visibility_workaround=no
33330 else
33331   echo "$as_me: failed program was:" >&5
33332 sed 's/^/| /' conftest.$ac_ext >&5
33333
33334         wx_cv_cc_visibility_workaround=yes
33335 fi
33336
33337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33338       conftest$ac_exeext conftest.$ac_ext
33339           ac_ext=c
33340 ac_cpp='$CPP $CPPFLAGS'
33341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33344
33345
33346 fi
33347
33348         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33349 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33350
33351         if test $wx_cv_cc_visibility_workaround = no; then
33352                     wx_cv_cc_visibility=no
33353         fi
33354       fi
33355     fi
33356
33357     if test $wx_cv_cc_visibility = yes; then
33358       cat >>confdefs.h <<\_ACEOF
33359 #define HAVE_VISIBILITY 1
33360 _ACEOF
33361
33362       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33363         cat >>confdefs.h <<\_ACEOF
33364 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33365 _ACEOF
33366
33367       fi
33368     else
33369       CFLAGS_VISIBILITY=""
33370       CXXFLAGS_VISIBILITY=""
33371     fi
33372
33373
33374   fi
33375
33376     fi
33377
33378         if test "x$SUNCXX" = xyes; then
33379         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33380         WXCONFIG_RPATH="-R\$libdir"
33381     else
33382     case "${host}" in
33383       *-*-linux* | *-*-gnu* )
33384         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33385         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33386         ;;
33387
33388       *-*-solaris2* )
33389
33390                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33391
33392                         saveLdflags="$LDFLAGS"
33393         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33394         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33395 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33396         cat >conftest.$ac_ext <<_ACEOF
33397 /* confdefs.h.  */
33398 _ACEOF
33399 cat confdefs.h >>conftest.$ac_ext
33400 cat >>conftest.$ac_ext <<_ACEOF
33401 /* end confdefs.h.  */
33402
33403 int
33404 main ()
33405 {
33406
33407   ;
33408   return 0;
33409 }
33410 _ACEOF
33411 rm -f conftest.$ac_objext conftest$ac_exeext
33412 if { (ac_try="$ac_link"
33413 case "(($ac_try" in
33414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415   *) ac_try_echo=$ac_try;;
33416 esac
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418   (eval "$ac_link") 2>conftest.er1
33419   ac_status=$?
33420   grep -v '^ *+' conftest.er1 >conftest.err
33421   rm -f conftest.er1
33422   cat conftest.err >&5
33423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424   (exit $ac_status); } && {
33425          test -z "$ac_c_werror_flag" ||
33426          test ! -s conftest.err
33427        } && test -s conftest$ac_exeext &&
33428        $as_test_x conftest$ac_exeext; then
33429
33430                 { echo "$as_me:$LINENO: result: yes" >&5
33431 echo "${ECHO_T}yes" >&6; }
33432                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33433                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33434
33435 else
33436   echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33438
33439
33440                 { echo "$as_me:$LINENO: result: no" >&5
33441 echo "${ECHO_T}no" >&6; }
33442                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33443 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33444                 LDFLAGS="$saveLdflags -Wl,-R,/"
33445                 cat >conftest.$ac_ext <<_ACEOF
33446 /* confdefs.h.  */
33447 _ACEOF
33448 cat confdefs.h >>conftest.$ac_ext
33449 cat >>conftest.$ac_ext <<_ACEOF
33450 /* end confdefs.h.  */
33451
33452 int
33453 main ()
33454 {
33455
33456   ;
33457   return 0;
33458 }
33459 _ACEOF
33460 rm -f conftest.$ac_objext conftest$ac_exeext
33461 if { (ac_try="$ac_link"
33462 case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_link") 2>conftest.er1
33468   ac_status=$?
33469   grep -v '^ *+' conftest.er1 >conftest.err
33470   rm -f conftest.er1
33471   cat conftest.err >&5
33472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473   (exit $ac_status); } && {
33474          test -z "$ac_c_werror_flag" ||
33475          test ! -s conftest.err
33476        } && test -s conftest$ac_exeext &&
33477        $as_test_x conftest$ac_exeext; then
33478
33479                         { echo "$as_me:$LINENO: result: yes" >&5
33480 echo "${ECHO_T}yes" >&6; }
33481                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33482                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33483
33484 else
33485   echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33487
33488
33489                         { echo "$as_me:$LINENO: result: no" >&5
33490 echo "${ECHO_T}no" >&6; }
33491
33492 fi
33493
33494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33495       conftest$ac_exeext conftest.$ac_ext
33496
33497 fi
33498
33499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33500       conftest$ac_exeext conftest.$ac_ext
33501         LDFLAGS="$saveLdflags"
33502       ;;
33503
33504       *-*-darwin* )
33505         install_name_tool=`which install_name_tool`
33506         if test "$install_name_tool" -a -x "$install_name_tool"; then
33507             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33508             cat <<EOF >change-install-names
33509 #!/bin/sh
33510 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33511 inst_cmd="install_name_tool "
33512 for i in \${libnames} ; do
33513     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33514 done
33515 \${inst_cmd} \${3}
33516 EOF
33517             chmod +x change-install-names
33518         fi
33519       ;;
33520
33521       *-*-cygwin* | *-*-mingw32* )
33522         ;;
33523
33524       *-*-hpux* )
33525         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33526         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33527         ;;
33528
33529     esac
33530     fi
33531
33532             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33533
33534     if test $wxUSE_RPATH = "no"; then
33535         SAMPLES_RPATH_FLAG=''
33536         SAMPLES_RPATH_POSTLINK=''
33537         WXCONFIG_RPATH=''
33538     fi
33539
33540     SHARED=1
33541
33542 else
33543
33544     config_linkage_component="-static"
33545     SHARED=0
33546
33547 fi
33548
33549
33550 UNICODE=0
33551 lib_unicode_suffix=
33552 WX_CHARTYPE="ansi"
33553 if test "$wxUSE_UNICODE" = "yes"; then
33554     lib_unicode_suffix=u
33555     WX_CHARTYPE="unicode"
33556     UNICODE=1
33557 fi
33558
33559 lib_debug_suffix=
33560 WX_DEBUGTYPE="release"
33561 DEBUG_FLAG=0
33562 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33563     lib_debug_suffix=d
33564     WX_DEBUGTYPE="debug"
33565     DEBUG_FLAG=1
33566 fi
33567
33568 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33569 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33570
33571 DEBUG_INFO=0
33572 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33573     DEBUG_INFO=1
33574 fi
33575
33576 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33577
33578 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33579
33580 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33581
33582 if test "$cross_compiling" = "yes"; then
33583     HOST_SUFFIX="-$host_alias"
33584     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33585     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33586 fi
33587
33588 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33589 if test "${TOOLKIT_DIR}" = "os2"; then
33590     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33591 else
33592     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33593 fi
33594
33595
33596
33597 if test "$wxUSE_COCOA" = 1; then
33598
33599     ac_ext=c
33600 ac_cpp='$CPP $CPPFLAGS'
33601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33604
33605 ac_ext=m
33606
33607     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33608 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33609     cat >conftest.$ac_ext <<_ACEOF
33610 /* confdefs.h.  */
33611 _ACEOF
33612 cat confdefs.h >>conftest.$ac_ext
33613 cat >>conftest.$ac_ext <<_ACEOF
33614 /* end confdefs.h.  */
33615 #include <AppKit/NSEvent.h>
33616 #include <CoreFoundation/CoreFoundation.h>
33617
33618 int
33619 main ()
33620 {
33621
33622   ;
33623   return 0;
33624 }
33625 _ACEOF
33626 rm -f conftest.$ac_objext
33627 if { (ac_try="$ac_compile"
33628 case "(($ac_try" in
33629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33630   *) ac_try_echo=$ac_try;;
33631 esac
33632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33633   (eval "$ac_compile") 2>conftest.er1
33634   ac_status=$?
33635   grep -v '^ *+' conftest.er1 >conftest.err
33636   rm -f conftest.er1
33637   cat conftest.err >&5
33638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639   (exit $ac_status); } && {
33640          test -z "$ac_c_werror_flag" ||
33641          test ! -s conftest.err
33642        } && test -s conftest.$ac_objext; then
33643   { echo "$as_me:$LINENO: result: no" >&5
33644 echo "${ECHO_T}no" >&6; }
33645 else
33646   echo "$as_me: failed program was:" >&5
33647 sed 's/^/| /' conftest.$ac_ext >&5
33648
33649         { echo "$as_me:$LINENO: result: yes" >&5
33650 echo "${ECHO_T}yes" >&6; }
33651         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33652 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
33653         cat >conftest.$ac_ext <<_ACEOF
33654 /* confdefs.h.  */
33655 _ACEOF
33656 cat confdefs.h >>conftest.$ac_ext
33657 cat >>conftest.$ac_ext <<_ACEOF
33658 /* end confdefs.h.  */
33659 #define __Point__ 1
33660 #include <AppKit/NSEvent.h>
33661 #include <CoreFoundation/CoreFoundation.h>
33662
33663 int
33664 main ()
33665 {
33666
33667   ;
33668   return 0;
33669 }
33670 _ACEOF
33671 rm -f conftest.$ac_objext
33672 if { (ac_try="$ac_compile"
33673 case "(($ac_try" in
33674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33675   *) ac_try_echo=$ac_try;;
33676 esac
33677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33678   (eval "$ac_compile") 2>conftest.er1
33679   ac_status=$?
33680   grep -v '^ *+' conftest.er1 >conftest.err
33681   rm -f conftest.er1
33682   cat conftest.err >&5
33683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684   (exit $ac_status); } && {
33685          test -z "$ac_c_werror_flag" ||
33686          test ! -s conftest.err
33687        } && test -s conftest.$ac_objext; then
33688   { echo "$as_me:$LINENO: result: yes" >&5
33689 echo "${ECHO_T}yes" >&6; }
33690             cat >>confdefs.h <<\_ACEOF
33691 #define __Point__ 1
33692 _ACEOF
33693
33694
33695 else
33696   echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33698
33699         { { echo "$as_me:$LINENO: error: no
33700 See \`config.log' for more details." >&5
33701 echo "$as_me: error: no
33702 See \`config.log' for more details." >&2;}
33703    { (exit 1); exit 1; }; }
33704
33705 fi
33706
33707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33708
33709 fi
33710
33711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33712     ac_ext=c
33713 ac_cpp='$CPP $CPPFLAGS'
33714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33717
33718 fi
33719
33720
33721 { echo "$as_me:$LINENO: checking for mode_t" >&5
33722 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33723 if test "${ac_cv_type_mode_t+set}" = set; then
33724   echo $ECHO_N "(cached) $ECHO_C" >&6
33725 else
33726   cat >conftest.$ac_ext <<_ACEOF
33727 /* confdefs.h.  */
33728 _ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h.  */
33732 $ac_includes_default
33733 typedef mode_t ac__type_new_;
33734 int
33735 main ()
33736 {
33737 if ((ac__type_new_ *) 0)
33738   return 0;
33739 if (sizeof (ac__type_new_))
33740   return 0;
33741   ;
33742   return 0;
33743 }
33744 _ACEOF
33745 rm -f conftest.$ac_objext
33746 if { (ac_try="$ac_compile"
33747 case "(($ac_try" in
33748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33749   *) ac_try_echo=$ac_try;;
33750 esac
33751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33752   (eval "$ac_compile") 2>conftest.er1
33753   ac_status=$?
33754   grep -v '^ *+' conftest.er1 >conftest.err
33755   rm -f conftest.er1
33756   cat conftest.err >&5
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); } && {
33759          test -z "$ac_c_werror_flag" ||
33760          test ! -s conftest.err
33761        } && test -s conftest.$ac_objext; then
33762   ac_cv_type_mode_t=yes
33763 else
33764   echo "$as_me: failed program was:" >&5
33765 sed 's/^/| /' conftest.$ac_ext >&5
33766
33767         ac_cv_type_mode_t=no
33768 fi
33769
33770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33771 fi
33772 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33773 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33774 if test $ac_cv_type_mode_t = yes; then
33775   :
33776 else
33777
33778 cat >>confdefs.h <<_ACEOF
33779 #define mode_t int
33780 _ACEOF
33781
33782 fi
33783
33784 { echo "$as_me:$LINENO: checking for off_t" >&5
33785 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33786 if test "${ac_cv_type_off_t+set}" = set; then
33787   echo $ECHO_N "(cached) $ECHO_C" >&6
33788 else
33789   cat >conftest.$ac_ext <<_ACEOF
33790 /* confdefs.h.  */
33791 _ACEOF
33792 cat confdefs.h >>conftest.$ac_ext
33793 cat >>conftest.$ac_ext <<_ACEOF
33794 /* end confdefs.h.  */
33795 $ac_includes_default
33796 typedef off_t ac__type_new_;
33797 int
33798 main ()
33799 {
33800 if ((ac__type_new_ *) 0)
33801   return 0;
33802 if (sizeof (ac__type_new_))
33803   return 0;
33804   ;
33805   return 0;
33806 }
33807 _ACEOF
33808 rm -f conftest.$ac_objext
33809 if { (ac_try="$ac_compile"
33810 case "(($ac_try" in
33811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812   *) ac_try_echo=$ac_try;;
33813 esac
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815   (eval "$ac_compile") 2>conftest.er1
33816   ac_status=$?
33817   grep -v '^ *+' conftest.er1 >conftest.err
33818   rm -f conftest.er1
33819   cat conftest.err >&5
33820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821   (exit $ac_status); } && {
33822          test -z "$ac_c_werror_flag" ||
33823          test ! -s conftest.err
33824        } && test -s conftest.$ac_objext; then
33825   ac_cv_type_off_t=yes
33826 else
33827   echo "$as_me: failed program was:" >&5
33828 sed 's/^/| /' conftest.$ac_ext >&5
33829
33830         ac_cv_type_off_t=no
33831 fi
33832
33833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33834 fi
33835 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33836 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33837 if test $ac_cv_type_off_t = yes; then
33838   :
33839 else
33840
33841 cat >>confdefs.h <<_ACEOF
33842 #define off_t long int
33843 _ACEOF
33844
33845 fi
33846
33847 { echo "$as_me:$LINENO: checking for pid_t" >&5
33848 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33849 if test "${ac_cv_type_pid_t+set}" = set; then
33850   echo $ECHO_N "(cached) $ECHO_C" >&6
33851 else
33852   cat >conftest.$ac_ext <<_ACEOF
33853 /* confdefs.h.  */
33854 _ACEOF
33855 cat confdefs.h >>conftest.$ac_ext
33856 cat >>conftest.$ac_ext <<_ACEOF
33857 /* end confdefs.h.  */
33858 $ac_includes_default
33859 typedef pid_t ac__type_new_;
33860 int
33861 main ()
33862 {
33863 if ((ac__type_new_ *) 0)
33864   return 0;
33865 if (sizeof (ac__type_new_))
33866   return 0;
33867   ;
33868   return 0;
33869 }
33870 _ACEOF
33871 rm -f conftest.$ac_objext
33872 if { (ac_try="$ac_compile"
33873 case "(($ac_try" in
33874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875   *) ac_try_echo=$ac_try;;
33876 esac
33877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878   (eval "$ac_compile") 2>conftest.er1
33879   ac_status=$?
33880   grep -v '^ *+' conftest.er1 >conftest.err
33881   rm -f conftest.er1
33882   cat conftest.err >&5
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); } && {
33885          test -z "$ac_c_werror_flag" ||
33886          test ! -s conftest.err
33887        } && test -s conftest.$ac_objext; then
33888   ac_cv_type_pid_t=yes
33889 else
33890   echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33892
33893         ac_cv_type_pid_t=no
33894 fi
33895
33896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33897 fi
33898 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33899 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33900 if test $ac_cv_type_pid_t = yes; then
33901   :
33902 else
33903
33904 cat >>confdefs.h <<_ACEOF
33905 #define pid_t int
33906 _ACEOF
33907
33908 fi
33909
33910 { echo "$as_me:$LINENO: checking for size_t" >&5
33911 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33912 if test "${ac_cv_type_size_t+set}" = set; then
33913   echo $ECHO_N "(cached) $ECHO_C" >&6
33914 else
33915   cat >conftest.$ac_ext <<_ACEOF
33916 /* confdefs.h.  */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h.  */
33921 $ac_includes_default
33922 typedef size_t ac__type_new_;
33923 int
33924 main ()
33925 {
33926 if ((ac__type_new_ *) 0)
33927   return 0;
33928 if (sizeof (ac__type_new_))
33929   return 0;
33930   ;
33931   return 0;
33932 }
33933 _ACEOF
33934 rm -f conftest.$ac_objext
33935 if { (ac_try="$ac_compile"
33936 case "(($ac_try" in
33937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33938   *) ac_try_echo=$ac_try;;
33939 esac
33940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33941   (eval "$ac_compile") 2>conftest.er1
33942   ac_status=$?
33943   grep -v '^ *+' conftest.er1 >conftest.err
33944   rm -f conftest.er1
33945   cat conftest.err >&5
33946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947   (exit $ac_status); } && {
33948          test -z "$ac_c_werror_flag" ||
33949          test ! -s conftest.err
33950        } && test -s conftest.$ac_objext; then
33951   ac_cv_type_size_t=yes
33952 else
33953   echo "$as_me: failed program was:" >&5
33954 sed 's/^/| /' conftest.$ac_ext >&5
33955
33956         ac_cv_type_size_t=no
33957 fi
33958
33959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33960 fi
33961 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33962 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33963 if test $ac_cv_type_size_t = yes; then
33964   :
33965 else
33966
33967 cat >>confdefs.h <<_ACEOF
33968 #define size_t unsigned int
33969 _ACEOF
33970
33971 fi
33972
33973
33974 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33975 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33976 if test "${ac_cv_type_ssize_t+set}" = set; then
33977   echo $ECHO_N "(cached) $ECHO_C" >&6
33978 else
33979   cat >conftest.$ac_ext <<_ACEOF
33980 /* confdefs.h.  */
33981 _ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h.  */
33985 $ac_includes_default
33986 typedef ssize_t ac__type_new_;
33987 int
33988 main ()
33989 {
33990 if ((ac__type_new_ *) 0)
33991   return 0;
33992 if (sizeof (ac__type_new_))
33993   return 0;
33994   ;
33995   return 0;
33996 }
33997 _ACEOF
33998 rm -f conftest.$ac_objext
33999 if { (ac_try="$ac_compile"
34000 case "(($ac_try" in
34001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002   *) ac_try_echo=$ac_try;;
34003 esac
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005   (eval "$ac_compile") 2>conftest.er1
34006   ac_status=$?
34007   grep -v '^ *+' conftest.er1 >conftest.err
34008   rm -f conftest.er1
34009   cat conftest.err >&5
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); } && {
34012          test -z "$ac_c_werror_flag" ||
34013          test ! -s conftest.err
34014        } && test -s conftest.$ac_objext; then
34015   ac_cv_type_ssize_t=yes
34016 else
34017   echo "$as_me: failed program was:" >&5
34018 sed 's/^/| /' conftest.$ac_ext >&5
34019
34020         ac_cv_type_ssize_t=no
34021 fi
34022
34023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34024 fi
34025 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34026 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34027 if test $ac_cv_type_ssize_t = yes; then
34028
34029 cat >>confdefs.h <<_ACEOF
34030 #define HAVE_SSIZE_T 1
34031 _ACEOF
34032
34033
34034 fi
34035
34036
34037 ac_ext=cpp
34038 ac_cpp='$CXXCPP $CPPFLAGS'
34039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34042  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34043 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34044 if test "${wx_cv_size_t_is_uint+set}" = set; then
34045   echo $ECHO_N "(cached) $ECHO_C" >&6
34046 else
34047
34048                             cat >conftest.$ac_ext <<_ACEOF
34049 /* confdefs.h.  */
34050 _ACEOF
34051 cat confdefs.h >>conftest.$ac_ext
34052 cat >>conftest.$ac_ext <<_ACEOF
34053 /* end confdefs.h.  */
34054 #include <stddef.h>
34055 int
34056 main ()
34057 {
34058
34059             return 0; }
34060
34061             struct Foo { void foo(size_t); void foo(unsigned int); };
34062
34063             int bar() {
34064
34065   ;
34066   return 0;
34067 }
34068 _ACEOF
34069 rm -f conftest.$ac_objext
34070 if { (ac_try="$ac_compile"
34071 case "(($ac_try" in
34072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073   *) ac_try_echo=$ac_try;;
34074 esac
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076   (eval "$ac_compile") 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } && {
34083          test -z "$ac_cxx_werror_flag" ||
34084          test ! -s conftest.err
34085        } && test -s conftest.$ac_objext; then
34086   wx_cv_size_t_is_uint=no
34087 else
34088   echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34090
34091         wx_cv_size_t_is_uint=yes
34092
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096
34097
34098 fi
34099 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34100 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34101
34102 if test "$wx_cv_size_t_is_uint" = "yes"; then
34103     cat >>confdefs.h <<\_ACEOF
34104 #define wxSIZE_T_IS_UINT 1
34105 _ACEOF
34106
34107 else
34108     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34109 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34110 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34111   echo $ECHO_N "(cached) $ECHO_C" >&6
34112 else
34113   cat >conftest.$ac_ext <<_ACEOF
34114 /* confdefs.h.  */
34115 _ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h.  */
34119 #include <stddef.h>
34120 int
34121 main ()
34122 {
34123
34124                 return 0; }
34125
34126                 struct Foo { void foo(size_t); void foo(unsigned long); };
34127
34128                 int bar() {
34129
34130   ;
34131   return 0;
34132 }
34133 _ACEOF
34134 rm -f conftest.$ac_objext
34135 if { (ac_try="$ac_compile"
34136 case "(($ac_try" in
34137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34138   *) ac_try_echo=$ac_try;;
34139 esac
34140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34141   (eval "$ac_compile") 2>conftest.er1
34142   ac_status=$?
34143   grep -v '^ *+' conftest.er1 >conftest.err
34144   rm -f conftest.er1
34145   cat conftest.err >&5
34146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147   (exit $ac_status); } && {
34148          test -z "$ac_cxx_werror_flag" ||
34149          test ! -s conftest.err
34150        } && test -s conftest.$ac_objext; then
34151   wx_cv_size_t_is_ulong=no
34152 else
34153   echo "$as_me: failed program was:" >&5
34154 sed 's/^/| /' conftest.$ac_ext >&5
34155
34156         wx_cv_size_t_is_ulong=yes
34157
34158 fi
34159
34160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34161
34162 fi
34163 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34164 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34165
34166     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34167         cat >>confdefs.h <<\_ACEOF
34168 #define wxSIZE_T_IS_ULONG 1
34169 _ACEOF
34170
34171     fi
34172 fi
34173
34174 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34175 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34176 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34177   echo $ECHO_N "(cached) $ECHO_C" >&6
34178 else
34179   cat >conftest.$ac_ext <<_ACEOF
34180 /* confdefs.h.  */
34181 _ACEOF
34182 cat confdefs.h >>conftest.$ac_ext
34183 cat >>conftest.$ac_ext <<_ACEOF
34184 /* end confdefs.h.  */
34185 #include <wchar.h>
34186 int
34187 main ()
34188 {
34189
34190             return 0; }
34191
34192             struct Foo { void foo(wchar_t);
34193                          void foo(unsigned short);
34194                          void foo(unsigned int);
34195                          void foo(unsigned long); };
34196
34197             int bar() {
34198
34199   ;
34200   return 0;
34201 }
34202 _ACEOF
34203 rm -f conftest.$ac_objext
34204 if { (ac_try="$ac_compile"
34205 case "(($ac_try" in
34206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207   *) ac_try_echo=$ac_try;;
34208 esac
34209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210   (eval "$ac_compile") 2>conftest.er1
34211   ac_status=$?
34212   grep -v '^ *+' conftest.er1 >conftest.err
34213   rm -f conftest.er1
34214   cat conftest.err >&5
34215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); } && {
34217          test -z "$ac_cxx_werror_flag" ||
34218          test ! -s conftest.err
34219        } && test -s conftest.$ac_objext; then
34220   wx_cv_wchar_t_is_separate_type=yes
34221 else
34222   echo "$as_me: failed program was:" >&5
34223 sed 's/^/| /' conftest.$ac_ext >&5
34224
34225         wx_cv_wchar_t_is_separate_type=no
34226
34227 fi
34228
34229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34230
34231 fi
34232 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34233 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34234
34235 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34236     cat >>confdefs.h <<\_ACEOF
34237 #define wxWCHAR_T_IS_REAL_TYPE 1
34238 _ACEOF
34239
34240 else
34241     cat >>confdefs.h <<\_ACEOF
34242 #define wxWCHAR_T_IS_REAL_TYPE 0
34243 _ACEOF
34244
34245 fi
34246
34247 ac_ext=c
34248 ac_cpp='$CPP $CPPFLAGS'
34249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34252
34253
34254 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34255 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34256 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34257   echo $ECHO_N "(cached) $ECHO_C" >&6
34258 else
34259
34260         cat >conftest.$ac_ext <<_ACEOF
34261 /* confdefs.h.  */
34262 _ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h.  */
34266 #include <pwd.h>
34267 int
34268 main ()
34269 {
34270
34271                 char *p;
34272                 struct passwd *pw;
34273                 p = pw->pw_gecos;
34274
34275   ;
34276   return 0;
34277 }
34278 _ACEOF
34279 rm -f conftest.$ac_objext
34280 if { (ac_try="$ac_compile"
34281 case "(($ac_try" in
34282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34283   *) ac_try_echo=$ac_try;;
34284 esac
34285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34286   (eval "$ac_compile") 2>conftest.er1
34287   ac_status=$?
34288   grep -v '^ *+' conftest.er1 >conftest.err
34289   rm -f conftest.er1
34290   cat conftest.err >&5
34291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292   (exit $ac_status); } && {
34293          test -z "$ac_c_werror_flag" ||
34294          test ! -s conftest.err
34295        } && test -s conftest.$ac_objext; then
34296
34297                 wx_cv_struct_pw_gecos=yes
34298
34299 else
34300   echo "$as_me: failed program was:" >&5
34301 sed 's/^/| /' conftest.$ac_ext >&5
34302
34303
34304                 wx_cv_struct_pw_gecos=no
34305
34306
34307 fi
34308
34309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34310
34311
34312 fi
34313 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34314 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34315
34316 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34317     cat >>confdefs.h <<\_ACEOF
34318 #define HAVE_PW_GECOS 1
34319 _ACEOF
34320
34321 fi
34322
34323
34324 if test "$wxUSE_WCHAR_T" = "yes"; then
34325     cat >>confdefs.h <<\_ACEOF
34326 #define wxUSE_WCHAR_T 1
34327 _ACEOF
34328
34329
34330         WCSLEN_FOUND=0
34331     WCHAR_LINK=
34332
34333 for ac_func in wcslen
34334 do
34335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34339   echo $ECHO_N "(cached) $ECHO_C" >&6
34340 else
34341   cat >conftest.$ac_ext <<_ACEOF
34342 /* confdefs.h.  */
34343 _ACEOF
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h.  */
34347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34349 #define $ac_func innocuous_$ac_func
34350
34351 /* System header to define __stub macros and hopefully few prototypes,
34352     which can conflict with char $ac_func (); below.
34353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34354     <limits.h> exists even on freestanding compilers.  */
34355
34356 #ifdef __STDC__
34357 # include <limits.h>
34358 #else
34359 # include <assert.h>
34360 #endif
34361
34362 #undef $ac_func
34363
34364 /* Override any GCC internal prototype to avoid an error.
34365    Use char because int might match the return type of a GCC
34366    builtin and then its argument prototype would still apply.  */
34367 #ifdef __cplusplus
34368 extern "C"
34369 #endif
34370 char $ac_func ();
34371 /* The GNU C library defines this for functions which it implements
34372     to always fail with ENOSYS.  Some functions are actually named
34373     something starting with __ and the normal name is an alias.  */
34374 #if defined __stub_$ac_func || defined __stub___$ac_func
34375 choke me
34376 #endif
34377
34378 int
34379 main ()
34380 {
34381 return $ac_func ();
34382   ;
34383   return 0;
34384 }
34385 _ACEOF
34386 rm -f conftest.$ac_objext conftest$ac_exeext
34387 if { (ac_try="$ac_link"
34388 case "(($ac_try" in
34389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390   *) ac_try_echo=$ac_try;;
34391 esac
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393   (eval "$ac_link") 2>conftest.er1
34394   ac_status=$?
34395   grep -v '^ *+' conftest.er1 >conftest.err
34396   rm -f conftest.er1
34397   cat conftest.err >&5
34398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399   (exit $ac_status); } && {
34400          test -z "$ac_c_werror_flag" ||
34401          test ! -s conftest.err
34402        } && test -s conftest$ac_exeext &&
34403        $as_test_x conftest$ac_exeext; then
34404   eval "$as_ac_var=yes"
34405 else
34406   echo "$as_me: failed program was:" >&5
34407 sed 's/^/| /' conftest.$ac_ext >&5
34408
34409         eval "$as_ac_var=no"
34410 fi
34411
34412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34413       conftest$ac_exeext conftest.$ac_ext
34414 fi
34415 ac_res=`eval echo '${'$as_ac_var'}'`
34416                { echo "$as_me:$LINENO: result: $ac_res" >&5
34417 echo "${ECHO_T}$ac_res" >&6; }
34418 if test `eval echo '${'$as_ac_var'}'` = yes; then
34419   cat >>confdefs.h <<_ACEOF
34420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34421 _ACEOF
34422  WCSLEN_FOUND=1
34423 fi
34424 done
34425
34426
34427     if test "$WCSLEN_FOUND" = 0; then
34428         if test "$TOOLKIT" = "MSW"; then
34429             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34430 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34431 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34432   echo $ECHO_N "(cached) $ECHO_C" >&6
34433 else
34434   ac_check_lib_save_LIBS=$LIBS
34435 LIBS="-lmsvcrt  $LIBS"
34436 cat >conftest.$ac_ext <<_ACEOF
34437 /* confdefs.h.  */
34438 _ACEOF
34439 cat confdefs.h >>conftest.$ac_ext
34440 cat >>conftest.$ac_ext <<_ACEOF
34441 /* end confdefs.h.  */
34442
34443 /* Override any GCC internal prototype to avoid an error.
34444    Use char because int might match the return type of a GCC
34445    builtin and then its argument prototype would still apply.  */
34446 #ifdef __cplusplus
34447 extern "C"
34448 #endif
34449 char wcslen ();
34450 int
34451 main ()
34452 {
34453 return wcslen ();
34454   ;
34455   return 0;
34456 }
34457 _ACEOF
34458 rm -f conftest.$ac_objext conftest$ac_exeext
34459 if { (ac_try="$ac_link"
34460 case "(($ac_try" in
34461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462   *) ac_try_echo=$ac_try;;
34463 esac
34464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465   (eval "$ac_link") 2>conftest.er1
34466   ac_status=$?
34467   grep -v '^ *+' conftest.er1 >conftest.err
34468   rm -f conftest.er1
34469   cat conftest.err >&5
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); } && {
34472          test -z "$ac_c_werror_flag" ||
34473          test ! -s conftest.err
34474        } && test -s conftest$ac_exeext &&
34475        $as_test_x conftest$ac_exeext; then
34476   ac_cv_lib_msvcrt_wcslen=yes
34477 else
34478   echo "$as_me: failed program was:" >&5
34479 sed 's/^/| /' conftest.$ac_ext >&5
34480
34481         ac_cv_lib_msvcrt_wcslen=no
34482 fi
34483
34484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34485       conftest$ac_exeext conftest.$ac_ext
34486 LIBS=$ac_check_lib_save_LIBS
34487 fi
34488 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34489 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34490 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34491   WCHAR_OK=1
34492 fi
34493
34494         else
34495             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34496 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34497 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34498   echo $ECHO_N "(cached) $ECHO_C" >&6
34499 else
34500   ac_check_lib_save_LIBS=$LIBS
34501 LIBS="-lw  $LIBS"
34502 cat >conftest.$ac_ext <<_ACEOF
34503 /* confdefs.h.  */
34504 _ACEOF
34505 cat confdefs.h >>conftest.$ac_ext
34506 cat >>conftest.$ac_ext <<_ACEOF
34507 /* end confdefs.h.  */
34508
34509 /* Override any GCC internal prototype to avoid an error.
34510    Use char because int might match the return type of a GCC
34511    builtin and then its argument prototype would still apply.  */
34512 #ifdef __cplusplus
34513 extern "C"
34514 #endif
34515 char wcslen ();
34516 int
34517 main ()
34518 {
34519 return wcslen ();
34520   ;
34521   return 0;
34522 }
34523 _ACEOF
34524 rm -f conftest.$ac_objext conftest$ac_exeext
34525 if { (ac_try="$ac_link"
34526 case "(($ac_try" in
34527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528   *) ac_try_echo=$ac_try;;
34529 esac
34530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531   (eval "$ac_link") 2>conftest.er1
34532   ac_status=$?
34533   grep -v '^ *+' conftest.er1 >conftest.err
34534   rm -f conftest.er1
34535   cat conftest.err >&5
34536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); } && {
34538          test -z "$ac_c_werror_flag" ||
34539          test ! -s conftest.err
34540        } && test -s conftest$ac_exeext &&
34541        $as_test_x conftest$ac_exeext; then
34542   ac_cv_lib_w_wcslen=yes
34543 else
34544   echo "$as_me: failed program was:" >&5
34545 sed 's/^/| /' conftest.$ac_ext >&5
34546
34547         ac_cv_lib_w_wcslen=no
34548 fi
34549
34550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34551       conftest$ac_exeext conftest.$ac_ext
34552 LIBS=$ac_check_lib_save_LIBS
34553 fi
34554 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34555 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34556 if test $ac_cv_lib_w_wcslen = yes; then
34557
34558                             WCHAR_LINK=" -lw"
34559                             WCSLEN_FOUND=1
34560
34561 fi
34562
34563         fi
34564     fi
34565
34566     if test "$WCSLEN_FOUND" = 1; then
34567         cat >>confdefs.h <<\_ACEOF
34568 #define HAVE_WCSLEN 1
34569 _ACEOF
34570
34571     fi
34572
34573
34574 for ac_func in wcsdup
34575 do
34576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34580   echo $ECHO_N "(cached) $ECHO_C" >&6
34581 else
34582   cat >conftest.$ac_ext <<_ACEOF
34583 /* confdefs.h.  */
34584 _ACEOF
34585 cat confdefs.h >>conftest.$ac_ext
34586 cat >>conftest.$ac_ext <<_ACEOF
34587 /* end confdefs.h.  */
34588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34590 #define $ac_func innocuous_$ac_func
34591
34592 /* System header to define __stub macros and hopefully few prototypes,
34593     which can conflict with char $ac_func (); below.
34594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34595     <limits.h> exists even on freestanding compilers.  */
34596
34597 #ifdef __STDC__
34598 # include <limits.h>
34599 #else
34600 # include <assert.h>
34601 #endif
34602
34603 #undef $ac_func
34604
34605 /* Override any GCC internal prototype to avoid an error.
34606    Use char because int might match the return type of a GCC
34607    builtin and then its argument prototype would still apply.  */
34608 #ifdef __cplusplus
34609 extern "C"
34610 #endif
34611 char $ac_func ();
34612 /* The GNU C library defines this for functions which it implements
34613     to always fail with ENOSYS.  Some functions are actually named
34614     something starting with __ and the normal name is an alias.  */
34615 #if defined __stub_$ac_func || defined __stub___$ac_func
34616 choke me
34617 #endif
34618
34619 int
34620 main ()
34621 {
34622 return $ac_func ();
34623   ;
34624   return 0;
34625 }
34626 _ACEOF
34627 rm -f conftest.$ac_objext conftest$ac_exeext
34628 if { (ac_try="$ac_link"
34629 case "(($ac_try" in
34630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34631   *) ac_try_echo=$ac_try;;
34632 esac
34633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34634   (eval "$ac_link") 2>conftest.er1
34635   ac_status=$?
34636   grep -v '^ *+' conftest.er1 >conftest.err
34637   rm -f conftest.er1
34638   cat conftest.err >&5
34639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640   (exit $ac_status); } && {
34641          test -z "$ac_c_werror_flag" ||
34642          test ! -s conftest.err
34643        } && test -s conftest$ac_exeext &&
34644        $as_test_x conftest$ac_exeext; then
34645   eval "$as_ac_var=yes"
34646 else
34647   echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34649
34650         eval "$as_ac_var=no"
34651 fi
34652
34653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34654       conftest$ac_exeext conftest.$ac_ext
34655 fi
34656 ac_res=`eval echo '${'$as_ac_var'}'`
34657                { echo "$as_me:$LINENO: result: $ac_res" >&5
34658 echo "${ECHO_T}$ac_res" >&6; }
34659 if test `eval echo '${'$as_ac_var'}'` = yes; then
34660   cat >>confdefs.h <<_ACEOF
34661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34662 _ACEOF
34663
34664 fi
34665 done
34666
34667
34668                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34669         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34670     fi
34671
34672                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
34673 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
34674 if test "${ac_cv_type_mbstate_t+set}" = set; then
34675   echo $ECHO_N "(cached) $ECHO_C" >&6
34676 else
34677   cat >conftest.$ac_ext <<_ACEOF
34678 /* confdefs.h.  */
34679 _ACEOF
34680 cat confdefs.h >>conftest.$ac_ext
34681 cat >>conftest.$ac_ext <<_ACEOF
34682 /* end confdefs.h.  */
34683 #include <wchar.h>
34684
34685 typedef mbstate_t ac__type_new_;
34686 int
34687 main ()
34688 {
34689 if ((ac__type_new_ *) 0)
34690   return 0;
34691 if (sizeof (ac__type_new_))
34692   return 0;
34693   ;
34694   return 0;
34695 }
34696 _ACEOF
34697 rm -f conftest.$ac_objext
34698 if { (ac_try="$ac_compile"
34699 case "(($ac_try" in
34700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701   *) ac_try_echo=$ac_try;;
34702 esac
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704   (eval "$ac_compile") 2>conftest.er1
34705   ac_status=$?
34706   grep -v '^ *+' conftest.er1 >conftest.err
34707   rm -f conftest.er1
34708   cat conftest.err >&5
34709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710   (exit $ac_status); } && {
34711          test -z "$ac_c_werror_flag" ||
34712          test ! -s conftest.err
34713        } && test -s conftest.$ac_objext; then
34714   ac_cv_type_mbstate_t=yes
34715 else
34716   echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34718
34719         ac_cv_type_mbstate_t=no
34720 fi
34721
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34723 fi
34724 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34725 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
34726 if test $ac_cv_type_mbstate_t = yes; then
34727
34728 cat >>confdefs.h <<_ACEOF
34729 #define HAVE_MBSTATE_T 1
34730 _ACEOF
34731
34732
34733 for ac_func in wcsrtombs
34734 do
34735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34739   echo $ECHO_N "(cached) $ECHO_C" >&6
34740 else
34741   cat >conftest.$ac_ext <<_ACEOF
34742 /* confdefs.h.  */
34743 _ACEOF
34744 cat confdefs.h >>conftest.$ac_ext
34745 cat >>conftest.$ac_ext <<_ACEOF
34746 /* end confdefs.h.  */
34747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34749 #define $ac_func innocuous_$ac_func
34750
34751 /* System header to define __stub macros and hopefully few prototypes,
34752     which can conflict with char $ac_func (); below.
34753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34754     <limits.h> exists even on freestanding compilers.  */
34755
34756 #ifdef __STDC__
34757 # include <limits.h>
34758 #else
34759 # include <assert.h>
34760 #endif
34761
34762 #undef $ac_func
34763
34764 /* Override any GCC internal prototype to avoid an error.
34765    Use char because int might match the return type of a GCC
34766    builtin and then its argument prototype would still apply.  */
34767 #ifdef __cplusplus
34768 extern "C"
34769 #endif
34770 char $ac_func ();
34771 /* The GNU C library defines this for functions which it implements
34772     to always fail with ENOSYS.  Some functions are actually named
34773     something starting with __ and the normal name is an alias.  */
34774 #if defined __stub_$ac_func || defined __stub___$ac_func
34775 choke me
34776 #endif
34777
34778 int
34779 main ()
34780 {
34781 return $ac_func ();
34782   ;
34783   return 0;
34784 }
34785 _ACEOF
34786 rm -f conftest.$ac_objext conftest$ac_exeext
34787 if { (ac_try="$ac_link"
34788 case "(($ac_try" in
34789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34790   *) ac_try_echo=$ac_try;;
34791 esac
34792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34793   (eval "$ac_link") 2>conftest.er1
34794   ac_status=$?
34795   grep -v '^ *+' conftest.er1 >conftest.err
34796   rm -f conftest.er1
34797   cat conftest.err >&5
34798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799   (exit $ac_status); } && {
34800          test -z "$ac_c_werror_flag" ||
34801          test ! -s conftest.err
34802        } && test -s conftest$ac_exeext &&
34803        $as_test_x conftest$ac_exeext; then
34804   eval "$as_ac_var=yes"
34805 else
34806   echo "$as_me: failed program was:" >&5
34807 sed 's/^/| /' conftest.$ac_ext >&5
34808
34809         eval "$as_ac_var=no"
34810 fi
34811
34812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34813       conftest$ac_exeext conftest.$ac_ext
34814 fi
34815 ac_res=`eval echo '${'$as_ac_var'}'`
34816                { echo "$as_me:$LINENO: result: $ac_res" >&5
34817 echo "${ECHO_T}$ac_res" >&6; }
34818 if test `eval echo '${'$as_ac_var'}'` = yes; then
34819   cat >>confdefs.h <<_ACEOF
34820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34821 _ACEOF
34822
34823 fi
34824 done
34825
34826 fi
34827
34828 else
34829     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34830 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34831 fi
34832
34833
34834
34835 for ac_func in snprintf vsnprintf
34836 do
34837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34841   echo $ECHO_N "(cached) $ECHO_C" >&6
34842 else
34843   cat >conftest.$ac_ext <<_ACEOF
34844 /* confdefs.h.  */
34845 _ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h.  */
34849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34851 #define $ac_func innocuous_$ac_func
34852
34853 /* System header to define __stub macros and hopefully few prototypes,
34854     which can conflict with char $ac_func (); below.
34855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34856     <limits.h> exists even on freestanding compilers.  */
34857
34858 #ifdef __STDC__
34859 # include <limits.h>
34860 #else
34861 # include <assert.h>
34862 #endif
34863
34864 #undef $ac_func
34865
34866 /* Override any GCC internal prototype to avoid an error.
34867    Use char because int might match the return type of a GCC
34868    builtin and then its argument prototype would still apply.  */
34869 #ifdef __cplusplus
34870 extern "C"
34871 #endif
34872 char $ac_func ();
34873 /* The GNU C library defines this for functions which it implements
34874     to always fail with ENOSYS.  Some functions are actually named
34875     something starting with __ and the normal name is an alias.  */
34876 #if defined __stub_$ac_func || defined __stub___$ac_func
34877 choke me
34878 #endif
34879
34880 int
34881 main ()
34882 {
34883 return $ac_func ();
34884   ;
34885   return 0;
34886 }
34887 _ACEOF
34888 rm -f conftest.$ac_objext conftest$ac_exeext
34889 if { (ac_try="$ac_link"
34890 case "(($ac_try" in
34891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34892   *) ac_try_echo=$ac_try;;
34893 esac
34894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34895   (eval "$ac_link") 2>conftest.er1
34896   ac_status=$?
34897   grep -v '^ *+' conftest.er1 >conftest.err
34898   rm -f conftest.er1
34899   cat conftest.err >&5
34900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901   (exit $ac_status); } && {
34902          test -z "$ac_c_werror_flag" ||
34903          test ! -s conftest.err
34904        } && test -s conftest$ac_exeext &&
34905        $as_test_x conftest$ac_exeext; then
34906   eval "$as_ac_var=yes"
34907 else
34908   echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.$ac_ext >&5
34910
34911         eval "$as_ac_var=no"
34912 fi
34913
34914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34915       conftest$ac_exeext conftest.$ac_ext
34916 fi
34917 ac_res=`eval echo '${'$as_ac_var'}'`
34918                { echo "$as_me:$LINENO: result: $ac_res" >&5
34919 echo "${ECHO_T}$ac_res" >&6; }
34920 if test `eval echo '${'$as_ac_var'}'` = yes; then
34921   cat >>confdefs.h <<_ACEOF
34922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34923 _ACEOF
34924
34925 fi
34926 done
34927
34928
34929 if test "$ac_cv_func_vsnprintf" = "yes"; then
34930         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34931 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
34932 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34933   echo $ECHO_N "(cached) $ECHO_C" >&6
34934 else
34935
34936                                                             cat >conftest.$ac_ext <<_ACEOF
34937 /* confdefs.h.  */
34938 _ACEOF
34939 cat confdefs.h >>conftest.$ac_ext
34940 cat >>conftest.$ac_ext <<_ACEOF
34941 /* end confdefs.h.  */
34942
34943                     #include <stdio.h>
34944                     #include <stdarg.h>
34945                     #ifdef __MSL__
34946                     #if __MSL__ >= 0x6000
34947                     namespace std {}
34948                     using namespace std;
34949                     #endif
34950                     #endif
34951
34952 int
34953 main ()
34954 {
34955
34956                     char *buf;
34957                     va_list ap;
34958                     vsnprintf(buf, 10u, "%s", ap);
34959
34960   ;
34961   return 0;
34962 }
34963 _ACEOF
34964 rm -f conftest.$ac_objext
34965 if { (ac_try="$ac_compile"
34966 case "(($ac_try" in
34967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34968   *) ac_try_echo=$ac_try;;
34969 esac
34970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34971   (eval "$ac_compile") 2>conftest.er1
34972   ac_status=$?
34973   grep -v '^ *+' conftest.er1 >conftest.err
34974   rm -f conftest.er1
34975   cat conftest.err >&5
34976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977   (exit $ac_status); } && {
34978          test -z "$ac_c_werror_flag" ||
34979          test ! -s conftest.err
34980        } && test -s conftest.$ac_objext; then
34981   wx_cv_func_vsnprintf_decl=yes
34982 else
34983   echo "$as_me: failed program was:" >&5
34984 sed 's/^/| /' conftest.$ac_ext >&5
34985
34986         wx_cv_func_vsnprintf_decl=no
34987
34988 fi
34989
34990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34991
34992
34993 fi
34994 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34995 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
34996
34997     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34998         cat >>confdefs.h <<\_ACEOF
34999 #define HAVE_VSNPRINTF_DECL 1
35000 _ACEOF
35001
35002
35003                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35004 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35005 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35006   echo $ECHO_N "(cached) $ECHO_C" >&6
35007 else
35008
35009                 cat >conftest.$ac_ext <<_ACEOF
35010 /* confdefs.h.  */
35011 _ACEOF
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h.  */
35015
35016                         #include <stdio.h>
35017                         #include <stdarg.h>
35018                         #ifdef __MSL__
35019                         #if __MSL__ >= 0x6000
35020                         namespace std {}
35021                         using namespace std;
35022                         #endif
35023                         #endif
35024
35025 int
35026 main ()
35027 {
35028
35029                         char *buf;
35030                         va_list ap;
35031                         const char *fmt = "%s";
35032                         vsnprintf(buf, 10u, fmt, ap);
35033
35034   ;
35035   return 0;
35036 }
35037 _ACEOF
35038 rm -f conftest.$ac_objext
35039 if { (ac_try="$ac_compile"
35040 case "(($ac_try" in
35041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35042   *) ac_try_echo=$ac_try;;
35043 esac
35044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35045   (eval "$ac_compile") 2>conftest.er1
35046   ac_status=$?
35047   grep -v '^ *+' conftest.er1 >conftest.err
35048   rm -f conftest.er1
35049   cat conftest.err >&5
35050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051   (exit $ac_status); } && {
35052          test -z "$ac_c_werror_flag" ||
35053          test ! -s conftest.err
35054        } && test -s conftest.$ac_objext; then
35055   wx_cv_func_broken_vsnprintf_decl=no
35056 else
35057   echo "$as_me: failed program was:" >&5
35058 sed 's/^/| /' conftest.$ac_ext >&5
35059
35060         wx_cv_func_broken_vsnprintf_decl=yes
35061
35062 fi
35063
35064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35065
35066
35067 fi
35068 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35069 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35070
35071         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35072             cat >>confdefs.h <<\_ACEOF
35073 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35074 _ACEOF
35075
35076         fi
35077     fi
35078 fi
35079
35080 if test "$ac_cv_func_snprintf" = "yes"; then
35081     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35082 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35083 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35084   echo $ECHO_N "(cached) $ECHO_C" >&6
35085 else
35086
35087             cat >conftest.$ac_ext <<_ACEOF
35088 /* confdefs.h.  */
35089 _ACEOF
35090 cat confdefs.h >>conftest.$ac_ext
35091 cat >>conftest.$ac_ext <<_ACEOF
35092 /* end confdefs.h.  */
35093
35094                     #include <stdio.h>
35095                     #include <stdarg.h>
35096                     #ifdef __MSL__
35097                     #if __MSL__ >= 0x6000
35098                     namespace std {}
35099                     using namespace std;
35100                     #endif
35101                     #endif
35102
35103 int
35104 main ()
35105 {
35106
35107                     char *buf;
35108                     snprintf(buf, 10u, "%s", "wx");
35109
35110   ;
35111   return 0;
35112 }
35113 _ACEOF
35114 rm -f conftest.$ac_objext
35115 if { (ac_try="$ac_compile"
35116 case "(($ac_try" in
35117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35118   *) ac_try_echo=$ac_try;;
35119 esac
35120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35121   (eval "$ac_compile") 2>conftest.er1
35122   ac_status=$?
35123   grep -v '^ *+' conftest.er1 >conftest.err
35124   rm -f conftest.er1
35125   cat conftest.err >&5
35126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127   (exit $ac_status); } && {
35128          test -z "$ac_c_werror_flag" ||
35129          test ! -s conftest.err
35130        } && test -s conftest.$ac_objext; then
35131   wx_cv_func_snprintf_decl=yes
35132 else
35133   echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35135
35136         wx_cv_func_snprintf_decl=no
35137
35138 fi
35139
35140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35141
35142
35143 fi
35144 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35145 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35146
35147     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35148         cat >>confdefs.h <<\_ACEOF
35149 #define HAVE_SNPRINTF_DECL 1
35150 _ACEOF
35151
35152     fi
35153
35154     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35155
35156                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35157 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35158 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35159   echo $ECHO_N "(cached) $ECHO_C" >&6
35160 else
35161
35162                 if test "$cross_compiling" = yes; then
35163
35164                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35165 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35166 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35167 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35168                         wx_cv_func_snprintf_pos_params=no
35169
35170
35171 else
35172   cat >conftest.$ac_ext <<_ACEOF
35173 /* confdefs.h.  */
35174 _ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h.  */
35178
35179                         #include <stdio.h>
35180
35181                         int main (void)
35182                         {
35183                             char buffer[128];
35184                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35185                             if (strcmp ("2 3 1", buffer) == 0)
35186                                 exit (0);
35187                             exit (1);
35188                         }
35189
35190 _ACEOF
35191 rm -f conftest$ac_exeext
35192 if { (ac_try="$ac_link"
35193 case "(($ac_try" in
35194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35195   *) ac_try_echo=$ac_try;;
35196 esac
35197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35198   (eval "$ac_link") 2>&5
35199   ac_status=$?
35200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35202   { (case "(($ac_try" in
35203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35204   *) ac_try_echo=$ac_try;;
35205 esac
35206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35207   (eval "$ac_try") 2>&5
35208   ac_status=$?
35209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210   (exit $ac_status); }; }; then
35211   wx_cv_func_snprintf_pos_params=no
35212 else
35213   echo "$as_me: program exited with status $ac_status" >&5
35214 echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35216
35217 ( exit $ac_status )
35218 wx_cv_func_snprintf_pos_params=yes
35219 fi
35220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35221 fi
35222
35223
35224
35225
35226 fi
35227 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35228 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35229
35230         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35231             cat >>confdefs.h <<\_ACEOF
35232 #define HAVE_UNIX98_PRINTF 1
35233 _ACEOF
35234
35235         fi
35236     fi
35237 fi
35238
35239 if test "$wxUSE_UNICODE" = yes; then
35240
35241             wchar_headers="#include <stdio.h>
35242 #include <wchar.h>"
35243     case "${host}" in
35244         *-*-solaris2* )
35245
35246 for ac_header in widec.h
35247 do
35248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35252   echo $ECHO_N "(cached) $ECHO_C" >&6
35253 else
35254   cat >conftest.$ac_ext <<_ACEOF
35255 /* confdefs.h.  */
35256 _ACEOF
35257 cat confdefs.h >>conftest.$ac_ext
35258 cat >>conftest.$ac_ext <<_ACEOF
35259 /* end confdefs.h.  */
35260 $ac_includes_default
35261
35262 #include <$ac_header>
35263 _ACEOF
35264 rm -f conftest.$ac_objext
35265 if { (ac_try="$ac_compile"
35266 case "(($ac_try" in
35267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35268   *) ac_try_echo=$ac_try;;
35269 esac
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271   (eval "$ac_compile") 2>conftest.er1
35272   ac_status=$?
35273   grep -v '^ *+' conftest.er1 >conftest.err
35274   rm -f conftest.er1
35275   cat conftest.err >&5
35276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277   (exit $ac_status); } && {
35278          test -z "$ac_c_werror_flag" ||
35279          test ! -s conftest.err
35280        } && test -s conftest.$ac_objext; then
35281   eval "$as_ac_Header=yes"
35282 else
35283   echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35285
35286         eval "$as_ac_Header=no"
35287 fi
35288
35289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35290 fi
35291 ac_res=`eval echo '${'$as_ac_Header'}'`
35292                { echo "$as_me:$LINENO: result: $ac_res" >&5
35293 echo "${ECHO_T}$ac_res" >&6; }
35294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35295   cat >>confdefs.h <<_ACEOF
35296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35297 _ACEOF
35298
35299 fi
35300
35301 done
35302
35303             if test "$ac_cv_header_widec_h" = "yes"; then
35304                 wchar_headers="$wchar_headers
35305 #include <widec.h>"
35306             fi
35307     esac
35308
35309
35310   for wx_func in putws fputws wprintf vswprintf vswscanf
35311   do
35312     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35313 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35314 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35315   echo $ECHO_N "(cached) $ECHO_C" >&6
35316 else
35317
35318         cat >conftest.$ac_ext <<_ACEOF
35319
35320             /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325
35326                 $wchar_headers
35327                 $ac_includes_default
35328
35329 int
35330 main ()
35331 {
35332
35333                 #ifndef $wx_func
35334                   &$wx_func;
35335                 #endif
35336
35337
35338   ;
35339   return 0;
35340 }
35341
35342 _ACEOF
35343 rm -f conftest.$ac_objext conftest$ac_exeext
35344 if { (ac_try="$ac_link"
35345 case "(($ac_try" in
35346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35347   *) ac_try_echo=$ac_try;;
35348 esac
35349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35350   (eval "$ac_link") 2>conftest.er1
35351   ac_status=$?
35352   grep -v '^ *+' conftest.er1 >conftest.err
35353   rm -f conftest.er1
35354   cat conftest.err >&5
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); } && {
35357          test -z "$ac_c_werror_flag" ||
35358          test ! -s conftest.err
35359        } && test -s conftest$ac_exeext &&
35360        $as_test_x conftest$ac_exeext; then
35361   eval wx_cv_func_$wx_func=yes
35362 else
35363   echo "$as_me: failed program was:" >&5
35364 sed 's/^/| /' conftest.$ac_ext >&5
35365
35366         eval wx_cv_func_$wx_func=no
35367 fi
35368
35369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35370       conftest$ac_exeext conftest.$ac_ext
35371
35372 fi
35373 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35374                { echo "$as_me:$LINENO: result: $ac_res" >&5
35375 echo "${ECHO_T}$ac_res" >&6; }
35376
35377     if eval test \$wx_cv_func_$wx_func = yes
35378     then
35379       cat >>confdefs.h <<_ACEOF
35380 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35381 _ACEOF
35382
35383
35384     else
35385       :
35386
35387     fi
35388   done
35389
35390
35391                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35392 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35393     cat >conftest.$ac_ext <<_ACEOF
35394 /* confdefs.h.  */
35395 _ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h.  */
35399 #include <wchar.h>
35400 int
35401 main ()
35402 {
35403 &_vsnwprintf;
35404   ;
35405   return 0;
35406 }
35407 _ACEOF
35408 rm -f conftest.$ac_objext
35409 if { (ac_try="$ac_compile"
35410 case "(($ac_try" in
35411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35412   *) ac_try_echo=$ac_try;;
35413 esac
35414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35415   (eval "$ac_compile") 2>conftest.er1
35416   ac_status=$?
35417   grep -v '^ *+' conftest.er1 >conftest.err
35418   rm -f conftest.er1
35419   cat conftest.err >&5
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); } && {
35422          test -z "$ac_c_werror_flag" ||
35423          test ! -s conftest.err
35424        } && test -s conftest.$ac_objext; then
35425   { echo "$as_me:$LINENO: result: yes" >&5
35426 echo "${ECHO_T}yes" >&6; }
35427                     cat >>confdefs.h <<\_ACEOF
35428 #define HAVE__VSNWPRINTF 1
35429 _ACEOF
35430
35431 else
35432   echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35434
35435         { echo "$as_me:$LINENO: result: no" >&5
35436 echo "${ECHO_T}no" >&6; }
35437 fi
35438
35439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35440 fi
35441
35442 if test "$wxUSE_FILE" = "yes"; then
35443
35444   for wx_func in fsync
35445   do
35446     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35447 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35448 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35449   echo $ECHO_N "(cached) $ECHO_C" >&6
35450 else
35451
35452         cat >conftest.$ac_ext <<_ACEOF
35453
35454             /* confdefs.h.  */
35455 _ACEOF
35456 cat confdefs.h >>conftest.$ac_ext
35457 cat >>conftest.$ac_ext <<_ACEOF
35458 /* end confdefs.h.  */
35459
35460
35461                 $ac_includes_default
35462
35463 int
35464 main ()
35465 {
35466
35467                 #ifndef $wx_func
35468                   &$wx_func;
35469                 #endif
35470
35471
35472   ;
35473   return 0;
35474 }
35475
35476 _ACEOF
35477 rm -f conftest.$ac_objext conftest$ac_exeext
35478 if { (ac_try="$ac_link"
35479 case "(($ac_try" in
35480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35481   *) ac_try_echo=$ac_try;;
35482 esac
35483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35484   (eval "$ac_link") 2>conftest.er1
35485   ac_status=$?
35486   grep -v '^ *+' conftest.er1 >conftest.err
35487   rm -f conftest.er1
35488   cat conftest.err >&5
35489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490   (exit $ac_status); } && {
35491          test -z "$ac_c_werror_flag" ||
35492          test ! -s conftest.err
35493        } && test -s conftest$ac_exeext &&
35494        $as_test_x conftest$ac_exeext; then
35495   eval wx_cv_func_$wx_func=yes
35496 else
35497   echo "$as_me: failed program was:" >&5
35498 sed 's/^/| /' conftest.$ac_ext >&5
35499
35500         eval wx_cv_func_$wx_func=no
35501 fi
35502
35503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35504       conftest$ac_exeext conftest.$ac_ext
35505
35506 fi
35507 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35508                { echo "$as_me:$LINENO: result: $ac_res" >&5
35509 echo "${ECHO_T}$ac_res" >&6; }
35510
35511     if eval test \$wx_cv_func_$wx_func = yes
35512     then
35513       cat >>confdefs.h <<_ACEOF
35514 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35515 _ACEOF
35516
35517
35518     else
35519       :
35520
35521     fi
35522   done
35523
35524 fi
35525
35526 ac_ext=cpp
35527 ac_cpp='$CXXCPP $CPPFLAGS'
35528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35531
35532
35533   for wx_func in round
35534   do
35535     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35536 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35537 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35538   echo $ECHO_N "(cached) $ECHO_C" >&6
35539 else
35540
35541         cat >conftest.$ac_ext <<_ACEOF
35542
35543             /* confdefs.h.  */
35544 _ACEOF
35545 cat confdefs.h >>conftest.$ac_ext
35546 cat >>conftest.$ac_ext <<_ACEOF
35547 /* end confdefs.h.  */
35548
35549                 #include <math.h>
35550                 $ac_includes_default
35551
35552 int
35553 main ()
35554 {
35555
35556                 #ifndef $wx_func
35557                   &$wx_func;
35558                 #endif
35559
35560
35561   ;
35562   return 0;
35563 }
35564
35565 _ACEOF
35566 rm -f conftest.$ac_objext conftest$ac_exeext
35567 if { (ac_try="$ac_link"
35568 case "(($ac_try" in
35569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570   *) ac_try_echo=$ac_try;;
35571 esac
35572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35573   (eval "$ac_link") 2>conftest.er1
35574   ac_status=$?
35575   grep -v '^ *+' conftest.er1 >conftest.err
35576   rm -f conftest.er1
35577   cat conftest.err >&5
35578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579   (exit $ac_status); } && {
35580          test -z "$ac_cxx_werror_flag" ||
35581          test ! -s conftest.err
35582        } && test -s conftest$ac_exeext &&
35583        $as_test_x conftest$ac_exeext; then
35584   eval wx_cv_func_$wx_func=yes
35585 else
35586   echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35588
35589         eval wx_cv_func_$wx_func=no
35590 fi
35591
35592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35593       conftest$ac_exeext conftest.$ac_ext
35594
35595 fi
35596 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35597                { echo "$as_me:$LINENO: result: $ac_res" >&5
35598 echo "${ECHO_T}$ac_res" >&6; }
35599
35600     if eval test \$wx_cv_func_$wx_func = yes
35601     then
35602       cat >>confdefs.h <<_ACEOF
35603 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35604 _ACEOF
35605
35606
35607     else
35608       :
35609
35610     fi
35611   done
35612
35613 ac_ext=c
35614 ac_cpp='$CPP $CPPFLAGS'
35615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35618
35619
35620 if test "$TOOLKIT" != "MSW"; then
35621
35622 if test "$wxUSE_LIBICONV" != "no" ; then
35623
35624
35625
35626 # Check whether --with-libiconv-prefix was given.
35627 if test "${with_libiconv_prefix+set}" = set; then
35628   withval=$with_libiconv_prefix;
35629     for dir in `echo "$withval" | tr : ' '`; do
35630       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35631       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35632     done
35633
35634 fi
35635
35636
35637   { echo "$as_me:$LINENO: checking for iconv" >&5
35638 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
35639 if test "${am_cv_func_iconv+set}" = set; then
35640   echo $ECHO_N "(cached) $ECHO_C" >&6
35641 else
35642
35643     am_cv_func_iconv="no, consider installing GNU libiconv"
35644     am_cv_lib_iconv=no
35645     cat >conftest.$ac_ext <<_ACEOF
35646 /* confdefs.h.  */
35647 _ACEOF
35648 cat confdefs.h >>conftest.$ac_ext
35649 cat >>conftest.$ac_ext <<_ACEOF
35650 /* end confdefs.h.  */
35651 #include <stdlib.h>
35652 #include <iconv.h>
35653 int
35654 main ()
35655 {
35656 iconv_t cd = iconv_open("","");
35657        iconv(cd,NULL,NULL,NULL,NULL);
35658        iconv_close(cd);
35659   ;
35660   return 0;
35661 }
35662 _ACEOF
35663 rm -f conftest.$ac_objext conftest$ac_exeext
35664 if { (ac_try="$ac_link"
35665 case "(($ac_try" in
35666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35667   *) ac_try_echo=$ac_try;;
35668 esac
35669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35670   (eval "$ac_link") 2>conftest.er1
35671   ac_status=$?
35672   grep -v '^ *+' conftest.er1 >conftest.err
35673   rm -f conftest.er1
35674   cat conftest.err >&5
35675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676   (exit $ac_status); } && {
35677          test -z "$ac_c_werror_flag" ||
35678          test ! -s conftest.err
35679        } && test -s conftest$ac_exeext &&
35680        $as_test_x conftest$ac_exeext; then
35681   am_cv_func_iconv=yes
35682 else
35683   echo "$as_me: failed program was:" >&5
35684 sed 's/^/| /' conftest.$ac_ext >&5
35685
35686
35687 fi
35688
35689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35690       conftest$ac_exeext conftest.$ac_ext
35691     if test "$am_cv_func_iconv" != yes; then
35692       am_save_LIBS="$LIBS"
35693       LIBS="$LIBS -liconv"
35694       cat >conftest.$ac_ext <<_ACEOF
35695 /* confdefs.h.  */
35696 _ACEOF
35697 cat confdefs.h >>conftest.$ac_ext
35698 cat >>conftest.$ac_ext <<_ACEOF
35699 /* end confdefs.h.  */
35700 #include <stdlib.h>
35701 #include <iconv.h>
35702 int
35703 main ()
35704 {
35705 iconv_t cd = iconv_open("","");
35706          iconv(cd,NULL,NULL,NULL,NULL);
35707          iconv_close(cd);
35708   ;
35709   return 0;
35710 }
35711 _ACEOF
35712 rm -f conftest.$ac_objext conftest$ac_exeext
35713 if { (ac_try="$ac_link"
35714 case "(($ac_try" in
35715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35716   *) ac_try_echo=$ac_try;;
35717 esac
35718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35719   (eval "$ac_link") 2>conftest.er1
35720   ac_status=$?
35721   grep -v '^ *+' conftest.er1 >conftest.err
35722   rm -f conftest.er1
35723   cat conftest.err >&5
35724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725   (exit $ac_status); } && {
35726          test -z "$ac_c_werror_flag" ||
35727          test ! -s conftest.err
35728        } && test -s conftest$ac_exeext &&
35729        $as_test_x conftest$ac_exeext; then
35730   am_cv_lib_iconv=yes
35731         am_cv_func_iconv=yes
35732 else
35733   echo "$as_me: failed program was:" >&5
35734 sed 's/^/| /' conftest.$ac_ext >&5
35735
35736
35737 fi
35738
35739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35740       conftest$ac_exeext conftest.$ac_ext
35741       LIBS="$am_save_LIBS"
35742     fi
35743
35744 fi
35745 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35746 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
35747   if test "$am_cv_func_iconv" = yes; then
35748
35749 cat >>confdefs.h <<\_ACEOF
35750 #define HAVE_ICONV 1
35751 _ACEOF
35752
35753     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
35754 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
35755 if test "${wx_cv_func_iconv_const+set}" = set; then
35756   echo $ECHO_N "(cached) $ECHO_C" >&6
35757 else
35758   cat >conftest.$ac_ext <<_ACEOF
35759 /* confdefs.h.  */
35760 _ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h.  */
35764
35765 #include <stdlib.h>
35766 #include <iconv.h>
35767 extern
35768 #ifdef __cplusplus
35769 "C"
35770 #endif
35771 #if defined(__STDC__) || defined(__cplusplus)
35772 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35773 #else
35774 size_t iconv();
35775 #endif
35776
35777 int
35778 main ()
35779 {
35780
35781   ;
35782   return 0;
35783 }
35784 _ACEOF
35785 rm -f conftest.$ac_objext
35786 if { (ac_try="$ac_compile"
35787 case "(($ac_try" in
35788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35789   *) ac_try_echo=$ac_try;;
35790 esac
35791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35792   (eval "$ac_compile") 2>conftest.er1
35793   ac_status=$?
35794   grep -v '^ *+' conftest.er1 >conftest.err
35795   rm -f conftest.er1
35796   cat conftest.err >&5
35797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35798   (exit $ac_status); } && {
35799          test -z "$ac_c_werror_flag" ||
35800          test ! -s conftest.err
35801        } && test -s conftest.$ac_objext; then
35802   wx_cv_func_iconv_const="no"
35803 else
35804   echo "$as_me: failed program was:" >&5
35805 sed 's/^/| /' conftest.$ac_ext >&5
35806
35807         wx_cv_func_iconv_const="yes"
35808
35809 fi
35810
35811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35812
35813 fi
35814 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35815 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
35816
35817     iconv_const=
35818     if test "x$wx_cv_func_iconv_const" = "xyes"; then
35819         iconv_const="const"
35820     fi
35821
35822
35823 cat >>confdefs.h <<_ACEOF
35824 #define ICONV_CONST $iconv_const
35825 _ACEOF
35826
35827   fi
35828   LIBICONV=
35829   if test "$am_cv_lib_iconv" = yes; then
35830     LIBICONV="-liconv"
35831   fi
35832
35833
35834     LIBS="$LIBICONV $LIBS"
35835 fi
35836
35837 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35838
35839 for ac_func in sigaction
35840 do
35841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35845   echo $ECHO_N "(cached) $ECHO_C" >&6
35846 else
35847   cat >conftest.$ac_ext <<_ACEOF
35848 /* confdefs.h.  */
35849 _ACEOF
35850 cat confdefs.h >>conftest.$ac_ext
35851 cat >>conftest.$ac_ext <<_ACEOF
35852 /* end confdefs.h.  */
35853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35855 #define $ac_func innocuous_$ac_func
35856
35857 /* System header to define __stub macros and hopefully few prototypes,
35858     which can conflict with char $ac_func (); below.
35859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35860     <limits.h> exists even on freestanding compilers.  */
35861
35862 #ifdef __STDC__
35863 # include <limits.h>
35864 #else
35865 # include <assert.h>
35866 #endif
35867
35868 #undef $ac_func
35869
35870 /* Override any GCC internal prototype to avoid an error.
35871    Use char because int might match the return type of a GCC
35872    builtin and then its argument prototype would still apply.  */
35873 #ifdef __cplusplus
35874 extern "C"
35875 #endif
35876 char $ac_func ();
35877 /* The GNU C library defines this for functions which it implements
35878     to always fail with ENOSYS.  Some functions are actually named
35879     something starting with __ and the normal name is an alias.  */
35880 #if defined __stub_$ac_func || defined __stub___$ac_func
35881 choke me
35882 #endif
35883
35884 int
35885 main ()
35886 {
35887 return $ac_func ();
35888   ;
35889   return 0;
35890 }
35891 _ACEOF
35892 rm -f conftest.$ac_objext conftest$ac_exeext
35893 if { (ac_try="$ac_link"
35894 case "(($ac_try" in
35895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896   *) ac_try_echo=$ac_try;;
35897 esac
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899   (eval "$ac_link") 2>conftest.er1
35900   ac_status=$?
35901   grep -v '^ *+' conftest.er1 >conftest.err
35902   rm -f conftest.er1
35903   cat conftest.err >&5
35904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905   (exit $ac_status); } && {
35906          test -z "$ac_c_werror_flag" ||
35907          test ! -s conftest.err
35908        } && test -s conftest$ac_exeext &&
35909        $as_test_x conftest$ac_exeext; then
35910   eval "$as_ac_var=yes"
35911 else
35912   echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35914
35915         eval "$as_ac_var=no"
35916 fi
35917
35918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35919       conftest$ac_exeext conftest.$ac_ext
35920 fi
35921 ac_res=`eval echo '${'$as_ac_var'}'`
35922                { echo "$as_me:$LINENO: result: $ac_res" >&5
35923 echo "${ECHO_T}$ac_res" >&6; }
35924 if test `eval echo '${'$as_ac_var'}'` = yes; then
35925   cat >>confdefs.h <<_ACEOF
35926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35927 _ACEOF
35928
35929 fi
35930 done
35931
35932
35933     if test "$ac_cv_func_sigaction" = "no"; then
35934         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35935 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35936         wxUSE_ON_FATAL_EXCEPTION=no
35937     fi
35938
35939     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35940       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
35941 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
35942 if test "${wx_cv_type_sa_handler+set}" = set; then
35943   echo $ECHO_N "(cached) $ECHO_C" >&6
35944 else
35945
35946                 ac_ext=cpp
35947 ac_cpp='$CXXCPP $CPPFLAGS'
35948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35951
35952         cat >conftest.$ac_ext <<_ACEOF
35953 /* confdefs.h.  */
35954 _ACEOF
35955 cat confdefs.h >>conftest.$ac_ext
35956 cat >>conftest.$ac_ext <<_ACEOF
35957 /* end confdefs.h.  */
35958 #include <signal.h>
35959 int
35960 main ()
35961 {
35962
35963                         extern void testSigHandler(int);
35964
35965                         struct sigaction sa;
35966                         sa.sa_handler = testSigHandler;
35967
35968   ;
35969   return 0;
35970 }
35971 _ACEOF
35972 rm -f conftest.$ac_objext
35973 if { (ac_try="$ac_compile"
35974 case "(($ac_try" in
35975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35976   *) ac_try_echo=$ac_try;;
35977 esac
35978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35979   (eval "$ac_compile") 2>conftest.er1
35980   ac_status=$?
35981   grep -v '^ *+' conftest.er1 >conftest.err
35982   rm -f conftest.er1
35983   cat conftest.err >&5
35984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985   (exit $ac_status); } && {
35986          test -z "$ac_cxx_werror_flag" ||
35987          test ! -s conftest.err
35988        } && test -s conftest.$ac_objext; then
35989
35990                         wx_cv_type_sa_handler=int
35991
35992 else
35993   echo "$as_me: failed program was:" >&5
35994 sed 's/^/| /' conftest.$ac_ext >&5
35995
35996
35997                         wx_cv_type_sa_handler=void
35998
35999 fi
36000
36001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36002         ac_ext=c
36003 ac_cpp='$CPP $CPPFLAGS'
36004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36007
36008
36009 fi
36010 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36011 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36012
36013       cat >>confdefs.h <<_ACEOF
36014 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36015 _ACEOF
36016
36017     fi
36018 fi
36019
36020 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36021     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36022 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36023 if test "${wx_cv_func_backtrace+set}" = set; then
36024   echo $ECHO_N "(cached) $ECHO_C" >&6
36025 else
36026
36027             ac_ext=cpp
36028 ac_cpp='$CXXCPP $CPPFLAGS'
36029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36032
36033             cat >conftest.$ac_ext <<_ACEOF
36034 /* confdefs.h.  */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h.  */
36039 #include <execinfo.h>
36040 int
36041 main ()
36042 {
36043
36044                     void *trace[1];
36045                     char **messages;
36046
36047                     backtrace(trace, 1);
36048                     messages = backtrace_symbols(trace, 1);
36049
36050   ;
36051   return 0;
36052 }
36053 _ACEOF
36054 rm -f conftest.$ac_objext
36055 if { (ac_try="$ac_compile"
36056 case "(($ac_try" in
36057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36058   *) ac_try_echo=$ac_try;;
36059 esac
36060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36061   (eval "$ac_compile") 2>conftest.er1
36062   ac_status=$?
36063   grep -v '^ *+' conftest.er1 >conftest.err
36064   rm -f conftest.er1
36065   cat conftest.err >&5
36066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067   (exit $ac_status); } && {
36068          test -z "$ac_cxx_werror_flag" ||
36069          test ! -s conftest.err
36070        } && test -s conftest.$ac_objext; then
36071   wx_cv_func_backtrace=yes
36072 else
36073   echo "$as_me: failed program was:" >&5
36074 sed 's/^/| /' conftest.$ac_ext >&5
36075
36076         wx_cv_func_backtrace=no
36077
36078 fi
36079
36080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36081             ac_ext=c
36082 ac_cpp='$CPP $CPPFLAGS'
36083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36086
36087
36088
36089 fi
36090 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36091 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36092
36093
36094     if test "$wx_cv_func_backtrace" = "no"; then
36095         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36096 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36097         wxUSE_STACKWALKER=no
36098     else
36099         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36100 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36101 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36102   echo $ECHO_N "(cached) $ECHO_C" >&6
36103 else
36104
36105                 ac_ext=cpp
36106 ac_cpp='$CXXCPP $CPPFLAGS'
36107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36110
36111                 cat >conftest.$ac_ext <<_ACEOF
36112 /* confdefs.h.  */
36113 _ACEOF
36114 cat confdefs.h >>conftest.$ac_ext
36115 cat >>conftest.$ac_ext <<_ACEOF
36116 /* end confdefs.h.  */
36117 #include <cxxabi.h>
36118 int
36119 main ()
36120 {
36121
36122                         int rc;
36123                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36124
36125   ;
36126   return 0;
36127 }
36128 _ACEOF
36129 rm -f conftest.$ac_objext conftest$ac_exeext
36130 if { (ac_try="$ac_link"
36131 case "(($ac_try" in
36132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36133   *) ac_try_echo=$ac_try;;
36134 esac
36135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36136   (eval "$ac_link") 2>conftest.er1
36137   ac_status=$?
36138   grep -v '^ *+' conftest.er1 >conftest.err
36139   rm -f conftest.er1
36140   cat conftest.err >&5
36141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142   (exit $ac_status); } && {
36143          test -z "$ac_cxx_werror_flag" ||
36144          test ! -s conftest.err
36145        } && test -s conftest$ac_exeext &&
36146        $as_test_x conftest$ac_exeext; then
36147   wx_cv_func_cxa_demangle=yes
36148 else
36149   echo "$as_me: failed program was:" >&5
36150 sed 's/^/| /' conftest.$ac_ext >&5
36151
36152         wx_cv_func_cxa_demangle=no
36153
36154 fi
36155
36156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36157       conftest$ac_exeext conftest.$ac_ext
36158                 ac_ext=c
36159 ac_cpp='$CPP $CPPFLAGS'
36160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36163
36164
36165
36166 fi
36167 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36168 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36169
36170         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36171             cat >>confdefs.h <<\_ACEOF
36172 #define HAVE_CXA_DEMANGLE 1
36173 _ACEOF
36174
36175         fi
36176     fi
36177 fi
36178
36179 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36180     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36181 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36182     wxUSE_STACKWALKER=no
36183 fi
36184
36185
36186
36187
36188 for ac_func in mkstemp mktemp
36189 do
36190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36194   echo $ECHO_N "(cached) $ECHO_C" >&6
36195 else
36196   cat >conftest.$ac_ext <<_ACEOF
36197 /* confdefs.h.  */
36198 _ACEOF
36199 cat confdefs.h >>conftest.$ac_ext
36200 cat >>conftest.$ac_ext <<_ACEOF
36201 /* end confdefs.h.  */
36202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36204 #define $ac_func innocuous_$ac_func
36205
36206 /* System header to define __stub macros and hopefully few prototypes,
36207     which can conflict with char $ac_func (); below.
36208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36209     <limits.h> exists even on freestanding compilers.  */
36210
36211 #ifdef __STDC__
36212 # include <limits.h>
36213 #else
36214 # include <assert.h>
36215 #endif
36216
36217 #undef $ac_func
36218
36219 /* Override any GCC internal prototype to avoid an error.
36220    Use char because int might match the return type of a GCC
36221    builtin and then its argument prototype would still apply.  */
36222 #ifdef __cplusplus
36223 extern "C"
36224 #endif
36225 char $ac_func ();
36226 /* The GNU C library defines this for functions which it implements
36227     to always fail with ENOSYS.  Some functions are actually named
36228     something starting with __ and the normal name is an alias.  */
36229 #if defined __stub_$ac_func || defined __stub___$ac_func
36230 choke me
36231 #endif
36232
36233 int
36234 main ()
36235 {
36236 return $ac_func ();
36237   ;
36238   return 0;
36239 }
36240 _ACEOF
36241 rm -f conftest.$ac_objext conftest$ac_exeext
36242 if { (ac_try="$ac_link"
36243 case "(($ac_try" in
36244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36245   *) ac_try_echo=$ac_try;;
36246 esac
36247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36248   (eval "$ac_link") 2>conftest.er1
36249   ac_status=$?
36250   grep -v '^ *+' conftest.er1 >conftest.err
36251   rm -f conftest.er1
36252   cat conftest.err >&5
36253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254   (exit $ac_status); } && {
36255          test -z "$ac_c_werror_flag" ||
36256          test ! -s conftest.err
36257        } && test -s conftest$ac_exeext &&
36258        $as_test_x conftest$ac_exeext; then
36259   eval "$as_ac_var=yes"
36260 else
36261   echo "$as_me: failed program was:" >&5
36262 sed 's/^/| /' conftest.$ac_ext >&5
36263
36264         eval "$as_ac_var=no"
36265 fi
36266
36267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36268       conftest$ac_exeext conftest.$ac_ext
36269 fi
36270 ac_res=`eval echo '${'$as_ac_var'}'`
36271                { echo "$as_me:$LINENO: result: $ac_res" >&5
36272 echo "${ECHO_T}$ac_res" >&6; }
36273 if test `eval echo '${'$as_ac_var'}'` = yes; then
36274   cat >>confdefs.h <<_ACEOF
36275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36276 _ACEOF
36277  break
36278 fi
36279 done
36280
36281
36282 { echo "$as_me:$LINENO: checking for statfs" >&5
36283 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36284 if test "${wx_cv_func_statfs+set}" = set; then
36285   echo $ECHO_N "(cached) $ECHO_C" >&6
36286 else
36287   cat >conftest.$ac_ext <<_ACEOF
36288 /* confdefs.h.  */
36289 _ACEOF
36290 cat confdefs.h >>conftest.$ac_ext
36291 cat >>conftest.$ac_ext <<_ACEOF
36292 /* end confdefs.h.  */
36293
36294              #if defined(__BSD__)
36295              #include <sys/param.h>
36296              #include <sys/mount.h>
36297              #else
36298              #include <sys/vfs.h>
36299              #endif
36300
36301 int
36302 main ()
36303 {
36304
36305              long l;
36306              struct statfs fs;
36307              statfs("/", &fs);
36308              l = fs.f_bsize;
36309              l += fs.f_blocks;
36310              l += fs.f_bavail;
36311
36312   ;
36313   return 0;
36314 }
36315 _ACEOF
36316 rm -f conftest.$ac_objext
36317 if { (ac_try="$ac_compile"
36318 case "(($ac_try" in
36319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36320   *) ac_try_echo=$ac_try;;
36321 esac
36322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36323   (eval "$ac_compile") 2>conftest.er1
36324   ac_status=$?
36325   grep -v '^ *+' conftest.er1 >conftest.err
36326   rm -f conftest.er1
36327   cat conftest.err >&5
36328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329   (exit $ac_status); } && {
36330          test -z "$ac_c_werror_flag" ||
36331          test ! -s conftest.err
36332        } && test -s conftest.$ac_objext; then
36333   wx_cv_func_statfs=yes
36334 else
36335   echo "$as_me: failed program was:" >&5
36336 sed 's/^/| /' conftest.$ac_ext >&5
36337
36338         wx_cv_func_statfs=no
36339
36340 fi
36341
36342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36343
36344 fi
36345 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36346 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36347
36348 if test "$wx_cv_func_statfs" = "yes"; then
36349         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36350 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36351 if test "${wx_cv_func_statfs_decl+set}" = set; then
36352   echo $ECHO_N "(cached) $ECHO_C" >&6
36353 else
36354   ac_ext=cpp
36355 ac_cpp='$CXXCPP $CPPFLAGS'
36356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36359
36360         cat >conftest.$ac_ext <<_ACEOF
36361 /* confdefs.h.  */
36362 _ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h.  */
36366
36367                  #if defined(__BSD__)
36368                  #include <sys/param.h>
36369                  #include <sys/mount.h>
36370                  #else
36371                  #include <sys/vfs.h>
36372                  #endif
36373
36374 int
36375 main ()
36376 {
36377
36378                 struct statfs fs;
36379                 statfs("", &fs);
36380
36381   ;
36382   return 0;
36383 }
36384 _ACEOF
36385 rm -f conftest.$ac_objext
36386 if { (ac_try="$ac_compile"
36387 case "(($ac_try" in
36388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36389   *) ac_try_echo=$ac_try;;
36390 esac
36391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36392   (eval "$ac_compile") 2>conftest.er1
36393   ac_status=$?
36394   grep -v '^ *+' conftest.er1 >conftest.err
36395   rm -f conftest.er1
36396   cat conftest.err >&5
36397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398   (exit $ac_status); } && {
36399          test -z "$ac_cxx_werror_flag" ||
36400          test ! -s conftest.err
36401        } && test -s conftest.$ac_objext; then
36402   wx_cv_func_statfs_decl=yes
36403 else
36404   echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36406
36407         wx_cv_func_statfs_decl=no
36408
36409 fi
36410
36411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36412         ac_ext=c
36413 ac_cpp='$CPP $CPPFLAGS'
36414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36417
36418
36419 fi
36420 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36421 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36422
36423     if test "$wx_cv_func_statfs_decl" = "yes"; then
36424         cat >>confdefs.h <<\_ACEOF
36425 #define HAVE_STATFS_DECL 1
36426 _ACEOF
36427
36428     fi
36429
36430     wx_cv_type_statvfs_t="struct statfs"
36431     cat >>confdefs.h <<\_ACEOF
36432 #define HAVE_STATFS 1
36433 _ACEOF
36434
36435 else
36436     { echo "$as_me:$LINENO: checking for statvfs" >&5
36437 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36438 if test "${wx_cv_func_statvfs+set}" = set; then
36439   echo $ECHO_N "(cached) $ECHO_C" >&6
36440 else
36441   cat >conftest.$ac_ext <<_ACEOF
36442 /* confdefs.h.  */
36443 _ACEOF
36444 cat confdefs.h >>conftest.$ac_ext
36445 cat >>conftest.$ac_ext <<_ACEOF
36446 /* end confdefs.h.  */
36447
36448                 #include <stddef.h>
36449                 #include <sys/statvfs.h>
36450
36451 int
36452 main ()
36453 {
36454
36455                 statvfs("/", NULL);
36456
36457   ;
36458   return 0;
36459 }
36460 _ACEOF
36461 rm -f conftest.$ac_objext
36462 if { (ac_try="$ac_compile"
36463 case "(($ac_try" in
36464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36465   *) ac_try_echo=$ac_try;;
36466 esac
36467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36468   (eval "$ac_compile") 2>conftest.er1
36469   ac_status=$?
36470   grep -v '^ *+' conftest.er1 >conftest.err
36471   rm -f conftest.er1
36472   cat conftest.err >&5
36473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474   (exit $ac_status); } && {
36475          test -z "$ac_c_werror_flag" ||
36476          test ! -s conftest.err
36477        } && test -s conftest.$ac_objext; then
36478   wx_cv_func_statvfs=yes
36479 else
36480   echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36482
36483         wx_cv_func_statvfs=no
36484
36485 fi
36486
36487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36488
36489 fi
36490 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36491 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36492
36493     if test "$wx_cv_func_statvfs" = "yes"; then
36494                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36495 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36496 if test "${wx_cv_type_statvfs_t+set}" = set; then
36497   echo $ECHO_N "(cached) $ECHO_C" >&6
36498 else
36499   ac_ext=cpp
36500 ac_cpp='$CXXCPP $CPPFLAGS'
36501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36504
36505             cat >conftest.$ac_ext <<_ACEOF
36506 /* confdefs.h.  */
36507 _ACEOF
36508 cat confdefs.h >>conftest.$ac_ext
36509 cat >>conftest.$ac_ext <<_ACEOF
36510 /* end confdefs.h.  */
36511
36512                     #include <sys/statvfs.h>
36513
36514 int
36515 main ()
36516 {
36517
36518                     long l;
36519                     statvfs_t fs;
36520                     statvfs("/", &fs);
36521                     l = fs.f_bsize;
36522                     l += fs.f_blocks;
36523                     l += fs.f_bavail;
36524
36525   ;
36526   return 0;
36527 }
36528 _ACEOF
36529 rm -f conftest.$ac_objext
36530 if { (ac_try="$ac_compile"
36531 case "(($ac_try" in
36532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36533   *) ac_try_echo=$ac_try;;
36534 esac
36535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36536   (eval "$ac_compile") 2>conftest.er1
36537   ac_status=$?
36538   grep -v '^ *+' conftest.er1 >conftest.err
36539   rm -f conftest.er1
36540   cat conftest.err >&5
36541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542   (exit $ac_status); } && {
36543          test -z "$ac_cxx_werror_flag" ||
36544          test ! -s conftest.err
36545        } && test -s conftest.$ac_objext; then
36546   wx_cv_type_statvfs_t=statvfs_t
36547 else
36548   echo "$as_me: failed program was:" >&5
36549 sed 's/^/| /' conftest.$ac_ext >&5
36550
36551
36552                     cat >conftest.$ac_ext <<_ACEOF
36553 /* confdefs.h.  */
36554 _ACEOF
36555 cat confdefs.h >>conftest.$ac_ext
36556 cat >>conftest.$ac_ext <<_ACEOF
36557 /* end confdefs.h.  */
36558
36559                             #include <sys/statvfs.h>
36560
36561 int
36562 main ()
36563 {
36564
36565                             long l;
36566                             struct statvfs fs;
36567                             statvfs("/", &fs);
36568                             l = fs.f_bsize;
36569                             l += fs.f_blocks;
36570                             l += fs.f_bavail;
36571
36572   ;
36573   return 0;
36574 }
36575 _ACEOF
36576 rm -f conftest.$ac_objext
36577 if { (ac_try="$ac_compile"
36578 case "(($ac_try" in
36579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36580   *) ac_try_echo=$ac_try;;
36581 esac
36582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36583   (eval "$ac_compile") 2>conftest.er1
36584   ac_status=$?
36585   grep -v '^ *+' conftest.er1 >conftest.err
36586   rm -f conftest.er1
36587   cat conftest.err >&5
36588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589   (exit $ac_status); } && {
36590          test -z "$ac_cxx_werror_flag" ||
36591          test ! -s conftest.err
36592        } && test -s conftest.$ac_objext; then
36593   wx_cv_type_statvfs_t="struct statvfs"
36594 else
36595   echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36597
36598         wx_cv_type_statvfs_t="unknown"
36599
36600 fi
36601
36602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36603
36604
36605 fi
36606
36607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36608             ac_ext=c
36609 ac_cpp='$CPP $CPPFLAGS'
36610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36613
36614
36615 fi
36616 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36617 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
36618
36619         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36620             cat >>confdefs.h <<\_ACEOF
36621 #define HAVE_STATVFS 1
36622 _ACEOF
36623
36624         fi
36625     else
36626                 wx_cv_type_statvfs_t="unknown"
36627     fi
36628 fi
36629
36630 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36631     cat >>confdefs.h <<_ACEOF
36632 #define WX_STATFS_T $wx_cv_type_statvfs_t
36633 _ACEOF
36634
36635 else
36636     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36637 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36638 fi
36639
36640 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36641
36642
36643 for ac_func in fcntl flock
36644 do
36645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36649   echo $ECHO_N "(cached) $ECHO_C" >&6
36650 else
36651   cat >conftest.$ac_ext <<_ACEOF
36652 /* confdefs.h.  */
36653 _ACEOF
36654 cat confdefs.h >>conftest.$ac_ext
36655 cat >>conftest.$ac_ext <<_ACEOF
36656 /* end confdefs.h.  */
36657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36659 #define $ac_func innocuous_$ac_func
36660
36661 /* System header to define __stub macros and hopefully few prototypes,
36662     which can conflict with char $ac_func (); below.
36663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36664     <limits.h> exists even on freestanding compilers.  */
36665
36666 #ifdef __STDC__
36667 # include <limits.h>
36668 #else
36669 # include <assert.h>
36670 #endif
36671
36672 #undef $ac_func
36673
36674 /* Override any GCC internal prototype to avoid an error.
36675    Use char because int might match the return type of a GCC
36676    builtin and then its argument prototype would still apply.  */
36677 #ifdef __cplusplus
36678 extern "C"
36679 #endif
36680 char $ac_func ();
36681 /* The GNU C library defines this for functions which it implements
36682     to always fail with ENOSYS.  Some functions are actually named
36683     something starting with __ and the normal name is an alias.  */
36684 #if defined __stub_$ac_func || defined __stub___$ac_func
36685 choke me
36686 #endif
36687
36688 int
36689 main ()
36690 {
36691 return $ac_func ();
36692   ;
36693   return 0;
36694 }
36695 _ACEOF
36696 rm -f conftest.$ac_objext conftest$ac_exeext
36697 if { (ac_try="$ac_link"
36698 case "(($ac_try" in
36699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36700   *) ac_try_echo=$ac_try;;
36701 esac
36702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36703   (eval "$ac_link") 2>conftest.er1
36704   ac_status=$?
36705   grep -v '^ *+' conftest.er1 >conftest.err
36706   rm -f conftest.er1
36707   cat conftest.err >&5
36708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709   (exit $ac_status); } && {
36710          test -z "$ac_c_werror_flag" ||
36711          test ! -s conftest.err
36712        } && test -s conftest$ac_exeext &&
36713        $as_test_x conftest$ac_exeext; then
36714   eval "$as_ac_var=yes"
36715 else
36716   echo "$as_me: failed program was:" >&5
36717 sed 's/^/| /' conftest.$ac_ext >&5
36718
36719         eval "$as_ac_var=no"
36720 fi
36721
36722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36723       conftest$ac_exeext conftest.$ac_ext
36724 fi
36725 ac_res=`eval echo '${'$as_ac_var'}'`
36726                { echo "$as_me:$LINENO: result: $ac_res" >&5
36727 echo "${ECHO_T}$ac_res" >&6; }
36728 if test `eval echo '${'$as_ac_var'}'` = yes; then
36729   cat >>confdefs.h <<_ACEOF
36730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36731 _ACEOF
36732  break
36733 fi
36734 done
36735
36736
36737     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36738         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36739 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36740         wxUSE_SNGLINST_CHECKER=no
36741     fi
36742 fi
36743
36744
36745
36746 for ac_func in setenv putenv
36747 do
36748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36752   echo $ECHO_N "(cached) $ECHO_C" >&6
36753 else
36754   cat >conftest.$ac_ext <<_ACEOF
36755 /* confdefs.h.  */
36756 _ACEOF
36757 cat confdefs.h >>conftest.$ac_ext
36758 cat >>conftest.$ac_ext <<_ACEOF
36759 /* end confdefs.h.  */
36760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36762 #define $ac_func innocuous_$ac_func
36763
36764 /* System header to define __stub macros and hopefully few prototypes,
36765     which can conflict with char $ac_func (); below.
36766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36767     <limits.h> exists even on freestanding compilers.  */
36768
36769 #ifdef __STDC__
36770 # include <limits.h>
36771 #else
36772 # include <assert.h>
36773 #endif
36774
36775 #undef $ac_func
36776
36777 /* Override any GCC internal prototype to avoid an error.
36778    Use char because int might match the return type of a GCC
36779    builtin and then its argument prototype would still apply.  */
36780 #ifdef __cplusplus
36781 extern "C"
36782 #endif
36783 char $ac_func ();
36784 /* The GNU C library defines this for functions which it implements
36785     to always fail with ENOSYS.  Some functions are actually named
36786     something starting with __ and the normal name is an alias.  */
36787 #if defined __stub_$ac_func || defined __stub___$ac_func
36788 choke me
36789 #endif
36790
36791 int
36792 main ()
36793 {
36794 return $ac_func ();
36795   ;
36796   return 0;
36797 }
36798 _ACEOF
36799 rm -f conftest.$ac_objext conftest$ac_exeext
36800 if { (ac_try="$ac_link"
36801 case "(($ac_try" in
36802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36803   *) ac_try_echo=$ac_try;;
36804 esac
36805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36806   (eval "$ac_link") 2>conftest.er1
36807   ac_status=$?
36808   grep -v '^ *+' conftest.er1 >conftest.err
36809   rm -f conftest.er1
36810   cat conftest.err >&5
36811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812   (exit $ac_status); } && {
36813          test -z "$ac_c_werror_flag" ||
36814          test ! -s conftest.err
36815        } && test -s conftest$ac_exeext &&
36816        $as_test_x conftest$ac_exeext; then
36817   eval "$as_ac_var=yes"
36818 else
36819   echo "$as_me: failed program was:" >&5
36820 sed 's/^/| /' conftest.$ac_ext >&5
36821
36822         eval "$as_ac_var=no"
36823 fi
36824
36825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36826       conftest$ac_exeext conftest.$ac_ext
36827 fi
36828 ac_res=`eval echo '${'$as_ac_var'}'`
36829                { echo "$as_me:$LINENO: result: $ac_res" >&5
36830 echo "${ECHO_T}$ac_res" >&6; }
36831 if test `eval echo '${'$as_ac_var'}'` = yes; then
36832   cat >>confdefs.h <<_ACEOF
36833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36834 _ACEOF
36835  break
36836 fi
36837 done
36838
36839 if test "$ac_cv_func_setenv" = "yes"; then
36840
36841 for ac_func in unsetenv
36842 do
36843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36847   echo $ECHO_N "(cached) $ECHO_C" >&6
36848 else
36849   cat >conftest.$ac_ext <<_ACEOF
36850 /* confdefs.h.  */
36851 _ACEOF
36852 cat confdefs.h >>conftest.$ac_ext
36853 cat >>conftest.$ac_ext <<_ACEOF
36854 /* end confdefs.h.  */
36855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36857 #define $ac_func innocuous_$ac_func
36858
36859 /* System header to define __stub macros and hopefully few prototypes,
36860     which can conflict with char $ac_func (); below.
36861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36862     <limits.h> exists even on freestanding compilers.  */
36863
36864 #ifdef __STDC__
36865 # include <limits.h>
36866 #else
36867 # include <assert.h>
36868 #endif
36869
36870 #undef $ac_func
36871
36872 /* Override any GCC internal prototype to avoid an error.
36873    Use char because int might match the return type of a GCC
36874    builtin and then its argument prototype would still apply.  */
36875 #ifdef __cplusplus
36876 extern "C"
36877 #endif
36878 char $ac_func ();
36879 /* The GNU C library defines this for functions which it implements
36880     to always fail with ENOSYS.  Some functions are actually named
36881     something starting with __ and the normal name is an alias.  */
36882 #if defined __stub_$ac_func || defined __stub___$ac_func
36883 choke me
36884 #endif
36885
36886 int
36887 main ()
36888 {
36889 return $ac_func ();
36890   ;
36891   return 0;
36892 }
36893 _ACEOF
36894 rm -f conftest.$ac_objext conftest$ac_exeext
36895 if { (ac_try="$ac_link"
36896 case "(($ac_try" in
36897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36898   *) ac_try_echo=$ac_try;;
36899 esac
36900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36901   (eval "$ac_link") 2>conftest.er1
36902   ac_status=$?
36903   grep -v '^ *+' conftest.er1 >conftest.err
36904   rm -f conftest.er1
36905   cat conftest.err >&5
36906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907   (exit $ac_status); } && {
36908          test -z "$ac_c_werror_flag" ||
36909          test ! -s conftest.err
36910        } && test -s conftest$ac_exeext &&
36911        $as_test_x conftest$ac_exeext; then
36912   eval "$as_ac_var=yes"
36913 else
36914   echo "$as_me: failed program was:" >&5
36915 sed 's/^/| /' conftest.$ac_ext >&5
36916
36917         eval "$as_ac_var=no"
36918 fi
36919
36920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36921       conftest$ac_exeext conftest.$ac_ext
36922 fi
36923 ac_res=`eval echo '${'$as_ac_var'}'`
36924                { echo "$as_me:$LINENO: result: $ac_res" >&5
36925 echo "${ECHO_T}$ac_res" >&6; }
36926 if test `eval echo '${'$as_ac_var'}'` = yes; then
36927   cat >>confdefs.h <<_ACEOF
36928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36929 _ACEOF
36930
36931 fi
36932 done
36933
36934 fi
36935
36936 HAVE_SOME_SLEEP_FUNC=0
36937 if test "$USE_BEOS" = 1; then
36938             cat >>confdefs.h <<\_ACEOF
36939 #define HAVE_SLEEP 1
36940 _ACEOF
36941
36942     HAVE_SOME_SLEEP_FUNC=1
36943 fi
36944
36945 if test "$USE_DARWIN" = 1; then
36946             cat >>confdefs.h <<\_ACEOF
36947 #define HAVE_USLEEP 1
36948 _ACEOF
36949
36950     HAVE_SOME_SLEEP_FUNC=1
36951 fi
36952
36953 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36954         POSIX4_LINK=
36955
36956 for ac_func in nanosleep
36957 do
36958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36962   echo $ECHO_N "(cached) $ECHO_C" >&6
36963 else
36964   cat >conftest.$ac_ext <<_ACEOF
36965 /* confdefs.h.  */
36966 _ACEOF
36967 cat confdefs.h >>conftest.$ac_ext
36968 cat >>conftest.$ac_ext <<_ACEOF
36969 /* end confdefs.h.  */
36970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36972 #define $ac_func innocuous_$ac_func
36973
36974 /* System header to define __stub macros and hopefully few prototypes,
36975     which can conflict with char $ac_func (); below.
36976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36977     <limits.h> exists even on freestanding compilers.  */
36978
36979 #ifdef __STDC__
36980 # include <limits.h>
36981 #else
36982 # include <assert.h>
36983 #endif
36984
36985 #undef $ac_func
36986
36987 /* Override any GCC internal prototype to avoid an error.
36988    Use char because int might match the return type of a GCC
36989    builtin and then its argument prototype would still apply.  */
36990 #ifdef __cplusplus
36991 extern "C"
36992 #endif
36993 char $ac_func ();
36994 /* The GNU C library defines this for functions which it implements
36995     to always fail with ENOSYS.  Some functions are actually named
36996     something starting with __ and the normal name is an alias.  */
36997 #if defined __stub_$ac_func || defined __stub___$ac_func
36998 choke me
36999 #endif
37000
37001 int
37002 main ()
37003 {
37004 return $ac_func ();
37005   ;
37006   return 0;
37007 }
37008 _ACEOF
37009 rm -f conftest.$ac_objext conftest$ac_exeext
37010 if { (ac_try="$ac_link"
37011 case "(($ac_try" in
37012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37013   *) ac_try_echo=$ac_try;;
37014 esac
37015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37016   (eval "$ac_link") 2>conftest.er1
37017   ac_status=$?
37018   grep -v '^ *+' conftest.er1 >conftest.err
37019   rm -f conftest.er1
37020   cat conftest.err >&5
37021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022   (exit $ac_status); } && {
37023          test -z "$ac_c_werror_flag" ||
37024          test ! -s conftest.err
37025        } && test -s conftest$ac_exeext &&
37026        $as_test_x conftest$ac_exeext; then
37027   eval "$as_ac_var=yes"
37028 else
37029   echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37031
37032         eval "$as_ac_var=no"
37033 fi
37034
37035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37036       conftest$ac_exeext conftest.$ac_ext
37037 fi
37038 ac_res=`eval echo '${'$as_ac_var'}'`
37039                { echo "$as_me:$LINENO: result: $ac_res" >&5
37040 echo "${ECHO_T}$ac_res" >&6; }
37041 if test `eval echo '${'$as_ac_var'}'` = yes; then
37042   cat >>confdefs.h <<_ACEOF
37043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37044 _ACEOF
37045  cat >>confdefs.h <<\_ACEOF
37046 #define HAVE_NANOSLEEP 1
37047 _ACEOF
37048
37049 else
37050
37051             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37052 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37053 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37054   echo $ECHO_N "(cached) $ECHO_C" >&6
37055 else
37056   ac_check_lib_save_LIBS=$LIBS
37057 LIBS="-lposix4  $LIBS"
37058 cat >conftest.$ac_ext <<_ACEOF
37059 /* confdefs.h.  */
37060 _ACEOF
37061 cat confdefs.h >>conftest.$ac_ext
37062 cat >>conftest.$ac_ext <<_ACEOF
37063 /* end confdefs.h.  */
37064
37065 /* Override any GCC internal prototype to avoid an error.
37066    Use char because int might match the return type of a GCC
37067    builtin and then its argument prototype would still apply.  */
37068 #ifdef __cplusplus
37069 extern "C"
37070 #endif
37071 char nanosleep ();
37072 int
37073 main ()
37074 {
37075 return nanosleep ();
37076   ;
37077   return 0;
37078 }
37079 _ACEOF
37080 rm -f conftest.$ac_objext conftest$ac_exeext
37081 if { (ac_try="$ac_link"
37082 case "(($ac_try" in
37083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37084   *) ac_try_echo=$ac_try;;
37085 esac
37086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37087   (eval "$ac_link") 2>conftest.er1
37088   ac_status=$?
37089   grep -v '^ *+' conftest.er1 >conftest.err
37090   rm -f conftest.er1
37091   cat conftest.err >&5
37092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093   (exit $ac_status); } && {
37094          test -z "$ac_c_werror_flag" ||
37095          test ! -s conftest.err
37096        } && test -s conftest$ac_exeext &&
37097        $as_test_x conftest$ac_exeext; then
37098   ac_cv_lib_posix4_nanosleep=yes
37099 else
37100   echo "$as_me: failed program was:" >&5
37101 sed 's/^/| /' conftest.$ac_ext >&5
37102
37103         ac_cv_lib_posix4_nanosleep=no
37104 fi
37105
37106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37107       conftest$ac_exeext conftest.$ac_ext
37108 LIBS=$ac_check_lib_save_LIBS
37109 fi
37110 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37111 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37112 if test $ac_cv_lib_posix4_nanosleep = yes; then
37113
37114                     cat >>confdefs.h <<\_ACEOF
37115 #define HAVE_NANOSLEEP 1
37116 _ACEOF
37117
37118                     POSIX4_LINK=" -lposix4"
37119
37120 else
37121
37122
37123   for wx_func in usleep
37124   do
37125     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37126 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37127 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37128   echo $ECHO_N "(cached) $ECHO_C" >&6
37129 else
37130
37131         cat >conftest.$ac_ext <<_ACEOF
37132
37133             /* confdefs.h.  */
37134 _ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h.  */
37138
37139
37140                 $ac_includes_default
37141
37142 int
37143 main ()
37144 {
37145
37146                 #ifndef $wx_func
37147                   &$wx_func;
37148                 #endif
37149
37150
37151   ;
37152   return 0;
37153 }
37154
37155 _ACEOF
37156 rm -f conftest.$ac_objext conftest$ac_exeext
37157 if { (ac_try="$ac_link"
37158 case "(($ac_try" in
37159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37160   *) ac_try_echo=$ac_try;;
37161 esac
37162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37163   (eval "$ac_link") 2>conftest.er1
37164   ac_status=$?
37165   grep -v '^ *+' conftest.er1 >conftest.err
37166   rm -f conftest.er1
37167   cat conftest.err >&5
37168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169   (exit $ac_status); } && {
37170          test -z "$ac_c_werror_flag" ||
37171          test ! -s conftest.err
37172        } && test -s conftest$ac_exeext &&
37173        $as_test_x conftest$ac_exeext; then
37174   eval wx_cv_func_$wx_func=yes
37175 else
37176   echo "$as_me: failed program was:" >&5
37177 sed 's/^/| /' conftest.$ac_ext >&5
37178
37179         eval wx_cv_func_$wx_func=no
37180 fi
37181
37182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37183       conftest$ac_exeext conftest.$ac_ext
37184
37185 fi
37186 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37187                { echo "$as_me:$LINENO: result: $ac_res" >&5
37188 echo "${ECHO_T}$ac_res" >&6; }
37189
37190     if eval test \$wx_cv_func_$wx_func = yes
37191     then
37192       cat >>confdefs.h <<_ACEOF
37193 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37194 _ACEOF
37195
37196
37197     else
37198       :
37199       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37200 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37201
37202     fi
37203   done
37204
37205
37206
37207 fi
37208
37209
37210
37211 fi
37212 done
37213
37214 fi
37215
37216
37217   for wx_func in uname
37218   do
37219     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37220 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37221 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37222   echo $ECHO_N "(cached) $ECHO_C" >&6
37223 else
37224
37225         cat >conftest.$ac_ext <<_ACEOF
37226
37227             /* confdefs.h.  */
37228 _ACEOF
37229 cat confdefs.h >>conftest.$ac_ext
37230 cat >>conftest.$ac_ext <<_ACEOF
37231 /* end confdefs.h.  */
37232
37233                 #include <sys/utsname.h>
37234                 $ac_includes_default
37235
37236 int
37237 main ()
37238 {
37239
37240                 #ifndef $wx_func
37241                   &$wx_func;
37242                 #endif
37243
37244
37245   ;
37246   return 0;
37247 }
37248
37249 _ACEOF
37250 rm -f conftest.$ac_objext conftest$ac_exeext
37251 if { (ac_try="$ac_link"
37252 case "(($ac_try" in
37253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37254   *) ac_try_echo=$ac_try;;
37255 esac
37256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37257   (eval "$ac_link") 2>conftest.er1
37258   ac_status=$?
37259   grep -v '^ *+' conftest.er1 >conftest.err
37260   rm -f conftest.er1
37261   cat conftest.err >&5
37262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263   (exit $ac_status); } && {
37264          test -z "$ac_c_werror_flag" ||
37265          test ! -s conftest.err
37266        } && test -s conftest$ac_exeext &&
37267        $as_test_x conftest$ac_exeext; then
37268   eval wx_cv_func_$wx_func=yes
37269 else
37270   echo "$as_me: failed program was:" >&5
37271 sed 's/^/| /' conftest.$ac_ext >&5
37272
37273         eval wx_cv_func_$wx_func=no
37274 fi
37275
37276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37277       conftest$ac_exeext conftest.$ac_ext
37278
37279 fi
37280 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37281                { echo "$as_me:$LINENO: result: $ac_res" >&5
37282 echo "${ECHO_T}$ac_res" >&6; }
37283
37284     if eval test \$wx_cv_func_$wx_func = yes
37285     then
37286       cat >>confdefs.h <<_ACEOF
37287 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37288 _ACEOF
37289
37290
37291     else
37292       :
37293
37294     fi
37295   done
37296
37297 if test "$wx_cv_func_uname" != yes; then
37298
37299   for wx_func in gethostname
37300   do
37301     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37302 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37303 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37304   echo $ECHO_N "(cached) $ECHO_C" >&6
37305 else
37306
37307         cat >conftest.$ac_ext <<_ACEOF
37308
37309             /* confdefs.h.  */
37310 _ACEOF
37311 cat confdefs.h >>conftest.$ac_ext
37312 cat >>conftest.$ac_ext <<_ACEOF
37313 /* end confdefs.h.  */
37314
37315
37316                 $ac_includes_default
37317
37318 int
37319 main ()
37320 {
37321
37322                 #ifndef $wx_func
37323                   &$wx_func;
37324                 #endif
37325
37326
37327   ;
37328   return 0;
37329 }
37330
37331 _ACEOF
37332 rm -f conftest.$ac_objext conftest$ac_exeext
37333 if { (ac_try="$ac_link"
37334 case "(($ac_try" in
37335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37336   *) ac_try_echo=$ac_try;;
37337 esac
37338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37339   (eval "$ac_link") 2>conftest.er1
37340   ac_status=$?
37341   grep -v '^ *+' conftest.er1 >conftest.err
37342   rm -f conftest.er1
37343   cat conftest.err >&5
37344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345   (exit $ac_status); } && {
37346          test -z "$ac_c_werror_flag" ||
37347          test ! -s conftest.err
37348        } && test -s conftest$ac_exeext &&
37349        $as_test_x conftest$ac_exeext; then
37350   eval wx_cv_func_$wx_func=yes
37351 else
37352   echo "$as_me: failed program was:" >&5
37353 sed 's/^/| /' conftest.$ac_ext >&5
37354
37355         eval wx_cv_func_$wx_func=no
37356 fi
37357
37358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37359       conftest$ac_exeext conftest.$ac_ext
37360
37361 fi
37362 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37363                { echo "$as_me:$LINENO: result: $ac_res" >&5
37364 echo "${ECHO_T}$ac_res" >&6; }
37365
37366     if eval test \$wx_cv_func_$wx_func = yes
37367     then
37368       cat >>confdefs.h <<_ACEOF
37369 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37370 _ACEOF
37371
37372
37373     else
37374       :
37375
37376     fi
37377   done
37378
37379 fi
37380
37381
37382   for wx_func in strtok_r
37383   do
37384     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37385 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37386 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37387   echo $ECHO_N "(cached) $ECHO_C" >&6
37388 else
37389
37390         cat >conftest.$ac_ext <<_ACEOF
37391
37392             /* confdefs.h.  */
37393 _ACEOF
37394 cat confdefs.h >>conftest.$ac_ext
37395 cat >>conftest.$ac_ext <<_ACEOF
37396 /* end confdefs.h.  */
37397
37398                 #define _REENTRANT
37399                 $ac_includes_default
37400
37401 int
37402 main ()
37403 {
37404
37405                 #ifndef $wx_func
37406                   &$wx_func;
37407                 #endif
37408
37409
37410   ;
37411   return 0;
37412 }
37413
37414 _ACEOF
37415 rm -f conftest.$ac_objext conftest$ac_exeext
37416 if { (ac_try="$ac_link"
37417 case "(($ac_try" in
37418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37419   *) ac_try_echo=$ac_try;;
37420 esac
37421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37422   (eval "$ac_link") 2>conftest.er1
37423   ac_status=$?
37424   grep -v '^ *+' conftest.er1 >conftest.err
37425   rm -f conftest.er1
37426   cat conftest.err >&5
37427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37428   (exit $ac_status); } && {
37429          test -z "$ac_c_werror_flag" ||
37430          test ! -s conftest.err
37431        } && test -s conftest$ac_exeext &&
37432        $as_test_x conftest$ac_exeext; then
37433   eval wx_cv_func_$wx_func=yes
37434 else
37435   echo "$as_me: failed program was:" >&5
37436 sed 's/^/| /' conftest.$ac_ext >&5
37437
37438         eval wx_cv_func_$wx_func=no
37439 fi
37440
37441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37442       conftest$ac_exeext conftest.$ac_ext
37443
37444 fi
37445 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37446                { echo "$as_me:$LINENO: result: $ac_res" >&5
37447 echo "${ECHO_T}$ac_res" >&6; }
37448
37449     if eval test \$wx_cv_func_$wx_func = yes
37450     then
37451       cat >>confdefs.h <<_ACEOF
37452 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37453 _ACEOF
37454
37455
37456     else
37457       :
37458
37459     fi
37460   done
37461
37462
37463 INET_LINK=
37464
37465 for ac_func in inet_addr
37466 do
37467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37471   echo $ECHO_N "(cached) $ECHO_C" >&6
37472 else
37473   cat >conftest.$ac_ext <<_ACEOF
37474 /* confdefs.h.  */
37475 _ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h.  */
37479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37481 #define $ac_func innocuous_$ac_func
37482
37483 /* System header to define __stub macros and hopefully few prototypes,
37484     which can conflict with char $ac_func (); below.
37485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37486     <limits.h> exists even on freestanding compilers.  */
37487
37488 #ifdef __STDC__
37489 # include <limits.h>
37490 #else
37491 # include <assert.h>
37492 #endif
37493
37494 #undef $ac_func
37495
37496 /* Override any GCC internal prototype to avoid an error.
37497    Use char because int might match the return type of a GCC
37498    builtin and then its argument prototype would still apply.  */
37499 #ifdef __cplusplus
37500 extern "C"
37501 #endif
37502 char $ac_func ();
37503 /* The GNU C library defines this for functions which it implements
37504     to always fail with ENOSYS.  Some functions are actually named
37505     something starting with __ and the normal name is an alias.  */
37506 #if defined __stub_$ac_func || defined __stub___$ac_func
37507 choke me
37508 #endif
37509
37510 int
37511 main ()
37512 {
37513 return $ac_func ();
37514   ;
37515   return 0;
37516 }
37517 _ACEOF
37518 rm -f conftest.$ac_objext conftest$ac_exeext
37519 if { (ac_try="$ac_link"
37520 case "(($ac_try" in
37521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37522   *) ac_try_echo=$ac_try;;
37523 esac
37524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37525   (eval "$ac_link") 2>conftest.er1
37526   ac_status=$?
37527   grep -v '^ *+' conftest.er1 >conftest.err
37528   rm -f conftest.er1
37529   cat conftest.err >&5
37530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531   (exit $ac_status); } && {
37532          test -z "$ac_c_werror_flag" ||
37533          test ! -s conftest.err
37534        } && test -s conftest$ac_exeext &&
37535        $as_test_x conftest$ac_exeext; then
37536   eval "$as_ac_var=yes"
37537 else
37538   echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37540
37541         eval "$as_ac_var=no"
37542 fi
37543
37544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37545       conftest$ac_exeext conftest.$ac_ext
37546 fi
37547 ac_res=`eval echo '${'$as_ac_var'}'`
37548                { echo "$as_me:$LINENO: result: $ac_res" >&5
37549 echo "${ECHO_T}$ac_res" >&6; }
37550 if test `eval echo '${'$as_ac_var'}'` = yes; then
37551   cat >>confdefs.h <<_ACEOF
37552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37553 _ACEOF
37554  cat >>confdefs.h <<\_ACEOF
37555 #define HAVE_INET_ADDR 1
37556 _ACEOF
37557
37558 else
37559
37560         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37561 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
37562 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37563   echo $ECHO_N "(cached) $ECHO_C" >&6
37564 else
37565   ac_check_lib_save_LIBS=$LIBS
37566 LIBS="-lnsl  $LIBS"
37567 cat >conftest.$ac_ext <<_ACEOF
37568 /* confdefs.h.  */
37569 _ACEOF
37570 cat confdefs.h >>conftest.$ac_ext
37571 cat >>conftest.$ac_ext <<_ACEOF
37572 /* end confdefs.h.  */
37573
37574 /* Override any GCC internal prototype to avoid an error.
37575    Use char because int might match the return type of a GCC
37576    builtin and then its argument prototype would still apply.  */
37577 #ifdef __cplusplus
37578 extern "C"
37579 #endif
37580 char inet_addr ();
37581 int
37582 main ()
37583 {
37584 return inet_addr ();
37585   ;
37586   return 0;
37587 }
37588 _ACEOF
37589 rm -f conftest.$ac_objext conftest$ac_exeext
37590 if { (ac_try="$ac_link"
37591 case "(($ac_try" in
37592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37593   *) ac_try_echo=$ac_try;;
37594 esac
37595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37596   (eval "$ac_link") 2>conftest.er1
37597   ac_status=$?
37598   grep -v '^ *+' conftest.er1 >conftest.err
37599   rm -f conftest.er1
37600   cat conftest.err >&5
37601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37602   (exit $ac_status); } && {
37603          test -z "$ac_c_werror_flag" ||
37604          test ! -s conftest.err
37605        } && test -s conftest$ac_exeext &&
37606        $as_test_x conftest$ac_exeext; then
37607   ac_cv_lib_nsl_inet_addr=yes
37608 else
37609   echo "$as_me: failed program was:" >&5
37610 sed 's/^/| /' conftest.$ac_ext >&5
37611
37612         ac_cv_lib_nsl_inet_addr=no
37613 fi
37614
37615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37616       conftest$ac_exeext conftest.$ac_ext
37617 LIBS=$ac_check_lib_save_LIBS
37618 fi
37619 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37620 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
37621 if test $ac_cv_lib_nsl_inet_addr = yes; then
37622   INET_LINK="nsl"
37623 else
37624
37625                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37626 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
37627 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37628   echo $ECHO_N "(cached) $ECHO_C" >&6
37629 else
37630   ac_check_lib_save_LIBS=$LIBS
37631 LIBS="-lresolv  $LIBS"
37632 cat >conftest.$ac_ext <<_ACEOF
37633 /* confdefs.h.  */
37634 _ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h.  */
37638
37639 /* Override any GCC internal prototype to avoid an error.
37640    Use char because int might match the return type of a GCC
37641    builtin and then its argument prototype would still apply.  */
37642 #ifdef __cplusplus
37643 extern "C"
37644 #endif
37645 char inet_addr ();
37646 int
37647 main ()
37648 {
37649 return inet_addr ();
37650   ;
37651   return 0;
37652 }
37653 _ACEOF
37654 rm -f conftest.$ac_objext conftest$ac_exeext
37655 if { (ac_try="$ac_link"
37656 case "(($ac_try" in
37657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37658   *) ac_try_echo=$ac_try;;
37659 esac
37660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37661   (eval "$ac_link") 2>conftest.er1
37662   ac_status=$?
37663   grep -v '^ *+' conftest.er1 >conftest.err
37664   rm -f conftest.er1
37665   cat conftest.err >&5
37666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667   (exit $ac_status); } && {
37668          test -z "$ac_c_werror_flag" ||
37669          test ! -s conftest.err
37670        } && test -s conftest$ac_exeext &&
37671        $as_test_x conftest$ac_exeext; then
37672   ac_cv_lib_resolv_inet_addr=yes
37673 else
37674   echo "$as_me: failed program was:" >&5
37675 sed 's/^/| /' conftest.$ac_ext >&5
37676
37677         ac_cv_lib_resolv_inet_addr=no
37678 fi
37679
37680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37681       conftest$ac_exeext conftest.$ac_ext
37682 LIBS=$ac_check_lib_save_LIBS
37683 fi
37684 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37685 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
37686 if test $ac_cv_lib_resolv_inet_addr = yes; then
37687   INET_LINK="resolv"
37688 else
37689
37690                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37691 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
37692 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37693   echo $ECHO_N "(cached) $ECHO_C" >&6
37694 else
37695   ac_check_lib_save_LIBS=$LIBS
37696 LIBS="-lsocket  $LIBS"
37697 cat >conftest.$ac_ext <<_ACEOF
37698 /* confdefs.h.  */
37699 _ACEOF
37700 cat confdefs.h >>conftest.$ac_ext
37701 cat >>conftest.$ac_ext <<_ACEOF
37702 /* end confdefs.h.  */
37703
37704 /* Override any GCC internal prototype to avoid an error.
37705    Use char because int might match the return type of a GCC
37706    builtin and then its argument prototype would still apply.  */
37707 #ifdef __cplusplus
37708 extern "C"
37709 #endif
37710 char inet_addr ();
37711 int
37712 main ()
37713 {
37714 return inet_addr ();
37715   ;
37716   return 0;
37717 }
37718 _ACEOF
37719 rm -f conftest.$ac_objext conftest$ac_exeext
37720 if { (ac_try="$ac_link"
37721 case "(($ac_try" in
37722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37723   *) ac_try_echo=$ac_try;;
37724 esac
37725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37726   (eval "$ac_link") 2>conftest.er1
37727   ac_status=$?
37728   grep -v '^ *+' conftest.er1 >conftest.err
37729   rm -f conftest.er1
37730   cat conftest.err >&5
37731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732   (exit $ac_status); } && {
37733          test -z "$ac_c_werror_flag" ||
37734          test ! -s conftest.err
37735        } && test -s conftest$ac_exeext &&
37736        $as_test_x conftest$ac_exeext; then
37737   ac_cv_lib_socket_inet_addr=yes
37738 else
37739   echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37741
37742         ac_cv_lib_socket_inet_addr=no
37743 fi
37744
37745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37746       conftest$ac_exeext conftest.$ac_ext
37747 LIBS=$ac_check_lib_save_LIBS
37748 fi
37749 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37750 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
37751 if test $ac_cv_lib_socket_inet_addr = yes; then
37752   INET_LINK="socket"
37753
37754 fi
37755
37756
37757
37758 fi
37759
37760
37761
37762 fi
37763
37764
37765
37766 fi
37767 done
37768
37769
37770
37771 for ac_func in inet_aton
37772 do
37773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37777   echo $ECHO_N "(cached) $ECHO_C" >&6
37778 else
37779   cat >conftest.$ac_ext <<_ACEOF
37780 /* confdefs.h.  */
37781 _ACEOF
37782 cat confdefs.h >>conftest.$ac_ext
37783 cat >>conftest.$ac_ext <<_ACEOF
37784 /* end confdefs.h.  */
37785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37787 #define $ac_func innocuous_$ac_func
37788
37789 /* System header to define __stub macros and hopefully few prototypes,
37790     which can conflict with char $ac_func (); below.
37791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37792     <limits.h> exists even on freestanding compilers.  */
37793
37794 #ifdef __STDC__
37795 # include <limits.h>
37796 #else
37797 # include <assert.h>
37798 #endif
37799
37800 #undef $ac_func
37801
37802 /* Override any GCC internal prototype to avoid an error.
37803    Use char because int might match the return type of a GCC
37804    builtin and then its argument prototype would still apply.  */
37805 #ifdef __cplusplus
37806 extern "C"
37807 #endif
37808 char $ac_func ();
37809 /* The GNU C library defines this for functions which it implements
37810     to always fail with ENOSYS.  Some functions are actually named
37811     something starting with __ and the normal name is an alias.  */
37812 #if defined __stub_$ac_func || defined __stub___$ac_func
37813 choke me
37814 #endif
37815
37816 int
37817 main ()
37818 {
37819 return $ac_func ();
37820   ;
37821   return 0;
37822 }
37823 _ACEOF
37824 rm -f conftest.$ac_objext conftest$ac_exeext
37825 if { (ac_try="$ac_link"
37826 case "(($ac_try" in
37827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37828   *) ac_try_echo=$ac_try;;
37829 esac
37830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37831   (eval "$ac_link") 2>conftest.er1
37832   ac_status=$?
37833   grep -v '^ *+' conftest.er1 >conftest.err
37834   rm -f conftest.er1
37835   cat conftest.err >&5
37836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837   (exit $ac_status); } && {
37838          test -z "$ac_c_werror_flag" ||
37839          test ! -s conftest.err
37840        } && test -s conftest$ac_exeext &&
37841        $as_test_x conftest$ac_exeext; then
37842   eval "$as_ac_var=yes"
37843 else
37844   echo "$as_me: failed program was:" >&5
37845 sed 's/^/| /' conftest.$ac_ext >&5
37846
37847         eval "$as_ac_var=no"
37848 fi
37849
37850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37851       conftest$ac_exeext conftest.$ac_ext
37852 fi
37853 ac_res=`eval echo '${'$as_ac_var'}'`
37854                { echo "$as_me:$LINENO: result: $ac_res" >&5
37855 echo "${ECHO_T}$ac_res" >&6; }
37856 if test `eval echo '${'$as_ac_var'}'` = yes; then
37857   cat >>confdefs.h <<_ACEOF
37858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37859 _ACEOF
37860  cat >>confdefs.h <<\_ACEOF
37861 #define HAVE_INET_ATON 1
37862 _ACEOF
37863
37864 else
37865
37866                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37867 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37868 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
37869 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37870   echo $ECHO_N "(cached) $ECHO_C" >&6
37871 else
37872   ac_check_lib_save_LIBS=$LIBS
37873 LIBS="-l$INET_LINK  $LIBS"
37874 cat >conftest.$ac_ext <<_ACEOF
37875 /* confdefs.h.  */
37876 _ACEOF
37877 cat confdefs.h >>conftest.$ac_ext
37878 cat >>conftest.$ac_ext <<_ACEOF
37879 /* end confdefs.h.  */
37880
37881 /* Override any GCC internal prototype to avoid an error.
37882    Use char because int might match the return type of a GCC
37883    builtin and then its argument prototype would still apply.  */
37884 #ifdef __cplusplus
37885 extern "C"
37886 #endif
37887 char inet_aton ();
37888 int
37889 main ()
37890 {
37891 return inet_aton ();
37892   ;
37893   return 0;
37894 }
37895 _ACEOF
37896 rm -f conftest.$ac_objext conftest$ac_exeext
37897 if { (ac_try="$ac_link"
37898 case "(($ac_try" in
37899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37900   *) ac_try_echo=$ac_try;;
37901 esac
37902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37903   (eval "$ac_link") 2>conftest.er1
37904   ac_status=$?
37905   grep -v '^ *+' conftest.er1 >conftest.err
37906   rm -f conftest.er1
37907   cat conftest.err >&5
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); } && {
37910          test -z "$ac_c_werror_flag" ||
37911          test ! -s conftest.err
37912        } && test -s conftest$ac_exeext &&
37913        $as_test_x conftest$ac_exeext; then
37914   eval "$as_ac_Lib=yes"
37915 else
37916   echo "$as_me: failed program was:" >&5
37917 sed 's/^/| /' conftest.$ac_ext >&5
37918
37919         eval "$as_ac_Lib=no"
37920 fi
37921
37922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37923       conftest$ac_exeext conftest.$ac_ext
37924 LIBS=$ac_check_lib_save_LIBS
37925 fi
37926 ac_res=`eval echo '${'$as_ac_Lib'}'`
37927                { echo "$as_me:$LINENO: result: $ac_res" >&5
37928 echo "${ECHO_T}$ac_res" >&6; }
37929 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37930   cat >>confdefs.h <<\_ACEOF
37931 #define HAVE_INET_ATON 1
37932 _ACEOF
37933
37934 fi
37935
37936
37937 fi
37938 done
37939
37940
37941 if test "x$INET_LINK" != "x"; then
37942     cat >>confdefs.h <<\_ACEOF
37943 #define HAVE_INET_ADDR 1
37944 _ACEOF
37945
37946     INET_LINK=" -l$INET_LINK"
37947 fi
37948
37949
37950   for wx_func in fdopen
37951   do
37952     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37953 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37954 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37955   echo $ECHO_N "(cached) $ECHO_C" >&6
37956 else
37957
37958         cat >conftest.$ac_ext <<_ACEOF
37959
37960             /* confdefs.h.  */
37961 _ACEOF
37962 cat confdefs.h >>conftest.$ac_ext
37963 cat >>conftest.$ac_ext <<_ACEOF
37964 /* end confdefs.h.  */
37965
37966
37967                 $ac_includes_default
37968
37969 int
37970 main ()
37971 {
37972
37973                 #ifndef $wx_func
37974                   &$wx_func;
37975                 #endif
37976
37977
37978   ;
37979   return 0;
37980 }
37981
37982 _ACEOF
37983 rm -f conftest.$ac_objext conftest$ac_exeext
37984 if { (ac_try="$ac_link"
37985 case "(($ac_try" in
37986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37987   *) ac_try_echo=$ac_try;;
37988 esac
37989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37990   (eval "$ac_link") 2>conftest.er1
37991   ac_status=$?
37992   grep -v '^ *+' conftest.er1 >conftest.err
37993   rm -f conftest.er1
37994   cat conftest.err >&5
37995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996   (exit $ac_status); } && {
37997          test -z "$ac_c_werror_flag" ||
37998          test ! -s conftest.err
37999        } && test -s conftest$ac_exeext &&
38000        $as_test_x conftest$ac_exeext; then
38001   eval wx_cv_func_$wx_func=yes
38002 else
38003   echo "$as_me: failed program was:" >&5
38004 sed 's/^/| /' conftest.$ac_ext >&5
38005
38006         eval wx_cv_func_$wx_func=no
38007 fi
38008
38009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38010       conftest$ac_exeext conftest.$ac_ext
38011
38012 fi
38013 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38014                { echo "$as_me:$LINENO: result: $ac_res" >&5
38015 echo "${ECHO_T}$ac_res" >&6; }
38016
38017     if eval test \$wx_cv_func_$wx_func = yes
38018     then
38019       cat >>confdefs.h <<_ACEOF
38020 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38021 _ACEOF
38022
38023
38024     else
38025       :
38026
38027     fi
38028   done
38029
38030
38031 if test "$wxUSE_TARSTREAM" = "yes"; then
38032
38033   for wx_func in sysconf
38034   do
38035     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38036 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38037 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38038   echo $ECHO_N "(cached) $ECHO_C" >&6
38039 else
38040
38041         cat >conftest.$ac_ext <<_ACEOF
38042
38043             /* confdefs.h.  */
38044 _ACEOF
38045 cat confdefs.h >>conftest.$ac_ext
38046 cat >>conftest.$ac_ext <<_ACEOF
38047 /* end confdefs.h.  */
38048
38049
38050                 $ac_includes_default
38051
38052 int
38053 main ()
38054 {
38055
38056                 #ifndef $wx_func
38057                   &$wx_func;
38058                 #endif
38059
38060
38061   ;
38062   return 0;
38063 }
38064
38065 _ACEOF
38066 rm -f conftest.$ac_objext conftest$ac_exeext
38067 if { (ac_try="$ac_link"
38068 case "(($ac_try" in
38069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38070   *) ac_try_echo=$ac_try;;
38071 esac
38072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38073   (eval "$ac_link") 2>conftest.er1
38074   ac_status=$?
38075   grep -v '^ *+' conftest.er1 >conftest.err
38076   rm -f conftest.er1
38077   cat conftest.err >&5
38078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079   (exit $ac_status); } && {
38080          test -z "$ac_c_werror_flag" ||
38081          test ! -s conftest.err
38082        } && test -s conftest$ac_exeext &&
38083        $as_test_x conftest$ac_exeext; then
38084   eval wx_cv_func_$wx_func=yes
38085 else
38086   echo "$as_me: failed program was:" >&5
38087 sed 's/^/| /' conftest.$ac_ext >&5
38088
38089         eval wx_cv_func_$wx_func=no
38090 fi
38091
38092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38093       conftest$ac_exeext conftest.$ac_ext
38094
38095 fi
38096 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38097                { echo "$as_me:$LINENO: result: $ac_res" >&5
38098 echo "${ECHO_T}$ac_res" >&6; }
38099
38100     if eval test \$wx_cv_func_$wx_func = yes
38101     then
38102       cat >>confdefs.h <<_ACEOF
38103 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38104 _ACEOF
38105
38106
38107     else
38108       :
38109
38110     fi
38111   done
38112
38113
38114
38115   for wx_func in getpwuid_r
38116   do
38117     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38118 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38119 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38120   echo $ECHO_N "(cached) $ECHO_C" >&6
38121 else
38122
38123         cat >conftest.$ac_ext <<_ACEOF
38124
38125             /* confdefs.h.  */
38126 _ACEOF
38127 cat confdefs.h >>conftest.$ac_ext
38128 cat >>conftest.$ac_ext <<_ACEOF
38129 /* end confdefs.h.  */
38130
38131
38132                     #define _REENTRANT
38133                     #include <pwd.h>
38134
38135                 $ac_includes_default
38136
38137 int
38138 main ()
38139 {
38140
38141                 #ifndef $wx_func
38142                   &$wx_func;
38143                 #endif
38144
38145                     struct passwd pw, *ppw;
38146                     char buf[1024];
38147                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38148
38149
38150   ;
38151   return 0;
38152 }
38153
38154 _ACEOF
38155 rm -f conftest.$ac_objext conftest$ac_exeext
38156 if { (ac_try="$ac_link"
38157 case "(($ac_try" in
38158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38159   *) ac_try_echo=$ac_try;;
38160 esac
38161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38162   (eval "$ac_link") 2>conftest.er1
38163   ac_status=$?
38164   grep -v '^ *+' conftest.er1 >conftest.err
38165   rm -f conftest.er1
38166   cat conftest.err >&5
38167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168   (exit $ac_status); } && {
38169          test -z "$ac_c_werror_flag" ||
38170          test ! -s conftest.err
38171        } && test -s conftest$ac_exeext &&
38172        $as_test_x conftest$ac_exeext; then
38173   eval wx_cv_func_$wx_func=yes
38174 else
38175   echo "$as_me: failed program was:" >&5
38176 sed 's/^/| /' conftest.$ac_ext >&5
38177
38178         eval wx_cv_func_$wx_func=no
38179 fi
38180
38181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38182       conftest$ac_exeext conftest.$ac_ext
38183
38184 fi
38185 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38186                { echo "$as_me:$LINENO: result: $ac_res" >&5
38187 echo "${ECHO_T}$ac_res" >&6; }
38188
38189     if eval test \$wx_cv_func_$wx_func = yes
38190     then
38191       cat >>confdefs.h <<_ACEOF
38192 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38193 _ACEOF
38194
38195
38196     else
38197       :
38198
38199     fi
38200   done
38201
38202
38203
38204   for wx_func in getgrgid_r
38205   do
38206     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38207 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38208 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38209   echo $ECHO_N "(cached) $ECHO_C" >&6
38210 else
38211
38212         cat >conftest.$ac_ext <<_ACEOF
38213
38214             /* confdefs.h.  */
38215 _ACEOF
38216 cat confdefs.h >>conftest.$ac_ext
38217 cat >>conftest.$ac_ext <<_ACEOF
38218 /* end confdefs.h.  */
38219
38220
38221                     #define _REENTRANT
38222                     #include <grp.h>
38223
38224                 $ac_includes_default
38225
38226 int
38227 main ()
38228 {
38229
38230                 #ifndef $wx_func
38231                   &$wx_func;
38232                 #endif
38233
38234                     struct group grp, *pgrp;
38235                     char buf[1024];
38236                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38237
38238
38239   ;
38240   return 0;
38241 }
38242
38243 _ACEOF
38244 rm -f conftest.$ac_objext conftest$ac_exeext
38245 if { (ac_try="$ac_link"
38246 case "(($ac_try" in
38247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38248   *) ac_try_echo=$ac_try;;
38249 esac
38250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38251   (eval "$ac_link") 2>conftest.er1
38252   ac_status=$?
38253   grep -v '^ *+' conftest.er1 >conftest.err
38254   rm -f conftest.er1
38255   cat conftest.err >&5
38256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257   (exit $ac_status); } && {
38258          test -z "$ac_c_werror_flag" ||
38259          test ! -s conftest.err
38260        } && test -s conftest$ac_exeext &&
38261        $as_test_x conftest$ac_exeext; then
38262   eval wx_cv_func_$wx_func=yes
38263 else
38264   echo "$as_me: failed program was:" >&5
38265 sed 's/^/| /' conftest.$ac_ext >&5
38266
38267         eval wx_cv_func_$wx_func=no
38268 fi
38269
38270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38271       conftest$ac_exeext conftest.$ac_ext
38272
38273 fi
38274 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38275                { echo "$as_me:$LINENO: result: $ac_res" >&5
38276 echo "${ECHO_T}$ac_res" >&6; }
38277
38278     if eval test \$wx_cv_func_$wx_func = yes
38279     then
38280       cat >>confdefs.h <<_ACEOF
38281 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38282 _ACEOF
38283
38284
38285     else
38286       :
38287
38288     fi
38289   done
38290
38291 fi
38292
38293 fi
38294
38295
38296
38297 cat >confcache <<\_ACEOF
38298 # This file is a shell script that caches the results of configure
38299 # tests run on this system so they can be shared between configure
38300 # scripts and configure runs, see configure's option --config-cache.
38301 # It is not useful on other systems.  If it contains results you don't
38302 # want to keep, you may remove or edit it.
38303 #
38304 # config.status only pays attention to the cache file if you give it
38305 # the --recheck option to rerun configure.
38306 #
38307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38309 # following values.
38310
38311 _ACEOF
38312
38313 # The following way of writing the cache mishandles newlines in values,
38314 # but we know of no workaround that is simple, portable, and efficient.
38315 # So, we kill variables containing newlines.
38316 # Ultrix sh set writes to stderr and can't be redirected directly,
38317 # and sets the high bit in the cache file unless we assign to the vars.
38318 (
38319   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38320     eval ac_val=\$$ac_var
38321     case $ac_val in #(
38322     *${as_nl}*)
38323       case $ac_var in #(
38324       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38325 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38326       esac
38327       case $ac_var in #(
38328       _ | IFS | as_nl) ;; #(
38329       *) $as_unset $ac_var ;;
38330       esac ;;
38331     esac
38332   done
38333
38334   (set) 2>&1 |
38335     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38336     *${as_nl}ac_space=\ *)
38337       # `set' does not quote correctly, so add quotes (double-quote
38338       # substitution turns \\\\ into \\, and sed turns \\ into \).
38339       sed -n \
38340         "s/'/'\\\\''/g;
38341           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38342       ;; #(
38343     *)
38344       # `set' quotes correctly as required by POSIX, so do not add quotes.
38345       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38346       ;;
38347     esac |
38348     sort
38349 ) |
38350   sed '
38351      /^ac_cv_env_/b end
38352      t clear
38353      :clear
38354      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38355      t end
38356      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38357      :end' >>confcache
38358 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38359   if test -w "$cache_file"; then
38360     test "x$cache_file" != "x/dev/null" &&
38361       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38362 echo "$as_me: updating cache $cache_file" >&6;}
38363     cat confcache >$cache_file
38364   else
38365     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38366 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38367   fi
38368 fi
38369 rm -f confcache
38370
38371
38372 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38373
38374
38375     THREADS_LINK=
38376     THREADS_CFLAGS=
38377
38378     if test "$wxUSE_THREADS" = "yes" ; then
38379         if test "$USE_BEOS" = 1; then
38380             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38381 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38382             wxUSE_THREADS="no"
38383         fi
38384     fi
38385
38386     if test "$wxUSE_THREADS" = "yes" ; then
38387
38388
38389                                 THREAD_OPTS="-pthread"
38390         if test "x$SUNCXX" = xyes; then
38391             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38392         fi
38393
38394         case "${host}" in
38395           *-*-solaris2* | *-*-sunos4* )
38396                 if test "x$GCC" = "xyes"; then
38397                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38398                 fi
38399                 ;;
38400           *-*-freebsd*)
38401                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38402                 ;;
38403           *-*-darwin* | *-*-cygwin* )
38404                                                 THREAD_OPTS=""
38405                 ;;
38406           *-*-aix*)
38407                                 THREAD_OPTS="pthreads"
38408                 ;;
38409           *-hp-hpux* )
38410                 if test "x$GCC" = "xyes"; then
38411                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38412                         THREAD_OPTS=""
38413                 else
38414                                                             THREAD_OPTS="-mt"
38415                 fi
38416                 ;;
38417
38418           *-*-irix* )
38419                                                                 if test "x$GCC" = "xyes"; then
38420                     THREAD_OPTS=""
38421                 fi
38422                 ;;
38423
38424           *-*-*UnixWare*)
38425                                 if test "x$GCC" != "xyes"; then
38426                     THREAD_OPTS="-Ethread"
38427                 fi
38428                 ;;
38429         esac
38430
38431                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38432
38433                 THREADS_OK=no
38434         for flag in $THREAD_OPTS; do
38435             case $flag in
38436                 none)
38437                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38438 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38439                     ;;
38440
38441                 -*)
38442                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38443 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38444                     THREADS_CFLAGS="$flag"
38445                     ;;
38446
38447                 *)
38448                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38449 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38450                     THREADS_LINK="-l$flag"
38451                     ;;
38452               esac
38453
38454               save_LIBS="$LIBS"
38455               save_CFLAGS="$CFLAGS"
38456               LIBS="$THREADS_LINK $LIBS"
38457               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38458
38459               cat >conftest.$ac_ext <<_ACEOF
38460 /* confdefs.h.  */
38461 _ACEOF
38462 cat confdefs.h >>conftest.$ac_ext
38463 cat >>conftest.$ac_ext <<_ACEOF
38464 /* end confdefs.h.  */
38465 #include <pthread.h>
38466 int
38467 main ()
38468 {
38469 pthread_create(0,0,0,0);
38470   ;
38471   return 0;
38472 }
38473 _ACEOF
38474 rm -f conftest.$ac_objext conftest$ac_exeext
38475 if { (ac_try="$ac_link"
38476 case "(($ac_try" in
38477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38478   *) ac_try_echo=$ac_try;;
38479 esac
38480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38481   (eval "$ac_link") 2>conftest.er1
38482   ac_status=$?
38483   grep -v '^ *+' conftest.er1 >conftest.err
38484   rm -f conftest.er1
38485   cat conftest.err >&5
38486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487   (exit $ac_status); } && {
38488          test -z "$ac_c_werror_flag" ||
38489          test ! -s conftest.err
38490        } && test -s conftest$ac_exeext &&
38491        $as_test_x conftest$ac_exeext; then
38492   THREADS_OK=yes
38493 else
38494   echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38496
38497
38498 fi
38499
38500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38501       conftest$ac_exeext conftest.$ac_ext
38502
38503               LIBS="$save_LIBS"
38504               CFLAGS="$save_CFLAGS"
38505
38506               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38507 echo "${ECHO_T}$THREADS_OK" >&6; }
38508               if test "x$THREADS_OK" = "xyes"; then
38509                       break;
38510               fi
38511
38512               THREADS_LINK=""
38513               THREADS_CFLAGS=""
38514       done
38515
38516       if test "x$THREADS_OK" != "xyes"; then
38517           wxUSE_THREADS=no
38518           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38519 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38520       else
38521                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38522           LIBS="$THREADS_LINK $LIBS"
38523
38524           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38525 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38526           flag=no
38527           case "${host}" in
38528             *-aix*)
38529                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38530                 flag="-D_THREAD_SAFE"
38531                 ;;
38532             *-freebsd*)
38533                 flag="-D_THREAD_SAFE"
38534                 ;;
38535             *-hp-hpux* )
38536                 flag="-D_REENTRANT"
38537                 if test "x$GCC" != "xyes"; then
38538                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38539                 fi
38540                 ;;
38541             *solaris* | alpha*-osf*)
38542                 flag="-D_REENTRANT"
38543                 ;;
38544           esac
38545           { echo "$as_me:$LINENO: result: ${flag}" >&5
38546 echo "${ECHO_T}${flag}" >&6; }
38547           if test "x$flag" != xno; then
38548               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
38549           fi
38550
38551                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
38552       fi
38553     fi
38554
38555         if test "$wxUSE_THREADS" = "yes" ; then
38556
38557 for ac_func in thr_setconcurrency
38558 do
38559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38563   echo $ECHO_N "(cached) $ECHO_C" >&6
38564 else
38565   cat >conftest.$ac_ext <<_ACEOF
38566 /* confdefs.h.  */
38567 _ACEOF
38568 cat confdefs.h >>conftest.$ac_ext
38569 cat >>conftest.$ac_ext <<_ACEOF
38570 /* end confdefs.h.  */
38571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38573 #define $ac_func innocuous_$ac_func
38574
38575 /* System header to define __stub macros and hopefully few prototypes,
38576     which can conflict with char $ac_func (); below.
38577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38578     <limits.h> exists even on freestanding compilers.  */
38579
38580 #ifdef __STDC__
38581 # include <limits.h>
38582 #else
38583 # include <assert.h>
38584 #endif
38585
38586 #undef $ac_func
38587
38588 /* Override any GCC internal prototype to avoid an error.
38589    Use char because int might match the return type of a GCC
38590    builtin and then its argument prototype would still apply.  */
38591 #ifdef __cplusplus
38592 extern "C"
38593 #endif
38594 char $ac_func ();
38595 /* The GNU C library defines this for functions which it implements
38596     to always fail with ENOSYS.  Some functions are actually named
38597     something starting with __ and the normal name is an alias.  */
38598 #if defined __stub_$ac_func || defined __stub___$ac_func
38599 choke me
38600 #endif
38601
38602 int
38603 main ()
38604 {
38605 return $ac_func ();
38606   ;
38607   return 0;
38608 }
38609 _ACEOF
38610 rm -f conftest.$ac_objext conftest$ac_exeext
38611 if { (ac_try="$ac_link"
38612 case "(($ac_try" in
38613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38614   *) ac_try_echo=$ac_try;;
38615 esac
38616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38617   (eval "$ac_link") 2>conftest.er1
38618   ac_status=$?
38619   grep -v '^ *+' conftest.er1 >conftest.err
38620   rm -f conftest.er1
38621   cat conftest.err >&5
38622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623   (exit $ac_status); } && {
38624          test -z "$ac_c_werror_flag" ||
38625          test ! -s conftest.err
38626        } && test -s conftest$ac_exeext &&
38627        $as_test_x conftest$ac_exeext; then
38628   eval "$as_ac_var=yes"
38629 else
38630   echo "$as_me: failed program was:" >&5
38631 sed 's/^/| /' conftest.$ac_ext >&5
38632
38633         eval "$as_ac_var=no"
38634 fi
38635
38636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38637       conftest$ac_exeext conftest.$ac_ext
38638 fi
38639 ac_res=`eval echo '${'$as_ac_var'}'`
38640                { echo "$as_me:$LINENO: result: $ac_res" >&5
38641 echo "${ECHO_T}$ac_res" >&6; }
38642 if test `eval echo '${'$as_ac_var'}'` = yes; then
38643   cat >>confdefs.h <<_ACEOF
38644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38645 _ACEOF
38646
38647 fi
38648 done
38649
38650
38651                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38652 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
38653 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38654   echo $ECHO_N "(cached) $ECHO_C" >&6
38655 else
38656
38657                                 ac_ext=cpp
38658 ac_cpp='$CXXCPP $CPPFLAGS'
38659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38662
38663         cat >conftest.$ac_ext <<_ACEOF
38664 /* confdefs.h.  */
38665 _ACEOF
38666 cat confdefs.h >>conftest.$ac_ext
38667 cat >>conftest.$ac_ext <<_ACEOF
38668 /* end confdefs.h.  */
38669 #include <pthread.h>
38670                void ThreadCleanupFunc(void *p);
38671
38672 int
38673 main ()
38674 {
38675
38676                 void *p;
38677                 pthread_cleanup_push(ThreadCleanupFunc, p);
38678                 pthread_cleanup_pop(0);
38679
38680   ;
38681   return 0;
38682 }
38683 _ACEOF
38684 rm -f conftest.$ac_objext
38685 if { (ac_try="$ac_compile"
38686 case "(($ac_try" in
38687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38688   *) ac_try_echo=$ac_try;;
38689 esac
38690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38691   (eval "$ac_compile") 2>conftest.er1
38692   ac_status=$?
38693   grep -v '^ *+' conftest.er1 >conftest.err
38694   rm -f conftest.er1
38695   cat conftest.err >&5
38696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38697   (exit $ac_status); } && {
38698          test -z "$ac_cxx_werror_flag" ||
38699          test ! -s conftest.err
38700        } && test -s conftest.$ac_objext; then
38701
38702                wx_cv_func_pthread_cleanup=yes
38703
38704 else
38705   echo "$as_me: failed program was:" >&5
38706 sed 's/^/| /' conftest.$ac_ext >&5
38707
38708
38709                wx_cv_func_pthread_cleanup=no
38710
38711
38712 fi
38713
38714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38715         ac_ext=c
38716 ac_cpp='$CPP $CPPFLAGS'
38717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38720
38721
38722 fi
38723 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38724 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
38725       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38726         cat >>confdefs.h <<\_ACEOF
38727 #define wxHAVE_PTHREAD_CLEANUP 1
38728 _ACEOF
38729
38730       fi
38731
38732
38733 for ac_header in sched.h
38734 do
38735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38739   echo $ECHO_N "(cached) $ECHO_C" >&6
38740 else
38741   cat >conftest.$ac_ext <<_ACEOF
38742 /* confdefs.h.  */
38743 _ACEOF
38744 cat confdefs.h >>conftest.$ac_ext
38745 cat >>conftest.$ac_ext <<_ACEOF
38746 /* end confdefs.h.  */
38747 $ac_includes_default
38748
38749 #include <$ac_header>
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   eval "$as_ac_Header=yes"
38769 else
38770   echo "$as_me: failed program was:" >&5
38771 sed 's/^/| /' conftest.$ac_ext >&5
38772
38773         eval "$as_ac_Header=no"
38774 fi
38775
38776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38777 fi
38778 ac_res=`eval echo '${'$as_ac_Header'}'`
38779                { echo "$as_me:$LINENO: result: $ac_res" >&5
38780 echo "${ECHO_T}$ac_res" >&6; }
38781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38782   cat >>confdefs.h <<_ACEOF
38783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38784 _ACEOF
38785
38786 fi
38787
38788 done
38789
38790       if test "$ac_cv_header_sched_h" = "yes"; then
38791           { echo "$as_me:$LINENO: checking for sched_yield" >&5
38792 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
38793 if test "${ac_cv_func_sched_yield+set}" = set; then
38794   echo $ECHO_N "(cached) $ECHO_C" >&6
38795 else
38796   cat >conftest.$ac_ext <<_ACEOF
38797 /* confdefs.h.  */
38798 _ACEOF
38799 cat confdefs.h >>conftest.$ac_ext
38800 cat >>conftest.$ac_ext <<_ACEOF
38801 /* end confdefs.h.  */
38802 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38804 #define sched_yield innocuous_sched_yield
38805
38806 /* System header to define __stub macros and hopefully few prototypes,
38807     which can conflict with char sched_yield (); below.
38808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38809     <limits.h> exists even on freestanding compilers.  */
38810
38811 #ifdef __STDC__
38812 # include <limits.h>
38813 #else
38814 # include <assert.h>
38815 #endif
38816
38817 #undef sched_yield
38818
38819 /* Override any GCC internal prototype to avoid an error.
38820    Use char because int might match the return type of a GCC
38821    builtin and then its argument prototype would still apply.  */
38822 #ifdef __cplusplus
38823 extern "C"
38824 #endif
38825 char sched_yield ();
38826 /* The GNU C library defines this for functions which it implements
38827     to always fail with ENOSYS.  Some functions are actually named
38828     something starting with __ and the normal name is an alias.  */
38829 #if defined __stub_sched_yield || defined __stub___sched_yield
38830 choke me
38831 #endif
38832
38833 int
38834 main ()
38835 {
38836 return sched_yield ();
38837   ;
38838   return 0;
38839 }
38840 _ACEOF
38841 rm -f conftest.$ac_objext conftest$ac_exeext
38842 if { (ac_try="$ac_link"
38843 case "(($ac_try" in
38844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38845   *) ac_try_echo=$ac_try;;
38846 esac
38847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38848   (eval "$ac_link") 2>conftest.er1
38849   ac_status=$?
38850   grep -v '^ *+' conftest.er1 >conftest.err
38851   rm -f conftest.er1
38852   cat conftest.err >&5
38853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854   (exit $ac_status); } && {
38855          test -z "$ac_c_werror_flag" ||
38856          test ! -s conftest.err
38857        } && test -s conftest$ac_exeext &&
38858        $as_test_x conftest$ac_exeext; then
38859   ac_cv_func_sched_yield=yes
38860 else
38861   echo "$as_me: failed program was:" >&5
38862 sed 's/^/| /' conftest.$ac_ext >&5
38863
38864         ac_cv_func_sched_yield=no
38865 fi
38866
38867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38868       conftest$ac_exeext conftest.$ac_ext
38869 fi
38870 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38871 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
38872 if test $ac_cv_func_sched_yield = yes; then
38873   cat >>confdefs.h <<\_ACEOF
38874 #define HAVE_SCHED_YIELD 1
38875 _ACEOF
38876
38877 else
38878
38879                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38880 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
38881 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38882   echo $ECHO_N "(cached) $ECHO_C" >&6
38883 else
38884   ac_check_lib_save_LIBS=$LIBS
38885 LIBS="-lposix4  $LIBS"
38886 cat >conftest.$ac_ext <<_ACEOF
38887 /* confdefs.h.  */
38888 _ACEOF
38889 cat confdefs.h >>conftest.$ac_ext
38890 cat >>conftest.$ac_ext <<_ACEOF
38891 /* end confdefs.h.  */
38892
38893 /* Override any GCC internal prototype to avoid an error.
38894    Use char because int might match the return type of a GCC
38895    builtin and then its argument prototype would still apply.  */
38896 #ifdef __cplusplus
38897 extern "C"
38898 #endif
38899 char sched_yield ();
38900 int
38901 main ()
38902 {
38903 return sched_yield ();
38904   ;
38905   return 0;
38906 }
38907 _ACEOF
38908 rm -f conftest.$ac_objext conftest$ac_exeext
38909 if { (ac_try="$ac_link"
38910 case "(($ac_try" in
38911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38912   *) ac_try_echo=$ac_try;;
38913 esac
38914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38915   (eval "$ac_link") 2>conftest.er1
38916   ac_status=$?
38917   grep -v '^ *+' conftest.er1 >conftest.err
38918   rm -f conftest.er1
38919   cat conftest.err >&5
38920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921   (exit $ac_status); } && {
38922          test -z "$ac_c_werror_flag" ||
38923          test ! -s conftest.err
38924        } && test -s conftest$ac_exeext &&
38925        $as_test_x conftest$ac_exeext; then
38926   ac_cv_lib_posix4_sched_yield=yes
38927 else
38928   echo "$as_me: failed program was:" >&5
38929 sed 's/^/| /' conftest.$ac_ext >&5
38930
38931         ac_cv_lib_posix4_sched_yield=no
38932 fi
38933
38934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38935       conftest$ac_exeext conftest.$ac_ext
38936 LIBS=$ac_check_lib_save_LIBS
38937 fi
38938 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38939 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
38940 if test $ac_cv_lib_posix4_sched_yield = yes; then
38941   cat >>confdefs.h <<\_ACEOF
38942 #define HAVE_SCHED_YIELD 1
38943 _ACEOF
38944  POSIX4_LINK=" -lposix4"
38945 else
38946   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38947 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38948
38949 fi
38950
38951
38952
38953 fi
38954
38955       fi
38956
38957                                           HAVE_PRIOR_FUNCS=0
38958       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38959 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
38960 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38961   echo $ECHO_N "(cached) $ECHO_C" >&6
38962 else
38963   cat >conftest.$ac_ext <<_ACEOF
38964 /* confdefs.h.  */
38965 _ACEOF
38966 cat confdefs.h >>conftest.$ac_ext
38967 cat >>conftest.$ac_ext <<_ACEOF
38968 /* end confdefs.h.  */
38969 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38971 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38972
38973 /* System header to define __stub macros and hopefully few prototypes,
38974     which can conflict with char pthread_attr_getschedpolicy (); below.
38975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38976     <limits.h> exists even on freestanding compilers.  */
38977
38978 #ifdef __STDC__
38979 # include <limits.h>
38980 #else
38981 # include <assert.h>
38982 #endif
38983
38984 #undef pthread_attr_getschedpolicy
38985
38986 /* Override any GCC internal prototype to avoid an error.
38987    Use char because int might match the return type of a GCC
38988    builtin and then its argument prototype would still apply.  */
38989 #ifdef __cplusplus
38990 extern "C"
38991 #endif
38992 char pthread_attr_getschedpolicy ();
38993 /* The GNU C library defines this for functions which it implements
38994     to always fail with ENOSYS.  Some functions are actually named
38995     something starting with __ and the normal name is an alias.  */
38996 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
38997 choke me
38998 #endif
38999
39000 int
39001 main ()
39002 {
39003 return pthread_attr_getschedpolicy ();
39004   ;
39005   return 0;
39006 }
39007 _ACEOF
39008 rm -f conftest.$ac_objext conftest$ac_exeext
39009 if { (ac_try="$ac_link"
39010 case "(($ac_try" in
39011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39012   *) ac_try_echo=$ac_try;;
39013 esac
39014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39015   (eval "$ac_link") 2>conftest.er1
39016   ac_status=$?
39017   grep -v '^ *+' conftest.er1 >conftest.err
39018   rm -f conftest.er1
39019   cat conftest.err >&5
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); } && {
39022          test -z "$ac_c_werror_flag" ||
39023          test ! -s conftest.err
39024        } && test -s conftest$ac_exeext &&
39025        $as_test_x conftest$ac_exeext; then
39026   ac_cv_func_pthread_attr_getschedpolicy=yes
39027 else
39028   echo "$as_me: failed program was:" >&5
39029 sed 's/^/| /' conftest.$ac_ext >&5
39030
39031         ac_cv_func_pthread_attr_getschedpolicy=no
39032 fi
39033
39034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39035       conftest$ac_exeext conftest.$ac_ext
39036 fi
39037 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39038 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39039 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39040   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39041 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39042 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39043   echo $ECHO_N "(cached) $ECHO_C" >&6
39044 else
39045   cat >conftest.$ac_ext <<_ACEOF
39046 /* confdefs.h.  */
39047 _ACEOF
39048 cat confdefs.h >>conftest.$ac_ext
39049 cat >>conftest.$ac_ext <<_ACEOF
39050 /* end confdefs.h.  */
39051 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39053 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39054
39055 /* System header to define __stub macros and hopefully few prototypes,
39056     which can conflict with char pthread_attr_setschedparam (); below.
39057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39058     <limits.h> exists even on freestanding compilers.  */
39059
39060 #ifdef __STDC__
39061 # include <limits.h>
39062 #else
39063 # include <assert.h>
39064 #endif
39065
39066 #undef pthread_attr_setschedparam
39067
39068 /* Override any GCC internal prototype to avoid an error.
39069    Use char because int might match the return type of a GCC
39070    builtin and then its argument prototype would still apply.  */
39071 #ifdef __cplusplus
39072 extern "C"
39073 #endif
39074 char pthread_attr_setschedparam ();
39075 /* The GNU C library defines this for functions which it implements
39076     to always fail with ENOSYS.  Some functions are actually named
39077     something starting with __ and the normal name is an alias.  */
39078 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39079 choke me
39080 #endif
39081
39082 int
39083 main ()
39084 {
39085 return pthread_attr_setschedparam ();
39086   ;
39087   return 0;
39088 }
39089 _ACEOF
39090 rm -f conftest.$ac_objext conftest$ac_exeext
39091 if { (ac_try="$ac_link"
39092 case "(($ac_try" in
39093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39094   *) ac_try_echo=$ac_try;;
39095 esac
39096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39097   (eval "$ac_link") 2>conftest.er1
39098   ac_status=$?
39099   grep -v '^ *+' conftest.er1 >conftest.err
39100   rm -f conftest.er1
39101   cat conftest.err >&5
39102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39103   (exit $ac_status); } && {
39104          test -z "$ac_c_werror_flag" ||
39105          test ! -s conftest.err
39106        } && test -s conftest$ac_exeext &&
39107        $as_test_x conftest$ac_exeext; then
39108   ac_cv_func_pthread_attr_setschedparam=yes
39109 else
39110   echo "$as_me: failed program was:" >&5
39111 sed 's/^/| /' conftest.$ac_ext >&5
39112
39113         ac_cv_func_pthread_attr_setschedparam=no
39114 fi
39115
39116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39117       conftest$ac_exeext conftest.$ac_ext
39118 fi
39119 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39120 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39121 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39122   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39123 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39124 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39125   echo $ECHO_N "(cached) $ECHO_C" >&6
39126 else
39127   cat >conftest.$ac_ext <<_ACEOF
39128 /* confdefs.h.  */
39129 _ACEOF
39130 cat confdefs.h >>conftest.$ac_ext
39131 cat >>conftest.$ac_ext <<_ACEOF
39132 /* end confdefs.h.  */
39133 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39135 #define sched_get_priority_max innocuous_sched_get_priority_max
39136
39137 /* System header to define __stub macros and hopefully few prototypes,
39138     which can conflict with char sched_get_priority_max (); below.
39139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39140     <limits.h> exists even on freestanding compilers.  */
39141
39142 #ifdef __STDC__
39143 # include <limits.h>
39144 #else
39145 # include <assert.h>
39146 #endif
39147
39148 #undef sched_get_priority_max
39149
39150 /* Override any GCC internal prototype to avoid an error.
39151    Use char because int might match the return type of a GCC
39152    builtin and then its argument prototype would still apply.  */
39153 #ifdef __cplusplus
39154 extern "C"
39155 #endif
39156 char sched_get_priority_max ();
39157 /* The GNU C library defines this for functions which it implements
39158     to always fail with ENOSYS.  Some functions are actually named
39159     something starting with __ and the normal name is an alias.  */
39160 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39161 choke me
39162 #endif
39163
39164 int
39165 main ()
39166 {
39167 return sched_get_priority_max ();
39168   ;
39169   return 0;
39170 }
39171 _ACEOF
39172 rm -f conftest.$ac_objext conftest$ac_exeext
39173 if { (ac_try="$ac_link"
39174 case "(($ac_try" in
39175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39176   *) ac_try_echo=$ac_try;;
39177 esac
39178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39179   (eval "$ac_link") 2>conftest.er1
39180   ac_status=$?
39181   grep -v '^ *+' conftest.er1 >conftest.err
39182   rm -f conftest.er1
39183   cat conftest.err >&5
39184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); } && {
39186          test -z "$ac_c_werror_flag" ||
39187          test ! -s conftest.err
39188        } && test -s conftest$ac_exeext &&
39189        $as_test_x conftest$ac_exeext; then
39190   ac_cv_func_sched_get_priority_max=yes
39191 else
39192   echo "$as_me: failed program was:" >&5
39193 sed 's/^/| /' conftest.$ac_ext >&5
39194
39195         ac_cv_func_sched_get_priority_max=no
39196 fi
39197
39198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39199       conftest$ac_exeext conftest.$ac_ext
39200 fi
39201 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39202 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39203 if test $ac_cv_func_sched_get_priority_max = yes; then
39204   HAVE_PRIOR_FUNCS=1
39205 else
39206   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39207 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39208 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39209   echo $ECHO_N "(cached) $ECHO_C" >&6
39210 else
39211   ac_check_lib_save_LIBS=$LIBS
39212 LIBS="-lposix4  $LIBS"
39213 cat >conftest.$ac_ext <<_ACEOF
39214 /* confdefs.h.  */
39215 _ACEOF
39216 cat confdefs.h >>conftest.$ac_ext
39217 cat >>conftest.$ac_ext <<_ACEOF
39218 /* end confdefs.h.  */
39219
39220 /* Override any GCC internal prototype to avoid an error.
39221    Use char because int might match the return type of a GCC
39222    builtin and then its argument prototype would still apply.  */
39223 #ifdef __cplusplus
39224 extern "C"
39225 #endif
39226 char sched_get_priority_max ();
39227 int
39228 main ()
39229 {
39230 return sched_get_priority_max ();
39231   ;
39232   return 0;
39233 }
39234 _ACEOF
39235 rm -f conftest.$ac_objext conftest$ac_exeext
39236 if { (ac_try="$ac_link"
39237 case "(($ac_try" in
39238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239   *) ac_try_echo=$ac_try;;
39240 esac
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242   (eval "$ac_link") 2>conftest.er1
39243   ac_status=$?
39244   grep -v '^ *+' conftest.er1 >conftest.err
39245   rm -f conftest.er1
39246   cat conftest.err >&5
39247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248   (exit $ac_status); } && {
39249          test -z "$ac_c_werror_flag" ||
39250          test ! -s conftest.err
39251        } && test -s conftest$ac_exeext &&
39252        $as_test_x conftest$ac_exeext; then
39253   ac_cv_lib_posix4_sched_get_priority_max=yes
39254 else
39255   echo "$as_me: failed program was:" >&5
39256 sed 's/^/| /' conftest.$ac_ext >&5
39257
39258         ac_cv_lib_posix4_sched_get_priority_max=no
39259 fi
39260
39261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39262       conftest$ac_exeext conftest.$ac_ext
39263 LIBS=$ac_check_lib_save_LIBS
39264 fi
39265 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39266 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39267 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39268
39269                                 HAVE_PRIOR_FUNCS=1
39270                                 POSIX4_LINK=" -lposix4"
39271
39272 fi
39273
39274
39275 fi
39276
39277
39278 fi
39279
39280
39281 fi
39282
39283
39284       if test "$HAVE_PRIOR_FUNCS" = 1; then
39285         cat >>confdefs.h <<\_ACEOF
39286 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39287 _ACEOF
39288
39289       else
39290         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39291 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39292       fi
39293
39294       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39295 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39296 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39297   echo $ECHO_N "(cached) $ECHO_C" >&6
39298 else
39299   cat >conftest.$ac_ext <<_ACEOF
39300 /* confdefs.h.  */
39301 _ACEOF
39302 cat confdefs.h >>conftest.$ac_ext
39303 cat >>conftest.$ac_ext <<_ACEOF
39304 /* end confdefs.h.  */
39305 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39307 #define pthread_cancel innocuous_pthread_cancel
39308
39309 /* System header to define __stub macros and hopefully few prototypes,
39310     which can conflict with char pthread_cancel (); below.
39311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39312     <limits.h> exists even on freestanding compilers.  */
39313
39314 #ifdef __STDC__
39315 # include <limits.h>
39316 #else
39317 # include <assert.h>
39318 #endif
39319
39320 #undef pthread_cancel
39321
39322 /* Override any GCC internal prototype to avoid an error.
39323    Use char because int might match the return type of a GCC
39324    builtin and then its argument prototype would still apply.  */
39325 #ifdef __cplusplus
39326 extern "C"
39327 #endif
39328 char pthread_cancel ();
39329 /* The GNU C library defines this for functions which it implements
39330     to always fail with ENOSYS.  Some functions are actually named
39331     something starting with __ and the normal name is an alias.  */
39332 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39333 choke me
39334 #endif
39335
39336 int
39337 main ()
39338 {
39339 return pthread_cancel ();
39340   ;
39341   return 0;
39342 }
39343 _ACEOF
39344 rm -f conftest.$ac_objext conftest$ac_exeext
39345 if { (ac_try="$ac_link"
39346 case "(($ac_try" in
39347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39348   *) ac_try_echo=$ac_try;;
39349 esac
39350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39351   (eval "$ac_link") 2>conftest.er1
39352   ac_status=$?
39353   grep -v '^ *+' conftest.er1 >conftest.err
39354   rm -f conftest.er1
39355   cat conftest.err >&5
39356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357   (exit $ac_status); } && {
39358          test -z "$ac_c_werror_flag" ||
39359          test ! -s conftest.err
39360        } && test -s conftest$ac_exeext &&
39361        $as_test_x conftest$ac_exeext; then
39362   ac_cv_func_pthread_cancel=yes
39363 else
39364   echo "$as_me: failed program was:" >&5
39365 sed 's/^/| /' conftest.$ac_ext >&5
39366
39367         ac_cv_func_pthread_cancel=no
39368 fi
39369
39370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39371       conftest$ac_exeext conftest.$ac_ext
39372 fi
39373 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39374 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39375 if test $ac_cv_func_pthread_cancel = yes; then
39376   cat >>confdefs.h <<\_ACEOF
39377 #define HAVE_PTHREAD_CANCEL 1
39378 _ACEOF
39379
39380 else
39381   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39382 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39383 fi
39384
39385
39386       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39387 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39388 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39389   echo $ECHO_N "(cached) $ECHO_C" >&6
39390 else
39391   cat >conftest.$ac_ext <<_ACEOF
39392 /* confdefs.h.  */
39393 _ACEOF
39394 cat confdefs.h >>conftest.$ac_ext
39395 cat >>conftest.$ac_ext <<_ACEOF
39396 /* end confdefs.h.  */
39397 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39399 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39400
39401 /* System header to define __stub macros and hopefully few prototypes,
39402     which can conflict with char pthread_mutex_timedlock (); below.
39403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39404     <limits.h> exists even on freestanding compilers.  */
39405
39406 #ifdef __STDC__
39407 # include <limits.h>
39408 #else
39409 # include <assert.h>
39410 #endif
39411
39412 #undef pthread_mutex_timedlock
39413
39414 /* Override any GCC internal prototype to avoid an error.
39415    Use char because int might match the return type of a GCC
39416    builtin and then its argument prototype would still apply.  */
39417 #ifdef __cplusplus
39418 extern "C"
39419 #endif
39420 char pthread_mutex_timedlock ();
39421 /* The GNU C library defines this for functions which it implements
39422     to always fail with ENOSYS.  Some functions are actually named
39423     something starting with __ and the normal name is an alias.  */
39424 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39425 choke me
39426 #endif
39427
39428 int
39429 main ()
39430 {
39431 return pthread_mutex_timedlock ();
39432   ;
39433   return 0;
39434 }
39435 _ACEOF
39436 rm -f conftest.$ac_objext conftest$ac_exeext
39437 if { (ac_try="$ac_link"
39438 case "(($ac_try" in
39439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39440   *) ac_try_echo=$ac_try;;
39441 esac
39442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39443   (eval "$ac_link") 2>conftest.er1
39444   ac_status=$?
39445   grep -v '^ *+' conftest.er1 >conftest.err
39446   rm -f conftest.er1
39447   cat conftest.err >&5
39448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449   (exit $ac_status); } && {
39450          test -z "$ac_c_werror_flag" ||
39451          test ! -s conftest.err
39452        } && test -s conftest$ac_exeext &&
39453        $as_test_x conftest$ac_exeext; then
39454   ac_cv_func_pthread_mutex_timedlock=yes
39455 else
39456   echo "$as_me: failed program was:" >&5
39457 sed 's/^/| /' conftest.$ac_ext >&5
39458
39459         ac_cv_func_pthread_mutex_timedlock=no
39460 fi
39461
39462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39463       conftest$ac_exeext conftest.$ac_ext
39464 fi
39465 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39466 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39467 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39468   cat >>confdefs.h <<\_ACEOF
39469 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39470 _ACEOF
39471
39472 else
39473   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39474 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39475 fi
39476
39477
39478       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39479 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39480 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39481   echo $ECHO_N "(cached) $ECHO_C" >&6
39482 else
39483   cat >conftest.$ac_ext <<_ACEOF
39484 /* confdefs.h.  */
39485 _ACEOF
39486 cat confdefs.h >>conftest.$ac_ext
39487 cat >>conftest.$ac_ext <<_ACEOF
39488 /* end confdefs.h.  */
39489 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39491 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39492
39493 /* System header to define __stub macros and hopefully few prototypes,
39494     which can conflict with char pthread_attr_setstacksize (); below.
39495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39496     <limits.h> exists even on freestanding compilers.  */
39497
39498 #ifdef __STDC__
39499 # include <limits.h>
39500 #else
39501 # include <assert.h>
39502 #endif
39503
39504 #undef pthread_attr_setstacksize
39505
39506 /* Override any GCC internal prototype to avoid an error.
39507    Use char because int might match the return type of a GCC
39508    builtin and then its argument prototype would still apply.  */
39509 #ifdef __cplusplus
39510 extern "C"
39511 #endif
39512 char pthread_attr_setstacksize ();
39513 /* The GNU C library defines this for functions which it implements
39514     to always fail with ENOSYS.  Some functions are actually named
39515     something starting with __ and the normal name is an alias.  */
39516 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39517 choke me
39518 #endif
39519
39520 int
39521 main ()
39522 {
39523 return pthread_attr_setstacksize ();
39524   ;
39525   return 0;
39526 }
39527 _ACEOF
39528 rm -f conftest.$ac_objext conftest$ac_exeext
39529 if { (ac_try="$ac_link"
39530 case "(($ac_try" in
39531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39532   *) ac_try_echo=$ac_try;;
39533 esac
39534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39535   (eval "$ac_link") 2>conftest.er1
39536   ac_status=$?
39537   grep -v '^ *+' conftest.er1 >conftest.err
39538   rm -f conftest.er1
39539   cat conftest.err >&5
39540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541   (exit $ac_status); } && {
39542          test -z "$ac_c_werror_flag" ||
39543          test ! -s conftest.err
39544        } && test -s conftest$ac_exeext &&
39545        $as_test_x conftest$ac_exeext; then
39546   ac_cv_func_pthread_attr_setstacksize=yes
39547 else
39548   echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39550
39551         ac_cv_func_pthread_attr_setstacksize=no
39552 fi
39553
39554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39555       conftest$ac_exeext conftest.$ac_ext
39556 fi
39557 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39558 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
39559 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39560   cat >>confdefs.h <<\_ACEOF
39561 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39562 _ACEOF
39563
39564 fi
39565
39566
39567
39568       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39569 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
39570 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39571   echo $ECHO_N "(cached) $ECHO_C" >&6
39572 else
39573
39574         cat >conftest.$ac_ext <<_ACEOF
39575 /* confdefs.h.  */
39576 _ACEOF
39577 cat confdefs.h >>conftest.$ac_ext
39578 cat >>conftest.$ac_ext <<_ACEOF
39579 /* end confdefs.h.  */
39580 #include <pthread.h>
39581 int
39582 main ()
39583 {
39584
39585                pthread_mutexattr_t attr;
39586                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39587
39588   ;
39589   return 0;
39590 }
39591 _ACEOF
39592 rm -f conftest.$ac_objext
39593 if { (ac_try="$ac_compile"
39594 case "(($ac_try" in
39595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39596   *) ac_try_echo=$ac_try;;
39597 esac
39598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39599   (eval "$ac_compile") 2>conftest.er1
39600   ac_status=$?
39601   grep -v '^ *+' conftest.er1 >conftest.err
39602   rm -f conftest.er1
39603   cat conftest.err >&5
39604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605   (exit $ac_status); } && {
39606          test -z "$ac_c_werror_flag" ||
39607          test ! -s conftest.err
39608        } && test -s conftest.$ac_objext; then
39609   wx_cv_type_pthread_mutexattr_t=yes
39610 else
39611   echo "$as_me: failed program was:" >&5
39612 sed 's/^/| /' conftest.$ac_ext >&5
39613
39614         wx_cv_type_pthread_mutexattr_t=no
39615
39616 fi
39617
39618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39619
39620 fi
39621 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39622 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
39623
39624       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39625         cat >>confdefs.h <<\_ACEOF
39626 #define HAVE_PTHREAD_MUTEXATTR_T 1
39627 _ACEOF
39628
39629
39630                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39631 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
39632 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39633   echo $ECHO_N "(cached) $ECHO_C" >&6
39634 else
39635
39636                        cat >conftest.$ac_ext <<_ACEOF
39637 /* confdefs.h.  */
39638 _ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h.  */
39642 #include <pthread.h>
39643 int
39644 main ()
39645 {
39646
39647                                pthread_mutexattr_t attr;
39648                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39649
39650   ;
39651   return 0;
39652 }
39653 _ACEOF
39654 rm -f conftest.$ac_objext
39655 if { (ac_try="$ac_compile"
39656 case "(($ac_try" in
39657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39658   *) ac_try_echo=$ac_try;;
39659 esac
39660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39661   (eval "$ac_compile") 2>conftest.er1
39662   ac_status=$?
39663   grep -v '^ *+' conftest.er1 >conftest.err
39664   rm -f conftest.er1
39665   cat conftest.err >&5
39666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667   (exit $ac_status); } && {
39668          test -z "$ac_c_werror_flag" ||
39669          test ! -s conftest.err
39670        } && test -s conftest.$ac_objext; then
39671   wx_cv_func_pthread_mutexattr_settype_decl=yes
39672 else
39673   echo "$as_me: failed program was:" >&5
39674 sed 's/^/| /' conftest.$ac_ext >&5
39675
39676         wx_cv_func_pthread_mutexattr_settype_decl=no
39677
39678 fi
39679
39680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39681
39682 fi
39683 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39684 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
39685         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39686             cat >>confdefs.h <<\_ACEOF
39687 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39688 _ACEOF
39689
39690         fi
39691       else
39692                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39693 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
39694 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39695   echo $ECHO_N "(cached) $ECHO_C" >&6
39696 else
39697
39698             cat >conftest.$ac_ext <<_ACEOF
39699 /* confdefs.h.  */
39700 _ACEOF
39701 cat confdefs.h >>conftest.$ac_ext
39702 cat >>conftest.$ac_ext <<_ACEOF
39703 /* end confdefs.h.  */
39704 #include <pthread.h>
39705 int
39706 main ()
39707 {
39708
39709                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39710
39711   ;
39712   return 0;
39713 }
39714 _ACEOF
39715 rm -f conftest.$ac_objext
39716 if { (ac_try="$ac_compile"
39717 case "(($ac_try" in
39718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39719   *) ac_try_echo=$ac_try;;
39720 esac
39721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39722   (eval "$ac_compile") 2>conftest.er1
39723   ac_status=$?
39724   grep -v '^ *+' conftest.er1 >conftest.err
39725   rm -f conftest.er1
39726   cat conftest.err >&5
39727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728   (exit $ac_status); } && {
39729          test -z "$ac_c_werror_flag" ||
39730          test ! -s conftest.err
39731        } && test -s conftest.$ac_objext; then
39732
39733                     wx_cv_type_pthread_rec_mutex_init=yes
39734
39735 else
39736   echo "$as_me: failed program was:" >&5
39737 sed 's/^/| /' conftest.$ac_ext >&5
39738
39739
39740                     wx_cv_type_pthread_rec_mutex_init=no
39741
39742
39743 fi
39744
39745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39746
39747 fi
39748 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39749 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
39750         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39751           cat >>confdefs.h <<\_ACEOF
39752 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39753 _ACEOF
39754
39755         else
39756                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39757 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39758         fi
39759       fi
39760     fi
39761
39762 else
39763     if test "$wxUSE_THREADS" = "yes" ; then
39764       case "${host}" in
39765         *-*-mingw32* )
39766                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39767 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
39768 if test "${wx_cv_cflags_mthread+set}" = set; then
39769   echo $ECHO_N "(cached) $ECHO_C" >&6
39770 else
39771
39772                     CFLAGS_OLD="$CFLAGS"
39773                     CFLAGS="-mthreads $CFLAGS"
39774                     cat >conftest.$ac_ext <<_ACEOF
39775 /* confdefs.h.  */
39776 _ACEOF
39777 cat confdefs.h >>conftest.$ac_ext
39778 cat >>conftest.$ac_ext <<_ACEOF
39779 /* end confdefs.h.  */
39780
39781 int
39782 main ()
39783 {
39784
39785   ;
39786   return 0;
39787 }
39788 _ACEOF
39789 rm -f conftest.$ac_objext
39790 if { (ac_try="$ac_compile"
39791 case "(($ac_try" in
39792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39793   *) ac_try_echo=$ac_try;;
39794 esac
39795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39796   (eval "$ac_compile") 2>conftest.er1
39797   ac_status=$?
39798   grep -v '^ *+' conftest.er1 >conftest.err
39799   rm -f conftest.er1
39800   cat conftest.err >&5
39801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802   (exit $ac_status); } && {
39803          test -z "$ac_c_werror_flag" ||
39804          test ! -s conftest.err
39805        } && test -s conftest.$ac_objext; then
39806   wx_cv_cflags_mthread=yes
39807 else
39808   echo "$as_me: failed program was:" >&5
39809 sed 's/^/| /' conftest.$ac_ext >&5
39810
39811         wx_cv_cflags_mthread=no
39812
39813 fi
39814
39815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39816
39817
39818 fi
39819 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39820 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
39821
39822             if test "$wx_cv_cflags_mthread" = "yes"; then
39823                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
39824                 LDFLAGS="$LDFLAGS -mthreads"
39825             else
39826                                 CFLAGS="$CFLAGS_OLD"
39827             fi
39828         ;;
39829         *-pc-os2*emx )
39830             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39831             LDFLAGS="$LDFLAGS -Zmt"
39832         ;;
39833       esac
39834     fi
39835 fi
39836
39837 { echo "$as_me:$LINENO: checking for localtime_r" >&5
39838 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
39839 if test "${ac_cv_func_localtime_r+set}" = set; then
39840   echo $ECHO_N "(cached) $ECHO_C" >&6
39841 else
39842   cat >conftest.$ac_ext <<_ACEOF
39843 /* confdefs.h.  */
39844 _ACEOF
39845 cat confdefs.h >>conftest.$ac_ext
39846 cat >>conftest.$ac_ext <<_ACEOF
39847 /* end confdefs.h.  */
39848 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39850 #define localtime_r innocuous_localtime_r
39851
39852 /* System header to define __stub macros and hopefully few prototypes,
39853     which can conflict with char localtime_r (); below.
39854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39855     <limits.h> exists even on freestanding compilers.  */
39856
39857 #ifdef __STDC__
39858 # include <limits.h>
39859 #else
39860 # include <assert.h>
39861 #endif
39862
39863 #undef localtime_r
39864
39865 /* Override any GCC internal prototype to avoid an error.
39866    Use char because int might match the return type of a GCC
39867    builtin and then its argument prototype would still apply.  */
39868 #ifdef __cplusplus
39869 extern "C"
39870 #endif
39871 char localtime_r ();
39872 /* The GNU C library defines this for functions which it implements
39873     to always fail with ENOSYS.  Some functions are actually named
39874     something starting with __ and the normal name is an alias.  */
39875 #if defined __stub_localtime_r || defined __stub___localtime_r
39876 choke me
39877 #endif
39878
39879 int
39880 main ()
39881 {
39882 return localtime_r ();
39883   ;
39884   return 0;
39885 }
39886 _ACEOF
39887 rm -f conftest.$ac_objext conftest$ac_exeext
39888 if { (ac_try="$ac_link"
39889 case "(($ac_try" in
39890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39891   *) ac_try_echo=$ac_try;;
39892 esac
39893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39894   (eval "$ac_link") 2>conftest.er1
39895   ac_status=$?
39896   grep -v '^ *+' conftest.er1 >conftest.err
39897   rm -f conftest.er1
39898   cat conftest.err >&5
39899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); } && {
39901          test -z "$ac_c_werror_flag" ||
39902          test ! -s conftest.err
39903        } && test -s conftest$ac_exeext &&
39904        $as_test_x conftest$ac_exeext; then
39905   ac_cv_func_localtime_r=yes
39906 else
39907   echo "$as_me: failed program was:" >&5
39908 sed 's/^/| /' conftest.$ac_ext >&5
39909
39910         ac_cv_func_localtime_r=no
39911 fi
39912
39913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39914       conftest$ac_exeext conftest.$ac_ext
39915 fi
39916 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39917 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
39918 if test $ac_cv_func_localtime_r = yes; then
39919    cat >>confdefs.h <<\_ACEOF
39920 #define HAVE_LOCALTIME_R 1
39921 _ACEOF
39922
39923 fi
39924
39925 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
39926 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
39927 if test "${ac_cv_func_gmtime_r+set}" = set; then
39928   echo $ECHO_N "(cached) $ECHO_C" >&6
39929 else
39930   cat >conftest.$ac_ext <<_ACEOF
39931 /* confdefs.h.  */
39932 _ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h.  */
39936 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39938 #define gmtime_r innocuous_gmtime_r
39939
39940 /* System header to define __stub macros and hopefully few prototypes,
39941     which can conflict with char gmtime_r (); below.
39942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39943     <limits.h> exists even on freestanding compilers.  */
39944
39945 #ifdef __STDC__
39946 # include <limits.h>
39947 #else
39948 # include <assert.h>
39949 #endif
39950
39951 #undef gmtime_r
39952
39953 /* Override any GCC internal prototype to avoid an error.
39954    Use char because int might match the return type of a GCC
39955    builtin and then its argument prototype would still apply.  */
39956 #ifdef __cplusplus
39957 extern "C"
39958 #endif
39959 char gmtime_r ();
39960 /* The GNU C library defines this for functions which it implements
39961     to always fail with ENOSYS.  Some functions are actually named
39962     something starting with __ and the normal name is an alias.  */
39963 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39964 choke me
39965 #endif
39966
39967 int
39968 main ()
39969 {
39970 return gmtime_r ();
39971   ;
39972   return 0;
39973 }
39974 _ACEOF
39975 rm -f conftest.$ac_objext conftest$ac_exeext
39976 if { (ac_try="$ac_link"
39977 case "(($ac_try" in
39978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39979   *) ac_try_echo=$ac_try;;
39980 esac
39981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39982   (eval "$ac_link") 2>conftest.er1
39983   ac_status=$?
39984   grep -v '^ *+' conftest.er1 >conftest.err
39985   rm -f conftest.er1
39986   cat conftest.err >&5
39987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39988   (exit $ac_status); } && {
39989          test -z "$ac_c_werror_flag" ||
39990          test ! -s conftest.err
39991        } && test -s conftest$ac_exeext &&
39992        $as_test_x conftest$ac_exeext; then
39993   ac_cv_func_gmtime_r=yes
39994 else
39995   echo "$as_me: failed program was:" >&5
39996 sed 's/^/| /' conftest.$ac_ext >&5
39997
39998         ac_cv_func_gmtime_r=no
39999 fi
40000
40001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40002       conftest$ac_exeext conftest.$ac_ext
40003 fi
40004 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40005 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40006 if test $ac_cv_func_gmtime_r = yes; then
40007    cat >>confdefs.h <<\_ACEOF
40008 #define HAVE_GMTIME_R 1
40009 _ACEOF
40010
40011 fi
40012
40013
40014
40015
40016     ac_ext=c
40017 ac_cpp='$CPP $CPPFLAGS'
40018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40021
40022     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40023 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40024
40025     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40026   echo $ECHO_N "(cached) $ECHO_C" >&6
40027 else
40028
40029
40030 ################################################################
40031
40032 ac_cv_func_which_gethostbyname_r=unknown
40033
40034 #
40035 # ONE ARGUMENT (sanity check)
40036 #
40037
40038 # This should fail, as there is no variant of gethostbyname_r() that takes
40039 # a single argument. If it actually compiles, then we can assume that
40040 # netdb.h is not declaring the function, and the compiler is thereby
40041 # assuming an implicit prototype. In which case, we're out of luck.
40042 #
40043 cat >conftest.$ac_ext <<_ACEOF
40044 /* confdefs.h.  */
40045 _ACEOF
40046 cat confdefs.h >>conftest.$ac_ext
40047 cat >>conftest.$ac_ext <<_ACEOF
40048 /* end confdefs.h.  */
40049 #include <netdb.h>
40050 int
40051 main ()
40052 {
40053
40054             char *name = "www.gnu.org";
40055             (void)gethostbyname_r(name) /* ; */
40056
40057   ;
40058   return 0;
40059 }
40060 _ACEOF
40061 rm -f conftest.$ac_objext
40062 if { (ac_try="$ac_compile"
40063 case "(($ac_try" in
40064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40065   *) ac_try_echo=$ac_try;;
40066 esac
40067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40068   (eval "$ac_compile") 2>conftest.er1
40069   ac_status=$?
40070   grep -v '^ *+' conftest.er1 >conftest.err
40071   rm -f conftest.er1
40072   cat conftest.err >&5
40073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074   (exit $ac_status); } && {
40075          test -z "$ac_c_werror_flag" ||
40076          test ! -s conftest.err
40077        } && test -s conftest.$ac_objext; then
40078   ac_cv_func_which_gethostbyname_r=no
40079 else
40080   echo "$as_me: failed program was:" >&5
40081 sed 's/^/| /' conftest.$ac_ext >&5
40082
40083
40084 fi
40085
40086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40087
40088 #
40089 # SIX ARGUMENTS
40090 # (e.g. Linux)
40091 #
40092
40093 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40094
40095 cat >conftest.$ac_ext <<_ACEOF
40096 /* confdefs.h.  */
40097 _ACEOF
40098 cat confdefs.h >>conftest.$ac_ext
40099 cat >>conftest.$ac_ext <<_ACEOF
40100 /* end confdefs.h.  */
40101 #include <netdb.h>
40102 int
40103 main ()
40104 {
40105
40106             char *name = "www.gnu.org";
40107             struct hostent ret, *retp;
40108             char buf[1024];
40109             int buflen = 1024;
40110             int my_h_errno;
40111             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40112
40113   ;
40114   return 0;
40115 }
40116 _ACEOF
40117 rm -f conftest.$ac_objext
40118 if { (ac_try="$ac_compile"
40119 case "(($ac_try" in
40120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40121   *) ac_try_echo=$ac_try;;
40122 esac
40123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40124   (eval "$ac_compile") 2>conftest.er1
40125   ac_status=$?
40126   grep -v '^ *+' conftest.er1 >conftest.err
40127   rm -f conftest.er1
40128   cat conftest.err >&5
40129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130   (exit $ac_status); } && {
40131          test -z "$ac_c_werror_flag" ||
40132          test ! -s conftest.err
40133        } && test -s conftest.$ac_objext; then
40134   ac_cv_func_which_gethostbyname_r=six
40135 else
40136   echo "$as_me: failed program was:" >&5
40137 sed 's/^/| /' conftest.$ac_ext >&5
40138
40139
40140 fi
40141
40142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40143
40144 fi
40145
40146 #
40147 # FIVE ARGUMENTS
40148 # (e.g. Solaris)
40149 #
40150
40151 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40152
40153 cat >conftest.$ac_ext <<_ACEOF
40154 /* confdefs.h.  */
40155 _ACEOF
40156 cat confdefs.h >>conftest.$ac_ext
40157 cat >>conftest.$ac_ext <<_ACEOF
40158 /* end confdefs.h.  */
40159 #include <netdb.h>
40160 int
40161 main ()
40162 {
40163
40164             char *name = "www.gnu.org";
40165             struct hostent ret;
40166             char buf[1024];
40167             int buflen = 1024;
40168             int my_h_errno;
40169             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40170
40171   ;
40172   return 0;
40173 }
40174 _ACEOF
40175 rm -f conftest.$ac_objext
40176 if { (ac_try="$ac_compile"
40177 case "(($ac_try" in
40178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40179   *) ac_try_echo=$ac_try;;
40180 esac
40181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40182   (eval "$ac_compile") 2>conftest.er1
40183   ac_status=$?
40184   grep -v '^ *+' conftest.er1 >conftest.err
40185   rm -f conftest.er1
40186   cat conftest.err >&5
40187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40188   (exit $ac_status); } && {
40189          test -z "$ac_c_werror_flag" ||
40190          test ! -s conftest.err
40191        } && test -s conftest.$ac_objext; then
40192   ac_cv_func_which_gethostbyname_r=five
40193 else
40194   echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40196
40197
40198 fi
40199
40200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40201
40202 fi
40203
40204 #
40205 # THREE ARGUMENTS
40206 # (e.g. AIX, HP-UX, Tru64)
40207 #
40208
40209 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40210
40211 cat >conftest.$ac_ext <<_ACEOF
40212 /* confdefs.h.  */
40213 _ACEOF
40214 cat confdefs.h >>conftest.$ac_ext
40215 cat >>conftest.$ac_ext <<_ACEOF
40216 /* end confdefs.h.  */
40217 #include <netdb.h>
40218 int
40219 main ()
40220 {
40221
40222             char *name = "www.gnu.org";
40223             struct hostent ret;
40224             struct hostent_data data;
40225             (void)gethostbyname_r(name, &ret, &data) /* ; */
40226
40227   ;
40228   return 0;
40229 }
40230 _ACEOF
40231 rm -f conftest.$ac_objext
40232 if { (ac_try="$ac_compile"
40233 case "(($ac_try" in
40234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40235   *) ac_try_echo=$ac_try;;
40236 esac
40237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40238   (eval "$ac_compile") 2>conftest.er1
40239   ac_status=$?
40240   grep -v '^ *+' conftest.er1 >conftest.err
40241   rm -f conftest.er1
40242   cat conftest.err >&5
40243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244   (exit $ac_status); } && {
40245          test -z "$ac_c_werror_flag" ||
40246          test ! -s conftest.err
40247        } && test -s conftest.$ac_objext; then
40248   ac_cv_func_which_gethostbyname_r=three
40249 else
40250   echo "$as_me: failed program was:" >&5
40251 sed 's/^/| /' conftest.$ac_ext >&5
40252
40253
40254 fi
40255
40256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40257
40258 fi
40259
40260 ################################################################
40261
40262
40263 fi
40264
40265 case "$ac_cv_func_which_gethostbyname_r" in
40266     three)
40267     { echo "$as_me:$LINENO: result: three" >&5
40268 echo "${ECHO_T}three" >&6; }
40269     cat >>confdefs.h <<\_ACEOF
40270 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40271 _ACEOF
40272
40273     ;;
40274
40275     five)
40276     { echo "$as_me:$LINENO: result: five" >&5
40277 echo "${ECHO_T}five" >&6; }
40278     cat >>confdefs.h <<\_ACEOF
40279 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40280 _ACEOF
40281
40282     ;;
40283
40284     six)
40285     { echo "$as_me:$LINENO: result: six" >&5
40286 echo "${ECHO_T}six" >&6; }
40287     cat >>confdefs.h <<\_ACEOF
40288 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40289 _ACEOF
40290
40291     ;;
40292
40293     no)
40294     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40295 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40296     ;;
40297
40298     unknown)
40299     { echo "$as_me:$LINENO: result: can't tell" >&5
40300 echo "${ECHO_T}can't tell" >&6; }
40301     ;;
40302
40303     *)
40304     { { echo "$as_me:$LINENO: error: internal error" >&5
40305 echo "$as_me: error: internal error" >&2;}
40306    { (exit 1); exit 1; }; }
40307     ;;
40308 esac
40309
40310 ac_ext=c
40311 ac_cpp='$CPP $CPPFLAGS'
40312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40315
40316
40317
40318       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40319               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40320           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40321 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40322 if test "${ac_cv_func_gethostbyname+set}" = set; then
40323   echo $ECHO_N "(cached) $ECHO_C" >&6
40324 else
40325   cat >conftest.$ac_ext <<_ACEOF
40326 /* confdefs.h.  */
40327 _ACEOF
40328 cat confdefs.h >>conftest.$ac_ext
40329 cat >>conftest.$ac_ext <<_ACEOF
40330 /* end confdefs.h.  */
40331 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40333 #define gethostbyname innocuous_gethostbyname
40334
40335 /* System header to define __stub macros and hopefully few prototypes,
40336     which can conflict with char gethostbyname (); below.
40337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40338     <limits.h> exists even on freestanding compilers.  */
40339
40340 #ifdef __STDC__
40341 # include <limits.h>
40342 #else
40343 # include <assert.h>
40344 #endif
40345
40346 #undef gethostbyname
40347
40348 /* Override any GCC internal prototype to avoid an error.
40349    Use char because int might match the return type of a GCC
40350    builtin and then its argument prototype would still apply.  */
40351 #ifdef __cplusplus
40352 extern "C"
40353 #endif
40354 char gethostbyname ();
40355 /* The GNU C library defines this for functions which it implements
40356     to always fail with ENOSYS.  Some functions are actually named
40357     something starting with __ and the normal name is an alias.  */
40358 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40359 choke me
40360 #endif
40361
40362 int
40363 main ()
40364 {
40365 return gethostbyname ();
40366   ;
40367   return 0;
40368 }
40369 _ACEOF
40370 rm -f conftest.$ac_objext conftest$ac_exeext
40371 if { (ac_try="$ac_link"
40372 case "(($ac_try" in
40373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40374   *) ac_try_echo=$ac_try;;
40375 esac
40376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40377   (eval "$ac_link") 2>conftest.er1
40378   ac_status=$?
40379   grep -v '^ *+' conftest.er1 >conftest.err
40380   rm -f conftest.er1
40381   cat conftest.err >&5
40382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383   (exit $ac_status); } && {
40384          test -z "$ac_c_werror_flag" ||
40385          test ! -s conftest.err
40386        } && test -s conftest$ac_exeext &&
40387        $as_test_x conftest$ac_exeext; then
40388   ac_cv_func_gethostbyname=yes
40389 else
40390   echo "$as_me: failed program was:" >&5
40391 sed 's/^/| /' conftest.$ac_ext >&5
40392
40393         ac_cv_func_gethostbyname=no
40394 fi
40395
40396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40397       conftest$ac_exeext conftest.$ac_ext
40398 fi
40399 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40400 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40401 if test $ac_cv_func_gethostbyname = yes; then
40402    cat >>confdefs.h <<\_ACEOF
40403 #define HAVE_GETHOSTBYNAME 1
40404 _ACEOF
40405
40406 fi
40407
40408       fi
40409
40410 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40411 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40412 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40413   echo $ECHO_N "(cached) $ECHO_C" >&6
40414 else
40415
40416                 ac_ext=cpp
40417 ac_cpp='$CXXCPP $CPPFLAGS'
40418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40421
40422
40423         cat >conftest.$ac_ext <<_ACEOF
40424 /* confdefs.h.  */
40425 _ACEOF
40426 cat confdefs.h >>conftest.$ac_ext
40427 cat >>conftest.$ac_ext <<_ACEOF
40428 /* end confdefs.h.  */
40429 #include <netdb.h>
40430 int
40431 main ()
40432 {
40433
40434                 char *name;
40435                 char *proto;
40436                 struct servent *se, *res;
40437                 char buffer[2048];
40438                 int buflen = 2048;
40439                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40440
40441   ;
40442   return 0;
40443 }
40444 _ACEOF
40445 rm -f conftest.$ac_objext
40446 if { (ac_try="$ac_compile"
40447 case "(($ac_try" in
40448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40449   *) ac_try_echo=$ac_try;;
40450 esac
40451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40452   (eval "$ac_compile") 2>conftest.er1
40453   ac_status=$?
40454   grep -v '^ *+' conftest.er1 >conftest.err
40455   rm -f conftest.er1
40456   cat conftest.err >&5
40457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458   (exit $ac_status); } && {
40459          test -z "$ac_cxx_werror_flag" ||
40460          test ! -s conftest.err
40461        } && test -s conftest.$ac_objext; then
40462   ac_cv_func_which_getservbyname_r=six
40463 else
40464   echo "$as_me: failed program was:" >&5
40465 sed 's/^/| /' conftest.$ac_ext >&5
40466
40467
40468                 cat >conftest.$ac_ext <<_ACEOF
40469 /* confdefs.h.  */
40470 _ACEOF
40471 cat confdefs.h >>conftest.$ac_ext
40472 cat >>conftest.$ac_ext <<_ACEOF
40473 /* end confdefs.h.  */
40474 #include <netdb.h>
40475 int
40476 main ()
40477 {
40478
40479                         char *name;
40480                         char *proto;
40481                         struct servent *se;
40482                         char buffer[2048];
40483                         int buflen = 2048;
40484                         (void) getservbyname_r(name, proto, se, buffer, buflen)
40485
40486   ;
40487   return 0;
40488 }
40489 _ACEOF
40490 rm -f conftest.$ac_objext
40491 if { (ac_try="$ac_compile"
40492 case "(($ac_try" in
40493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40494   *) ac_try_echo=$ac_try;;
40495 esac
40496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40497   (eval "$ac_compile") 2>conftest.er1
40498   ac_status=$?
40499   grep -v '^ *+' conftest.er1 >conftest.err
40500   rm -f conftest.er1
40501   cat conftest.err >&5
40502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503   (exit $ac_status); } && {
40504          test -z "$ac_cxx_werror_flag" ||
40505          test ! -s conftest.err
40506        } && test -s conftest.$ac_objext; then
40507   ac_cv_func_which_getservbyname_r=five
40508 else
40509   echo "$as_me: failed program was:" >&5
40510 sed 's/^/| /' conftest.$ac_ext >&5
40511
40512
40513                         cat >conftest.$ac_ext <<_ACEOF
40514 /* confdefs.h.  */
40515 _ACEOF
40516 cat confdefs.h >>conftest.$ac_ext
40517 cat >>conftest.$ac_ext <<_ACEOF
40518 /* end confdefs.h.  */
40519 #include <netdb.h>
40520 int
40521 main ()
40522 {
40523
40524                                 char *name;
40525                                 char *proto;
40526                                 struct servent *se;
40527                                 struct servent_data data;
40528                                 (void) getservbyname_r(name, proto, se, &data);
40529
40530   ;
40531   return 0;
40532 }
40533 _ACEOF
40534 rm -f conftest.$ac_objext
40535 if { (ac_try="$ac_compile"
40536 case "(($ac_try" in
40537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40538   *) ac_try_echo=$ac_try;;
40539 esac
40540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40541   (eval "$ac_compile") 2>conftest.er1
40542   ac_status=$?
40543   grep -v '^ *+' conftest.er1 >conftest.err
40544   rm -f conftest.er1
40545   cat conftest.err >&5
40546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40547   (exit $ac_status); } && {
40548          test -z "$ac_cxx_werror_flag" ||
40549          test ! -s conftest.err
40550        } && test -s conftest.$ac_objext; then
40551   ac_cv_func_which_getservbyname_r=four
40552 else
40553   echo "$as_me: failed program was:" >&5
40554 sed 's/^/| /' conftest.$ac_ext >&5
40555
40556         ac_cv_func_which_getservbyname_r=no
40557
40558 fi
40559
40560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40561
40562
40563 fi
40564
40565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40566
40567
40568 fi
40569
40570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40571         ac_ext=c
40572 ac_cpp='$CPP $CPPFLAGS'
40573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40576
40577
40578
40579 fi
40580 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40581 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
40582
40583 if test $ac_cv_func_which_getservbyname_r = six; then
40584   cat >>confdefs.h <<\_ACEOF
40585 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40586 _ACEOF
40587
40588 elif test $ac_cv_func_which_getservbyname_r = five; then
40589   cat >>confdefs.h <<\_ACEOF
40590 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40591 _ACEOF
40592
40593 elif test $ac_cv_func_which_getservbyname_r = four; then
40594   cat >>confdefs.h <<\_ACEOF
40595 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40596 _ACEOF
40597
40598 fi
40599
40600
40601       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40602               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40603
40604 for ac_func in getservbyname
40605 do
40606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40610   echo $ECHO_N "(cached) $ECHO_C" >&6
40611 else
40612   cat >conftest.$ac_ext <<_ACEOF
40613 /* confdefs.h.  */
40614 _ACEOF
40615 cat confdefs.h >>conftest.$ac_ext
40616 cat >>conftest.$ac_ext <<_ACEOF
40617 /* end confdefs.h.  */
40618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40620 #define $ac_func innocuous_$ac_func
40621
40622 /* System header to define __stub macros and hopefully few prototypes,
40623     which can conflict with char $ac_func (); below.
40624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40625     <limits.h> exists even on freestanding compilers.  */
40626
40627 #ifdef __STDC__
40628 # include <limits.h>
40629 #else
40630 # include <assert.h>
40631 #endif
40632
40633 #undef $ac_func
40634
40635 /* Override any GCC internal prototype to avoid an error.
40636    Use char because int might match the return type of a GCC
40637    builtin and then its argument prototype would still apply.  */
40638 #ifdef __cplusplus
40639 extern "C"
40640 #endif
40641 char $ac_func ();
40642 /* The GNU C library defines this for functions which it implements
40643     to always fail with ENOSYS.  Some functions are actually named
40644     something starting with __ and the normal name is an alias.  */
40645 #if defined __stub_$ac_func || defined __stub___$ac_func
40646 choke me
40647 #endif
40648
40649 int
40650 main ()
40651 {
40652 return $ac_func ();
40653   ;
40654   return 0;
40655 }
40656 _ACEOF
40657 rm -f conftest.$ac_objext conftest$ac_exeext
40658 if { (ac_try="$ac_link"
40659 case "(($ac_try" in
40660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40661   *) ac_try_echo=$ac_try;;
40662 esac
40663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40664   (eval "$ac_link") 2>conftest.er1
40665   ac_status=$?
40666   grep -v '^ *+' conftest.er1 >conftest.err
40667   rm -f conftest.er1
40668   cat conftest.err >&5
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); } && {
40671          test -z "$ac_c_werror_flag" ||
40672          test ! -s conftest.err
40673        } && test -s conftest$ac_exeext &&
40674        $as_test_x conftest$ac_exeext; then
40675   eval "$as_ac_var=yes"
40676 else
40677   echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40679
40680         eval "$as_ac_var=no"
40681 fi
40682
40683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40684       conftest$ac_exeext conftest.$ac_ext
40685 fi
40686 ac_res=`eval echo '${'$as_ac_var'}'`
40687                { echo "$as_me:$LINENO: result: $ac_res" >&5
40688 echo "${ECHO_T}$ac_res" >&6; }
40689 if test `eval echo '${'$as_ac_var'}'` = yes; then
40690   cat >>confdefs.h <<_ACEOF
40691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40692 _ACEOF
40693   cat >>confdefs.h <<\_ACEOF
40694 #define HAVE_GETSERVBYNAME 1
40695 _ACEOF
40696
40697 fi
40698 done
40699
40700       fi
40701
40702 if test "$wxUSE_THREADS" = "yes"; then
40703   cat >>confdefs.h <<\_ACEOF
40704 #define wxUSE_THREADS 1
40705 _ACEOF
40706
40707
40708   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40709 else
40710       if test "$wx_cv_func_strtok_r" = "yes"; then
40711     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40712 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
40713     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40714         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40715         { echo "$as_me:$LINENO: result: yes" >&5
40716 echo "${ECHO_T}yes" >&6; }
40717     else
40718         { echo "$as_me:$LINENO: result: no" >&5
40719 echo "${ECHO_T}no" >&6; }
40720     fi
40721   fi
40722 fi
40723
40724 if test "$WXGTK2" = 1 ; then
40725   cat >>confdefs.h <<_ACEOF
40726 #define __WXGTK20__ $WXGTK2
40727 _ACEOF
40728
40729   WXGTK12=1
40730 fi
40731
40732 if test "$WXGTK12" = 1 ; then
40733   cat >>confdefs.h <<_ACEOF
40734 #define __WXGTK12__ $WXGTK12
40735 _ACEOF
40736
40737 fi
40738
40739 if test "$WXGTK127" = 1 ; then
40740   cat >>confdefs.h <<_ACEOF
40741 #define __WXGTK127__ $WXGTK127
40742 _ACEOF
40743
40744 fi
40745
40746 if test "$WXGPE" = 1 ; then
40747   cat >>confdefs.h <<_ACEOF
40748 #define __WXGPE__ $WXGPE
40749 _ACEOF
40750
40751 fi
40752
40753 DEBUG_CFLAGS=
40754 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40755     DEBUG_CFLAGS="-g"
40756     wxUSE_OPTIMISE=no
40757 fi
40758
40759 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40760     wxUSE_DEBUG_INFO=yes
40761     if test "$GCC" = yes; then
40762         DEBUG_CFLAGS="-ggdb"
40763     fi
40764 fi
40765
40766 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40767     cat >>confdefs.h <<\_ACEOF
40768 #define WXDEBUG 1
40769 _ACEOF
40770
40771     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40772 else
40773     if test "$wxUSE_GTK" = 1 ; then
40774         if test "x$wxGTK_VERSION" = "x1" ; then
40775             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40776         fi
40777     fi
40778 fi
40779
40780 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40781     cat >>confdefs.h <<\_ACEOF
40782 #define wxUSE_MEMORY_TRACING 1
40783 _ACEOF
40784
40785     cat >>confdefs.h <<\_ACEOF
40786 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40787 _ACEOF
40788
40789     cat >>confdefs.h <<\_ACEOF
40790 #define wxUSE_DEBUG_NEW_ALWAYS 1
40791 _ACEOF
40792
40793     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40794 fi
40795
40796 if test "$wxUSE_DMALLOC" = "yes" ; then
40797     DMALLOC_LIBS="-ldmallocthcxx"
40798 fi
40799
40800 PROFILE_FLAGS=
40801 if test "$wxUSE_PROFILE" = "yes" ; then
40802     PROFILE_FLAGS=" -pg"
40803 fi
40804
40805 if test "$GCC" = "yes" ; then
40806     if test "$wxUSE_NO_RTTI" = "yes" ; then
40807         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40808     fi
40809     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40810         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40811     fi
40812     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40813         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40814     fi
40815
40816                                                 case "${host}" in
40817       powerpc*-*-aix* )
40818         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40819         ;;
40820       *-hppa* )
40821         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40822         ;;
40823     esac
40824 fi
40825
40826 OPTIMISE_CFLAGS=
40827 if test "$wxUSE_OPTIMISE" = "no" ; then
40828     if test "$GCC" = yes ; then
40829                         OPTIMISE_CFLAGS="-O0"
40830     fi
40831 else
40832     if test "$GCC" = yes ; then
40833         case "${host}" in
40834             *-pc-os2_emx | *-pc-os2-emx )
40835                                                 OPTIMISE_CFLAGS="-O2"
40836             ;;
40837             *)
40838                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40839             ;;
40840         esac
40841     else
40842         OPTIMISE_CFLAGS="-O"
40843     fi
40844 fi
40845
40846
40847 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
40848     cat >>confdefs.h <<\_ACEOF
40849 #define WXWIN_COMPATIBILITY_2_6 1
40850 _ACEOF
40851
40852
40853     WXWIN_COMPATIBILITY_2_8="yes"
40854 fi
40855
40856 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
40857     cat >>confdefs.h <<\_ACEOF
40858 #define WXWIN_COMPATIBILITY_2_8 1
40859 _ACEOF
40860
40861 fi
40862
40863
40864 if test "$wxUSE_GUI" = "yes"; then
40865     cat >>confdefs.h <<\_ACEOF
40866 #define wxUSE_GUI 1
40867 _ACEOF
40868
40869
40870                                             fi
40871
40872
40873 if test "$wxUSE_UNIX" = "yes"; then
40874   cat >>confdefs.h <<\_ACEOF
40875 #define wxUSE_UNIX 1
40876 _ACEOF
40877
40878 fi
40879
40880
40881 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40882
40883     HAVE_DL_FUNCS=0
40884     HAVE_SHL_FUNCS=0
40885     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40886         if test "$USE_DARWIN" = 1; then
40887                         HAVE_DL_FUNCS=1
40888         elif test "$USE_DOS" = 1; then
40889             HAVE_DL_FUNCS=0
40890         else
40891
40892 for ac_func in dlopen
40893 do
40894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40898   echo $ECHO_N "(cached) $ECHO_C" >&6
40899 else
40900   cat >conftest.$ac_ext <<_ACEOF
40901 /* confdefs.h.  */
40902 _ACEOF
40903 cat confdefs.h >>conftest.$ac_ext
40904 cat >>conftest.$ac_ext <<_ACEOF
40905 /* end confdefs.h.  */
40906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40908 #define $ac_func innocuous_$ac_func
40909
40910 /* System header to define __stub macros and hopefully few prototypes,
40911     which can conflict with char $ac_func (); below.
40912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40913     <limits.h> exists even on freestanding compilers.  */
40914
40915 #ifdef __STDC__
40916 # include <limits.h>
40917 #else
40918 # include <assert.h>
40919 #endif
40920
40921 #undef $ac_func
40922
40923 /* Override any GCC internal prototype to avoid an error.
40924    Use char because int might match the return type of a GCC
40925    builtin and then its argument prototype would still apply.  */
40926 #ifdef __cplusplus
40927 extern "C"
40928 #endif
40929 char $ac_func ();
40930 /* The GNU C library defines this for functions which it implements
40931     to always fail with ENOSYS.  Some functions are actually named
40932     something starting with __ and the normal name is an alias.  */
40933 #if defined __stub_$ac_func || defined __stub___$ac_func
40934 choke me
40935 #endif
40936
40937 int
40938 main ()
40939 {
40940 return $ac_func ();
40941   ;
40942   return 0;
40943 }
40944 _ACEOF
40945 rm -f conftest.$ac_objext conftest$ac_exeext
40946 if { (ac_try="$ac_link"
40947 case "(($ac_try" in
40948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40949   *) ac_try_echo=$ac_try;;
40950 esac
40951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40952   (eval "$ac_link") 2>conftest.er1
40953   ac_status=$?
40954   grep -v '^ *+' conftest.er1 >conftest.err
40955   rm -f conftest.er1
40956   cat conftest.err >&5
40957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40958   (exit $ac_status); } && {
40959          test -z "$ac_c_werror_flag" ||
40960          test ! -s conftest.err
40961        } && test -s conftest$ac_exeext &&
40962        $as_test_x conftest$ac_exeext; then
40963   eval "$as_ac_var=yes"
40964 else
40965   echo "$as_me: failed program was:" >&5
40966 sed 's/^/| /' conftest.$ac_ext >&5
40967
40968         eval "$as_ac_var=no"
40969 fi
40970
40971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40972       conftest$ac_exeext conftest.$ac_ext
40973 fi
40974 ac_res=`eval echo '${'$as_ac_var'}'`
40975                { echo "$as_me:$LINENO: result: $ac_res" >&5
40976 echo "${ECHO_T}$ac_res" >&6; }
40977 if test `eval echo '${'$as_ac_var'}'` = yes; then
40978   cat >>confdefs.h <<_ACEOF
40979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40980 _ACEOF
40981
40982                 cat >>confdefs.h <<\_ACEOF
40983 #define HAVE_DLOPEN 1
40984 _ACEOF
40985
40986                 HAVE_DL_FUNCS=1
40987
40988 else
40989
40990                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40991 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
40992 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40993   echo $ECHO_N "(cached) $ECHO_C" >&6
40994 else
40995   ac_check_lib_save_LIBS=$LIBS
40996 LIBS="-ldl  $LIBS"
40997 cat >conftest.$ac_ext <<_ACEOF
40998 /* confdefs.h.  */
40999 _ACEOF
41000 cat confdefs.h >>conftest.$ac_ext
41001 cat >>conftest.$ac_ext <<_ACEOF
41002 /* end confdefs.h.  */
41003
41004 /* Override any GCC internal prototype to avoid an error.
41005    Use char because int might match the return type of a GCC
41006    builtin and then its argument prototype would still apply.  */
41007 #ifdef __cplusplus
41008 extern "C"
41009 #endif
41010 char dlopen ();
41011 int
41012 main ()
41013 {
41014 return dlopen ();
41015   ;
41016   return 0;
41017 }
41018 _ACEOF
41019 rm -f conftest.$ac_objext conftest$ac_exeext
41020 if { (ac_try="$ac_link"
41021 case "(($ac_try" in
41022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023   *) ac_try_echo=$ac_try;;
41024 esac
41025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41026   (eval "$ac_link") 2>conftest.er1
41027   ac_status=$?
41028   grep -v '^ *+' conftest.er1 >conftest.err
41029   rm -f conftest.er1
41030   cat conftest.err >&5
41031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032   (exit $ac_status); } && {
41033          test -z "$ac_c_werror_flag" ||
41034          test ! -s conftest.err
41035        } && test -s conftest$ac_exeext &&
41036        $as_test_x conftest$ac_exeext; then
41037   ac_cv_lib_dl_dlopen=yes
41038 else
41039   echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41041
41042         ac_cv_lib_dl_dlopen=no
41043 fi
41044
41045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41046       conftest$ac_exeext conftest.$ac_ext
41047 LIBS=$ac_check_lib_save_LIBS
41048 fi
41049 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41050 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41051 if test $ac_cv_lib_dl_dlopen = yes; then
41052
41053                                 cat >>confdefs.h <<\_ACEOF
41054 #define HAVE_DLOPEN 1
41055 _ACEOF
41056
41057                                 HAVE_DL_FUNCS=1
41058                                 DL_LINK=" -ldl$DL_LINK"
41059
41060 else
41061
41062
41063 for ac_func in shl_load
41064 do
41065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41069   echo $ECHO_N "(cached) $ECHO_C" >&6
41070 else
41071   cat >conftest.$ac_ext <<_ACEOF
41072 /* confdefs.h.  */
41073 _ACEOF
41074 cat confdefs.h >>conftest.$ac_ext
41075 cat >>conftest.$ac_ext <<_ACEOF
41076 /* end confdefs.h.  */
41077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41079 #define $ac_func innocuous_$ac_func
41080
41081 /* System header to define __stub macros and hopefully few prototypes,
41082     which can conflict with char $ac_func (); below.
41083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41084     <limits.h> exists even on freestanding compilers.  */
41085
41086 #ifdef __STDC__
41087 # include <limits.h>
41088 #else
41089 # include <assert.h>
41090 #endif
41091
41092 #undef $ac_func
41093
41094 /* Override any GCC internal prototype to avoid an error.
41095    Use char because int might match the return type of a GCC
41096    builtin and then its argument prototype would still apply.  */
41097 #ifdef __cplusplus
41098 extern "C"
41099 #endif
41100 char $ac_func ();
41101 /* The GNU C library defines this for functions which it implements
41102     to always fail with ENOSYS.  Some functions are actually named
41103     something starting with __ and the normal name is an alias.  */
41104 #if defined __stub_$ac_func || defined __stub___$ac_func
41105 choke me
41106 #endif
41107
41108 int
41109 main ()
41110 {
41111 return $ac_func ();
41112   ;
41113   return 0;
41114 }
41115 _ACEOF
41116 rm -f conftest.$ac_objext conftest$ac_exeext
41117 if { (ac_try="$ac_link"
41118 case "(($ac_try" in
41119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41120   *) ac_try_echo=$ac_try;;
41121 esac
41122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41123   (eval "$ac_link") 2>conftest.er1
41124   ac_status=$?
41125   grep -v '^ *+' conftest.er1 >conftest.err
41126   rm -f conftest.er1
41127   cat conftest.err >&5
41128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41129   (exit $ac_status); } && {
41130          test -z "$ac_c_werror_flag" ||
41131          test ! -s conftest.err
41132        } && test -s conftest$ac_exeext &&
41133        $as_test_x conftest$ac_exeext; then
41134   eval "$as_ac_var=yes"
41135 else
41136   echo "$as_me: failed program was:" >&5
41137 sed 's/^/| /' conftest.$ac_ext >&5
41138
41139         eval "$as_ac_var=no"
41140 fi
41141
41142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41143       conftest$ac_exeext conftest.$ac_ext
41144 fi
41145 ac_res=`eval echo '${'$as_ac_var'}'`
41146                { echo "$as_me:$LINENO: result: $ac_res" >&5
41147 echo "${ECHO_T}$ac_res" >&6; }
41148 if test `eval echo '${'$as_ac_var'}'` = yes; then
41149   cat >>confdefs.h <<_ACEOF
41150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41151 _ACEOF
41152
41153                                                 cat >>confdefs.h <<\_ACEOF
41154 #define HAVE_SHL_LOAD 1
41155 _ACEOF
41156
41157                                                 HAVE_SHL_FUNCS=1
41158
41159 else
41160
41161                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41162 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41163 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41164   echo $ECHO_N "(cached) $ECHO_C" >&6
41165 else
41166   ac_check_lib_save_LIBS=$LIBS
41167 LIBS="-lshl_load  $LIBS"
41168 cat >conftest.$ac_ext <<_ACEOF
41169 /* confdefs.h.  */
41170 _ACEOF
41171 cat confdefs.h >>conftest.$ac_ext
41172 cat >>conftest.$ac_ext <<_ACEOF
41173 /* end confdefs.h.  */
41174
41175 /* Override any GCC internal prototype to avoid an error.
41176    Use char because int might match the return type of a GCC
41177    builtin and then its argument prototype would still apply.  */
41178 #ifdef __cplusplus
41179 extern "C"
41180 #endif
41181 char dld ();
41182 int
41183 main ()
41184 {
41185 return dld ();
41186   ;
41187   return 0;
41188 }
41189 _ACEOF
41190 rm -f conftest.$ac_objext conftest$ac_exeext
41191 if { (ac_try="$ac_link"
41192 case "(($ac_try" in
41193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41194   *) ac_try_echo=$ac_try;;
41195 esac
41196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41197   (eval "$ac_link") 2>conftest.er1
41198   ac_status=$?
41199   grep -v '^ *+' conftest.er1 >conftest.err
41200   rm -f conftest.er1
41201   cat conftest.err >&5
41202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203   (exit $ac_status); } && {
41204          test -z "$ac_c_werror_flag" ||
41205          test ! -s conftest.err
41206        } && test -s conftest$ac_exeext &&
41207        $as_test_x conftest$ac_exeext; then
41208   ac_cv_lib_shl_load_dld=yes
41209 else
41210   echo "$as_me: failed program was:" >&5
41211 sed 's/^/| /' conftest.$ac_ext >&5
41212
41213         ac_cv_lib_shl_load_dld=no
41214 fi
41215
41216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41217       conftest$ac_exeext conftest.$ac_ext
41218 LIBS=$ac_check_lib_save_LIBS
41219 fi
41220 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41221 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41222 if test $ac_cv_lib_shl_load_dld = yes; then
41223
41224                                                                 HAVE_SHL_FUNCS=1
41225                                                                 DL_LINK=" -ldld$DL_LINK"
41226
41227 fi
41228
41229
41230 fi
41231 done
41232
41233
41234 fi
41235
41236
41237 fi
41238 done
41239
41240
41241                 if test "$HAVE_DL_FUNCS" = 1; then
41242
41243 for ac_func in dlerror
41244 do
41245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41249   echo $ECHO_N "(cached) $ECHO_C" >&6
41250 else
41251   cat >conftest.$ac_ext <<_ACEOF
41252 /* confdefs.h.  */
41253 _ACEOF
41254 cat confdefs.h >>conftest.$ac_ext
41255 cat >>conftest.$ac_ext <<_ACEOF
41256 /* end confdefs.h.  */
41257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41259 #define $ac_func innocuous_$ac_func
41260
41261 /* System header to define __stub macros and hopefully few prototypes,
41262     which can conflict with char $ac_func (); below.
41263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41264     <limits.h> exists even on freestanding compilers.  */
41265
41266 #ifdef __STDC__
41267 # include <limits.h>
41268 #else
41269 # include <assert.h>
41270 #endif
41271
41272 #undef $ac_func
41273
41274 /* Override any GCC internal prototype to avoid an error.
41275    Use char because int might match the return type of a GCC
41276    builtin and then its argument prototype would still apply.  */
41277 #ifdef __cplusplus
41278 extern "C"
41279 #endif
41280 char $ac_func ();
41281 /* The GNU C library defines this for functions which it implements
41282     to always fail with ENOSYS.  Some functions are actually named
41283     something starting with __ and the normal name is an alias.  */
41284 #if defined __stub_$ac_func || defined __stub___$ac_func
41285 choke me
41286 #endif
41287
41288 int
41289 main ()
41290 {
41291 return $ac_func ();
41292   ;
41293   return 0;
41294 }
41295 _ACEOF
41296 rm -f conftest.$ac_objext conftest$ac_exeext
41297 if { (ac_try="$ac_link"
41298 case "(($ac_try" in
41299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41300   *) ac_try_echo=$ac_try;;
41301 esac
41302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41303   (eval "$ac_link") 2>conftest.er1
41304   ac_status=$?
41305   grep -v '^ *+' conftest.er1 >conftest.err
41306   rm -f conftest.er1
41307   cat conftest.err >&5
41308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41309   (exit $ac_status); } && {
41310          test -z "$ac_c_werror_flag" ||
41311          test ! -s conftest.err
41312        } && test -s conftest$ac_exeext &&
41313        $as_test_x conftest$ac_exeext; then
41314   eval "$as_ac_var=yes"
41315 else
41316   echo "$as_me: failed program was:" >&5
41317 sed 's/^/| /' conftest.$ac_ext >&5
41318
41319         eval "$as_ac_var=no"
41320 fi
41321
41322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41323       conftest$ac_exeext conftest.$ac_ext
41324 fi
41325 ac_res=`eval echo '${'$as_ac_var'}'`
41326                { echo "$as_me:$LINENO: result: $ac_res" >&5
41327 echo "${ECHO_T}$ac_res" >&6; }
41328 if test `eval echo '${'$as_ac_var'}'` = yes; then
41329   cat >>confdefs.h <<_ACEOF
41330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41331 _ACEOF
41332  cat >>confdefs.h <<\_ACEOF
41333 #define HAVE_DLERROR 1
41334 _ACEOF
41335
41336 else
41337
41338                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41339 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41340 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41341   echo $ECHO_N "(cached) $ECHO_C" >&6
41342 else
41343   ac_check_lib_save_LIBS=$LIBS
41344 LIBS="-ldl  $LIBS"
41345 cat >conftest.$ac_ext <<_ACEOF
41346 /* confdefs.h.  */
41347 _ACEOF
41348 cat confdefs.h >>conftest.$ac_ext
41349 cat >>conftest.$ac_ext <<_ACEOF
41350 /* end confdefs.h.  */
41351
41352 /* Override any GCC internal prototype to avoid an error.
41353    Use char because int might match the return type of a GCC
41354    builtin and then its argument prototype would still apply.  */
41355 #ifdef __cplusplus
41356 extern "C"
41357 #endif
41358 char dlerror ();
41359 int
41360 main ()
41361 {
41362 return dlerror ();
41363   ;
41364   return 0;
41365 }
41366 _ACEOF
41367 rm -f conftest.$ac_objext conftest$ac_exeext
41368 if { (ac_try="$ac_link"
41369 case "(($ac_try" in
41370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41371   *) ac_try_echo=$ac_try;;
41372 esac
41373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41374   (eval "$ac_link") 2>conftest.er1
41375   ac_status=$?
41376   grep -v '^ *+' conftest.er1 >conftest.err
41377   rm -f conftest.er1
41378   cat conftest.err >&5
41379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380   (exit $ac_status); } && {
41381          test -z "$ac_c_werror_flag" ||
41382          test ! -s conftest.err
41383        } && test -s conftest$ac_exeext &&
41384        $as_test_x conftest$ac_exeext; then
41385   ac_cv_lib_dl_dlerror=yes
41386 else
41387   echo "$as_me: failed program was:" >&5
41388 sed 's/^/| /' conftest.$ac_ext >&5
41389
41390         ac_cv_lib_dl_dlerror=no
41391 fi
41392
41393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41394       conftest$ac_exeext conftest.$ac_ext
41395 LIBS=$ac_check_lib_save_LIBS
41396 fi
41397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41398 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41399 if test $ac_cv_lib_dl_dlerror = yes; then
41400   cat >>confdefs.h <<\_ACEOF
41401 #define HAVE_DLERROR 1
41402 _ACEOF
41403
41404 fi
41405
41406
41407
41408 fi
41409 done
41410
41411         fi
41412         fi
41413
41414         if test "$HAVE_DL_FUNCS" = 0; then
41415             if test "$HAVE_SHL_FUNCS" = 0; then
41416               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41417                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41418 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41419                   wxUSE_DYNAMIC_LOADER=no
41420                   wxUSE_DYNLIB_CLASS=no
41421               else
41422                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41423 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41424               fi
41425             fi
41426         fi
41427     fi
41428 fi
41429
41430 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41431     cat >>confdefs.h <<\_ACEOF
41432 #define wxUSE_DYNAMIC_LOADER 1
41433 _ACEOF
41434
41435 fi
41436 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41437     cat >>confdefs.h <<\_ACEOF
41438 #define wxUSE_DYNLIB_CLASS 1
41439 _ACEOF
41440
41441 fi
41442
41443
41444
41445 if test "$wxUSE_PLUGINS" = "yes" ; then
41446     if test "$wxUSE_SHARED" = "no" ; then
41447         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41448 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41449         wxUSE_PLUGINS=no
41450     fi
41451     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41452         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41453 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41454         wxUSE_PLUGINS=no
41455     fi
41456     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41457         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41458 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41459         wxUSE_PLUGINS=no
41460     fi
41461     if test "$wxUSE_PLUGINS" = "yes" ; then
41462         cat >>confdefs.h <<\_ACEOF
41463 #define wxUSE_PLUGINS 1
41464 _ACEOF
41465
41466     fi
41467 fi
41468
41469
41470 if test "$wxUSE_STL" = "yes"; then
41471   cat >>confdefs.h <<\_ACEOF
41472 #define wxUSE_STL 1
41473 _ACEOF
41474
41475 fi
41476
41477 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
41478   cat >>confdefs.h <<\_ACEOF
41479 #define wxUSE_EXTENDED_RTTI 1
41480 _ACEOF
41481
41482 fi
41483
41484 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41485   cat >>confdefs.h <<\_ACEOF
41486 #define wxUSE_APPLE_IEEE 1
41487 _ACEOF
41488
41489 fi
41490
41491 if test "$wxUSE_TIMER" = "yes"; then
41492   cat >>confdefs.h <<\_ACEOF
41493 #define wxUSE_TIMER 1
41494 _ACEOF
41495
41496 fi
41497
41498 if test "$USE_UNIX" = 1 ; then
41499         if test "$wxUSE_MGL" != 1; then
41500                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41501 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
41502 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41503   echo $ECHO_N "(cached) $ECHO_C" >&6
41504 else
41505
41506             cat >conftest.$ac_ext <<_ACEOF
41507 /* confdefs.h.  */
41508 _ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h.  */
41512
41513                     #include <sys/ioctl.h>
41514                     #include <sys/soundcard.h>
41515
41516 int
41517 main ()
41518 {
41519
41520                     ioctl(0, SNDCTL_DSP_SPEED, 0);
41521
41522   ;
41523   return 0;
41524 }
41525 _ACEOF
41526 rm -f conftest.$ac_objext conftest$ac_exeext
41527 if { (ac_try="$ac_link"
41528 case "(($ac_try" in
41529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41530   *) ac_try_echo=$ac_try;;
41531 esac
41532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41533   (eval "$ac_link") 2>conftest.er1
41534   ac_status=$?
41535   grep -v '^ *+' conftest.er1 >conftest.err
41536   rm -f conftest.er1
41537   cat conftest.err >&5
41538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539   (exit $ac_status); } && {
41540          test -z "$ac_c_werror_flag" ||
41541          test ! -s conftest.err
41542        } && test -s conftest$ac_exeext &&
41543        $as_test_x conftest$ac_exeext; then
41544   ac_cv_header_sys_soundcard=yes
41545 else
41546   echo "$as_me: failed program was:" >&5
41547 sed 's/^/| /' conftest.$ac_ext >&5
41548
41549
41550                     saveLibs="$LIBS"
41551                     LIBS="$saveLibs -lossaudio"
41552                     cat >conftest.$ac_ext <<_ACEOF
41553 /* confdefs.h.  */
41554 _ACEOF
41555 cat confdefs.h >>conftest.$ac_ext
41556 cat >>conftest.$ac_ext <<_ACEOF
41557 /* end confdefs.h.  */
41558
41559                             #include <sys/ioctl.h>
41560                             #include <sys/soundcard.h>
41561
41562 int
41563 main ()
41564 {
41565
41566                             ioctl(0, SNDCTL_DSP_SPEED, 0);
41567
41568   ;
41569   return 0;
41570 }
41571 _ACEOF
41572 rm -f conftest.$ac_objext conftest$ac_exeext
41573 if { (ac_try="$ac_link"
41574 case "(($ac_try" in
41575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41576   *) ac_try_echo=$ac_try;;
41577 esac
41578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41579   (eval "$ac_link") 2>conftest.er1
41580   ac_status=$?
41581   grep -v '^ *+' conftest.er1 >conftest.err
41582   rm -f conftest.er1
41583   cat conftest.err >&5
41584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585   (exit $ac_status); } && {
41586          test -z "$ac_c_werror_flag" ||
41587          test ! -s conftest.err
41588        } && test -s conftest$ac_exeext &&
41589        $as_test_x conftest$ac_exeext; then
41590   ac_cv_header_sys_soundcard=yes
41591 else
41592   echo "$as_me: failed program was:" >&5
41593 sed 's/^/| /' conftest.$ac_ext >&5
41594
41595
41596                             LIBS="$saveLibs"
41597                             ac_cv_header_sys_soundcard=no
41598
41599
41600 fi
41601
41602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41603       conftest$ac_exeext conftest.$ac_ext
41604
41605
41606 fi
41607
41608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41609       conftest$ac_exeext conftest.$ac_ext
41610
41611 fi
41612 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41613 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
41614     fi
41615
41616     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41617         cat >>confdefs.h <<\_ACEOF
41618 #define HAVE_SYS_SOUNDCARD_H 1
41619 _ACEOF
41620
41621     fi
41622 fi
41623
41624 WITH_PLUGIN_SDL=0
41625 if test "$wxUSE_SOUND" = "yes"; then
41626   if test "$USE_UNIX" = 1 ; then
41627     if test "$wxUSE_LIBSDL" != "no"; then
41628
41629 # Check whether --with-sdl-prefix was given.
41630 if test "${with_sdl_prefix+set}" = set; then
41631   withval=$with_sdl_prefix; sdl_prefix="$withval"
41632 else
41633   sdl_prefix=""
41634 fi
41635
41636
41637 # Check whether --with-sdl-exec-prefix was given.
41638 if test "${with_sdl_exec_prefix+set}" = set; then
41639   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
41640 else
41641   sdl_exec_prefix=""
41642 fi
41643
41644 # Check whether --enable-sdltest was given.
41645 if test "${enable_sdltest+set}" = set; then
41646   enableval=$enable_sdltest;
41647 else
41648   enable_sdltest=yes
41649 fi
41650
41651
41652   if test x$sdl_exec_prefix != x ; then
41653     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41654     if test x${SDL_CONFIG+set} != xset ; then
41655       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41656     fi
41657   fi
41658   if test x$sdl_prefix != x ; then
41659     sdl_args="$sdl_args --prefix=$sdl_prefix"
41660     if test x${SDL_CONFIG+set} != xset ; then
41661       SDL_CONFIG=$sdl_prefix/bin/sdl-config
41662     fi
41663   fi
41664
41665   if test "x$prefix" != xNONE; then
41666     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41667   fi
41668   # Extract the first word of "sdl-config", so it can be a program name with args.
41669 set dummy sdl-config; ac_word=$2
41670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41672 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41673   echo $ECHO_N "(cached) $ECHO_C" >&6
41674 else
41675   case $SDL_CONFIG in
41676   [\\/]* | ?:[\\/]*)
41677   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41678   ;;
41679   *)
41680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41681 for as_dir in $PATH
41682 do
41683   IFS=$as_save_IFS
41684   test -z "$as_dir" && as_dir=.
41685   for ac_exec_ext in '' $ac_executable_extensions; do
41686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41687     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41689     break 2
41690   fi
41691 done
41692 done
41693 IFS=$as_save_IFS
41694
41695   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41696   ;;
41697 esac
41698 fi
41699 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41700 if test -n "$SDL_CONFIG"; then
41701   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41702 echo "${ECHO_T}$SDL_CONFIG" >&6; }
41703 else
41704   { echo "$as_me:$LINENO: result: no" >&5
41705 echo "${ECHO_T}no" >&6; }
41706 fi
41707
41708
41709   min_sdl_version=1.2.0
41710   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41711 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
41712   no_sdl=""
41713   if test "$SDL_CONFIG" = "no" ; then
41714     no_sdl=yes
41715   else
41716     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41717     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41718
41719     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41721     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41722            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41723     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41724            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41725     if test "x$enable_sdltest" = "xyes" ; then
41726       ac_save_CFLAGS="$CFLAGS"
41727       ac_save_CXXFLAGS="$CXXFLAGS"
41728       ac_save_LIBS="$LIBS"
41729       CFLAGS="$CFLAGS $SDL_CFLAGS"
41730       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41731       LIBS="$LIBS $SDL_LIBS"
41732       rm -f conf.sdltest
41733       if test "$cross_compiling" = yes; then
41734   echo $ac_n "cross compiling; assumed OK... $ac_c"
41735 else
41736   cat >conftest.$ac_ext <<_ACEOF
41737 /* confdefs.h.  */
41738 _ACEOF
41739 cat confdefs.h >>conftest.$ac_ext
41740 cat >>conftest.$ac_ext <<_ACEOF
41741 /* end confdefs.h.  */
41742
41743 #include <stdio.h>
41744 #include <stdlib.h>
41745 #include <string.h>
41746 #include "SDL.h"
41747
41748 char*
41749 my_strdup (char *str)
41750 {
41751   char *new_str;
41752
41753   if (str)
41754     {
41755       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41756       strcpy (new_str, str);
41757     }
41758   else
41759     new_str = NULL;
41760
41761   return new_str;
41762 }
41763
41764 int main (int argc, char *argv[])
41765 {
41766   int major, minor, micro;
41767   char *tmp_version;
41768
41769   /* This hangs on some systems (?)
41770   system ("touch conf.sdltest");
41771   */
41772   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41773
41774   /* HP/UX 9 (%@#!) writes to sscanf strings */
41775   tmp_version = my_strdup("$min_sdl_version");
41776   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41777      printf("%s, bad version string\n", "$min_sdl_version");
41778      exit(1);
41779    }
41780
41781    if (($sdl_major_version > major) ||
41782       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41783       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41784     {
41785       return 0;
41786     }
41787   else
41788     {
41789       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41790       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41791       printf("*** best to upgrade to the required version.\n");
41792       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41793       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41794       printf("*** config.cache before re-running configure\n");
41795       return 1;
41796     }
41797 }
41798
41799
41800 _ACEOF
41801 rm -f conftest$ac_exeext
41802 if { (ac_try="$ac_link"
41803 case "(($ac_try" in
41804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41805   *) ac_try_echo=$ac_try;;
41806 esac
41807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41808   (eval "$ac_link") 2>&5
41809   ac_status=$?
41810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41812   { (case "(($ac_try" in
41813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41814   *) ac_try_echo=$ac_try;;
41815 esac
41816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41817   (eval "$ac_try") 2>&5
41818   ac_status=$?
41819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41820   (exit $ac_status); }; }; then
41821   :
41822 else
41823   echo "$as_me: program exited with status $ac_status" >&5
41824 echo "$as_me: failed program was:" >&5
41825 sed 's/^/| /' conftest.$ac_ext >&5
41826
41827 ( exit $ac_status )
41828 no_sdl=yes
41829 fi
41830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41831 fi
41832
41833
41834        CFLAGS="$ac_save_CFLAGS"
41835        CXXFLAGS="$ac_save_CXXFLAGS"
41836        LIBS="$ac_save_LIBS"
41837      fi
41838   fi
41839   if test "x$no_sdl" = x ; then
41840      { echo "$as_me:$LINENO: result: yes" >&5
41841 echo "${ECHO_T}yes" >&6; }
41842
41843                     EXTRALIBS_SDL="$SDL_LIBS"
41844                     CFLAGS="$SDL_CFLAGS $CFLAGS"
41845                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41846                     cat >>confdefs.h <<\_ACEOF
41847 #define wxUSE_LIBSDL 1
41848 _ACEOF
41849
41850
41851   else
41852      { echo "$as_me:$LINENO: result: no" >&5
41853 echo "${ECHO_T}no" >&6; }
41854      if test "$SDL_CONFIG" = "no" ; then
41855        echo "*** The sdl-config script installed by SDL could not be found"
41856        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41857        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41858        echo "*** full path to sdl-config."
41859      else
41860        if test -f conf.sdltest ; then
41861         :
41862        else
41863           echo "*** Could not run SDL test program, checking why..."
41864           CFLAGS="$CFLAGS $SDL_CFLAGS"
41865           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41866           LIBS="$LIBS $SDL_LIBS"
41867           cat >conftest.$ac_ext <<_ACEOF
41868 /* confdefs.h.  */
41869 _ACEOF
41870 cat confdefs.h >>conftest.$ac_ext
41871 cat >>conftest.$ac_ext <<_ACEOF
41872 /* end confdefs.h.  */
41873
41874 #include <stdio.h>
41875 #include "SDL.h"
41876
41877 int main(int argc, char *argv[])
41878 { return 0; }
41879 #undef  main
41880 #define main K_and_R_C_main
41881
41882 int
41883 main ()
41884 {
41885  return 0;
41886   ;
41887   return 0;
41888 }
41889 _ACEOF
41890 rm -f conftest.$ac_objext conftest$ac_exeext
41891 if { (ac_try="$ac_link"
41892 case "(($ac_try" in
41893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41894   *) ac_try_echo=$ac_try;;
41895 esac
41896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41897   (eval "$ac_link") 2>conftest.er1
41898   ac_status=$?
41899   grep -v '^ *+' conftest.er1 >conftest.err
41900   rm -f conftest.er1
41901   cat conftest.err >&5
41902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41903   (exit $ac_status); } && {
41904          test -z "$ac_c_werror_flag" ||
41905          test ! -s conftest.err
41906        } && test -s conftest$ac_exeext &&
41907        $as_test_x conftest$ac_exeext; then
41908    echo "*** The test program compiled, but did not run. This usually means"
41909           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41910           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41911           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41912           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41913           echo "*** is required on your system"
41914           echo "***"
41915           echo "*** If you have an old version installed, it is best to remove it, although"
41916           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41917 else
41918   echo "$as_me: failed program was:" >&5
41919 sed 's/^/| /' conftest.$ac_ext >&5
41920
41921          echo "*** The test program failed to compile or link. See the file config.log for the"
41922           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41923           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41924           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41925 fi
41926
41927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41928       conftest$ac_exeext conftest.$ac_ext
41929           CFLAGS="$ac_save_CFLAGS"
41930           CXXFLAGS="$ac_save_CXXFLAGS"
41931           LIBS="$ac_save_LIBS"
41932        fi
41933      fi
41934      SDL_CFLAGS=""
41935      SDL_LIBS=""
41936      wxUSE_LIBSDL="no"
41937   fi
41938
41939
41940   rm -f conf.sdltest
41941
41942       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41943         WITH_PLUGIN_SDL=1
41944       fi
41945     fi
41946   else
41947         if test "$wxUSE_MGL" = 1; then
41948         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
41949 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
41950         wxUSE_SOUND="no"
41951     fi
41952   fi
41953 fi
41954
41955 if test "$wxUSE_SOUND" = "yes"; then
41956   cat >>confdefs.h <<\_ACEOF
41957 #define wxUSE_SOUND 1
41958 _ACEOF
41959
41960   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41961 fi
41962
41963 if test "$WXGTK2" = 1; then
41964
41965
41966 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
41967         if test -n "$ac_tool_prefix"; then
41968   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41969 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41973   echo $ECHO_N "(cached) $ECHO_C" >&6
41974 else
41975   case $PKG_CONFIG in
41976   [\\/]* | ?:[\\/]*)
41977   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41978   ;;
41979   *)
41980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41981 for as_dir in $PATH
41982 do
41983   IFS=$as_save_IFS
41984   test -z "$as_dir" && as_dir=.
41985   for ac_exec_ext in '' $ac_executable_extensions; do
41986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41987     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41989     break 2
41990   fi
41991 done
41992 done
41993 IFS=$as_save_IFS
41994
41995   ;;
41996 esac
41997 fi
41998 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41999 if test -n "$PKG_CONFIG"; then
42000   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42001 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42002 else
42003   { echo "$as_me:$LINENO: result: no" >&5
42004 echo "${ECHO_T}no" >&6; }
42005 fi
42006
42007
42008 fi
42009 if test -z "$ac_cv_path_PKG_CONFIG"; then
42010   ac_pt_PKG_CONFIG=$PKG_CONFIG
42011   # Extract the first word of "pkg-config", so it can be a program name with args.
42012 set dummy pkg-config; ac_word=$2
42013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42015 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42016   echo $ECHO_N "(cached) $ECHO_C" >&6
42017 else
42018   case $ac_pt_PKG_CONFIG in
42019   [\\/]* | ?:[\\/]*)
42020   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42021   ;;
42022   *)
42023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42024 for as_dir in $PATH
42025 do
42026   IFS=$as_save_IFS
42027   test -z "$as_dir" && as_dir=.
42028   for ac_exec_ext in '' $ac_executable_extensions; do
42029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42030     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42032     break 2
42033   fi
42034 done
42035 done
42036 IFS=$as_save_IFS
42037
42038   ;;
42039 esac
42040 fi
42041 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42042 if test -n "$ac_pt_PKG_CONFIG"; then
42043   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42044 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42045 else
42046   { echo "$as_me:$LINENO: result: no" >&5
42047 echo "${ECHO_T}no" >&6; }
42048 fi
42049
42050   if test "x$ac_pt_PKG_CONFIG" = x; then
42051     PKG_CONFIG=""
42052   else
42053     case $cross_compiling:$ac_tool_warned in
42054 yes:)
42055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42056 whose name does not start with the host triplet.  If you think this
42057 configuration is useful to you, please write to autoconf@gnu.org." >&5
42058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42059 whose name does not start with the host triplet.  If you think this
42060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42061 ac_tool_warned=yes ;;
42062 esac
42063     PKG_CONFIG=$ac_pt_PKG_CONFIG
42064   fi
42065 else
42066   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42067 fi
42068
42069 fi
42070 if test -n "$PKG_CONFIG"; then
42071         _pkg_min_version=0.9.0
42072         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42073 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42074         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42075                 { echo "$as_me:$LINENO: result: yes" >&5
42076 echo "${ECHO_T}yes" >&6; }
42077         else
42078                 { echo "$as_me:$LINENO: result: no" >&5
42079 echo "${ECHO_T}no" >&6; }
42080                 PKG_CONFIG=""
42081         fi
42082
42083 fi
42084
42085     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42086
42087         if test "$wxUSE_GTKPRINT" = "yes" ; then
42088
42089
42090 pkg_failed=no
42091 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42092 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42093
42094 if test -n "$PKG_CONFIG"; then
42095     if test -n "$GTKPRINT_CFLAGS"; then
42096         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42097     else
42098         if test -n "$PKG_CONFIG" && \
42099     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42100   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42101   ac_status=$?
42102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103   (exit $ac_status); }; then
42104   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42105 else
42106   pkg_failed=yes
42107 fi
42108     fi
42109 else
42110         pkg_failed=untried
42111 fi
42112 if test -n "$PKG_CONFIG"; then
42113     if test -n "$GTKPRINT_LIBS"; then
42114         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42115     else
42116         if test -n "$PKG_CONFIG" && \
42117     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42118   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42119   ac_status=$?
42120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42121   (exit $ac_status); }; then
42122   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42123 else
42124   pkg_failed=yes
42125 fi
42126     fi
42127 else
42128         pkg_failed=untried
42129 fi
42130
42131
42132
42133 if test $pkg_failed = yes; then
42134
42135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42136         _pkg_short_errors_supported=yes
42137 else
42138         _pkg_short_errors_supported=no
42139 fi
42140         if test $_pkg_short_errors_supported = yes; then
42141                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42142         else
42143                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42144         fi
42145         # Put the nasty error message in config.log where it belongs
42146         echo "$GTKPRINT_PKG_ERRORS" >&5
42147
42148
42149                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42150 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42151                         wxUSE_GTKPRINT="no"
42152
42153
42154 elif test $pkg_failed = untried; then
42155
42156                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42157 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42158                         wxUSE_GTKPRINT="no"
42159
42160
42161 else
42162         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42163         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42164         { echo "$as_me:$LINENO: result: yes" >&5
42165 echo "${ECHO_T}yes" >&6; }
42166
42167                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42168                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42169                         cat >>confdefs.h <<\_ACEOF
42170 #define wxUSE_GTKPRINT 1
42171 _ACEOF
42172
42173
42174 fi
42175         fi
42176
42177         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42178
42179
42180 pkg_failed=no
42181 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42182 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42183
42184 if test -n "$PKG_CONFIG"; then
42185     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42186         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42187     else
42188         if test -n "$PKG_CONFIG" && \
42189     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42190   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42191   ac_status=$?
42192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42193   (exit $ac_status); }; then
42194   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42195 else
42196   pkg_failed=yes
42197 fi
42198     fi
42199 else
42200         pkg_failed=untried
42201 fi
42202 if test -n "$PKG_CONFIG"; then
42203     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42204         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42205     else
42206         if test -n "$PKG_CONFIG" && \
42207     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42208   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42209   ac_status=$?
42210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211   (exit $ac_status); }; then
42212   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42213 else
42214   pkg_failed=yes
42215 fi
42216     fi
42217 else
42218         pkg_failed=untried
42219 fi
42220
42221
42222
42223 if test $pkg_failed = yes; then
42224
42225 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42226         _pkg_short_errors_supported=yes
42227 else
42228         _pkg_short_errors_supported=no
42229 fi
42230         if test $_pkg_short_errors_supported = yes; then
42231                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42232         else
42233                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42234         fi
42235         # Put the nasty error message in config.log where it belongs
42236         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42237
42238
42239                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42240 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42241                         wxUSE_LIBGNOMEPRINT="no"
42242
42243
42244 elif test $pkg_failed = untried; then
42245
42246                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42247 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42248                         wxUSE_LIBGNOMEPRINT="no"
42249
42250
42251 else
42252         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42253         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42254         { echo "$as_me:$LINENO: result: yes" >&5
42255 echo "${ECHO_T}yes" >&6; }
42256
42257                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42258                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42259                         cat >>confdefs.h <<\_ACEOF
42260 #define wxUSE_LIBGNOMEPRINT 1
42261 _ACEOF
42262
42263
42264 fi
42265         fi
42266     fi
42267
42268     if test "$wxUSE_MIMETYPE" = "yes" ; then
42269         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42270
42271
42272 pkg_failed=no
42273 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42274 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42275
42276 if test -n "$PKG_CONFIG"; then
42277     if test -n "$GNOMEVFS_CFLAGS"; then
42278         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42279     else
42280         if test -n "$PKG_CONFIG" && \
42281     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42282   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42283   ac_status=$?
42284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285   (exit $ac_status); }; then
42286   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42287 else
42288   pkg_failed=yes
42289 fi
42290     fi
42291 else
42292         pkg_failed=untried
42293 fi
42294 if test -n "$PKG_CONFIG"; then
42295     if test -n "$GNOMEVFS_LIBS"; then
42296         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42297     else
42298         if test -n "$PKG_CONFIG" && \
42299     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42300   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42301   ac_status=$?
42302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42303   (exit $ac_status); }; then
42304   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42305 else
42306   pkg_failed=yes
42307 fi
42308     fi
42309 else
42310         pkg_failed=untried
42311 fi
42312
42313
42314
42315 if test $pkg_failed = yes; then
42316
42317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42318         _pkg_short_errors_supported=yes
42319 else
42320         _pkg_short_errors_supported=no
42321 fi
42322         if test $_pkg_short_errors_supported = yes; then
42323                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42324         else
42325                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42326         fi
42327         # Put the nasty error message in config.log where it belongs
42328         echo "$GNOMEVFS_PKG_ERRORS" >&5
42329
42330
42331                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42332 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42333                         wxUSE_LIBGNOMEVFS="no"
42334
42335
42336 elif test $pkg_failed = untried; then
42337
42338                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42339 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42340                         wxUSE_LIBGNOMEVFS="no"
42341
42342
42343 else
42344         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42345         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42346         { echo "$as_me:$LINENO: result: yes" >&5
42347 echo "${ECHO_T}yes" >&6; }
42348
42349                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42350                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42351                         cat >>confdefs.h <<\_ACEOF
42352 #define wxUSE_LIBGNOMEVFS 1
42353 _ACEOF
42354
42355
42356 fi
42357         fi
42358     fi
42359
42360     if test "$wxUSE_LIBHILDON" = "yes" ; then
42361
42362 pkg_failed=no
42363 { echo "$as_me:$LINENO: checking for HILDON" >&5
42364 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42365
42366 if test -n "$PKG_CONFIG"; then
42367     if test -n "$HILDON_CFLAGS"; then
42368         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42369     else
42370         if test -n "$PKG_CONFIG" && \
42371     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42372   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42373   ac_status=$?
42374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42375   (exit $ac_status); }; then
42376   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42377 else
42378   pkg_failed=yes
42379 fi
42380     fi
42381 else
42382         pkg_failed=untried
42383 fi
42384 if test -n "$PKG_CONFIG"; then
42385     if test -n "$HILDON_LIBS"; then
42386         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42387     else
42388         if test -n "$PKG_CONFIG" && \
42389     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42390   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42391   ac_status=$?
42392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42393   (exit $ac_status); }; then
42394   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42395 else
42396   pkg_failed=yes
42397 fi
42398     fi
42399 else
42400         pkg_failed=untried
42401 fi
42402
42403
42404
42405 if test $pkg_failed = yes; then
42406
42407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42408         _pkg_short_errors_supported=yes
42409 else
42410         _pkg_short_errors_supported=no
42411 fi
42412         if test $_pkg_short_errors_supported = yes; then
42413                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42414         else
42415                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42416         fi
42417         # Put the nasty error message in config.log where it belongs
42418         echo "$HILDON_PKG_ERRORS" >&5
42419
42420
42421                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42422 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42423                         wxUSE_LIBHILDON="no"
42424
42425
42426 elif test $pkg_failed = untried; then
42427
42428                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42429 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42430                         wxUSE_LIBHILDON="no"
42431
42432
42433 else
42434         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42435         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42436         { echo "$as_me:$LINENO: result: yes" >&5
42437 echo "${ECHO_T}yes" >&6; }
42438
42439                 EXTRALIBS_HILDON="$HILDON_LIBS"
42440                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42441                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42442                 cat >>confdefs.h <<\_ACEOF
42443 #define wxUSE_LIBHILDON 1
42444 _ACEOF
42445
42446
42447 fi
42448     fi
42449 fi
42450
42451 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42452   cat >>confdefs.h <<\_ACEOF
42453 #define wxUSE_CMDLINE_PARSER 1
42454 _ACEOF
42455
42456 fi
42457
42458 if test "$wxUSE_STOPWATCH" = "yes"; then
42459   cat >>confdefs.h <<\_ACEOF
42460 #define wxUSE_STOPWATCH 1
42461 _ACEOF
42462
42463 fi
42464
42465 if test "$wxUSE_DATETIME" = "yes"; then
42466   cat >>confdefs.h <<\_ACEOF
42467 #define wxUSE_DATETIME 1
42468 _ACEOF
42469
42470 fi
42471
42472 if test "$wxUSE_FILE" = "yes"; then
42473   cat >>confdefs.h <<\_ACEOF
42474 #define wxUSE_FILE 1
42475 _ACEOF
42476
42477 fi
42478
42479 if test "$wxUSE_FFILE" = "yes"; then
42480   cat >>confdefs.h <<\_ACEOF
42481 #define wxUSE_FFILE 1
42482 _ACEOF
42483
42484 fi
42485
42486 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42487   if test "$wxUSE_STREAMS" != yes; then
42488     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
42489 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
42490     wxUSE_ARCHIVE_STREAMS=no
42491   else
42492     cat >>confdefs.h <<\_ACEOF
42493 #define wxUSE_ARCHIVE_STREAMS 1
42494 _ACEOF
42495
42496   fi
42497 fi
42498
42499 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42500   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42501     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42502 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42503   elif test "$wxUSE_ZLIB" = "no"; then
42504     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42505 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42506   else
42507     cat >>confdefs.h <<\_ACEOF
42508 #define wxUSE_ZIPSTREAM 1
42509 _ACEOF
42510
42511   fi
42512 fi
42513
42514 if test "$wxUSE_TARSTREAM" = "yes"; then
42515   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42516     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
42517 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
42518   else
42519     cat >>confdefs.h <<\_ACEOF
42520 #define wxUSE_TARSTREAM 1
42521 _ACEOF
42522
42523   fi
42524 fi
42525
42526 if test "$wxUSE_FILESYSTEM" = "yes"; then
42527   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
42528     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
42529 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
42530     wxUSE_FILESYSTEM=no
42531   else
42532     cat >>confdefs.h <<\_ACEOF
42533 #define wxUSE_FILESYSTEM 1
42534 _ACEOF
42535
42536   fi
42537 fi
42538
42539 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
42540   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
42541     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
42542 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
42543   else
42544     cat >>confdefs.h <<\_ACEOF
42545 #define wxUSE_FS_ARCHIVE 1
42546 _ACEOF
42547
42548   fi
42549 fi
42550
42551 if test "$wxUSE_FS_ZIP" = "yes"; then
42552   if test "$wxUSE_FS_ARCHIVE" != yes; then
42553     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
42554 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
42555   else
42556     cat >>confdefs.h <<\_ACEOF
42557 #define wxUSE_FS_ZIP 1
42558 _ACEOF
42559
42560   fi
42561 fi
42562
42563 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42564   if test "$USE_UNIX" != 1; then
42565     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42566 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42567     wxUSE_ON_FATAL_EXCEPTION=no
42568   else
42569     cat >>confdefs.h <<\_ACEOF
42570 #define wxUSE_ON_FATAL_EXCEPTION 1
42571 _ACEOF
42572
42573   fi
42574 fi
42575
42576 if test "$wxUSE_STACKWALKER" = "yes"; then
42577     cat >>confdefs.h <<\_ACEOF
42578 #define wxUSE_STACKWALKER 1
42579 _ACEOF
42580
42581 fi
42582
42583 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42584     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
42585         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42586 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42587         wxUSE_DEBUGREPORT=no
42588     else
42589         cat >>confdefs.h <<\_ACEOF
42590 #define wxUSE_DEBUGREPORT 1
42591 _ACEOF
42592
42593         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42594             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42595         fi
42596     fi
42597 fi
42598
42599 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42600   cat >>confdefs.h <<\_ACEOF
42601 #define wxUSE_SNGLINST_CHECKER 1
42602 _ACEOF
42603
42604 fi
42605
42606 if test "$wxUSE_BUSYINFO" = "yes"; then
42607   cat >>confdefs.h <<\_ACEOF
42608 #define wxUSE_BUSYINFO 1
42609 _ACEOF
42610
42611 fi
42612
42613 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42614   cat >>confdefs.h <<\_ACEOF
42615 #define wxUSE_STD_IOSTREAM 1
42616 _ACEOF
42617
42618 fi
42619
42620 if test "$wxUSE_STD_STRING" = "yes"; then
42621   cat >>confdefs.h <<\_ACEOF
42622 #define wxUSE_STD_STRING 1
42623 _ACEOF
42624
42625 fi
42626
42627 if test "$wxUSE_STDPATHS" = "yes"; then
42628   cat >>confdefs.h <<\_ACEOF
42629 #define wxUSE_STDPATHS 1
42630 _ACEOF
42631
42632 fi
42633
42634 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42635     cat >>confdefs.h <<\_ACEOF
42636 #define wxUSE_TEXTBUFFER 1
42637 _ACEOF
42638
42639 fi
42640
42641 if test "$wxUSE_TEXTFILE" = "yes"; then
42642   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42643     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42644 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42645   else
42646     cat >>confdefs.h <<\_ACEOF
42647 #define wxUSE_TEXTFILE 1
42648 _ACEOF
42649
42650   fi
42651 fi
42652
42653 if test "$wxUSE_CONFIG" = "yes" ; then
42654   if test "$wxUSE_TEXTFILE" != "yes"; then
42655     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42656 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42657   else
42658     cat >>confdefs.h <<\_ACEOF
42659 #define wxUSE_CONFIG 1
42660 _ACEOF
42661
42662     cat >>confdefs.h <<\_ACEOF
42663 #define wxUSE_CONFIG_NATIVE 1
42664 _ACEOF
42665
42666     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42667   fi
42668 fi
42669
42670 if test "$wxUSE_INTL" = "yes" ; then
42671   if test "$wxUSE_FILE" != "yes"; then
42672     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42673 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42674   else
42675     cat >>confdefs.h <<\_ACEOF
42676 #define wxUSE_INTL 1
42677 _ACEOF
42678
42679     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42680     GUIDIST="$GUIDIST INTL_DIST"
42681   fi
42682 fi
42683
42684 if test "$wxUSE_LOG" = "yes"; then
42685   cat >>confdefs.h <<\_ACEOF
42686 #define wxUSE_LOG 1
42687 _ACEOF
42688
42689
42690     if test "$wxUSE_LOGGUI" = "yes"; then
42691       cat >>confdefs.h <<\_ACEOF
42692 #define wxUSE_LOGGUI 1
42693 _ACEOF
42694
42695     fi
42696
42697     if test "$wxUSE_LOGWINDOW" = "yes"; then
42698       cat >>confdefs.h <<\_ACEOF
42699 #define wxUSE_LOGWINDOW 1
42700 _ACEOF
42701
42702     fi
42703
42704     if test "$wxUSE_LOGDIALOG" = "yes"; then
42705       cat >>confdefs.h <<\_ACEOF
42706 #define wxUSE_LOG_DIALOG 1
42707 _ACEOF
42708
42709     fi
42710
42711         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42712 fi
42713
42714 if test "$wxUSE_LONGLONG" = "yes"; then
42715   cat >>confdefs.h <<\_ACEOF
42716 #define wxUSE_LONGLONG 1
42717 _ACEOF
42718
42719 fi
42720
42721 if test "$wxUSE_GEOMETRY" = "yes"; then
42722   cat >>confdefs.h <<\_ACEOF
42723 #define wxUSE_GEOMETRY 1
42724 _ACEOF
42725
42726 fi
42727
42728 if test "$wxUSE_BASE64" = "yes"; then
42729   cat >>confdefs.h <<\_ACEOF
42730 #define wxUSE_BASE64 1
42731 _ACEOF
42732
42733 fi
42734
42735 if test "$wxUSE_STREAMS" = "yes" ; then
42736   cat >>confdefs.h <<\_ACEOF
42737 #define wxUSE_STREAMS 1
42738 _ACEOF
42739
42740 fi
42741
42742 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42743   cat >>confdefs.h <<\_ACEOF
42744 #define wxUSE_PRINTF_POS_PARAMS 1
42745 _ACEOF
42746
42747 fi
42748
42749 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
42750   cat >>confdefs.h <<\_ACEOF
42751 #define wxUSE_OBJC_UNIQUIFYING 1
42752 _ACEOF
42753
42754 fi
42755
42756
42757 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
42758     cat >>confdefs.h <<\_ACEOF
42759 #define wxUSE_CONSOLE_EVENTLOOP 1
42760 _ACEOF
42761
42762
42763     if test "$wxUSE_UNIX" = "yes"; then
42764         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
42765             cat >>confdefs.h <<\_ACEOF
42766 #define wxUSE_SELECT_DISPATCHER 1
42767 _ACEOF
42768
42769         fi
42770
42771         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
42772
42773 for ac_header in sys/epoll.h
42774 do
42775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42779   echo $ECHO_N "(cached) $ECHO_C" >&6
42780 else
42781   cat >conftest.$ac_ext <<_ACEOF
42782 /* confdefs.h.  */
42783 _ACEOF
42784 cat confdefs.h >>conftest.$ac_ext
42785 cat >>conftest.$ac_ext <<_ACEOF
42786 /* end confdefs.h.  */
42787 $ac_includes_default
42788
42789 #include <$ac_header>
42790 _ACEOF
42791 rm -f conftest.$ac_objext
42792 if { (ac_try="$ac_compile"
42793 case "(($ac_try" in
42794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42795   *) ac_try_echo=$ac_try;;
42796 esac
42797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42798   (eval "$ac_compile") 2>conftest.er1
42799   ac_status=$?
42800   grep -v '^ *+' conftest.er1 >conftest.err
42801   rm -f conftest.er1
42802   cat conftest.err >&5
42803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42804   (exit $ac_status); } && {
42805          test -z "$ac_c_werror_flag" ||
42806          test ! -s conftest.err
42807        } && test -s conftest.$ac_objext; then
42808   eval "$as_ac_Header=yes"
42809 else
42810   echo "$as_me: failed program was:" >&5
42811 sed 's/^/| /' conftest.$ac_ext >&5
42812
42813         eval "$as_ac_Header=no"
42814 fi
42815
42816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42817 fi
42818 ac_res=`eval echo '${'$as_ac_Header'}'`
42819                { echo "$as_me:$LINENO: result: $ac_res" >&5
42820 echo "${ECHO_T}$ac_res" >&6; }
42821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42822   cat >>confdefs.h <<_ACEOF
42823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42824 _ACEOF
42825
42826 fi
42827
42828 done
42829
42830             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
42831                 cat >>confdefs.h <<\_ACEOF
42832 #define wxUSE_EPOLL_DISPATCHER 1
42833 _ACEOF
42834
42835             else
42836                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
42837 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
42838             fi
42839         fi
42840     fi
42841 fi
42842
42843
42844
42845
42846 for ac_func in gettimeofday ftime
42847 do
42848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42851 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42862 #define $ac_func innocuous_$ac_func
42863
42864 /* System header to define __stub macros and hopefully few prototypes,
42865     which can conflict with char $ac_func (); 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 $ac_func
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 $ac_func ();
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_$ac_func || defined __stub___$ac_func
42888 choke me
42889 #endif
42890
42891 int
42892 main ()
42893 {
42894 return $ac_func ();
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   eval "$as_ac_var=yes"
42918 else
42919   echo "$as_me: failed program was:" >&5
42920 sed 's/^/| /' conftest.$ac_ext >&5
42921
42922         eval "$as_ac_var=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 ac_res=`eval echo '${'$as_ac_var'}'`
42929                { echo "$as_me:$LINENO: result: $ac_res" >&5
42930 echo "${ECHO_T}$ac_res" >&6; }
42931 if test `eval echo '${'$as_ac_var'}'` = yes; then
42932   cat >>confdefs.h <<_ACEOF
42933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42934 _ACEOF
42935  break
42936 fi
42937 done
42938
42939
42940 if test "$ac_cv_func_gettimeofday" = "yes"; then
42941     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42942 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
42943 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42944   echo $ECHO_N "(cached) $ECHO_C" >&6
42945 else
42946
42947                 cat >conftest.$ac_ext <<_ACEOF
42948 /* confdefs.h.  */
42949 _ACEOF
42950 cat confdefs.h >>conftest.$ac_ext
42951 cat >>conftest.$ac_ext <<_ACEOF
42952 /* end confdefs.h.  */
42953
42954                 #include <sys/time.h>
42955                 #include <unistd.h>
42956
42957 int
42958 main ()
42959 {
42960
42961                 struct timeval tv;
42962                 gettimeofday(&tv, NULL);
42963
42964   ;
42965   return 0;
42966 }
42967 _ACEOF
42968 rm -f conftest.$ac_objext
42969 if { (ac_try="$ac_compile"
42970 case "(($ac_try" in
42971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42972   *) ac_try_echo=$ac_try;;
42973 esac
42974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42975   (eval "$ac_compile") 2>conftest.er1
42976   ac_status=$?
42977   grep -v '^ *+' conftest.er1 >conftest.err
42978   rm -f conftest.er1
42979   cat conftest.err >&5
42980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981   (exit $ac_status); } && {
42982          test -z "$ac_c_werror_flag" ||
42983          test ! -s conftest.err
42984        } && test -s conftest.$ac_objext; then
42985   wx_cv_func_gettimeofday_has_2_args=yes
42986 else
42987   echo "$as_me: failed program was:" >&5
42988 sed 's/^/| /' conftest.$ac_ext >&5
42989
42990         cat >conftest.$ac_ext <<_ACEOF
42991 /* confdefs.h.  */
42992 _ACEOF
42993 cat confdefs.h >>conftest.$ac_ext
42994 cat >>conftest.$ac_ext <<_ACEOF
42995 /* end confdefs.h.  */
42996
42997                     #include <sys/time.h>
42998                     #include <unistd.h>
42999
43000 int
43001 main ()
43002 {
43003
43004                     struct timeval tv;
43005                     gettimeofday(&tv);
43006
43007   ;
43008   return 0;
43009 }
43010 _ACEOF
43011 rm -f conftest.$ac_objext
43012 if { (ac_try="$ac_compile"
43013 case "(($ac_try" in
43014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43015   *) ac_try_echo=$ac_try;;
43016 esac
43017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43018   (eval "$ac_compile") 2>conftest.er1
43019   ac_status=$?
43020   grep -v '^ *+' conftest.er1 >conftest.err
43021   rm -f conftest.er1
43022   cat conftest.err >&5
43023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024   (exit $ac_status); } && {
43025          test -z "$ac_c_werror_flag" ||
43026          test ! -s conftest.err
43027        } && test -s conftest.$ac_objext; then
43028   wx_cv_func_gettimeofday_has_2_args=no
43029 else
43030   echo "$as_me: failed program was:" >&5
43031 sed 's/^/| /' conftest.$ac_ext >&5
43032
43033
43034                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43035 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43036                     wx_cv_func_gettimeofday_has_2_args=unknown
43037
43038
43039 fi
43040
43041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43042
43043 fi
43044
43045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43046
43047 fi
43048 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43049 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43050
43051     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43052         cat >>confdefs.h <<\_ACEOF
43053 #define WX_GETTIMEOFDAY_NO_TZ 1
43054 _ACEOF
43055
43056     fi
43057 fi
43058
43059 if test "$wxUSE_DATETIME" = "yes"; then
43060         { echo "$as_me:$LINENO: checking for strptime" >&5
43061 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43062 if test "${ac_cv_func_strptime+set}" = set; then
43063   echo $ECHO_N "(cached) $ECHO_C" >&6
43064 else
43065   cat >conftest.$ac_ext <<_ACEOF
43066 /* confdefs.h.  */
43067 _ACEOF
43068 cat confdefs.h >>conftest.$ac_ext
43069 cat >>conftest.$ac_ext <<_ACEOF
43070 /* end confdefs.h.  */
43071 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43073 #define strptime innocuous_strptime
43074
43075 /* System header to define __stub macros and hopefully few prototypes,
43076     which can conflict with char strptime (); below.
43077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43078     <limits.h> exists even on freestanding compilers.  */
43079
43080 #ifdef __STDC__
43081 # include <limits.h>
43082 #else
43083 # include <assert.h>
43084 #endif
43085
43086 #undef strptime
43087
43088 /* Override any GCC internal prototype to avoid an error.
43089    Use char because int might match the return type of a GCC
43090    builtin and then its argument prototype would still apply.  */
43091 #ifdef __cplusplus
43092 extern "C"
43093 #endif
43094 char strptime ();
43095 /* The GNU C library defines this for functions which it implements
43096     to always fail with ENOSYS.  Some functions are actually named
43097     something starting with __ and the normal name is an alias.  */
43098 #if defined __stub_strptime || defined __stub___strptime
43099 choke me
43100 #endif
43101
43102 int
43103 main ()
43104 {
43105 return strptime ();
43106   ;
43107   return 0;
43108 }
43109 _ACEOF
43110 rm -f conftest.$ac_objext conftest$ac_exeext
43111 if { (ac_try="$ac_link"
43112 case "(($ac_try" in
43113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43114   *) ac_try_echo=$ac_try;;
43115 esac
43116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43117   (eval "$ac_link") 2>conftest.er1
43118   ac_status=$?
43119   grep -v '^ *+' conftest.er1 >conftest.err
43120   rm -f conftest.er1
43121   cat conftest.err >&5
43122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43123   (exit $ac_status); } && {
43124          test -z "$ac_c_werror_flag" ||
43125          test ! -s conftest.err
43126        } && test -s conftest$ac_exeext &&
43127        $as_test_x conftest$ac_exeext; then
43128   ac_cv_func_strptime=yes
43129 else
43130   echo "$as_me: failed program was:" >&5
43131 sed 's/^/| /' conftest.$ac_ext >&5
43132
43133         ac_cv_func_strptime=no
43134 fi
43135
43136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43137       conftest$ac_exeext conftest.$ac_ext
43138 fi
43139 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43140 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43141
43142     if test "$ac_cv_func_strptime" = "yes"; then
43143         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43144 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43145 if test "${wx_cv_func_strptime_decl+set}" = set; then
43146   echo $ECHO_N "(cached) $ECHO_C" >&6
43147 else
43148
43149                 ac_ext=cpp
43150 ac_cpp='$CXXCPP $CPPFLAGS'
43151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43154
43155                 cat >conftest.$ac_ext <<_ACEOF
43156 /* confdefs.h.  */
43157 _ACEOF
43158 cat confdefs.h >>conftest.$ac_ext
43159 cat >>conftest.$ac_ext <<_ACEOF
43160 /* end confdefs.h.  */
43161
43162                         #include <time.h>
43163
43164 int
43165 main ()
43166 {
43167
43168                         struct tm t;
43169                         strptime("foo", "bar", &t);
43170
43171   ;
43172   return 0;
43173 }
43174 _ACEOF
43175 rm -f conftest.$ac_objext
43176 if { (ac_try="$ac_compile"
43177 case "(($ac_try" in
43178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43179   *) ac_try_echo=$ac_try;;
43180 esac
43181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43182   (eval "$ac_compile") 2>conftest.er1
43183   ac_status=$?
43184   grep -v '^ *+' conftest.er1 >conftest.err
43185   rm -f conftest.er1
43186   cat conftest.err >&5
43187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43188   (exit $ac_status); } && {
43189          test -z "$ac_cxx_werror_flag" ||
43190          test ! -s conftest.err
43191        } && test -s conftest.$ac_objext; then
43192   wx_cv_func_strptime_decl=yes
43193 else
43194   echo "$as_me: failed program was:" >&5
43195 sed 's/^/| /' conftest.$ac_ext >&5
43196
43197         wx_cv_func_strptime_decl=no
43198
43199 fi
43200
43201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43202                 ac_ext=c
43203 ac_cpp='$CPP $CPPFLAGS'
43204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43207
43208
43209
43210 fi
43211 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43212 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43213     fi
43214     if test "$wx_cv_func_strptime_decl" = "yes"; then
43215         cat >>confdefs.h <<\_ACEOF
43216 #define HAVE_STRPTIME_DECL 1
43217 _ACEOF
43218
43219     else
43220         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43221     fi
43222     if test "$ac_cv_func_strptime" = "yes"; then
43223                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43224 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43225 if test "${wx_cv_func_strptime_ok+set}" = set; then
43226   echo $ECHO_N "(cached) $ECHO_C" >&6
43227 else
43228   if test "$cross_compiling" = yes; then
43229                   wx_cv_func_strptime_ok=no
43230
43231 else
43232   cat >conftest.$ac_ext <<_ACEOF
43233
43234                     #include <stdlib.h>
43235                     #include <time.h>
43236                     #include "confdefs.h"
43237
43238                     $wx_strptime_decl
43239
43240                     int main()
43241                     {
43242                         struct tm t;
43243                         return !!strptime("", "%x", &t);
43244                     }
43245
43246 _ACEOF
43247 rm -f conftest$ac_exeext
43248 if { (ac_try="$ac_link"
43249 case "(($ac_try" in
43250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43251   *) ac_try_echo=$ac_try;;
43252 esac
43253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43254   (eval "$ac_link") 2>&5
43255   ac_status=$?
43256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43258   { (case "(($ac_try" in
43259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43260   *) ac_try_echo=$ac_try;;
43261 esac
43262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43263   (eval "$ac_try") 2>&5
43264   ac_status=$?
43265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43266   (exit $ac_status); }; }; then
43267   wx_cv_func_strptime_ok=yes
43268 else
43269   echo "$as_me: program exited with status $ac_status" >&5
43270 echo "$as_me: failed program was:" >&5
43271 sed 's/^/| /' conftest.$ac_ext >&5
43272
43273 ( exit $ac_status )
43274 wx_cv_func_strptime_ok=no
43275 fi
43276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43277 fi
43278
43279
43280
43281 fi
43282 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
43283 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
43284
43285         if test "$wx_cv_func_strptime_ok" = "yes"; then
43286             cat >>confdefs.h <<\_ACEOF
43287 #define HAVE_STRPTIME 1
43288 _ACEOF
43289
43290         fi
43291     fi
43292
43293             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43294 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43295 if test "${wx_cv_var_timezone+set}" = set; then
43296   echo $ECHO_N "(cached) $ECHO_C" >&6
43297 else
43298
43299                         ac_ext=cpp
43300 ac_cpp='$CXXCPP $CPPFLAGS'
43301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43304
43305                         cat >conftest.$ac_ext <<_ACEOF
43306 /* confdefs.h.  */
43307 _ACEOF
43308 cat confdefs.h >>conftest.$ac_ext
43309 cat >>conftest.$ac_ext <<_ACEOF
43310 /* end confdefs.h.  */
43311
43312                                 #include <time.h>
43313
43314 int
43315 main ()
43316 {
43317
43318                                 int tz;
43319                                 tz = timezone;
43320
43321   ;
43322   return 0;
43323 }
43324 _ACEOF
43325 rm -f conftest.$ac_objext
43326 if { (ac_try="$ac_compile"
43327 case "(($ac_try" in
43328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43329   *) ac_try_echo=$ac_try;;
43330 esac
43331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43332   (eval "$ac_compile") 2>conftest.er1
43333   ac_status=$?
43334   grep -v '^ *+' conftest.er1 >conftest.err
43335   rm -f conftest.er1
43336   cat conftest.err >&5
43337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43338   (exit $ac_status); } && {
43339          test -z "$ac_cxx_werror_flag" ||
43340          test ! -s conftest.err
43341        } && test -s conftest.$ac_objext; then
43342
43343                                 wx_cv_var_timezone=timezone
43344
43345 else
43346   echo "$as_me: failed program was:" >&5
43347 sed 's/^/| /' conftest.$ac_ext >&5
43348
43349
43350                                 cat >conftest.$ac_ext <<_ACEOF
43351 /* confdefs.h.  */
43352 _ACEOF
43353 cat confdefs.h >>conftest.$ac_ext
43354 cat >>conftest.$ac_ext <<_ACEOF
43355 /* end confdefs.h.  */
43356
43357                                         #include <time.h>
43358
43359 int
43360 main ()
43361 {
43362
43363                                         int tz;
43364                                         tz = _timezone;
43365
43366   ;
43367   return 0;
43368 }
43369 _ACEOF
43370 rm -f conftest.$ac_objext
43371 if { (ac_try="$ac_compile"
43372 case "(($ac_try" in
43373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43374   *) ac_try_echo=$ac_try;;
43375 esac
43376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43377   (eval "$ac_compile") 2>conftest.er1
43378   ac_status=$?
43379   grep -v '^ *+' conftest.er1 >conftest.err
43380   rm -f conftest.er1
43381   cat conftest.err >&5
43382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43383   (exit $ac_status); } && {
43384          test -z "$ac_cxx_werror_flag" ||
43385          test ! -s conftest.err
43386        } && test -s conftest.$ac_objext; then
43387
43388                                         wx_cv_var_timezone=_timezone
43389
43390 else
43391   echo "$as_me: failed program was:" >&5
43392 sed 's/^/| /' conftest.$ac_ext >&5
43393
43394
43395                                         cat >conftest.$ac_ext <<_ACEOF
43396 /* confdefs.h.  */
43397 _ACEOF
43398 cat confdefs.h >>conftest.$ac_ext
43399 cat >>conftest.$ac_ext <<_ACEOF
43400 /* end confdefs.h.  */
43401
43402                                                 #include <time.h>
43403
43404 int
43405 main ()
43406 {
43407
43408                                                 int tz;
43409                                                 tz = __timezone;
43410
43411   ;
43412   return 0;
43413 }
43414 _ACEOF
43415 rm -f conftest.$ac_objext
43416 if { (ac_try="$ac_compile"
43417 case "(($ac_try" in
43418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43419   *) ac_try_echo=$ac_try;;
43420 esac
43421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43422   (eval "$ac_compile") 2>conftest.er1
43423   ac_status=$?
43424   grep -v '^ *+' conftest.er1 >conftest.err
43425   rm -f conftest.er1
43426   cat conftest.err >&5
43427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43428   (exit $ac_status); } && {
43429          test -z "$ac_cxx_werror_flag" ||
43430          test ! -s conftest.err
43431        } && test -s conftest.$ac_objext; then
43432
43433                                                 wx_cv_var_timezone=__timezone
43434
43435 else
43436   echo "$as_me: failed program was:" >&5
43437 sed 's/^/| /' conftest.$ac_ext >&5
43438
43439
43440                                                 if test "$USE_DOS" = 0 ; then
43441                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43442 echo "$as_me: WARNING: no timezone variable" >&2;}
43443                                                 fi
43444
43445
43446 fi
43447
43448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43449
43450
43451 fi
43452
43453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43454
43455
43456 fi
43457
43458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43459                         ac_ext=c
43460 ac_cpp='$CPP $CPPFLAGS'
43461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43464
43465
43466
43467 fi
43468 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43469 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43470
43471         if test "x$wx_cv_var_timezone" != x ; then
43472         cat >>confdefs.h <<_ACEOF
43473 #define WX_TIMEZONE $wx_cv_var_timezone
43474 _ACEOF
43475
43476     fi
43477
43478
43479 for ac_func in localtime
43480 do
43481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43485   echo $ECHO_N "(cached) $ECHO_C" >&6
43486 else
43487   cat >conftest.$ac_ext <<_ACEOF
43488 /* confdefs.h.  */
43489 _ACEOF
43490 cat confdefs.h >>conftest.$ac_ext
43491 cat >>conftest.$ac_ext <<_ACEOF
43492 /* end confdefs.h.  */
43493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43495 #define $ac_func innocuous_$ac_func
43496
43497 /* System header to define __stub macros and hopefully few prototypes,
43498     which can conflict with char $ac_func (); below.
43499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43500     <limits.h> exists even on freestanding compilers.  */
43501
43502 #ifdef __STDC__
43503 # include <limits.h>
43504 #else
43505 # include <assert.h>
43506 #endif
43507
43508 #undef $ac_func
43509
43510 /* Override any GCC internal prototype to avoid an error.
43511    Use char because int might match the return type of a GCC
43512    builtin and then its argument prototype would still apply.  */
43513 #ifdef __cplusplus
43514 extern "C"
43515 #endif
43516 char $ac_func ();
43517 /* The GNU C library defines this for functions which it implements
43518     to always fail with ENOSYS.  Some functions are actually named
43519     something starting with __ and the normal name is an alias.  */
43520 #if defined __stub_$ac_func || defined __stub___$ac_func
43521 choke me
43522 #endif
43523
43524 int
43525 main ()
43526 {
43527 return $ac_func ();
43528   ;
43529   return 0;
43530 }
43531 _ACEOF
43532 rm -f conftest.$ac_objext conftest$ac_exeext
43533 if { (ac_try="$ac_link"
43534 case "(($ac_try" in
43535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43536   *) ac_try_echo=$ac_try;;
43537 esac
43538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43539   (eval "$ac_link") 2>conftest.er1
43540   ac_status=$?
43541   grep -v '^ *+' conftest.er1 >conftest.err
43542   rm -f conftest.er1
43543   cat conftest.err >&5
43544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545   (exit $ac_status); } && {
43546          test -z "$ac_c_werror_flag" ||
43547          test ! -s conftest.err
43548        } && test -s conftest$ac_exeext &&
43549        $as_test_x conftest$ac_exeext; then
43550   eval "$as_ac_var=yes"
43551 else
43552   echo "$as_me: failed program was:" >&5
43553 sed 's/^/| /' conftest.$ac_ext >&5
43554
43555         eval "$as_ac_var=no"
43556 fi
43557
43558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43559       conftest$ac_exeext conftest.$ac_ext
43560 fi
43561 ac_res=`eval echo '${'$as_ac_var'}'`
43562                { echo "$as_me:$LINENO: result: $ac_res" >&5
43563 echo "${ECHO_T}$ac_res" >&6; }
43564 if test `eval echo '${'$as_ac_var'}'` = yes; then
43565   cat >>confdefs.h <<_ACEOF
43566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43567 _ACEOF
43568
43569 fi
43570 done
43571
43572
43573     if test "$ac_cv_func_localtime" = "yes"; then
43574         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43575 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
43576 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43577   echo $ECHO_N "(cached) $ECHO_C" >&6
43578 else
43579
43580             cat >conftest.$ac_ext <<_ACEOF
43581 /* confdefs.h.  */
43582 _ACEOF
43583 cat confdefs.h >>conftest.$ac_ext
43584 cat >>conftest.$ac_ext <<_ACEOF
43585 /* end confdefs.h.  */
43586
43587                     #include <time.h>
43588
43589 int
43590 main ()
43591 {
43592
43593                     struct tm tm;
43594                     tm.tm_gmtoff++;
43595
43596   ;
43597   return 0;
43598 }
43599 _ACEOF
43600 rm -f conftest.$ac_objext
43601 if { (ac_try="$ac_compile"
43602 case "(($ac_try" in
43603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43604   *) ac_try_echo=$ac_try;;
43605 esac
43606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43607   (eval "$ac_compile") 2>conftest.er1
43608   ac_status=$?
43609   grep -v '^ *+' conftest.er1 >conftest.err
43610   rm -f conftest.er1
43611   cat conftest.err >&5
43612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43613   (exit $ac_status); } && {
43614          test -z "$ac_c_werror_flag" ||
43615          test ! -s conftest.err
43616        } && test -s conftest.$ac_objext; then
43617
43618                     wx_cv_struct_tm_has_gmtoff=yes
43619
43620 else
43621   echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43623
43624         wx_cv_struct_tm_has_gmtoff=no
43625
43626 fi
43627
43628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43629
43630 fi
43631 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43632 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
43633     fi
43634
43635     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43636         cat >>confdefs.h <<\_ACEOF
43637 #define WX_GMTOFF_IN_TM 1
43638 _ACEOF
43639
43640     fi
43641
43642     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43643 fi
43644
43645
43646 if test "$wxUSE_SOCKETS" = "yes"; then
43647     if test "$wxUSE_MGL" = 1; then
43648         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43649 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43650         wxUSE_SOCKETS="no"
43651     fi
43652 fi
43653
43654 if test "$wxUSE_SOCKETS" = "yes"; then
43655         if test "$TOOLKIT" != "MSW"; then
43656                 { echo "$as_me:$LINENO: checking for socket" >&5
43657 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
43658 if test "${ac_cv_func_socket+set}" = set; then
43659   echo $ECHO_N "(cached) $ECHO_C" >&6
43660 else
43661   cat >conftest.$ac_ext <<_ACEOF
43662 /* confdefs.h.  */
43663 _ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h.  */
43667 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43669 #define socket innocuous_socket
43670
43671 /* System header to define __stub macros and hopefully few prototypes,
43672     which can conflict with char socket (); below.
43673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43674     <limits.h> exists even on freestanding compilers.  */
43675
43676 #ifdef __STDC__
43677 # include <limits.h>
43678 #else
43679 # include <assert.h>
43680 #endif
43681
43682 #undef socket
43683
43684 /* Override any GCC internal prototype to avoid an error.
43685    Use char because int might match the return type of a GCC
43686    builtin and then its argument prototype would still apply.  */
43687 #ifdef __cplusplus
43688 extern "C"
43689 #endif
43690 char socket ();
43691 /* The GNU C library defines this for functions which it implements
43692     to always fail with ENOSYS.  Some functions are actually named
43693     something starting with __ and the normal name is an alias.  */
43694 #if defined __stub_socket || defined __stub___socket
43695 choke me
43696 #endif
43697
43698 int
43699 main ()
43700 {
43701 return socket ();
43702   ;
43703   return 0;
43704 }
43705 _ACEOF
43706 rm -f conftest.$ac_objext conftest$ac_exeext
43707 if { (ac_try="$ac_link"
43708 case "(($ac_try" in
43709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43710   *) ac_try_echo=$ac_try;;
43711 esac
43712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43713   (eval "$ac_link") 2>conftest.er1
43714   ac_status=$?
43715   grep -v '^ *+' conftest.er1 >conftest.err
43716   rm -f conftest.er1
43717   cat conftest.err >&5
43718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719   (exit $ac_status); } && {
43720          test -z "$ac_c_werror_flag" ||
43721          test ! -s conftest.err
43722        } && test -s conftest$ac_exeext &&
43723        $as_test_x conftest$ac_exeext; then
43724   ac_cv_func_socket=yes
43725 else
43726   echo "$as_me: failed program was:" >&5
43727 sed 's/^/| /' conftest.$ac_ext >&5
43728
43729         ac_cv_func_socket=no
43730 fi
43731
43732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43733       conftest$ac_exeext conftest.$ac_ext
43734 fi
43735 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43736 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
43737 if test $ac_cv_func_socket = yes; then
43738   :
43739 else
43740
43741                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43742 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
43743 if test "${ac_cv_lib_socket_socket+set}" = set; then
43744   echo $ECHO_N "(cached) $ECHO_C" >&6
43745 else
43746   ac_check_lib_save_LIBS=$LIBS
43747 LIBS="-lsocket  $LIBS"
43748 cat >conftest.$ac_ext <<_ACEOF
43749 /* confdefs.h.  */
43750 _ACEOF
43751 cat confdefs.h >>conftest.$ac_ext
43752 cat >>conftest.$ac_ext <<_ACEOF
43753 /* end confdefs.h.  */
43754
43755 /* Override any GCC internal prototype to avoid an error.
43756    Use char because int might match the return type of a GCC
43757    builtin and then its argument prototype would still apply.  */
43758 #ifdef __cplusplus
43759 extern "C"
43760 #endif
43761 char socket ();
43762 int
43763 main ()
43764 {
43765 return socket ();
43766   ;
43767   return 0;
43768 }
43769 _ACEOF
43770 rm -f conftest.$ac_objext conftest$ac_exeext
43771 if { (ac_try="$ac_link"
43772 case "(($ac_try" in
43773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43774   *) ac_try_echo=$ac_try;;
43775 esac
43776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43777   (eval "$ac_link") 2>conftest.er1
43778   ac_status=$?
43779   grep -v '^ *+' conftest.er1 >conftest.err
43780   rm -f conftest.er1
43781   cat conftest.err >&5
43782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43783   (exit $ac_status); } && {
43784          test -z "$ac_c_werror_flag" ||
43785          test ! -s conftest.err
43786        } && test -s conftest$ac_exeext &&
43787        $as_test_x conftest$ac_exeext; then
43788   ac_cv_lib_socket_socket=yes
43789 else
43790   echo "$as_me: failed program was:" >&5
43791 sed 's/^/| /' conftest.$ac_ext >&5
43792
43793         ac_cv_lib_socket_socket=no
43794 fi
43795
43796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43797       conftest$ac_exeext conftest.$ac_ext
43798 LIBS=$ac_check_lib_save_LIBS
43799 fi
43800 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43801 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
43802 if test $ac_cv_lib_socket_socket = yes; then
43803   if test "$INET_LINK" != " -lsocket"; then
43804                         INET_LINK="$INET_LINK -lsocket"
43805                     fi
43806 else
43807
43808                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43809 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43810                         wxUSE_SOCKETS=no
43811
43812
43813 fi
43814
43815
43816
43817 fi
43818
43819     fi
43820 fi
43821
43822 if test "$wxUSE_SOCKETS" = "yes" ; then
43823                 if test "$TOOLKIT" != "MSW"; then
43824                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43825 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
43826 if test "${wx_cv_type_getsockname3+set}" = set; then
43827   echo $ECHO_N "(cached) $ECHO_C" >&6
43828 else
43829
43830                 ac_ext=cpp
43831 ac_cpp='$CXXCPP $CPPFLAGS'
43832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43835
43836                 cat >conftest.$ac_ext <<_ACEOF
43837 /* confdefs.h.  */
43838 _ACEOF
43839 cat confdefs.h >>conftest.$ac_ext
43840 cat >>conftest.$ac_ext <<_ACEOF
43841 /* end confdefs.h.  */
43842
43843                         #include <sys/types.h>
43844                         #include <sys/socket.h>
43845
43846 int
43847 main ()
43848 {
43849
43850                         socklen_t len;
43851                         getsockname(0, 0, &len);
43852
43853   ;
43854   return 0;
43855 }
43856 _ACEOF
43857 rm -f conftest.$ac_objext
43858 if { (ac_try="$ac_compile"
43859 case "(($ac_try" in
43860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43861   *) ac_try_echo=$ac_try;;
43862 esac
43863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43864   (eval "$ac_compile") 2>conftest.er1
43865   ac_status=$?
43866   grep -v '^ *+' conftest.er1 >conftest.err
43867   rm -f conftest.er1
43868   cat conftest.err >&5
43869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870   (exit $ac_status); } && {
43871          test -z "$ac_cxx_werror_flag" ||
43872          test ! -s conftest.err
43873        } && test -s conftest.$ac_objext; then
43874   wx_cv_type_getsockname3=socklen_t
43875 else
43876   echo "$as_me: failed program was:" >&5
43877 sed 's/^/| /' conftest.$ac_ext >&5
43878
43879
43880                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
43881                         if test "$GCC" = yes ; then
43882                             CFLAGS="-Werror $CFLAGS"
43883                         fi
43884
43885                         cat >conftest.$ac_ext <<_ACEOF
43886 /* confdefs.h.  */
43887 _ACEOF
43888 cat confdefs.h >>conftest.$ac_ext
43889 cat >>conftest.$ac_ext <<_ACEOF
43890 /* end confdefs.h.  */
43891
43892                                 #include <sys/types.h>
43893                                 #include <sys/socket.h>
43894
43895 int
43896 main ()
43897 {
43898
43899                                 size_t len;
43900                                 getsockname(0, 0, &len);
43901
43902   ;
43903   return 0;
43904 }
43905 _ACEOF
43906 rm -f conftest.$ac_objext
43907 if { (ac_try="$ac_compile"
43908 case "(($ac_try" in
43909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43910   *) ac_try_echo=$ac_try;;
43911 esac
43912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43913   (eval "$ac_compile") 2>conftest.er1
43914   ac_status=$?
43915   grep -v '^ *+' conftest.er1 >conftest.err
43916   rm -f conftest.er1
43917   cat conftest.err >&5
43918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43919   (exit $ac_status); } && {
43920          test -z "$ac_cxx_werror_flag" ||
43921          test ! -s conftest.err
43922        } && test -s conftest.$ac_objext; then
43923   wx_cv_type_getsockname3=size_t
43924 else
43925   echo "$as_me: failed program was:" >&5
43926 sed 's/^/| /' conftest.$ac_ext >&5
43927
43928         cat >conftest.$ac_ext <<_ACEOF
43929 /* confdefs.h.  */
43930 _ACEOF
43931 cat confdefs.h >>conftest.$ac_ext
43932 cat >>conftest.$ac_ext <<_ACEOF
43933 /* end confdefs.h.  */
43934
43935                                     #include <sys/types.h>
43936                                     #include <sys/socket.h>
43937
43938 int
43939 main ()
43940 {
43941
43942                                     int len;
43943                                     getsockname(0, 0, &len);
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   wx_cv_type_getsockname3=int
43967 else
43968   echo "$as_me: failed program was:" >&5
43969 sed 's/^/| /' conftest.$ac_ext >&5
43970
43971         wx_cv_type_getsockname3=unknown
43972
43973 fi
43974
43975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43976
43977 fi
43978
43979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43980
43981                         CFLAGS="$CFLAGS_OLD"
43982
43983
43984 fi
43985
43986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43987                 ac_ext=c
43988 ac_cpp='$CPP $CPPFLAGS'
43989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43992
43993
43994 fi
43995 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43996 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
43997
43998         if test "$wx_cv_type_getsockname3" = "unknown"; then
43999             wxUSE_SOCKETS=no
44000             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44001 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44002         else
44003             cat >>confdefs.h <<_ACEOF
44004 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44005 _ACEOF
44006
44007         fi
44008                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44009 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44010 if test "${wx_cv_type_getsockopt5+set}" = set; then
44011   echo $ECHO_N "(cached) $ECHO_C" >&6
44012 else
44013
44014                                                                                                 ac_ext=cpp
44015 ac_cpp='$CXXCPP $CPPFLAGS'
44016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44019
44020                 cat >conftest.$ac_ext <<_ACEOF
44021 /* confdefs.h.  */
44022 _ACEOF
44023 cat confdefs.h >>conftest.$ac_ext
44024 cat >>conftest.$ac_ext <<_ACEOF
44025 /* end confdefs.h.  */
44026
44027                         #include <sys/types.h>
44028                         #include <sys/socket.h>
44029
44030 int
44031 main ()
44032 {
44033
44034                         socklen_t len;
44035                         getsockopt(0, 0, 0, 0, &len);
44036
44037   ;
44038   return 0;
44039 }
44040 _ACEOF
44041 rm -f conftest.$ac_objext
44042 if { (ac_try="$ac_compile"
44043 case "(($ac_try" in
44044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44045   *) ac_try_echo=$ac_try;;
44046 esac
44047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44048   (eval "$ac_compile") 2>conftest.er1
44049   ac_status=$?
44050   grep -v '^ *+' conftest.er1 >conftest.err
44051   rm -f conftest.er1
44052   cat conftest.err >&5
44053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44054   (exit $ac_status); } && {
44055          test -z "$ac_cxx_werror_flag" ||
44056          test ! -s conftest.err
44057        } && test -s conftest.$ac_objext; then
44058   wx_cv_type_getsockopt5=socklen_t
44059 else
44060   echo "$as_me: failed program was:" >&5
44061 sed 's/^/| /' conftest.$ac_ext >&5
44062
44063
44064                         cat >conftest.$ac_ext <<_ACEOF
44065 /* confdefs.h.  */
44066 _ACEOF
44067 cat confdefs.h >>conftest.$ac_ext
44068 cat >>conftest.$ac_ext <<_ACEOF
44069 /* end confdefs.h.  */
44070
44071                                 #include <sys/types.h>
44072                                 #include <sys/socket.h>
44073
44074 int
44075 main ()
44076 {
44077
44078                                 size_t len;
44079                                 getsockopt(0, 0, 0, 0, &len);
44080
44081   ;
44082   return 0;
44083 }
44084 _ACEOF
44085 rm -f conftest.$ac_objext
44086 if { (ac_try="$ac_compile"
44087 case "(($ac_try" in
44088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44089   *) ac_try_echo=$ac_try;;
44090 esac
44091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44092   (eval "$ac_compile") 2>conftest.er1
44093   ac_status=$?
44094   grep -v '^ *+' conftest.er1 >conftest.err
44095   rm -f conftest.er1
44096   cat conftest.err >&5
44097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44098   (exit $ac_status); } && {
44099          test -z "$ac_cxx_werror_flag" ||
44100          test ! -s conftest.err
44101        } && test -s conftest.$ac_objext; then
44102   wx_cv_type_getsockopt5=size_t
44103 else
44104   echo "$as_me: failed program was:" >&5
44105 sed 's/^/| /' conftest.$ac_ext >&5
44106
44107         cat >conftest.$ac_ext <<_ACEOF
44108 /* confdefs.h.  */
44109 _ACEOF
44110 cat confdefs.h >>conftest.$ac_ext
44111 cat >>conftest.$ac_ext <<_ACEOF
44112 /* end confdefs.h.  */
44113
44114                                     #include <sys/types.h>
44115                                     #include <sys/socket.h>
44116
44117 int
44118 main ()
44119 {
44120
44121                                     int len;
44122                                     getsockopt(0, 0, 0, 0, &len);
44123
44124   ;
44125   return 0;
44126 }
44127 _ACEOF
44128 rm -f conftest.$ac_objext
44129 if { (ac_try="$ac_compile"
44130 case "(($ac_try" in
44131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44132   *) ac_try_echo=$ac_try;;
44133 esac
44134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44135   (eval "$ac_compile") 2>conftest.er1
44136   ac_status=$?
44137   grep -v '^ *+' conftest.er1 >conftest.err
44138   rm -f conftest.er1
44139   cat conftest.err >&5
44140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44141   (exit $ac_status); } && {
44142          test -z "$ac_cxx_werror_flag" ||
44143          test ! -s conftest.err
44144        } && test -s conftest.$ac_objext; then
44145   wx_cv_type_getsockopt5=int
44146 else
44147   echo "$as_me: failed program was:" >&5
44148 sed 's/^/| /' conftest.$ac_ext >&5
44149
44150         wx_cv_type_getsockopt5=unknown
44151
44152 fi
44153
44154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44155
44156 fi
44157
44158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44159
44160
44161 fi
44162
44163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44164                 ac_ext=c
44165 ac_cpp='$CPP $CPPFLAGS'
44166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44169
44170
44171 fi
44172 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44173 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44174
44175         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44176             wxUSE_SOCKETS=no
44177             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44178 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44179         else
44180             cat >>confdefs.h <<_ACEOF
44181 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44182 _ACEOF
44183
44184         fi
44185     fi
44186 fi
44187
44188 if test "$wxUSE_SOCKETS" = "yes" ; then
44189     if test "$wxUSE_IPV6" = "yes"; then
44190         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44191 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44192 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44193   echo $ECHO_N "(cached) $ECHO_C" >&6
44194 else
44195
44196                 cat >conftest.$ac_ext <<_ACEOF
44197 /* confdefs.h.  */
44198 _ACEOF
44199 cat confdefs.h >>conftest.$ac_ext
44200 cat >>conftest.$ac_ext <<_ACEOF
44201 /* end confdefs.h.  */
44202
44203                         #include <sys/types.h>
44204                         #include <sys/socket.h>
44205                         #include <netinet/in.h>
44206
44207 int
44208 main ()
44209 {
44210
44211                         struct sockaddr_in6 sa6;
44212
44213   ;
44214   return 0;
44215 }
44216 _ACEOF
44217 rm -f conftest.$ac_objext
44218 if { (ac_try="$ac_compile"
44219 case "(($ac_try" in
44220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44221   *) ac_try_echo=$ac_try;;
44222 esac
44223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44224   (eval "$ac_compile") 2>conftest.er1
44225   ac_status=$?
44226   grep -v '^ *+' conftest.er1 >conftest.err
44227   rm -f conftest.er1
44228   cat conftest.err >&5
44229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44230   (exit $ac_status); } && {
44231          test -z "$ac_c_werror_flag" ||
44232          test ! -s conftest.err
44233        } && test -s conftest.$ac_objext; then
44234   wx_cv_type_sockaddr_in6=yes
44235 else
44236   echo "$as_me: failed program was:" >&5
44237 sed 's/^/| /' conftest.$ac_ext >&5
44238
44239         wx_cv_type_sockaddr_in6=no
44240
44241 fi
44242
44243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44244
44245
44246 fi
44247 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44248 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44249
44250         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44251             cat >>confdefs.h <<\_ACEOF
44252 #define wxUSE_IPV6 1
44253 _ACEOF
44254
44255         else
44256             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44257 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44258         fi
44259     fi
44260
44261     cat >>confdefs.h <<\_ACEOF
44262 #define wxUSE_SOCKETS 1
44263 _ACEOF
44264
44265     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44266 fi
44267
44268 if test "$wxUSE_PROTOCOL" = "yes"; then
44269     if test "$wxUSE_SOCKETS" != "yes"; then
44270         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44271 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44272         wxUSE_PROTOCOL=no
44273     fi
44274 fi
44275
44276 if test "$wxUSE_PROTOCOL" = "yes"; then
44277     cat >>confdefs.h <<\_ACEOF
44278 #define wxUSE_PROTOCOL 1
44279 _ACEOF
44280
44281
44282     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44283         cat >>confdefs.h <<\_ACEOF
44284 #define wxUSE_PROTOCOL_HTTP 1
44285 _ACEOF
44286
44287     fi
44288     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44289         cat >>confdefs.h <<\_ACEOF
44290 #define wxUSE_PROTOCOL_FTP 1
44291 _ACEOF
44292
44293     fi
44294     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44295         cat >>confdefs.h <<\_ACEOF
44296 #define wxUSE_PROTOCOL_FILE 1
44297 _ACEOF
44298
44299     fi
44300 else
44301     if test "$wxUSE_FS_INET" = "yes"; then
44302         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44303 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44304         wxUSE_FS_INET="no"
44305     fi
44306 fi
44307
44308 if test "$wxUSE_URL" = "yes"; then
44309     if test "$wxUSE_PROTOCOL" != "yes"; then
44310         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44311 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44312         wxUSE_URL=no
44313     fi
44314     if test "$wxUSE_URL" = "yes"; then
44315         cat >>confdefs.h <<\_ACEOF
44316 #define wxUSE_URL 1
44317 _ACEOF
44318
44319     fi
44320 fi
44321
44322 if test "$wxUSE_VARIANT" = "yes"; then
44323     cat >>confdefs.h <<\_ACEOF
44324 #define wxUSE_VARIANT 1
44325 _ACEOF
44326
44327 fi
44328
44329 if test "$wxUSE_FS_INET" = "yes"; then
44330   cat >>confdefs.h <<\_ACEOF
44331 #define wxUSE_FS_INET 1
44332 _ACEOF
44333
44334 fi
44335
44336
44337 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44338     wxUSE_JOYSTICK=no
44339
44340         if test "$TOOLKIT" = "MSW"; then
44341         wxUSE_JOYSTICK=yes
44342
44343         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44344         if test "$USE_DARWIN" = 1; then
44345                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44346 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44347             ac_ext=cpp
44348 ac_cpp='$CXXCPP $CPPFLAGS'
44349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44352
44353             cat >conftest.$ac_ext <<_ACEOF
44354 /* confdefs.h.  */
44355 _ACEOF
44356 cat confdefs.h >>conftest.$ac_ext
44357 cat >>conftest.$ac_ext <<_ACEOF
44358 /* end confdefs.h.  */
44359  #include <IOKit/hid/IOHIDLib.h>
44360 int
44361 main ()
44362 {
44363  IOHIDQueueInterface *qi = NULL;
44364                               IOHIDCallbackFunction cb = NULL;
44365                               qi->setEventCallout(NULL, cb, NULL, NULL);
44366   ;
44367   return 0;
44368 }
44369 _ACEOF
44370 rm -f conftest.$ac_objext
44371 if { (ac_try="$ac_compile"
44372 case "(($ac_try" in
44373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44374   *) ac_try_echo=$ac_try;;
44375 esac
44376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44377   (eval "$ac_compile") 2>conftest.er1
44378   ac_status=$?
44379   grep -v '^ *+' conftest.er1 >conftest.err
44380   rm -f conftest.er1
44381   cat conftest.err >&5
44382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44383   (exit $ac_status); } && {
44384          test -z "$ac_cxx_werror_flag" ||
44385          test ! -s conftest.err
44386        } && test -s conftest.$ac_objext; then
44387    wxUSE_JOYSTICK=yes
44388
44389 else
44390   echo "$as_me: failed program was:" >&5
44391 sed 's/^/| /' conftest.$ac_ext >&5
44392
44393
44394 fi
44395
44396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44397             ac_ext=c
44398 ac_cpp='$CPP $CPPFLAGS'
44399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44402
44403             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44404 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44405         fi
44406
44407         else
44408                 if test "$wxUSE_MGL" != 1; then
44409
44410 for ac_header in linux/joystick.h
44411 do
44412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44416   echo $ECHO_N "(cached) $ECHO_C" >&6
44417 else
44418   cat >conftest.$ac_ext <<_ACEOF
44419 /* confdefs.h.  */
44420 _ACEOF
44421 cat confdefs.h >>conftest.$ac_ext
44422 cat >>conftest.$ac_ext <<_ACEOF
44423 /* end confdefs.h.  */
44424 $ac_includes_default
44425
44426 #include <$ac_header>
44427 _ACEOF
44428 rm -f conftest.$ac_objext
44429 if { (ac_try="$ac_compile"
44430 case "(($ac_try" in
44431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44432   *) ac_try_echo=$ac_try;;
44433 esac
44434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44435   (eval "$ac_compile") 2>conftest.er1
44436   ac_status=$?
44437   grep -v '^ *+' conftest.er1 >conftest.err
44438   rm -f conftest.er1
44439   cat conftest.err >&5
44440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44441   (exit $ac_status); } && {
44442          test -z "$ac_c_werror_flag" ||
44443          test ! -s conftest.err
44444        } && test -s conftest.$ac_objext; then
44445   eval "$as_ac_Header=yes"
44446 else
44447   echo "$as_me: failed program was:" >&5
44448 sed 's/^/| /' conftest.$ac_ext >&5
44449
44450         eval "$as_ac_Header=no"
44451 fi
44452
44453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44454 fi
44455 ac_res=`eval echo '${'$as_ac_Header'}'`
44456                { echo "$as_me:$LINENO: result: $ac_res" >&5
44457 echo "${ECHO_T}$ac_res" >&6; }
44458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44459   cat >>confdefs.h <<_ACEOF
44460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44461 _ACEOF
44462  wxUSE_JOYSTICK=yes
44463 fi
44464
44465 done
44466
44467         fi
44468     fi
44469
44470     if test "$wxUSE_JOYSTICK" = "yes"; then
44471         cat >>confdefs.h <<\_ACEOF
44472 #define wxUSE_JOYSTICK 1
44473 _ACEOF
44474
44475         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44476     else
44477         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44478 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44479     fi
44480 fi
44481
44482
44483
44484 if test "$wxUSE_FONTENUM" = "yes" ; then
44485   cat >>confdefs.h <<\_ACEOF
44486 #define wxUSE_FONTENUM 1
44487 _ACEOF
44488
44489 fi
44490
44491 if test "$wxUSE_FONTMAP" = "yes" ; then
44492   cat >>confdefs.h <<\_ACEOF
44493 #define wxUSE_FONTMAP 1
44494 _ACEOF
44495
44496 fi
44497
44498 if test "$wxUSE_UNICODE" = "yes" ; then
44499   cat >>confdefs.h <<\_ACEOF
44500 #define wxUSE_UNICODE 1
44501 _ACEOF
44502
44503
44504   if test "$USE_WIN32" != 1; then
44505       wxUSE_UNICODE_MSLU=no
44506   fi
44507
44508   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44509         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44510 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
44511 if test "${ac_cv_lib_unicows_main+set}" = set; then
44512   echo $ECHO_N "(cached) $ECHO_C" >&6
44513 else
44514   ac_check_lib_save_LIBS=$LIBS
44515 LIBS="-lunicows  $LIBS"
44516 cat >conftest.$ac_ext <<_ACEOF
44517 /* confdefs.h.  */
44518 _ACEOF
44519 cat confdefs.h >>conftest.$ac_ext
44520 cat >>conftest.$ac_ext <<_ACEOF
44521 /* end confdefs.h.  */
44522
44523
44524 int
44525 main ()
44526 {
44527 return main ();
44528   ;
44529   return 0;
44530 }
44531 _ACEOF
44532 rm -f conftest.$ac_objext conftest$ac_exeext
44533 if { (ac_try="$ac_link"
44534 case "(($ac_try" in
44535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44536   *) ac_try_echo=$ac_try;;
44537 esac
44538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44539   (eval "$ac_link") 2>conftest.er1
44540   ac_status=$?
44541   grep -v '^ *+' conftest.er1 >conftest.err
44542   rm -f conftest.er1
44543   cat conftest.err >&5
44544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44545   (exit $ac_status); } && {
44546          test -z "$ac_c_werror_flag" ||
44547          test ! -s conftest.err
44548        } && test -s conftest$ac_exeext &&
44549        $as_test_x conftest$ac_exeext; then
44550   ac_cv_lib_unicows_main=yes
44551 else
44552   echo "$as_me: failed program was:" >&5
44553 sed 's/^/| /' conftest.$ac_ext >&5
44554
44555         ac_cv_lib_unicows_main=no
44556 fi
44557
44558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44559       conftest$ac_exeext conftest.$ac_ext
44560 LIBS=$ac_check_lib_save_LIBS
44561 fi
44562 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44563 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
44564 if test $ac_cv_lib_unicows_main = yes; then
44565
44566                 cat >>confdefs.h <<\_ACEOF
44567 #define wxUSE_UNICODE_MSLU 1
44568 _ACEOF
44569
44570
44571 else
44572
44573                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44574                              Applications will only run on Windows NT/2000/XP!" >&5
44575 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44576                              Applications will only run on Windows NT/2000/XP!" >&2;}
44577                 wxUSE_UNICODE_MSLU=no
44578
44579 fi
44580
44581     fi
44582 fi
44583
44584 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
44585     cat >>confdefs.h <<\_ACEOF
44586 #define wxUSE_UNICODE_UTF8 1
44587 _ACEOF
44588
44589
44590     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
44591         cat >>confdefs.h <<\_ACEOF
44592 #define wxUSE_UTF8_LOCALE_ONLY 1
44593 _ACEOF
44594
44595     fi
44596 fi
44597
44598
44599 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44600     cat >>confdefs.h <<\_ACEOF
44601 #define wxUSE_CONSTRAINTS 1
44602 _ACEOF
44603
44604     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44605 fi
44606
44607 if test "$wxUSE_MDI" = "yes"; then
44608     cat >>confdefs.h <<\_ACEOF
44609 #define wxUSE_MDI 1
44610 _ACEOF
44611
44612
44613     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44614         cat >>confdefs.h <<\_ACEOF
44615 #define wxUSE_MDI_ARCHITECTURE 1
44616 _ACEOF
44617
44618         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44619     fi
44620 fi
44621
44622 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44623     cat >>confdefs.h <<\_ACEOF
44624 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44625 _ACEOF
44626
44627     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44628     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44629         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44630     fi
44631 fi
44632
44633 if test "$wxUSE_HELP" = "yes"; then
44634     cat >>confdefs.h <<\_ACEOF
44635 #define wxUSE_HELP 1
44636 _ACEOF
44637
44638     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44639
44640     if test "$wxUSE_MSW" = 1; then
44641       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44642         cat >>confdefs.h <<\_ACEOF
44643 #define wxUSE_MS_HTML_HELP 1
44644 _ACEOF
44645
44646       fi
44647     fi
44648
44649     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44650       if test "$wxUSE_HTML" = "yes"; then
44651         cat >>confdefs.h <<\_ACEOF
44652 #define wxUSE_WXHTML_HELP 1
44653 _ACEOF
44654
44655       else
44656         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44657 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44658         wxUSE_WXHTML_HELP=no
44659       fi
44660     fi
44661 fi
44662
44663 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44664     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44665         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44666 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44667     else
44668         cat >>confdefs.h <<\_ACEOF
44669 #define wxUSE_PRINTING_ARCHITECTURE 1
44670 _ACEOF
44671
44672     fi
44673     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44674 fi
44675
44676 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44677   cat >>confdefs.h <<\_ACEOF
44678 #define wxUSE_POSTSCRIPT 1
44679 _ACEOF
44680
44681 fi
44682
44683 cat >>confdefs.h <<\_ACEOF
44684 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44685 _ACEOF
44686
44687
44688 if test "$wxUSE_SVG" = "yes"; then
44689     cat >>confdefs.h <<\_ACEOF
44690 #define wxUSE_SVG 1
44691 _ACEOF
44692
44693 fi
44694
44695
44696 if test "$wxUSE_METAFILE" = "yes"; then
44697     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44698         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44699 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44700         wxUSE_METAFILE=no
44701     fi
44702 fi
44703
44704
44705 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44706                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44707                           -o "$wxUSE_OLE"     = "yes" \
44708                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44709     { echo "$as_me:$LINENO: checking for ole2.h" >&5
44710 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
44711 if test "${ac_cv_header_ole2_h+set}" = set; then
44712   echo $ECHO_N "(cached) $ECHO_C" >&6
44713 else
44714   cat >conftest.$ac_ext <<_ACEOF
44715 /* confdefs.h.  */
44716 _ACEOF
44717 cat confdefs.h >>conftest.$ac_ext
44718 cat >>conftest.$ac_ext <<_ACEOF
44719 /* end confdefs.h.  */
44720
44721
44722 #include <ole2.h>
44723 _ACEOF
44724 rm -f conftest.$ac_objext
44725 if { (ac_try="$ac_compile"
44726 case "(($ac_try" in
44727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44728   *) ac_try_echo=$ac_try;;
44729 esac
44730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44731   (eval "$ac_compile") 2>conftest.er1
44732   ac_status=$?
44733   grep -v '^ *+' conftest.er1 >conftest.err
44734   rm -f conftest.er1
44735   cat conftest.err >&5
44736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44737   (exit $ac_status); } && {
44738          test -z "$ac_c_werror_flag" ||
44739          test ! -s conftest.err
44740        } && test -s conftest.$ac_objext; then
44741   ac_cv_header_ole2_h=yes
44742 else
44743   echo "$as_me: failed program was:" >&5
44744 sed 's/^/| /' conftest.$ac_ext >&5
44745
44746         ac_cv_header_ole2_h=no
44747 fi
44748
44749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44750 fi
44751 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
44752 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
44753
44754
44755
44756     if test "$ac_cv_header_ole2_h" = "yes" ; then
44757         if test "$GCC" = yes ; then
44758             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44759 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
44760             cat >conftest.$ac_ext <<_ACEOF
44761 /* confdefs.h.  */
44762 _ACEOF
44763 cat confdefs.h >>conftest.$ac_ext
44764 cat >>conftest.$ac_ext <<_ACEOF
44765 /* end confdefs.h.  */
44766 #include <windows.h>
44767                             #include <ole2.h>
44768 int
44769 main ()
44770 {
44771
44772   ;
44773   return 0;
44774 }
44775 _ACEOF
44776 rm -f conftest.$ac_objext
44777 if { (ac_try="$ac_compile"
44778 case "(($ac_try" in
44779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44780   *) ac_try_echo=$ac_try;;
44781 esac
44782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44783   (eval "$ac_compile") 2>conftest.er1
44784   ac_status=$?
44785   grep -v '^ *+' conftest.er1 >conftest.err
44786   rm -f conftest.er1
44787   cat conftest.err >&5
44788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44789   (exit $ac_status); } && {
44790          test -z "$ac_c_werror_flag" ||
44791          test ! -s conftest.err
44792        } && test -s conftest.$ac_objext; then
44793   { echo "$as_me:$LINENO: result: no" >&5
44794 echo "${ECHO_T}no" >&6; }
44795 else
44796   echo "$as_me: failed program was:" >&5
44797 sed 's/^/| /' conftest.$ac_ext >&5
44798
44799         { echo "$as_me:$LINENO: result: yes" >&5
44800 echo "${ECHO_T}yes" >&6; }
44801                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
44802 fi
44803
44804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44805             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44806             if test "$wxUSE_OLE" = "yes" ; then
44807                 cat >>confdefs.h <<\_ACEOF
44808 #define wxUSE_OLE 1
44809 _ACEOF
44810
44811                 cat >>confdefs.h <<\_ACEOF
44812 #define wxUSE_OLE_AUTOMATION 1
44813 _ACEOF
44814
44815                 cat >>confdefs.h <<\_ACEOF
44816 #define wxUSE_ACTIVEX 1
44817 _ACEOF
44818
44819                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
44820             fi
44821         fi
44822
44823                 if test "$wxUSE_DATAOBJ" = "yes" ; then
44824             cat >>confdefs.h <<\_ACEOF
44825 #define wxUSE_DATAOBJ 1
44826 _ACEOF
44827
44828         fi
44829     else
44830         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44831 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44832
44833         wxUSE_CLIPBOARD=no
44834         wxUSE_DRAG_AND_DROP=no
44835         wxUSE_DATAOBJ=no
44836         wxUSE_OLE=no
44837     fi
44838
44839     if test "$wxUSE_METAFILE" = "yes"; then
44840         cat >>confdefs.h <<\_ACEOF
44841 #define wxUSE_METAFILE 1
44842 _ACEOF
44843
44844
44845                 cat >>confdefs.h <<\_ACEOF
44846 #define wxUSE_ENH_METAFILE 1
44847 _ACEOF
44848
44849     fi
44850 fi
44851
44852 if test "$wxUSE_IPC" = "yes"; then
44853     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
44854         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44855 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
44856         wxUSE_IPC=no
44857     fi
44858
44859     if test "$wxUSE_IPC" = "yes"; then
44860         cat >>confdefs.h <<\_ACEOF
44861 #define wxUSE_IPC 1
44862 _ACEOF
44863
44864         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44865     fi
44866 fi
44867
44868 if test "$wxUSE_DATAOBJ" = "yes"; then
44869     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44870         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
44871 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
44872         wxUSE_DATAOBJ=no
44873     else
44874         cat >>confdefs.h <<\_ACEOF
44875 #define wxUSE_DATAOBJ 1
44876 _ACEOF
44877
44878     fi
44879 else
44880     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44881 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44882     wxUSE_CLIPBOARD=no
44883     wxUSE_DRAG_AND_DROP=no
44884 fi
44885
44886 if test "$wxUSE_CLIPBOARD" = "yes"; then
44887     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44888         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
44889 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
44890         wxUSE_CLIPBOARD=no
44891     fi
44892
44893     if test "$wxUSE_CLIPBOARD" = "yes"; then
44894         cat >>confdefs.h <<\_ACEOF
44895 #define wxUSE_CLIPBOARD 1
44896 _ACEOF
44897
44898     fi
44899 fi
44900
44901 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44902     if test "$wxUSE_GTK" = 1; then
44903         if test "$WXGTK12" != 1; then
44904             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44905 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44906             wxUSE_DRAG_AND_DROP=no
44907         fi
44908     fi
44909
44910     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
44911             "$wxUSE_DFB" = 1; then
44912         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
44913 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
44914         wxUSE_DRAG_AND_DROP=no
44915     fi
44916
44917     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44918         cat >>confdefs.h <<\_ACEOF
44919 #define wxUSE_DRAG_AND_DROP 1
44920 _ACEOF
44921
44922     fi
44923
44924 fi
44925
44926 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44927     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44928 fi
44929
44930 if test "$wxUSE_SPLINES" = "yes" ; then
44931   cat >>confdefs.h <<\_ACEOF
44932 #define wxUSE_SPLINES 1
44933 _ACEOF
44934
44935 fi
44936
44937 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44938   cat >>confdefs.h <<\_ACEOF
44939 #define wxUSE_MOUSEWHEEL 1
44940 _ACEOF
44941
44942 fi
44943
44944
44945 USES_CONTROLS=0
44946 if test "$wxUSE_CONTROLS" = "yes"; then
44947   USES_CONTROLS=1
44948 fi
44949
44950 if test "$wxUSE_ACCEL" = "yes"; then
44951   cat >>confdefs.h <<\_ACEOF
44952 #define wxUSE_ACCEL 1
44953 _ACEOF
44954
44955   USES_CONTROLS=1
44956 fi
44957
44958 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
44959   cat >>confdefs.h <<\_ACEOF
44960 #define wxUSE_ANIMATIONCTRL 1
44961 _ACEOF
44962
44963   USES_CONTROLS=1
44964   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
44965 fi
44966
44967 if test "$wxUSE_BUTTON" = "yes"; then
44968   cat >>confdefs.h <<\_ACEOF
44969 #define wxUSE_BUTTON 1
44970 _ACEOF
44971
44972   USES_CONTROLS=1
44973 fi
44974
44975 if test "$wxUSE_BMPBUTTON" = "yes"; then
44976   cat >>confdefs.h <<\_ACEOF
44977 #define wxUSE_BMPBUTTON 1
44978 _ACEOF
44979
44980   USES_CONTROLS=1
44981 fi
44982
44983 if test "$wxUSE_CALCTRL" = "yes"; then
44984   cat >>confdefs.h <<\_ACEOF
44985 #define wxUSE_CALENDARCTRL 1
44986 _ACEOF
44987
44988   USES_CONTROLS=1
44989   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44990 fi
44991
44992 if test "$wxUSE_CARET" = "yes"; then
44993   cat >>confdefs.h <<\_ACEOF
44994 #define wxUSE_CARET 1
44995 _ACEOF
44996
44997   USES_CONTROLS=1
44998   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44999 fi
45000
45001 if test "$wxUSE_COLLPANE" = "yes"; then
45002     cat >>confdefs.h <<\_ACEOF
45003 #define wxUSE_COLLPANE 1
45004 _ACEOF
45005
45006     USES_CONTROLS=1
45007     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45008 fi
45009
45010 if test "$wxUSE_COMBOBOX" = "yes"; then
45011   cat >>confdefs.h <<\_ACEOF
45012 #define wxUSE_COMBOBOX 1
45013 _ACEOF
45014
45015   USES_CONTROLS=1
45016 fi
45017
45018 if test "$wxUSE_COMBOCTRL" = "yes"; then
45019   cat >>confdefs.h <<\_ACEOF
45020 #define wxUSE_COMBOCTRL 1
45021 _ACEOF
45022
45023   USES_CONTROLS=1
45024 fi
45025
45026 if test "$wxUSE_CHOICE" = "yes"; then
45027   cat >>confdefs.h <<\_ACEOF
45028 #define wxUSE_CHOICE 1
45029 _ACEOF
45030
45031   USES_CONTROLS=1
45032 fi
45033
45034 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45035     cat >>confdefs.h <<\_ACEOF
45036 #define wxUSE_CHOICEBOOK 1
45037 _ACEOF
45038
45039     USES_CONTROLS=1
45040 fi
45041
45042 if test "$wxUSE_CHECKBOX" = "yes"; then
45043   cat >>confdefs.h <<\_ACEOF
45044 #define wxUSE_CHECKBOX 1
45045 _ACEOF
45046
45047   USES_CONTROLS=1
45048 fi
45049
45050 if test "$wxUSE_CHECKLST" = "yes"; then
45051   cat >>confdefs.h <<\_ACEOF
45052 #define wxUSE_CHECKLISTBOX 1
45053 _ACEOF
45054
45055   USES_CONTROLS=1
45056 fi
45057
45058 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45059   cat >>confdefs.h <<\_ACEOF
45060 #define wxUSE_COLOURPICKERCTRL 1
45061 _ACEOF
45062
45063   USES_CONTROLS=1
45064 fi
45065
45066 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45067   cat >>confdefs.h <<\_ACEOF
45068 #define wxUSE_DATEPICKCTRL 1
45069 _ACEOF
45070
45071   USES_CONTROLS=1
45072 fi
45073
45074 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45075   cat >>confdefs.h <<\_ACEOF
45076 #define wxUSE_DIRPICKERCTRL 1
45077 _ACEOF
45078
45079   USES_CONTROLS=1
45080 fi
45081
45082 if test "$wxUSE_FILECTRL" = "yes"; then
45083   cat >>confdefs.h <<\_ACEOF
45084 #define wxUSE_FILECTRL 1
45085 _ACEOF
45086
45087   USES_CONTROLS=1
45088 fi
45089
45090 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45091   cat >>confdefs.h <<\_ACEOF
45092 #define wxUSE_FILEPICKERCTRL 1
45093 _ACEOF
45094
45095   USES_CONTROLS=1
45096 fi
45097
45098 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45099   cat >>confdefs.h <<\_ACEOF
45100 #define wxUSE_FONTPICKERCTRL 1
45101 _ACEOF
45102
45103   USES_CONTROLS=1
45104 fi
45105
45106 if test "$wxUSE_DISPLAY" = "yes"; then
45107     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45108         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45109 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45110         wxUSE_DISPLAY=no
45111     else
45112         cat >>confdefs.h <<\_ACEOF
45113 #define wxUSE_DISPLAY 1
45114 _ACEOF
45115
45116         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45117     fi
45118 fi
45119
45120 if test "$wxUSE_DETECT_SM" = "yes"; then
45121     cat >>confdefs.h <<\_ACEOF
45122 #define wxUSE_DETECT_SM 1
45123 _ACEOF
45124
45125 fi
45126
45127 if test "$wxUSE_GAUGE" = "yes"; then
45128   cat >>confdefs.h <<\_ACEOF
45129 #define wxUSE_GAUGE 1
45130 _ACEOF
45131
45132   USES_CONTROLS=1
45133 fi
45134
45135 if test "$wxUSE_GRID" = "yes"; then
45136   cat >>confdefs.h <<\_ACEOF
45137 #define wxUSE_GRID 1
45138 _ACEOF
45139
45140   USES_CONTROLS=1
45141   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45142 fi
45143
45144 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45145   cat >>confdefs.h <<\_ACEOF
45146 #define wxUSE_HYPERLINKCTRL 1
45147 _ACEOF
45148
45149   USES_CONTROLS=1
45150 fi
45151
45152 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45153   cat >>confdefs.h <<\_ACEOF
45154 #define wxUSE_BITMAPCOMBOBOX 1
45155 _ACEOF
45156
45157   USES_CONTROLS=1
45158 fi
45159
45160 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45161   cat >>confdefs.h <<\_ACEOF
45162 #define wxUSE_DATAVIEWCTRL 1
45163 _ACEOF
45164
45165   USES_CONTROLS=1
45166   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45167 fi
45168
45169 if test "$wxUSE_IMAGLIST" = "yes"; then
45170     cat >>confdefs.h <<\_ACEOF
45171 #define wxUSE_IMAGLIST 1
45172 _ACEOF
45173
45174 fi
45175
45176 if test "$wxUSE_LISTBOOK" = "yes"; then
45177     cat >>confdefs.h <<\_ACEOF
45178 #define wxUSE_LISTBOOK 1
45179 _ACEOF
45180
45181     USES_CONTROLS=1
45182 fi
45183
45184 if test "$wxUSE_LISTBOX" = "yes"; then
45185     cat >>confdefs.h <<\_ACEOF
45186 #define wxUSE_LISTBOX 1
45187 _ACEOF
45188
45189     USES_CONTROLS=1
45190 fi
45191
45192 if test "$wxUSE_LISTCTRL" = "yes"; then
45193     if test "$wxUSE_IMAGLIST" = "yes"; then
45194         cat >>confdefs.h <<\_ACEOF
45195 #define wxUSE_LISTCTRL 1
45196 _ACEOF
45197
45198         USES_CONTROLS=1
45199         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45200     else
45201         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45202 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45203     fi
45204 fi
45205
45206 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45207     cat >>confdefs.h <<\_ACEOF
45208 #define wxUSE_EDITABLELISTBOX 1
45209 _ACEOF
45210
45211     USES_CONTROLS=1
45212     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45213 fi
45214
45215 if test "$wxUSE_NOTEBOOK" = "yes"; then
45216     cat >>confdefs.h <<\_ACEOF
45217 #define wxUSE_NOTEBOOK 1
45218 _ACEOF
45219
45220     USES_CONTROLS=1
45221     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45222 fi
45223
45224 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45225     cat >>confdefs.h <<\_ACEOF
45226 #define wxUSE_NOTIFICATION_MESSAGE 1
45227 _ACEOF
45228
45229 fi
45230
45231 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45232   cat >>confdefs.h <<\_ACEOF
45233 #define wxUSE_ODCOMBOBOX 1
45234 _ACEOF
45235
45236   USES_CONTROLS=1
45237   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45238 fi
45239
45240 if test "$wxUSE_RADIOBOX" = "yes"; then
45241     cat >>confdefs.h <<\_ACEOF
45242 #define wxUSE_RADIOBOX 1
45243 _ACEOF
45244
45245     USES_CONTROLS=1
45246 fi
45247
45248 if test "$wxUSE_RADIOBTN" = "yes"; then
45249     cat >>confdefs.h <<\_ACEOF
45250 #define wxUSE_RADIOBTN 1
45251 _ACEOF
45252
45253     USES_CONTROLS=1
45254 fi
45255
45256 if test "$wxUSE_SASH" = "yes"; then
45257     cat >>confdefs.h <<\_ACEOF
45258 #define wxUSE_SASH 1
45259 _ACEOF
45260
45261     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45262 fi
45263
45264 if test "$wxUSE_SCROLLBAR" = "yes"; then
45265     cat >>confdefs.h <<\_ACEOF
45266 #define wxUSE_SCROLLBAR 1
45267 _ACEOF
45268
45269     USES_CONTROLS=1
45270     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45271 fi
45272
45273 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45274     cat >>confdefs.h <<\_ACEOF
45275 #define wxUSE_SEARCHCTRL 1
45276 _ACEOF
45277
45278     USES_CONTROLS=1
45279 fi
45280
45281 if test "$wxUSE_SLIDER" = "yes"; then
45282     cat >>confdefs.h <<\_ACEOF
45283 #define wxUSE_SLIDER 1
45284 _ACEOF
45285
45286     USES_CONTROLS=1
45287 fi
45288
45289 if test "$wxUSE_SPINBTN" = "yes"; then
45290     cat >>confdefs.h <<\_ACEOF
45291 #define wxUSE_SPINBTN 1
45292 _ACEOF
45293
45294     USES_CONTROLS=1
45295 fi
45296
45297 if test "$wxUSE_SPINCTRL" = "yes"; then
45298     cat >>confdefs.h <<\_ACEOF
45299 #define wxUSE_SPINCTRL 1
45300 _ACEOF
45301
45302     USES_CONTROLS=1
45303 fi
45304
45305 if test "$wxUSE_SPLITTER" = "yes"; then
45306     cat >>confdefs.h <<\_ACEOF
45307 #define wxUSE_SPLITTER 1
45308 _ACEOF
45309
45310     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45311 fi
45312
45313 if test "$wxUSE_STATBMP" = "yes"; then
45314     cat >>confdefs.h <<\_ACEOF
45315 #define wxUSE_STATBMP 1
45316 _ACEOF
45317
45318     USES_CONTROLS=1
45319 fi
45320
45321 if test "$wxUSE_STATBOX" = "yes"; then
45322     cat >>confdefs.h <<\_ACEOF
45323 #define wxUSE_STATBOX 1
45324 _ACEOF
45325
45326     USES_CONTROLS=1
45327 fi
45328
45329 if test "$wxUSE_STATTEXT" = "yes"; then
45330     cat >>confdefs.h <<\_ACEOF
45331 #define wxUSE_STATTEXT 1
45332 _ACEOF
45333
45334     USES_CONTROLS=1
45335 fi
45336
45337 if test "$wxUSE_STATLINE" = "yes"; then
45338     cat >>confdefs.h <<\_ACEOF
45339 #define wxUSE_STATLINE 1
45340 _ACEOF
45341
45342     USES_CONTROLS=1
45343 fi
45344
45345 if test "$wxUSE_STATUSBAR" = "yes"; then
45346         cat >>confdefs.h <<\_ACEOF
45347 #define wxUSE_NATIVE_STATUSBAR 1
45348 _ACEOF
45349
45350     cat >>confdefs.h <<\_ACEOF
45351 #define wxUSE_STATUSBAR 1
45352 _ACEOF
45353
45354     USES_CONTROLS=1
45355
45356     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45357 fi
45358
45359 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45360     cat >>confdefs.h <<\_ACEOF
45361 #define wxUSE_TAB_DIALOG 1
45362 _ACEOF
45363
45364 fi
45365
45366 if test "$wxUSE_TEXTCTRL" = "yes"; then
45367     cat >>confdefs.h <<\_ACEOF
45368 #define wxUSE_TEXTCTRL 1
45369 _ACEOF
45370
45371     USES_CONTROLS=1
45372     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45373 fi
45374
45375 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45376     if test "$wxUSE_COCOA" = 1 ; then
45377         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45378 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45379         wxUSE_TOGGLEBTN=no
45380     fi
45381
45382     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45383         cat >>confdefs.h <<\_ACEOF
45384 #define wxUSE_TOGGLEBTN 1
45385 _ACEOF
45386
45387         USES_CONTROLS=1
45388     fi
45389 fi
45390
45391 if test "$wxUSE_TOOLBAR" = "yes"; then
45392     cat >>confdefs.h <<\_ACEOF
45393 #define wxUSE_TOOLBAR 1
45394 _ACEOF
45395
45396     USES_CONTROLS=1
45397
45398     if test "$wxUSE_UNIVERSAL" = "yes"; then
45399         wxUSE_TOOLBAR_NATIVE="no"
45400     else
45401         wxUSE_TOOLBAR_NATIVE="yes"
45402         cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_TOOLBAR_NATIVE 1
45404 _ACEOF
45405
45406     fi
45407
45408     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45409 fi
45410
45411 if test "$wxUSE_TOOLTIPS" = "yes"; then
45412     if test "$wxUSE_MOTIF" = 1; then
45413         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45414 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45415     else
45416         if test "$wxUSE_UNIVERSAL" = "yes"; then
45417             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45418 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45419         else
45420             cat >>confdefs.h <<\_ACEOF
45421 #define wxUSE_TOOLTIPS 1
45422 _ACEOF
45423
45424         fi
45425     fi
45426 fi
45427
45428 if test "$wxUSE_TREEBOOK" = "yes"; then
45429     cat >>confdefs.h <<\_ACEOF
45430 #define wxUSE_TREEBOOK 1
45431 _ACEOF
45432
45433     USES_CONTROLS=1
45434 fi
45435
45436 if test "$wxUSE_TOOLBOOK" = "yes"; then
45437     cat >>confdefs.h <<\_ACEOF
45438 #define wxUSE_TOOLBOOK 1
45439 _ACEOF
45440
45441     USES_CONTROLS=1
45442 fi
45443
45444 if test "$wxUSE_TREECTRL" = "yes"; then
45445     if test "$wxUSE_IMAGLIST" = "yes"; then
45446         cat >>confdefs.h <<\_ACEOF
45447 #define wxUSE_TREECTRL 1
45448 _ACEOF
45449
45450         USES_CONTROLS=1
45451         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45452     else
45453         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45454 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45455     fi
45456 fi
45457
45458 if test "$wxUSE_POPUPWIN" = "yes"; then
45459     if test "$wxUSE_COCOA" = 1 ; then
45460         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45461 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45462     else
45463         if test "$wxUSE_PM" = 1; then
45464             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45465 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45466         else
45467             cat >>confdefs.h <<\_ACEOF
45468 #define wxUSE_POPUPWIN 1
45469 _ACEOF
45470
45471             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45472
45473             USES_CONTROLS=1
45474         fi
45475     fi
45476 fi
45477
45478 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45479     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
45480         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
45481 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
45482     else
45483         cat >>confdefs.h <<\_ACEOF
45484 #define wxUSE_DIALUP_MANAGER 1
45485 _ACEOF
45486
45487         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45488     fi
45489 fi
45490
45491 if test "$wxUSE_TIPWINDOW" = "yes"; then
45492     if test "$wxUSE_PM" = 1; then
45493         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45494 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45495     else
45496         cat >>confdefs.h <<\_ACEOF
45497 #define wxUSE_TIPWINDOW 1
45498 _ACEOF
45499
45500     fi
45501 fi
45502
45503 if test "$USES_CONTROLS" = 1; then
45504     cat >>confdefs.h <<\_ACEOF
45505 #define wxUSE_CONTROLS 1
45506 _ACEOF
45507
45508 fi
45509
45510
45511 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45512     cat >>confdefs.h <<\_ACEOF
45513 #define wxUSE_ACCESSIBILITY 1
45514 _ACEOF
45515
45516     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45517 fi
45518
45519 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45520     cat >>confdefs.h <<\_ACEOF
45521 #define wxUSE_DRAGIMAGE 1
45522 _ACEOF
45523
45524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45525 fi
45526
45527 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45528     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45529         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45530 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45531     else
45532         cat >>confdefs.h <<\_ACEOF
45533 #define wxUSE_EXCEPTIONS 1
45534 _ACEOF
45535
45536         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45537     fi
45538 fi
45539
45540 USE_HTML=0
45541 if test "$wxUSE_HTML" = "yes"; then
45542     cat >>confdefs.h <<\_ACEOF
45543 #define wxUSE_HTML 1
45544 _ACEOF
45545
45546     USE_HTML=1
45547     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45548     if test "$wxUSE_MAC" = 1; then
45549         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45550     fi
45551 fi
45552 if test "$wxUSE_WEBKIT" = "yes"; then
45553     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45554         old_CPPFLAGS="$CPPFLAGS"
45555         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45556         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45557 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
45558 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45559   echo $ECHO_N "(cached) $ECHO_C" >&6
45560 else
45561   cat >conftest.$ac_ext <<_ACEOF
45562 /* confdefs.h.  */
45563 _ACEOF
45564 cat confdefs.h >>conftest.$ac_ext
45565 cat >>conftest.$ac_ext <<_ACEOF
45566 /* end confdefs.h.  */
45567
45568                            #include <Carbon/Carbon.h>
45569                            #include <WebKit/WebKit.h>
45570
45571
45572 #include <WebKit/HIWebView.h>
45573 _ACEOF
45574 rm -f conftest.$ac_objext
45575 if { (ac_try="$ac_compile"
45576 case "(($ac_try" in
45577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45578   *) ac_try_echo=$ac_try;;
45579 esac
45580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45581   (eval "$ac_compile") 2>conftest.er1
45582   ac_status=$?
45583   grep -v '^ *+' conftest.er1 >conftest.err
45584   rm -f conftest.er1
45585   cat conftest.err >&5
45586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45587   (exit $ac_status); } && {
45588          test -z "$ac_c_werror_flag" ||
45589          test ! -s conftest.err
45590        } && test -s conftest.$ac_objext; then
45591   ac_cv_header_WebKit_HIWebView_h=yes
45592 else
45593   echo "$as_me: failed program was:" >&5
45594 sed 's/^/| /' conftest.$ac_ext >&5
45595
45596         ac_cv_header_WebKit_HIWebView_h=no
45597 fi
45598
45599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45600 fi
45601 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45602 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
45603 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45604
45605                            cat >>confdefs.h <<\_ACEOF
45606 #define wxUSE_WEBKIT 1
45607 _ACEOF
45608
45609                            WEBKIT_LINK="-framework WebKit"
45610
45611 else
45612
45613                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45614 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45615                            wxUSE_WEBKIT=no
45616
45617 fi
45618
45619
45620         CPPFLAGS="$old_CPPFLAGS"
45621     elif test "$wxUSE_COCOA" = 1; then
45622         cat >>confdefs.h <<\_ACEOF
45623 #define wxUSE_WEBKIT 1
45624 _ACEOF
45625
45626     else
45627         wxUSE_WEBKIT=no
45628     fi
45629 fi
45630
45631 USE_XRC=0
45632 if test "$wxUSE_XRC" = "yes"; then
45633     if test "$wxUSE_XML" != "yes"; then
45634         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45635 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45636         wxUSE_XRC=no
45637     else
45638         cat >>confdefs.h <<\_ACEOF
45639 #define wxUSE_XRC 1
45640 _ACEOF
45641
45642         USE_XRC=1
45643         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45644     fi
45645 fi
45646
45647 USE_AUI=0
45648 if test "$wxUSE_AUI" = "yes"; then
45649    cat >>confdefs.h <<\_ACEOF
45650 #define wxUSE_AUI 1
45651 _ACEOF
45652
45653    USE_AUI=1
45654    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45655 fi
45656
45657 USE_STC=0
45658 if test "$wxUSE_STC" = "yes"; then
45659    cat >>confdefs.h <<\_ACEOF
45660 #define wxUSE_STC 1
45661 _ACEOF
45662
45663    USE_STC=1
45664    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
45665 fi
45666
45667 if test "$wxUSE_MENUS" = "yes"; then
45668     cat >>confdefs.h <<\_ACEOF
45669 #define wxUSE_MENUS 1
45670 _ACEOF
45671
45672     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45673 fi
45674
45675 if test "$wxUSE_METAFILE" = "yes"; then
45676     cat >>confdefs.h <<\_ACEOF
45677 #define wxUSE_METAFILE 1
45678 _ACEOF
45679
45680 fi
45681
45682 if test "$wxUSE_MIMETYPE" = "yes"; then
45683     cat >>confdefs.h <<\_ACEOF
45684 #define wxUSE_MIMETYPE 1
45685 _ACEOF
45686
45687 fi
45688
45689 if test "$wxUSE_MINIFRAME" = "yes"; then
45690     cat >>confdefs.h <<\_ACEOF
45691 #define wxUSE_MINIFRAME 1
45692 _ACEOF
45693
45694 fi
45695
45696 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45697     cat >>confdefs.h <<\_ACEOF
45698 #define wxUSE_SYSTEM_OPTIONS 1
45699 _ACEOF
45700
45701 fi
45702
45703 if test "$wxUSE_TASKBARICON" = "yes"; then
45704     cat >>confdefs.h <<\_ACEOF
45705 #define wxUSE_TASKBARICON 1
45706 _ACEOF
45707
45708     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45709 fi
45710
45711
45712 if test "$wxUSE_VALIDATORS" = "yes"; then
45713     cat >>confdefs.h <<\_ACEOF
45714 #define wxUSE_VALIDATORS 1
45715 _ACEOF
45716
45717     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45718 fi
45719
45720 if test "$wxUSE_PALETTE" = "yes" ; then
45721     if test "$wxUSE_DFB" = 1; then
45722         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
45723 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
45724         wxUSE_PALETTE=no
45725     else
45726         cat >>confdefs.h <<\_ACEOF
45727 #define wxUSE_PALETTE 1
45728 _ACEOF
45729
45730     fi
45731 fi
45732
45733 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45734     LIBS=" -lunicows $LIBS"
45735 fi
45736
45737 USE_RICHTEXT=0
45738 if test "$wxUSE_RICHTEXT" = "yes"; then
45739     cat >>confdefs.h <<\_ACEOF
45740 #define wxUSE_RICHTEXT 1
45741 _ACEOF
45742
45743     USE_RICHTEXT=1
45744     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45745 fi
45746
45747
45748 if test "$wxUSE_IMAGE" = "yes" ; then
45749     cat >>confdefs.h <<\_ACEOF
45750 #define wxUSE_IMAGE 1
45751 _ACEOF
45752
45753
45754     if test "$wxUSE_GIF" = "yes" ; then
45755       cat >>confdefs.h <<\_ACEOF
45756 #define wxUSE_GIF 1
45757 _ACEOF
45758
45759     fi
45760
45761     if test "$wxUSE_PCX" = "yes" ; then
45762       cat >>confdefs.h <<\_ACEOF
45763 #define wxUSE_PCX 1
45764 _ACEOF
45765
45766     fi
45767
45768     if test "$wxUSE_TGA" = "yes" ; then
45769       cat >>confdefs.h <<\_ACEOF
45770 #define wxUSE_TGA 1
45771 _ACEOF
45772
45773     fi
45774
45775     if test "$wxUSE_IFF" = "yes" ; then
45776       cat >>confdefs.h <<\_ACEOF
45777 #define wxUSE_IFF 1
45778 _ACEOF
45779
45780     fi
45781
45782     if test "$wxUSE_PNM" = "yes" ; then
45783       cat >>confdefs.h <<\_ACEOF
45784 #define wxUSE_PNM 1
45785 _ACEOF
45786
45787     fi
45788
45789     if test "$wxUSE_XPM" = "yes" ; then
45790       cat >>confdefs.h <<\_ACEOF
45791 #define wxUSE_XPM 1
45792 _ACEOF
45793
45794     fi
45795
45796     if test "$wxUSE_ICO_CUR" = "yes" ; then
45797       cat >>confdefs.h <<\_ACEOF
45798 #define wxUSE_ICO_CUR 1
45799 _ACEOF
45800
45801     fi
45802 fi
45803
45804
45805 if test "$wxUSE_ABOUTDLG" = "yes"; then
45806     cat >>confdefs.h <<\_ACEOF
45807 #define wxUSE_ABOUTDLG 1
45808 _ACEOF
45809
45810 fi
45811
45812 if test "$wxUSE_CHOICEDLG" = "yes"; then
45813     cat >>confdefs.h <<\_ACEOF
45814 #define wxUSE_CHOICEDLG 1
45815 _ACEOF
45816
45817 fi
45818
45819 if test "$wxUSE_COLOURDLG" = "yes"; then
45820     cat >>confdefs.h <<\_ACEOF
45821 #define wxUSE_COLOURDLG 1
45822 _ACEOF
45823
45824 fi
45825
45826 if test "$wxUSE_FILEDLG" = "yes"; then
45827     cat >>confdefs.h <<\_ACEOF
45828 #define wxUSE_FILEDLG 1
45829 _ACEOF
45830
45831 fi
45832
45833 if test "$wxUSE_FINDREPLDLG" = "yes"; then
45834     cat >>confdefs.h <<\_ACEOF
45835 #define wxUSE_FINDREPLDLG 1
45836 _ACEOF
45837
45838 fi
45839
45840 if test "$wxUSE_FONTDLG" = "yes"; then
45841     cat >>confdefs.h <<\_ACEOF
45842 #define wxUSE_FONTDLG 1
45843 _ACEOF
45844
45845 fi
45846
45847 if test "$wxUSE_DIRDLG" = "yes"; then
45848     if test "$wxUSE_TREECTRL" != "yes"; then
45849         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45850 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45851     else
45852         cat >>confdefs.h <<\_ACEOF
45853 #define wxUSE_DIRDLG 1
45854 _ACEOF
45855
45856     fi
45857 fi
45858
45859 if test "$wxUSE_MSGDLG" = "yes"; then
45860     cat >>confdefs.h <<\_ACEOF
45861 #define wxUSE_MSGDLG 1
45862 _ACEOF
45863
45864 fi
45865
45866 if test "$wxUSE_NUMBERDLG" = "yes"; then
45867     cat >>confdefs.h <<\_ACEOF
45868 #define wxUSE_NUMBERDLG 1
45869 _ACEOF
45870
45871 fi
45872
45873 if test "$wxUSE_PROGRESSDLG" = "yes"; then
45874     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45875        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45876 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45877     else
45878         cat >>confdefs.h <<\_ACEOF
45879 #define wxUSE_PROGRESSDLG 1
45880 _ACEOF
45881
45882     fi
45883 fi
45884
45885 if test "$wxUSE_SPLASH" = "yes"; then
45886     cat >>confdefs.h <<\_ACEOF
45887 #define wxUSE_SPLASH 1
45888 _ACEOF
45889
45890     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
45891 fi
45892
45893 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45894     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45895        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45896 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45897     else
45898         cat >>confdefs.h <<\_ACEOF
45899 #define wxUSE_STARTUP_TIPS 1
45900 _ACEOF
45901
45902     fi
45903 fi
45904
45905 if test "$wxUSE_TEXTDLG" = "yes"; then
45906     cat >>confdefs.h <<\_ACEOF
45907 #define wxUSE_TEXTDLG 1
45908 _ACEOF
45909
45910 fi
45911
45912 if test "$wxUSE_WIZARDDLG" = "yes"; then
45913     cat >>confdefs.h <<\_ACEOF
45914 #define wxUSE_WIZARDDLG 1
45915 _ACEOF
45916
45917     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45918 fi
45919
45920
45921 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
45922     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
45923         cat >>confdefs.h <<\_ACEOF
45924 #define wxUSE_OWNER_DRAWN 1
45925 _ACEOF
45926
45927     fi
45928 fi
45929
45930
45931 if test "$wxUSE_MSW" = 1 ; then
45932
45933     if test "$wxUSE_DC_CACHEING" = "yes"; then
45934         cat >>confdefs.h <<\_ACEOF
45935 #define wxUSE_DC_CACHEING 1
45936 _ACEOF
45937
45938     fi
45939
45940     if test "$wxUSE_DIB" = "yes"; then
45941         cat >>confdefs.h <<\_ACEOF
45942 #define wxUSE_WXDIB 1
45943 _ACEOF
45944
45945     fi
45946
45947     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
45948         cat >>confdefs.h <<\_ACEOF
45949 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
45950 _ACEOF
45951
45952     fi
45953
45954     if test "$wxUSE_UXTHEME" = "yes"; then
45955         cat >>confdefs.h <<\_ACEOF
45956 #define wxUSE_UXTHEME 1
45957 _ACEOF
45958
45959     fi
45960
45961 fi
45962
45963 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
45964     cat >>confdefs.h <<\_ACEOF
45965 #define wxUSE_AUTOID_MANAGEMENT 1
45966 _ACEOF
45967
45968 fi
45969
45970 if test "$USE_WIN32" = 1 ; then
45971     if test "$wxUSE_INICONF" = "yes"; then
45972         cat >>confdefs.h <<\_ACEOF
45973 #define wxUSE_INICONF 1
45974 _ACEOF
45975
45976     fi
45977
45978     if test "$wxUSE_REGKEY" = "yes"; then
45979         cat >>confdefs.h <<\_ACEOF
45980 #define wxUSE_REGKEY 1
45981 _ACEOF
45982
45983     fi
45984 fi
45985
45986
45987 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
45988    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
45989       cat >>confdefs.h <<\_ACEOF
45990 #define wxUSE_GRAPHICS_CONTEXT 1
45991 _ACEOF
45992
45993    elif test "$wxUSE_GTK" != 1; then
45994             cat >>confdefs.h <<\_ACEOF
45995 #define wxUSE_GRAPHICS_CONTEXT 1
45996 _ACEOF
45997
45998    else
45999
46000 pkg_failed=no
46001 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46002 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46003
46004 if test -n "$PKG_CONFIG"; then
46005     if test -n "$CAIRO_CFLAGS"; then
46006         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46007     else
46008         if test -n "$PKG_CONFIG" && \
46009     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46010   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46011   ac_status=$?
46012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46013   (exit $ac_status); }; then
46014   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46015 else
46016   pkg_failed=yes
46017 fi
46018     fi
46019 else
46020         pkg_failed=untried
46021 fi
46022 if test -n "$PKG_CONFIG"; then
46023     if test -n "$CAIRO_LIBS"; then
46024         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46025     else
46026         if test -n "$PKG_CONFIG" && \
46027     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46028   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46029   ac_status=$?
46030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46031   (exit $ac_status); }; then
46032   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46033 else
46034   pkg_failed=yes
46035 fi
46036     fi
46037 else
46038         pkg_failed=untried
46039 fi
46040
46041
46042
46043 if test $pkg_failed = yes; then
46044
46045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46046         _pkg_short_errors_supported=yes
46047 else
46048         _pkg_short_errors_supported=no
46049 fi
46050         if test $_pkg_short_errors_supported = yes; then
46051                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46052         else
46053                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46054         fi
46055         # Put the nasty error message in config.log where it belongs
46056         echo "$CAIRO_PKG_ERRORS" >&5
46057
46058         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46059 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46060
46061 elif test $pkg_failed = untried; then
46062         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46063 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46064
46065 else
46066         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46067         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46068         { echo "$as_me:$LINENO: result: yes" >&5
46069 echo "${ECHO_T}yes" >&6; }
46070         cat >>confdefs.h <<\_ACEOF
46071 #define wxUSE_GRAPHICS_CONTEXT 1
46072 _ACEOF
46073
46074 fi
46075    fi
46076 fi
46077
46078
46079 USE_MEDIA=0
46080
46081 if test "$wxUSE_MEDIACTRL" = "yes"; then
46082     USE_MEDIA=1
46083
46084                 if test "$wxUSE_GTK" = 1; then
46085         wxUSE_GSTREAMER="no"
46086
46087                                                                 GST_VERSION_MAJOR=0
46088         GST_VERSION_MINOR=10
46089         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46090
46091         if test "$wxUSE_GSTREAMER8" = "no"; then
46092
46093 pkg_failed=no
46094 { echo "$as_me:$LINENO: checking for GST" >&5
46095 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46096
46097 if test -n "$PKG_CONFIG"; then
46098     if test -n "$GST_CFLAGS"; then
46099         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46100     else
46101         if test -n "$PKG_CONFIG" && \
46102     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46103   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46104   ac_status=$?
46105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46106   (exit $ac_status); }; then
46107   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46108 else
46109   pkg_failed=yes
46110 fi
46111     fi
46112 else
46113         pkg_failed=untried
46114 fi
46115 if test -n "$PKG_CONFIG"; then
46116     if test -n "$GST_LIBS"; then
46117         pkg_cv_GST_LIBS="$GST_LIBS"
46118     else
46119         if test -n "$PKG_CONFIG" && \
46120     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46121   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46122   ac_status=$?
46123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46124   (exit $ac_status); }; then
46125   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46126 else
46127   pkg_failed=yes
46128 fi
46129     fi
46130 else
46131         pkg_failed=untried
46132 fi
46133
46134
46135
46136 if test $pkg_failed = yes; then
46137
46138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46139         _pkg_short_errors_supported=yes
46140 else
46141         _pkg_short_errors_supported=no
46142 fi
46143         if test $_pkg_short_errors_supported = yes; then
46144                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46145         else
46146                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46147         fi
46148         # Put the nasty error message in config.log where it belongs
46149         echo "$GST_PKG_ERRORS" >&5
46150
46151
46152                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46153 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46154                     GST_VERSION_MINOR=8
46155
46156
46157 elif test $pkg_failed = untried; then
46158
46159                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46160 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46161                     GST_VERSION_MINOR=8
46162
46163
46164 else
46165         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46166         GST_LIBS=$pkg_cv_GST_LIBS
46167         { echo "$as_me:$LINENO: result: yes" >&5
46168 echo "${ECHO_T}yes" >&6; }
46169
46170                     wxUSE_GSTREAMER="yes"
46171                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46172
46173 fi
46174         else
46175                         GST_VERSION_MINOR=8
46176         fi
46177
46178         if test $GST_VERSION_MINOR = "8"; then
46179             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46180
46181 pkg_failed=no
46182 { echo "$as_me:$LINENO: checking for GST" >&5
46183 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46184
46185 if test -n "$PKG_CONFIG"; then
46186     if test -n "$GST_CFLAGS"; then
46187         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46188     else
46189         if test -n "$PKG_CONFIG" && \
46190     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46191   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46192   ac_status=$?
46193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194   (exit $ac_status); }; then
46195   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46196 else
46197   pkg_failed=yes
46198 fi
46199     fi
46200 else
46201         pkg_failed=untried
46202 fi
46203 if test -n "$PKG_CONFIG"; then
46204     if test -n "$GST_LIBS"; then
46205         pkg_cv_GST_LIBS="$GST_LIBS"
46206     else
46207         if test -n "$PKG_CONFIG" && \
46208     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46209   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46210   ac_status=$?
46211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46212   (exit $ac_status); }; then
46213   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46214 else
46215   pkg_failed=yes
46216 fi
46217     fi
46218 else
46219         pkg_failed=untried
46220 fi
46221
46222
46223
46224 if test $pkg_failed = yes; then
46225
46226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46227         _pkg_short_errors_supported=yes
46228 else
46229         _pkg_short_errors_supported=no
46230 fi
46231         if test $_pkg_short_errors_supported = yes; then
46232                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46233         else
46234                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46235         fi
46236         # Put the nasty error message in config.log where it belongs
46237         echo "$GST_PKG_ERRORS" >&5
46238
46239
46240                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46241 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46242
46243 elif test $pkg_failed = untried; then
46244
46245                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46246 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46247
46248 else
46249         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46250         GST_LIBS=$pkg_cv_GST_LIBS
46251         { echo "$as_me:$LINENO: result: yes" >&5
46252 echo "${ECHO_T}yes" >&6; }
46253         wxUSE_GSTREAMER="yes"
46254 fi
46255         fi
46256
46257
46258         if test "$wxUSE_GSTREAMER" = "yes"; then
46259             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46260             EXTRALIBS_MEDIA="$GST_LIBS"
46261
46262             cat >>confdefs.h <<\_ACEOF
46263 #define wxUSE_GSTREAMER 1
46264 _ACEOF
46265
46266         else
46267             USE_MEDIA=0
46268         fi
46269     fi
46270
46271     if test $USE_MEDIA = 1; then
46272         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46273         cat >>confdefs.h <<\_ACEOF
46274 #define wxUSE_MEDIACTRL 1
46275 _ACEOF
46276
46277     fi
46278 fi
46279
46280
46281 if test "$cross_compiling" = "yes"; then
46282         OSINFO="\"$host\""
46283 else
46284         OSINFO=`uname -s -r -m`
46285     OSINFO="\"$OSINFO\""
46286 fi
46287
46288 cat >>confdefs.h <<_ACEOF
46289 #define WXWIN_OS_DESCRIPTION $OSINFO
46290 _ACEOF
46291
46292
46293
46294 if test "x$prefix" != "xNONE"; then
46295     wxPREFIX=$prefix
46296 else
46297     wxPREFIX=$ac_default_prefix
46298 fi
46299
46300 cat >>confdefs.h <<_ACEOF
46301 #define wxINSTALL_PREFIX "$wxPREFIX"
46302 _ACEOF
46303
46304
46305
46306
46307 STD_BASE_LIBS="base"
46308 STD_GUI_LIBS=""
46309 BUILT_WX_LIBS="base"
46310 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46311
46312 if test "$wxUSE_SOCKETS" = "yes" ; then
46313     STD_BASE_LIBS="net $STD_BASE_LIBS"
46314     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46315 fi
46316 if test "$wxUSE_XML" = "yes" ; then
46317     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46318     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46319 fi
46320
46321 if test "$wxUSE_GUI" = "yes"; then
46322     STD_GUI_LIBS="adv core"
46323     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46324
46325     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46326         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46327         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46328     fi
46329     if test "$wxUSE_HTML" = "yes" ; then
46330         STD_GUI_LIBS="html $STD_GUI_LIBS"
46331         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46332     fi
46333     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46334         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46335     fi
46336     if test "$wxUSE_OPENGL" = "yes" ; then
46337         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46338     fi
46339     if test "$wxUSE_AUI" = "yes" ; then
46340         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46341     fi
46342     if test "$wxUSE_STC" = "yes" ; then
46343         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46344     fi
46345     if test "$wxUSE_XRC" = "yes" ; then
46346         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46347         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46348     fi
46349 fi
46350
46351
46352
46353
46354
46355
46356
46357
46358 if test "$wxUSE_MAC" = 1 ; then
46359     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46360         if test "$USE_DARWIN" = 1; then
46361             LDFLAGS="$LDFLAGS -framework QuickTime"
46362         else
46363             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46364         fi
46365     fi
46366     if test "$USE_DARWIN" = 1; then
46367         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46368     else
46369         LDFLAGS="$LDFLAGS -lCarbonLib"
46370     fi
46371 fi
46372 if test "$wxUSE_COCOA" = 1 ; then
46373     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46374     if test "$wxUSE_MEDIACTRL" = "yes"; then
46375         LDFLAGS="$LDFLAGS -framework QuickTime"
46376     fi
46377 fi
46378 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46379     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46380 fi
46381
46382 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46383
46384 if test "$wxUSE_GUI" = "yes"; then
46385
46386
46387         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46388                      erase event exec font image minimal mobile \
46389                      mobile/wxedit mobile/styles render \
46390                      shaped svg taborder vscroll widgets"
46391
46392     if test "$wxUSE_MONOLITHIC" != "yes"; then
46393         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46394     fi
46395     if test "$TOOLKIT" = "MSW"; then
46396         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46397         if test "$wxUSE_UNIVERSAL" != "yes"; then
46398             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46399         fi
46400     fi
46401     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46402         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46403     fi
46404 else
46405     SAMPLES_SUBDIRS="console"
46406     if test "$wxUSE_SOCKETS" = "yes" ; then
46407         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46408     fi
46409     if test "$wxUSE_IPC" = "yes" ; then
46410         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46411     fi
46412 fi
46413
46414
46415 if test "x$INTELCC" = "xyes" ; then
46416                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46417 elif test "$GCC" = yes ; then
46418     CWARNINGS="-Wall -Wundef"
46419 fi
46420
46421 if test "x$INTELCXX" = "xyes" ; then
46422                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46423 elif test "$GXX" = yes ; then
46424         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
46425 fi
46426
46427
46428 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46429 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46430
46431
46432 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46433  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
46434  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46435  $CPPFLAGS `
46436
46437 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46438 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46439 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
46440 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
46441 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
46442
46443 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46444
46445
46446 if test "x$MWCC" = "xyes"; then
46447
46448             CC="$CC -cwd source -I-"
46449     CXX="$CXX -cwd source -I-"
46450 fi
46451
46452
46453 LIBS=`echo $LIBS`
46454 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46455 EXTRALIBS_XML="$EXPAT_LINK"
46456 EXTRALIBS_HTML="$MSPACK_LINK"
46457 EXTRALIBS_MEDIA="$GST_LIBS"
46458 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
46459 if test "$wxUSE_GUI" = "yes"; then
46460     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46461 fi
46462 if test "$wxUSE_OPENGL" = "yes"; then
46463     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46464 fi
46465
46466 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46467
46468 WXCONFIG_LIBS="$LIBS"
46469
46470 if test "$wxUSE_REGEX" = "builtin" ; then
46471     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46472 fi
46473 if test "$wxUSE_EXPAT" = "builtin" ; then
46474     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46475 fi
46476 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46477     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46478 fi
46479 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46480     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46481 fi
46482 if test "$wxUSE_LIBPNG" = "builtin" ; then
46483     wxconfig_3rdparty="png $wxconfig_3rdparty"
46484 fi
46485 if test "$wxUSE_ZLIB" = "builtin" ; then
46486     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46487 fi
46488
46489 for i in $wxconfig_3rdparty ; do
46490     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46491 done
46492
46493
46494 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46495     WXUNIV=1
46496
46497     case "$wxUNIV_THEMES" in
46498         ''|all)
46499             cat >>confdefs.h <<\_ACEOF
46500 #define wxUSE_ALL_THEMES 1
46501 _ACEOF
46502
46503             ;;
46504
46505         *)
46506             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
46507                 cat >>confdefs.h <<_ACEOF
46508 #define wxUSE_THEME_$t 1
46509 _ACEOF
46510
46511             done
46512     esac
46513 else
46514     WXUNIV=0
46515 fi
46516
46517
46518
46519
46520
46521
46522
46523
46524 if test $wxUSE_MONOLITHIC = "yes" ; then
46525     MONOLITHIC=1
46526 else
46527     MONOLITHIC=0
46528 fi
46529
46530 if test $wxUSE_PLUGINS = "yes" ; then
46531     USE_PLUGINS=1
46532 else
46533     USE_PLUGINS=0
46534 fi
46535
46536 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46537     USE_QA=1
46538 else
46539     USE_QA=0
46540 fi
46541
46542 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46543     OFFICIAL_BUILD=1
46544 else
46545     OFFICIAL_BUILD=0
46546 fi
46547
46548
46549
46550
46551
46552
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
46576
46577
46578
46579
46580
46581
46582
46583
46584 case "$TOOLKIT" in
46585     GTK)
46586         TOOLKIT_DESC="GTK+"
46587         if test "$WXGTK2" = 1; then
46588             TOOLKIT_DESC="$TOOLKIT_DESC 2"
46589             if test "$wxUSE_GTKPRINT" = "yes" ; then
46590                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
46591             fi
46592             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46593                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46594             fi
46595             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46596                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46597             fi
46598             if test "$wxUSE_LIBHILDON" = "yes"; then
46599                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46600             fi
46601
46602             if test "$TOOLKIT_EXTRA" != ""; then
46603                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46604             fi
46605         fi
46606         ;;
46607
46608     ?*)
46609         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46610         ;;
46611
46612     *)
46613         TOOLKIT_DESC="base only"
46614         ;;
46615 esac
46616
46617 if test "$wxUSE_WINE" = "yes"; then
46618     BAKEFILE_FORCE_PLATFORM=win32
46619 fi
46620
46621 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
46622 then
46623     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
46624 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
46625 if test "${wx_cv_gcc_pch_bug+set}" = set; then
46626   echo $ECHO_N "(cached) $ECHO_C" >&6
46627 else
46628
46629             echo '#include <stdio.h>
46630                   const wchar_t test_var[] = L"awidetest";' > conftest.h
46631
46632             echo '#include "conftest.h"
46633                   int main()
46634                   {
46635                      printf("%ls", test_var);
46636                      return 0;
46637                   }' > conftest.cpp
46638
46639             wx_cv_gcc_pch_bug="pch not supported"
46640
46641             if $CXX conftest.h >/dev/null 2>&1
46642             then
46643                 wx_cv_gcc_pch_bug=
46644
46645                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
46646                 then
46647                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
46648                         grep awidetest >/dev/null
46649                     then
46650                         wx_cv_gcc_pch_bug=no
46651                     else
46652                         wx_cv_gcc_pch_bug=yes
46653                     fi
46654                 fi
46655             fi
46656
46657             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
46658
46659 fi
46660 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
46661 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
46662
46663     if test "$wx_cv_gcc_pch_bug" = yes; then
46664                         bk_use_pch=no
46665     fi
46666 fi
46667
46668
46669
46670
46671
46672
46673
46674     if test "x$BAKEFILE_HOST" = "x"; then
46675                if test "x${host}" = "x" ; then
46676                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46677 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46678    { (exit 1); exit 1; }; }
46679                fi
46680
46681         BAKEFILE_HOST="${host}"
46682     fi
46683
46684     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46685
46686     if test -n "$ac_tool_prefix"; then
46687   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46691 if test "${ac_cv_prog_RANLIB+set}" = set; then
46692   echo $ECHO_N "(cached) $ECHO_C" >&6
46693 else
46694   if test -n "$RANLIB"; then
46695   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46696 else
46697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46698 for as_dir in $PATH
46699 do
46700   IFS=$as_save_IFS
46701   test -z "$as_dir" && as_dir=.
46702   for ac_exec_ext in '' $ac_executable_extensions; do
46703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46704     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46706     break 2
46707   fi
46708 done
46709 done
46710 IFS=$as_save_IFS
46711
46712 fi
46713 fi
46714 RANLIB=$ac_cv_prog_RANLIB
46715 if test -n "$RANLIB"; then
46716   { echo "$as_me:$LINENO: result: $RANLIB" >&5
46717 echo "${ECHO_T}$RANLIB" >&6; }
46718 else
46719   { echo "$as_me:$LINENO: result: no" >&5
46720 echo "${ECHO_T}no" >&6; }
46721 fi
46722
46723
46724 fi
46725 if test -z "$ac_cv_prog_RANLIB"; then
46726   ac_ct_RANLIB=$RANLIB
46727   # Extract the first word of "ranlib", so it can be a program name with args.
46728 set dummy ranlib; ac_word=$2
46729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46731 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46732   echo $ECHO_N "(cached) $ECHO_C" >&6
46733 else
46734   if test -n "$ac_ct_RANLIB"; then
46735   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46736 else
46737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46738 for as_dir in $PATH
46739 do
46740   IFS=$as_save_IFS
46741   test -z "$as_dir" && as_dir=.
46742   for ac_exec_ext in '' $ac_executable_extensions; do
46743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46744     ac_cv_prog_ac_ct_RANLIB="ranlib"
46745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46746     break 2
46747   fi
46748 done
46749 done
46750 IFS=$as_save_IFS
46751
46752 fi
46753 fi
46754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46755 if test -n "$ac_ct_RANLIB"; then
46756   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46757 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
46758 else
46759   { echo "$as_me:$LINENO: result: no" >&5
46760 echo "${ECHO_T}no" >&6; }
46761 fi
46762
46763   if test "x$ac_ct_RANLIB" = x; then
46764     RANLIB=":"
46765   else
46766     case $cross_compiling:$ac_tool_warned in
46767 yes:)
46768 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46769 whose name does not start with the host triplet.  If you think this
46770 configuration is useful to you, please write to autoconf@gnu.org." >&5
46771 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46772 whose name does not start with the host triplet.  If you think this
46773 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46774 ac_tool_warned=yes ;;
46775 esac
46776     RANLIB=$ac_ct_RANLIB
46777   fi
46778 else
46779   RANLIB="$ac_cv_prog_RANLIB"
46780 fi
46781
46782     # Find a good install program.  We prefer a C program (faster),
46783 # so one script is as good as another.  But avoid the broken or
46784 # incompatible versions:
46785 # SysV /etc/install, /usr/sbin/install
46786 # SunOS /usr/etc/install
46787 # IRIX /sbin/install
46788 # AIX /bin/install
46789 # AmigaOS /C/install, which installs bootblocks on floppy discs
46790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
46792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
46793 # OS/2's system install, which has a completely different semantic
46794 # ./install, which can be erroneously created by make from ./install.sh.
46795 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46796 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
46797 if test -z "$INSTALL"; then
46798 if test "${ac_cv_path_install+set}" = set; then
46799   echo $ECHO_N "(cached) $ECHO_C" >&6
46800 else
46801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46802 for as_dir in $PATH
46803 do
46804   IFS=$as_save_IFS
46805   test -z "$as_dir" && as_dir=.
46806   # Account for people who put trailing slashes in PATH elements.
46807 case $as_dir/ in
46808   ./ | .// | /cC/* | \
46809   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46810   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
46811   /usr/ucb/* ) ;;
46812   *)
46813     # OSF1 and SCO ODT 3.0 have their own names for install.
46814     # Don't use installbsd from OSF since it installs stuff as root
46815     # by default.
46816     for ac_prog in ginstall scoinst install; do
46817       for ac_exec_ext in '' $ac_executable_extensions; do
46818         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
46819           if test $ac_prog = install &&
46820             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46821             # AIX install.  It has an incompatible calling convention.
46822             :
46823           elif test $ac_prog = install &&
46824             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46825             # program-specific install script used by HP pwplus--don't use.
46826             :
46827           else
46828             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46829             break 3
46830           fi
46831         fi
46832       done
46833     done
46834     ;;
46835 esac
46836 done
46837 IFS=$as_save_IFS
46838
46839
46840 fi
46841   if test "${ac_cv_path_install+set}" = set; then
46842     INSTALL=$ac_cv_path_install
46843   else
46844     # As a last resort, use the slow shell script.  Don't cache a
46845     # value for INSTALL within a source directory, because that will
46846     # break other packages using the cache if that directory is
46847     # removed, or if the value is a relative name.
46848     INSTALL=$ac_install_sh
46849   fi
46850 fi
46851 { echo "$as_me:$LINENO: result: $INSTALL" >&5
46852 echo "${ECHO_T}$INSTALL" >&6; }
46853
46854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46855 # It thinks the first close brace ends the variable substitution.
46856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46857
46858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46859
46860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46861
46862     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
46863 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
46864 LN_S=$as_ln_s
46865 if test "$LN_S" = "ln -s"; then
46866   { echo "$as_me:$LINENO: result: yes" >&5
46867 echo "${ECHO_T}yes" >&6; }
46868 else
46869   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46870 echo "${ECHO_T}no, using $LN_S" >&6; }
46871 fi
46872
46873
46874     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46875 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
46876 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
46877 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
46878   echo $ECHO_N "(cached) $ECHO_C" >&6
46879 else
46880   cat >conftest.make <<\_ACEOF
46881 SHELL = /bin/sh
46882 all:
46883         @echo '@@@%%%=$(MAKE)=@@@%%%'
46884 _ACEOF
46885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46886 case `${MAKE-make} -f conftest.make 2>/dev/null` in
46887   *@@@%%%=?*=@@@%%%*)
46888     eval ac_cv_prog_make_${ac_make}_set=yes;;
46889   *)
46890     eval ac_cv_prog_make_${ac_make}_set=no;;
46891 esac
46892 rm -f conftest.make
46893 fi
46894 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
46895   { echo "$as_me:$LINENO: result: yes" >&5
46896 echo "${ECHO_T}yes" >&6; }
46897   SET_MAKE=
46898 else
46899   { echo "$as_me:$LINENO: result: no" >&5
46900 echo "${ECHO_T}no" >&6; }
46901   SET_MAKE="MAKE=${MAKE-make}"
46902 fi
46903
46904
46905
46906     if test "x$SUNCXX" = "xyes"; then
46907                                 AR=$CXX
46908         AROPTIONS="-xar -o"
46909
46910     elif test "x$SGICC" = "xyes"; then
46911                 AR=$CXX
46912         AROPTIONS="-ar -o"
46913
46914     else
46915         if test -n "$ac_tool_prefix"; then
46916   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46917 set dummy ${ac_tool_prefix}ar; ac_word=$2
46918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46920 if test "${ac_cv_prog_AR+set}" = set; then
46921   echo $ECHO_N "(cached) $ECHO_C" >&6
46922 else
46923   if test -n "$AR"; then
46924   ac_cv_prog_AR="$AR" # Let the user override the test.
46925 else
46926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46927 for as_dir in $PATH
46928 do
46929   IFS=$as_save_IFS
46930   test -z "$as_dir" && as_dir=.
46931   for ac_exec_ext in '' $ac_executable_extensions; do
46932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46933     ac_cv_prog_AR="${ac_tool_prefix}ar"
46934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46935     break 2
46936   fi
46937 done
46938 done
46939 IFS=$as_save_IFS
46940
46941 fi
46942 fi
46943 AR=$ac_cv_prog_AR
46944 if test -n "$AR"; then
46945   { echo "$as_me:$LINENO: result: $AR" >&5
46946 echo "${ECHO_T}$AR" >&6; }
46947 else
46948   { echo "$as_me:$LINENO: result: no" >&5
46949 echo "${ECHO_T}no" >&6; }
46950 fi
46951
46952
46953 fi
46954 if test -z "$ac_cv_prog_AR"; then
46955   ac_ct_AR=$AR
46956   # Extract the first word of "ar", so it can be a program name with args.
46957 set dummy ar; ac_word=$2
46958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46960 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46961   echo $ECHO_N "(cached) $ECHO_C" >&6
46962 else
46963   if test -n "$ac_ct_AR"; then
46964   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46965 else
46966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46967 for as_dir in $PATH
46968 do
46969   IFS=$as_save_IFS
46970   test -z "$as_dir" && as_dir=.
46971   for ac_exec_ext in '' $ac_executable_extensions; do
46972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46973     ac_cv_prog_ac_ct_AR="ar"
46974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46975     break 2
46976   fi
46977 done
46978 done
46979 IFS=$as_save_IFS
46980
46981 fi
46982 fi
46983 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46984 if test -n "$ac_ct_AR"; then
46985   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46986 echo "${ECHO_T}$ac_ct_AR" >&6; }
46987 else
46988   { echo "$as_me:$LINENO: result: no" >&5
46989 echo "${ECHO_T}no" >&6; }
46990 fi
46991
46992   if test "x$ac_ct_AR" = x; then
46993     AR="ar"
46994   else
46995     case $cross_compiling:$ac_tool_warned in
46996 yes:)
46997 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46998 whose name does not start with the host triplet.  If you think this
46999 configuration is useful to you, please write to autoconf@gnu.org." >&5
47000 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47001 whose name does not start with the host triplet.  If you think this
47002 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47003 ac_tool_warned=yes ;;
47004 esac
47005     AR=$ac_ct_AR
47006   fi
47007 else
47008   AR="$ac_cv_prog_AR"
47009 fi
47010
47011         AROPTIONS=rcu
47012     fi
47013
47014
47015     if test -n "$ac_tool_prefix"; then
47016   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47017 set dummy ${ac_tool_prefix}strip; ac_word=$2
47018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47020 if test "${ac_cv_prog_STRIP+set}" = set; then
47021   echo $ECHO_N "(cached) $ECHO_C" >&6
47022 else
47023   if test -n "$STRIP"; then
47024   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47025 else
47026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47027 for as_dir in $PATH
47028 do
47029   IFS=$as_save_IFS
47030   test -z "$as_dir" && as_dir=.
47031   for ac_exec_ext in '' $ac_executable_extensions; do
47032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47033     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47035     break 2
47036   fi
47037 done
47038 done
47039 IFS=$as_save_IFS
47040
47041 fi
47042 fi
47043 STRIP=$ac_cv_prog_STRIP
47044 if test -n "$STRIP"; then
47045   { echo "$as_me:$LINENO: result: $STRIP" >&5
47046 echo "${ECHO_T}$STRIP" >&6; }
47047 else
47048   { echo "$as_me:$LINENO: result: no" >&5
47049 echo "${ECHO_T}no" >&6; }
47050 fi
47051
47052
47053 fi
47054 if test -z "$ac_cv_prog_STRIP"; then
47055   ac_ct_STRIP=$STRIP
47056   # Extract the first word of "strip", so it can be a program name with args.
47057 set dummy strip; ac_word=$2
47058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47061   echo $ECHO_N "(cached) $ECHO_C" >&6
47062 else
47063   if test -n "$ac_ct_STRIP"; then
47064   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47065 else
47066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47067 for as_dir in $PATH
47068 do
47069   IFS=$as_save_IFS
47070   test -z "$as_dir" && as_dir=.
47071   for ac_exec_ext in '' $ac_executable_extensions; do
47072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47073     ac_cv_prog_ac_ct_STRIP="strip"
47074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47075     break 2
47076   fi
47077 done
47078 done
47079 IFS=$as_save_IFS
47080
47081 fi
47082 fi
47083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47084 if test -n "$ac_ct_STRIP"; then
47085   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47086 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47087 else
47088   { echo "$as_me:$LINENO: result: no" >&5
47089 echo "${ECHO_T}no" >&6; }
47090 fi
47091
47092   if test "x$ac_ct_STRIP" = x; then
47093     STRIP=":"
47094   else
47095     case $cross_compiling:$ac_tool_warned in
47096 yes:)
47097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47098 whose name does not start with the host triplet.  If you think this
47099 configuration is useful to you, please write to autoconf@gnu.org." >&5
47100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47101 whose name does not start with the host triplet.  If you think this
47102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47103 ac_tool_warned=yes ;;
47104 esac
47105     STRIP=$ac_ct_STRIP
47106   fi
47107 else
47108   STRIP="$ac_cv_prog_STRIP"
47109 fi
47110
47111     if test -n "$ac_tool_prefix"; then
47112   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47113 set dummy ${ac_tool_prefix}nm; ac_word=$2
47114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47116 if test "${ac_cv_prog_NM+set}" = set; then
47117   echo $ECHO_N "(cached) $ECHO_C" >&6
47118 else
47119   if test -n "$NM"; then
47120   ac_cv_prog_NM="$NM" # Let the user override the test.
47121 else
47122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47123 for as_dir in $PATH
47124 do
47125   IFS=$as_save_IFS
47126   test -z "$as_dir" && as_dir=.
47127   for ac_exec_ext in '' $ac_executable_extensions; do
47128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47129     ac_cv_prog_NM="${ac_tool_prefix}nm"
47130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47131     break 2
47132   fi
47133 done
47134 done
47135 IFS=$as_save_IFS
47136
47137 fi
47138 fi
47139 NM=$ac_cv_prog_NM
47140 if test -n "$NM"; then
47141   { echo "$as_me:$LINENO: result: $NM" >&5
47142 echo "${ECHO_T}$NM" >&6; }
47143 else
47144   { echo "$as_me:$LINENO: result: no" >&5
47145 echo "${ECHO_T}no" >&6; }
47146 fi
47147
47148
47149 fi
47150 if test -z "$ac_cv_prog_NM"; then
47151   ac_ct_NM=$NM
47152   # Extract the first word of "nm", so it can be a program name with args.
47153 set dummy nm; ac_word=$2
47154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47156 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47157   echo $ECHO_N "(cached) $ECHO_C" >&6
47158 else
47159   if test -n "$ac_ct_NM"; then
47160   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47161 else
47162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47163 for as_dir in $PATH
47164 do
47165   IFS=$as_save_IFS
47166   test -z "$as_dir" && as_dir=.
47167   for ac_exec_ext in '' $ac_executable_extensions; do
47168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47169     ac_cv_prog_ac_ct_NM="nm"
47170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47171     break 2
47172   fi
47173 done
47174 done
47175 IFS=$as_save_IFS
47176
47177 fi
47178 fi
47179 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47180 if test -n "$ac_ct_NM"; then
47181   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47182 echo "${ECHO_T}$ac_ct_NM" >&6; }
47183 else
47184   { echo "$as_me:$LINENO: result: no" >&5
47185 echo "${ECHO_T}no" >&6; }
47186 fi
47187
47188   if test "x$ac_ct_NM" = x; then
47189     NM=":"
47190   else
47191     case $cross_compiling:$ac_tool_warned in
47192 yes:)
47193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47194 whose name does not start with the host triplet.  If you think this
47195 configuration is useful to you, please write to autoconf@gnu.org." >&5
47196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47197 whose name does not start with the host triplet.  If you think this
47198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47199 ac_tool_warned=yes ;;
47200 esac
47201     NM=$ac_ct_NM
47202   fi
47203 else
47204   NM="$ac_cv_prog_NM"
47205 fi
47206
47207
47208             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47209 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47210     INSTALL_TEST_DIR=acbftest$$
47211     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47212     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47213         rmdir $INSTALL_TEST_DIR
47214                         INSTALL_DIR='$(INSTALL) -d'
47215         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47216 echo "${ECHO_T}$INSTALL -d" >&6; }
47217     else
47218         INSTALL_DIR="mkdir -p"
47219         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47220 echo "${ECHO_T}mkdir -p" >&6; }
47221     fi
47222
47223
47224     LDFLAGS_GUI=
47225     case ${BAKEFILE_HOST} in
47226         *-*-cygwin* | *-*-mingw32* )
47227         LDFLAGS_GUI="-mwindows"
47228     esac
47229
47230
47231     fi
47232
47233         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47234 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47235 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47236   echo $ECHO_N "(cached) $ECHO_C" >&6
47237 else
47238
47239         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47240                 egrep -s GNU > /dev/null); then
47241             bakefile_cv_prog_makeisgnu="yes"
47242         else
47243             bakefile_cv_prog_makeisgnu="no"
47244         fi
47245
47246 fi
47247 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47248 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47249
47250     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47251         IF_GNU_MAKE=""
47252     else
47253         IF_GNU_MAKE="#"
47254     fi
47255
47256
47257
47258     PLATFORM_UNIX=0
47259     PLATFORM_WIN32=0
47260     PLATFORM_MSDOS=0
47261     PLATFORM_MAC=0
47262     PLATFORM_MACOS=0
47263     PLATFORM_MACOSX=0
47264     PLATFORM_OS2=0
47265     PLATFORM_BEOS=0
47266
47267     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47268         case "${BAKEFILE_HOST}" in
47269             *-*-mingw32* )
47270                 PLATFORM_WIN32=1
47271             ;;
47272             *-pc-msdosdjgpp )
47273                 PLATFORM_MSDOS=1
47274             ;;
47275             *-pc-os2_emx | *-pc-os2-emx )
47276                 PLATFORM_OS2=1
47277             ;;
47278             *-*-darwin* )
47279                 PLATFORM_MAC=1
47280                 PLATFORM_MACOSX=1
47281             ;;
47282             *-*-beos* )
47283                 PLATFORM_BEOS=1
47284             ;;
47285             powerpc-apple-macos* )
47286                 PLATFORM_MAC=1
47287                 PLATFORM_MACOS=1
47288             ;;
47289             * )
47290                 PLATFORM_UNIX=1
47291             ;;
47292         esac
47293     else
47294         case "$BAKEFILE_FORCE_PLATFORM" in
47295             win32 )
47296                 PLATFORM_WIN32=1
47297             ;;
47298             msdos )
47299                 PLATFORM_MSDOS=1
47300             ;;
47301             os2 )
47302                 PLATFORM_OS2=1
47303             ;;
47304             darwin )
47305                 PLATFORM_MAC=1
47306                 PLATFORM_MACOSX=1
47307             ;;
47308             unix )
47309                 PLATFORM_UNIX=1
47310             ;;
47311             beos )
47312                 PLATFORM_BEOS=1
47313             ;;
47314             * )
47315                                             ;;
47316         esac
47317     fi
47318
47319
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329     # Check whether --enable-omf was given.
47330 if test "${enable_omf+set}" = set; then
47331   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47332 fi
47333
47334
47335     case "${BAKEFILE_HOST}" in
47336       *-*-darwin* )
47337                         if test "x$GCC" = "xyes"; then
47338             CFLAGS="$CFLAGS -fno-common"
47339             CXXFLAGS="$CXXFLAGS -fno-common"
47340         fi
47341         if test "x$XLCC" = "xyes"; then
47342             CFLAGS="$CFLAGS -qnocommon"
47343             CXXFLAGS="$CXXFLAGS -qnocommon"
47344         fi
47345         ;;
47346
47347       *-pc-os2_emx | *-pc-os2-emx )
47348         if test "x$bk_os2_use_omf" = "xyes" ; then
47349             AR=emxomfar
47350             RANLIB=:
47351             LDFLAGS="-Zomf $LDFLAGS"
47352             CFLAGS="-Zomf $CFLAGS"
47353             CXXFLAGS="-Zomf $CXXFLAGS"
47354             OS2_LIBEXT="lib"
47355         else
47356             OS2_LIBEXT="a"
47357         fi
47358         ;;
47359
47360       i*86-*-beos* )
47361         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47362         ;;
47363     esac
47364
47365
47366     SO_SUFFIX="so"
47367     SO_SUFFIX_MODULE="so"
47368     EXEEXT=""
47369     LIBPREFIX="lib"
47370     LIBEXT=".a"
47371     DLLPREFIX="lib"
47372     DLLPREFIX_MODULE=""
47373     DLLIMP_SUFFIX=""
47374     dlldir="$libdir"
47375
47376     case "${BAKEFILE_HOST}" in
47377         *-hp-hpux* )
47378             SO_SUFFIX="sl"
47379             SO_SUFFIX_MODULE="sl"
47380         ;;
47381         *-*-aix* )
47382                                                                         SO_SUFFIX="a"
47383             SO_SUFFIX_MODULE="a"
47384         ;;
47385         *-*-cygwin* )
47386             SO_SUFFIX="dll"
47387             SO_SUFFIX_MODULE="dll"
47388             DLLIMP_SUFFIX="dll.a"
47389             EXEEXT=".exe"
47390             DLLPREFIX="cyg"
47391             dlldir="$bindir"
47392         ;;
47393         *-*-mingw32* )
47394             SO_SUFFIX="dll"
47395             SO_SUFFIX_MODULE="dll"
47396             DLLIMP_SUFFIX="dll.a"
47397             EXEEXT=".exe"
47398             DLLPREFIX=""
47399             dlldir="$bindir"
47400         ;;
47401         *-pc-msdosdjgpp )
47402             EXEEXT=".exe"
47403             DLLPREFIX=""
47404             dlldir="$bindir"
47405         ;;
47406         *-pc-os2_emx | *-pc-os2-emx )
47407             SO_SUFFIX="dll"
47408             SO_SUFFIX_MODULE="dll"
47409             DLLIMP_SUFFIX=$OS2_LIBEXT
47410             EXEEXT=".exe"
47411             DLLPREFIX=""
47412             LIBPREFIX=""
47413             LIBEXT=".$OS2_LIBEXT"
47414             dlldir="$bindir"
47415         ;;
47416         *-*-darwin* )
47417             SO_SUFFIX="dylib"
47418             SO_SUFFIX_MODULE="bundle"
47419         ;;
47420     esac
47421
47422     if test "x$DLLIMP_SUFFIX" = "x" ; then
47423         DLLIMP_SUFFIX="$SO_SUFFIX"
47424     fi
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434
47435
47436
47437         PIC_FLAG=""
47438     if test "x$GCC" = "xyes"; then
47439                 PIC_FLAG="-fPIC"
47440     fi
47441
47442         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47443     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47444     WINDOWS_IMPLIB=0
47445
47446     case "${BAKEFILE_HOST}" in
47447       *-hp-hpux* )
47448                 if test "x$GCC" != "xyes"; then
47449                         LDFLAGS="$LDFLAGS -L/usr/lib"
47450
47451             SHARED_LD_CC="${CC} -b -o"
47452             SHARED_LD_CXX="${CXX} -b -o"
47453             PIC_FLAG="+Z"
47454         fi
47455       ;;
47456
47457       *-*-linux* )
47458         if test "$INTELCC" = "yes"; then
47459             PIC_FLAG="-KPIC"
47460         elif test "x$SUNCXX" = "xyes"; then
47461             SHARED_LD_CC="${CC} -G -o"
47462             SHARED_LD_CXX="${CXX} -G -o"
47463             PIC_FLAG="-KPIC"
47464         fi
47465       ;;
47466
47467       *-*-solaris2* )
47468         if test "x$SUNCXX" = xyes ; then
47469             SHARED_LD_CC="${CC} -G -o"
47470             SHARED_LD_CXX="${CXX} -G -o"
47471             PIC_FLAG="-KPIC"
47472         fi
47473       ;;
47474
47475       *-*-darwin* )
47476
47477 D='$'
47478 cat <<EOF >shared-ld-sh
47479 #!/bin/sh
47480 #-----------------------------------------------------------------------------
47481 #-- Name:        distrib/mac/shared-ld-sh
47482 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47483 #-- Author:      Gilles Depeyrot
47484 #-- Copyright:   (c) 2002 Gilles Depeyrot
47485 #-- Licence:     any use permitted
47486 #-----------------------------------------------------------------------------
47487
47488 verbose=0
47489 args=""
47490 objects=""
47491 linking_flag="-dynamiclib"
47492 ldargs="-r -keep_private_externs -nostdlib"
47493
47494 if test "x${D}CXX" = "x"; then
47495     CXX="c++"
47496 fi
47497
47498 while test ${D}# -gt 0; do
47499     case ${D}1 in
47500
47501        -v)
47502         verbose=1
47503         ;;
47504
47505        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47506         # collect these options and values
47507         args="${D}{args} ${D}1 ${D}2"
47508         shift
47509         ;;
47510
47511        -arch|-isysroot)
47512         # collect these options and values
47513         ldargs="${D}{ldargs} ${D}1 ${D}2"
47514         shift
47515         ;;
47516
47517        -s|-Wl,*)
47518         # collect these load args
47519         ldargs="${D}{ldargs} ${D}1"
47520         ;;
47521
47522        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47523         # collect these options
47524         args="${D}{args} ${D}1"
47525         ;;
47526
47527        -dynamiclib|-bundle)
47528         linking_flag="${D}1"
47529         ;;
47530
47531        -*)
47532         echo "shared-ld: unhandled option '${D}1'"
47533         exit 1
47534         ;;
47535
47536         *.o | *.a | *.dylib)
47537         # collect object files
47538         objects="${D}{objects} ${D}1"
47539         ;;
47540
47541         *)
47542         echo "shared-ld: unhandled argument '${D}1'"
47543         exit 1
47544         ;;
47545
47546     esac
47547     shift
47548 done
47549
47550 status=0
47551
47552 #
47553 # Link one module containing all the others
47554 #
47555 if test ${D}{verbose} = 1; then
47556     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
47557 fi
47558 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
47559 status=${D}?
47560
47561 #
47562 # Link the shared library from the single module created, but only if the
47563 # previous command didn't fail:
47564 #
47565 if test ${D}{status} = 0; then
47566     if test ${D}{verbose} = 1; then
47567         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47568     fi
47569     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47570     status=${D}?
47571 fi
47572
47573 #
47574 # Remove intermediate module
47575 #
47576 rm -f master.${D}${D}.o
47577
47578 exit ${D}status
47579 EOF
47580
47581         chmod +x shared-ld-sh
47582
47583         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47584         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
47585
47586
47587                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47588 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
47589 if test "${bakefile_cv_gcc31+set}" = set; then
47590   echo $ECHO_N "(cached) $ECHO_C" >&6
47591 else
47592
47593            cat >conftest.$ac_ext <<_ACEOF
47594 /* confdefs.h.  */
47595 _ACEOF
47596 cat confdefs.h >>conftest.$ac_ext
47597 cat >>conftest.$ac_ext <<_ACEOF
47598 /* end confdefs.h.  */
47599
47600 int
47601 main ()
47602 {
47603
47604                    #if (__GNUC__ < 3) || \
47605                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
47606                        This is old gcc
47607                    #endif
47608
47609   ;
47610   return 0;
47611 }
47612 _ACEOF
47613 rm -f conftest.$ac_objext
47614 if { (ac_try="$ac_compile"
47615 case "(($ac_try" in
47616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47617   *) ac_try_echo=$ac_try;;
47618 esac
47619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47620   (eval "$ac_compile") 2>conftest.er1
47621   ac_status=$?
47622   grep -v '^ *+' conftest.er1 >conftest.err
47623   rm -f conftest.er1
47624   cat conftest.err >&5
47625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47626   (exit $ac_status); } && {
47627          test -z "$ac_c_werror_flag" ||
47628          test ! -s conftest.err
47629        } && test -s conftest.$ac_objext; then
47630
47631                    bakefile_cv_gcc31=yes
47632
47633 else
47634   echo "$as_me: failed program was:" >&5
47635 sed 's/^/| /' conftest.$ac_ext >&5
47636
47637
47638                    bakefile_cv_gcc31=no
47639
47640
47641 fi
47642
47643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47644
47645 fi
47646 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47647 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
47648         if test "$bakefile_cv_gcc31" = "no"; then
47649                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
47650             SHARED_LD_CXX="$SHARED_LD_CC"
47651         else
47652                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
47653             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
47654         fi
47655
47656         if test "x$GCC" == "xyes"; then
47657             PIC_FLAG="-dynamic -fPIC"
47658         fi
47659         if test "x$XLCC" = "xyes"; then
47660             PIC_FLAG="-dynamic -DPIC"
47661         fi
47662       ;;
47663
47664       *-*-aix* )
47665         if test "x$GCC" = "xyes"; then
47666                                                             PIC_FLAG=""
47667
47668                                                                                     case "${BAKEFILE_HOST}" in
47669                 *-*-aix5* )
47670                     LD_EXPFULL="-Wl,-bexpfull"
47671                     ;;
47672             esac
47673
47674             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47675             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47676         else
47677                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
47678 set dummy makeC++SharedLib; ac_word=$2
47679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47681 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47682   echo $ECHO_N "(cached) $ECHO_C" >&6
47683 else
47684   if test -n "$AIX_CXX_LD"; then
47685   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47686 else
47687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47688 for as_dir in $PATH
47689 do
47690   IFS=$as_save_IFS
47691   test -z "$as_dir" && as_dir=.
47692   for ac_exec_ext in '' $ac_executable_extensions; do
47693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47694     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47696     break 2
47697   fi
47698 done
47699 done
47700 IFS=$as_save_IFS
47701
47702   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47703 fi
47704 fi
47705 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47706 if test -n "$AIX_CXX_LD"; then
47707   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47708 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
47709 else
47710   { echo "$as_me:$LINENO: result: no" >&5
47711 echo "${ECHO_T}no" >&6; }
47712 fi
47713
47714
47715             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
47716             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47717         fi
47718       ;;
47719
47720       *-*-beos* )
47721                         SHARED_LD_CC="${LD} -nostart -o"
47722         SHARED_LD_CXX="${LD} -nostart -o"
47723       ;;
47724
47725       *-*-irix* )
47726                 if test "x$GCC" != "xyes"; then
47727             PIC_FLAG="-KPIC"
47728         fi
47729       ;;
47730
47731       *-*-cygwin* | *-*-mingw32* )
47732         PIC_FLAG=""
47733         SHARED_LD_CC="\$(CC) -shared -o"
47734         SHARED_LD_CXX="\$(CXX) -shared -o"
47735         WINDOWS_IMPLIB=1
47736       ;;
47737
47738       *-pc-os2_emx | *-pc-os2-emx )
47739         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47740         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47741         PIC_FLAG=""
47742
47743 D='$'
47744 cat <<EOF >dllar.sh
47745 #!/bin/sh
47746 #
47747 # dllar - a tool to build both a .dll and an .a file
47748 # from a set of object (.o) files for EMX/OS2.
47749 #
47750 #  Written by Andrew Zabolotny, bit@freya.etu.ru
47751 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47752 #
47753 #  This script will accept a set of files on the command line.
47754 #  All the public symbols from the .o files will be exported into
47755 #  a .DEF file, then linker will be run (through gcc) against them to
47756 #  build a shared library consisting of all given .o files. All libraries
47757 #  (.a) will be first decompressed into component .o files then act as
47758 #  described above. You can optionally give a description (-d "description")
47759 #  which will be put into .DLL. To see the list of accepted options (as well
47760 #  as command-line format) simply run this program without options. The .DLL
47761 #  is built to be imported by name (there is no guarantee that new versions
47762 #  of the library you build will have same ordinals for same symbols).
47763 #
47764 #  dllar is free software; you can redistribute it and/or modify
47765 #  it under the terms of the GNU General Public License as published by
47766 #  the Free Software Foundation; either version 2, or (at your option)
47767 #  any later version.
47768 #
47769 #  dllar is distributed in the hope that it will be useful,
47770 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
47771 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47772 #  GNU General Public License for more details.
47773 #
47774 #  You should have received a copy of the GNU General Public License
47775 #  along with dllar; see the file COPYING.  If not, write to the Free
47776 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47777 #  02111-1307, USA.
47778
47779 # To successfuly run this program you will need:
47780 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
47781 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47782 #  - gcc
47783 #    (used to build the .dll)
47784 #  - emxexp
47785 #    (used to create .def file from .o files)
47786 #  - emximp
47787 #    (used to create .a file from .def file)
47788 #  - GNU text utilites (cat, sort, uniq)
47789 #    used to process emxexp output
47790 #  - GNU file utilities (mv, rm)
47791 #  - GNU sed
47792 #  - lxlite (optional, see flag below)
47793 #    (used for general .dll cleanup)
47794 #
47795
47796 flag_USE_LXLITE=1;
47797
47798 #
47799 # helper functions
47800 # basnam, variant of basename, which does _not_ remove the path, _iff_
47801 #                              second argument (suffix to remove) is given
47802 basnam(){
47803     case ${D}# in
47804     1)
47805         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
47806         ;;
47807     2)
47808         echo ${D}1 | sed 's/'${D}2'${D}//'
47809         ;;
47810     *)
47811         echo "error in basnam ${D}*"
47812         exit 8
47813         ;;
47814     esac
47815 }
47816
47817 # Cleanup temporary files and output
47818 CleanUp() {
47819     cd ${D}curDir
47820     for i in ${D}inputFiles ; do
47821         case ${D}i in
47822         *!)
47823             rm -rf \`basnam ${D}i !\`
47824             ;;
47825         *)
47826             ;;
47827         esac
47828     done
47829
47830     # Kill result in case of failure as there is just to many stupid make/nmake
47831     # things out there which doesn't do this.
47832     if [ ${D}# -eq 0 ]; then
47833         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47834     fi
47835 }
47836
47837 # Print usage and exit script with rc=1.
47838 PrintHelp() {
47839  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47840  echo '       [-name-mangler-script script.sh]'
47841  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47842  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
47843  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
47844  echo '       [*.o] [*.a]'
47845  echo '*> "output_file" should have no extension.'
47846  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
47847  echo '   The import library name is derived from this and is set to "name".a,'
47848  echo '   unless overridden by -import'
47849  echo '*> "importlib_name" should have no extension.'
47850  echo '   If it has the .o, or .a extension, it is automatically removed.'
47851  echo '   This name is used as the import library name and may be longer and'
47852  echo '   more descriptive than the DLL name which has to follow the old '
47853  echo '   8.3 convention of FAT.'
47854  echo '*> "script.sh may be given to override the output_file name by a'
47855  echo '   different name. It is mainly useful if the regular make process'
47856  echo '   of some package does not take into account OS/2 restriction of'
47857  echo '   DLL name lengths. It takes the importlib name as input and is'
47858  echo '   supposed to procude a shorter name as output. The script should'
47859  echo '   expect to get importlib_name without extension and should produce'
47860  echo '   a (max.) 8 letter name without extension.'
47861  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47862  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47863  echo '   These flags will be put at the start of GCC command line.'
47864  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47865  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47866  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47867  echo '   If the last character of a symbol is "*", all symbols beginning'
47868  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47869  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47870  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47871  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47872  echo '   C runtime DLLs.'
47873  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47874  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47875  echo '   unchanged to GCC at the end of command line.'
47876  echo '*> If you create a DLL from a library and you do not specify -o,'
47877  echo '   the basename for DLL and import library will be set to library name,'
47878  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47879  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47880  echo '   library will be renamed into gcc_s.a.'
47881  echo '--------'
47882  echo 'Example:'
47883  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47884  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47885  CleanUp
47886  exit 1
47887 }
47888
47889 # Execute a command.
47890 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47891 # @Uses    Whatever CleanUp() uses.
47892 doCommand() {
47893     echo "${D}*"
47894     eval ${D}*
47895     rcCmd=${D}?
47896
47897     if [ ${D}rcCmd -ne 0 ]; then
47898         echo "command failed, exit code="${D}rcCmd
47899         CleanUp
47900         exit ${D}rcCmd
47901     fi
47902 }
47903
47904 # main routine
47905 # setup globals
47906 cmdLine=${D}*
47907 outFile=""
47908 outimpFile=""
47909 inputFiles=""
47910 renameScript=""
47911 description=""
47912 CC=gcc.exe
47913 CFLAGS="-s -Zcrtdll"
47914 EXTRA_CFLAGS=""
47915 EXPORT_BY_ORDINALS=0
47916 exclude_symbols=""
47917 library_flags=""
47918 curDir=\`pwd\`
47919 curDirS=curDir
47920 case ${D}curDirS in
47921 */)
47922   ;;
47923 *)
47924   curDirS=${D}{curDirS}"/"
47925   ;;
47926 esac
47927 # Parse commandline
47928 libsToLink=0
47929 omfLinking=0
47930 while [ ${D}1 ]; do
47931     case ${D}1 in
47932     -ord*)
47933         EXPORT_BY_ORDINALS=1;
47934         ;;
47935     -o*)
47936         shift
47937         outFile=${D}1
47938         ;;
47939     -i*)
47940         shift
47941         outimpFile=${D}1
47942         ;;
47943     -name-mangler-script)
47944         shift
47945         renameScript=${D}1
47946         ;;
47947     -d*)
47948         shift
47949         description=${D}1
47950         ;;
47951     -f*)
47952         shift
47953         CFLAGS=${D}1
47954         ;;
47955     -c*)
47956         shift
47957         CC=${D}1
47958         ;;
47959     -h*)
47960         PrintHelp
47961         ;;
47962     -ex*)
47963         shift
47964         exclude_symbols=${D}{exclude_symbols}${D}1" "
47965         ;;
47966     -libf*)
47967         shift
47968         library_flags=${D}{library_flags}${D}1" "
47969         ;;
47970     -nocrt*)
47971         CFLAGS="-s"
47972         ;;
47973     -nolxl*)
47974         flag_USE_LXLITE=0
47975         ;;
47976     -* | /*)
47977         case ${D}1 in
47978         -L* | -l*)
47979             libsToLink=1
47980             ;;
47981         -Zomf)
47982             omfLinking=1
47983             ;;
47984         *)
47985             ;;
47986         esac
47987         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47988         ;;
47989     *.dll)
47990         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47991         if [ ${D}omfLinking -eq 1 ]; then
47992             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47993         else
47994             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47995         fi
47996         ;;
47997     *)
47998         found=0;
47999         if [ ${D}libsToLink -ne 0 ]; then
48000             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48001         else
48002             for file in ${D}1 ; do
48003                 if [ -f ${D}file ]; then
48004                     inputFiles="${D}{inputFiles} ${D}file"
48005                     found=1
48006                 fi
48007             done
48008             if [ ${D}found -eq 0 ]; then
48009                 echo "ERROR: No file(s) found: "${D}1
48010                 exit 8
48011             fi
48012         fi
48013       ;;
48014     esac
48015     shift
48016 done # iterate cmdline words
48017
48018 #
48019 if [ -z "${D}inputFiles" ]; then
48020     echo "dllar: no input files"
48021     PrintHelp
48022 fi
48023
48024 # Now extract all .o files from .a files
48025 newInputFiles=""
48026 for file in ${D}inputFiles ; do
48027     case ${D}file in
48028     *.a | *.lib)
48029         case ${D}file in
48030         *.a)
48031             suffix=".a"
48032             AR="ar"
48033             ;;
48034         *.lib)
48035             suffix=".lib"
48036             AR="emxomfar"
48037             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48038             ;;
48039         *)
48040             ;;
48041         esac
48042         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48043         mkdir ${D}dirname
48044         if [ ${D}? -ne 0 ]; then
48045             echo "Failed to create subdirectory ./${D}dirname"
48046             CleanUp
48047             exit 8;
48048         fi
48049         # Append '!' to indicate archive
48050         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48051         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48052         cd ${D}curDir
48053         found=0;
48054         for subfile in ${D}dirname/*.o* ; do
48055             if [ -f ${D}subfile ]; then
48056                 found=1
48057                 if [ -s ${D}subfile ]; then
48058                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48059                     newInputFiles="${D}newInputFiles ${D}subfile"
48060                 fi
48061             fi
48062         done
48063         if [ ${D}found -eq 0 ]; then
48064             echo "WARNING: there are no files in archive \\'${D}file\\'"
48065         fi
48066         ;;
48067     *)
48068         newInputFiles="${D}{newInputFiles} ${D}file"
48069         ;;
48070     esac
48071 done
48072 inputFiles="${D}newInputFiles"
48073
48074 # Output filename(s).
48075 do_backup=0;
48076 if [ -z ${D}outFile ]; then
48077     do_backup=1;
48078     set outFile ${D}inputFiles; outFile=${D}2
48079 fi
48080
48081 # If it is an archive, remove the '!' and the '_%' suffixes
48082 case ${D}outFile in
48083 *_%!)
48084     outFile=\`basnam ${D}outFile _%!\`
48085     ;;
48086 *)
48087     ;;
48088 esac
48089 case ${D}outFile in
48090 *.dll)
48091     outFile=\`basnam ${D}outFile .dll\`
48092     ;;
48093 *.DLL)
48094     outFile=\`basnam ${D}outFile .DLL\`
48095     ;;
48096 *.o)
48097     outFile=\`basnam ${D}outFile .o\`
48098     ;;
48099 *.obj)
48100     outFile=\`basnam ${D}outFile .obj\`
48101     ;;
48102 *.a)
48103     outFile=\`basnam ${D}outFile .a\`
48104     ;;
48105 *.lib)
48106     outFile=\`basnam ${D}outFile .lib\`
48107     ;;
48108 *)
48109     ;;
48110 esac
48111 case ${D}outimpFile in
48112 *.a)
48113     outimpFile=\`basnam ${D}outimpFile .a\`
48114     ;;
48115 *.lib)
48116     outimpFile=\`basnam ${D}outimpFile .lib\`
48117     ;;
48118 *)
48119     ;;
48120 esac
48121 if [ -z ${D}outimpFile ]; then
48122     outimpFile=${D}outFile
48123 fi
48124 defFile="${D}{outFile}.def"
48125 arcFile="${D}{outimpFile}.a"
48126 arcFile2="${D}{outimpFile}.lib"
48127
48128 #create ${D}dllFile as something matching 8.3 restrictions,
48129 if [ -z ${D}renameScript ] ; then
48130     dllFile="${D}outFile"
48131 else
48132     dllFile=\`${D}renameScript ${D}outimpFile\`
48133 fi
48134
48135 if [ ${D}do_backup -ne 0 ] ; then
48136     if [ -f ${D}arcFile ] ; then
48137         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48138     fi
48139     if [ -f ${D}arcFile2 ] ; then
48140         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48141     fi
48142 fi
48143
48144 # Extract public symbols from all the object files.
48145 tmpdefFile=${D}{defFile}_%
48146 rm -f ${D}tmpdefFile
48147 for file in ${D}inputFiles ; do
48148     case ${D}file in
48149     *!)
48150         ;;
48151     *)
48152         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48153         ;;
48154     esac
48155 done
48156
48157 # Create the def file.
48158 rm -f ${D}defFile
48159 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48160 dllFile="${D}{dllFile}.dll"
48161 if [ ! -z ${D}description ]; then
48162     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48163 fi
48164 echo "EXPORTS" >> ${D}defFile
48165
48166 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48167 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48168
48169 # Checks if the export is ok or not.
48170 for word in ${D}exclude_symbols; do
48171     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48172     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48173 done
48174
48175
48176 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48177     sed "=" < ${D}tmpdefFile | \\
48178     sed '
48179       N
48180       : loop
48181       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48182       t loop
48183     ' > ${D}{tmpdefFile}%
48184     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48185 else
48186     rm -f ${D}{tmpdefFile}%
48187 fi
48188 cat ${D}tmpdefFile >> ${D}defFile
48189 rm -f ${D}tmpdefFile
48190
48191 # Do linking, create implib, and apply lxlite.
48192 gccCmdl="";
48193 for file in ${D}inputFiles ; do
48194     case ${D}file in
48195     *!)
48196         ;;
48197     *)
48198         gccCmdl="${D}gccCmdl ${D}file"
48199         ;;
48200     esac
48201 done
48202 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48203 touch "${D}{outFile}.dll"
48204
48205 doCommand "emximp -o ${D}arcFile ${D}defFile"
48206 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48207     add_flags="";
48208     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48209         add_flags="-ynd"
48210     fi
48211     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48212 fi
48213 doCommand "emxomf -s -l ${D}arcFile"
48214
48215 # Successful exit.
48216 CleanUp 1
48217 exit 0
48218 EOF
48219
48220         chmod +x dllar.sh
48221       ;;
48222
48223       powerpc-apple-macos* | \
48224       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48225       *-*-mirbsd* | \
48226       *-*-sunos4* | \
48227       *-*-osf* | \
48228       *-*-dgux5* | \
48229       *-*-sysv5* | \
48230       *-pc-msdosdjgpp )
48231               ;;
48232
48233       *)
48234         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48235 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48236    { (exit 1); exit 1; }; }
48237     esac
48238
48239     if test "x$PIC_FLAG" != "x" ; then
48240         PIC_FLAG="$PIC_FLAG -DPIC"
48241     fi
48242
48243     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48244         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48245     fi
48246     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48247         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48248     fi
48249
48250
48251
48252
48253
48254
48255
48256
48257
48258     USE_SOVERSION=0
48259     USE_SOVERLINUX=0
48260     USE_SOVERSOLARIS=0
48261     USE_SOVERCYGWIN=0
48262     USE_SOSYMLINKS=0
48263     USE_MACVERSION=0
48264     SONAME_FLAG=
48265
48266     case "${BAKEFILE_HOST}" in
48267       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
48268       *-*-k*bsd*-gnu | *-*-mirbsd* )
48269         if test "x$SUNCXX" = "xyes"; then
48270             SONAME_FLAG="-h "
48271         else
48272             SONAME_FLAG="-Wl,-soname,"
48273         fi
48274         USE_SOVERSION=1
48275         USE_SOVERLINUX=1
48276         USE_SOSYMLINKS=1
48277       ;;
48278
48279       *-*-solaris2* )
48280         SONAME_FLAG="-h "
48281         USE_SOVERSION=1
48282         USE_SOVERSOLARIS=1
48283         USE_SOSYMLINKS=1
48284       ;;
48285
48286       *-*-darwin* )
48287         USE_MACVERSION=1
48288         USE_SOVERSION=1
48289         USE_SOSYMLINKS=1
48290       ;;
48291
48292       *-*-cygwin* )
48293         USE_SOVERSION=1
48294         USE_SOVERCYGWIN=1
48295       ;;
48296     esac
48297
48298
48299
48300
48301
48302
48303
48304
48305
48306
48307     # Check whether --enable-dependency-tracking was given.
48308 if test "${enable_dependency_tracking+set}" = set; then
48309   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48310 fi
48311
48312
48313     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48314 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48315
48316     BK_DEPS=""
48317     if test "x$bk_use_trackdeps" = "xno" ; then
48318         DEPS_TRACKING=0
48319         { echo "$as_me:$LINENO: result: disabled" >&5
48320 echo "${ECHO_T}disabled" >&6; }
48321     else
48322         DEPS_TRACKING=1
48323
48324         if test "x$GCC" = "xyes"; then
48325             DEPSMODE=gcc
48326             case "${BAKEFILE_HOST}" in
48327                 *-*-darwin* )
48328                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48329                 ;;
48330                 * )
48331                     DEPSFLAG="-MMD"
48332                 ;;
48333             esac
48334             { echo "$as_me:$LINENO: result: gcc" >&5
48335 echo "${ECHO_T}gcc" >&6; }
48336         elif test "x$MWCC" = "xyes"; then
48337             DEPSMODE=mwcc
48338             DEPSFLAG="-MM"
48339             { echo "$as_me:$LINENO: result: mwcc" >&5
48340 echo "${ECHO_T}mwcc" >&6; }
48341         elif test "x$SUNCC" = "xyes"; then
48342             DEPSMODE=unixcc
48343             DEPSFLAG="-xM1"
48344             { echo "$as_me:$LINENO: result: Sun cc" >&5
48345 echo "${ECHO_T}Sun cc" >&6; }
48346         elif test "x$SGICC" = "xyes"; then
48347             DEPSMODE=unixcc
48348             DEPSFLAG="-M"
48349             { echo "$as_me:$LINENO: result: SGI cc" >&5
48350 echo "${ECHO_T}SGI cc" >&6; }
48351         elif test "x$HPCC" = "xyes"; then
48352             DEPSMODE=unixcc
48353             DEPSFLAG="+make"
48354             { echo "$as_me:$LINENO: result: HP cc" >&5
48355 echo "${ECHO_T}HP cc" >&6; }
48356         elif test "x$COMPAQCC" = "xyes"; then
48357             DEPSMODE=gcc
48358             DEPSFLAG="-MD"
48359             { echo "$as_me:$LINENO: result: Compaq cc" >&5
48360 echo "${ECHO_T}Compaq cc" >&6; }
48361         else
48362             DEPS_TRACKING=0
48363             { echo "$as_me:$LINENO: result: none" >&5
48364 echo "${ECHO_T}none" >&6; }
48365         fi
48366
48367         if test $DEPS_TRACKING = 1 ; then
48368
48369 D='$'
48370 cat <<EOF >bk-deps
48371 #!/bin/sh
48372
48373 # This script is part of Bakefile (http://www.bakefile.org) autoconf
48374 # script. It is used to track C/C++ files dependencies in portable way.
48375 #
48376 # Permission is given to use this file in any way.
48377
48378 DEPSMODE=${DEPSMODE}
48379 DEPSDIR=.deps
48380 DEPSFLAG="${DEPSFLAG}"
48381
48382 mkdir -p ${D}DEPSDIR
48383
48384 if test ${D}DEPSMODE = gcc ; then
48385     ${D}* ${D}{DEPSFLAG}
48386     status=${D}?
48387
48388     # determine location of created files:
48389     while test ${D}# -gt 0; do
48390         case "${D}1" in
48391             -o )
48392                 shift
48393                 objfile=${D}1
48394             ;;
48395             -* )
48396             ;;
48397             * )
48398                 srcfile=${D}1
48399             ;;
48400         esac
48401         shift
48402     done
48403     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48404     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48405
48406     # if the compiler failed, we're done:
48407     if test ${D}{status} != 0 ; then
48408         rm -f ${D}depfile
48409         exit ${D}{status}
48410     fi
48411
48412     # move created file to the location we want it in:
48413     if test -f ${D}depfile ; then
48414         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48415         rm -f ${D}depfile
48416     else
48417         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48418         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48419         if test ! -f ${D}depfile ; then
48420             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48421             depfile="${D}objfile.d"
48422         fi
48423         if test -f ${D}depfile ; then
48424             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48425             rm -f ${D}depfile
48426         fi
48427     fi
48428     exit 0
48429 elif test ${D}DEPSMODE = mwcc ; then
48430     ${D}* || exit ${D}?
48431     # Run mwcc again with -MM and redirect into the dep file we want
48432     # NOTE: We can't use shift here because we need ${D}* to be valid
48433     prevarg=
48434     for arg in ${D}* ; do
48435         if test "${D}prevarg" = "-o"; then
48436             objfile=${D}arg
48437         else
48438             case "${D}arg" in
48439                 -* )
48440                 ;;
48441                 * )
48442                     srcfile=${D}arg
48443                 ;;
48444             esac
48445         fi
48446         prevarg="${D}arg"
48447     done
48448     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48449     exit 0
48450 elif test ${D}DEPSMODE = unixcc; then
48451     ${D}* || exit ${D}?
48452     # Run compiler again with deps flag and redirect into the dep file.
48453     # It doesn't work if the '-o FILE' option is used, but without it the
48454     # dependency file will contain the wrong name for the object. So it is
48455     # removed from the command line, and the dep file is fixed with sed.
48456     cmd=""
48457     while test ${D}# -gt 0; do
48458         case "${D}1" in
48459             -o )
48460                 shift
48461                 objfile=${D}1
48462             ;;
48463             * )
48464                 eval arg${D}#=\\${D}1
48465                 cmd="${D}cmd \\${D}arg${D}#"
48466             ;;
48467         esac
48468         shift
48469     done
48470     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48471     exit 0
48472 else
48473     ${D}*
48474     exit ${D}?
48475 fi
48476 EOF
48477
48478             chmod +x bk-deps
48479                                     BK_DEPS="`pwd`/bk-deps"
48480         fi
48481     fi
48482
48483
48484
48485
48486
48487     case ${BAKEFILE_HOST} in
48488         *-*-cygwin* | *-*-mingw32* )
48489                         if test -n "$ac_tool_prefix"; then
48490   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48491 set dummy ${ac_tool_prefix}windres; ac_word=$2
48492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48494 if test "${ac_cv_prog_WINDRES+set}" = set; then
48495   echo $ECHO_N "(cached) $ECHO_C" >&6
48496 else
48497   if test -n "$WINDRES"; then
48498   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48499 else
48500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48501 for as_dir in $PATH
48502 do
48503   IFS=$as_save_IFS
48504   test -z "$as_dir" && as_dir=.
48505   for ac_exec_ext in '' $ac_executable_extensions; do
48506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48507     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48509     break 2
48510   fi
48511 done
48512 done
48513 IFS=$as_save_IFS
48514
48515 fi
48516 fi
48517 WINDRES=$ac_cv_prog_WINDRES
48518 if test -n "$WINDRES"; then
48519   { echo "$as_me:$LINENO: result: $WINDRES" >&5
48520 echo "${ECHO_T}$WINDRES" >&6; }
48521 else
48522   { echo "$as_me:$LINENO: result: no" >&5
48523 echo "${ECHO_T}no" >&6; }
48524 fi
48525
48526
48527 fi
48528 if test -z "$ac_cv_prog_WINDRES"; then
48529   ac_ct_WINDRES=$WINDRES
48530   # Extract the first word of "windres", so it can be a program name with args.
48531 set dummy windres; ac_word=$2
48532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48534 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48535   echo $ECHO_N "(cached) $ECHO_C" >&6
48536 else
48537   if test -n "$ac_ct_WINDRES"; then
48538   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
48539 else
48540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48541 for as_dir in $PATH
48542 do
48543   IFS=$as_save_IFS
48544   test -z "$as_dir" && as_dir=.
48545   for ac_exec_ext in '' $ac_executable_extensions; do
48546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48547     ac_cv_prog_ac_ct_WINDRES="windres"
48548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48549     break 2
48550   fi
48551 done
48552 done
48553 IFS=$as_save_IFS
48554
48555 fi
48556 fi
48557 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48558 if test -n "$ac_ct_WINDRES"; then
48559   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48560 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
48561 else
48562   { echo "$as_me:$LINENO: result: no" >&5
48563 echo "${ECHO_T}no" >&6; }
48564 fi
48565
48566   if test "x$ac_ct_WINDRES" = x; then
48567     WINDRES=""
48568   else
48569     case $cross_compiling:$ac_tool_warned in
48570 yes:)
48571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48572 whose name does not start with the host triplet.  If you think this
48573 configuration is useful to you, please write to autoconf@gnu.org." >&5
48574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48575 whose name does not start with the host triplet.  If you think this
48576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48577 ac_tool_warned=yes ;;
48578 esac
48579     WINDRES=$ac_ct_WINDRES
48580   fi
48581 else
48582   WINDRES="$ac_cv_prog_WINDRES"
48583 fi
48584
48585          ;;
48586
48587       *-*-darwin* | powerpc-apple-macos* )
48588             # Extract the first word of "Rez", so it can be a program name with args.
48589 set dummy Rez; ac_word=$2
48590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48592 if test "${ac_cv_prog_REZ+set}" = set; then
48593   echo $ECHO_N "(cached) $ECHO_C" >&6
48594 else
48595   if test -n "$REZ"; then
48596   ac_cv_prog_REZ="$REZ" # Let the user override the test.
48597 else
48598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48599 for as_dir in $PATH
48600 do
48601   IFS=$as_save_IFS
48602   test -z "$as_dir" && as_dir=.
48603   for ac_exec_ext in '' $ac_executable_extensions; do
48604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48605     ac_cv_prog_REZ="Rez"
48606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48607     break 2
48608   fi
48609 done
48610 done
48611 IFS=$as_save_IFS
48612
48613   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
48614 fi
48615 fi
48616 REZ=$ac_cv_prog_REZ
48617 if test -n "$REZ"; then
48618   { echo "$as_me:$LINENO: result: $REZ" >&5
48619 echo "${ECHO_T}$REZ" >&6; }
48620 else
48621   { echo "$as_me:$LINENO: result: no" >&5
48622 echo "${ECHO_T}no" >&6; }
48623 fi
48624
48625
48626             # Extract the first word of "SetFile", so it can be a program name with args.
48627 set dummy SetFile; ac_word=$2
48628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48630 if test "${ac_cv_prog_SETFILE+set}" = set; then
48631   echo $ECHO_N "(cached) $ECHO_C" >&6
48632 else
48633   if test -n "$SETFILE"; then
48634   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48635 else
48636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48637 for as_dir in $PATH
48638 do
48639   IFS=$as_save_IFS
48640   test -z "$as_dir" && as_dir=.
48641   for ac_exec_ext in '' $ac_executable_extensions; do
48642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48643     ac_cv_prog_SETFILE="SetFile"
48644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48645     break 2
48646   fi
48647 done
48648 done
48649 IFS=$as_save_IFS
48650
48651   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48652 fi
48653 fi
48654 SETFILE=$ac_cv_prog_SETFILE
48655 if test -n "$SETFILE"; then
48656   { echo "$as_me:$LINENO: result: $SETFILE" >&5
48657 echo "${ECHO_T}$SETFILE" >&6; }
48658 else
48659   { echo "$as_me:$LINENO: result: no" >&5
48660 echo "${ECHO_T}no" >&6; }
48661 fi
48662
48663
48664         ;;
48665     esac
48666
48667
48668
48669
48670
48671
48672     BAKEFILE_BAKEFILE_M4_VERSION="0.2.3"
48673
48674
48675 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.3"
48676
48677
48678
48679     # Check whether --enable-precomp-headers was given.
48680 if test "${enable_precomp_headers+set}" = set; then
48681   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
48682 fi
48683
48684
48685     GCC_PCH=0
48686     ICC_PCH=0
48687     USE_PCH=0
48688     BK_MAKE_PCH=""
48689
48690     case ${BAKEFILE_HOST} in
48691         *-*-cygwin* )
48692                                                 bk_use_pch="no"
48693             ;;
48694     esac
48695
48696     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48697         if test "x$GCC" = "xyes"; then
48698                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48699 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
48700             cat >conftest.$ac_ext <<_ACEOF
48701 /* confdefs.h.  */
48702 _ACEOF
48703 cat confdefs.h >>conftest.$ac_ext
48704 cat >>conftest.$ac_ext <<_ACEOF
48705 /* end confdefs.h.  */
48706
48707 int
48708 main ()
48709 {
48710
48711                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
48712                         There is no PCH support
48713                     #endif
48714                     #if (__GNUC__ < 3)
48715                         There is no PCH support
48716                     #endif
48717                     #if (__GNUC__ == 3) && \
48718                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
48719                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48720                        ( defined(__INTEL_COMPILER) )
48721                         There is no PCH support
48722                     #endif
48723
48724   ;
48725   return 0;
48726 }
48727 _ACEOF
48728 rm -f conftest.$ac_objext
48729 if { (ac_try="$ac_compile"
48730 case "(($ac_try" in
48731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48732   *) ac_try_echo=$ac_try;;
48733 esac
48734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48735   (eval "$ac_compile") 2>conftest.er1
48736   ac_status=$?
48737   grep -v '^ *+' conftest.er1 >conftest.err
48738   rm -f conftest.er1
48739   cat conftest.err >&5
48740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48741   (exit $ac_status); } && {
48742          test -z "$ac_c_werror_flag" ||
48743          test ! -s conftest.err
48744        } && test -s conftest.$ac_objext; then
48745
48746                     { echo "$as_me:$LINENO: result: yes" >&5
48747 echo "${ECHO_T}yes" >&6; }
48748                     GCC_PCH=1
48749
48750 else
48751   echo "$as_me: failed program was:" >&5
48752 sed 's/^/| /' conftest.$ac_ext >&5
48753
48754
48755                     cat >conftest.$ac_ext <<_ACEOF
48756 /* confdefs.h.  */
48757 _ACEOF
48758 cat confdefs.h >>conftest.$ac_ext
48759 cat >>conftest.$ac_ext <<_ACEOF
48760 /* end confdefs.h.  */
48761
48762 int
48763 main ()
48764 {
48765
48766                             #if !defined(__INTEL_COMPILER) || \
48767                                 (__INTEL_COMPILER < 800)
48768                                 There is no PCH support
48769                             #endif
48770
48771   ;
48772   return 0;
48773 }
48774 _ACEOF
48775 rm -f conftest.$ac_objext
48776 if { (ac_try="$ac_compile"
48777 case "(($ac_try" in
48778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48779   *) ac_try_echo=$ac_try;;
48780 esac
48781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48782   (eval "$ac_compile") 2>conftest.er1
48783   ac_status=$?
48784   grep -v '^ *+' conftest.er1 >conftest.err
48785   rm -f conftest.er1
48786   cat conftest.err >&5
48787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48788   (exit $ac_status); } && {
48789          test -z "$ac_c_werror_flag" ||
48790          test ! -s conftest.err
48791        } && test -s conftest.$ac_objext; then
48792
48793                             { echo "$as_me:$LINENO: result: yes" >&5
48794 echo "${ECHO_T}yes" >&6; }
48795                             ICC_PCH=1
48796
48797 else
48798   echo "$as_me: failed program was:" >&5
48799 sed 's/^/| /' conftest.$ac_ext >&5
48800
48801
48802                             { echo "$as_me:$LINENO: result: no" >&5
48803 echo "${ECHO_T}no" >&6; }
48804
48805 fi
48806
48807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48808
48809 fi
48810
48811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48812             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48813                 USE_PCH=1
48814
48815 D='$'
48816 cat <<EOF >bk-make-pch
48817 #!/bin/sh
48818
48819 # This script is part of Bakefile (http://www.bakefile.org) autoconf
48820 # script. It is used to generated precompiled headers.
48821 #
48822 # Permission is given to use this file in any way.
48823
48824 outfile="${D}{1}"
48825 header="${D}{2}"
48826 shift
48827 shift
48828
48829 compiler=""
48830 headerfile=""
48831
48832 while test ${D}{#} -gt 0; do
48833     add_to_cmdline=1
48834     case "${D}{1}" in
48835         -I* )
48836             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48837             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48838                 headerfile="${D}{incdir}/${D}{header}"
48839             fi
48840         ;;
48841         -use-pch|-use_pch )
48842             shift
48843             add_to_cmdline=0
48844         ;;
48845     esac
48846     if test ${D}add_to_cmdline = 1 ; then
48847         compiler="${D}{compiler} ${D}{1}"
48848     fi
48849     shift
48850 done
48851
48852 if test "x${D}{headerfile}" = "x" ; then
48853     echo "error: can't find header ${D}{header} in include paths" >&2
48854 else
48855     if test -f ${D}{outfile} ; then
48856         rm -f ${D}{outfile}
48857     else
48858         mkdir -p \`dirname ${D}{outfile}\`
48859     fi
48860     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
48861     mkdir -p .deps
48862     if test "x${GCC_PCH}" = "x1" ; then
48863         # can do this because gcc is >= 3.4:
48864         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48865     elif test "x${ICC_PCH}" = "x1" ; then
48866         filename=pch_gen-${D}${D}
48867         file=${D}{filename}.c
48868         dfile=${D}{filename}.d
48869         cat > ${D}file <<EOT
48870 #include "${D}header"
48871 EOT
48872         # using -MF icc complains about differing command lines in creation/use
48873         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48874           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48875           rm -f ${D}file ${D}dfile ${D}{filename}.o
48876     fi
48877     exit ${D}{?}
48878 fi
48879 EOF
48880
48881                 chmod +x bk-make-pch
48882                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
48883             fi
48884         fi
48885     fi
48886
48887
48888
48889
48890
48891     COND_BUILD_DEBUG="#"
48892     if test "x$BUILD" = "xdebug" ; then
48893         COND_BUILD_DEBUG=""
48894     fi
48895
48896     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48897     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48898         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48899     fi
48900
48901     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48902     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48903         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48904     fi
48905
48906     COND_BUILD_DEBUG_UNICODE_0="#"
48907     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48908         COND_BUILD_DEBUG_UNICODE_0=""
48909     fi
48910
48911     COND_BUILD_DEBUG_UNICODE_1="#"
48912     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48913         COND_BUILD_DEBUG_UNICODE_1=""
48914     fi
48915
48916     COND_BUILD_RELEASE="#"
48917     if test "x$BUILD" = "xrelease" ; then
48918         COND_BUILD_RELEASE=""
48919     fi
48920
48921     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48922     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48923         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48924     fi
48925
48926     COND_BUILD_RELEASE_UNICODE_0="#"
48927     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48928         COND_BUILD_RELEASE_UNICODE_0=""
48929     fi
48930
48931     COND_BUILD_RELEASE_UNICODE_1="#"
48932     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48933         COND_BUILD_RELEASE_UNICODE_1=""
48934     fi
48935
48936     COND_DEBUG_FLAG_1="#"
48937     if test "x$DEBUG_FLAG" = "x1" ; then
48938         COND_DEBUG_FLAG_1=""
48939     fi
48940
48941     COND_DEBUG_INFO_0="#"
48942     if test "x$DEBUG_INFO" = "x0" ; then
48943         COND_DEBUG_INFO_0=""
48944     fi
48945
48946     COND_DEBUG_INFO_1="#"
48947     if test "x$DEBUG_INFO" = "x1" ; then
48948         COND_DEBUG_INFO_1=""
48949     fi
48950
48951     COND_DEPS_TRACKING_0="#"
48952     if test "x$DEPS_TRACKING" = "x0" ; then
48953         COND_DEPS_TRACKING_0=""
48954     fi
48955
48956     COND_DEPS_TRACKING_1="#"
48957     if test "x$DEPS_TRACKING" = "x1" ; then
48958         COND_DEPS_TRACKING_1=""
48959     fi
48960
48961     COND_GCC_PCH_1="#"
48962     if test "x$GCC_PCH" = "x1" ; then
48963         COND_GCC_PCH_1=""
48964     fi
48965
48966     COND_ICC_PCH_1="#"
48967     if test "x$ICC_PCH" = "x1" ; then
48968         COND_ICC_PCH_1=""
48969     fi
48970
48971     COND_MONOLITHIC_0="#"
48972     if test "x$MONOLITHIC" = "x0" ; then
48973         COND_MONOLITHIC_0=""
48974     fi
48975
48976     COND_MONOLITHIC_0_SHARED_0="#"
48977     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48978         COND_MONOLITHIC_0_SHARED_0=""
48979     fi
48980
48981     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48982     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48983         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48984     fi
48985
48986     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48987     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48988         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48989     fi
48990
48991     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48992     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48993         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48994     fi
48995
48996     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48997     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48998         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48999     fi
49000
49001     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49002     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49003         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49004     fi
49005
49006     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49007     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49008         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49009     fi
49010
49011     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49012     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49013         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49014     fi
49015
49016     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49017     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49018         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49019     fi
49020
49021     COND_MONOLITHIC_0_SHARED_1="#"
49022     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49023         COND_MONOLITHIC_0_SHARED_1=""
49024     fi
49025
49026     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49027     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49028         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49029     fi
49030
49031     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49032     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49033         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49034     fi
49035
49036     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49037     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49038         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49039     fi
49040
49041     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49042     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49043         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49044     fi
49045
49046     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49047     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49048         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49049     fi
49050
49051     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49052     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49053         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49054     fi
49055
49056     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49057     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49058         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49059     fi
49060
49061     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49062     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49063         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49064     fi
49065
49066     COND_MONOLITHIC_0_USE_AUI_1="#"
49067     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49068         COND_MONOLITHIC_0_USE_AUI_1=""
49069     fi
49070
49071     COND_MONOLITHIC_0_USE_GUI_1="#"
49072     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49073         COND_MONOLITHIC_0_USE_GUI_1=""
49074     fi
49075
49076     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49077     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49078         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49079     fi
49080
49081     COND_MONOLITHIC_0_USE_HTML_1="#"
49082     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49083         COND_MONOLITHIC_0_USE_HTML_1=""
49084     fi
49085
49086     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49087     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49088         COND_MONOLITHIC_0_USE_MEDIA_1=""
49089     fi
49090
49091     COND_MONOLITHIC_0_USE_QA_1="#"
49092     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49093         COND_MONOLITHIC_0_USE_QA_1=""
49094     fi
49095
49096     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49097     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49098         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49099     fi
49100
49101     COND_MONOLITHIC_0_USE_STC_1="#"
49102     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49103         COND_MONOLITHIC_0_USE_STC_1=""
49104     fi
49105
49106     COND_MONOLITHIC_0_USE_XRC_1="#"
49107     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49108         COND_MONOLITHIC_0_USE_XRC_1=""
49109     fi
49110
49111     COND_MONOLITHIC_1="#"
49112     if test "x$MONOLITHIC" = "x1" ; then
49113         COND_MONOLITHIC_1=""
49114     fi
49115
49116     COND_MONOLITHIC_1_SHARED_0="#"
49117     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49118         COND_MONOLITHIC_1_SHARED_0=""
49119     fi
49120
49121     COND_MONOLITHIC_1_SHARED_1="#"
49122     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49123         COND_MONOLITHIC_1_SHARED_1=""
49124     fi
49125
49126     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49127     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49128         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49129     fi
49130
49131     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49132     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49133         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49134     fi
49135
49136     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49137     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49138         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49139     fi
49140
49141     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49142     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49143         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49144     fi
49145
49146     COND_PLATFORM_MACOSX_1="#"
49147     if test "x$PLATFORM_MACOSX" = "x1" ; then
49148         COND_PLATFORM_MACOSX_1=""
49149     fi
49150
49151     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49152     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49153         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49154     fi
49155
49156     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49157     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49158         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49159     fi
49160
49161     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49162     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49163         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49164     fi
49165
49166     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49167     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49168         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49169     fi
49170
49171     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49172     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49173         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49174     fi
49175
49176     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49177     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49178         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49179     fi
49180
49181     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49182     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49183         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49184     fi
49185
49186     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49187     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49188         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49189     fi
49190
49191     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49192     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49193         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49194     fi
49195
49196     COND_PLATFORM_MACOS_1="#"
49197     if test "x$PLATFORM_MACOS" = "x1" ; then
49198         COND_PLATFORM_MACOS_1=""
49199     fi
49200
49201     COND_PLATFORM_MAC_0="#"
49202     if test "x$PLATFORM_MAC" = "x0" ; then
49203         COND_PLATFORM_MAC_0=""
49204     fi
49205
49206     COND_PLATFORM_MAC_1="#"
49207     if test "x$PLATFORM_MAC" = "x1" ; then
49208         COND_PLATFORM_MAC_1=""
49209     fi
49210
49211     COND_PLATFORM_MSDOS_0="#"
49212     if test "x$PLATFORM_MSDOS" = "x0" ; then
49213         COND_PLATFORM_MSDOS_0=""
49214     fi
49215
49216     COND_PLATFORM_MSDOS_1="#"
49217     if test "x$PLATFORM_MSDOS" = "x1" ; then
49218         COND_PLATFORM_MSDOS_1=""
49219     fi
49220
49221     COND_PLATFORM_OS2_1="#"
49222     if test "x$PLATFORM_OS2" = "x1" ; then
49223         COND_PLATFORM_OS2_1=""
49224     fi
49225
49226     COND_PLATFORM_UNIX_0="#"
49227     if test "x$PLATFORM_UNIX" = "x0" ; then
49228         COND_PLATFORM_UNIX_0=""
49229     fi
49230
49231     COND_PLATFORM_UNIX_1="#"
49232     if test "x$PLATFORM_UNIX" = "x1" ; then
49233         COND_PLATFORM_UNIX_1=""
49234     fi
49235
49236     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49237     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49238         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49239     fi
49240
49241     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49242     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49243         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49244     fi
49245
49246     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49247     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49248         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49249     fi
49250
49251     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49252     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49253         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49254     fi
49255
49256     COND_PLATFORM_WIN32_0="#"
49257     if test "x$PLATFORM_WIN32" = "x0" ; then
49258         COND_PLATFORM_WIN32_0=""
49259     fi
49260
49261     COND_PLATFORM_WIN32_1="#"
49262     if test "x$PLATFORM_WIN32" = "x1" ; then
49263         COND_PLATFORM_WIN32_1=""
49264     fi
49265
49266     COND_SHARED_0="#"
49267     if test "x$SHARED" = "x0" ; then
49268         COND_SHARED_0=""
49269     fi
49270
49271     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49272     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49273         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49274     fi
49275
49276     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49277     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49278         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49279     fi
49280
49281     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49282     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49283         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49284     fi
49285
49286     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49287     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49288         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49289     fi
49290
49291     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49292     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49293         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49294     fi
49295
49296     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49297     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49298         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49299     fi
49300
49301     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49302     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49303         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49304     fi
49305
49306     COND_SHARED_0_USE_STC_1="#"
49307     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49308         COND_SHARED_0_USE_STC_1=""
49309     fi
49310
49311     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49312     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49313         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49314     fi
49315
49316     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49317     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49318         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49319     fi
49320
49321     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49322     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49323         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49324     fi
49325
49326     COND_SHARED_1="#"
49327     if test "x$SHARED" = "x1" ; then
49328         COND_SHARED_1=""
49329     fi
49330
49331     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49332     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49333         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49334     fi
49335
49336     COND_TOOLKIT_="#"
49337     if test "x$TOOLKIT" = "x" ; then
49338         COND_TOOLKIT_=""
49339     fi
49340
49341     COND_TOOLKIT_COCOA="#"
49342     if test "x$TOOLKIT" = "xCOCOA" ; then
49343         COND_TOOLKIT_COCOA=""
49344     fi
49345
49346     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49347     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49348         COND_TOOLKIT_COCOA_USE_GUI_1=""
49349     fi
49350
49351     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49352     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49353         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49354     fi
49355
49356     COND_TOOLKIT_DFB="#"
49357     if test "x$TOOLKIT" = "xDFB" ; then
49358         COND_TOOLKIT_DFB=""
49359     fi
49360
49361     COND_TOOLKIT_DFB_USE_GUI_1="#"
49362     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49363         COND_TOOLKIT_DFB_USE_GUI_1=""
49364     fi
49365
49366     COND_TOOLKIT_GTK="#"
49367     if test "x$TOOLKIT" = "xGTK" ; then
49368         COND_TOOLKIT_GTK=""
49369     fi
49370
49371     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49372     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49373         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49374     fi
49375
49376     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49377     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49378         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49379     fi
49380
49381     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49382     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49383         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49384     fi
49385
49386     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49387     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49388         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49389     fi
49390
49391     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="#"
49392     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x0" ; then
49393         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0=""
49394     fi
49395
49396     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49397     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49398         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49399     fi
49400
49401     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49402     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49403         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49404     fi
49405
49406     COND_TOOLKIT_GTK_USE_GUI_1="#"
49407     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49408         COND_TOOLKIT_GTK_USE_GUI_1=""
49409     fi
49410
49411     COND_TOOLKIT_MAC="#"
49412     if test "x$TOOLKIT" = "xMAC" ; then
49413         COND_TOOLKIT_MAC=""
49414     fi
49415
49416     COND_TOOLKIT_MAC_USE_GUI_1="#"
49417     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49418         COND_TOOLKIT_MAC_USE_GUI_1=""
49419     fi
49420
49421     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49422     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49423         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49424     fi
49425
49426     COND_TOOLKIT_MGL="#"
49427     if test "x$TOOLKIT" = "xMGL" ; then
49428         COND_TOOLKIT_MGL=""
49429     fi
49430
49431     COND_TOOLKIT_MGL_USE_GUI_1="#"
49432     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49433         COND_TOOLKIT_MGL_USE_GUI_1=""
49434     fi
49435
49436     COND_TOOLKIT_MOTIF="#"
49437     if test "x$TOOLKIT" = "xMOTIF" ; then
49438         COND_TOOLKIT_MOTIF=""
49439     fi
49440
49441     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49442     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49443         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49444     fi
49445
49446     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49447     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49448         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49449     fi
49450
49451     COND_TOOLKIT_MSW="#"
49452     if test "x$TOOLKIT" = "xMSW" ; then
49453         COND_TOOLKIT_MSW=""
49454     fi
49455
49456     COND_TOOLKIT_MSW_USE_GUI_1="#"
49457     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49458         COND_TOOLKIT_MSW_USE_GUI_1=""
49459     fi
49460
49461     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49462     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49463         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49464     fi
49465
49466     COND_TOOLKIT_MSW_WXUNIV_0="#"
49467     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49468         COND_TOOLKIT_MSW_WXUNIV_0=""
49469     fi
49470
49471     COND_TOOLKIT_PM="#"
49472     if test "x$TOOLKIT" = "xPM" ; then
49473         COND_TOOLKIT_PM=""
49474     fi
49475
49476     COND_TOOLKIT_PM_USE_GUI_1="#"
49477     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49478         COND_TOOLKIT_PM_USE_GUI_1=""
49479     fi
49480
49481     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49482     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49483         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49484     fi
49485
49486     COND_TOOLKIT_WINCE="#"
49487     if test "x$TOOLKIT" = "xWINCE" ; then
49488         COND_TOOLKIT_WINCE=""
49489     fi
49490
49491     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49492     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49493         COND_TOOLKIT_WINCE_USE_GUI_1=""
49494     fi
49495
49496     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49497     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49498         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49499     fi
49500
49501     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49502     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49503         COND_TOOLKIT_WINCE_WXUNIV_0=""
49504     fi
49505
49506     COND_TOOLKIT_X11="#"
49507     if test "x$TOOLKIT" = "xX11" ; then
49508         COND_TOOLKIT_X11=""
49509     fi
49510
49511     COND_TOOLKIT_X11_USE_GUI_1="#"
49512     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49513         COND_TOOLKIT_X11_USE_GUI_1=""
49514     fi
49515
49516     COND_UNICODE_1="#"
49517     if test "x$UNICODE" = "x1" ; then
49518         COND_UNICODE_1=""
49519     fi
49520
49521     COND_USE_EXCEPTIONS_0="#"
49522     if test "x$USE_EXCEPTIONS" = "x0" ; then
49523         COND_USE_EXCEPTIONS_0=""
49524     fi
49525
49526     COND_USE_EXCEPTIONS_1="#"
49527     if test "x$USE_EXCEPTIONS" = "x1" ; then
49528         COND_USE_EXCEPTIONS_1=""
49529     fi
49530
49531     COND_USE_GUI_0="#"
49532     if test "x$USE_GUI" = "x0" ; then
49533         COND_USE_GUI_0=""
49534     fi
49535
49536     COND_USE_GUI_1="#"
49537     if test "x$USE_GUI" = "x1" ; then
49538         COND_USE_GUI_1=""
49539     fi
49540
49541     COND_USE_GUI_1_USE_OPENGL_1="#"
49542     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49543         COND_USE_GUI_1_USE_OPENGL_1=""
49544     fi
49545
49546     COND_USE_GUI_1_WXUNIV_0="#"
49547     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49548         COND_USE_GUI_1_WXUNIV_0=""
49549     fi
49550
49551     COND_USE_GUI_1_WXUNIV_1="#"
49552     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49553         COND_USE_GUI_1_WXUNIV_1=""
49554     fi
49555
49556     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49557     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49558         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49559     fi
49560
49561     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49562     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49563         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49564     fi
49565
49566     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49567     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49568         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49569     fi
49570
49571     COND_USE_OPENGL_1="#"
49572     if test "x$USE_OPENGL" = "x1" ; then
49573         COND_USE_OPENGL_1=""
49574     fi
49575
49576     COND_USE_PCH_1="#"
49577     if test "x$USE_PCH" = "x1" ; then
49578         COND_USE_PCH_1=""
49579     fi
49580
49581     COND_USE_PLUGINS_0="#"
49582     if test "x$USE_PLUGINS" = "x0" ; then
49583         COND_USE_PLUGINS_0=""
49584     fi
49585
49586     COND_USE_RTTI_0="#"
49587     if test "x$USE_RTTI" = "x0" ; then
49588         COND_USE_RTTI_0=""
49589     fi
49590
49591     COND_USE_RTTI_1="#"
49592     if test "x$USE_RTTI" = "x1" ; then
49593         COND_USE_RTTI_1=""
49594     fi
49595
49596     COND_USE_SOSYMLINKS_1="#"
49597     if test "x$USE_SOSYMLINKS" = "x1" ; then
49598         COND_USE_SOSYMLINKS_1=""
49599     fi
49600
49601     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49602     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49603         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49604     fi
49605
49606     COND_USE_SOVERLINUX_1="#"
49607     if test "x$USE_SOVERLINUX" = "x1" ; then
49608         COND_USE_SOVERLINUX_1=""
49609     fi
49610
49611     COND_USE_SOVERSION_0="#"
49612     if test "x$USE_SOVERSION" = "x0" ; then
49613         COND_USE_SOVERSION_0=""
49614     fi
49615
49616     COND_USE_SOVERSOLARIS_1="#"
49617     if test "x$USE_SOVERSOLARIS" = "x1" ; then
49618         COND_USE_SOVERSOLARIS_1=""
49619     fi
49620
49621     COND_USE_STC_1="#"
49622     if test "x$USE_STC" = "x1" ; then
49623         COND_USE_STC_1=""
49624     fi
49625
49626     COND_USE_THREADS_0="#"
49627     if test "x$USE_THREADS" = "x0" ; then
49628         COND_USE_THREADS_0=""
49629     fi
49630
49631     COND_USE_THREADS_1="#"
49632     if test "x$USE_THREADS" = "x1" ; then
49633         COND_USE_THREADS_1=""
49634     fi
49635
49636     COND_USE_XRC_1="#"
49637     if test "x$USE_XRC" = "x1" ; then
49638         COND_USE_XRC_1=""
49639     fi
49640
49641     COND_WINDOWS_IMPLIB_1="#"
49642     if test "x$WINDOWS_IMPLIB" = "x1" ; then
49643         COND_WINDOWS_IMPLIB_1=""
49644     fi
49645
49646     COND_WITH_PLUGIN_SDL_1="#"
49647     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49648         COND_WITH_PLUGIN_SDL_1=""
49649     fi
49650
49651     COND_WXUNIV_0="#"
49652     if test "x$WXUNIV" = "x0" ; then
49653         COND_WXUNIV_0=""
49654     fi
49655
49656     COND_WXUNIV_1="#"
49657     if test "x$WXUNIV" = "x1" ; then
49658         COND_WXUNIV_1=""
49659     fi
49660
49661     COND_WXUSE_EXPAT_BUILTIN="#"
49662     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49663         COND_WXUSE_EXPAT_BUILTIN=""
49664     fi
49665
49666     COND_WXUSE_LIBJPEG_BUILTIN="#"
49667     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49668         COND_WXUSE_LIBJPEG_BUILTIN=""
49669     fi
49670
49671     COND_WXUSE_LIBPNG_BUILTIN="#"
49672     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49673         COND_WXUSE_LIBPNG_BUILTIN=""
49674     fi
49675
49676     COND_WXUSE_LIBTIFF_BUILTIN="#"
49677     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49678         COND_WXUSE_LIBTIFF_BUILTIN=""
49679     fi
49680
49681     COND_WXUSE_REGEX_BUILTIN="#"
49682     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49683         COND_WXUSE_REGEX_BUILTIN=""
49684     fi
49685
49686     COND_WXUSE_ZLIB_BUILTIN="#"
49687     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49688         COND_WXUSE_ZLIB_BUILTIN=""
49689     fi
49690
49691
49692
49693     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49694         { { 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
49695 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;}
49696    { (exit 1); exit 1; }; }
49697     fi
49698
49699     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49700         { { 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
49701 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;}
49702    { (exit 1); exit 1; }; }
49703     fi
49704
49705
49706 case ${INSTALL} in
49707   /* ) # Absolute
49708      ;;
49709   ?:* ) # Drive letter, considered as absolute.
49710      ;;
49711   *)
49712      INSTALL=`pwd`/${INSTALL} ;;
49713 esac
49714
49715 if test "$wxUSE_GUI" = "yes"; then
49716
49717 if test "$wxUSE_MSW" = 1 ; then
49718     if test "x$WINDRES" = "x"; then
49719         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
49720 echo "$as_me: error: Required windres program not found" >&2;}
49721    { (exit 1); exit 1; }; }
49722     fi
49723
49724     RESCOMP="$WINDRES"
49725 fi
49726
49727 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
49728             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
49729     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
49730
49731         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
49732
49733     # Extract the first word of "DeRez", so it can be a program name with args.
49734 set dummy DeRez; ac_word=$2
49735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49737 if test "${ac_cv_prog_DEREZ+set}" = set; then
49738   echo $ECHO_N "(cached) $ECHO_C" >&6
49739 else
49740   if test -n "$DEREZ"; then
49741   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
49742 else
49743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49744 for as_dir in $PATH
49745 do
49746   IFS=$as_save_IFS
49747   test -z "$as_dir" && as_dir=.
49748   for ac_exec_ext in '' $ac_executable_extensions; do
49749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49750     ac_cv_prog_DEREZ="DeRez"
49751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49752     break 2
49753   fi
49754 done
49755 done
49756 IFS=$as_save_IFS
49757
49758   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
49759 fi
49760 fi
49761 DEREZ=$ac_cv_prog_DEREZ
49762 if test -n "$DEREZ"; then
49763   { echo "$as_me:$LINENO: result: $DEREZ" >&5
49764 echo "${ECHO_T}$DEREZ" >&6; }
49765 else
49766   { echo "$as_me:$LINENO: result: no" >&5
49767 echo "${ECHO_T}no" >&6; }
49768 fi
49769
49770
49771
49772     MACSETFILE="\$(SETFILE)"
49773
49774             if test "$wxUSE_MAC" = 1; then
49775         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
49776         RESCOMP="$REZ"
49777         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
49778     else
49779         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
49780         RESCOMP="cat /dev/null \| $REZ"
49781         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
49782     fi
49783
49784 else
49785         MACSETFILE="@true"
49786
49787     if test "$wxUSE_PM" = 1; then
49788         RESCOMP="emxbind"
49789         WXCONFIG_RESFLAGS="-ep"
49790
49791                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
49792     else
49793         POSTLINK_COMMAND="@true"
49794     fi
49795 fi
49796
49797 fi
49798
49799
49800 if test $GCC_PCH = 1
49801 then
49802     if test "$wx_cv_gcc_pch_bug" = yes; then
49803         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
49804 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
49805         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
49806 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
49807         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
49808 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
49809     fi
49810
49811     # Our WX_PRECOMP flag does not make sense for any language except C++ because
49812     # the headers that benefit from precompilation are mostly C++ headers.
49813     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
49814     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
49815     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
49816 fi
49817
49818
49819 if test "$wxUSE_MAC" = 1 ; then
49820     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
49821         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49822         mv temp bk-deps
49823         chmod +x bk-deps
49824     fi
49825 fi
49826
49827 if test "$wxUSE_SHARED" = "yes"; then
49828                 case "${host}" in
49829       *-pc-os2_emx | *-pc-os2-emx )
49830         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49831         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49832         cp -p ${srcdir}/src/os2/dllnames.sh .
49833         cp -p ${srcdir}/src/os2/dllar.sh .
49834       ;;
49835     esac
49836 fi
49837 if test "$wxUSE_OMF" = "yes"; then
49838     case "${host}" in
49839       *-pc-os2_emx | *-pc-os2-emx )
49840         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49841         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49842         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49843       ;;
49844     esac
49845 fi
49846
49847 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
49848
49849
49850 case "${host}" in
49851     *-*-solaris2* )
49852                         if test "$GCC" = yes; then
49853             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
49854             LIBS=`echo $LIBS | sed 's/-mt//'`
49855             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
49856         fi
49857         ;;
49858
49859     *-*-linux* )
49860                         if test "x$SUNCXX" = xyes; then
49861             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
49862             LIBS=`echo $LIBS | sed 's/-pthread//'`
49863             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
49864         fi
49865         ;;
49866 esac
49867
49868 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
49869 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
49870
49871 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49872
49873
49874
49875
49876
49877
49878
49879
49880
49881
49882
49883
49884
49885
49886
49887
49888
49889
49890
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911
49912
49913
49914
49915
49916
49917
49918
49919
49920
49921
49922
49923
49924
49925
49926
49927
49928
49929
49930
49931
49932 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49933 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49934 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49935 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49936   echo $ECHO_N "(cached) $ECHO_C" >&6
49937 else
49938   cat >conftest.make <<\_ACEOF
49939 SHELL = /bin/sh
49940 all:
49941         @echo '@@@%%%=$(MAKE)=@@@%%%'
49942 _ACEOF
49943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49944 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49945   *@@@%%%=?*=@@@%%%*)
49946     eval ac_cv_prog_make_${ac_make}_set=yes;;
49947   *)
49948     eval ac_cv_prog_make_${ac_make}_set=no;;
49949 esac
49950 rm -f conftest.make
49951 fi
49952 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49953   { echo "$as_me:$LINENO: result: yes" >&5
49954 echo "${ECHO_T}yes" >&6; }
49955   SET_MAKE=
49956 else
49957   { echo "$as_me:$LINENO: result: no" >&5
49958 echo "${ECHO_T}no" >&6; }
49959   SET_MAKE="MAKE=${MAKE-make}"
49960 fi
49961
49962
49963
49964 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49965
49966
49967 if test "$USE_WIN32" = 1; then
49968     ac_config_commands="$ac_config_commands
49969             rcdefs.h
49970         "
49971
49972 fi
49973
49974 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
49975
49976
49977 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
49978
49979
49980 if test "$wx_cv_version_script" = "yes"; then
49981     ac_config_files="$ac_config_files version-script"
49982
49983 fi
49984 ac_config_files="$ac_config_files Makefile"
49985
49986
49987 ac_config_commands="$ac_config_commands wx-config"
49988
49989
49990
49991 if test "$wxWITH_SUBDIRS" != "no"; then
49992 if test "$wxUSE_GUI" = "yes"; then
49993     SUBDIRS="samples demos utils"
49994 else
49995             SUBDIRS="samples utils"
49996 fi
49997
49998
49999
50000 # Check whether --with-cppunit-prefix was given.
50001 if test "${with_cppunit_prefix+set}" = set; then
50002   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50003 else
50004   cppunit_config_prefix=""
50005 fi
50006
50007
50008 # Check whether --with-cppunit-exec-prefix was given.
50009 if test "${with_cppunit_exec_prefix+set}" = set; then
50010   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50011 else
50012   cppunit_config_exec_prefix=""
50013 fi
50014
50015
50016   if test x$cppunit_config_exec_prefix != x ; then
50017      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50018      if test x${CPPUNIT_CONFIG+set} != xset ; then
50019         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50020      fi
50021   fi
50022   if test x$cppunit_config_prefix != x ; then
50023      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50024      if test x${CPPUNIT_CONFIG+set} != xset ; then
50025         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50026      fi
50027   fi
50028
50029   # Extract the first word of "cppunit-config", so it can be a program name with args.
50030 set dummy cppunit-config; ac_word=$2
50031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50033 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50034   echo $ECHO_N "(cached) $ECHO_C" >&6
50035 else
50036   case $CPPUNIT_CONFIG in
50037   [\\/]* | ?:[\\/]*)
50038   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50039   ;;
50040   *)
50041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50042 for as_dir in $PATH
50043 do
50044   IFS=$as_save_IFS
50045   test -z "$as_dir" && as_dir=.
50046   for ac_exec_ext in '' $ac_executable_extensions; do
50047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50048     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50050     break 2
50051   fi
50052 done
50053 done
50054 IFS=$as_save_IFS
50055
50056   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50057   ;;
50058 esac
50059 fi
50060 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50061 if test -n "$CPPUNIT_CONFIG"; then
50062   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50063 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50064 else
50065   { echo "$as_me:$LINENO: result: no" >&5
50066 echo "${ECHO_T}no" >&6; }
50067 fi
50068
50069
50070   cppunit_version_min=1.8.0
50071
50072   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50073 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50074   no_cppunit=""
50075   if test "$CPPUNIT_CONFIG" = "no" ; then
50076     { echo "$as_me:$LINENO: result: no" >&5
50077 echo "${ECHO_T}no" >&6; }
50078     no_cppunit=yes
50079   else
50080     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50081     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50082     cppunit_version=`$CPPUNIT_CONFIG --version`
50083
50084     cppunit_major_version=`echo $cppunit_version | \
50085            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50086     cppunit_minor_version=`echo $cppunit_version | \
50087            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50088     cppunit_micro_version=`echo $cppunit_version | \
50089            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50090
50091     cppunit_major_min=`echo $cppunit_version_min | \
50092            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50093     cppunit_minor_min=`echo $cppunit_version_min | \
50094            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50095     cppunit_micro_min=`echo $cppunit_version_min | \
50096            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50097
50098     cppunit_version_proper=`expr \
50099         $cppunit_major_version \> $cppunit_major_min \| \
50100         $cppunit_major_version \= $cppunit_major_min \& \
50101         $cppunit_minor_version \> $cppunit_minor_min \| \
50102         $cppunit_major_version \= $cppunit_major_min \& \
50103         $cppunit_minor_version \= $cppunit_minor_min \& \
50104         $cppunit_micro_version \>= $cppunit_micro_min `
50105
50106     if test "$cppunit_version_proper" = "1" ; then
50107       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50108 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50109     else
50110       { echo "$as_me:$LINENO: result: no" >&5
50111 echo "${ECHO_T}no" >&6; }
50112       no_cppunit=yes
50113     fi
50114   fi
50115
50116   if test "x$no_cppunit" = x ; then
50117      SUBDIRS="$SUBDIRS tests"
50118   else
50119      CPPUNIT_CFLAGS=""
50120      CPPUNIT_LIBS=""
50121      :
50122   fi
50123
50124
50125
50126
50127
50128 for subdir in $SUBDIRS; do
50129     if test -d ${srcdir}/${subdir} ; then
50130         if test "$wxUSE_GUI" = "yes"; then
50131             if test ${subdir} = "samples"; then
50132                                                 makefiles="samples/Makefile.in $makefiles"
50133                 for sample in $SAMPLES_SUBDIRS; do
50134                     if test -d $srcdir/samples/$sample; then
50135                         makefiles="samples/$sample/Makefile.in $makefiles"
50136                     fi
50137                 done
50138             else
50139                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50140                 eval "disabled=\$$disabled_var"
50141                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50142                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50143             fi
50144         else
50145                                                 if test ${subdir} = "samples"; then
50146                                                 makefiles="samples/Makefile.in $makefiles"
50147                 for sample in `echo $SAMPLES_SUBDIRS`; do
50148                     if test -d $srcdir/samples/$sample; then
50149                         makefiles="samples/$sample/Makefile.in $makefiles"
50150                     fi
50151                 done
50152             elif test ${subdir} = "utils"; then
50153                 makefiles=""
50154                 for util in HelpGen tex2rtf ; do
50155                     if test -d $srcdir/utils/$util ; then
50156                         makefiles="utils/$util/Makefile.in \
50157                                    utils/$util/src/Makefile.in \
50158                                    $makefiles"
50159                     fi
50160                 done
50161             else
50162                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50163             fi
50164         fi
50165
50166         for mkin in $makefiles ; do
50167             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50168             ac_config_files="$ac_config_files $mk"
50169
50170         done
50171     fi
50172 done
50173 fi
50174 cat >confcache <<\_ACEOF
50175 # This file is a shell script that caches the results of configure
50176 # tests run on this system so they can be shared between configure
50177 # scripts and configure runs, see configure's option --config-cache.
50178 # It is not useful on other systems.  If it contains results you don't
50179 # want to keep, you may remove or edit it.
50180 #
50181 # config.status only pays attention to the cache file if you give it
50182 # the --recheck option to rerun configure.
50183 #
50184 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50185 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50186 # following values.
50187
50188 _ACEOF
50189
50190 # The following way of writing the cache mishandles newlines in values,
50191 # but we know of no workaround that is simple, portable, and efficient.
50192 # So, we kill variables containing newlines.
50193 # Ultrix sh set writes to stderr and can't be redirected directly,
50194 # and sets the high bit in the cache file unless we assign to the vars.
50195 (
50196   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50197     eval ac_val=\$$ac_var
50198     case $ac_val in #(
50199     *${as_nl}*)
50200       case $ac_var in #(
50201       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50202 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50203       esac
50204       case $ac_var in #(
50205       _ | IFS | as_nl) ;; #(
50206       *) $as_unset $ac_var ;;
50207       esac ;;
50208     esac
50209   done
50210
50211   (set) 2>&1 |
50212     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50213     *${as_nl}ac_space=\ *)
50214       # `set' does not quote correctly, so add quotes (double-quote
50215       # substitution turns \\\\ into \\, and sed turns \\ into \).
50216       sed -n \
50217         "s/'/'\\\\''/g;
50218           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50219       ;; #(
50220     *)
50221       # `set' quotes correctly as required by POSIX, so do not add quotes.
50222       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50223       ;;
50224     esac |
50225     sort
50226 ) |
50227   sed '
50228      /^ac_cv_env_/b end
50229      t clear
50230      :clear
50231      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50232      t end
50233      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50234      :end' >>confcache
50235 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50236   if test -w "$cache_file"; then
50237     test "x$cache_file" != "x/dev/null" &&
50238       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50239 echo "$as_me: updating cache $cache_file" >&6;}
50240     cat confcache >$cache_file
50241   else
50242     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50243 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50244   fi
50245 fi
50246 rm -f confcache
50247
50248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50249 # Let make expand exec_prefix.
50250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50251
50252 DEFS=-DHAVE_CONFIG_H
50253
50254 ac_libobjs=
50255 ac_ltlibobjs=
50256 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50257   # 1. Remove the extension, and $U if already installed.
50258   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50259   ac_i=`echo "$ac_i" | sed "$ac_script"`
50260   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50261   #    will be set to the directory where LIBOBJS objects are built.
50262   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50263   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50264 done
50265 LIBOBJS=$ac_libobjs
50266
50267 LTLIBOBJS=$ac_ltlibobjs
50268
50269
50270
50271 : ${CONFIG_STATUS=./config.status}
50272 ac_clean_files_save=$ac_clean_files
50273 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50274 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50275 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50276 cat >$CONFIG_STATUS <<_ACEOF
50277 #! $SHELL
50278 # Generated by $as_me.
50279 # Run this file to recreate the current configuration.
50280 # Compiler output produced by configure, useful for debugging
50281 # configure, is in config.log if it exists.
50282
50283 debug=false
50284 ac_cs_recheck=false
50285 ac_cs_silent=false
50286 SHELL=\${CONFIG_SHELL-$SHELL}
50287 _ACEOF
50288
50289 cat >>$CONFIG_STATUS <<\_ACEOF
50290 ## --------------------- ##
50291 ## M4sh Initialization.  ##
50292 ## --------------------- ##
50293
50294 # Be more Bourne compatible
50295 DUALCASE=1; export DUALCASE # for MKS sh
50296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50297   emulate sh
50298   NULLCMD=:
50299   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50300   # is contrary to our usage.  Disable this feature.
50301   alias -g '${1+"$@"}'='"$@"'
50302   setopt NO_GLOB_SUBST
50303 else
50304   case `(set -o) 2>/dev/null` in
50305   *posix*) set -o posix ;;
50306 esac
50307
50308 fi
50309
50310
50311
50312
50313 # PATH needs CR
50314 # Avoid depending upon Character Ranges.
50315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50318 as_cr_digits='0123456789'
50319 as_cr_alnum=$as_cr_Letters$as_cr_digits
50320
50321 # The user is always right.
50322 if test "${PATH_SEPARATOR+set}" != set; then
50323   echo "#! /bin/sh" >conf$$.sh
50324   echo  "exit 0"   >>conf$$.sh
50325   chmod +x conf$$.sh
50326   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50327     PATH_SEPARATOR=';'
50328   else
50329     PATH_SEPARATOR=:
50330   fi
50331   rm -f conf$$.sh
50332 fi
50333
50334 # Support unset when possible.
50335 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50336   as_unset=unset
50337 else
50338   as_unset=false
50339 fi
50340
50341
50342 # IFS
50343 # We need space, tab and new line, in precisely that order.  Quoting is
50344 # there to prevent editors from complaining about space-tab.
50345 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50346 # splitting by setting IFS to empty value.)
50347 as_nl='
50348 '
50349 IFS=" ""        $as_nl"
50350
50351 # Find who we are.  Look in the path if we contain no directory separator.
50352 case $0 in
50353   *[\\/]* ) as_myself=$0 ;;
50354   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50355 for as_dir in $PATH
50356 do
50357   IFS=$as_save_IFS
50358   test -z "$as_dir" && as_dir=.
50359   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50360 done
50361 IFS=$as_save_IFS
50362
50363      ;;
50364 esac
50365 # We did not find ourselves, most probably we were run as `sh COMMAND'
50366 # in which case we are not to be found in the path.
50367 if test "x$as_myself" = x; then
50368   as_myself=$0
50369 fi
50370 if test ! -f "$as_myself"; then
50371   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50372   { (exit 1); exit 1; }
50373 fi
50374
50375 # Work around bugs in pre-3.0 UWIN ksh.
50376 for as_var in ENV MAIL MAILPATH
50377 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50378 done
50379 PS1='$ '
50380 PS2='> '
50381 PS4='+ '
50382
50383 # NLS nuisances.
50384 for as_var in \
50385   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50386   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50387   LC_TELEPHONE LC_TIME
50388 do
50389   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50390     eval $as_var=C; export $as_var
50391   else
50392     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50393   fi
50394 done
50395
50396 # Required to use basename.
50397 if expr a : '\(a\)' >/dev/null 2>&1 &&
50398    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50399   as_expr=expr
50400 else
50401   as_expr=false
50402 fi
50403
50404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50405   as_basename=basename
50406 else
50407   as_basename=false
50408 fi
50409
50410
50411 # Name of the executable.
50412 as_me=`$as_basename -- "$0" ||
50413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50414          X"$0" : 'X\(//\)$' \| \
50415          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50416 echo X/"$0" |
50417     sed '/^.*\/\([^/][^/]*\)\/*$/{
50418             s//\1/
50419             q
50420           }
50421           /^X\/\(\/\/\)$/{
50422             s//\1/
50423             q
50424           }
50425           /^X\/\(\/\).*/{
50426             s//\1/
50427             q
50428           }
50429           s/.*/./; q'`
50430
50431 # CDPATH.
50432 $as_unset CDPATH
50433
50434
50435
50436   as_lineno_1=$LINENO
50437   as_lineno_2=$LINENO
50438   test "x$as_lineno_1" != "x$as_lineno_2" &&
50439   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50440
50441   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50442   # uniformly replaced by the line number.  The first 'sed' inserts a
50443   # line-number line after each line using $LINENO; the second 'sed'
50444   # does the real work.  The second script uses 'N' to pair each
50445   # line-number line with the line containing $LINENO, and appends
50446   # trailing '-' during substitution so that $LINENO is not a special
50447   # case at line end.
50448   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50449   # scripts with optimization help from Paolo Bonzini.  Blame Lee
50450   # E. McMahon (1931-1989) for sed's syntax.  :-)
50451   sed -n '
50452     p
50453     /[$]LINENO/=
50454   ' <$as_myself |
50455     sed '
50456       s/[$]LINENO.*/&-/
50457       t lineno
50458       b
50459       :lineno
50460       N
50461       :loop
50462       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50463       t loop
50464       s/-\n.*//
50465     ' >$as_me.lineno &&
50466   chmod +x "$as_me.lineno" ||
50467     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50468    { (exit 1); exit 1; }; }
50469
50470   # Don't try to exec as it changes $[0], causing all sort of problems
50471   # (the dirname of $[0] is not the place where we might find the
50472   # original and so on.  Autoconf is especially sensitive to this).
50473   . "./$as_me.lineno"
50474   # Exit status is that of the last command.
50475   exit
50476 }
50477
50478
50479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50480   as_dirname=dirname
50481 else
50482   as_dirname=false
50483 fi
50484
50485 ECHO_C= ECHO_N= ECHO_T=
50486 case `echo -n x` in
50487 -n*)
50488   case `echo 'x\c'` in
50489   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
50490   *)   ECHO_C='\c';;
50491   esac;;
50492 *)
50493   ECHO_N='-n';;
50494 esac
50495
50496 if expr a : '\(a\)' >/dev/null 2>&1 &&
50497    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50498   as_expr=expr
50499 else
50500   as_expr=false
50501 fi
50502
50503 rm -f conf$$ conf$$.exe conf$$.file
50504 if test -d conf$$.dir; then
50505   rm -f conf$$.dir/conf$$.file
50506 else
50507   rm -f conf$$.dir
50508   mkdir conf$$.dir
50509 fi
50510 echo >conf$$.file
50511 if ln -s conf$$.file conf$$ 2>/dev/null; then
50512   as_ln_s='ln -s'
50513   # ... but there are two gotchas:
50514   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50515   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50516   # In both cases, we have to default to `cp -p'.
50517   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50518     as_ln_s='cp -p'
50519 elif ln conf$$.file conf$$ 2>/dev/null; then
50520   as_ln_s=ln
50521 else
50522   as_ln_s='cp -p'
50523 fi
50524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50525 rmdir conf$$.dir 2>/dev/null
50526
50527 if mkdir -p . 2>/dev/null; then
50528   as_mkdir_p=:
50529 else
50530   test -d ./-p && rmdir ./-p
50531   as_mkdir_p=false
50532 fi
50533
50534 if test -x / >/dev/null 2>&1; then
50535   as_test_x='test -x'
50536 else
50537   if ls -dL / >/dev/null 2>&1; then
50538     as_ls_L_option=L
50539   else
50540     as_ls_L_option=
50541   fi
50542   as_test_x='
50543     eval sh -c '\''
50544       if test -d "$1"; then
50545         test -d "$1/.";
50546       else
50547         case $1 in
50548         -*)set "./$1";;
50549         esac;
50550         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50551         ???[sx]*):;;*)false;;esac;fi
50552     '\'' sh
50553   '
50554 fi
50555 as_executable_p=$as_test_x
50556
50557 # Sed expression to map a string onto a valid CPP name.
50558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50559
50560 # Sed expression to map a string onto a valid variable name.
50561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50562
50563
50564 exec 6>&1
50565
50566 # Save the log message, to keep $[0] and so on meaningful, and to
50567 # report actual input values of CONFIG_FILES etc. instead of their
50568 # values after options handling.
50569 ac_log="
50570 This file was extended by wxWidgets $as_me 2.9.0, which was
50571 generated by GNU Autoconf 2.61.  Invocation command line was
50572
50573   CONFIG_FILES    = $CONFIG_FILES
50574   CONFIG_HEADERS  = $CONFIG_HEADERS
50575   CONFIG_LINKS    = $CONFIG_LINKS
50576   CONFIG_COMMANDS = $CONFIG_COMMANDS
50577   $ $0 $@
50578
50579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50580 "
50581
50582 _ACEOF
50583
50584 cat >>$CONFIG_STATUS <<_ACEOF
50585 # Files that config.status was made for.
50586 config_files="$ac_config_files"
50587 config_headers="$ac_config_headers"
50588 config_commands="$ac_config_commands"
50589
50590 _ACEOF
50591
50592 cat >>$CONFIG_STATUS <<\_ACEOF
50593 ac_cs_usage="\
50594 \`$as_me' instantiates files from templates according to the
50595 current configuration.
50596
50597 Usage: $0 [OPTIONS] [FILE]...
50598
50599   -h, --help       print this help, then exit
50600   -V, --version    print version number and configuration settings, then exit
50601   -q, --quiet      do not print progress messages
50602   -d, --debug      don't remove temporary files
50603       --recheck    update $as_me by reconfiguring in the same conditions
50604   --file=FILE[:TEMPLATE]
50605                    instantiate the configuration file FILE
50606   --header=FILE[:TEMPLATE]
50607                    instantiate the configuration header FILE
50608
50609 Configuration files:
50610 $config_files
50611
50612 Configuration headers:
50613 $config_headers
50614
50615 Configuration commands:
50616 $config_commands
50617
50618 Report bugs to <bug-autoconf@gnu.org>."
50619
50620 _ACEOF
50621 cat >>$CONFIG_STATUS <<_ACEOF
50622 ac_cs_version="\\
50623 wxWidgets config.status 2.9.0
50624 configured by $0, generated by GNU Autoconf 2.61,
50625   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50626
50627 Copyright (C) 2006 Free Software Foundation, Inc.
50628 This config.status script is free software; the Free Software Foundation
50629 gives unlimited permission to copy, distribute and modify it."
50630
50631 ac_pwd='$ac_pwd'
50632 srcdir='$srcdir'
50633 INSTALL='$INSTALL'
50634 _ACEOF
50635
50636 cat >>$CONFIG_STATUS <<\_ACEOF
50637 # If no file are specified by the user, then we need to provide default
50638 # value.  By we need to know if files were specified by the user.
50639 ac_need_defaults=:
50640 while test $# != 0
50641 do
50642   case $1 in
50643   --*=*)
50644     ac_option=`expr "X$1" : 'X\([^=]*\)='`
50645     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50646     ac_shift=:
50647     ;;
50648   *)
50649     ac_option=$1
50650     ac_optarg=$2
50651     ac_shift=shift
50652     ;;
50653   esac
50654
50655   case $ac_option in
50656   # Handling of the options.
50657   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50658     ac_cs_recheck=: ;;
50659   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50660     echo "$ac_cs_version"; exit ;;
50661   --debug | --debu | --deb | --de | --d | -d )
50662     debug=: ;;
50663   --file | --fil | --fi | --f )
50664     $ac_shift
50665     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50666     ac_need_defaults=false;;
50667   --header | --heade | --head | --hea )
50668     $ac_shift
50669     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50670     ac_need_defaults=false;;
50671   --he | --h)
50672     # Conflict between --help and --header
50673     { echo "$as_me: error: ambiguous option: $1
50674 Try \`$0 --help' for more information." >&2
50675    { (exit 1); exit 1; }; };;
50676   --help | --hel | -h )
50677     echo "$ac_cs_usage"; exit ;;
50678   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50679   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50680     ac_cs_silent=: ;;
50681
50682   # This is an error.
50683   -*) { echo "$as_me: error: unrecognized option: $1
50684 Try \`$0 --help' for more information." >&2
50685    { (exit 1); exit 1; }; } ;;
50686
50687   *) ac_config_targets="$ac_config_targets $1"
50688      ac_need_defaults=false ;;
50689
50690   esac
50691   shift
50692 done
50693
50694 ac_configure_extra_args=
50695
50696 if $ac_cs_silent; then
50697   exec 6>/dev/null
50698   ac_configure_extra_args="$ac_configure_extra_args --silent"
50699 fi
50700
50701 _ACEOF
50702 cat >>$CONFIG_STATUS <<_ACEOF
50703 if \$ac_cs_recheck; then
50704   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50705   CONFIG_SHELL=$SHELL
50706   export CONFIG_SHELL
50707   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50708 fi
50709
50710 _ACEOF
50711 cat >>$CONFIG_STATUS <<\_ACEOF
50712 exec 5>>config.log
50713 {
50714   echo
50715   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50716 ## Running $as_me. ##
50717 _ASBOX
50718   echo "$ac_log"
50719 } >&5
50720
50721 _ACEOF
50722 cat >>$CONFIG_STATUS <<_ACEOF
50723 #
50724 # INIT-COMMANDS
50725 #
50726
50727             CPP="$CPP"
50728             infile="$srcdir/include/wx/msw/genrcdefs.h"
50729             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50730
50731
50732  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50733  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50734  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50735                      LN_S="${LN_S}"
50736
50737
50738 _ACEOF
50739
50740 cat >>$CONFIG_STATUS <<\_ACEOF
50741
50742 # Handling of arguments.
50743 for ac_config_target in $ac_config_targets
50744 do
50745   case $ac_config_target in
50746     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
50747     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50748     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50749     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
50750     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
50751     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50752     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50753     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
50754
50755   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50756 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50757    { (exit 1); exit 1; }; };;
50758   esac
50759 done
50760
50761
50762 # If the user did not use the arguments to specify the items to instantiate,
50763 # then the envvar interface is used.  Set only those that are not.
50764 # We use the long form for the default assignment because of an extremely
50765 # bizarre bug on SunOS 4.1.3.
50766 if $ac_need_defaults; then
50767   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50768   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50769   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50770 fi
50771
50772 # Have a temporary directory for convenience.  Make it in the build tree
50773 # simply because there is no reason against having it here, and in addition,
50774 # creating and moving files from /tmp can sometimes cause problems.
50775 # Hook for its removal unless debugging.
50776 # Note that there is a small window in which the directory will not be cleaned:
50777 # after its creation but before its name has been assigned to `$tmp'.
50778 $debug ||
50779 {
50780   tmp=
50781   trap 'exit_status=$?
50782   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50783 ' 0
50784   trap '{ (exit 1); exit 1; }' 1 2 13 15
50785 }
50786 # Create a (secure) tmp directory for tmp files.
50787
50788 {
50789   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50790   test -n "$tmp" && test -d "$tmp"
50791 }  ||
50792 {
50793   tmp=./conf$$-$RANDOM
50794   (umask 077 && mkdir "$tmp")
50795 } ||
50796 {
50797    echo "$me: cannot create a temporary directory in ." >&2
50798    { (exit 1); exit 1; }
50799 }
50800
50801 #
50802 # Set up the sed scripts for CONFIG_FILES section.
50803 #
50804
50805 # No need to generate the scripts if there are no CONFIG_FILES.
50806 # This happens for instance when ./config.status config.h
50807 if test -n "$CONFIG_FILES"; then
50808
50809 _ACEOF
50810
50811
50812
50813 ac_delim='%!_!# '
50814 for ac_last_try in false false false false false :; do
50815   cat >conf$$subs.sed <<_ACEOF
50816 SHELL!$SHELL$ac_delim
50817 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50818 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50819 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50820 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50821 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50822 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50823 exec_prefix!$exec_prefix$ac_delim
50824 prefix!$prefix$ac_delim
50825 program_transform_name!$program_transform_name$ac_delim
50826 bindir!$bindir$ac_delim
50827 sbindir!$sbindir$ac_delim
50828 libexecdir!$libexecdir$ac_delim
50829 datarootdir!$datarootdir$ac_delim
50830 datadir!$datadir$ac_delim
50831 sysconfdir!$sysconfdir$ac_delim
50832 sharedstatedir!$sharedstatedir$ac_delim
50833 localstatedir!$localstatedir$ac_delim
50834 includedir!$includedir$ac_delim
50835 oldincludedir!$oldincludedir$ac_delim
50836 docdir!$docdir$ac_delim
50837 infodir!$infodir$ac_delim
50838 htmldir!$htmldir$ac_delim
50839 dvidir!$dvidir$ac_delim
50840 pdfdir!$pdfdir$ac_delim
50841 psdir!$psdir$ac_delim
50842 libdir!$libdir$ac_delim
50843 localedir!$localedir$ac_delim
50844 mandir!$mandir$ac_delim
50845 DEFS!$DEFS$ac_delim
50846 ECHO_C!$ECHO_C$ac_delim
50847 ECHO_N!$ECHO_N$ac_delim
50848 ECHO_T!$ECHO_T$ac_delim
50849 LIBS!$LIBS$ac_delim
50850 build_alias!$build_alias$ac_delim
50851 host_alias!$host_alias$ac_delim
50852 target_alias!$target_alias$ac_delim
50853 build!$build$ac_delim
50854 build_cpu!$build_cpu$ac_delim
50855 build_vendor!$build_vendor$ac_delim
50856 build_os!$build_os$ac_delim
50857 host!$host$ac_delim
50858 host_cpu!$host_cpu$ac_delim
50859 host_vendor!$host_vendor$ac_delim
50860 host_os!$host_os$ac_delim
50861 target!$target$ac_delim
50862 target_cpu!$target_cpu$ac_delim
50863 target_vendor!$target_vendor$ac_delim
50864 target_os!$target_os$ac_delim
50865 wx_top_builddir!$wx_top_builddir$ac_delim
50866 CC!$CC$ac_delim
50867 CFLAGS!$CFLAGS$ac_delim
50868 LDFLAGS!$LDFLAGS$ac_delim
50869 CPPFLAGS!$CPPFLAGS$ac_delim
50870 ac_ct_CC!$ac_ct_CC$ac_delim
50871 EXEEXT!$EXEEXT$ac_delim
50872 OBJEXT!$OBJEXT$ac_delim
50873 CPP!$CPP$ac_delim
50874 GREP!$GREP$ac_delim
50875 EGREP!$EGREP$ac_delim
50876 CXX!$CXX$ac_delim
50877 CXXFLAGS!$CXXFLAGS$ac_delim
50878 ac_ct_CXX!$ac_ct_CXX$ac_delim
50879 AR!$AR$ac_delim
50880 subdirs!$subdirs$ac_delim
50881 PKG_CONFIG!$PKG_CONFIG$ac_delim
50882 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
50883 GTK_LIBS!$GTK_LIBS$ac_delim
50884 GTK_CONFIG!$GTK_CONFIG$ac_delim
50885 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
50886 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
50887 XMKMF!$XMKMF$ac_delim
50888 X_CFLAGS!$X_CFLAGS$ac_delim
50889 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
50890 X_LIBS!$X_LIBS$ac_delim
50891 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
50892 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
50893 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
50894 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
50895 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
50896 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
50897 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
50898 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
50899 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
50900 LIBICONV!$LIBICONV$ac_delim
50901 SDL_CONFIG!$SDL_CONFIG$ac_delim
50902 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
50903 SDL_LIBS!$SDL_LIBS$ac_delim
50904 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
50905 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
50906 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
50907 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
50908 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
50909 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
50910 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
50911 HILDON_LIBS!$HILDON_LIBS$ac_delim
50912 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
50913 _ACEOF
50914
50915   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50916     break
50917   elif $ac_last_try; then
50918     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50919 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50920    { (exit 1); exit 1; }; }
50921   else
50922     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50923   fi
50924 done
50925
50926 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50927 if test -n "$ac_eof"; then
50928   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50929   ac_eof=`expr $ac_eof + 1`
50930 fi
50931
50932 cat >>$CONFIG_STATUS <<_ACEOF
50933 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50935 _ACEOF
50936 sed '
50937 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50938 s/^/s,@/; s/!/@,|#_!!_#|/
50939 :n
50940 t n
50941 s/'"$ac_delim"'$/,g/; t
50942 s/$/\\/; p
50943 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50944 ' >>$CONFIG_STATUS <conf$$subs.sed
50945 rm -f conf$$subs.sed
50946 cat >>$CONFIG_STATUS <<_ACEOF
50947 CEOF$ac_eof
50948 _ACEOF
50949
50950
50951 ac_delim='%!_!# '
50952 for ac_last_try in false false false false false :; do
50953   cat >conf$$subs.sed <<_ACEOF
50954 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
50955 GST_CFLAGS!$GST_CFLAGS$ac_delim
50956 GST_LIBS!$GST_LIBS$ac_delim
50957 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
50958 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
50959 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
50960 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
50961 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
50962 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
50963 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
50964 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
50965 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
50966 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
50967 VENDOR!$VENDOR$ac_delim
50968 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
50969 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
50970 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
50971 WXUNIV!$WXUNIV$ac_delim
50972 MONOLITHIC!$MONOLITHIC$ac_delim
50973 USE_PLUGINS!$USE_PLUGINS$ac_delim
50974 CXXWARNINGS!$CXXWARNINGS$ac_delim
50975 EXTRALIBS!$EXTRALIBS$ac_delim
50976 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
50977 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
50978 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
50979 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
50980 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
50981 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
50982 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
50983 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
50984 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
50985 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
50986 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
50987 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
50988 UNICODE!$UNICODE$ac_delim
50989 BUILD!$BUILD$ac_delim
50990 DEBUG_INFO!$DEBUG_INFO$ac_delim
50991 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
50992 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
50993 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
50994 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
50995 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
50996 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
50997 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
50998 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
50999 RANLIB!$RANLIB$ac_delim
51000 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51001 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51002 INSTALL_DATA!$INSTALL_DATA$ac_delim
51003 LN_S!$LN_S$ac_delim
51004 SET_MAKE!$SET_MAKE$ac_delim
51005 MAKE_SET!$MAKE_SET$ac_delim
51006 AROPTIONS!$AROPTIONS$ac_delim
51007 STRIP!$STRIP$ac_delim
51008 NM!$NM$ac_delim
51009 INSTALL_DIR!$INSTALL_DIR$ac_delim
51010 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51011 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51012 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51013 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51014 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51015 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51016 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51017 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51018 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51019 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51020 SO_SUFFIX!$SO_SUFFIX$ac_delim
51021 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51022 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51023 LIBPREFIX!$LIBPREFIX$ac_delim
51024 LIBEXT!$LIBEXT$ac_delim
51025 DLLPREFIX!$DLLPREFIX$ac_delim
51026 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51027 dlldir!$dlldir$ac_delim
51028 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51029 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51030 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51031 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51032 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51033 PIC_FLAG!$PIC_FLAG$ac_delim
51034 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51035 USE_SOVERSION!$USE_SOVERSION$ac_delim
51036 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51037 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51038 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51039 USE_MACVERSION!$USE_MACVERSION$ac_delim
51040 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51041 SONAME_FLAG!$SONAME_FLAG$ac_delim
51042 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51043 BK_DEPS!$BK_DEPS$ac_delim
51044 WINDRES!$WINDRES$ac_delim
51045 REZ!$REZ$ac_delim
51046 SETFILE!$SETFILE$ac_delim
51047 GCC_PCH!$GCC_PCH$ac_delim
51048 ICC_PCH!$ICC_PCH$ac_delim
51049 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51050 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51051 _ACEOF
51052
51053   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51054     break
51055   elif $ac_last_try; then
51056     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51057 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51058    { (exit 1); exit 1; }; }
51059   else
51060     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51061   fi
51062 done
51063
51064 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51065 if test -n "$ac_eof"; then
51066   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51067   ac_eof=`expr $ac_eof + 1`
51068 fi
51069
51070 cat >>$CONFIG_STATUS <<_ACEOF
51071 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51073 _ACEOF
51074 sed '
51075 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51076 s/^/s,@/; s/!/@,|#_!!_#|/
51077 :n
51078 t n
51079 s/'"$ac_delim"'$/,g/; t
51080 s/$/\\/; p
51081 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51082 ' >>$CONFIG_STATUS <conf$$subs.sed
51083 rm -f conf$$subs.sed
51084 cat >>$CONFIG_STATUS <<_ACEOF
51085 CEOF$ac_eof
51086 _ACEOF
51087
51088
51089 ac_delim='%!_!# '
51090 for ac_last_try in false false false false false :; do
51091   cat >conf$$subs.sed <<_ACEOF
51092 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51093 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51094 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51095 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51096 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51097 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51098 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51099 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51100 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51101 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51102 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51103 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51104 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51105 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51106 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51107 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51108 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51109 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51110 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51111 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51112 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51113 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51114 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51115 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51116 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51117 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51118 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51119 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51120 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51121 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51122 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51123 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51124 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51125 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51126 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51127 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51128 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51129 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51130 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51131 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51132 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51133 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51134 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51135 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51136 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51137 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51138 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51139 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51140 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51141 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51142 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51143 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
51144 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
51145 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
51146 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
51147 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
51148 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
51149 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
51150 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51151 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51152 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51153 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
51154 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51155 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51156 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51157 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51158 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51159 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51160 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51161 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51162 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51163 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51164 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51165 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51166 COND_SHARED_0!$COND_SHARED_0$ac_delim
51167 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51168 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51169 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51170 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51171 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51172 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51173 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51174 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51175 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
51176 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
51177 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
51178 COND_SHARED_1!$COND_SHARED_1$ac_delim
51179 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
51180 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
51181 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
51182 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
51183 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51184 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
51185 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
51186 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
51187 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
51188 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
51189 _ACEOF
51190
51191   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51192     break
51193   elif $ac_last_try; then
51194     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51196    { (exit 1); exit 1; }; }
51197   else
51198     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51199   fi
51200 done
51201
51202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51203 if test -n "$ac_eof"; then
51204   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51205   ac_eof=`expr $ac_eof + 1`
51206 fi
51207
51208 cat >>$CONFIG_STATUS <<_ACEOF
51209 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51211 _ACEOF
51212 sed '
51213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51214 s/^/s,@/; s/!/@,|#_!!_#|/
51215 :n
51216 t n
51217 s/'"$ac_delim"'$/,g/; t
51218 s/$/\\/; p
51219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51220 ' >>$CONFIG_STATUS <conf$$subs.sed
51221 rm -f conf$$subs.sed
51222 cat >>$CONFIG_STATUS <<_ACEOF
51223 CEOF$ac_eof
51224 _ACEOF
51225
51226
51227 ac_delim='%!_!# '
51228 for ac_last_try in false false false false false :; do
51229   cat >conf$$subs.sed <<_ACEOF
51230 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
51231 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
51232 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0$ac_delim
51233 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
51234 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
51235 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
51236 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
51237 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
51238 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
51239 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
51240 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
51241 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
51242 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
51243 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
51244 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
51245 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
51246 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
51247 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
51248 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
51249 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
51250 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
51251 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
51252 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
51253 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
51254 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
51255 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
51256 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
51257 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
51258 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
51259 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
51260 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
51261 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
51262 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
51263 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
51264 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
51265 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51266 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51267 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51268 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
51269 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
51270 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
51271 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
51272 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
51273 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
51274 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
51275 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
51276 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
51277 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
51278 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
51279 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
51280 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
51281 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
51282 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
51283 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
51284 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
51285 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
51286 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
51287 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
51288 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
51289 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
51290 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
51291 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
51292 DEREZ!$DEREZ$ac_delim
51293 SHARED!$SHARED$ac_delim
51294 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
51295 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
51296 USE_GUI!$USE_GUI$ac_delim
51297 AFMINSTALL!$AFMINSTALL$ac_delim
51298 WIN32INSTALL!$WIN32INSTALL$ac_delim
51299 TOOLKIT!$TOOLKIT$ac_delim
51300 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
51301 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
51302 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
51303 cross_compiling!$cross_compiling$ac_delim
51304 WIDGET_SET!$WIDGET_SET$ac_delim
51305 WX_RELEASE!$WX_RELEASE$ac_delim
51306 WX_VERSION!$WX_VERSION$ac_delim
51307 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
51308 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
51309 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
51310 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
51311 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
51312 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
51313 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
51314 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
51315 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
51316 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
51317 GUIDIST!$GUIDIST$ac_delim
51318 DISTDIR!$DISTDIR$ac_delim
51319 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
51320 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
51321 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
51322 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
51323 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
51324 RESCOMP!$RESCOMP$ac_delim
51325 RESFLAGS!$RESFLAGS$ac_delim
51326 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
51327 _ACEOF
51328
51329   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51330     break
51331   elif $ac_last_try; then
51332     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51333 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51334    { (exit 1); exit 1; }; }
51335   else
51336     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51337   fi
51338 done
51339
51340 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51341 if test -n "$ac_eof"; then
51342   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51343   ac_eof=`expr $ac_eof + 1`
51344 fi
51345
51346 cat >>$CONFIG_STATUS <<_ACEOF
51347 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
51348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51349 _ACEOF
51350 sed '
51351 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51352 s/^/s,@/; s/!/@,|#_!!_#|/
51353 :n
51354 t n
51355 s/'"$ac_delim"'$/,g/; t
51356 s/$/\\/; p
51357 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51358 ' >>$CONFIG_STATUS <conf$$subs.sed
51359 rm -f conf$$subs.sed
51360 cat >>$CONFIG_STATUS <<_ACEOF
51361 CEOF$ac_eof
51362 _ACEOF
51363
51364
51365 ac_delim='%!_!# '
51366 for ac_last_try in false false false false false :; do
51367   cat >conf$$subs.sed <<_ACEOF
51368 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
51369 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
51370 LIBWXMACRES!$LIBWXMACRES$ac_delim
51371 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
51372 MACSETFILE!$MACSETFILE$ac_delim
51373 GCC!$GCC$ac_delim
51374 DLLTOOL!$DLLTOOL$ac_delim
51375 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
51376 LIBOBJS!$LIBOBJS$ac_delim
51377 LTLIBOBJS!$LTLIBOBJS$ac_delim
51378 _ACEOF
51379
51380   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
51381     break
51382   elif $ac_last_try; then
51383     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51384 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51385    { (exit 1); exit 1; }; }
51386   else
51387     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51388   fi
51389 done
51390
51391 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51392 if test -n "$ac_eof"; then
51393   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51394   ac_eof=`expr $ac_eof + 1`
51395 fi
51396
51397 cat >>$CONFIG_STATUS <<_ACEOF
51398 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
51399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51400 _ACEOF
51401 sed '
51402 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51403 s/^/s,@/; s/!/@,|#_!!_#|/
51404 :n
51405 t n
51406 s/'"$ac_delim"'$/,g/; t
51407 s/$/\\/; p
51408 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51409 ' >>$CONFIG_STATUS <conf$$subs.sed
51410 rm -f conf$$subs.sed
51411 cat >>$CONFIG_STATUS <<_ACEOF
51412 :end
51413 s/|#_!!_#|//g
51414 CEOF$ac_eof
51415 _ACEOF
51416
51417
51418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51420 # trailing colons and then remove the whole line if VPATH becomes empty
51421 # (actually we leave an empty line to preserve line numbers).
51422 if test "x$srcdir" = x.; then
51423   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51424 s/:*\$(srcdir):*/:/
51425 s/:*\${srcdir}:*/:/
51426 s/:*@srcdir@:*/:/
51427 s/^\([^=]*=[     ]*\):*/\1/
51428 s/:*$//
51429 s/^[^=]*=[       ]*$//
51430 }'
51431 fi
51432
51433 cat >>$CONFIG_STATUS <<\_ACEOF
51434 fi # test -n "$CONFIG_FILES"
51435
51436
51437 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
51438 do
51439   case $ac_tag in
51440   :[FHLC]) ac_mode=$ac_tag; continue;;
51441   esac
51442   case $ac_mode$ac_tag in
51443   :[FHL]*:*);;
51444   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51445 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51446    { (exit 1); exit 1; }; };;
51447   :[FH]-) ac_tag=-:-;;
51448   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51449   esac
51450   ac_save_IFS=$IFS
51451   IFS=:
51452   set x $ac_tag
51453   IFS=$ac_save_IFS
51454   shift
51455   ac_file=$1
51456   shift
51457
51458   case $ac_mode in
51459   :L) ac_source=$1;;
51460   :[FH])
51461     ac_file_inputs=
51462     for ac_f
51463     do
51464       case $ac_f in
51465       -) ac_f="$tmp/stdin";;
51466       *) # Look for the file first in the build tree, then in the source tree
51467          # (if the path is not absolute).  The absolute path cannot be DOS-style,
51468          # because $ac_f cannot contain `:'.
51469          test -f "$ac_f" ||
51470            case $ac_f in
51471            [\\/$]*) false;;
51472            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51473            esac ||
51474            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51475 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51476    { (exit 1); exit 1; }; };;
51477       esac
51478       ac_file_inputs="$ac_file_inputs $ac_f"
51479     done
51480
51481     # Let's still pretend it is `configure' which instantiates (i.e., don't
51482     # use $as_me), people would be surprised to read:
51483     #    /* config.h.  Generated by config.status.  */
51484     configure_input="Generated from "`IFS=:
51485           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51486     if test x"$ac_file" != x-; then
51487       configure_input="$ac_file.  $configure_input"
51488       { echo "$as_me:$LINENO: creating $ac_file" >&5
51489 echo "$as_me: creating $ac_file" >&6;}
51490     fi
51491
51492     case $ac_tag in
51493     *:-:* | *:-) cat >"$tmp/stdin";;
51494     esac
51495     ;;
51496   esac
51497
51498   ac_dir=`$as_dirname -- "$ac_file" ||
51499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51500          X"$ac_file" : 'X\(//\)[^/]' \| \
51501          X"$ac_file" : 'X\(//\)$' \| \
51502          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51503 echo X"$ac_file" |
51504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51505             s//\1/
51506             q
51507           }
51508           /^X\(\/\/\)[^/].*/{
51509             s//\1/
51510             q
51511           }
51512           /^X\(\/\/\)$/{
51513             s//\1/
51514             q
51515           }
51516           /^X\(\/\).*/{
51517             s//\1/
51518             q
51519           }
51520           s/.*/./; q'`
51521   { as_dir="$ac_dir"
51522   case $as_dir in #(
51523   -*) as_dir=./$as_dir;;
51524   esac
51525   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51526     as_dirs=
51527     while :; do
51528       case $as_dir in #(
51529       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51530       *) as_qdir=$as_dir;;
51531       esac
51532       as_dirs="'$as_qdir' $as_dirs"
51533       as_dir=`$as_dirname -- "$as_dir" ||
51534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51535          X"$as_dir" : 'X\(//\)[^/]' \| \
51536          X"$as_dir" : 'X\(//\)$' \| \
51537          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51538 echo X"$as_dir" |
51539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51540             s//\1/
51541             q
51542           }
51543           /^X\(\/\/\)[^/].*/{
51544             s//\1/
51545             q
51546           }
51547           /^X\(\/\/\)$/{
51548             s//\1/
51549             q
51550           }
51551           /^X\(\/\).*/{
51552             s//\1/
51553             q
51554           }
51555           s/.*/./; q'`
51556       test -d "$as_dir" && break
51557     done
51558     test -z "$as_dirs" || eval "mkdir $as_dirs"
51559   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51560 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51561    { (exit 1); exit 1; }; }; }
51562   ac_builddir=.
51563
51564 case "$ac_dir" in
51565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51566 *)
51567   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51568   # A ".." for each directory in $ac_dir_suffix.
51569   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51570   case $ac_top_builddir_sub in
51571   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51572   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51573   esac ;;
51574 esac
51575 ac_abs_top_builddir=$ac_pwd
51576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51577 # for backward compatibility:
51578 ac_top_builddir=$ac_top_build_prefix
51579
51580 case $srcdir in
51581   .)  # We are building in place.
51582     ac_srcdir=.
51583     ac_top_srcdir=$ac_top_builddir_sub
51584     ac_abs_top_srcdir=$ac_pwd ;;
51585   [\\/]* | ?:[\\/]* )  # Absolute name.
51586     ac_srcdir=$srcdir$ac_dir_suffix;
51587     ac_top_srcdir=$srcdir
51588     ac_abs_top_srcdir=$srcdir ;;
51589   *) # Relative name.
51590     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51591     ac_top_srcdir=$ac_top_build_prefix$srcdir
51592     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51593 esac
51594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51595
51596
51597   case $ac_mode in
51598   :F)
51599   #
51600   # CONFIG_FILE
51601   #
51602
51603   case $INSTALL in
51604   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51605   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51606   esac
51607 _ACEOF
51608
51609 cat >>$CONFIG_STATUS <<\_ACEOF
51610 # If the template does not know about datarootdir, expand it.
51611 # FIXME: This hack should be removed a few years after 2.60.
51612 ac_datarootdir_hack=; ac_datarootdir_seen=
51613
51614 case `sed -n '/datarootdir/ {
51615   p
51616   q
51617 }
51618 /@datadir@/p
51619 /@docdir@/p
51620 /@infodir@/p
51621 /@localedir@/p
51622 /@mandir@/p
51623 ' $ac_file_inputs` in
51624 *datarootdir*) ac_datarootdir_seen=yes;;
51625 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51626   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51627 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51628 _ACEOF
51629 cat >>$CONFIG_STATUS <<_ACEOF
51630   ac_datarootdir_hack='
51631   s&@datadir@&$datadir&g
51632   s&@docdir@&$docdir&g
51633   s&@infodir@&$infodir&g
51634   s&@localedir@&$localedir&g
51635   s&@mandir@&$mandir&g
51636     s&\\\${datarootdir}&$datarootdir&g' ;;
51637 esac
51638 _ACEOF
51639
51640 # Neutralize VPATH when `$srcdir' = `.'.
51641 # Shell code in configure.ac might set extrasub.
51642 # FIXME: do we really want to maintain this feature?
51643 cat >>$CONFIG_STATUS <<_ACEOF
51644   sed "$ac_vpsub
51645 $extrasub
51646 _ACEOF
51647 cat >>$CONFIG_STATUS <<\_ACEOF
51648 :t
51649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51650 s&@configure_input@&$configure_input&;t t
51651 s&@top_builddir@&$ac_top_builddir_sub&;t t
51652 s&@srcdir@&$ac_srcdir&;t t
51653 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51654 s&@top_srcdir@&$ac_top_srcdir&;t t
51655 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51656 s&@builddir@&$ac_builddir&;t t
51657 s&@abs_builddir@&$ac_abs_builddir&;t t
51658 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51659 s&@INSTALL@&$ac_INSTALL&;t t
51660 $ac_datarootdir_hack
51661 " $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
51662
51663 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51664   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51665   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
51666   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51667 which seems to be undefined.  Please make sure it is defined." >&5
51668 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51669 which seems to be undefined.  Please make sure it is defined." >&2;}
51670
51671   rm -f "$tmp/stdin"
51672   case $ac_file in
51673   -) cat "$tmp/out"; rm -f "$tmp/out";;
51674   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
51675   esac
51676  ;;
51677   :H)
51678   #
51679   # CONFIG_HEADER
51680   #
51681 _ACEOF
51682
51683 # Transform confdefs.h into a sed script `conftest.defines', that
51684 # substitutes the proper values into config.h.in to produce config.h.
51685 rm -f conftest.defines conftest.tail
51686 # First, append a space to every undef/define line, to ease matching.
51687 echo 's/$/ /' >conftest.defines
51688 # Then, protect against being on the right side of a sed subst, or in
51689 # an unquoted here document, in config.status.  If some macros were
51690 # called several times there might be several #defines for the same
51691 # symbol, which is useless.  But do not sort them, since the last
51692 # AC_DEFINE must be honored.
51693 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51694 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
51695 # NAME is the cpp macro being defined, VALUE is the value it is being given.
51696 # PARAMS is the parameter list in the macro definition--in most cases, it's
51697 # just an empty string.
51698 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
51699 ac_dB='\\)[      (].*,\\1define\\2'
51700 ac_dC=' '
51701 ac_dD=' ,'
51702
51703 uniq confdefs.h |
51704   sed -n '
51705         t rset
51706         :rset
51707         s/^[     ]*#[    ]*define[       ][      ]*//
51708         t ok
51709         d
51710         :ok
51711         s/[\\&,]/\\&/g
51712         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
51713         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
51714   ' >>conftest.defines
51715
51716 # Remove the space that was appended to ease matching.
51717 # Then replace #undef with comments.  This is necessary, for
51718 # example, in the case of _POSIX_SOURCE, which is predefined and required
51719 # on some systems where configure will not decide to define it.
51720 # (The regexp can be short, since the line contains either #define or #undef.)
51721 echo 's/ $//
51722 s,^[     #]*u.*,/* & */,' >>conftest.defines
51723
51724 # Break up conftest.defines:
51725 ac_max_sed_lines=50
51726
51727 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51728 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51729 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51730 # et cetera.
51731 ac_in='$ac_file_inputs'
51732 ac_out='"$tmp/out1"'
51733 ac_nxt='"$tmp/out2"'
51734
51735 while :
51736 do
51737   # Write a here document:
51738     cat >>$CONFIG_STATUS <<_ACEOF
51739     # First, check the format of the line:
51740     cat >"\$tmp/defines.sed" <<\\CEOF
51741 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
51742 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
51743 b
51744 :def
51745 _ACEOF
51746   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51747   echo 'CEOF
51748     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51749   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51750   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51751   grep . conftest.tail >/dev/null || break
51752   rm -f conftest.defines
51753   mv conftest.tail conftest.defines
51754 done
51755 rm -f conftest.defines conftest.tail
51756
51757 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51758 cat >>$CONFIG_STATUS <<\_ACEOF
51759   if test x"$ac_file" != x-; then
51760     echo "/* $configure_input  */" >"$tmp/config.h"
51761     cat "$ac_result" >>"$tmp/config.h"
51762     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51763       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51764 echo "$as_me: $ac_file is unchanged" >&6;}
51765     else
51766       rm -f $ac_file
51767       mv "$tmp/config.h" $ac_file
51768     fi
51769   else
51770     echo "/* $configure_input  */"
51771     cat "$ac_result"
51772   fi
51773   rm -f "$tmp/out12"
51774  ;;
51775
51776   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
51777 echo "$as_me: executing $ac_file commands" >&6;}
51778  ;;
51779   esac
51780
51781
51782   case $ac_file$ac_mode in
51783     "rcdefs.h":C)
51784             mkdir -p $outdir &&
51785             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51786          ;;
51787     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51788     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51789     "wx-config":C)  rm -f wx-config
51790                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51791                     ;;
51792
51793   esac
51794 done # for ac_tag
51795
51796
51797 { (exit 0); exit 0; }
51798 _ACEOF
51799 chmod +x $CONFIG_STATUS
51800 ac_clean_files=$ac_clean_files_save
51801
51802
51803 # configure is writing to config.log, and then calls config.status.
51804 # config.status does its own redirection, appending to config.log.
51805 # Unfortunately, on DOS this fails, as config.log is still kept open
51806 # by configure, so config.status won't be able to write to it; its
51807 # output is simply discarded.  So we exec the FD to /dev/null,
51808 # effectively closing config.log, so it can be properly (re)opened and
51809 # appended to by config.status.  When coming back to configure, we
51810 # need to make the FD available again.
51811 if test "$no_create" != yes; then
51812   ac_cs_success=:
51813   ac_config_status_args=
51814   test "$silent" = yes &&
51815     ac_config_status_args="$ac_config_status_args --quiet"
51816   exec 5>/dev/null
51817   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51818   exec 5>>config.log
51819   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51820   # would make configure fail if this is the last instruction.
51821   $ac_cs_success || { (exit 1); exit 1; }
51822 fi
51823
51824 #
51825 # CONFIG_SUBDIRS section.
51826 #
51827 if test "$no_recursion" != yes; then
51828
51829   # Remove --cache-file and --srcdir arguments so they do not pile up.
51830   ac_sub_configure_args=
51831   ac_prev=
51832   eval "set x $ac_configure_args"
51833   shift
51834   for ac_arg
51835   do
51836     if test -n "$ac_prev"; then
51837       ac_prev=
51838       continue
51839     fi
51840     case $ac_arg in
51841     -cache-file | --cache-file | --cache-fil | --cache-fi \
51842     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51843       ac_prev=cache_file ;;
51844     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51845     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51846     | --c=*)
51847       ;;
51848     --config-cache | -C)
51849       ;;
51850     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51851       ac_prev=srcdir ;;
51852     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51853       ;;
51854     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51855       ac_prev=prefix ;;
51856     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51857       ;;
51858     *)
51859       case $ac_arg in
51860       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51861       esac
51862       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
51863     esac
51864   done
51865
51866   # Always prepend --prefix to ensure using the same prefix
51867   # in subdir configurations.
51868   ac_arg="--prefix=$prefix"
51869   case $ac_arg in
51870   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51871   esac
51872   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
51873
51874   # Pass --silent
51875   if test "$silent" = yes; then
51876     ac_sub_configure_args="--silent $ac_sub_configure_args"
51877   fi
51878
51879   ac_popdir=`pwd`
51880   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51881
51882     # Do not complain, so a configure script can configure whichever
51883     # parts of a large source tree are present.
51884     test -d "$srcdir/$ac_dir" || continue
51885
51886     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
51887     echo "$as_me:$LINENO: $ac_msg" >&5
51888     echo "$ac_msg" >&6
51889     { as_dir="$ac_dir"
51890   case $as_dir in #(
51891   -*) as_dir=./$as_dir;;
51892   esac
51893   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51894     as_dirs=
51895     while :; do
51896       case $as_dir in #(
51897       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51898       *) as_qdir=$as_dir;;
51899       esac
51900       as_dirs="'$as_qdir' $as_dirs"
51901       as_dir=`$as_dirname -- "$as_dir" ||
51902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51903          X"$as_dir" : 'X\(//\)[^/]' \| \
51904          X"$as_dir" : 'X\(//\)$' \| \
51905          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51906 echo X"$as_dir" |
51907     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51908             s//\1/
51909             q
51910           }
51911           /^X\(\/\/\)[^/].*/{
51912             s//\1/
51913             q
51914           }
51915           /^X\(\/\/\)$/{
51916             s//\1/
51917             q
51918           }
51919           /^X\(\/\).*/{
51920             s//\1/
51921             q
51922           }
51923           s/.*/./; q'`
51924       test -d "$as_dir" && break
51925     done
51926     test -z "$as_dirs" || eval "mkdir $as_dirs"
51927   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51928 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51929    { (exit 1); exit 1; }; }; }
51930     ac_builddir=.
51931
51932 case "$ac_dir" in
51933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51934 *)
51935   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51936   # A ".." for each directory in $ac_dir_suffix.
51937   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51938   case $ac_top_builddir_sub in
51939   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51940   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51941   esac ;;
51942 esac
51943 ac_abs_top_builddir=$ac_pwd
51944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51945 # for backward compatibility:
51946 ac_top_builddir=$ac_top_build_prefix
51947
51948 case $srcdir in
51949   .)  # We are building in place.
51950     ac_srcdir=.
51951     ac_top_srcdir=$ac_top_builddir_sub
51952     ac_abs_top_srcdir=$ac_pwd ;;
51953   [\\/]* | ?:[\\/]* )  # Absolute name.
51954     ac_srcdir=$srcdir$ac_dir_suffix;
51955     ac_top_srcdir=$srcdir
51956     ac_abs_top_srcdir=$srcdir ;;
51957   *) # Relative name.
51958     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51959     ac_top_srcdir=$ac_top_build_prefix$srcdir
51960     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51961 esac
51962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51963
51964
51965     cd "$ac_dir"
51966
51967     # Check for guested configure; otherwise get Cygnus style configure.
51968     if test -f "$ac_srcdir/configure.gnu"; then
51969       ac_sub_configure=$ac_srcdir/configure.gnu
51970     elif test -f "$ac_srcdir/configure"; then
51971       ac_sub_configure=$ac_srcdir/configure
51972     elif test -f "$ac_srcdir/configure.in"; then
51973       # This should be Cygnus configure.
51974       ac_sub_configure=$ac_aux_dir/configure
51975     else
51976       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51978       ac_sub_configure=
51979     fi
51980
51981     # The recursion is here.
51982     if test -n "$ac_sub_configure"; then
51983       # Make the cache file name correct relative to the subdirectory.
51984       case $cache_file in
51985       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51986       *) # Relative name.
51987         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
51988       esac
51989
51990       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51991 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51992       # The eval makes quoting arguments work.
51993       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
51994            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
51995         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
51996 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51997    { (exit 1); exit 1; }; }
51998     fi
51999
52000     cd "$ac_popdir"
52001   done
52002 fi
52003
52004
52005 echo
52006 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52007 echo ""
52008 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52009 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52010
52011 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52012 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52013 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52014 if test "$wxUSE_UNICODE" = "yes"; then
52015     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52016         echo " (using UTF-8)"
52017     else
52018         echo " (using wchar_t)"
52019     fi
52020 else
52021     echo
52022 fi
52023
52024 echo "  What level of wxWidgets compatibility should be enabled?"
52025 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52026 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52027
52028 echo "  Which libraries should wxWidgets use?"
52029 echo "                                       STL                ${wxUSE_STL}"
52030 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52031 echo "                                       png                ${wxUSE_LIBPNG-none}"
52032 echo "                                       regex              ${wxUSE_REGEX}"
52033 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52034 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52035 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52036 fi
52037 echo "                                       zlib               ${wxUSE_ZLIB}"
52038 echo "                                       expat              ${wxUSE_EXPAT}"
52039 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52040 echo "                                       sdl                ${wxUSE_LIBSDL}"
52041
52042 echo ""
52043