don't call neither OnSaveModified() nor Modify(false) from On{New,Open}Document(...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 58985 2009-02-18 11:05:38Z FM .
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 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 subdirs
680 PKG_CONFIG
681 GTK_CFLAGS
682 GTK_LIBS
683 GTK_CONFIG
684 DIRECTFB_CFLAGS
685 DIRECTFB_LIBS
686 XMKMF
687 X_CFLAGS
688 X_PRE_LIBS
689 X_LIBS
690 X_EXTRA_LIBS
691 PANGOX_CFLAGS
692 PANGOX_LIBS
693 PANGOFT2_CFLAGS
694 PANGOFT2_LIBS
695 PANGOXFT_CFLAGS
696 PANGOXFT_LIBS
697 CFLAGS_VISIBILITY
698 CXXFLAGS_VISIBILITY
699 LIBICONV
700 GXX_VERSION
701 SDL_CONFIG
702 SDL_CFLAGS
703 SDL_LIBS
704 GTKPRINT_CFLAGS
705 GTKPRINT_LIBS
706 LIBGNOMEPRINTUI_CFLAGS
707 LIBGNOMEPRINTUI_LIBS
708 GNOMEVFS_CFLAGS
709 GNOMEVFS_LIBS
710 HILDON_CFLAGS
711 HILDON_LIBS
712 CAIRO_CFLAGS
713 CAIRO_LIBS
714 GST_CFLAGS
715 GST_LIBS
716 ALL_WX_LIBS
717 BUILT_WX_LIBS
718 STD_BASE_LIBS
719 STD_GUI_LIBS
720 wxUSE_ZLIB
721 wxUSE_REGEX
722 wxUSE_EXPAT
723 wxUSE_LIBJPEG
724 wxUSE_LIBPNG
725 wxUSE_LIBTIFF
726 VENDOR
727 OFFICIAL_BUILD
728 WX_FLAVOUR
729 WX_LIB_FLAVOUR
730 WXUNIV
731 MONOLITHIC
732 USE_PLUGINS
733 CXXWARNINGS
734 EXTRALIBS
735 EXTRALIBS_XML
736 EXTRALIBS_HTML
737 EXTRALIBS_MEDIA
738 EXTRALIBS_GUI
739 EXTRALIBS_OPENGL
740 EXTRALIBS_SDL
741 EXTRALIBS_STC
742 WITH_PLUGIN_SDL
743 EXTRALIBS_GTKPRINT
744 EXTRALIBS_GNOMEPRINT
745 EXTRALIBS_GNOMEVFS
746 EXTRALIBS_HILDON
747 UNICODE
748 BUILD
749 DEBUG_INFO
750 DEBUG_FLAG
751 TOOLKIT_LOWERCASE
752 TOOLKIT_VERSION
753 SAMPLES_RPATH_FLAG
754 SAMPLES_RPATH_POSTLINK
755 HEADER_PAD_OPTION
756 HOST_SUFFIX
757 CPPUNIT_CFLAGS
758 CPPUNIT_LIBS
759 RANLIB
760 INSTALL_PROGRAM
761 INSTALL_SCRIPT
762 INSTALL_DATA
763 LN_S
764 SET_MAKE
765 MAKE_SET
766 AROPTIONS
767 STRIP
768 NM
769 INSTALL_DIR
770 LDFLAGS_GUI
771 IF_GNU_MAKE
772 PLATFORM_UNIX
773 PLATFORM_WIN32
774 PLATFORM_MSDOS
775 PLATFORM_MAC
776 PLATFORM_MACOS
777 PLATFORM_MACOSX
778 PLATFORM_OS2
779 PLATFORM_BEOS
780 SO_SUFFIX
781 SO_SUFFIX_MODULE
782 DLLIMP_SUFFIX
783 LIBPREFIX
784 LIBEXT
785 DLLPREFIX
786 DLLPREFIX_MODULE
787 dlldir
788 AIX_CXX_LD
789 SHARED_LD_CC
790 SHARED_LD_CXX
791 SHARED_LD_MODULE_CC
792 SHARED_LD_MODULE_CXX
793 PIC_FLAG
794 WINDOWS_IMPLIB
795 USE_SOVERSION
796 USE_SOVERLINUX
797 USE_SOVERSOLARIS
798 USE_SOVERCYGWIN
799 USE_MACVERSION
800 USE_SOSYMLINKS
801 SONAME_FLAG
802 DEPS_TRACKING
803 BK_DEPS
804 WINDRES
805 REZ
806 SETFILE
807 OBJCXXFLAGS
808 GCC_PCH
809 ICC_PCH
810 ICC_PCH_CREATE_SWITCH
811 ICC_PCH_USE_SWITCH
812 BK_MAKE_PCH
813 COND_BUILD_DEBUG
814 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
815 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
816 COND_BUILD_DEBUG_UNICODE_0
817 COND_BUILD_DEBUG_UNICODE_1
818 COND_BUILD_RELEASE
819 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
820 COND_BUILD_RELEASE_UNICODE_0
821 COND_BUILD_RELEASE_UNICODE_1
822 COND_BUILD_debug
823 COND_BUILD_debug_DEBUG_FLAG_default
824 COND_BUILD_debug_DEBUG_INFO_default
825 COND_BUILD_debug_UNICODE_0
826 COND_BUILD_debug_UNICODE_1
827 COND_BUILD_release
828 COND_BUILD_release_DEBUG_INFO_default
829 COND_BUILD_release_UNICODE_0
830 COND_BUILD_release_UNICODE_1
831 COND_DEBUG_FLAG_1
832 COND_DEBUG_INFO_0
833 COND_DEBUG_INFO_1
834 COND_DEPS_TRACKING_0
835 COND_DEPS_TRACKING_1
836 COND_GCC_PCH_1
837 COND_ICC_PCH_1
838 COND_MONOLITHIC_0
839 COND_MONOLITHIC_0_SHARED_0
840 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
845 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
846 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
847 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
848 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
849 COND_MONOLITHIC_0_SHARED_1
850 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
851 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
852 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
853 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
855 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
856 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
857 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
858 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
859 COND_MONOLITHIC_0_USE_AUI_1
860 COND_MONOLITHIC_0_USE_GUI_1
861 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
862 COND_MONOLITHIC_0_USE_HTML_1
863 COND_MONOLITHIC_0_USE_MEDIA_1
864 COND_MONOLITHIC_0_USE_PROPGRID_1
865 COND_MONOLITHIC_0_USE_QA_1
866 COND_MONOLITHIC_0_USE_RICHTEXT_1
867 COND_MONOLITHIC_0_USE_STC_1
868 COND_MONOLITHIC_0_USE_XRC_1
869 COND_MONOLITHIC_1
870 COND_MONOLITHIC_1_SHARED_0
871 COND_MONOLITHIC_1_SHARED_1
872 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
873 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
874 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
875 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
876 COND_PLATFORM_MACOSX_1
877 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
878 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
879 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
880 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
881 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
882 COND_PLATFORM_MACOSX_1_USE_GUI_1
883 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
884 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
885 COND_PLATFORM_MACOS_1
886 COND_PLATFORM_MAC_0
887 COND_PLATFORM_MAC_1
888 COND_PLATFORM_MSDOS_0
889 COND_PLATFORM_MSDOS_1
890 COND_PLATFORM_OS2_1
891 COND_PLATFORM_UNIX_0
892 COND_PLATFORM_UNIX_1
893 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
894 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
895 COND_PLATFORM_UNIX_1_USE_GUI_1
896 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
897 COND_PLATFORM_WIN32_0
898 COND_PLATFORM_WIN32_1
899 COND_SHARED_0
900 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
901 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
902 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
903 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
904 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
905 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
906 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
907 COND_SHARED_0_USE_STC_1
908 COND_SHARED_0_wxUSE_EXPAT_builtin
909 COND_SHARED_0_wxUSE_REGEX_builtin
910 COND_SHARED_0_wxUSE_ZLIB_builtin
911 COND_SHARED_1
912 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
913 COND_TOOLKIT_
914 COND_TOOLKIT_COCOA
915 COND_TOOLKIT_COCOA_USE_GUI_1
916 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
917 COND_TOOLKIT_DFB
918 COND_TOOLKIT_DFB_USE_GUI_1
919 COND_TOOLKIT_GTK
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
921 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
922 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
923 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
924 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
925 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_GTK_USE_GUI_1
927 COND_TOOLKIT_MAC
928 COND_TOOLKIT_MGL
929 COND_TOOLKIT_MGL_USE_GUI_1
930 COND_TOOLKIT_MOTIF
931 COND_TOOLKIT_MOTIF_USE_GUI_1
932 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW
934 COND_TOOLKIT_MSW_USE_GUI_1
935 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_MSW_WXUNIV_0
937 COND_TOOLKIT_OSX_CARBON
938 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
939 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_OSX_COCOA
941 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
942 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_OSX_IPHONE
944 COND_TOOLKIT_PM
945 COND_TOOLKIT_PM_USE_GUI_1
946 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
947 COND_TOOLKIT_WINCE
948 COND_TOOLKIT_WINCE_USE_GUI_1
949 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_WINCE_WXUNIV_0
951 COND_TOOLKIT_X11
952 COND_TOOLKIT_X11_USE_GUI_1
953 COND_UNICODE_1
954 COND_USE_EXCEPTIONS_0
955 COND_USE_EXCEPTIONS_1
956 COND_USE_GUI_0
957 COND_USE_GUI_1
958 COND_USE_GUI_1_USE_OPENGL_1
959 COND_USE_GUI_1_WXUNIV_0
960 COND_USE_GUI_1_WXUNIV_1
961 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
962 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
963 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
964 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
965 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
966 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
967 COND_USE_OPENGL_1
968 COND_USE_PCH_1
969 COND_USE_PLUGINS_0
970 COND_USE_RTTI_0
971 COND_USE_RTTI_1
972 COND_USE_SOSYMLINKS_1
973 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
974 COND_USE_SOVERLINUX_1
975 COND_USE_SOVERSION_0
976 COND_USE_SOVERSOLARIS_1
977 COND_USE_STC_1
978 COND_USE_THREADS_0
979 COND_USE_THREADS_1
980 COND_USE_XRC_1
981 COND_WINDOWS_IMPLIB_1
982 COND_WITH_PLUGIN_SDL_1
983 COND_WXUNIV_0
984 COND_WXUNIV_1
985 COND_WXUSE_EXPAT_BUILTIN
986 COND_WXUSE_LIBJPEG_BUILTIN
987 COND_WXUSE_LIBPNG_BUILTIN
988 COND_WXUSE_LIBTIFF_BUILTIN
989 COND_WXUSE_REGEX_BUILTIN
990 COND_WXUSE_ZLIB_BUILTIN
991 COND_wxUSE_EXPAT_builtin
992 COND_wxUSE_LIBJPEG_builtin
993 COND_wxUSE_LIBPNG_builtin
994 COND_wxUSE_LIBTIFF_builtin
995 COND_wxUSE_REGEX_builtin
996 COND_wxUSE_ZLIB_builtin
997 DEREZ
998 SHARED
999 WX_LIBRARY_BASENAME_NOGUI
1000 WX_LIBRARY_BASENAME_GUI
1001 USE_GUI
1002 AFMINSTALL
1003 WIN32INSTALL
1004 TOOLKIT
1005 TOOLKIT_DIR
1006 TOOLCHAIN_NAME
1007 TOOLCHAIN_FULLNAME
1008 cross_compiling
1009 WIDGET_SET
1010 WX_RELEASE
1011 WX_VERSION
1012 WX_SUBVERSION
1013 WX_CHARTYPE
1014 WX_DEBUGTYPE
1015 WXCONFIG_CPPFLAGS
1016 WXCONFIG_CFLAGS
1017 WXCONFIG_CXXFLAGS
1018 WXCONFIG_LIBS
1019 WXCONFIG_RPATH
1020 WXCONFIG_LDFLAGS_GUI
1021 WXCONFIG_RESFLAGS
1022 GUIDIST
1023 DISTDIR
1024 SAMPLES_SUBDIRS
1025 LDFLAGS_GL
1026 OPENGL_LIBS
1027 DMALLOC_LIBS
1028 WX_VERSION_TAG
1029 RESCOMP
1030 RESFLAGS
1031 RESPROGRAMOBJ
1032 WX_RESOURCES_MACOSX_ASCII
1033 WX_RESOURCES_MACOSX_DATA
1034 LIBWXMACRES
1035 POSTLINK_COMMAND
1036 MACSETFILE
1037 GCC
1038 DLLTOOL
1039 CPPUNIT_CONFIG
1040 LIBOBJS
1041 LTLIBOBJS'
1042 ac_subst_files=''
1043       ac_precious_vars='build_alias
1044 host_alias
1045 target_alias
1046 CC
1047 CFLAGS
1048 LDFLAGS
1049 LIBS
1050 CPPFLAGS
1051 CPP
1052 CXX
1053 CXXFLAGS
1054 CCC
1055 PKG_CONFIG
1056 DIRECTFB_CFLAGS
1057 DIRECTFB_LIBS
1058 XMKMF
1059 PANGOX_CFLAGS
1060 PANGOX_LIBS
1061 PANGOFT2_CFLAGS
1062 PANGOFT2_LIBS
1063 PANGOXFT_CFLAGS
1064 PANGOXFT_LIBS
1065 GTKPRINT_CFLAGS
1066 GTKPRINT_LIBS
1067 LIBGNOMEPRINTUI_CFLAGS
1068 LIBGNOMEPRINTUI_LIBS
1069 GNOMEVFS_CFLAGS
1070 GNOMEVFS_LIBS
1071 HILDON_CFLAGS
1072 HILDON_LIBS
1073 CAIRO_CFLAGS
1074 CAIRO_LIBS
1075 GST_CFLAGS
1076 GST_LIBS'
1077 ac_subdirs_all='src/tiff
1078 src/expat'
1079
1080 # Initialize some variables set by options.
1081 ac_init_help=
1082 ac_init_version=false
1083 # The variables have the same names as the options, with
1084 # dashes changed to underlines.
1085 cache_file=/dev/null
1086 exec_prefix=NONE
1087 no_create=
1088 no_recursion=
1089 prefix=NONE
1090 program_prefix=NONE
1091 program_suffix=NONE
1092 program_transform_name=s,x,x,
1093 silent=
1094 site=
1095 srcdir=
1096 verbose=
1097 x_includes=NONE
1098 x_libraries=NONE
1099
1100 # Installation directory options.
1101 # These are left unexpanded so users can "make install exec_prefix=/foo"
1102 # and all the variables that are supposed to be based on exec_prefix
1103 # by default will actually change.
1104 # Use braces instead of parens because sh, perl, etc. also accept them.
1105 # (The list follows the same order as the GNU Coding Standards.)
1106 bindir='${exec_prefix}/bin'
1107 sbindir='${exec_prefix}/sbin'
1108 libexecdir='${exec_prefix}/libexec'
1109 datarootdir='${prefix}/share'
1110 datadir='${datarootdir}'
1111 sysconfdir='${prefix}/etc'
1112 sharedstatedir='${prefix}/com'
1113 localstatedir='${prefix}/var'
1114 includedir='${prefix}/include'
1115 oldincludedir='/usr/include'
1116 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1117 infodir='${datarootdir}/info'
1118 htmldir='${docdir}'
1119 dvidir='${docdir}'
1120 pdfdir='${docdir}'
1121 psdir='${docdir}'
1122 libdir='${exec_prefix}/lib'
1123 localedir='${datarootdir}/locale'
1124 mandir='${datarootdir}/man'
1125
1126 ac_prev=
1127 ac_dashdash=
1128 for ac_option
1129 do
1130   # If the previous option needs an argument, assign it.
1131   if test -n "$ac_prev"; then
1132     eval $ac_prev=\$ac_option
1133     ac_prev=
1134     continue
1135   fi
1136
1137   case $ac_option in
1138   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1139   *)    ac_optarg=yes ;;
1140   esac
1141
1142   # Accept the important Cygnus configure options, so we can diagnose typos.
1143
1144   case $ac_dashdash$ac_option in
1145   --)
1146     ac_dashdash=yes ;;
1147
1148   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1149     ac_prev=bindir ;;
1150   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1151     bindir=$ac_optarg ;;
1152
1153   -build | --build | --buil | --bui | --bu)
1154     ac_prev=build_alias ;;
1155   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1156     build_alias=$ac_optarg ;;
1157
1158   -cache-file | --cache-file | --cache-fil | --cache-fi \
1159   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1160     ac_prev=cache_file ;;
1161   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1162   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1163     cache_file=$ac_optarg ;;
1164
1165   --config-cache | -C)
1166     cache_file=config.cache ;;
1167
1168   -datadir | --datadir | --datadi | --datad)
1169     ac_prev=datadir ;;
1170   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1171     datadir=$ac_optarg ;;
1172
1173   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1174   | --dataroo | --dataro | --datar)
1175     ac_prev=datarootdir ;;
1176   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1177   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1178     datarootdir=$ac_optarg ;;
1179
1180   -disable-* | --disable-*)
1181     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1185    { (exit 1); exit 1; }; }
1186     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1187     eval enable_$ac_feature=no ;;
1188
1189   -docdir | --docdir | --docdi | --doc | --do)
1190     ac_prev=docdir ;;
1191   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192     docdir=$ac_optarg ;;
1193
1194   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195     ac_prev=dvidir ;;
1196   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197     dvidir=$ac_optarg ;;
1198
1199   -enable-* | --enable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=\$ac_optarg ;;
1207
1208   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1209   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1210   | --exec | --exe | --ex)
1211     ac_prev=exec_prefix ;;
1212   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1213   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1214   | --exec=* | --exe=* | --ex=*)
1215     exec_prefix=$ac_optarg ;;
1216
1217   -gas | --gas | --ga | --g)
1218     # Obsolete; use --with-gas.
1219     with_gas=yes ;;
1220
1221   -help | --help | --hel | --he | -h)
1222     ac_init_help=long ;;
1223   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1224     ac_init_help=recursive ;;
1225   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1226     ac_init_help=short ;;
1227
1228   -host | --host | --hos | --ho)
1229     ac_prev=host_alias ;;
1230   -host=* | --host=* | --hos=* | --ho=*)
1231     host_alias=$ac_optarg ;;
1232
1233   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234     ac_prev=htmldir ;;
1235   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236   | --ht=*)
1237     htmldir=$ac_optarg ;;
1238
1239   -includedir | --includedir | --includedi | --included | --include \
1240   | --includ | --inclu | --incl | --inc)
1241     ac_prev=includedir ;;
1242   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1243   | --includ=* | --inclu=* | --incl=* | --inc=*)
1244     includedir=$ac_optarg ;;
1245
1246   -infodir | --infodir | --infodi | --infod | --info | --inf)
1247     ac_prev=infodir ;;
1248   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1249     infodir=$ac_optarg ;;
1250
1251   -libdir | --libdir | --libdi | --libd)
1252     ac_prev=libdir ;;
1253   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1254     libdir=$ac_optarg ;;
1255
1256   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1257   | --libexe | --libex | --libe)
1258     ac_prev=libexecdir ;;
1259   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1260   | --libexe=* | --libex=* | --libe=*)
1261     libexecdir=$ac_optarg ;;
1262
1263   -localedir | --localedir | --localedi | --localed | --locale)
1264     ac_prev=localedir ;;
1265   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1266     localedir=$ac_optarg ;;
1267
1268   -localstatedir | --localstatedir | --localstatedi | --localstated \
1269   | --localstate | --localstat | --localsta | --localst | --locals)
1270     ac_prev=localstatedir ;;
1271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1272   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1273     localstatedir=$ac_optarg ;;
1274
1275   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276     ac_prev=mandir ;;
1277   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1278     mandir=$ac_optarg ;;
1279
1280   -nfp | --nfp | --nf)
1281     # Obsolete; use --without-fp.
1282     with_fp=no ;;
1283
1284   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1285   | --no-cr | --no-c | -n)
1286     no_create=yes ;;
1287
1288   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1289   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1290     no_recursion=yes ;;
1291
1292   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1293   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1294   | --oldin | --oldi | --old | --ol | --o)
1295     ac_prev=oldincludedir ;;
1296   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1297   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1298   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1299     oldincludedir=$ac_optarg ;;
1300
1301   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302     ac_prev=prefix ;;
1303   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1304     prefix=$ac_optarg ;;
1305
1306   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1307   | --program-pre | --program-pr | --program-p)
1308     ac_prev=program_prefix ;;
1309   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1310   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1311     program_prefix=$ac_optarg ;;
1312
1313   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1314   | --program-suf | --program-su | --program-s)
1315     ac_prev=program_suffix ;;
1316   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1317   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1318     program_suffix=$ac_optarg ;;
1319
1320   -program-transform-name | --program-transform-name \
1321   | --program-transform-nam | --program-transform-na \
1322   | --program-transform-n | --program-transform- \
1323   | --program-transform | --program-transfor \
1324   | --program-transfo | --program-transf \
1325   | --program-trans | --program-tran \
1326   | --progr-tra | --program-tr | --program-t)
1327     ac_prev=program_transform_name ;;
1328   -program-transform-name=* | --program-transform-name=* \
1329   | --program-transform-nam=* | --program-transform-na=* \
1330   | --program-transform-n=* | --program-transform-=* \
1331   | --program-transform=* | --program-transfor=* \
1332   | --program-transfo=* | --program-transf=* \
1333   | --program-trans=* | --program-tran=* \
1334   | --progr-tra=* | --program-tr=* | --program-t=*)
1335     program_transform_name=$ac_optarg ;;
1336
1337   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338     ac_prev=pdfdir ;;
1339   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1340     pdfdir=$ac_optarg ;;
1341
1342   -psdir | --psdir | --psdi | --psd | --ps)
1343     ac_prev=psdir ;;
1344   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1345     psdir=$ac_optarg ;;
1346
1347   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348   | -silent | --silent | --silen | --sile | --sil)
1349     silent=yes ;;
1350
1351   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1352     ac_prev=sbindir ;;
1353   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1354   | --sbi=* | --sb=*)
1355     sbindir=$ac_optarg ;;
1356
1357   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1358   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1359   | --sharedst | --shareds | --shared | --share | --shar \
1360   | --sha | --sh)
1361     ac_prev=sharedstatedir ;;
1362   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1363   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1364   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1365   | --sha=* | --sh=*)
1366     sharedstatedir=$ac_optarg ;;
1367
1368   -site | --site | --sit)
1369     ac_prev=site ;;
1370   -site=* | --site=* | --sit=*)
1371     site=$ac_optarg ;;
1372
1373   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1374     ac_prev=srcdir ;;
1375   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1376     srcdir=$ac_optarg ;;
1377
1378   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1379   | --syscon | --sysco | --sysc | --sys | --sy)
1380     ac_prev=sysconfdir ;;
1381   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1382   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1383     sysconfdir=$ac_optarg ;;
1384
1385   -target | --target | --targe | --targ | --tar | --ta | --t)
1386     ac_prev=target_alias ;;
1387   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1388     target_alias=$ac_optarg ;;
1389
1390   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1391     verbose=yes ;;
1392
1393   -version | --version | --versio | --versi | --vers | -V)
1394     ac_init_version=: ;;
1395
1396   -with-* | --with-*)
1397     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=\$ac_optarg ;;
1404
1405   -without-* | --without-*)
1406     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1407     # Reject names that are not valid shell variable names.
1408     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409       { echo "$as_me: error: invalid package name: $ac_package" >&2
1410    { (exit 1); exit 1; }; }
1411     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1412     eval with_$ac_package=no ;;
1413
1414   --x)
1415     # Obsolete; use --with-x.
1416     with_x=yes ;;
1417
1418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419   | --x-incl | --x-inc | --x-in | --x-i)
1420     ac_prev=x_includes ;;
1421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423     x_includes=$ac_optarg ;;
1424
1425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427     ac_prev=x_libraries ;;
1428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430     x_libraries=$ac_optarg ;;
1431
1432   -*) { echo "$as_me: error: unrecognized option: $ac_option
1433 Try \`$0 --help' for more information." >&2
1434    { (exit 1); exit 1; }; }
1435     ;;
1436
1437   *=*)
1438     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1439     # Reject names that are not valid shell variable names.
1440     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1441       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1442    { (exit 1); exit 1; }; }
1443     eval $ac_envvar=\$ac_optarg
1444     export $ac_envvar ;;
1445
1446   *)
1447     # FIXME: should be removed in autoconf 3.0.
1448     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1452     ;;
1453
1454   esac
1455 done
1456
1457 if test -n "$ac_prev"; then
1458   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459   { echo "$as_me: error: missing argument to $ac_option" >&2
1460    { (exit 1); exit 1; }; }
1461 fi
1462
1463 # Be sure to have absolute directory names.
1464 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1465                 datadir sysconfdir sharedstatedir localstatedir includedir \
1466                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1467                 libdir localedir mandir
1468 do
1469   eval ac_val=\$$ac_var
1470   case $ac_val in
1471     [\\/$]* | ?:[\\/]* )  continue;;
1472     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1473   esac
1474   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1475    { (exit 1); exit 1; }; }
1476 done
1477
1478 # There might be people who depend on the old broken behavior: `$host'
1479 # used to hold the argument of --host etc.
1480 # FIXME: To remove some day.
1481 build=$build_alias
1482 host=$host_alias
1483 target=$target_alias
1484
1485 # FIXME: To remove some day.
1486 if test "x$host_alias" != x; then
1487   if test "x$build_alias" = x; then
1488     cross_compiling=maybe
1489     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1490     If a cross compiler is detected then cross compile mode will be used." >&2
1491   elif test "x$build_alias" != "x$host_alias"; then
1492     cross_compiling=yes
1493   fi
1494 fi
1495
1496 ac_tool_prefix=
1497 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498
1499 test "$silent" = yes && exec 6>/dev/null
1500
1501
1502 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di=`ls -di .` &&
1504 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505   { echo "$as_me: error: Working directory cannot be determined" >&2
1506    { (exit 1); exit 1; }; }
1507 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1508   { echo "$as_me: error: pwd does not report name of working directory" >&2
1509    { (exit 1); exit 1; }; }
1510
1511
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514   ac_srcdir_defaulted=yes
1515   # Try the directory containing this script, then the parent directory.
1516   ac_confdir=`$as_dirname -- "$0" ||
1517 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518          X"$0" : 'X\(//\)[^/]' \| \
1519          X"$0" : 'X\(//\)$' \| \
1520          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1521 echo X"$0" |
1522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523             s//\1/
1524             q
1525           }
1526           /^X\(\/\/\)[^/].*/{
1527             s//\1/
1528             q
1529           }
1530           /^X\(\/\/\)$/{
1531             s//\1/
1532             q
1533           }
1534           /^X\(\/\).*/{
1535             s//\1/
1536             q
1537           }
1538           s/.*/./; q'`
1539   srcdir=$ac_confdir
1540   if test ! -r "$srcdir/$ac_unique_file"; then
1541     srcdir=..
1542   fi
1543 else
1544   ac_srcdir_defaulted=no
1545 fi
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1549    { (exit 1); exit 1; }; }
1550 fi
1551 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1552 ac_abs_confdir=`(
1553         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1554    { (exit 1); exit 1; }; }
1555         pwd)`
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558   srcdir=.
1559 fi
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1563 case $srcdir in
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 esac
1566 for ac_var in $ac_precious_vars; do
1567   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568   eval ac_env_${ac_var}_value=\$${ac_var}
1569   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571 done
1572
1573 #
1574 # Report the --help message.
1575 #
1576 if test "$ac_init_help" = "long"; then
1577   # Omit some internal or obsolete options to make the list less imposing.
1578   # This message is too long to be a string in the A/UX 3.1 sh.
1579   cat <<_ACEOF
1580 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1581
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587 Defaults for the options are specified in brackets.
1588
1589 Configuration:
1590   -h, --help              display this help and exit
1591       --help=short        display options specific to this package
1592       --help=recursive    display the short help of all the included packages
1593   -V, --version           display version information and exit
1594   -q, --quiet, --silent   do not print \`checking...' messages
1595       --cache-file=FILE   cache test results in FILE [disabled]
1596   -C, --config-cache      alias for \`--cache-file=config.cache'
1597   -n, --no-create         do not create output files
1598       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600 Installation directories:
1601   --prefix=PREFIX         install architecture-independent files in PREFIX
1602                           [$ac_default_prefix]
1603   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                           [PREFIX]
1605
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1610
1611 For better control, use the options below.
1612
1613 Fine tuning of the installation directories:
1614   --bindir=DIR           user executables [EPREFIX/bin]
1615   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1616   --libexecdir=DIR       program executables [EPREFIX/libexec]
1617   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1618   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1619   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1620   --libdir=DIR           object code libraries [EPREFIX/lib]
1621   --includedir=DIR       C header files [PREFIX/include]
1622   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1623   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1624   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1625   --infodir=DIR          info documentation [DATAROOTDIR/info]
1626   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1627   --mandir=DIR           man documentation [DATAROOTDIR/man]
1628   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1629   --htmldir=DIR          html documentation [DOCDIR]
1630   --dvidir=DIR           dvi documentation [DOCDIR]
1631   --pdfdir=DIR           pdf documentation [DOCDIR]
1632   --psdir=DIR            ps documentation [DOCDIR]
1633 _ACEOF
1634
1635   cat <<\_ACEOF
1636
1637 X features:
1638   --x-includes=DIR    X include files are in DIR
1639   --x-libraries=DIR   X library files are in DIR
1640
1641 System types:
1642   --build=BUILD     configure for building on BUILD [guessed]
1643   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1644 _ACEOF
1645 fi
1646
1647 if test -n "$ac_init_help"; then
1648   case $ac_init_help in
1649      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1650    esac
1651   cat <<\_ACEOF
1652
1653 Optional Features:
1654   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1655   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1656   --disable-gui           don't build GUI parts of the library
1657   --enable-monolithic     build wxWidgets as single library
1658   --enable-plugins        build parts of wxWidgets as loadable components
1659   --enable-official_build official build of wxWidgets (win32 DLL only)
1660   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1661   --disable-all-features  disable all optional features to build minimal library
1662   --enable-universal      use wxWidgets GUI controls instead of native ones
1663   --enable-nanox          use NanoX
1664   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1665   --enable-gpe            use GNOME PDA Environment features if possible
1666   --disable-shared        create static library instead of shared
1667   --enable-debug          same as debug_flag and debug_info
1668   --enable-stl            use STL for containers
1669   --enable-std_iostreams  use standard C++ stream classes
1670   --enable-std_string     use standard C++ string classes
1671   --disable-unicode       compile without Unicode support
1672   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1673   --enable-utf8           use UTF-8 representation for strings (Unix only)
1674   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1675   --enable-extended_rtti  use extended RTTI (XTI)
1676   --enable-omf            use OMF object format
1677   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1678   --enable-debug_info     create code with debugging information
1679   --disable-optimise      compile without optimisations
1680   --enable-debug_gdb      create code with extra GDB debugging information
1681   --enable-debug_cntxt    use wxDebugContext
1682   --enable-mem_tracing    create code with memory tracing
1683   --enable-profile        create code with profiling information
1684   --enable-no_rtti        create code without RTTI information
1685   --enable-no_exceptions  create code without C++ exceptions handling
1686   --enable-permissive     compile code disregarding strict ANSI
1687   --enable-no_deps        create code without dependency information
1688   --disable-vararg_macros don't use vararg macros, even if they are supported
1689   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1690   --enable-compat26       enable wxWidgets 2.6 compatibility
1691   --disable-compat28      disable wxWidgets 2.8 compatibility
1692   --disable-rpath         disable use of rpath for uninstalled builds
1693   --enable-objc_uniquifying enable Objective-C class name uniquifying
1694   --disable-visibility    disable use of ELF symbols visibility even if supported
1695   --enable-intl           use internationalization system
1696   --enable-xlocale        use x-locale support (requires wxLocale)
1697   --enable-config         use wxConfig (and derived) classes
1698   --enable-protocols      use wxProtocol and derived classes
1699   --enable-ftp            use wxFTP (requires wxProtocol
1700   --enable-http           use wxHTTP (requires wxProtocol
1701   --enable-fileproto      use wxFileProto class (requires wxProtocol
1702   --enable-sockets        use socket/network classes
1703   --enable-ipv6           enable IPv6 support in wxSocket
1704   --enable-ole            use OLE classes (Win32 only)
1705   --enable-dataobj        use data object classes
1706   --enable-ipc            use interprocess communication (wxSocket etc.)
1707   --enable-baseevtloop    use event loop in console programs too
1708   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1709   --enable-selectloop     use wxSelectDispatcher class
1710   --enable-apple_ieee     use the Apple IEEE codec
1711   --enable-arcstream      use wxArchive streams
1712   --enable-base64         use base64 encoding/decoding functions
1713   --enable-backtrace      use wxStackWalker class for getting backtraces
1714   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1715   --enable-cmdline        use wxCmdLineParser class
1716   --enable-datetime       use wxDateTime class
1717   --enable-debugreport    use wxDebugReport class
1718   --enable-dialupman      use dialup network classes
1719   --enable-dynlib         use wxLibrary class for DLL loading
1720   --enable-dynamicloader  use (new) wxDynamicLibrary class
1721   --enable-exceptions     build exception-safe library
1722   --enable-ffile          use wxFFile class
1723   --enable-file           use wxFile class
1724   --enable-filesystem     use virtual file systems classes
1725   --enable-fontenum       use wxFontEnumerator class
1726   --enable-fontmap        use font encodings conversion classes
1727   --enable-fs_archive     use virtual archive filesystems
1728   --enable-fs_inet        use virtual HTTP/FTP filesystems
1729   --enable-fs_zip         now replaced by fs_archive
1730   --enable-geometry       use geometry class
1731   --enable-log            use logging system
1732   --enable-longlong       use wxLongLong class
1733   --enable-mimetype       use wxMimeTypesManager
1734   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1735   --enable-snglinst       use wxSingleInstanceChecker class
1736   --enable-sound          use wxSound class
1737   --enable-stdpaths       use wxStandardPaths class
1738   --enable-stopwatch      use wxStopWatch class
1739   --enable-streams        use wxStream etc classes
1740   --enable-sysoptions     use wxSystemOptions
1741   --enable-tarstream      use wxTar streams
1742   --enable-textbuf        use wxTextBuffer class
1743   --enable-textfile       use wxTextFile class
1744   --enable-timer          use wxTimer class
1745   --enable-variant        use wxVariant class
1746   --enable-zipstream      use wxZip streams
1747   --enable-url            use wxURL class
1748   --enable-protocol       use wxProtocol class
1749   --enable-protocol-http  HTTP support in wxProtocol
1750   --enable-protocol-ftp   FTP support in wxProtocol
1751   --enable-protocol-file  FILE support in wxProtocol
1752   --enable-threads        use threads
1753   --enable-iniconf        use wxIniConfig (Win32 only)
1754   --enable-regkey         use wxRegKey class (Win32 only)
1755   --enable-docview        use document view architecture
1756   --enable-help           use help subsystem
1757   --enable-mshtmlhelp     use MS HTML Help (win32)
1758   --enable-html           use wxHTML sub-library
1759   --enable-htmlhelp       use wxHTML-based help
1760   --enable-xrc            use XRC resources sub-library
1761   --enable-aui            use AUI docking library
1762   --enable-propgrid       use wxPropertyGrid library
1763   --enable-stc            use wxStyledTextCtrl library
1764   --enable-constraints    use layout-constraints system
1765   --enable-loggui         use standard GUI logger
1766   --enable-logwin         use wxLogWindow
1767   --enable-logdialog      use wxLogDialog
1768   --enable-mdi            use multiple document interface architecture
1769   --enable-mdidoc         use docview architecture with MDI
1770   --enable-mediactrl      use wxMediaCtrl class
1771   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1772   --enable-webkit         use wxWebKitCtrl (Mac)
1773   --enable-richtext       use wxRichTextCtrl
1774   --enable-graphics_ctx   use graphics context 2D drawing API
1775   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1776   --enable-printarch      use printing architecture
1777   --enable-svg            use wxSVGFileDC device context
1778   --enable-clipboard      use wxClipboard class
1779   --enable-dnd            use Drag'n'Drop classes
1780   --enable-metafile       use win32 metafiles
1781   --disable-controls      disable compilation of all standard controls
1782   --enable-accel          use accelerators
1783   --enable-animatectrl    use wxAnimationCtrl class
1784   --enable-bmpbutton      use wxBitmapButton class
1785   --enable-bmpcombobox    use wxBitmapComboBox class
1786   --enable-button         use wxButton class
1787   --enable-calendar       use wxCalendarCtrl class
1788   --enable-caret          use wxCaret class
1789   --enable-checkbox       use wxCheckBox class
1790   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1791   --enable-choice         use wxChoice class
1792   --enable-choicebook     use wxChoicebook class
1793   --enable-collpane       use wxCollapsiblePane class
1794   --enable-colourpicker   use wxColourPickerCtrl class
1795   --enable-combobox       use wxComboBox class
1796   --enable-comboctrl      use wxComboCtrl class
1797   --enable-dataviewctrl   use wxDataViewCtrl class
1798   --enable-datepick       use wxDatePickerCtrl class
1799   --enable-detect_sm      use code to detect X11 session manager
1800   --enable-dirpicker      use wxDirPickerCtrl class
1801   --enable-display        use wxDisplay class
1802   --enable-editablebox    use wxEditableListBox class
1803   --enable-filectrl       use wxFileCtrl class
1804   --enable-filepicker     use wxFilePickerCtrl class
1805   --enable-fontpicker     use wxFontPickerCtrl class
1806   --enable-gauge          use wxGauge class
1807   --enable-grid           use wxGrid class
1808   --enable-headerctrl     use wxHeaderCtrl class
1809   --enable-hyperlink      use wxHyperlinkCtrl class
1810   --enable-imaglist       use wxImageList class
1811   --enable-listbook       use wxListbook class
1812   --enable-listbox        use wxListBox class
1813   --enable-listctrl       use wxListCtrl class
1814   --enable-notebook       use wxNotebook class
1815   --enable-notifmsg       use wxNotificationMessage class
1816   --enable-odcombobox     use wxOwnerDrawnComboBox class
1817   --enable-popupwin       use wxPopUpWindow class
1818   --enable-radiobox       use wxRadioBox class
1819   --enable-radiobtn       use wxRadioButton class
1820   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1821   --enable-sash           use wxSashWindow class
1822   --enable-scrollbar      use wxScrollBar class and scrollable windows
1823   --enable-searchctrl     use wxSearchCtrl class
1824   --enable-slider         use wxSlider class
1825   --enable-spinbtn        use wxSpinButton class
1826   --enable-spinctrl       use wxSpinCtrl class
1827   --enable-splitter       use wxSplitterWindow class
1828   --enable-statbmp        use wxStaticBitmap class
1829   --enable-statbox        use wxStaticBox class
1830   --enable-statline       use wxStaticLine class
1831   --enable-stattext       use wxStaticText class
1832   --enable-statusbar      use wxStatusBar class
1833   --enable-taskbaricon    use wxTaskBarIcon class
1834   --enable-tbarnative     use native wxToolBar class
1835   --enable-textctrl       use wxTextCtrl class
1836   --enable-tipwindow      use wxTipWindow class
1837   --enable-togglebtn      use wxToggleButton class
1838   --enable-toolbar        use wxToolBar class
1839   --enable-toolbook       use wxToolbook class
1840   --enable-treebook       use wxTreebook class
1841   --enable-treectrl       use wxTreeCtrl class
1842   --enable-commondlg      use all common dialogs
1843   --enable-aboutdlg       use wxAboutBox
1844   --enable-choicedlg      use wxChoiceDialog
1845   --enable-coldlg         use wxColourDialog
1846   --enable-filedlg        use wxFileDialog
1847   --enable-finddlg        use wxFindReplaceDialog
1848   --enable-fontdlg        use wxFontDialog
1849   --enable-dirdlg         use wxDirDialog
1850   --enable-msgdlg         use wxMessageDialog
1851   --enable-numberdlg      use wxNumberEntryDialog
1852   --enable-splash         use wxSplashScreen
1853   --enable-textdlg        use wxTextDialog
1854   --enable-tipdlg         use startup tips
1855   --enable-progressdlg    use wxProgressDialog
1856   --enable-wizarddlg      use wxWizard
1857   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1858   --enable-miniframe      use wxMiniFrame class
1859   --enable-tooltips       use wxToolTip class
1860   --enable-splines        use spline drawing code
1861   --enable-mousewheel     use mousewheel
1862   --enable-validators     use wxValidator and derived classes
1863   --enable-busyinfo       use wxBusyInfo
1864   --enable-joystick       use wxJoystick
1865   --enable-metafiles      use wxMetaFile (Win32 only)
1866   --enable-dragimage      use wxDragImage
1867   --enable-accessibility  enable accessibility support
1868   --enable-palette        use wxPalette class
1869   --enable-image          use wxImage class
1870   --enable-gif            use gif images (GIF file format)
1871   --enable-pcx            use pcx images (PCX file format)
1872   --enable-tga            use tga images (TGA file format)
1873   --enable-iff            use iff images (IFF file format)
1874   --enable-pnm            use pnm images (PNM file format)
1875   --enable-xpm            use xpm images (XPM file format)
1876   --enable-ico_cur        use Windows ICO and CUR formats
1877   --enable-dccache        cache temporary wxDC objects (Win32 only)
1878   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1879   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1880   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1881   --enable-wxdib          use wxDIB class (Win32 only)
1882   --enable-autoidman      use automatic ids management
1883   --disable-largefile     omit support for large files
1884   --disable-gtktest       do not try to compile and run a test GTK+ program
1885   --disable-gtktest       Do not try to compile and run a test GTK program
1886   --disable-sdltest       Do not try to compile and run a test SDL program
1887   --enable-omf            use OMF object format (OS/2)
1888   --disable-dependency-tracking
1889                           don't use dependency tracking even if the compiler
1890                           can
1891   --disable-precomp-headers
1892                           don't use precompiled headers even if compiler can
1893
1894 Optional Packages:
1895   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1896   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1897   --without-subdirs       don't generate makefiles for samples/demos/...
1898   --with-flavour=NAME     specify a name to identify this build
1899   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1900   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1901   --with-motif            use Motif/Lesstif
1902   --with-osx_carbon       use Mac OS X (Carbon)
1903   --with-osx_cocoa        use Mac OS X (Cocoa)
1904   --with-mac              use Mac OS X (Default)
1905   --with-cocoa            use Cocoa
1906   --with-wine             use Wine
1907   --with-msw              use MS-Windows
1908   --with-pm               use OS/2 Presentation Manager
1909   --with-mgl              use SciTech MGL
1910   --with-directfb         use DirectFB
1911   --with-microwin         use MicroWindows
1912   --with-x11              use X11
1913   --with-libpng           use libpng (PNG image format)
1914   --with-libjpeg          use libjpeg (JPEG file format)
1915   --with-libtiff          use libtiff (TIFF file format)
1916   --with-libxpm           use libxpm (XPM file format)
1917   --with-libiconv         use libiconv (character conversion)
1918   --with-libmspack        use libmspack (CHM help files loading)
1919   --without-gtkprint      don't use GTK printing support
1920   --without-gnomeprint    don't use GNOME printing libraries
1921   --with-gnomevfs         use GNOME VFS for associating MIME types
1922   --with-hildon           use Hildon framework for Nokia 770
1923   --with-opengl           use OpenGL (or Mesa)
1924   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1925   --with-sdl              use SDL for audio on Unix
1926   --with-regex            enable support for wxRegEx class
1927   --with-zlib             use zlib for LZW compression
1928   --with-expat            enable XML support using expat parser
1929   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1930   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1931   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1932   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1933   --with-x                use the X Window System
1934   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1935   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1936   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1937   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1938   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1939
1940 Some influential environment variables:
1941   CC          C compiler command
1942   CFLAGS      C compiler flags
1943   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1944               nonstandard directory <lib dir>
1945   LIBS        libraries to pass to the linker, e.g. -l<library>
1946   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1947               you have headers in a nonstandard directory <include dir>
1948   CPP         C preprocessor
1949   CXX         C++ compiler command
1950   CXXFLAGS    C++ compiler flags
1951   PKG_CONFIG  path to pkg-config utility
1952   DIRECTFB_CFLAGS
1953               C compiler flags for DIRECTFB, overriding pkg-config
1954   DIRECTFB_LIBS
1955               linker flags for DIRECTFB, overriding pkg-config
1956   XMKMF       Path to xmkmf, Makefile generator for X Window System
1957   PANGOX_CFLAGS
1958               C compiler flags for PANGOX, overriding pkg-config
1959   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1960   PANGOFT2_CFLAGS
1961               C compiler flags for PANGOFT2, overriding pkg-config
1962   PANGOFT2_LIBS
1963               linker flags for PANGOFT2, overriding pkg-config
1964   PANGOXFT_CFLAGS
1965               C compiler flags for PANGOXFT, overriding pkg-config
1966   PANGOXFT_LIBS
1967               linker flags for PANGOXFT, overriding pkg-config
1968   GTKPRINT_CFLAGS
1969               C compiler flags for GTKPRINT, overriding pkg-config
1970   GTKPRINT_LIBS
1971               linker flags for GTKPRINT, overriding pkg-config
1972   LIBGNOMEPRINTUI_CFLAGS
1973               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1974   LIBGNOMEPRINTUI_LIBS
1975               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1976   GNOMEVFS_CFLAGS
1977               C compiler flags for GNOMEVFS, overriding pkg-config
1978   GNOMEVFS_LIBS
1979               linker flags for GNOMEVFS, overriding pkg-config
1980   HILDON_CFLAGS
1981               C compiler flags for HILDON, overriding pkg-config
1982   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1983   CAIRO_CFLAGS
1984               C compiler flags for CAIRO, overriding pkg-config
1985   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1986   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1987   GST_LIBS    linker flags for GST, overriding pkg-config
1988
1989 Use these variables to override the choices made by `configure' or to help
1990 it to find libraries and programs with nonstandard names/locations.
1991
1992 Report bugs to <wx-dev@lists.wxwidgets.org>.
1993 _ACEOF
1994 ac_status=$?
1995 fi
1996
1997 if test "$ac_init_help" = "recursive"; then
1998   # If there are subdirs, report their specific --help.
1999   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2000     test -d "$ac_dir" || continue
2001     ac_builddir=.
2002
2003 case "$ac_dir" in
2004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2005 *)
2006   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2007   # A ".." for each directory in $ac_dir_suffix.
2008   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2009   case $ac_top_builddir_sub in
2010   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2011   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2012   esac ;;
2013 esac
2014 ac_abs_top_builddir=$ac_pwd
2015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2016 # for backward compatibility:
2017 ac_top_builddir=$ac_top_build_prefix
2018
2019 case $srcdir in
2020   .)  # We are building in place.
2021     ac_srcdir=.
2022     ac_top_srcdir=$ac_top_builddir_sub
2023     ac_abs_top_srcdir=$ac_pwd ;;
2024   [\\/]* | ?:[\\/]* )  # Absolute name.
2025     ac_srcdir=$srcdir$ac_dir_suffix;
2026     ac_top_srcdir=$srcdir
2027     ac_abs_top_srcdir=$srcdir ;;
2028   *) # Relative name.
2029     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2030     ac_top_srcdir=$ac_top_build_prefix$srcdir
2031     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2032 esac
2033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2034
2035     cd "$ac_dir" || { ac_status=$?; continue; }
2036     # Check for guested configure.
2037     if test -f "$ac_srcdir/configure.gnu"; then
2038       echo &&
2039       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2040     elif test -f "$ac_srcdir/configure"; then
2041       echo &&
2042       $SHELL "$ac_srcdir/configure" --help=recursive
2043     else
2044       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2045     fi || ac_status=$?
2046     cd "$ac_pwd" || { ac_status=$?; break; }
2047   done
2048 fi
2049
2050 test -n "$ac_init_help" && exit $ac_status
2051 if $ac_init_version; then
2052   cat <<\_ACEOF
2053 wxWidgets configure 2.9.0
2054 generated by GNU Autoconf 2.61
2055
2056 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2057 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2058 This configure script is free software; the Free Software Foundation
2059 gives unlimited permission to copy, distribute and modify it.
2060 _ACEOF
2061   exit
2062 fi
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2066
2067 It was created by wxWidgets $as_me 2.9.0, which was
2068 generated by GNU Autoconf 2.61.  Invocation command line was
2069
2070   $ $0 $@
2071
2072 _ACEOF
2073 exec 5>>config.log
2074 {
2075 cat <<_ASUNAME
2076 ## --------- ##
2077 ## Platform. ##
2078 ## --------- ##
2079
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2088
2089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2096
2097 _ASUNAME
2098
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   echo "PATH: $as_dir"
2105 done
2106 IFS=$as_save_IFS
2107
2108 } >&5
2109
2110 cat >&5 <<_ACEOF
2111
2112
2113 ## ----------- ##
2114 ## Core tests. ##
2115 ## ----------- ##
2116
2117 _ACEOF
2118
2119
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_configure_args=
2126 ac_configure_args0=
2127 ac_configure_args1=
2128 ac_must_keep_next=false
2129 for ac_pass in 1 2
2130 do
2131   for ac_arg
2132   do
2133     case $ac_arg in
2134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136     | -silent | --silent | --silen | --sile | --sil)
2137       continue ;;
2138     *\'*)
2139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2140     esac
2141     case $ac_pass in
2142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2143     2)
2144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2145       if test $ac_must_keep_next = true; then
2146         ac_must_keep_next=false # Got value, back to normal.
2147       else
2148         case $ac_arg in
2149           *=* | --config-cache | -C | -disable-* | --disable-* \
2150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152           | -with-* | --with-* | -without-* | --without-* | --x)
2153             case "$ac_configure_args0 " in
2154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155             esac
2156             ;;
2157           -* ) ac_must_keep_next=true ;;
2158         esac
2159       fi
2160       ac_configure_args="$ac_configure_args '$ac_arg'"
2161       ;;
2162     esac
2163   done
2164 done
2165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2167
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log.  We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174   # Save into config.log some information that might help in debugging.
2175   {
2176     echo
2177
2178     cat <<\_ASBOX
2179 ## ---------------- ##
2180 ## Cache variables. ##
2181 ## ---------------- ##
2182 _ASBOX
2183     echo
2184     # The following way of writing the cache mishandles newlines in values,
2185 (
2186   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187     eval ac_val=\$$ac_var
2188     case $ac_val in #(
2189     *${as_nl}*)
2190       case $ac_var in #(
2191       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2192 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2193       esac
2194       case $ac_var in #(
2195       _ | IFS | as_nl) ;; #(
2196       *) $as_unset $ac_var ;;
2197       esac ;;
2198     esac
2199   done
2200   (set) 2>&1 |
2201     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202     *${as_nl}ac_space=\ *)
2203       sed -n \
2204         "s/'\''/'\''\\\\'\'''\''/g;
2205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206       ;; #(
2207     *)
2208       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209       ;;
2210     esac |
2211     sort
2212 )
2213     echo
2214
2215     cat <<\_ASBOX
2216 ## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##
2219 _ASBOX
2220     echo
2221     for ac_var in $ac_subst_vars
2222     do
2223       eval ac_val=\$$ac_var
2224       case $ac_val in
2225       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226       esac
2227       echo "$ac_var='\''$ac_val'\''"
2228     done | sort
2229     echo
2230
2231     if test -n "$ac_subst_files"; then
2232       cat <<\_ASBOX
2233 ## ------------------- ##
2234 ## File substitutions. ##
2235 ## ------------------- ##
2236 _ASBOX
2237       echo
2238       for ac_var in $ac_subst_files
2239       do
2240         eval ac_val=\$$ac_var
2241         case $ac_val in
2242         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243         esac
2244         echo "$ac_var='\''$ac_val'\''"
2245       done | sort
2246       echo
2247     fi
2248
2249     if test -s confdefs.h; then
2250       cat <<\_ASBOX
2251 ## ----------- ##
2252 ## confdefs.h. ##
2253 ## ----------- ##
2254 _ASBOX
2255       echo
2256       cat confdefs.h
2257       echo
2258     fi
2259     test "$ac_signal" != 0 &&
2260       echo "$as_me: caught signal $ac_signal"
2261     echo "$as_me: exit $exit_status"
2262   } >&5
2263   rm -f core *.core core.conftest.* &&
2264     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265     exit $exit_status
2266 ' 0
2267 for ac_signal in 1 2 13 15; do
2268   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2269 done
2270 ac_signal=0
2271
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2274
2275 # Predefined preprocessor variables.
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2279 _ACEOF
2280
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2284 _ACEOF
2285
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2289 _ACEOF
2290
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_STRING "$PACKAGE_STRING"
2294 _ACEOF
2295
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299 _ACEOF
2300
2301
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer explicitly selected file to automatically selected ones.
2304 if test -n "$CONFIG_SITE"; then
2305   set x "$CONFIG_SITE"
2306 elif test "x$prefix" != xNONE; then
2307   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2308 else
2309   set x "$ac_default_prefix/share/config.site" \
2310         "$ac_default_prefix/etc/config.site"
2311 fi
2312 shift
2313 for ac_site_file
2314 do
2315   if test -r "$ac_site_file"; then
2316     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2317 echo "$as_me: loading site script $ac_site_file" >&6;}
2318     sed 's/^/| /' "$ac_site_file" >&5
2319     . "$ac_site_file"
2320   fi
2321 done
2322
2323 if test -r "$cache_file"; then
2324   # Some versions of bash will fail to source /dev/null (special
2325   # files actually), so we avoid doing that.
2326   if test -f "$cache_file"; then
2327     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2328 echo "$as_me: loading cache $cache_file" >&6;}
2329     case $cache_file in
2330       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331       *)                      . "./$cache_file";;
2332     esac
2333   fi
2334 else
2335   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2336 echo "$as_me: creating cache $cache_file" >&6;}
2337   >$cache_file
2338 fi
2339
2340 # Check that the precious variables saved in the cache have kept the same
2341 # value.
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345   eval ac_new_set=\$ac_env_${ac_var}_set
2346   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347   eval ac_new_val=\$ac_env_${ac_var}_value
2348   case $ac_old_set,$ac_new_set in
2349     set,)
2350       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352       ac_cache_corrupted=: ;;
2353     ,set)
2354       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2355 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356       ac_cache_corrupted=: ;;
2357     ,);;
2358     *)
2359       if test "x$ac_old_val" != "x$ac_new_val"; then
2360         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2361 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2363 echo "$as_me:   former value:  $ac_old_val" >&2;}
2364         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2365 echo "$as_me:   current value: $ac_new_val" >&2;}
2366         ac_cache_corrupted=:
2367       fi;;
2368   esac
2369   # Pass precious variables to config.status.
2370   if test "$ac_new_set" = set; then
2371     case $ac_new_val in
2372     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2373     *) ac_arg=$ac_var=$ac_new_val ;;
2374     esac
2375     case " $ac_configure_args " in
2376       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2377       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2378     esac
2379   fi
2380 done
2381 if $ac_cache_corrupted; then
2382   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2383 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2384   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2385 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2386    { (exit 1); exit 1; }; }
2387 fi
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413 ac_ext=c
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419
2420
2421
2422
2423 ac_aux_dir=
2424 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2425   if test -f "$ac_dir/install-sh"; then
2426     ac_aux_dir=$ac_dir
2427     ac_install_sh="$ac_aux_dir/install-sh -c"
2428     break
2429   elif test -f "$ac_dir/install.sh"; then
2430     ac_aux_dir=$ac_dir
2431     ac_install_sh="$ac_aux_dir/install.sh -c"
2432     break
2433   elif test -f "$ac_dir/shtool"; then
2434     ac_aux_dir=$ac_dir
2435     ac_install_sh="$ac_aux_dir/shtool install -c"
2436     break
2437   fi
2438 done
2439 if test -z "$ac_aux_dir"; then
2440   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2441 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2442    { (exit 1); exit 1; }; }
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2452
2453
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2457 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2458    { (exit 1); exit 1; }; }
2459
2460 { echo "$as_me:$LINENO: checking build system type" >&5
2461 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2462 if test "${ac_cv_build+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   ac_build_alias=$build_alias
2466 test "x$ac_build_alias" = x &&
2467   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2468 test "x$ac_build_alias" = x &&
2469   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2470 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2471    { (exit 1); exit 1; }; }
2472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2473   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2474 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2475    { (exit 1); exit 1; }; }
2476
2477 fi
2478 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2479 echo "${ECHO_T}$ac_cv_build" >&6; }
2480 case $ac_cv_build in
2481 *-*-*) ;;
2482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2483 echo "$as_me: error: invalid value of canonical build" >&2;}
2484    { (exit 1); exit 1; }; };;
2485 esac
2486 build=$ac_cv_build
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_build
2489 shift
2490 build_cpu=$1
2491 build_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 build_os=$*
2496 IFS=$ac_save_IFS
2497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2498
2499
2500 { echo "$as_me:$LINENO: checking host system type" >&5
2501 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2502 if test "${ac_cv_host+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test "x$host_alias" = x; then
2506   ac_cv_host=$ac_cv_build
2507 else
2508   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2509     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2510 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2511    { (exit 1); exit 1; }; }
2512 fi
2513
2514 fi
2515 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2516 echo "${ECHO_T}$ac_cv_host" >&6; }
2517 case $ac_cv_host in
2518 *-*-*) ;;
2519 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2520 echo "$as_me: error: invalid value of canonical host" >&2;}
2521    { (exit 1); exit 1; }; };;
2522 esac
2523 host=$ac_cv_host
2524 ac_save_IFS=$IFS; IFS='-'
2525 set x $ac_cv_host
2526 shift
2527 host_cpu=$1
2528 host_vendor=$2
2529 shift; shift
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2532 host_os=$*
2533 IFS=$ac_save_IFS
2534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2535
2536
2537
2538 HOST_PREFIX="${host_alias}-"
2539 HOST_SUFFIX="-$host_alias"
2540
2541
2542 wx_major_version_number=2
2543 wx_minor_version_number=9
2544 wx_release_number=0
2545 wx_subrelease_number=0
2546
2547 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2548 WX_VERSION=$WX_RELEASE.$wx_release_number
2549 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2550
2551 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2552
2553
2554 wx_top_builddir="`pwd`"
2555
2556
2557
2558
2559 USE_UNIX=1
2560 USE_OS2=0
2561 USE_WIN32=0
2562 USE_DOS=0
2563 USE_BEOS=0
2564 USE_MAC=0
2565
2566 USE_AIX=
2567 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2568 USE_GNU=                            USE_HPUX=
2569 USE_LINUX=
2570 USE_NETBSD=
2571 USE_OPENBSD=
2572 USE_OSF=                            USE_SGI=
2573 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2574 USE_ULTRIX=
2575 USE_UNIXWARE=
2576
2577 USE_ALPHA=
2578
2579 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2580
2581 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2582
2583 DEFAULT_wxUSE_COCOA=0
2584 DEFAULT_wxUSE_GTK=0
2585 DEFAULT_wxUSE_OSX_CARBON=0
2586 DEFAULT_wxUSE_OSX_COCOA=0
2587 DEFAULT_wxUSE_MGL=0
2588 DEFAULT_wxUSE_MICROWIN=0
2589 DEFAULT_wxUSE_MOTIF=0
2590 DEFAULT_wxUSE_MSW=0
2591 DEFAULT_wxUSE_PM=0
2592 DEFAULT_wxUSE_X11=0
2593 DEFAULT_wxUSE_DFB=0
2594
2595 DEFAULT_DEFAULT_wxUSE_COCOA=0
2596 DEFAULT_DEFAULT_wxUSE_GTK=0
2597 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2598 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2599 DEFAULT_DEFAULT_wxUSE_MGL=0
2600 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2601 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2602 DEFAULT_DEFAULT_wxUSE_MSW=0
2603 DEFAULT_DEFAULT_wxUSE_PM=0
2604 DEFAULT_DEFAULT_wxUSE_X11=0
2605 DEFAULT_DEFAULT_wxUSE_DFB=0
2606
2607 PROGRAM_EXT=
2608 SAMPLES_RPATH_FLAG=
2609 SAMPLES_RPATH_POSTLINK=
2610
2611 DEFAULT_STD_FLAG=yes
2612
2613 case "${host}" in
2614   *-hp-hpux* )
2615     USE_HPUX=1
2616     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2617     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2618     cat >>confdefs.h <<\_ACEOF
2619 #define __HPUX__ 1
2620 _ACEOF
2621
2622
2623             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2624   ;;
2625   *-*-linux* )
2626     USE_LINUX=1
2627     cat >>confdefs.h <<\_ACEOF
2628 #define __LINUX__ 1
2629 _ACEOF
2630
2631     TMP=`uname -m`
2632     if test "x$TMP" = "xalpha"; then
2633       USE_ALPHA=1
2634       cat >>confdefs.h <<\_ACEOF
2635 #define __ALPHA__ 1
2636 _ACEOF
2637
2638     fi
2639     DEFAULT_DEFAULT_wxUSE_GTK=1
2640   ;;
2641   *-*-gnu* | *-*-k*bsd*-gnu )
2642     USE_GNU=1
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   *-*-irix5* | *-*-irix6* )
2654     USE_SGI=1
2655     USE_SVR4=1
2656     cat >>confdefs.h <<\_ACEOF
2657 #define __SGI__ 1
2658 _ACEOF
2659
2660     cat >>confdefs.h <<\_ACEOF
2661 #define __SVR4__ 1
2662 _ACEOF
2663
2664     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2665   ;;
2666   *-*-solaris2* )
2667     USE_SUN=1
2668     USE_SOLARIS=1
2669     USE_SVR4=1
2670     cat >>confdefs.h <<\_ACEOF
2671 #define __SUN__ 1
2672 _ACEOF
2673
2674     cat >>confdefs.h <<\_ACEOF
2675 #define __SOLARIS__ 1
2676 _ACEOF
2677
2678     cat >>confdefs.h <<\_ACEOF
2679 #define __SVR4__ 1
2680 _ACEOF
2681
2682     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2683     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2684   ;;
2685   *-*-sunos4* )
2686     USE_SUN=1
2687     USE_SUNOS=1
2688     USE_BSD=1
2689     cat >>confdefs.h <<\_ACEOF
2690 #define __SUN__ 1
2691 _ACEOF
2692
2693     cat >>confdefs.h <<\_ACEOF
2694 #define __SUNOS__ 1
2695 _ACEOF
2696
2697     cat >>confdefs.h <<\_ACEOF
2698 #define __BSD__ 1
2699 _ACEOF
2700
2701     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2702   ;;
2703   *-*-freebsd*)
2704     USE_BSD=1
2705     USE_FREEBSD=1
2706     cat >>confdefs.h <<\_ACEOF
2707 #define __FREEBSD__ 1
2708 _ACEOF
2709
2710     cat >>confdefs.h <<\_ACEOF
2711 #define __BSD__ 1
2712 _ACEOF
2713
2714     DEFAULT_DEFAULT_wxUSE_GTK=1
2715   ;;
2716   *-*-openbsd*|*-*-mirbsd*)
2717     USE_BSD=1
2718     USE_OPENBSD=1
2719     cat >>confdefs.h <<\_ACEOF
2720 #define __OPENBSD__ 1
2721 _ACEOF
2722
2723     cat >>confdefs.h <<\_ACEOF
2724 #define __BSD__ 1
2725 _ACEOF
2726
2727     DEFAULT_DEFAULT_wxUSE_GTK=1
2728   ;;
2729   *-*-netbsd*)
2730     USE_BSD=1
2731     USE_NETBSD=1
2732     cat >>confdefs.h <<\_ACEOF
2733 #define __NETBSD__ 1
2734 _ACEOF
2735
2736     cat >>confdefs.h <<\_ACEOF
2737 #define __BSD__ 1
2738 _ACEOF
2739
2740     DEFAULT_DEFAULT_wxUSE_GTK=1
2741     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2742
2743             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2744   ;;
2745   *-*-osf* )
2746     USE_ALPHA=1
2747     USE_OSF=1
2748     cat >>confdefs.h <<\_ACEOF
2749 #define __ALPHA__ 1
2750 _ACEOF
2751
2752     cat >>confdefs.h <<\_ACEOF
2753 #define __OSF__ 1
2754 _ACEOF
2755
2756     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2757     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2758   ;;
2759   *-*-dgux5* )
2760     USE_ALPHA=1
2761     USE_SVR4=1
2762     cat >>confdefs.h <<\_ACEOF
2763 #define __ALPHA__ 1
2764 _ACEOF
2765
2766     cat >>confdefs.h <<\_ACEOF
2767 #define __SVR4__ 1
2768 _ACEOF
2769
2770     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2771   ;;
2772   *-*-sysv5* )
2773     USE_SYSV=1
2774     USE_SVR4=1
2775     cat >>confdefs.h <<\_ACEOF
2776 #define __SYSV__ 1
2777 _ACEOF
2778
2779     cat >>confdefs.h <<\_ACEOF
2780 #define __SVR4__ 1
2781 _ACEOF
2782
2783     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2784   ;;
2785   *-*-aix* )
2786     USE_AIX=1
2787     USE_SYSV=1
2788     USE_SVR4=1
2789     cat >>confdefs.h <<\_ACEOF
2790 #define __AIX__ 1
2791 _ACEOF
2792
2793     cat >>confdefs.h <<\_ACEOF
2794 #define __SYSV__ 1
2795 _ACEOF
2796
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __SVR4__ 1
2799 _ACEOF
2800
2801     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2802   ;;
2803
2804   *-*-*UnixWare*)
2805     USE_SYSV=1
2806     USE_SVR4=1
2807     USE_UNIXWARE=1
2808     cat >>confdefs.h <<\_ACEOF
2809 #define __UNIXWARE__ 1
2810 _ACEOF
2811
2812   ;;
2813
2814   *-*-cygwin* | *-*-mingw32* )
2815                 PROGRAM_EXT=".exe"
2816     DEFAULT_DEFAULT_wxUSE_MSW=1
2817   ;;
2818
2819   *-pc-msdosdjgpp )
2820     USE_UNIX=0
2821     USE_DOS=1
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __DOS__ 1
2824 _ACEOF
2825
2826     PROGRAM_EXT=".exe"
2827     DEFAULT_DEFAULT_wxUSE_MGL=1
2828   ;;
2829
2830   *-pc-os2_emx | *-pc-os2-emx )
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __EMX__ 1
2833 _ACEOF
2834
2835     USE_OS2=1
2836     cat >>confdefs.h <<\_ACEOF
2837 #define __OS2__ 1
2838 _ACEOF
2839
2840     PROGRAM_EXT=".exe"
2841     DEFAULT_DEFAULT_wxUSE_PM=1
2842         CXX=gcc
2843     LDFLAGS="$LDFLAGS -Zcrtdll"
2844                         ac_executable_extensions=".exe"
2845     export ac_executable_extensions
2846             ac_save_IFS="$IFS"
2847     IFS='\\'
2848     ac_TEMP_PATH=
2849     for ac_dir in $PATH; do
2850       IFS=$ac_save_IFS
2851       if test -z "$ac_TEMP_PATH"; then
2852         ac_TEMP_PATH="$ac_dir"
2853       else
2854         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2855       fi
2856     done
2857     export PATH="$ac_TEMP_PATH"
2858     unset ac_TEMP_PATH
2859     DEFAULT_STD_FLAG=no
2860   ;;
2861
2862   *-*-darwin* )
2863         USE_BSD=1
2864     USE_DARWIN=1
2865     cat >>confdefs.h <<\_ACEOF
2866 #define __BSD__ 1
2867 _ACEOF
2868
2869     cat >>confdefs.h <<\_ACEOF
2870 #define __DARWIN__ 1
2871 _ACEOF
2872
2873     cat >>confdefs.h <<\_ACEOF
2874 #define TARGET_CARBON 1
2875 _ACEOF
2876
2877     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2878     DEFAULT_STD_FLAG=no
2879   ;;
2880   powerpc-apple-macos* )
2881         USE_UNIX=0
2882             ac_cv_c_bigendian=yes
2883             DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2884     DEFAULT_STD_FLAG=no
2885   ;;
2886
2887   *-*-beos* )
2888         USE_BEOS=1
2889     cat >>confdefs.h <<\_ACEOF
2890 #define __BEOS__ 1
2891 _ACEOF
2892
2893   ;;
2894
2895   *)
2896     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2897 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2898     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2899 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2900
2901     DEFAULT_DEFAULT_wxUSE_X11=1
2902     DEFAULT_wxUSE_SHARED=no
2903 esac
2904
2905
2906
2907 DEFAULT_wxUSE_ALL_FEATURES=yes
2908
2909 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2910 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2911
2912 DEFAULT_wxUSE_DMALLOC=no
2913 DEFAULT_wxUSE_LIBGNOMEVFS=no
2914 DEFAULT_wxUSE_LIBHILDON=no
2915 DEFAULT_wxUSE_LIBMSPACK=no
2916 DEFAULT_wxUSE_LIBSDL=no
2917
2918 DEFAULT_wxUSE_ACCESSIBILITY=no
2919 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2920 DEFAULT_wxUSE_IPV6=no
2921 DEFAULT_wxUSE_GSTREAMER8=no
2922
2923 DEFAULT_wxUSE_UNICODE_UTF8=auto
2924 DEFAULT_wxUSE_OPENGL=auto
2925 DEFAULT_wxUSE_MEDIACTRL=auto
2926
2927 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2928
2929 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2930
2931 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2932
2933 DEFAULT_wxUSE_GTK2=yes
2934
2935 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2936
2937
2938
2939
2940
2941           enablestring=disable
2942           defaultval=
2943           if test -z "$defaultval"; then
2944               if test x"$enablestring" = xdisable; then
2945                   defaultval=yes
2946               else
2947                   defaultval=no
2948               fi
2949           fi
2950
2951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2952 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2953           # Check whether --enable-gui was given.
2954 if test "${enable_gui+set}" = set; then
2955   enableval=$enable_gui;
2956                           if test "$enableval" = yes; then
2957                             wx_cv_use_gui='wxUSE_GUI=yes'
2958                           else
2959                             wx_cv_use_gui='wxUSE_GUI=no'
2960                           fi
2961
2962 else
2963
2964                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2965
2966 fi
2967
2968
2969           eval "$wx_cv_use_gui"
2970
2971           if test x"$enablestring" = xdisable; then
2972             if test $wxUSE_GUI = yes; then
2973               result=no
2974             else
2975               result=yes
2976             fi
2977           else
2978             result=$wxUSE_GUI
2979           fi
2980
2981           { echo "$as_me:$LINENO: result: $result" >&5
2982 echo "${ECHO_T}$result" >&6; }
2983
2984
2985           enablestring=
2986           defaultval=
2987           if test -z "$defaultval"; then
2988               if test x"$enablestring" = xdisable; then
2989                   defaultval=yes
2990               else
2991                   defaultval=no
2992               fi
2993           fi
2994
2995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2996 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
2997           # Check whether --enable-monolithic was given.
2998 if test "${enable_monolithic+set}" = set; then
2999   enableval=$enable_monolithic;
3000                           if test "$enableval" = yes; then
3001                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3002                           else
3003                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3004                           fi
3005
3006 else
3007
3008                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3009
3010 fi
3011
3012
3013           eval "$wx_cv_use_monolithic"
3014
3015           if test x"$enablestring" = xdisable; then
3016             if test $wxUSE_MONOLITHIC = yes; then
3017               result=no
3018             else
3019               result=yes
3020             fi
3021           else
3022             result=$wxUSE_MONOLITHIC
3023           fi
3024
3025           { echo "$as_me:$LINENO: result: $result" >&5
3026 echo "${ECHO_T}$result" >&6; }
3027
3028
3029           enablestring=
3030           defaultval=
3031           if test -z "$defaultval"; then
3032               if test x"$enablestring" = xdisable; then
3033                   defaultval=yes
3034               else
3035                   defaultval=no
3036               fi
3037           fi
3038
3039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3040 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3041           # Check whether --enable-plugins was given.
3042 if test "${enable_plugins+set}" = set; then
3043   enableval=$enable_plugins;
3044                           if test "$enableval" = yes; then
3045                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3046                           else
3047                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3048                           fi
3049
3050 else
3051
3052                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3053
3054 fi
3055
3056
3057           eval "$wx_cv_use_plugins"
3058
3059           if test x"$enablestring" = xdisable; then
3060             if test $wxUSE_PLUGINS = yes; then
3061               result=no
3062             else
3063               result=yes
3064             fi
3065           else
3066             result=$wxUSE_PLUGINS
3067           fi
3068
3069           { echo "$as_me:$LINENO: result: $result" >&5
3070 echo "${ECHO_T}$result" >&6; }
3071
3072
3073           withstring=without
3074           defaultval=$wxUSE_ALL_FEATURES
3075           if test -z "$defaultval"; then
3076               if test x"$withstring" = xwithout; then
3077                   defaultval=yes
3078               else
3079                   defaultval=no
3080               fi
3081           fi
3082           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3083 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3084
3085 # Check whether --with-subdirs was given.
3086 if test "${with_subdirs+set}" = set; then
3087   withval=$with_subdirs;
3088                         if test "$withval" = yes; then
3089                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3090                         else
3091                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3092                         fi
3093
3094 else
3095
3096                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3097
3098 fi
3099
3100
3101           eval "$wx_cv_use_subdirs"
3102
3103           if test x"$withstring" = xwithout; then
3104             if test $wxWITH_SUBDIRS = yes; then
3105               result=no
3106             else
3107               result=yes
3108             fi
3109           else
3110             result=$wxWITH_SUBDIRS
3111           fi
3112
3113           { echo "$as_me:$LINENO: result: $result" >&5
3114 echo "${ECHO_T}$result" >&6; }
3115
3116
3117 # Check whether --with-flavour was given.
3118 if test "${with_flavour+set}" = set; then
3119   withval=$with_flavour; WX_FLAVOUR="$withval"
3120 fi
3121
3122
3123           enablestring=
3124           defaultval=
3125           if test -z "$defaultval"; then
3126               if test x"$enablestring" = xdisable; then
3127                   defaultval=yes
3128               else
3129                   defaultval=no
3130               fi
3131           fi
3132
3133           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3134 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3135           # Check whether --enable-official_build was given.
3136 if test "${enable_official_build+set}" = set; then
3137   enableval=$enable_official_build;
3138                           if test "$enableval" = yes; then
3139                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3140                           else
3141                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3142                           fi
3143
3144 else
3145
3146                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3147
3148 fi
3149
3150
3151           eval "$wx_cv_use_official_build"
3152
3153           if test x"$enablestring" = xdisable; then
3154             if test $wxUSE_OFFICIAL_BUILD = yes; then
3155               result=no
3156             else
3157               result=yes
3158             fi
3159           else
3160             result=$wxUSE_OFFICIAL_BUILD
3161           fi
3162
3163           { echo "$as_me:$LINENO: result: $result" >&5
3164 echo "${ECHO_T}$result" >&6; }
3165
3166 # Check whether --enable-vendor was given.
3167 if test "${enable_vendor+set}" = set; then
3168   enableval=$enable_vendor; VENDOR="$enableval"
3169 fi
3170
3171 if test "x$VENDOR" = "x"; then
3172     VENDOR="custom"
3173 fi
3174
3175
3176           enablestring=disable
3177           defaultval=
3178           if test -z "$defaultval"; then
3179               if test x"$enablestring" = xdisable; then
3180                   defaultval=yes
3181               else
3182                   defaultval=no
3183               fi
3184           fi
3185
3186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3187 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3188           # Check whether --enable-all-features was given.
3189 if test "${enable_all_features+set}" = set; then
3190   enableval=$enable_all_features;
3191                           if test "$enableval" = yes; then
3192                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3193                           else
3194                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3195                           fi
3196
3197 else
3198
3199                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3200
3201 fi
3202
3203
3204           eval "$wx_cv_use_all_features"
3205
3206           if test x"$enablestring" = xdisable; then
3207             if test $wxUSE_ALL_FEATURES = yes; then
3208               result=no
3209             else
3210               result=yes
3211             fi
3212           else
3213             result=$wxUSE_ALL_FEATURES
3214           fi
3215
3216           { echo "$as_me:$LINENO: result: $result" >&5
3217 echo "${ECHO_T}$result" >&6; }
3218
3219
3220 if test "$wxUSE_ALL_FEATURES" = "no"; then
3221                     DEFAULT_wxUSE_MEDIACTRL=no
3222 fi
3223
3224
3225 if test "$wxUSE_GUI" = "yes"; then
3226
3227
3228           enablestring=
3229           defaultval=
3230           if test -z "$defaultval"; then
3231               if test x"$enablestring" = xdisable; then
3232                   defaultval=yes
3233               else
3234                   defaultval=no
3235               fi
3236           fi
3237
3238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3239 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3240           # Check whether --enable-universal was given.
3241 if test "${enable_universal+set}" = set; then
3242   enableval=$enable_universal;
3243                           if test "$enableval" = yes; then
3244                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3245                           else
3246                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3247                           fi
3248
3249 else
3250
3251                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3252
3253 fi
3254
3255
3256           eval "$wx_cv_use_universal"
3257
3258           if test x"$enablestring" = xdisable; then
3259             if test $wxUSE_UNIVERSAL = yes; then
3260               result=no
3261             else
3262               result=yes
3263             fi
3264           else
3265             result=$wxUSE_UNIVERSAL
3266           fi
3267
3268           { echo "$as_me:$LINENO: result: $result" >&5
3269 echo "${ECHO_T}$result" >&6; }
3270
3271 if test "$wxUSE_UNIVERSAL" = "yes"; then
3272
3273 # Check whether --with-themes was given.
3274 if test "${with_themes+set}" = set; then
3275   withval=$with_themes; wxUNIV_THEMES="$withval"
3276 fi
3277
3278 fi
3279
3280
3281 # Check whether --with-gtk was given.
3282 if test "${with_gtk+set}" = set; then
3283   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3284 fi
3285
3286
3287 # Check whether --with-motif was given.
3288 if test "${with_motif+set}" = set; then
3289   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3290 fi
3291
3292
3293 # Check whether --with-osx_carbon was given.
3294 if test "${with_osx_carbon+set}" = set; then
3295   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3296 fi
3297
3298
3299 # Check whether --with-osx_cocoa was given.
3300 if test "${with_osx_cocoa+set}" = set; then
3301   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=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_OSX_CARBON="$withval" CACHE_OSX_CARBON=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
3458
3459 # In Wine, we need to default to MSW, not GTK or MOTIF
3460 if test "$wxUSE_WINE" = "yes"; then
3461     DEFAULT_DEFAULT_wxUSE_GTK=0
3462     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3463     DEFAULT_DEFAULT_wxUSE_MSW=1
3464     wxUSE_SHARED=no
3465     CC=${CC:-winegcc}
3466     CXX=${CXX:-wineg++}
3467 fi
3468
3469
3470 if test "$wxUSE_GUI" = "yes"; then
3471
3472     if test "$USE_BEOS" = 1; then
3473         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3474 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3475    { (exit 1); exit 1; }; }
3476     fi
3477
3478     if test "$TOOLKIT_GIVEN" = 1; then
3479             for toolkit in $ALL_TOOLKITS; do
3480         var=wxUSE_$toolkit
3481         eval "value=\$${var}"
3482         if test "x$value" = "xno"; then
3483           eval "$var=0"
3484         elif test "x$value" != "x"; then
3485           eval "$var=1"
3486         fi
3487
3488         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3489           eval "wx${toolkit}_VERSION=$value"
3490         fi
3491       done
3492     else
3493             for toolkit in $ALL_TOOLKITS; do
3494         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3495         eval "wxUSE_$toolkit=\$${var}"
3496       done
3497     fi
3498
3499             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3500                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3501                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3502
3503         case "${host}" in
3504       *-pc-os2_emx | *-pc-os2-emx )
3505         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3506     esac
3507
3508     case "$NUM_TOOLKITS" in
3509       1)
3510       ;;
3511       0)
3512         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3513 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3514    { (exit 1); exit 1; }; }
3515       ;;
3516       *)
3517         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3518 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3519    { (exit 1); exit 1; }; }
3520     esac
3521
3522     # to be removed when --disable-gtk2 isn't needed
3523     if test "x$wxUSE_GTK2" = "xyes"; then
3524         wxGTK_VERSION=2
3525     elif test "x$wxUSE_GTK2" = "xno"; then
3526         wxGTK_VERSION=1
3527     fi
3528
3529     for toolkit in $ALL_TOOLKITS; do
3530         var=wxUSE_$toolkit
3531         eval "value=\$${var}"
3532         if test "$value" = 1; then
3533           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3534           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3535 echo "${ECHO_T}$toolkit_echo" >&6; }
3536         fi
3537     done
3538 else
3539     if test "x$host_alias" != "x"; then
3540         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3541 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3542     else
3543         { echo "$as_me:$LINENO: result: base only" >&5
3544 echo "${ECHO_T}base only" >&6; }
3545     fi
3546 fi
3547
3548 wxUSE_MAC=0
3549 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3550     wxUSE_MAC=1
3551 fi
3552
3553
3554
3555           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3556 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3557
3558 # Check whether --with-libpng was given.
3559 if test "${with_libpng+set}" = set; then
3560   withval=$with_libpng;
3561                         if test "$withval" = yes; then
3562                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3563                         elif test "$withval" = no; then
3564                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3565                         elif test "$withval" = sys; then
3566                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3567                         elif test "$withval" = builtin; then
3568                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3569                         else
3570                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3571 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3572    { (exit 1); exit 1; }; }
3573                         fi
3574
3575 else
3576
3577                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3578
3579 fi
3580
3581
3582           eval "$wx_cv_use_libpng"
3583
3584           if test "$wxUSE_LIBPNG" = yes; then
3585             { echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6; }
3587           elif test "$wxUSE_LIBPNG" = no; then
3588             { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3590           elif test "$wxUSE_LIBPNG" = sys; then
3591             { echo "$as_me:$LINENO: result: system version" >&5
3592 echo "${ECHO_T}system version" >&6; }
3593           elif test "$wxUSE_LIBPNG" = builtin; then
3594             { echo "$as_me:$LINENO: result: builtin version" >&5
3595 echo "${ECHO_T}builtin version" >&6; }
3596           else
3597             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3598 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3599    { (exit 1); exit 1; }; }
3600           fi
3601
3602
3603           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3604 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3605
3606 # Check whether --with-libjpeg was given.
3607 if test "${with_libjpeg+set}" = set; then
3608   withval=$with_libjpeg;
3609                         if test "$withval" = yes; then
3610                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3611                         elif test "$withval" = no; then
3612                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3613                         elif test "$withval" = sys; then
3614                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3615                         elif test "$withval" = builtin; then
3616                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3617                         else
3618                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3619 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3620    { (exit 1); exit 1; }; }
3621                         fi
3622
3623 else
3624
3625                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3626
3627 fi
3628
3629
3630           eval "$wx_cv_use_libjpeg"
3631
3632           if test "$wxUSE_LIBJPEG" = yes; then
3633             { echo "$as_me:$LINENO: result: yes" >&5
3634 echo "${ECHO_T}yes" >&6; }
3635           elif test "$wxUSE_LIBJPEG" = no; then
3636             { echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6; }
3638           elif test "$wxUSE_LIBJPEG" = sys; then
3639             { echo "$as_me:$LINENO: result: system version" >&5
3640 echo "${ECHO_T}system version" >&6; }
3641           elif test "$wxUSE_LIBJPEG" = builtin; then
3642             { echo "$as_me:$LINENO: result: builtin version" >&5
3643 echo "${ECHO_T}builtin version" >&6; }
3644           else
3645             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3646 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3647    { (exit 1); exit 1; }; }
3648           fi
3649
3650
3651           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3652 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3653
3654 # Check whether --with-libtiff was given.
3655 if test "${with_libtiff+set}" = set; then
3656   withval=$with_libtiff;
3657                         if test "$withval" = yes; then
3658                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3659                         elif test "$withval" = no; then
3660                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3661                         elif test "$withval" = sys; then
3662                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3663                         elif test "$withval" = builtin; then
3664                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3665                         else
3666                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3667 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3668    { (exit 1); exit 1; }; }
3669                         fi
3670
3671 else
3672
3673                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3674
3675 fi
3676
3677
3678           eval "$wx_cv_use_libtiff"
3679
3680           if test "$wxUSE_LIBTIFF" = yes; then
3681             { echo "$as_me:$LINENO: result: yes" >&5
3682 echo "${ECHO_T}yes" >&6; }
3683           elif test "$wxUSE_LIBTIFF" = no; then
3684             { echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6; }
3686           elif test "$wxUSE_LIBTIFF" = sys; then
3687             { echo "$as_me:$LINENO: result: system version" >&5
3688 echo "${ECHO_T}system version" >&6; }
3689           elif test "$wxUSE_LIBTIFF" = builtin; then
3690             { echo "$as_me:$LINENO: result: builtin version" >&5
3691 echo "${ECHO_T}builtin version" >&6; }
3692           else
3693             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3694 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3695    { (exit 1); exit 1; }; }
3696           fi
3697
3698
3699           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3700 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3701
3702 # Check whether --with-libxpm was given.
3703 if test "${with_libxpm+set}" = set; then
3704   withval=$with_libxpm;
3705                         if test "$withval" = yes; then
3706                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3707                         elif test "$withval" = no; then
3708                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3709                         elif test "$withval" = sys; then
3710                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3711                         elif test "$withval" = builtin; then
3712                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3713                         else
3714                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3715 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3716    { (exit 1); exit 1; }; }
3717                         fi
3718
3719 else
3720
3721                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3722
3723 fi
3724
3725
3726           eval "$wx_cv_use_libxpm"
3727
3728           if test "$wxUSE_LIBXPM" = yes; then
3729             { echo "$as_me:$LINENO: result: yes" >&5
3730 echo "${ECHO_T}yes" >&6; }
3731           elif test "$wxUSE_LIBXPM" = no; then
3732             { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3734           elif test "$wxUSE_LIBXPM" = sys; then
3735             { echo "$as_me:$LINENO: result: system version" >&5
3736 echo "${ECHO_T}system version" >&6; }
3737           elif test "$wxUSE_LIBXPM" = builtin; then
3738             { echo "$as_me:$LINENO: result: builtin version" >&5
3739 echo "${ECHO_T}builtin version" >&6; }
3740           else
3741             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3742 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3743    { (exit 1); exit 1; }; }
3744           fi
3745
3746
3747           withstring=
3748           defaultval=$wxUSE_ALL_FEATURES
3749           if test -z "$defaultval"; then
3750               if test x"$withstring" = xwithout; then
3751                   defaultval=yes
3752               else
3753                   defaultval=no
3754               fi
3755           fi
3756           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3757 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3758
3759 # Check whether --with-libiconv was given.
3760 if test "${with_libiconv+set}" = set; then
3761   withval=$with_libiconv;
3762                         if test "$withval" = yes; then
3763                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3764                         else
3765                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3766                         fi
3767
3768 else
3769
3770                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3771
3772 fi
3773
3774
3775           eval "$wx_cv_use_libiconv"
3776
3777           if test x"$withstring" = xwithout; then
3778             if test $wxUSE_LIBICONV = yes; then
3779               result=no
3780             else
3781               result=yes
3782             fi
3783           else
3784             result=$wxUSE_LIBICONV
3785           fi
3786
3787           { echo "$as_me:$LINENO: result: $result" >&5
3788 echo "${ECHO_T}$result" >&6; }
3789
3790
3791           withstring=
3792           defaultval=$wxUSE_ALL_FEATURES
3793           if test -z "$defaultval"; then
3794               if test x"$withstring" = xwithout; then
3795                   defaultval=yes
3796               else
3797                   defaultval=no
3798               fi
3799           fi
3800           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3801 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3802
3803 # Check whether --with-libmspack was given.
3804 if test "${with_libmspack+set}" = set; then
3805   withval=$with_libmspack;
3806                         if test "$withval" = yes; then
3807                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3808                         else
3809                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3810                         fi
3811
3812 else
3813
3814                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3815
3816 fi
3817
3818
3819           eval "$wx_cv_use_libmspack"
3820
3821           if test x"$withstring" = xwithout; then
3822             if test $wxUSE_LIBMSPACK = yes; then
3823               result=no
3824             else
3825               result=yes
3826             fi
3827           else
3828             result=$wxUSE_LIBMSPACK
3829           fi
3830
3831           { echo "$as_me:$LINENO: result: $result" >&5
3832 echo "${ECHO_T}$result" >&6; }
3833
3834
3835           withstring=without
3836           defaultval=$wxUSE_ALL_FEATURES
3837           if test -z "$defaultval"; then
3838               if test x"$withstring" = xwithout; then
3839                   defaultval=yes
3840               else
3841                   defaultval=no
3842               fi
3843           fi
3844           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3845 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3846
3847 # Check whether --with-gtkprint was given.
3848 if test "${with_gtkprint+set}" = set; then
3849   withval=$with_gtkprint;
3850                         if test "$withval" = yes; then
3851                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3852                         else
3853                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3854                         fi
3855
3856 else
3857
3858                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3859
3860 fi
3861
3862
3863           eval "$wx_cv_use_gtkprint"
3864
3865           if test x"$withstring" = xwithout; then
3866             if test $wxUSE_GTKPRINT = yes; then
3867               result=no
3868             else
3869               result=yes
3870             fi
3871           else
3872             result=$wxUSE_GTKPRINT
3873           fi
3874
3875           { echo "$as_me:$LINENO: result: $result" >&5
3876 echo "${ECHO_T}$result" >&6; }
3877
3878
3879           withstring=without
3880           defaultval=$wxUSE_ALL_FEATURES
3881           if test -z "$defaultval"; then
3882               if test x"$withstring" = xwithout; then
3883                   defaultval=yes
3884               else
3885                   defaultval=no
3886               fi
3887           fi
3888           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3889 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3890
3891 # Check whether --with-gnomeprint was given.
3892 if test "${with_gnomeprint+set}" = set; then
3893   withval=$with_gnomeprint;
3894                         if test "$withval" = yes; then
3895                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3896                         else
3897                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3898                         fi
3899
3900 else
3901
3902                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3903
3904 fi
3905
3906
3907           eval "$wx_cv_use_gnomeprint"
3908
3909           if test x"$withstring" = xwithout; then
3910             if test $wxUSE_LIBGNOMEPRINT = yes; then
3911               result=no
3912             else
3913               result=yes
3914             fi
3915           else
3916             result=$wxUSE_LIBGNOMEPRINT
3917           fi
3918
3919           { echo "$as_me:$LINENO: result: $result" >&5
3920 echo "${ECHO_T}$result" >&6; }
3921
3922
3923           withstring=
3924           defaultval=$wxUSE_ALL_FEATURES
3925           if test -z "$defaultval"; then
3926               if test x"$withstring" = xwithout; then
3927                   defaultval=yes
3928               else
3929                   defaultval=no
3930               fi
3931           fi
3932           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3933 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3934
3935 # Check whether --with-gnomevfs was given.
3936 if test "${with_gnomevfs+set}" = set; then
3937   withval=$with_gnomevfs;
3938                         if test "$withval" = yes; then
3939                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3940                         else
3941                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3942                         fi
3943
3944 else
3945
3946                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3947
3948 fi
3949
3950
3951           eval "$wx_cv_use_gnomevfs"
3952
3953           if test x"$withstring" = xwithout; then
3954             if test $wxUSE_LIBGNOMEVFS = yes; then
3955               result=no
3956             else
3957               result=yes
3958             fi
3959           else
3960             result=$wxUSE_LIBGNOMEVFS
3961           fi
3962
3963           { echo "$as_me:$LINENO: result: $result" >&5
3964 echo "${ECHO_T}$result" >&6; }
3965
3966
3967           withstring=
3968           defaultval=$wxUSE_ALL_FEATURES
3969           if test -z "$defaultval"; then
3970               if test x"$withstring" = xwithout; then
3971                   defaultval=yes
3972               else
3973                   defaultval=no
3974               fi
3975           fi
3976           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3977 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3978
3979 # Check whether --with-hildon was given.
3980 if test "${with_hildon+set}" = set; then
3981   withval=$with_hildon;
3982                         if test "$withval" = yes; then
3983                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3984                         else
3985                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3986                         fi
3987
3988 else
3989
3990                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3991
3992 fi
3993
3994
3995           eval "$wx_cv_use_hildon"
3996
3997           if test x"$withstring" = xwithout; then
3998             if test $wxUSE_LIBHILDON = yes; then
3999               result=no
4000             else
4001               result=yes
4002             fi
4003           else
4004             result=$wxUSE_LIBHILDON
4005           fi
4006
4007           { echo "$as_me:$LINENO: result: $result" >&5
4008 echo "${ECHO_T}$result" >&6; }
4009
4010
4011           withstring=
4012           defaultval=$wxUSE_ALL_FEATURES
4013           if test -z "$defaultval"; then
4014               if test x"$withstring" = xwithout; then
4015                   defaultval=yes
4016               else
4017                   defaultval=no
4018               fi
4019           fi
4020           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4021 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4022
4023 # Check whether --with-opengl was given.
4024 if test "${with_opengl+set}" = set; then
4025   withval=$with_opengl;
4026                         if test "$withval" = yes; then
4027                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4028                         else
4029                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4030                         fi
4031
4032 else
4033
4034                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4035
4036 fi
4037
4038
4039           eval "$wx_cv_use_opengl"
4040
4041           if test x"$withstring" = xwithout; then
4042             if test $wxUSE_OPENGL = yes; then
4043               result=no
4044             else
4045               result=yes
4046             fi
4047           else
4048             result=$wxUSE_OPENGL
4049           fi
4050
4051           { echo "$as_me:$LINENO: result: $result" >&5
4052 echo "${ECHO_T}$result" >&6; }
4053
4054
4055 fi
4056
4057
4058           withstring=
4059           defaultval=$wxUSE_ALL_FEATURES
4060           if test -z "$defaultval"; then
4061               if test x"$withstring" = xwithout; then
4062                   defaultval=yes
4063               else
4064                   defaultval=no
4065               fi
4066           fi
4067           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4068 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4069
4070 # Check whether --with-dmalloc was given.
4071 if test "${with_dmalloc+set}" = set; then
4072   withval=$with_dmalloc;
4073                         if test "$withval" = yes; then
4074                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4075                         else
4076                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4077                         fi
4078
4079 else
4080
4081                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4082
4083 fi
4084
4085
4086           eval "$wx_cv_use_dmalloc"
4087
4088           if test x"$withstring" = xwithout; then
4089             if test $wxUSE_DMALLOC = yes; then
4090               result=no
4091             else
4092               result=yes
4093             fi
4094           else
4095             result=$wxUSE_DMALLOC
4096           fi
4097
4098           { echo "$as_me:$LINENO: result: $result" >&5
4099 echo "${ECHO_T}$result" >&6; }
4100
4101
4102           withstring=
4103           defaultval=$wxUSE_ALL_FEATURES
4104           if test -z "$defaultval"; then
4105               if test x"$withstring" = xwithout; then
4106                   defaultval=yes
4107               else
4108                   defaultval=no
4109               fi
4110           fi
4111           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4112 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4113
4114 # Check whether --with-sdl was given.
4115 if test "${with_sdl+set}" = set; then
4116   withval=$with_sdl;
4117                         if test "$withval" = yes; then
4118                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4119                         else
4120                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4121                         fi
4122
4123 else
4124
4125                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4126
4127 fi
4128
4129
4130           eval "$wx_cv_use_sdl"
4131
4132           if test x"$withstring" = xwithout; then
4133             if test $wxUSE_LIBSDL = yes; then
4134               result=no
4135             else
4136               result=yes
4137             fi
4138           else
4139             result=$wxUSE_LIBSDL
4140           fi
4141
4142           { echo "$as_me:$LINENO: result: $result" >&5
4143 echo "${ECHO_T}$result" >&6; }
4144
4145
4146           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4147 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4148
4149 # Check whether --with-regex was given.
4150 if test "${with_regex+set}" = set; then
4151   withval=$with_regex;
4152                         if test "$withval" = yes; then
4153                           wx_cv_use_regex='wxUSE_REGEX=yes'
4154                         elif test "$withval" = no; then
4155                           wx_cv_use_regex='wxUSE_REGEX=no'
4156                         elif test "$withval" = sys; then
4157                           wx_cv_use_regex='wxUSE_REGEX=sys'
4158                         elif test "$withval" = builtin; then
4159                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4160                         else
4161                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4162 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4163    { (exit 1); exit 1; }; }
4164                         fi
4165
4166 else
4167
4168                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4169
4170 fi
4171
4172
4173           eval "$wx_cv_use_regex"
4174
4175           if test "$wxUSE_REGEX" = yes; then
4176             { echo "$as_me:$LINENO: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6; }
4178           elif test "$wxUSE_REGEX" = no; then
4179             { echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6; }
4181           elif test "$wxUSE_REGEX" = sys; then
4182             { echo "$as_me:$LINENO: result: system version" >&5
4183 echo "${ECHO_T}system version" >&6; }
4184           elif test "$wxUSE_REGEX" = builtin; then
4185             { echo "$as_me:$LINENO: result: builtin version" >&5
4186 echo "${ECHO_T}builtin version" >&6; }
4187           else
4188             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4189 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4190    { (exit 1); exit 1; }; }
4191           fi
4192
4193
4194           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4195 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4196
4197 # Check whether --with-zlib was given.
4198 if test "${with_zlib+set}" = set; then
4199   withval=$with_zlib;
4200                         if test "$withval" = yes; then
4201                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4202                         elif test "$withval" = no; then
4203                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4204                         elif test "$withval" = sys; then
4205                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4206                         elif test "$withval" = builtin; then
4207                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4208                         else
4209                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4210 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4211    { (exit 1); exit 1; }; }
4212                         fi
4213
4214 else
4215
4216                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4217
4218 fi
4219
4220
4221           eval "$wx_cv_use_zlib"
4222
4223           if test "$wxUSE_ZLIB" = yes; then
4224             { echo "$as_me:$LINENO: result: yes" >&5
4225 echo "${ECHO_T}yes" >&6; }
4226           elif test "$wxUSE_ZLIB" = no; then
4227             { echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6; }
4229           elif test "$wxUSE_ZLIB" = sys; then
4230             { echo "$as_me:$LINENO: result: system version" >&5
4231 echo "${ECHO_T}system version" >&6; }
4232           elif test "$wxUSE_ZLIB" = builtin; then
4233             { echo "$as_me:$LINENO: result: builtin version" >&5
4234 echo "${ECHO_T}builtin version" >&6; }
4235           else
4236             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4237 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4238    { (exit 1); exit 1; }; }
4239           fi
4240
4241
4242           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4243 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4244
4245 # Check whether --with-expat was given.
4246 if test "${with_expat+set}" = set; then
4247   withval=$with_expat;
4248                         if test "$withval" = yes; then
4249                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4250                         elif test "$withval" = no; then
4251                           wx_cv_use_expat='wxUSE_EXPAT=no'
4252                         elif test "$withval" = sys; then
4253                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4254                         elif test "$withval" = builtin; then
4255                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4256                         else
4257                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4258 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4259    { (exit 1); exit 1; }; }
4260                         fi
4261
4262 else
4263
4264                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4265
4266 fi
4267
4268
4269           eval "$wx_cv_use_expat"
4270
4271           if test "$wxUSE_EXPAT" = yes; then
4272             { echo "$as_me:$LINENO: result: yes" >&5
4273 echo "${ECHO_T}yes" >&6; }
4274           elif test "$wxUSE_EXPAT" = no; then
4275             { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4277           elif test "$wxUSE_EXPAT" = sys; then
4278             { echo "$as_me:$LINENO: result: system version" >&5
4279 echo "${ECHO_T}system version" >&6; }
4280           elif test "$wxUSE_EXPAT" = builtin; then
4281             { echo "$as_me:$LINENO: result: builtin version" >&5
4282 echo "${ECHO_T}builtin version" >&6; }
4283           else
4284             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4285 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4286    { (exit 1); exit 1; }; }
4287           fi
4288
4289
4290 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4291 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4292
4293 # Check whether --with-macosx-sdk was given.
4294 if test "${with_macosx_sdk+set}" = set; then
4295   withval=$with_macosx_sdk;
4296         wxUSE_MACOSX_SDK=$withval
4297         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4298
4299 fi
4300
4301 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4302 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4303
4304 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4305 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4306
4307 # Check whether --with-macosx-version-min was given.
4308 if test "${with_macosx_version_min+set}" = set; then
4309   withval=$with_macosx_version_min;
4310         wxUSE_MACOSX_VERSION_MIN=$withval
4311         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4312
4313 fi
4314
4315 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4316 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4317
4318
4319
4320           enablestring=disable
4321           defaultval=
4322           if test -z "$defaultval"; then
4323               if test x"$enablestring" = xdisable; then
4324                   defaultval=yes
4325               else
4326                   defaultval=no
4327               fi
4328           fi
4329
4330           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4331 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4332           # Check whether --enable-shared was given.
4333 if test "${enable_shared+set}" = set; then
4334   enableval=$enable_shared;
4335                           if test "$enableval" = yes; then
4336                             wx_cv_use_shared='wxUSE_SHARED=yes'
4337                           else
4338                             wx_cv_use_shared='wxUSE_SHARED=no'
4339                           fi
4340
4341 else
4342
4343                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4344
4345 fi
4346
4347
4348           eval "$wx_cv_use_shared"
4349
4350           if test x"$enablestring" = xdisable; then
4351             if test $wxUSE_SHARED = yes; then
4352               result=no
4353             else
4354               result=yes
4355             fi
4356           else
4357             result=$wxUSE_SHARED
4358           fi
4359
4360           { echo "$as_me:$LINENO: result: $result" >&5
4361 echo "${ECHO_T}$result" >&6; }
4362
4363
4364           enablestring=
4365           defaultval=
4366           if test -z "$defaultval"; then
4367               if test x"$enablestring" = xdisable; then
4368                   defaultval=yes
4369               else
4370                   defaultval=no
4371               fi
4372           fi
4373
4374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4375 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4376           # Check whether --enable-debug was given.
4377 if test "${enable_debug+set}" = set; then
4378   enableval=$enable_debug;
4379                           if test "$enableval" = yes; then
4380                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4381                           else
4382                             wx_cv_use_debug='wxUSE_DEBUG=no'
4383                           fi
4384
4385 else
4386
4387                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4388
4389 fi
4390
4391
4392           eval "$wx_cv_use_debug"
4393
4394           if test x"$enablestring" = xdisable; then
4395             if test $wxUSE_DEBUG = yes; then
4396               result=no
4397             else
4398               result=yes
4399             fi
4400           else
4401             result=$wxUSE_DEBUG
4402           fi
4403
4404           { echo "$as_me:$LINENO: result: $result" >&5
4405 echo "${ECHO_T}$result" >&6; }
4406
4407
4408           enablestring=
4409           defaultval=
4410           if test -z "$defaultval"; then
4411               if test x"$enablestring" = xdisable; then
4412                   defaultval=yes
4413               else
4414                   defaultval=no
4415               fi
4416           fi
4417
4418           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4419 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4420           # Check whether --enable-stl was given.
4421 if test "${enable_stl+set}" = set; then
4422   enableval=$enable_stl;
4423                           if test "$enableval" = yes; then
4424                             wx_cv_use_stl='wxUSE_STL=yes'
4425                           else
4426                             wx_cv_use_stl='wxUSE_STL=no'
4427                           fi
4428
4429 else
4430
4431                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4432
4433 fi
4434
4435
4436           eval "$wx_cv_use_stl"
4437
4438           if test x"$enablestring" = xdisable; then
4439             if test $wxUSE_STL = yes; then
4440               result=no
4441             else
4442               result=yes
4443             fi
4444           else
4445             result=$wxUSE_STL
4446           fi
4447
4448           { echo "$as_me:$LINENO: result: $result" >&5
4449 echo "${ECHO_T}$result" >&6; }
4450
4451
4452           enablestring=
4453           defaultval=
4454           if test -z "$defaultval"; then
4455               if test x"$enablestring" = xdisable; then
4456                   defaultval=yes
4457               else
4458                   defaultval=no
4459               fi
4460           fi
4461
4462           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4463 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4464           # Check whether --enable-std_iostreams was given.
4465 if test "${enable_std_iostreams+set}" = set; then
4466   enableval=$enable_std_iostreams;
4467                           if test "$enableval" = yes; then
4468                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4469                           else
4470                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4471                           fi
4472
4473 else
4474
4475                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4476
4477 fi
4478
4479
4480           eval "$wx_cv_use_std_iostreams"
4481
4482           if test x"$enablestring" = xdisable; then
4483             if test $wxUSE_STD_IOSTREAM = yes; then
4484               result=no
4485             else
4486               result=yes
4487             fi
4488           else
4489             result=$wxUSE_STD_IOSTREAM
4490           fi
4491
4492           { echo "$as_me:$LINENO: result: $result" >&5
4493 echo "${ECHO_T}$result" >&6; }
4494
4495
4496           enablestring=
4497           defaultval=
4498           if test -z "$defaultval"; then
4499               if test x"$enablestring" = xdisable; then
4500                   defaultval=yes
4501               else
4502                   defaultval=no
4503               fi
4504           fi
4505
4506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4507 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4508           # Check whether --enable-std_string was given.
4509 if test "${enable_std_string+set}" = set; then
4510   enableval=$enable_std_string;
4511                           if test "$enableval" = yes; then
4512                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4513                           else
4514                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4515                           fi
4516
4517 else
4518
4519                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4520
4521 fi
4522
4523
4524           eval "$wx_cv_use_std_string"
4525
4526           if test x"$enablestring" = xdisable; then
4527             if test $wxUSE_STD_STRING = yes; then
4528               result=no
4529             else
4530               result=yes
4531             fi
4532           else
4533             result=$wxUSE_STD_STRING
4534           fi
4535
4536           { echo "$as_me:$LINENO: result: $result" >&5
4537 echo "${ECHO_T}$result" >&6; }
4538
4539
4540           enablestring=disable
4541           defaultval=
4542           if test -z "$defaultval"; then
4543               if test x"$enablestring" = xdisable; then
4544                   defaultval=yes
4545               else
4546                   defaultval=no
4547               fi
4548           fi
4549
4550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4551 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4552           # Check whether --enable-unicode was given.
4553 if test "${enable_unicode+set}" = set; then
4554   enableval=$enable_unicode;
4555                           if test "$enableval" = yes; then
4556                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4557                           else
4558                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4559                           fi
4560
4561 else
4562
4563                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4564
4565 fi
4566
4567
4568           eval "$wx_cv_use_unicode"
4569
4570           if test x"$enablestring" = xdisable; then
4571             if test $wxUSE_UNICODE = yes; then
4572               result=no
4573             else
4574               result=yes
4575             fi
4576           else
4577             result=$wxUSE_UNICODE
4578           fi
4579
4580           { echo "$as_me:$LINENO: result: $result" >&5
4581 echo "${ECHO_T}$result" >&6; }
4582
4583
4584           enablestring=
4585           defaultval=
4586           if test -z "$defaultval"; then
4587               if test x"$enablestring" = xdisable; then
4588                   defaultval=yes
4589               else
4590                   defaultval=no
4591               fi
4592           fi
4593
4594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4595 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4596           # Check whether --enable-mslu was given.
4597 if test "${enable_mslu+set}" = set; then
4598   enableval=$enable_mslu;
4599                           if test "$enableval" = yes; then
4600                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4601                           else
4602                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4603                           fi
4604
4605 else
4606
4607                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4608
4609 fi
4610
4611
4612           eval "$wx_cv_use_mslu"
4613
4614           if test x"$enablestring" = xdisable; then
4615             if test $wxUSE_UNICODE_MSLU = yes; then
4616               result=no
4617             else
4618               result=yes
4619             fi
4620           else
4621             result=$wxUSE_UNICODE_MSLU
4622           fi
4623
4624           { echo "$as_me:$LINENO: result: $result" >&5
4625 echo "${ECHO_T}$result" >&6; }
4626
4627
4628           enablestring=
4629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4630 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4631           # Check whether --enable-utf8 was given.
4632 if test "${enable_utf8+set}" = set; then
4633   enableval=$enable_utf8;
4634                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4635
4636 else
4637
4638                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4639
4640 fi
4641
4642
4643           eval "$wx_cv_use_utf8"
4644
4645           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4646 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4647
4648
4649           enablestring=
4650           defaultval=
4651           if test -z "$defaultval"; then
4652               if test x"$enablestring" = xdisable; then
4653                   defaultval=yes
4654               else
4655                   defaultval=no
4656               fi
4657           fi
4658
4659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4660 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4661           # Check whether --enable-utf8only was given.
4662 if test "${enable_utf8only+set}" = set; then
4663   enableval=$enable_utf8only;
4664                           if test "$enableval" = yes; then
4665                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4666                           else
4667                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4668                           fi
4669
4670 else
4671
4672                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4673
4674 fi
4675
4676
4677           eval "$wx_cv_use_utf8only"
4678
4679           if test x"$enablestring" = xdisable; then
4680             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4681               result=no
4682             else
4683               result=yes
4684             fi
4685           else
4686             result=$wxUSE_UNICODE_UTF8_LOCALE
4687           fi
4688
4689           { echo "$as_me:$LINENO: result: $result" >&5
4690 echo "${ECHO_T}$result" >&6; }
4691
4692
4693           enablestring=
4694           defaultval=
4695           if test -z "$defaultval"; then
4696               if test x"$enablestring" = xdisable; then
4697                   defaultval=yes
4698               else
4699                   defaultval=no
4700               fi
4701           fi
4702
4703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4704 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4705           # Check whether --enable-extended_rtti was given.
4706 if test "${enable_extended_rtti+set}" = set; then
4707   enableval=$enable_extended_rtti;
4708                           if test "$enableval" = yes; then
4709                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4710                           else
4711                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4712                           fi
4713
4714 else
4715
4716                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4717
4718 fi
4719
4720
4721           eval "$wx_cv_use_extended_rtti"
4722
4723           if test x"$enablestring" = xdisable; then
4724             if test $wxUSE_EXTENDED_RTTI = yes; then
4725               result=no
4726             else
4727               result=yes
4728             fi
4729           else
4730             result=$wxUSE_EXTENDED_RTTI
4731           fi
4732
4733           { echo "$as_me:$LINENO: result: $result" >&5
4734 echo "${ECHO_T}$result" >&6; }
4735
4736 if test "$USE_OS2" = 1; then
4737     DEFAULT_wxUSE_OMF=no
4738
4739           enablestring=
4740           defaultval=
4741           if test -z "$defaultval"; then
4742               if test x"$enablestring" = xdisable; then
4743                   defaultval=yes
4744               else
4745                   defaultval=no
4746               fi
4747           fi
4748
4749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4750 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4751           # Check whether --enable-omf was given.
4752 if test "${enable_omf+set}" = set; then
4753   enableval=$enable_omf;
4754                           if test "$enableval" = yes; then
4755                             wx_cv_use_omf='wxUSE_OMF=yes'
4756                           else
4757                             wx_cv_use_omf='wxUSE_OMF=no'
4758                           fi
4759
4760 else
4761
4762                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4763
4764 fi
4765
4766
4767           eval "$wx_cv_use_omf"
4768
4769           if test x"$enablestring" = xdisable; then
4770             if test $wxUSE_OMF = yes; then
4771               result=no
4772             else
4773               result=yes
4774             fi
4775           else
4776             result=$wxUSE_OMF
4777           fi
4778
4779           { echo "$as_me:$LINENO: result: $result" >&5
4780 echo "${ECHO_T}$result" >&6; }
4781
4782 fi
4783
4784 if test "$wxUSE_DEBUG" = "yes"; then
4785     DEFAULT_wxUSE_DEBUG_FLAG=yes
4786     DEFAULT_wxUSE_DEBUG_INFO=yes
4787     BUILD=debug
4788 elif test "$wxUSE_DEBUG" = "no"; then
4789     DEFAULT_wxUSE_DEBUG_FLAG=no
4790     DEFAULT_wxUSE_DEBUG_INFO=no
4791     BUILD=release
4792 fi
4793
4794
4795           enablestring=
4796           defaultval=
4797           if test -z "$defaultval"; then
4798               if test x"$enablestring" = xdisable; then
4799                   defaultval=yes
4800               else
4801                   defaultval=no
4802               fi
4803           fi
4804
4805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4806 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4807           # Check whether --enable-debug_flag was given.
4808 if test "${enable_debug_flag+set}" = set; then
4809   enableval=$enable_debug_flag;
4810                           if test "$enableval" = yes; then
4811                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4812                           else
4813                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4814                           fi
4815
4816 else
4817
4818                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4819
4820 fi
4821
4822
4823           eval "$wx_cv_use_debug_flag"
4824
4825           if test x"$enablestring" = xdisable; then
4826             if test $wxUSE_DEBUG_FLAG = yes; then
4827               result=no
4828             else
4829               result=yes
4830             fi
4831           else
4832             result=$wxUSE_DEBUG_FLAG
4833           fi
4834
4835           { echo "$as_me:$LINENO: result: $result" >&5
4836 echo "${ECHO_T}$result" >&6; }
4837
4838
4839           enablestring=
4840           defaultval=
4841           if test -z "$defaultval"; then
4842               if test x"$enablestring" = xdisable; then
4843                   defaultval=yes
4844               else
4845                   defaultval=no
4846               fi
4847           fi
4848
4849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4850 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4851           # Check whether --enable-debug_info was given.
4852 if test "${enable_debug_info+set}" = set; then
4853   enableval=$enable_debug_info;
4854                           if test "$enableval" = yes; then
4855                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4856                           else
4857                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4858                           fi
4859
4860 else
4861
4862                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4863
4864 fi
4865
4866
4867           eval "$wx_cv_use_debug_info"
4868
4869           if test x"$enablestring" = xdisable; then
4870             if test $wxUSE_DEBUG_INFO = yes; then
4871               result=no
4872             else
4873               result=yes
4874             fi
4875           else
4876             result=$wxUSE_DEBUG_INFO
4877           fi
4878
4879           { echo "$as_me:$LINENO: result: $result" >&5
4880 echo "${ECHO_T}$result" >&6; }
4881
4882
4883 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4884     wxUSE_DEBUG=yes
4885     BUILD=debug
4886 fi
4887
4888 if test "$wxUSE_DEBUG" = "yes"; then
4889     DEFAULT_wxUSE_OPTIMISE=no
4890 fi
4891
4892
4893           enablestring=disable
4894           defaultval=
4895           if test -z "$defaultval"; then
4896               if test x"$enablestring" = xdisable; then
4897                   defaultval=yes
4898               else
4899                   defaultval=no
4900               fi
4901           fi
4902
4903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4904 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4905           # Check whether --enable-optimise was given.
4906 if test "${enable_optimise+set}" = set; then
4907   enableval=$enable_optimise;
4908                           if test "$enableval" = yes; then
4909                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4910                           else
4911                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4912                           fi
4913
4914 else
4915
4916                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4917
4918 fi
4919
4920
4921           eval "$wx_cv_use_optimise"
4922
4923           if test x"$enablestring" = xdisable; then
4924             if test $wxUSE_OPTIMISE = yes; then
4925               result=no
4926             else
4927               result=yes
4928             fi
4929           else
4930             result=$wxUSE_OPTIMISE
4931           fi
4932
4933           { echo "$as_me:$LINENO: result: $result" >&5
4934 echo "${ECHO_T}$result" >&6; }
4935
4936
4937
4938           enablestring=
4939           defaultval=
4940           if test -z "$defaultval"; then
4941               if test x"$enablestring" = xdisable; then
4942                   defaultval=yes
4943               else
4944                   defaultval=no
4945               fi
4946           fi
4947
4948           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4949 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4950           # Check whether --enable-debug_gdb was given.
4951 if test "${enable_debug_gdb+set}" = set; then
4952   enableval=$enable_debug_gdb;
4953                           if test "$enableval" = yes; then
4954                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4955                           else
4956                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4957                           fi
4958
4959 else
4960
4961                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4962
4963 fi
4964
4965
4966           eval "$wx_cv_use_debug_gdb"
4967
4968           if test x"$enablestring" = xdisable; then
4969             if test $wxUSE_DEBUG_GDB = yes; then
4970               result=no
4971             else
4972               result=yes
4973             fi
4974           else
4975             result=$wxUSE_DEBUG_GDB
4976           fi
4977
4978           { echo "$as_me:$LINENO: result: $result" >&5
4979 echo "${ECHO_T}$result" >&6; }
4980
4981
4982           enablestring=
4983           defaultval=
4984           if test -z "$defaultval"; then
4985               if test x"$enablestring" = xdisable; then
4986                   defaultval=yes
4987               else
4988                   defaultval=no
4989               fi
4990           fi
4991
4992           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4993 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4994           # Check whether --enable-debug_cntxt was given.
4995 if test "${enable_debug_cntxt+set}" = set; then
4996   enableval=$enable_debug_cntxt;
4997                           if test "$enableval" = yes; then
4998                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4999                           else
5000                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5001                           fi
5002
5003 else
5004
5005                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5006
5007 fi
5008
5009
5010           eval "$wx_cv_use_debug_cntxt"
5011
5012           if test x"$enablestring" = xdisable; then
5013             if test $wxUSE_DEBUG_CONTEXT = yes; then
5014               result=no
5015             else
5016               result=yes
5017             fi
5018           else
5019             result=$wxUSE_DEBUG_CONTEXT
5020           fi
5021
5022           { echo "$as_me:$LINENO: result: $result" >&5
5023 echo "${ECHO_T}$result" >&6; }
5024
5025
5026           enablestring=
5027           defaultval=
5028           if test -z "$defaultval"; then
5029               if test x"$enablestring" = xdisable; then
5030                   defaultval=yes
5031               else
5032                   defaultval=no
5033               fi
5034           fi
5035
5036           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5037 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5038           # Check whether --enable-mem_tracing was given.
5039 if test "${enable_mem_tracing+set}" = set; then
5040   enableval=$enable_mem_tracing;
5041                           if test "$enableval" = yes; then
5042                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5043                           else
5044                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5045                           fi
5046
5047 else
5048
5049                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5050
5051 fi
5052
5053
5054           eval "$wx_cv_use_mem_tracing"
5055
5056           if test x"$enablestring" = xdisable; then
5057             if test $wxUSE_MEM_TRACING = yes; then
5058               result=no
5059             else
5060               result=yes
5061             fi
5062           else
5063             result=$wxUSE_MEM_TRACING
5064           fi
5065
5066           { echo "$as_me:$LINENO: result: $result" >&5
5067 echo "${ECHO_T}$result" >&6; }
5068
5069
5070           enablestring=
5071           defaultval=
5072           if test -z "$defaultval"; then
5073               if test x"$enablestring" = xdisable; then
5074                   defaultval=yes
5075               else
5076                   defaultval=no
5077               fi
5078           fi
5079
5080           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5081 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5082           # Check whether --enable-profile was given.
5083 if test "${enable_profile+set}" = set; then
5084   enableval=$enable_profile;
5085                           if test "$enableval" = yes; then
5086                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5087                           else
5088                             wx_cv_use_profile='wxUSE_PROFILE=no'
5089                           fi
5090
5091 else
5092
5093                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5094
5095 fi
5096
5097
5098           eval "$wx_cv_use_profile"
5099
5100           if test x"$enablestring" = xdisable; then
5101             if test $wxUSE_PROFILE = yes; then
5102               result=no
5103             else
5104               result=yes
5105             fi
5106           else
5107             result=$wxUSE_PROFILE
5108           fi
5109
5110           { echo "$as_me:$LINENO: result: $result" >&5
5111 echo "${ECHO_T}$result" >&6; }
5112
5113
5114           enablestring=
5115           defaultval=
5116           if test -z "$defaultval"; then
5117               if test x"$enablestring" = xdisable; then
5118                   defaultval=yes
5119               else
5120                   defaultval=no
5121               fi
5122           fi
5123
5124           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5125 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5126           # Check whether --enable-no_rtti was given.
5127 if test "${enable_no_rtti+set}" = set; then
5128   enableval=$enable_no_rtti;
5129                           if test "$enableval" = yes; then
5130                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5131                           else
5132                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5133                           fi
5134
5135 else
5136
5137                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5138
5139 fi
5140
5141
5142           eval "$wx_cv_use_no_rtti"
5143
5144           if test x"$enablestring" = xdisable; then
5145             if test $wxUSE_NO_RTTI = yes; then
5146               result=no
5147             else
5148               result=yes
5149             fi
5150           else
5151             result=$wxUSE_NO_RTTI
5152           fi
5153
5154           { echo "$as_me:$LINENO: result: $result" >&5
5155 echo "${ECHO_T}$result" >&6; }
5156
5157
5158           enablestring=
5159           defaultval=
5160           if test -z "$defaultval"; then
5161               if test x"$enablestring" = xdisable; then
5162                   defaultval=yes
5163               else
5164                   defaultval=no
5165               fi
5166           fi
5167
5168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5169 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5170           # Check whether --enable-no_exceptions was given.
5171 if test "${enable_no_exceptions+set}" = set; then
5172   enableval=$enable_no_exceptions;
5173                           if test "$enableval" = yes; then
5174                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5175                           else
5176                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5177                           fi
5178
5179 else
5180
5181                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5182
5183 fi
5184
5185
5186           eval "$wx_cv_use_no_exceptions"
5187
5188           if test x"$enablestring" = xdisable; then
5189             if test $wxUSE_NO_EXCEPTIONS = yes; then
5190               result=no
5191             else
5192               result=yes
5193             fi
5194           else
5195             result=$wxUSE_NO_EXCEPTIONS
5196           fi
5197
5198           { echo "$as_me:$LINENO: result: $result" >&5
5199 echo "${ECHO_T}$result" >&6; }
5200
5201
5202           enablestring=
5203           defaultval=
5204           if test -z "$defaultval"; then
5205               if test x"$enablestring" = xdisable; then
5206                   defaultval=yes
5207               else
5208                   defaultval=no
5209               fi
5210           fi
5211
5212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5213 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5214           # Check whether --enable-permissive was given.
5215 if test "${enable_permissive+set}" = set; then
5216   enableval=$enable_permissive;
5217                           if test "$enableval" = yes; then
5218                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5219                           else
5220                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5221                           fi
5222
5223 else
5224
5225                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5226
5227 fi
5228
5229
5230           eval "$wx_cv_use_permissive"
5231
5232           if test x"$enablestring" = xdisable; then
5233             if test $wxUSE_PERMISSIVE = yes; then
5234               result=no
5235             else
5236               result=yes
5237             fi
5238           else
5239             result=$wxUSE_PERMISSIVE
5240           fi
5241
5242           { echo "$as_me:$LINENO: result: $result" >&5
5243 echo "${ECHO_T}$result" >&6; }
5244
5245
5246           enablestring=
5247           defaultval=
5248           if test -z "$defaultval"; then
5249               if test x"$enablestring" = xdisable; then
5250                   defaultval=yes
5251               else
5252                   defaultval=no
5253               fi
5254           fi
5255
5256           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5257 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5258           # Check whether --enable-no_deps was given.
5259 if test "${enable_no_deps+set}" = set; then
5260   enableval=$enable_no_deps;
5261                           if test "$enableval" = yes; then
5262                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5263                           else
5264                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5265                           fi
5266
5267 else
5268
5269                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5270
5271 fi
5272
5273
5274           eval "$wx_cv_use_no_deps"
5275
5276           if test x"$enablestring" = xdisable; then
5277             if test $wxUSE_NO_DEPS = yes; then
5278               result=no
5279             else
5280               result=yes
5281             fi
5282           else
5283             result=$wxUSE_NO_DEPS
5284           fi
5285
5286           { echo "$as_me:$LINENO: result: $result" >&5
5287 echo "${ECHO_T}$result" >&6; }
5288
5289
5290           enablestring=disable
5291           defaultval=
5292           if test -z "$defaultval"; then
5293               if test x"$enablestring" = xdisable; then
5294                   defaultval=yes
5295               else
5296                   defaultval=no
5297               fi
5298           fi
5299
5300           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5301 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5302           # Check whether --enable-vararg_macros was given.
5303 if test "${enable_vararg_macros+set}" = set; then
5304   enableval=$enable_vararg_macros;
5305                           if test "$enableval" = yes; then
5306                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5307                           else
5308                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5309                           fi
5310
5311 else
5312
5313                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5314
5315 fi
5316
5317
5318           eval "$wx_cv_use_vararg_macros"
5319
5320           if test x"$enablestring" = xdisable; then
5321             if test $wxUSE_VARARG_MACROS = yes; then
5322               result=no
5323             else
5324               result=yes
5325             fi
5326           else
5327             result=$wxUSE_VARARG_MACROS
5328           fi
5329
5330           { echo "$as_me:$LINENO: result: $result" >&5
5331 echo "${ECHO_T}$result" >&6; }
5332
5333
5334           enablestring=
5335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5336 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5337           # Check whether --enable-universal_binary was given.
5338 if test "${enable_universal_binary+set}" = set; then
5339   enableval=$enable_universal_binary;
5340                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5341
5342 else
5343
5344                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5345
5346 fi
5347
5348
5349           eval "$wx_cv_use_universal_binary"
5350
5351           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5352 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5353
5354
5355
5356           enablestring=
5357           defaultval=
5358           if test -z "$defaultval"; then
5359               if test x"$enablestring" = xdisable; then
5360                   defaultval=yes
5361               else
5362                   defaultval=no
5363               fi
5364           fi
5365
5366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5367 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5368           # Check whether --enable-compat26 was given.
5369 if test "${enable_compat26+set}" = set; then
5370   enableval=$enable_compat26;
5371                           if test "$enableval" = yes; then
5372                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5373                           else
5374                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5375                           fi
5376
5377 else
5378
5379                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5380
5381 fi
5382
5383
5384           eval "$wx_cv_use_compat26"
5385
5386           if test x"$enablestring" = xdisable; then
5387             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5388               result=no
5389             else
5390               result=yes
5391             fi
5392           else
5393             result=$WXWIN_COMPATIBILITY_2_6
5394           fi
5395
5396           { echo "$as_me:$LINENO: result: $result" >&5
5397 echo "${ECHO_T}$result" >&6; }
5398
5399
5400           enablestring=disable
5401           defaultval=
5402           if test -z "$defaultval"; then
5403               if test x"$enablestring" = xdisable; then
5404                   defaultval=yes
5405               else
5406                   defaultval=no
5407               fi
5408           fi
5409
5410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5411 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5412           # Check whether --enable-compat28 was given.
5413 if test "${enable_compat28+set}" = set; then
5414   enableval=$enable_compat28;
5415                           if test "$enableval" = yes; then
5416                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5417                           else
5418                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5419                           fi
5420
5421 else
5422
5423                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5424
5425 fi
5426
5427
5428           eval "$wx_cv_use_compat28"
5429
5430           if test x"$enablestring" = xdisable; then
5431             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5432               result=no
5433             else
5434               result=yes
5435             fi
5436           else
5437             result=$WXWIN_COMPATIBILITY_2_8
5438           fi
5439
5440           { echo "$as_me:$LINENO: result: $result" >&5
5441 echo "${ECHO_T}$result" >&6; }
5442
5443
5444 cat >>confdefs.h <<\_ACEOF
5445 #define wxEVENTS_COMPATIBILITY_2_8 0
5446 _ACEOF
5447
5448
5449
5450           enablestring=disable
5451           defaultval=
5452           if test -z "$defaultval"; then
5453               if test x"$enablestring" = xdisable; then
5454                   defaultval=yes
5455               else
5456                   defaultval=no
5457               fi
5458           fi
5459
5460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5461 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5462           # Check whether --enable-rpath was given.
5463 if test "${enable_rpath+set}" = set; then
5464   enableval=$enable_rpath;
5465                           if test "$enableval" = yes; then
5466                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5467                           else
5468                             wx_cv_use_rpath='wxUSE_RPATH=no'
5469                           fi
5470
5471 else
5472
5473                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5474
5475 fi
5476
5477
5478           eval "$wx_cv_use_rpath"
5479
5480           if test x"$enablestring" = xdisable; then
5481             if test $wxUSE_RPATH = yes; then
5482               result=no
5483             else
5484               result=yes
5485             fi
5486           else
5487             result=$wxUSE_RPATH
5488           fi
5489
5490           { echo "$as_me:$LINENO: result: $result" >&5
5491 echo "${ECHO_T}$result" >&6; }
5492
5493
5494
5495           enablestring=
5496           defaultval=
5497           if test -z "$defaultval"; then
5498               if test x"$enablestring" = xdisable; then
5499                   defaultval=yes
5500               else
5501                   defaultval=no
5502               fi
5503           fi
5504
5505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5506 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5507           # Check whether --enable-objc_uniquifying was given.
5508 if test "${enable_objc_uniquifying+set}" = set; then
5509   enableval=$enable_objc_uniquifying;
5510                           if test "$enableval" = yes; then
5511                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5512                           else
5513                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5514                           fi
5515
5516 else
5517
5518                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5519
5520 fi
5521
5522
5523           eval "$wx_cv_use_objc_uniquifying"
5524
5525           if test x"$enablestring" = xdisable; then
5526             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5527               result=no
5528             else
5529               result=yes
5530             fi
5531           else
5532             result=$wxUSE_OBJC_UNIQUIFYING
5533           fi
5534
5535           { echo "$as_me:$LINENO: result: $result" >&5
5536 echo "${ECHO_T}$result" >&6; }
5537
5538
5539
5540           enablestring=disable
5541           defaultval=
5542           if test -z "$defaultval"; then
5543               if test x"$enablestring" = xdisable; then
5544                   defaultval=yes
5545               else
5546                   defaultval=no
5547               fi
5548           fi
5549
5550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5551 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5552           # Check whether --enable-visibility was given.
5553 if test "${enable_visibility+set}" = set; then
5554   enableval=$enable_visibility;
5555                           if test "$enableval" = yes; then
5556                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5557                           else
5558                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5559                           fi
5560
5561 else
5562
5563                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5564
5565 fi
5566
5567
5568           eval "$wx_cv_use_visibility"
5569
5570           if test x"$enablestring" = xdisable; then
5571             if test $wxUSE_VISIBILITY = yes; then
5572               result=no
5573             else
5574               result=yes
5575             fi
5576           else
5577             result=$wxUSE_VISIBILITY
5578           fi
5579
5580           { echo "$as_me:$LINENO: result: $result" >&5
5581 echo "${ECHO_T}$result" >&6; }
5582
5583
5584
5585
5586           enablestring=
5587           defaultval=$wxUSE_ALL_FEATURES
5588           if test -z "$defaultval"; then
5589               if test x"$enablestring" = xdisable; then
5590                   defaultval=yes
5591               else
5592                   defaultval=no
5593               fi
5594           fi
5595
5596           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5597 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5598           # Check whether --enable-intl was given.
5599 if test "${enable_intl+set}" = set; then
5600   enableval=$enable_intl;
5601                           if test "$enableval" = yes; then
5602                             wx_cv_use_intl='wxUSE_INTL=yes'
5603                           else
5604                             wx_cv_use_intl='wxUSE_INTL=no'
5605                           fi
5606
5607 else
5608
5609                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5610
5611 fi
5612
5613
5614           eval "$wx_cv_use_intl"
5615
5616           if test x"$enablestring" = xdisable; then
5617             if test $wxUSE_INTL = yes; then
5618               result=no
5619             else
5620               result=yes
5621             fi
5622           else
5623             result=$wxUSE_INTL
5624           fi
5625
5626           { echo "$as_me:$LINENO: result: $result" >&5
5627 echo "${ECHO_T}$result" >&6; }
5628
5629
5630           enablestring=
5631           defaultval=$wxUSE_ALL_FEATURES
5632           if test -z "$defaultval"; then
5633               if test x"$enablestring" = xdisable; then
5634                   defaultval=yes
5635               else
5636                   defaultval=no
5637               fi
5638           fi
5639
5640           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5641 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5642           # Check whether --enable-xlocale was given.
5643 if test "${enable_xlocale+set}" = set; then
5644   enableval=$enable_xlocale;
5645                           if test "$enableval" = yes; then
5646                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5647                           else
5648                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5649                           fi
5650
5651 else
5652
5653                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5654
5655 fi
5656
5657
5658           eval "$wx_cv_use_xlocale"
5659
5660           if test x"$enablestring" = xdisable; then
5661             if test $wxUSE_XLOCALE = yes; then
5662               result=no
5663             else
5664               result=yes
5665             fi
5666           else
5667             result=$wxUSE_XLOCALE
5668           fi
5669
5670           { echo "$as_me:$LINENO: result: $result" >&5
5671 echo "${ECHO_T}$result" >&6; }
5672
5673
5674           enablestring=
5675           defaultval=$wxUSE_ALL_FEATURES
5676           if test -z "$defaultval"; then
5677               if test x"$enablestring" = xdisable; then
5678                   defaultval=yes
5679               else
5680                   defaultval=no
5681               fi
5682           fi
5683
5684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5685 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5686           # Check whether --enable-config was given.
5687 if test "${enable_config+set}" = set; then
5688   enableval=$enable_config;
5689                           if test "$enableval" = yes; then
5690                             wx_cv_use_config='wxUSE_CONFIG=yes'
5691                           else
5692                             wx_cv_use_config='wxUSE_CONFIG=no'
5693                           fi
5694
5695 else
5696
5697                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5698
5699 fi
5700
5701
5702           eval "$wx_cv_use_config"
5703
5704           if test x"$enablestring" = xdisable; then
5705             if test $wxUSE_CONFIG = yes; then
5706               result=no
5707             else
5708               result=yes
5709             fi
5710           else
5711             result=$wxUSE_CONFIG
5712           fi
5713
5714           { echo "$as_me:$LINENO: result: $result" >&5
5715 echo "${ECHO_T}$result" >&6; }
5716
5717
5718
5719           enablestring=
5720           defaultval=$wxUSE_ALL_FEATURES
5721           if test -z "$defaultval"; then
5722               if test x"$enablestring" = xdisable; then
5723                   defaultval=yes
5724               else
5725                   defaultval=no
5726               fi
5727           fi
5728
5729           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5730 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5731           # Check whether --enable-protocols was given.
5732 if test "${enable_protocols+set}" = set; then
5733   enableval=$enable_protocols;
5734                           if test "$enableval" = yes; then
5735                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5736                           else
5737                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5738                           fi
5739
5740 else
5741
5742                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5743
5744 fi
5745
5746
5747           eval "$wx_cv_use_protocols"
5748
5749           if test x"$enablestring" = xdisable; then
5750             if test $wxUSE_PROTOCOL = yes; then
5751               result=no
5752             else
5753               result=yes
5754             fi
5755           else
5756             result=$wxUSE_PROTOCOL
5757           fi
5758
5759           { echo "$as_me:$LINENO: result: $result" >&5
5760 echo "${ECHO_T}$result" >&6; }
5761
5762
5763           enablestring=
5764           defaultval=$wxUSE_ALL_FEATURES
5765           if test -z "$defaultval"; then
5766               if test x"$enablestring" = xdisable; then
5767                   defaultval=yes
5768               else
5769                   defaultval=no
5770               fi
5771           fi
5772
5773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5774 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5775           # Check whether --enable-ftp was given.
5776 if test "${enable_ftp+set}" = set; then
5777   enableval=$enable_ftp;
5778                           if test "$enableval" = yes; then
5779                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5780                           else
5781                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5782                           fi
5783
5784 else
5785
5786                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5787
5788 fi
5789
5790
5791           eval "$wx_cv_use_ftp"
5792
5793           if test x"$enablestring" = xdisable; then
5794             if test $wxUSE_PROTOCOL_FTP = yes; then
5795               result=no
5796             else
5797               result=yes
5798             fi
5799           else
5800             result=$wxUSE_PROTOCOL_FTP
5801           fi
5802
5803           { echo "$as_me:$LINENO: result: $result" >&5
5804 echo "${ECHO_T}$result" >&6; }
5805
5806
5807           enablestring=
5808           defaultval=$wxUSE_ALL_FEATURES
5809           if test -z "$defaultval"; then
5810               if test x"$enablestring" = xdisable; then
5811                   defaultval=yes
5812               else
5813                   defaultval=no
5814               fi
5815           fi
5816
5817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5818 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5819           # Check whether --enable-http was given.
5820 if test "${enable_http+set}" = set; then
5821   enableval=$enable_http;
5822                           if test "$enableval" = yes; then
5823                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5824                           else
5825                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5826                           fi
5827
5828 else
5829
5830                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5831
5832 fi
5833
5834
5835           eval "$wx_cv_use_http"
5836
5837           if test x"$enablestring" = xdisable; then
5838             if test $wxUSE_PROTOCOL_HTTP = yes; then
5839               result=no
5840             else
5841               result=yes
5842             fi
5843           else
5844             result=$wxUSE_PROTOCOL_HTTP
5845           fi
5846
5847           { echo "$as_me:$LINENO: result: $result" >&5
5848 echo "${ECHO_T}$result" >&6; }
5849
5850
5851           enablestring=
5852           defaultval=$wxUSE_ALL_FEATURES
5853           if test -z "$defaultval"; then
5854               if test x"$enablestring" = xdisable; then
5855                   defaultval=yes
5856               else
5857                   defaultval=no
5858               fi
5859           fi
5860
5861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5862 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5863           # Check whether --enable-fileproto was given.
5864 if test "${enable_fileproto+set}" = set; then
5865   enableval=$enable_fileproto;
5866                           if test "$enableval" = yes; then
5867                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5868                           else
5869                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5870                           fi
5871
5872 else
5873
5874                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5875
5876 fi
5877
5878
5879           eval "$wx_cv_use_fileproto"
5880
5881           if test x"$enablestring" = xdisable; then
5882             if test $wxUSE_PROTOCOL_FILE = yes; then
5883               result=no
5884             else
5885               result=yes
5886             fi
5887           else
5888             result=$wxUSE_PROTOCOL_FILE
5889           fi
5890
5891           { echo "$as_me:$LINENO: result: $result" >&5
5892 echo "${ECHO_T}$result" >&6; }
5893
5894
5895           enablestring=
5896           defaultval=$wxUSE_ALL_FEATURES
5897           if test -z "$defaultval"; then
5898               if test x"$enablestring" = xdisable; then
5899                   defaultval=yes
5900               else
5901                   defaultval=no
5902               fi
5903           fi
5904
5905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5906 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5907           # Check whether --enable-sockets was given.
5908 if test "${enable_sockets+set}" = set; then
5909   enableval=$enable_sockets;
5910                           if test "$enableval" = yes; then
5911                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5912                           else
5913                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5914                           fi
5915
5916 else
5917
5918                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5919
5920 fi
5921
5922
5923           eval "$wx_cv_use_sockets"
5924
5925           if test x"$enablestring" = xdisable; then
5926             if test $wxUSE_SOCKETS = yes; then
5927               result=no
5928             else
5929               result=yes
5930             fi
5931           else
5932             result=$wxUSE_SOCKETS
5933           fi
5934
5935           { echo "$as_me:$LINENO: result: $result" >&5
5936 echo "${ECHO_T}$result" >&6; }
5937
5938
5939           enablestring=
5940           defaultval=$wxUSE_ALL_FEATURES
5941           if test -z "$defaultval"; then
5942               if test x"$enablestring" = xdisable; then
5943                   defaultval=yes
5944               else
5945                   defaultval=no
5946               fi
5947           fi
5948
5949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5950 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5951           # Check whether --enable-ipv6 was given.
5952 if test "${enable_ipv6+set}" = set; then
5953   enableval=$enable_ipv6;
5954                           if test "$enableval" = yes; then
5955                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5956                           else
5957                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5958                           fi
5959
5960 else
5961
5962                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5963
5964 fi
5965
5966
5967           eval "$wx_cv_use_ipv6"
5968
5969           if test x"$enablestring" = xdisable; then
5970             if test $wxUSE_IPV6 = yes; then
5971               result=no
5972             else
5973               result=yes
5974             fi
5975           else
5976             result=$wxUSE_IPV6
5977           fi
5978
5979           { echo "$as_me:$LINENO: result: $result" >&5
5980 echo "${ECHO_T}$result" >&6; }
5981
5982
5983           enablestring=
5984           defaultval=$wxUSE_ALL_FEATURES
5985           if test -z "$defaultval"; then
5986               if test x"$enablestring" = xdisable; then
5987                   defaultval=yes
5988               else
5989                   defaultval=no
5990               fi
5991           fi
5992
5993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5994 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5995           # Check whether --enable-ole was given.
5996 if test "${enable_ole+set}" = set; then
5997   enableval=$enable_ole;
5998                           if test "$enableval" = yes; then
5999                             wx_cv_use_ole='wxUSE_OLE=yes'
6000                           else
6001                             wx_cv_use_ole='wxUSE_OLE=no'
6002                           fi
6003
6004 else
6005
6006                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6007
6008 fi
6009
6010
6011           eval "$wx_cv_use_ole"
6012
6013           if test x"$enablestring" = xdisable; then
6014             if test $wxUSE_OLE = yes; then
6015               result=no
6016             else
6017               result=yes
6018             fi
6019           else
6020             result=$wxUSE_OLE
6021           fi
6022
6023           { echo "$as_me:$LINENO: result: $result" >&5
6024 echo "${ECHO_T}$result" >&6; }
6025
6026
6027           enablestring=
6028           defaultval=$wxUSE_ALL_FEATURES
6029           if test -z "$defaultval"; then
6030               if test x"$enablestring" = xdisable; then
6031                   defaultval=yes
6032               else
6033                   defaultval=no
6034               fi
6035           fi
6036
6037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6038 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6039           # Check whether --enable-dataobj was given.
6040 if test "${enable_dataobj+set}" = set; then
6041   enableval=$enable_dataobj;
6042                           if test "$enableval" = yes; then
6043                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6044                           else
6045                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6046                           fi
6047
6048 else
6049
6050                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6051
6052 fi
6053
6054
6055           eval "$wx_cv_use_dataobj"
6056
6057           if test x"$enablestring" = xdisable; then
6058             if test $wxUSE_DATAOBJ = yes; then
6059               result=no
6060             else
6061               result=yes
6062             fi
6063           else
6064             result=$wxUSE_DATAOBJ
6065           fi
6066
6067           { echo "$as_me:$LINENO: result: $result" >&5
6068 echo "${ECHO_T}$result" >&6; }
6069
6070
6071
6072           enablestring=
6073           defaultval=$wxUSE_ALL_FEATURES
6074           if test -z "$defaultval"; then
6075               if test x"$enablestring" = xdisable; then
6076                   defaultval=yes
6077               else
6078                   defaultval=no
6079               fi
6080           fi
6081
6082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6083 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6084           # Check whether --enable-ipc was given.
6085 if test "${enable_ipc+set}" = set; then
6086   enableval=$enable_ipc;
6087                           if test "$enableval" = yes; then
6088                             wx_cv_use_ipc='wxUSE_IPC=yes'
6089                           else
6090                             wx_cv_use_ipc='wxUSE_IPC=no'
6091                           fi
6092
6093 else
6094
6095                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6096
6097 fi
6098
6099
6100           eval "$wx_cv_use_ipc"
6101
6102           if test x"$enablestring" = xdisable; then
6103             if test $wxUSE_IPC = yes; then
6104               result=no
6105             else
6106               result=yes
6107             fi
6108           else
6109             result=$wxUSE_IPC
6110           fi
6111
6112           { echo "$as_me:$LINENO: result: $result" >&5
6113 echo "${ECHO_T}$result" >&6; }
6114
6115
6116
6117           enablestring=
6118           defaultval=$wxUSE_ALL_FEATURES
6119           if test -z "$defaultval"; then
6120               if test x"$enablestring" = xdisable; then
6121                   defaultval=yes
6122               else
6123                   defaultval=no
6124               fi
6125           fi
6126
6127           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6128 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6129           # Check whether --enable-baseevtloop was given.
6130 if test "${enable_baseevtloop+set}" = set; then
6131   enableval=$enable_baseevtloop;
6132                           if test "$enableval" = yes; then
6133                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6134                           else
6135                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6136                           fi
6137
6138 else
6139
6140                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6141
6142 fi
6143
6144
6145           eval "$wx_cv_use_baseevtloop"
6146
6147           if test x"$enablestring" = xdisable; then
6148             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6149               result=no
6150             else
6151               result=yes
6152             fi
6153           else
6154             result=$wxUSE_CONSOLE_EVENTLOOP
6155           fi
6156
6157           { echo "$as_me:$LINENO: result: $result" >&5
6158 echo "${ECHO_T}$result" >&6; }
6159
6160
6161           enablestring=
6162           defaultval=$wxUSE_ALL_FEATURES
6163           if test -z "$defaultval"; then
6164               if test x"$enablestring" = xdisable; then
6165                   defaultval=yes
6166               else
6167                   defaultval=no
6168               fi
6169           fi
6170
6171           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6172 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6173           # Check whether --enable-epollloop was given.
6174 if test "${enable_epollloop+set}" = set; then
6175   enableval=$enable_epollloop;
6176                           if test "$enableval" = yes; then
6177                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6178                           else
6179                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6180                           fi
6181
6182 else
6183
6184                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6185
6186 fi
6187
6188
6189           eval "$wx_cv_use_epollloop"
6190
6191           if test x"$enablestring" = xdisable; then
6192             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6193               result=no
6194             else
6195               result=yes
6196             fi
6197           else
6198             result=$wxUSE_EPOLL_DISPATCHER
6199           fi
6200
6201           { echo "$as_me:$LINENO: result: $result" >&5
6202 echo "${ECHO_T}$result" >&6; }
6203
6204
6205           enablestring=
6206           defaultval=$wxUSE_ALL_FEATURES
6207           if test -z "$defaultval"; then
6208               if test x"$enablestring" = xdisable; then
6209                   defaultval=yes
6210               else
6211                   defaultval=no
6212               fi
6213           fi
6214
6215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6216 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6217           # Check whether --enable-selectloop was given.
6218 if test "${enable_selectloop+set}" = set; then
6219   enableval=$enable_selectloop;
6220                           if test "$enableval" = yes; then
6221                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6222                           else
6223                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6224                           fi
6225
6226 else
6227
6228                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6229
6230 fi
6231
6232
6233           eval "$wx_cv_use_selectloop"
6234
6235           if test x"$enablestring" = xdisable; then
6236             if test $wxUSE_SELECT_DISPATCHER = yes; then
6237               result=no
6238             else
6239               result=yes
6240             fi
6241           else
6242             result=$wxUSE_SELECT_DISPATCHER
6243           fi
6244
6245           { echo "$as_me:$LINENO: result: $result" >&5
6246 echo "${ECHO_T}$result" >&6; }
6247
6248
6249
6250           enablestring=
6251           defaultval=$wxUSE_ALL_FEATURES
6252           if test -z "$defaultval"; then
6253               if test x"$enablestring" = xdisable; then
6254                   defaultval=yes
6255               else
6256                   defaultval=no
6257               fi
6258           fi
6259
6260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6261 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6262           # Check whether --enable-apple_ieee was given.
6263 if test "${enable_apple_ieee+set}" = set; then
6264   enableval=$enable_apple_ieee;
6265                           if test "$enableval" = yes; then
6266                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6267                           else
6268                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6269                           fi
6270
6271 else
6272
6273                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6274
6275 fi
6276
6277
6278           eval "$wx_cv_use_apple_ieee"
6279
6280           if test x"$enablestring" = xdisable; then
6281             if test $wxUSE_APPLE_IEEE = yes; then
6282               result=no
6283             else
6284               result=yes
6285             fi
6286           else
6287             result=$wxUSE_APPLE_IEEE
6288           fi
6289
6290           { echo "$as_me:$LINENO: result: $result" >&5
6291 echo "${ECHO_T}$result" >&6; }
6292
6293
6294           enablestring=
6295           defaultval=$wxUSE_ALL_FEATURES
6296           if test -z "$defaultval"; then
6297               if test x"$enablestring" = xdisable; then
6298                   defaultval=yes
6299               else
6300                   defaultval=no
6301               fi
6302           fi
6303
6304           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6305 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6306           # Check whether --enable-arcstream was given.
6307 if test "${enable_arcstream+set}" = set; then
6308   enableval=$enable_arcstream;
6309                           if test "$enableval" = yes; then
6310                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6311                           else
6312                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6313                           fi
6314
6315 else
6316
6317                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6318
6319 fi
6320
6321
6322           eval "$wx_cv_use_arcstream"
6323
6324           if test x"$enablestring" = xdisable; then
6325             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6326               result=no
6327             else
6328               result=yes
6329             fi
6330           else
6331             result=$wxUSE_ARCHIVE_STREAMS
6332           fi
6333
6334           { echo "$as_me:$LINENO: result: $result" >&5
6335 echo "${ECHO_T}$result" >&6; }
6336
6337
6338           enablestring=
6339           defaultval=$wxUSE_ALL_FEATURES
6340           if test -z "$defaultval"; then
6341               if test x"$enablestring" = xdisable; then
6342                   defaultval=yes
6343               else
6344                   defaultval=no
6345               fi
6346           fi
6347
6348           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6349 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6350           # Check whether --enable-base64 was given.
6351 if test "${enable_base64+set}" = set; then
6352   enableval=$enable_base64;
6353                           if test "$enableval" = yes; then
6354                             wx_cv_use_base64='wxUSE_BASE64=yes'
6355                           else
6356                             wx_cv_use_base64='wxUSE_BASE64=no'
6357                           fi
6358
6359 else
6360
6361                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6362
6363 fi
6364
6365
6366           eval "$wx_cv_use_base64"
6367
6368           if test x"$enablestring" = xdisable; then
6369             if test $wxUSE_BASE64 = yes; then
6370               result=no
6371             else
6372               result=yes
6373             fi
6374           else
6375             result=$wxUSE_BASE64
6376           fi
6377
6378           { echo "$as_me:$LINENO: result: $result" >&5
6379 echo "${ECHO_T}$result" >&6; }
6380
6381
6382           enablestring=
6383           defaultval=$wxUSE_ALL_FEATURES
6384           if test -z "$defaultval"; then
6385               if test x"$enablestring" = xdisable; then
6386                   defaultval=yes
6387               else
6388                   defaultval=no
6389               fi
6390           fi
6391
6392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6393 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6394           # Check whether --enable-backtrace was given.
6395 if test "${enable_backtrace+set}" = set; then
6396   enableval=$enable_backtrace;
6397                           if test "$enableval" = yes; then
6398                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6399                           else
6400                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6401                           fi
6402
6403 else
6404
6405                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6406
6407 fi
6408
6409
6410           eval "$wx_cv_use_backtrace"
6411
6412           if test x"$enablestring" = xdisable; then
6413             if test $wxUSE_STACKWALKER = yes; then
6414               result=no
6415             else
6416               result=yes
6417             fi
6418           else
6419             result=$wxUSE_STACKWALKER
6420           fi
6421
6422           { echo "$as_me:$LINENO: result: $result" >&5
6423 echo "${ECHO_T}$result" >&6; }
6424
6425
6426           enablestring=
6427           defaultval=$wxUSE_ALL_FEATURES
6428           if test -z "$defaultval"; then
6429               if test x"$enablestring" = xdisable; then
6430                   defaultval=yes
6431               else
6432                   defaultval=no
6433               fi
6434           fi
6435
6436           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6437 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6438           # Check whether --enable-catch_segvs was given.
6439 if test "${enable_catch_segvs+set}" = set; then
6440   enableval=$enable_catch_segvs;
6441                           if test "$enableval" = yes; then
6442                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6443                           else
6444                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6445                           fi
6446
6447 else
6448
6449                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6450
6451 fi
6452
6453
6454           eval "$wx_cv_use_catch_segvs"
6455
6456           if test x"$enablestring" = xdisable; then
6457             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6458               result=no
6459             else
6460               result=yes
6461             fi
6462           else
6463             result=$wxUSE_ON_FATAL_EXCEPTION
6464           fi
6465
6466           { echo "$as_me:$LINENO: result: $result" >&5
6467 echo "${ECHO_T}$result" >&6; }
6468
6469
6470           enablestring=
6471           defaultval=$wxUSE_ALL_FEATURES
6472           if test -z "$defaultval"; then
6473               if test x"$enablestring" = xdisable; then
6474                   defaultval=yes
6475               else
6476                   defaultval=no
6477               fi
6478           fi
6479
6480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6481 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6482           # Check whether --enable-cmdline was given.
6483 if test "${enable_cmdline+set}" = set; then
6484   enableval=$enable_cmdline;
6485                           if test "$enableval" = yes; then
6486                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6487                           else
6488                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6489                           fi
6490
6491 else
6492
6493                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6494
6495 fi
6496
6497
6498           eval "$wx_cv_use_cmdline"
6499
6500           if test x"$enablestring" = xdisable; then
6501             if test $wxUSE_CMDLINE_PARSER = yes; then
6502               result=no
6503             else
6504               result=yes
6505             fi
6506           else
6507             result=$wxUSE_CMDLINE_PARSER
6508           fi
6509
6510           { echo "$as_me:$LINENO: result: $result" >&5
6511 echo "${ECHO_T}$result" >&6; }
6512
6513
6514           enablestring=
6515           defaultval=$wxUSE_ALL_FEATURES
6516           if test -z "$defaultval"; then
6517               if test x"$enablestring" = xdisable; then
6518                   defaultval=yes
6519               else
6520                   defaultval=no
6521               fi
6522           fi
6523
6524           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6525 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6526           # Check whether --enable-datetime was given.
6527 if test "${enable_datetime+set}" = set; then
6528   enableval=$enable_datetime;
6529                           if test "$enableval" = yes; then
6530                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6531                           else
6532                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6533                           fi
6534
6535 else
6536
6537                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6538
6539 fi
6540
6541
6542           eval "$wx_cv_use_datetime"
6543
6544           if test x"$enablestring" = xdisable; then
6545             if test $wxUSE_DATETIME = yes; then
6546               result=no
6547             else
6548               result=yes
6549             fi
6550           else
6551             result=$wxUSE_DATETIME
6552           fi
6553
6554           { echo "$as_me:$LINENO: result: $result" >&5
6555 echo "${ECHO_T}$result" >&6; }
6556
6557
6558           enablestring=
6559           defaultval=$wxUSE_ALL_FEATURES
6560           if test -z "$defaultval"; then
6561               if test x"$enablestring" = xdisable; then
6562                   defaultval=yes
6563               else
6564                   defaultval=no
6565               fi
6566           fi
6567
6568           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6569 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6570           # Check whether --enable-debugreport was given.
6571 if test "${enable_debugreport+set}" = set; then
6572   enableval=$enable_debugreport;
6573                           if test "$enableval" = yes; then
6574                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6575                           else
6576                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6577                           fi
6578
6579 else
6580
6581                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6582
6583 fi
6584
6585
6586           eval "$wx_cv_use_debugreport"
6587
6588           if test x"$enablestring" = xdisable; then
6589             if test $wxUSE_DEBUGREPORT = yes; then
6590               result=no
6591             else
6592               result=yes
6593             fi
6594           else
6595             result=$wxUSE_DEBUGREPORT
6596           fi
6597
6598           { echo "$as_me:$LINENO: result: $result" >&5
6599 echo "${ECHO_T}$result" >&6; }
6600
6601
6602           enablestring=
6603           defaultval=$wxUSE_ALL_FEATURES
6604           if test -z "$defaultval"; then
6605               if test x"$enablestring" = xdisable; then
6606                   defaultval=yes
6607               else
6608                   defaultval=no
6609               fi
6610           fi
6611
6612           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6613 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6614           # Check whether --enable-dialupman was given.
6615 if test "${enable_dialupman+set}" = set; then
6616   enableval=$enable_dialupman;
6617                           if test "$enableval" = yes; then
6618                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6619                           else
6620                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6621                           fi
6622
6623 else
6624
6625                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6626
6627 fi
6628
6629
6630           eval "$wx_cv_use_dialupman"
6631
6632           if test x"$enablestring" = xdisable; then
6633             if test $wxUSE_DIALUP_MANAGER = yes; then
6634               result=no
6635             else
6636               result=yes
6637             fi
6638           else
6639             result=$wxUSE_DIALUP_MANAGER
6640           fi
6641
6642           { echo "$as_me:$LINENO: result: $result" >&5
6643 echo "${ECHO_T}$result" >&6; }
6644
6645
6646           enablestring=
6647           defaultval=$wxUSE_ALL_FEATURES
6648           if test -z "$defaultval"; then
6649               if test x"$enablestring" = xdisable; then
6650                   defaultval=yes
6651               else
6652                   defaultval=no
6653               fi
6654           fi
6655
6656           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6657 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6658           # Check whether --enable-dynlib was given.
6659 if test "${enable_dynlib+set}" = set; then
6660   enableval=$enable_dynlib;
6661                           if test "$enableval" = yes; then
6662                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6663                           else
6664                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6665                           fi
6666
6667 else
6668
6669                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6670
6671 fi
6672
6673
6674           eval "$wx_cv_use_dynlib"
6675
6676           if test x"$enablestring" = xdisable; then
6677             if test $wxUSE_DYNLIB_CLASS = yes; then
6678               result=no
6679             else
6680               result=yes
6681             fi
6682           else
6683             result=$wxUSE_DYNLIB_CLASS
6684           fi
6685
6686           { echo "$as_me:$LINENO: result: $result" >&5
6687 echo "${ECHO_T}$result" >&6; }
6688
6689
6690           enablestring=
6691           defaultval=$wxUSE_ALL_FEATURES
6692           if test -z "$defaultval"; then
6693               if test x"$enablestring" = xdisable; then
6694                   defaultval=yes
6695               else
6696                   defaultval=no
6697               fi
6698           fi
6699
6700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6701 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6702           # Check whether --enable-dynamicloader was given.
6703 if test "${enable_dynamicloader+set}" = set; then
6704   enableval=$enable_dynamicloader;
6705                           if test "$enableval" = yes; then
6706                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6707                           else
6708                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6709                           fi
6710
6711 else
6712
6713                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6714
6715 fi
6716
6717
6718           eval "$wx_cv_use_dynamicloader"
6719
6720           if test x"$enablestring" = xdisable; then
6721             if test $wxUSE_DYNAMIC_LOADER = yes; then
6722               result=no
6723             else
6724               result=yes
6725             fi
6726           else
6727             result=$wxUSE_DYNAMIC_LOADER
6728           fi
6729
6730           { echo "$as_me:$LINENO: result: $result" >&5
6731 echo "${ECHO_T}$result" >&6; }
6732
6733
6734           enablestring=
6735           defaultval=$wxUSE_ALL_FEATURES
6736           if test -z "$defaultval"; then
6737               if test x"$enablestring" = xdisable; then
6738                   defaultval=yes
6739               else
6740                   defaultval=no
6741               fi
6742           fi
6743
6744           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6745 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6746           # Check whether --enable-exceptions was given.
6747 if test "${enable_exceptions+set}" = set; then
6748   enableval=$enable_exceptions;
6749                           if test "$enableval" = yes; then
6750                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6751                           else
6752                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6753                           fi
6754
6755 else
6756
6757                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6758
6759 fi
6760
6761
6762           eval "$wx_cv_use_exceptions"
6763
6764           if test x"$enablestring" = xdisable; then
6765             if test $wxUSE_EXCEPTIONS = yes; then
6766               result=no
6767             else
6768               result=yes
6769             fi
6770           else
6771             result=$wxUSE_EXCEPTIONS
6772           fi
6773
6774           { echo "$as_me:$LINENO: result: $result" >&5
6775 echo "${ECHO_T}$result" >&6; }
6776
6777
6778           enablestring=
6779           defaultval=$wxUSE_ALL_FEATURES
6780           if test -z "$defaultval"; then
6781               if test x"$enablestring" = xdisable; then
6782                   defaultval=yes
6783               else
6784                   defaultval=no
6785               fi
6786           fi
6787
6788           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6789 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6790           # Check whether --enable-ffile was given.
6791 if test "${enable_ffile+set}" = set; then
6792   enableval=$enable_ffile;
6793                           if test "$enableval" = yes; then
6794                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6795                           else
6796                             wx_cv_use_ffile='wxUSE_FFILE=no'
6797                           fi
6798
6799 else
6800
6801                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6802
6803 fi
6804
6805
6806           eval "$wx_cv_use_ffile"
6807
6808           if test x"$enablestring" = xdisable; then
6809             if test $wxUSE_FFILE = yes; then
6810               result=no
6811             else
6812               result=yes
6813             fi
6814           else
6815             result=$wxUSE_FFILE
6816           fi
6817
6818           { echo "$as_me:$LINENO: result: $result" >&5
6819 echo "${ECHO_T}$result" >&6; }
6820
6821
6822           enablestring=
6823           defaultval=$wxUSE_ALL_FEATURES
6824           if test -z "$defaultval"; then
6825               if test x"$enablestring" = xdisable; then
6826                   defaultval=yes
6827               else
6828                   defaultval=no
6829               fi
6830           fi
6831
6832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6833 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6834           # Check whether --enable-file was given.
6835 if test "${enable_file+set}" = set; then
6836   enableval=$enable_file;
6837                           if test "$enableval" = yes; then
6838                             wx_cv_use_file='wxUSE_FILE=yes'
6839                           else
6840                             wx_cv_use_file='wxUSE_FILE=no'
6841                           fi
6842
6843 else
6844
6845                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6846
6847 fi
6848
6849
6850           eval "$wx_cv_use_file"
6851
6852           if test x"$enablestring" = xdisable; then
6853             if test $wxUSE_FILE = yes; then
6854               result=no
6855             else
6856               result=yes
6857             fi
6858           else
6859             result=$wxUSE_FILE
6860           fi
6861
6862           { echo "$as_me:$LINENO: result: $result" >&5
6863 echo "${ECHO_T}$result" >&6; }
6864
6865
6866           enablestring=
6867           defaultval=$wxUSE_ALL_FEATURES
6868           if test -z "$defaultval"; then
6869               if test x"$enablestring" = xdisable; then
6870                   defaultval=yes
6871               else
6872                   defaultval=no
6873               fi
6874           fi
6875
6876           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6877 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6878           # Check whether --enable-filesystem was given.
6879 if test "${enable_filesystem+set}" = set; then
6880   enableval=$enable_filesystem;
6881                           if test "$enableval" = yes; then
6882                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6883                           else
6884                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6885                           fi
6886
6887 else
6888
6889                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6890
6891 fi
6892
6893
6894           eval "$wx_cv_use_filesystem"
6895
6896           if test x"$enablestring" = xdisable; then
6897             if test $wxUSE_FILESYSTEM = yes; then
6898               result=no
6899             else
6900               result=yes
6901             fi
6902           else
6903             result=$wxUSE_FILESYSTEM
6904           fi
6905
6906           { echo "$as_me:$LINENO: result: $result" >&5
6907 echo "${ECHO_T}$result" >&6; }
6908
6909
6910           enablestring=
6911           defaultval=$wxUSE_ALL_FEATURES
6912           if test -z "$defaultval"; then
6913               if test x"$enablestring" = xdisable; then
6914                   defaultval=yes
6915               else
6916                   defaultval=no
6917               fi
6918           fi
6919
6920           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6921 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6922           # Check whether --enable-fontenum was given.
6923 if test "${enable_fontenum+set}" = set; then
6924   enableval=$enable_fontenum;
6925                           if test "$enableval" = yes; then
6926                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6927                           else
6928                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6929                           fi
6930
6931 else
6932
6933                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6934
6935 fi
6936
6937
6938           eval "$wx_cv_use_fontenum"
6939
6940           if test x"$enablestring" = xdisable; then
6941             if test $wxUSE_FONTENUM = yes; then
6942               result=no
6943             else
6944               result=yes
6945             fi
6946           else
6947             result=$wxUSE_FONTENUM
6948           fi
6949
6950           { echo "$as_me:$LINENO: result: $result" >&5
6951 echo "${ECHO_T}$result" >&6; }
6952
6953
6954           enablestring=
6955           defaultval=$wxUSE_ALL_FEATURES
6956           if test -z "$defaultval"; then
6957               if test x"$enablestring" = xdisable; then
6958                   defaultval=yes
6959               else
6960                   defaultval=no
6961               fi
6962           fi
6963
6964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6965 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6966           # Check whether --enable-fontmap was given.
6967 if test "${enable_fontmap+set}" = set; then
6968   enableval=$enable_fontmap;
6969                           if test "$enableval" = yes; then
6970                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6971                           else
6972                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6973                           fi
6974
6975 else
6976
6977                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6978
6979 fi
6980
6981
6982           eval "$wx_cv_use_fontmap"
6983
6984           if test x"$enablestring" = xdisable; then
6985             if test $wxUSE_FONTMAP = yes; then
6986               result=no
6987             else
6988               result=yes
6989             fi
6990           else
6991             result=$wxUSE_FONTMAP
6992           fi
6993
6994           { echo "$as_me:$LINENO: result: $result" >&5
6995 echo "${ECHO_T}$result" >&6; }
6996
6997
6998           enablestring=
6999           defaultval=$wxUSE_ALL_FEATURES
7000           if test -z "$defaultval"; then
7001               if test x"$enablestring" = xdisable; then
7002                   defaultval=yes
7003               else
7004                   defaultval=no
7005               fi
7006           fi
7007
7008           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7009 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7010           # Check whether --enable-fs_archive was given.
7011 if test "${enable_fs_archive+set}" = set; then
7012   enableval=$enable_fs_archive;
7013                           if test "$enableval" = yes; then
7014                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7015                           else
7016                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7017                           fi
7018
7019 else
7020
7021                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7022
7023 fi
7024
7025
7026           eval "$wx_cv_use_fs_archive"
7027
7028           if test x"$enablestring" = xdisable; then
7029             if test $wxUSE_FS_ARCHIVE = yes; then
7030               result=no
7031             else
7032               result=yes
7033             fi
7034           else
7035             result=$wxUSE_FS_ARCHIVE
7036           fi
7037
7038           { echo "$as_me:$LINENO: result: $result" >&5
7039 echo "${ECHO_T}$result" >&6; }
7040
7041
7042           enablestring=
7043           defaultval=$wxUSE_ALL_FEATURES
7044           if test -z "$defaultval"; then
7045               if test x"$enablestring" = xdisable; then
7046                   defaultval=yes
7047               else
7048                   defaultval=no
7049               fi
7050           fi
7051
7052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7053 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7054           # Check whether --enable-fs_inet was given.
7055 if test "${enable_fs_inet+set}" = set; then
7056   enableval=$enable_fs_inet;
7057                           if test "$enableval" = yes; then
7058                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7059                           else
7060                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7061                           fi
7062
7063 else
7064
7065                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7066
7067 fi
7068
7069
7070           eval "$wx_cv_use_fs_inet"
7071
7072           if test x"$enablestring" = xdisable; then
7073             if test $wxUSE_FS_INET = yes; then
7074               result=no
7075             else
7076               result=yes
7077             fi
7078           else
7079             result=$wxUSE_FS_INET
7080           fi
7081
7082           { echo "$as_me:$LINENO: result: $result" >&5
7083 echo "${ECHO_T}$result" >&6; }
7084
7085
7086           enablestring=
7087           defaultval=$wxUSE_ALL_FEATURES
7088           if test -z "$defaultval"; then
7089               if test x"$enablestring" = xdisable; then
7090                   defaultval=yes
7091               else
7092                   defaultval=no
7093               fi
7094           fi
7095
7096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7097 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7098           # Check whether --enable-fs_zip was given.
7099 if test "${enable_fs_zip+set}" = set; then
7100   enableval=$enable_fs_zip;
7101                           if test "$enableval" = yes; then
7102                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7103                           else
7104                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7105                           fi
7106
7107 else
7108
7109                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7110
7111 fi
7112
7113
7114           eval "$wx_cv_use_fs_zip"
7115
7116           if test x"$enablestring" = xdisable; then
7117             if test $wxUSE_FS_ZIP = yes; then
7118               result=no
7119             else
7120               result=yes
7121             fi
7122           else
7123             result=$wxUSE_FS_ZIP
7124           fi
7125
7126           { echo "$as_me:$LINENO: result: $result" >&5
7127 echo "${ECHO_T}$result" >&6; }
7128
7129
7130           enablestring=
7131           defaultval=$wxUSE_ALL_FEATURES
7132           if test -z "$defaultval"; then
7133               if test x"$enablestring" = xdisable; then
7134                   defaultval=yes
7135               else
7136                   defaultval=no
7137               fi
7138           fi
7139
7140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7141 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7142           # Check whether --enable-geometry was given.
7143 if test "${enable_geometry+set}" = set; then
7144   enableval=$enable_geometry;
7145                           if test "$enableval" = yes; then
7146                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7147                           else
7148                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7149                           fi
7150
7151 else
7152
7153                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7154
7155 fi
7156
7157
7158           eval "$wx_cv_use_geometry"
7159
7160           if test x"$enablestring" = xdisable; then
7161             if test $wxUSE_GEOMETRY = yes; then
7162               result=no
7163             else
7164               result=yes
7165             fi
7166           else
7167             result=$wxUSE_GEOMETRY
7168           fi
7169
7170           { echo "$as_me:$LINENO: result: $result" >&5
7171 echo "${ECHO_T}$result" >&6; }
7172
7173
7174           enablestring=
7175           defaultval=$wxUSE_ALL_FEATURES
7176           if test -z "$defaultval"; then
7177               if test x"$enablestring" = xdisable; then
7178                   defaultval=yes
7179               else
7180                   defaultval=no
7181               fi
7182           fi
7183
7184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7185 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7186           # Check whether --enable-log was given.
7187 if test "${enable_log+set}" = set; then
7188   enableval=$enable_log;
7189                           if test "$enableval" = yes; then
7190                             wx_cv_use_log='wxUSE_LOG=yes'
7191                           else
7192                             wx_cv_use_log='wxUSE_LOG=no'
7193                           fi
7194
7195 else
7196
7197                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7198
7199 fi
7200
7201
7202           eval "$wx_cv_use_log"
7203
7204           if test x"$enablestring" = xdisable; then
7205             if test $wxUSE_LOG = yes; then
7206               result=no
7207             else
7208               result=yes
7209             fi
7210           else
7211             result=$wxUSE_LOG
7212           fi
7213
7214           { echo "$as_me:$LINENO: result: $result" >&5
7215 echo "${ECHO_T}$result" >&6; }
7216
7217
7218           enablestring=
7219           defaultval=$wxUSE_ALL_FEATURES
7220           if test -z "$defaultval"; then
7221               if test x"$enablestring" = xdisable; then
7222                   defaultval=yes
7223               else
7224                   defaultval=no
7225               fi
7226           fi
7227
7228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7229 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7230           # Check whether --enable-longlong was given.
7231 if test "${enable_longlong+set}" = set; then
7232   enableval=$enable_longlong;
7233                           if test "$enableval" = yes; then
7234                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7235                           else
7236                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7237                           fi
7238
7239 else
7240
7241                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7242
7243 fi
7244
7245
7246           eval "$wx_cv_use_longlong"
7247
7248           if test x"$enablestring" = xdisable; then
7249             if test $wxUSE_LONGLONG = yes; then
7250               result=no
7251             else
7252               result=yes
7253             fi
7254           else
7255             result=$wxUSE_LONGLONG
7256           fi
7257
7258           { echo "$as_me:$LINENO: result: $result" >&5
7259 echo "${ECHO_T}$result" >&6; }
7260
7261
7262           enablestring=
7263           defaultval=$wxUSE_ALL_FEATURES
7264           if test -z "$defaultval"; then
7265               if test x"$enablestring" = xdisable; then
7266                   defaultval=yes
7267               else
7268                   defaultval=no
7269               fi
7270           fi
7271
7272           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7273 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7274           # Check whether --enable-mimetype was given.
7275 if test "${enable_mimetype+set}" = set; then
7276   enableval=$enable_mimetype;
7277                           if test "$enableval" = yes; then
7278                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7279                           else
7280                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7281                           fi
7282
7283 else
7284
7285                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7286
7287 fi
7288
7289
7290           eval "$wx_cv_use_mimetype"
7291
7292           if test x"$enablestring" = xdisable; then
7293             if test $wxUSE_MIMETYPE = yes; then
7294               result=no
7295             else
7296               result=yes
7297             fi
7298           else
7299             result=$wxUSE_MIMETYPE
7300           fi
7301
7302           { echo "$as_me:$LINENO: result: $result" >&5
7303 echo "${ECHO_T}$result" >&6; }
7304
7305
7306           enablestring=
7307           defaultval=$wxUSE_ALL_FEATURES
7308           if test -z "$defaultval"; then
7309               if test x"$enablestring" = xdisable; then
7310                   defaultval=yes
7311               else
7312                   defaultval=no
7313               fi
7314           fi
7315
7316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7317 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7318           # Check whether --enable-printfposparam was given.
7319 if test "${enable_printfposparam+set}" = set; then
7320   enableval=$enable_printfposparam;
7321                           if test "$enableval" = yes; then
7322                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7323                           else
7324                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7325                           fi
7326
7327 else
7328
7329                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7330
7331 fi
7332
7333
7334           eval "$wx_cv_use_printfposparam"
7335
7336           if test x"$enablestring" = xdisable; then
7337             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7338               result=no
7339             else
7340               result=yes
7341             fi
7342           else
7343             result=$wxUSE_PRINTF_POS_PARAMS
7344           fi
7345
7346           { echo "$as_me:$LINENO: result: $result" >&5
7347 echo "${ECHO_T}$result" >&6; }
7348
7349
7350           enablestring=
7351           defaultval=$wxUSE_ALL_FEATURES
7352           if test -z "$defaultval"; then
7353               if test x"$enablestring" = xdisable; then
7354                   defaultval=yes
7355               else
7356                   defaultval=no
7357               fi
7358           fi
7359
7360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7361 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7362           # Check whether --enable-snglinst was given.
7363 if test "${enable_snglinst+set}" = set; then
7364   enableval=$enable_snglinst;
7365                           if test "$enableval" = yes; then
7366                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7367                           else
7368                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7369                           fi
7370
7371 else
7372
7373                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7374
7375 fi
7376
7377
7378           eval "$wx_cv_use_snglinst"
7379
7380           if test x"$enablestring" = xdisable; then
7381             if test $wxUSE_SNGLINST_CHECKER = yes; then
7382               result=no
7383             else
7384               result=yes
7385             fi
7386           else
7387             result=$wxUSE_SNGLINST_CHECKER
7388           fi
7389
7390           { echo "$as_me:$LINENO: result: $result" >&5
7391 echo "${ECHO_T}$result" >&6; }
7392
7393
7394           enablestring=
7395           defaultval=$wxUSE_ALL_FEATURES
7396           if test -z "$defaultval"; then
7397               if test x"$enablestring" = xdisable; then
7398                   defaultval=yes
7399               else
7400                   defaultval=no
7401               fi
7402           fi
7403
7404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7405 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7406           # Check whether --enable-sound was given.
7407 if test "${enable_sound+set}" = set; then
7408   enableval=$enable_sound;
7409                           if test "$enableval" = yes; then
7410                             wx_cv_use_sound='wxUSE_SOUND=yes'
7411                           else
7412                             wx_cv_use_sound='wxUSE_SOUND=no'
7413                           fi
7414
7415 else
7416
7417                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7418
7419 fi
7420
7421
7422           eval "$wx_cv_use_sound"
7423
7424           if test x"$enablestring" = xdisable; then
7425             if test $wxUSE_SOUND = yes; then
7426               result=no
7427             else
7428               result=yes
7429             fi
7430           else
7431             result=$wxUSE_SOUND
7432           fi
7433
7434           { echo "$as_me:$LINENO: result: $result" >&5
7435 echo "${ECHO_T}$result" >&6; }
7436
7437
7438           enablestring=
7439           defaultval=$wxUSE_ALL_FEATURES
7440           if test -z "$defaultval"; then
7441               if test x"$enablestring" = xdisable; then
7442                   defaultval=yes
7443               else
7444                   defaultval=no
7445               fi
7446           fi
7447
7448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7449 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7450           # Check whether --enable-stdpaths was given.
7451 if test "${enable_stdpaths+set}" = set; then
7452   enableval=$enable_stdpaths;
7453                           if test "$enableval" = yes; then
7454                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7455                           else
7456                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7457                           fi
7458
7459 else
7460
7461                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7462
7463 fi
7464
7465
7466           eval "$wx_cv_use_stdpaths"
7467
7468           if test x"$enablestring" = xdisable; then
7469             if test $wxUSE_STDPATHS = yes; then
7470               result=no
7471             else
7472               result=yes
7473             fi
7474           else
7475             result=$wxUSE_STDPATHS
7476           fi
7477
7478           { echo "$as_me:$LINENO: result: $result" >&5
7479 echo "${ECHO_T}$result" >&6; }
7480
7481
7482           enablestring=
7483           defaultval=$wxUSE_ALL_FEATURES
7484           if test -z "$defaultval"; then
7485               if test x"$enablestring" = xdisable; then
7486                   defaultval=yes
7487               else
7488                   defaultval=no
7489               fi
7490           fi
7491
7492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7493 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7494           # Check whether --enable-stopwatch was given.
7495 if test "${enable_stopwatch+set}" = set; then
7496   enableval=$enable_stopwatch;
7497                           if test "$enableval" = yes; then
7498                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7499                           else
7500                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7501                           fi
7502
7503 else
7504
7505                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7506
7507 fi
7508
7509
7510           eval "$wx_cv_use_stopwatch"
7511
7512           if test x"$enablestring" = xdisable; then
7513             if test $wxUSE_STOPWATCH = yes; then
7514               result=no
7515             else
7516               result=yes
7517             fi
7518           else
7519             result=$wxUSE_STOPWATCH
7520           fi
7521
7522           { echo "$as_me:$LINENO: result: $result" >&5
7523 echo "${ECHO_T}$result" >&6; }
7524
7525
7526           enablestring=
7527           defaultval=$wxUSE_ALL_FEATURES
7528           if test -z "$defaultval"; then
7529               if test x"$enablestring" = xdisable; then
7530                   defaultval=yes
7531               else
7532                   defaultval=no
7533               fi
7534           fi
7535
7536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7537 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7538           # Check whether --enable-streams was given.
7539 if test "${enable_streams+set}" = set; then
7540   enableval=$enable_streams;
7541                           if test "$enableval" = yes; then
7542                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7543                           else
7544                             wx_cv_use_streams='wxUSE_STREAMS=no'
7545                           fi
7546
7547 else
7548
7549                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7550
7551 fi
7552
7553
7554           eval "$wx_cv_use_streams"
7555
7556           if test x"$enablestring" = xdisable; then
7557             if test $wxUSE_STREAMS = yes; then
7558               result=no
7559             else
7560               result=yes
7561             fi
7562           else
7563             result=$wxUSE_STREAMS
7564           fi
7565
7566           { echo "$as_me:$LINENO: result: $result" >&5
7567 echo "${ECHO_T}$result" >&6; }
7568
7569
7570           enablestring=
7571           defaultval=$wxUSE_ALL_FEATURES
7572           if test -z "$defaultval"; then
7573               if test x"$enablestring" = xdisable; then
7574                   defaultval=yes
7575               else
7576                   defaultval=no
7577               fi
7578           fi
7579
7580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7581 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7582           # Check whether --enable-system_options was given.
7583 if test "${enable_system_options+set}" = set; then
7584   enableval=$enable_system_options;
7585                           if test "$enableval" = yes; then
7586                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7587                           else
7588                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7589                           fi
7590
7591 else
7592
7593                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7594
7595 fi
7596
7597
7598           eval "$wx_cv_use_system_options"
7599
7600           if test x"$enablestring" = xdisable; then
7601             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7602               result=no
7603             else
7604               result=yes
7605             fi
7606           else
7607             result=$wxUSE_SYSTEM_OPTIONS
7608           fi
7609
7610           { echo "$as_me:$LINENO: result: $result" >&5
7611 echo "${ECHO_T}$result" >&6; }
7612
7613
7614           enablestring=
7615           defaultval=$wxUSE_ALL_FEATURES
7616           if test -z "$defaultval"; then
7617               if test x"$enablestring" = xdisable; then
7618                   defaultval=yes
7619               else
7620                   defaultval=no
7621               fi
7622           fi
7623
7624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7625 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7626           # Check whether --enable-tarstream was given.
7627 if test "${enable_tarstream+set}" = set; then
7628   enableval=$enable_tarstream;
7629                           if test "$enableval" = yes; then
7630                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7631                           else
7632                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7633                           fi
7634
7635 else
7636
7637                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7638
7639 fi
7640
7641
7642           eval "$wx_cv_use_tarstream"
7643
7644           if test x"$enablestring" = xdisable; then
7645             if test $wxUSE_TARSTREAM = yes; then
7646               result=no
7647             else
7648               result=yes
7649             fi
7650           else
7651             result=$wxUSE_TARSTREAM
7652           fi
7653
7654           { echo "$as_me:$LINENO: result: $result" >&5
7655 echo "${ECHO_T}$result" >&6; }
7656
7657
7658           enablestring=
7659           defaultval=$wxUSE_ALL_FEATURES
7660           if test -z "$defaultval"; then
7661               if test x"$enablestring" = xdisable; then
7662                   defaultval=yes
7663               else
7664                   defaultval=no
7665               fi
7666           fi
7667
7668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7669 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7670           # Check whether --enable-textbuf was given.
7671 if test "${enable_textbuf+set}" = set; then
7672   enableval=$enable_textbuf;
7673                           if test "$enableval" = yes; then
7674                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7675                           else
7676                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7677                           fi
7678
7679 else
7680
7681                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7682
7683 fi
7684
7685
7686           eval "$wx_cv_use_textbuf"
7687
7688           if test x"$enablestring" = xdisable; then
7689             if test $wxUSE_TEXTBUFFER = yes; then
7690               result=no
7691             else
7692               result=yes
7693             fi
7694           else
7695             result=$wxUSE_TEXTBUFFER
7696           fi
7697
7698           { echo "$as_me:$LINENO: result: $result" >&5
7699 echo "${ECHO_T}$result" >&6; }
7700
7701
7702           enablestring=
7703           defaultval=$wxUSE_ALL_FEATURES
7704           if test -z "$defaultval"; then
7705               if test x"$enablestring" = xdisable; then
7706                   defaultval=yes
7707               else
7708                   defaultval=no
7709               fi
7710           fi
7711
7712           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7713 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7714           # Check whether --enable-textfile was given.
7715 if test "${enable_textfile+set}" = set; then
7716   enableval=$enable_textfile;
7717                           if test "$enableval" = yes; then
7718                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7719                           else
7720                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7721                           fi
7722
7723 else
7724
7725                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7726
7727 fi
7728
7729
7730           eval "$wx_cv_use_textfile"
7731
7732           if test x"$enablestring" = xdisable; then
7733             if test $wxUSE_TEXTFILE = yes; then
7734               result=no
7735             else
7736               result=yes
7737             fi
7738           else
7739             result=$wxUSE_TEXTFILE
7740           fi
7741
7742           { echo "$as_me:$LINENO: result: $result" >&5
7743 echo "${ECHO_T}$result" >&6; }
7744
7745
7746           enablestring=
7747           defaultval=$wxUSE_ALL_FEATURES
7748           if test -z "$defaultval"; then
7749               if test x"$enablestring" = xdisable; then
7750                   defaultval=yes
7751               else
7752                   defaultval=no
7753               fi
7754           fi
7755
7756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7757 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7758           # Check whether --enable-timer was given.
7759 if test "${enable_timer+set}" = set; then
7760   enableval=$enable_timer;
7761                           if test "$enableval" = yes; then
7762                             wx_cv_use_timer='wxUSE_TIMER=yes'
7763                           else
7764                             wx_cv_use_timer='wxUSE_TIMER=no'
7765                           fi
7766
7767 else
7768
7769                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7770
7771 fi
7772
7773
7774           eval "$wx_cv_use_timer"
7775
7776           if test x"$enablestring" = xdisable; then
7777             if test $wxUSE_TIMER = yes; then
7778               result=no
7779             else
7780               result=yes
7781             fi
7782           else
7783             result=$wxUSE_TIMER
7784           fi
7785
7786           { echo "$as_me:$LINENO: result: $result" >&5
7787 echo "${ECHO_T}$result" >&6; }
7788
7789
7790           enablestring=
7791           defaultval=$wxUSE_ALL_FEATURES
7792           if test -z "$defaultval"; then
7793               if test x"$enablestring" = xdisable; then
7794                   defaultval=yes
7795               else
7796                   defaultval=no
7797               fi
7798           fi
7799
7800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7801 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7802           # Check whether --enable-variant was given.
7803 if test "${enable_variant+set}" = set; then
7804   enableval=$enable_variant;
7805                           if test "$enableval" = yes; then
7806                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7807                           else
7808                             wx_cv_use_variant='wxUSE_VARIANT=no'
7809                           fi
7810
7811 else
7812
7813                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7814
7815 fi
7816
7817
7818           eval "$wx_cv_use_variant"
7819
7820           if test x"$enablestring" = xdisable; then
7821             if test $wxUSE_VARIANT = yes; then
7822               result=no
7823             else
7824               result=yes
7825             fi
7826           else
7827             result=$wxUSE_VARIANT
7828           fi
7829
7830           { echo "$as_me:$LINENO: result: $result" >&5
7831 echo "${ECHO_T}$result" >&6; }
7832
7833
7834           enablestring=
7835           defaultval=$wxUSE_ALL_FEATURES
7836           if test -z "$defaultval"; then
7837               if test x"$enablestring" = xdisable; then
7838                   defaultval=yes
7839               else
7840                   defaultval=no
7841               fi
7842           fi
7843
7844           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7845 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7846           # Check whether --enable-zipstream was given.
7847 if test "${enable_zipstream+set}" = set; then
7848   enableval=$enable_zipstream;
7849                           if test "$enableval" = yes; then
7850                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7851                           else
7852                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7853                           fi
7854
7855 else
7856
7857                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7858
7859 fi
7860
7861
7862           eval "$wx_cv_use_zipstream"
7863
7864           if test x"$enablestring" = xdisable; then
7865             if test $wxUSE_ZIPSTREAM = yes; then
7866               result=no
7867             else
7868               result=yes
7869             fi
7870           else
7871             result=$wxUSE_ZIPSTREAM
7872           fi
7873
7874           { echo "$as_me:$LINENO: result: $result" >&5
7875 echo "${ECHO_T}$result" >&6; }
7876
7877
7878
7879           enablestring=
7880           defaultval=$wxUSE_ALL_FEATURES
7881           if test -z "$defaultval"; then
7882               if test x"$enablestring" = xdisable; then
7883                   defaultval=yes
7884               else
7885                   defaultval=no
7886               fi
7887           fi
7888
7889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7890 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7891           # Check whether --enable-url was given.
7892 if test "${enable_url+set}" = set; then
7893   enableval=$enable_url;
7894                           if test "$enableval" = yes; then
7895                             wx_cv_use_url='wxUSE_URL=yes'
7896                           else
7897                             wx_cv_use_url='wxUSE_URL=no'
7898                           fi
7899
7900 else
7901
7902                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7903
7904 fi
7905
7906
7907           eval "$wx_cv_use_url"
7908
7909           if test x"$enablestring" = xdisable; then
7910             if test $wxUSE_URL = yes; then
7911               result=no
7912             else
7913               result=yes
7914             fi
7915           else
7916             result=$wxUSE_URL
7917           fi
7918
7919           { echo "$as_me:$LINENO: result: $result" >&5
7920 echo "${ECHO_T}$result" >&6; }
7921
7922
7923           enablestring=
7924           defaultval=$wxUSE_ALL_FEATURES
7925           if test -z "$defaultval"; then
7926               if test x"$enablestring" = xdisable; then
7927                   defaultval=yes
7928               else
7929                   defaultval=no
7930               fi
7931           fi
7932
7933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7934 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7935           # Check whether --enable-protocol was given.
7936 if test "${enable_protocol+set}" = set; then
7937   enableval=$enable_protocol;
7938                           if test "$enableval" = yes; then
7939                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7940                           else
7941                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7942                           fi
7943
7944 else
7945
7946                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7947
7948 fi
7949
7950
7951           eval "$wx_cv_use_protocol"
7952
7953           if test x"$enablestring" = xdisable; then
7954             if test $wxUSE_PROTOCOL = yes; then
7955               result=no
7956             else
7957               result=yes
7958             fi
7959           else
7960             result=$wxUSE_PROTOCOL
7961           fi
7962
7963           { echo "$as_me:$LINENO: result: $result" >&5
7964 echo "${ECHO_T}$result" >&6; }
7965
7966
7967           enablestring=
7968           defaultval=$wxUSE_ALL_FEATURES
7969           if test -z "$defaultval"; then
7970               if test x"$enablestring" = xdisable; then
7971                   defaultval=yes
7972               else
7973                   defaultval=no
7974               fi
7975           fi
7976
7977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7978 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7979           # Check whether --enable-protocol_http was given.
7980 if test "${enable_protocol_http+set}" = set; then
7981   enableval=$enable_protocol_http;
7982                           if test "$enableval" = yes; then
7983                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7984                           else
7985                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7986                           fi
7987
7988 else
7989
7990                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7991
7992 fi
7993
7994
7995           eval "$wx_cv_use_protocol_http"
7996
7997           if test x"$enablestring" = xdisable; then
7998             if test $wxUSE_PROTOCOL_HTTP = yes; then
7999               result=no
8000             else
8001               result=yes
8002             fi
8003           else
8004             result=$wxUSE_PROTOCOL_HTTP
8005           fi
8006
8007           { echo "$as_me:$LINENO: result: $result" >&5
8008 echo "${ECHO_T}$result" >&6; }
8009
8010
8011           enablestring=
8012           defaultval=$wxUSE_ALL_FEATURES
8013           if test -z "$defaultval"; then
8014               if test x"$enablestring" = xdisable; then
8015                   defaultval=yes
8016               else
8017                   defaultval=no
8018               fi
8019           fi
8020
8021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8022 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8023           # Check whether --enable-protocol_ftp was given.
8024 if test "${enable_protocol_ftp+set}" = set; then
8025   enableval=$enable_protocol_ftp;
8026                           if test "$enableval" = yes; then
8027                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8028                           else
8029                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8030                           fi
8031
8032 else
8033
8034                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8035
8036 fi
8037
8038
8039           eval "$wx_cv_use_protocol_ftp"
8040
8041           if test x"$enablestring" = xdisable; then
8042             if test $wxUSE_PROTOCOL_FTP = yes; then
8043               result=no
8044             else
8045               result=yes
8046             fi
8047           else
8048             result=$wxUSE_PROTOCOL_FTP
8049           fi
8050
8051           { echo "$as_me:$LINENO: result: $result" >&5
8052 echo "${ECHO_T}$result" >&6; }
8053
8054
8055           enablestring=
8056           defaultval=$wxUSE_ALL_FEATURES
8057           if test -z "$defaultval"; then
8058               if test x"$enablestring" = xdisable; then
8059                   defaultval=yes
8060               else
8061                   defaultval=no
8062               fi
8063           fi
8064
8065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8066 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8067           # Check whether --enable-protocol_file was given.
8068 if test "${enable_protocol_file+set}" = set; then
8069   enableval=$enable_protocol_file;
8070                           if test "$enableval" = yes; then
8071                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8072                           else
8073                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8074                           fi
8075
8076 else
8077
8078                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8079
8080 fi
8081
8082
8083           eval "$wx_cv_use_protocol_file"
8084
8085           if test x"$enablestring" = xdisable; then
8086             if test $wxUSE_PROTOCOL_FILE = yes; then
8087               result=no
8088             else
8089               result=yes
8090             fi
8091           else
8092             result=$wxUSE_PROTOCOL_FILE
8093           fi
8094
8095           { echo "$as_me:$LINENO: result: $result" >&5
8096 echo "${ECHO_T}$result" >&6; }
8097
8098
8099
8100           enablestring=
8101           defaultval=$wxUSE_ALL_FEATURES
8102           if test -z "$defaultval"; then
8103               if test x"$enablestring" = xdisable; then
8104                   defaultval=yes
8105               else
8106                   defaultval=no
8107               fi
8108           fi
8109
8110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8111 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8112           # Check whether --enable-threads was given.
8113 if test "${enable_threads+set}" = set; then
8114   enableval=$enable_threads;
8115                           if test "$enableval" = yes; then
8116                             wx_cv_use_threads='wxUSE_THREADS=yes'
8117                           else
8118                             wx_cv_use_threads='wxUSE_THREADS=no'
8119                           fi
8120
8121 else
8122
8123                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8124
8125 fi
8126
8127
8128           eval "$wx_cv_use_threads"
8129
8130           if test x"$enablestring" = xdisable; then
8131             if test $wxUSE_THREADS = yes; then
8132               result=no
8133             else
8134               result=yes
8135             fi
8136           else
8137             result=$wxUSE_THREADS
8138           fi
8139
8140           { echo "$as_me:$LINENO: result: $result" >&5
8141 echo "${ECHO_T}$result" >&6; }
8142
8143
8144
8145           enablestring=
8146           defaultval=
8147           if test -z "$defaultval"; then
8148               if test x"$enablestring" = xdisable; then
8149                   defaultval=yes
8150               else
8151                   defaultval=no
8152               fi
8153           fi
8154
8155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8156 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8157           # Check whether --enable-iniconf was given.
8158 if test "${enable_iniconf+set}" = set; then
8159   enableval=$enable_iniconf;
8160                           if test "$enableval" = yes; then
8161                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8162                           else
8163                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8164                           fi
8165
8166 else
8167
8168                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8169
8170 fi
8171
8172
8173           eval "$wx_cv_use_iniconf"
8174
8175           if test x"$enablestring" = xdisable; then
8176             if test $wxUSE_INICONF = yes; then
8177               result=no
8178             else
8179               result=yes
8180             fi
8181           else
8182             result=$wxUSE_INICONF
8183           fi
8184
8185           { echo "$as_me:$LINENO: result: $result" >&5
8186 echo "${ECHO_T}$result" >&6; }
8187
8188
8189           enablestring=
8190           defaultval=$wxUSE_ALL_FEATURES
8191           if test -z "$defaultval"; then
8192               if test x"$enablestring" = xdisable; then
8193                   defaultval=yes
8194               else
8195                   defaultval=no
8196               fi
8197           fi
8198
8199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8200 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8201           # Check whether --enable-regkey was given.
8202 if test "${enable_regkey+set}" = set; then
8203   enableval=$enable_regkey;
8204                           if test "$enableval" = yes; then
8205                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8206                           else
8207                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8208                           fi
8209
8210 else
8211
8212                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8213
8214 fi
8215
8216
8217           eval "$wx_cv_use_regkey"
8218
8219           if test x"$enablestring" = xdisable; then
8220             if test $wxUSE_REGKEY = yes; then
8221               result=no
8222             else
8223               result=yes
8224             fi
8225           else
8226             result=$wxUSE_REGKEY
8227           fi
8228
8229           { echo "$as_me:$LINENO: result: $result" >&5
8230 echo "${ECHO_T}$result" >&6; }
8231
8232
8233 if test "$wxUSE_GUI" = "yes"; then
8234
8235
8236
8237           enablestring=
8238           defaultval=$wxUSE_ALL_FEATURES
8239           if test -z "$defaultval"; then
8240               if test x"$enablestring" = xdisable; then
8241                   defaultval=yes
8242               else
8243                   defaultval=no
8244               fi
8245           fi
8246
8247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8248 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8249           # Check whether --enable-docview was given.
8250 if test "${enable_docview+set}" = set; then
8251   enableval=$enable_docview;
8252                           if test "$enableval" = yes; then
8253                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8254                           else
8255                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8256                           fi
8257
8258 else
8259
8260                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8261
8262 fi
8263
8264
8265           eval "$wx_cv_use_docview"
8266
8267           if test x"$enablestring" = xdisable; then
8268             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8269               result=no
8270             else
8271               result=yes
8272             fi
8273           else
8274             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8275           fi
8276
8277           { echo "$as_me:$LINENO: result: $result" >&5
8278 echo "${ECHO_T}$result" >&6; }
8279
8280
8281           enablestring=
8282           defaultval=$wxUSE_ALL_FEATURES
8283           if test -z "$defaultval"; then
8284               if test x"$enablestring" = xdisable; then
8285                   defaultval=yes
8286               else
8287                   defaultval=no
8288               fi
8289           fi
8290
8291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8292 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8293           # Check whether --enable-help was given.
8294 if test "${enable_help+set}" = set; then
8295   enableval=$enable_help;
8296                           if test "$enableval" = yes; then
8297                             wx_cv_use_help='wxUSE_HELP=yes'
8298                           else
8299                             wx_cv_use_help='wxUSE_HELP=no'
8300                           fi
8301
8302 else
8303
8304                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8305
8306 fi
8307
8308
8309           eval "$wx_cv_use_help"
8310
8311           if test x"$enablestring" = xdisable; then
8312             if test $wxUSE_HELP = yes; then
8313               result=no
8314             else
8315               result=yes
8316             fi
8317           else
8318             result=$wxUSE_HELP
8319           fi
8320
8321           { echo "$as_me:$LINENO: result: $result" >&5
8322 echo "${ECHO_T}$result" >&6; }
8323
8324
8325           enablestring=
8326           defaultval=$wxUSE_ALL_FEATURES
8327           if test -z "$defaultval"; then
8328               if test x"$enablestring" = xdisable; then
8329                   defaultval=yes
8330               else
8331                   defaultval=no
8332               fi
8333           fi
8334
8335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8336 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8337           # Check whether --enable-mshtmlhelp was given.
8338 if test "${enable_mshtmlhelp+set}" = set; then
8339   enableval=$enable_mshtmlhelp;
8340                           if test "$enableval" = yes; then
8341                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8342                           else
8343                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8344                           fi
8345
8346 else
8347
8348                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8349
8350 fi
8351
8352
8353           eval "$wx_cv_use_mshtmlhelp"
8354
8355           if test x"$enablestring" = xdisable; then
8356             if test $wxUSE_MS_HTML_HELP = yes; then
8357               result=no
8358             else
8359               result=yes
8360             fi
8361           else
8362             result=$wxUSE_MS_HTML_HELP
8363           fi
8364
8365           { echo "$as_me:$LINENO: result: $result" >&5
8366 echo "${ECHO_T}$result" >&6; }
8367
8368
8369           enablestring=
8370           defaultval=$wxUSE_ALL_FEATURES
8371           if test -z "$defaultval"; then
8372               if test x"$enablestring" = xdisable; then
8373                   defaultval=yes
8374               else
8375                   defaultval=no
8376               fi
8377           fi
8378
8379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8380 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8381           # Check whether --enable-html was given.
8382 if test "${enable_html+set}" = set; then
8383   enableval=$enable_html;
8384                           if test "$enableval" = yes; then
8385                             wx_cv_use_html='wxUSE_HTML=yes'
8386                           else
8387                             wx_cv_use_html='wxUSE_HTML=no'
8388                           fi
8389
8390 else
8391
8392                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8393
8394 fi
8395
8396
8397           eval "$wx_cv_use_html"
8398
8399           if test x"$enablestring" = xdisable; then
8400             if test $wxUSE_HTML = yes; then
8401               result=no
8402             else
8403               result=yes
8404             fi
8405           else
8406             result=$wxUSE_HTML
8407           fi
8408
8409           { echo "$as_me:$LINENO: result: $result" >&5
8410 echo "${ECHO_T}$result" >&6; }
8411
8412
8413           enablestring=
8414           defaultval=$wxUSE_ALL_FEATURES
8415           if test -z "$defaultval"; then
8416               if test x"$enablestring" = xdisable; then
8417                   defaultval=yes
8418               else
8419                   defaultval=no
8420               fi
8421           fi
8422
8423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8424 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8425           # Check whether --enable-htmlhelp was given.
8426 if test "${enable_htmlhelp+set}" = set; then
8427   enableval=$enable_htmlhelp;
8428                           if test "$enableval" = yes; then
8429                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8430                           else
8431                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8432                           fi
8433
8434 else
8435
8436                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8437
8438 fi
8439
8440
8441           eval "$wx_cv_use_htmlhelp"
8442
8443           if test x"$enablestring" = xdisable; then
8444             if test $wxUSE_WXHTML_HELP = yes; then
8445               result=no
8446             else
8447               result=yes
8448             fi
8449           else
8450             result=$wxUSE_WXHTML_HELP
8451           fi
8452
8453           { echo "$as_me:$LINENO: result: $result" >&5
8454 echo "${ECHO_T}$result" >&6; }
8455
8456
8457           enablestring=
8458           defaultval=$wxUSE_ALL_FEATURES
8459           if test -z "$defaultval"; then
8460               if test x"$enablestring" = xdisable; then
8461                   defaultval=yes
8462               else
8463                   defaultval=no
8464               fi
8465           fi
8466
8467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8468 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8469           # Check whether --enable-xrc was given.
8470 if test "${enable_xrc+set}" = set; then
8471   enableval=$enable_xrc;
8472                           if test "$enableval" = yes; then
8473                             wx_cv_use_xrc='wxUSE_XRC=yes'
8474                           else
8475                             wx_cv_use_xrc='wxUSE_XRC=no'
8476                           fi
8477
8478 else
8479
8480                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8481
8482 fi
8483
8484
8485           eval "$wx_cv_use_xrc"
8486
8487           if test x"$enablestring" = xdisable; then
8488             if test $wxUSE_XRC = yes; then
8489               result=no
8490             else
8491               result=yes
8492             fi
8493           else
8494             result=$wxUSE_XRC
8495           fi
8496
8497           { echo "$as_me:$LINENO: result: $result" >&5
8498 echo "${ECHO_T}$result" >&6; }
8499
8500
8501           enablestring=
8502           defaultval=$wxUSE_ALL_FEATURES
8503           if test -z "$defaultval"; then
8504               if test x"$enablestring" = xdisable; then
8505                   defaultval=yes
8506               else
8507                   defaultval=no
8508               fi
8509           fi
8510
8511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8512 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8513           # Check whether --enable-aui was given.
8514 if test "${enable_aui+set}" = set; then
8515   enableval=$enable_aui;
8516                           if test "$enableval" = yes; then
8517                             wx_cv_use_aui='wxUSE_AUI=yes'
8518                           else
8519                             wx_cv_use_aui='wxUSE_AUI=no'
8520                           fi
8521
8522 else
8523
8524                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8525
8526 fi
8527
8528
8529           eval "$wx_cv_use_aui"
8530
8531           if test x"$enablestring" = xdisable; then
8532             if test $wxUSE_AUI = yes; then
8533               result=no
8534             else
8535               result=yes
8536             fi
8537           else
8538             result=$wxUSE_AUI
8539           fi
8540
8541           { echo "$as_me:$LINENO: result: $result" >&5
8542 echo "${ECHO_T}$result" >&6; }
8543
8544
8545           enablestring=
8546           defaultval=$wxUSE_ALL_FEATURES
8547           if test -z "$defaultval"; then
8548               if test x"$enablestring" = xdisable; then
8549                   defaultval=yes
8550               else
8551                   defaultval=no
8552               fi
8553           fi
8554
8555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8556 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8557           # Check whether --enable-propgrid was given.
8558 if test "${enable_propgrid+set}" = set; then
8559   enableval=$enable_propgrid;
8560                           if test "$enableval" = yes; then
8561                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8562                           else
8563                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8564                           fi
8565
8566 else
8567
8568                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8569
8570 fi
8571
8572
8573           eval "$wx_cv_use_propgrid"
8574
8575           if test x"$enablestring" = xdisable; then
8576             if test $wxUSE_PROPGRID = yes; then
8577               result=no
8578             else
8579               result=yes
8580             fi
8581           else
8582             result=$wxUSE_PROPGRID
8583           fi
8584
8585           { echo "$as_me:$LINENO: result: $result" >&5
8586 echo "${ECHO_T}$result" >&6; }
8587
8588
8589           enablestring=
8590           defaultval=$wxUSE_ALL_FEATURES
8591           if test -z "$defaultval"; then
8592               if test x"$enablestring" = xdisable; then
8593                   defaultval=yes
8594               else
8595                   defaultval=no
8596               fi
8597           fi
8598
8599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8600 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8601           # Check whether --enable-stc was given.
8602 if test "${enable_stc+set}" = set; then
8603   enableval=$enable_stc;
8604                           if test "$enableval" = yes; then
8605                             wx_cv_use_stc='wxUSE_STC=yes'
8606                           else
8607                             wx_cv_use_stc='wxUSE_STC=no'
8608                           fi
8609
8610 else
8611
8612                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8613
8614 fi
8615
8616
8617           eval "$wx_cv_use_stc"
8618
8619           if test x"$enablestring" = xdisable; then
8620             if test $wxUSE_STC = yes; then
8621               result=no
8622             else
8623               result=yes
8624             fi
8625           else
8626             result=$wxUSE_STC
8627           fi
8628
8629           { echo "$as_me:$LINENO: result: $result" >&5
8630 echo "${ECHO_T}$result" >&6; }
8631
8632
8633           enablestring=
8634           defaultval=$wxUSE_ALL_FEATURES
8635           if test -z "$defaultval"; then
8636               if test x"$enablestring" = xdisable; then
8637                   defaultval=yes
8638               else
8639                   defaultval=no
8640               fi
8641           fi
8642
8643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8644 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8645           # Check whether --enable-constraints was given.
8646 if test "${enable_constraints+set}" = set; then
8647   enableval=$enable_constraints;
8648                           if test "$enableval" = yes; then
8649                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8650                           else
8651                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8652                           fi
8653
8654 else
8655
8656                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8657
8658 fi
8659
8660
8661           eval "$wx_cv_use_constraints"
8662
8663           if test x"$enablestring" = xdisable; then
8664             if test $wxUSE_CONSTRAINTS = yes; then
8665               result=no
8666             else
8667               result=yes
8668             fi
8669           else
8670             result=$wxUSE_CONSTRAINTS
8671           fi
8672
8673           { echo "$as_me:$LINENO: result: $result" >&5
8674 echo "${ECHO_T}$result" >&6; }
8675
8676
8677           enablestring=
8678           defaultval=$wxUSE_ALL_FEATURES
8679           if test -z "$defaultval"; then
8680               if test x"$enablestring" = xdisable; then
8681                   defaultval=yes
8682               else
8683                   defaultval=no
8684               fi
8685           fi
8686
8687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8688 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8689           # Check whether --enable-loggui was given.
8690 if test "${enable_loggui+set}" = set; then
8691   enableval=$enable_loggui;
8692                           if test "$enableval" = yes; then
8693                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8694                           else
8695                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8696                           fi
8697
8698 else
8699
8700                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8701
8702 fi
8703
8704
8705           eval "$wx_cv_use_loggui"
8706
8707           if test x"$enablestring" = xdisable; then
8708             if test $wxUSE_LOGGUI = yes; then
8709               result=no
8710             else
8711               result=yes
8712             fi
8713           else
8714             result=$wxUSE_LOGGUI
8715           fi
8716
8717           { echo "$as_me:$LINENO: result: $result" >&5
8718 echo "${ECHO_T}$result" >&6; }
8719
8720
8721           enablestring=
8722           defaultval=$wxUSE_ALL_FEATURES
8723           if test -z "$defaultval"; then
8724               if test x"$enablestring" = xdisable; then
8725                   defaultval=yes
8726               else
8727                   defaultval=no
8728               fi
8729           fi
8730
8731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8732 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8733           # Check whether --enable-logwin was given.
8734 if test "${enable_logwin+set}" = set; then
8735   enableval=$enable_logwin;
8736                           if test "$enableval" = yes; then
8737                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8738                           else
8739                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8740                           fi
8741
8742 else
8743
8744                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8745
8746 fi
8747
8748
8749           eval "$wx_cv_use_logwin"
8750
8751           if test x"$enablestring" = xdisable; then
8752             if test $wxUSE_LOGWINDOW = yes; then
8753               result=no
8754             else
8755               result=yes
8756             fi
8757           else
8758             result=$wxUSE_LOGWINDOW
8759           fi
8760
8761           { echo "$as_me:$LINENO: result: $result" >&5
8762 echo "${ECHO_T}$result" >&6; }
8763
8764
8765           enablestring=
8766           defaultval=$wxUSE_ALL_FEATURES
8767           if test -z "$defaultval"; then
8768               if test x"$enablestring" = xdisable; then
8769                   defaultval=yes
8770               else
8771                   defaultval=no
8772               fi
8773           fi
8774
8775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8776 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8777           # Check whether --enable-logdialog was given.
8778 if test "${enable_logdialog+set}" = set; then
8779   enableval=$enable_logdialog;
8780                           if test "$enableval" = yes; then
8781                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8782                           else
8783                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8784                           fi
8785
8786 else
8787
8788                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8789
8790 fi
8791
8792
8793           eval "$wx_cv_use_logdialog"
8794
8795           if test x"$enablestring" = xdisable; then
8796             if test $wxUSE_LOGDIALOG = yes; then
8797               result=no
8798             else
8799               result=yes
8800             fi
8801           else
8802             result=$wxUSE_LOGDIALOG
8803           fi
8804
8805           { echo "$as_me:$LINENO: result: $result" >&5
8806 echo "${ECHO_T}$result" >&6; }
8807
8808
8809           enablestring=
8810           defaultval=$wxUSE_ALL_FEATURES
8811           if test -z "$defaultval"; then
8812               if test x"$enablestring" = xdisable; then
8813                   defaultval=yes
8814               else
8815                   defaultval=no
8816               fi
8817           fi
8818
8819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8820 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8821           # Check whether --enable-mdi was given.
8822 if test "${enable_mdi+set}" = set; then
8823   enableval=$enable_mdi;
8824                           if test "$enableval" = yes; then
8825                             wx_cv_use_mdi='wxUSE_MDI=yes'
8826                           else
8827                             wx_cv_use_mdi='wxUSE_MDI=no'
8828                           fi
8829
8830 else
8831
8832                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8833
8834 fi
8835
8836
8837           eval "$wx_cv_use_mdi"
8838
8839           if test x"$enablestring" = xdisable; then
8840             if test $wxUSE_MDI = yes; then
8841               result=no
8842             else
8843               result=yes
8844             fi
8845           else
8846             result=$wxUSE_MDI
8847           fi
8848
8849           { echo "$as_me:$LINENO: result: $result" >&5
8850 echo "${ECHO_T}$result" >&6; }
8851
8852
8853           enablestring=
8854           defaultval=$wxUSE_ALL_FEATURES
8855           if test -z "$defaultval"; then
8856               if test x"$enablestring" = xdisable; then
8857                   defaultval=yes
8858               else
8859                   defaultval=no
8860               fi
8861           fi
8862
8863           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8864 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8865           # Check whether --enable-mdidoc was given.
8866 if test "${enable_mdidoc+set}" = set; then
8867   enableval=$enable_mdidoc;
8868                           if test "$enableval" = yes; then
8869                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8870                           else
8871                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8872                           fi
8873
8874 else
8875
8876                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8877
8878 fi
8879
8880
8881           eval "$wx_cv_use_mdidoc"
8882
8883           if test x"$enablestring" = xdisable; then
8884             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8885               result=no
8886             else
8887               result=yes
8888             fi
8889           else
8890             result=$wxUSE_MDI_ARCHITECTURE
8891           fi
8892
8893           { echo "$as_me:$LINENO: result: $result" >&5
8894 echo "${ECHO_T}$result" >&6; }
8895
8896
8897           enablestring=
8898           defaultval=$wxUSE_ALL_FEATURES
8899           if test -z "$defaultval"; then
8900               if test x"$enablestring" = xdisable; then
8901                   defaultval=yes
8902               else
8903                   defaultval=no
8904               fi
8905           fi
8906
8907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8908 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8909           # Check whether --enable-mediactrl was given.
8910 if test "${enable_mediactrl+set}" = set; then
8911   enableval=$enable_mediactrl;
8912                           if test "$enableval" = yes; then
8913                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8914                           else
8915                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8916                           fi
8917
8918 else
8919
8920                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8921
8922 fi
8923
8924
8925           eval "$wx_cv_use_mediactrl"
8926
8927           if test x"$enablestring" = xdisable; then
8928             if test $wxUSE_MEDIACTRL = yes; then
8929               result=no
8930             else
8931               result=yes
8932             fi
8933           else
8934             result=$wxUSE_MEDIACTRL
8935           fi
8936
8937           { echo "$as_me:$LINENO: result: $result" >&5
8938 echo "${ECHO_T}$result" >&6; }
8939
8940
8941           enablestring=
8942           defaultval=$wxUSE_ALL_FEATURES
8943           if test -z "$defaultval"; then
8944               if test x"$enablestring" = xdisable; then
8945                   defaultval=yes
8946               else
8947                   defaultval=no
8948               fi
8949           fi
8950
8951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8952 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8953           # Check whether --enable-gstreamer8 was given.
8954 if test "${enable_gstreamer8+set}" = set; then
8955   enableval=$enable_gstreamer8;
8956                           if test "$enableval" = yes; then
8957                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8958                           else
8959                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8960                           fi
8961
8962 else
8963
8964                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8965
8966 fi
8967
8968
8969           eval "$wx_cv_use_gstreamer8"
8970
8971           if test x"$enablestring" = xdisable; then
8972             if test $wxUSE_GSTREAMER8 = yes; then
8973               result=no
8974             else
8975               result=yes
8976             fi
8977           else
8978             result=$wxUSE_GSTREAMER8
8979           fi
8980
8981           { echo "$as_me:$LINENO: result: $result" >&5
8982 echo "${ECHO_T}$result" >&6; }
8983
8984
8985           enablestring=
8986           defaultval=$wxUSE_ALL_FEATURES
8987           if test -z "$defaultval"; then
8988               if test x"$enablestring" = xdisable; then
8989                   defaultval=yes
8990               else
8991                   defaultval=no
8992               fi
8993           fi
8994
8995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8996 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8997           # Check whether --enable-webkit was given.
8998 if test "${enable_webkit+set}" = set; then
8999   enableval=$enable_webkit;
9000                           if test "$enableval" = yes; then
9001                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9002                           else
9003                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9004                           fi
9005
9006 else
9007
9008                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9009
9010 fi
9011
9012
9013           eval "$wx_cv_use_webkit"
9014
9015           if test x"$enablestring" = xdisable; then
9016             if test $wxUSE_WEBKIT = yes; then
9017               result=no
9018             else
9019               result=yes
9020             fi
9021           else
9022             result=$wxUSE_WEBKIT
9023           fi
9024
9025           { echo "$as_me:$LINENO: result: $result" >&5
9026 echo "${ECHO_T}$result" >&6; }
9027
9028
9029           enablestring=
9030           defaultval=$wxUSE_ALL_FEATURES
9031           if test -z "$defaultval"; then
9032               if test x"$enablestring" = xdisable; then
9033                   defaultval=yes
9034               else
9035                   defaultval=no
9036               fi
9037           fi
9038
9039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9040 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9041           # Check whether --enable-richtext was given.
9042 if test "${enable_richtext+set}" = set; then
9043   enableval=$enable_richtext;
9044                           if test "$enableval" = yes; then
9045                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9046                           else
9047                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9048                           fi
9049
9050 else
9051
9052                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9053
9054 fi
9055
9056
9057           eval "$wx_cv_use_richtext"
9058
9059           if test x"$enablestring" = xdisable; then
9060             if test $wxUSE_RICHTEXT = yes; then
9061               result=no
9062             else
9063               result=yes
9064             fi
9065           else
9066             result=$wxUSE_RICHTEXT
9067           fi
9068
9069           { echo "$as_me:$LINENO: result: $result" >&5
9070 echo "${ECHO_T}$result" >&6; }
9071
9072
9073           enablestring=
9074           defaultval=$wxUSE_ALL_FEATURES
9075           if test -z "$defaultval"; then
9076               if test x"$enablestring" = xdisable; then
9077                   defaultval=yes
9078               else
9079                   defaultval=no
9080               fi
9081           fi
9082
9083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9084 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9085           # Check whether --enable-graphics_ctx was given.
9086 if test "${enable_graphics_ctx+set}" = set; then
9087   enableval=$enable_graphics_ctx;
9088                           if test "$enableval" = yes; then
9089                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9090                           else
9091                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9092                           fi
9093
9094 else
9095
9096                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9097
9098 fi
9099
9100
9101           eval "$wx_cv_use_graphics_ctx"
9102
9103           if test x"$enablestring" = xdisable; then
9104             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9105               result=no
9106             else
9107               result=yes
9108             fi
9109           else
9110             result=$wxUSE_GRAPHICS_CONTEXT
9111           fi
9112
9113           { echo "$as_me:$LINENO: result: $result" >&5
9114 echo "${ECHO_T}$result" >&6; }
9115
9116
9117           enablestring=
9118           defaultval=$wxUSE_ALL_FEATURES
9119           if test -z "$defaultval"; then
9120               if test x"$enablestring" = xdisable; then
9121                   defaultval=yes
9122               else
9123                   defaultval=no
9124               fi
9125           fi
9126
9127           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9128 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9129           # Check whether --enable-postscript was given.
9130 if test "${enable_postscript+set}" = set; then
9131   enableval=$enable_postscript;
9132                           if test "$enableval" = yes; then
9133                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9134                           else
9135                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9136                           fi
9137
9138 else
9139
9140                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9141
9142 fi
9143
9144
9145           eval "$wx_cv_use_postscript"
9146
9147           if test x"$enablestring" = xdisable; then
9148             if test $wxUSE_POSTSCRIPT = yes; then
9149               result=no
9150             else
9151               result=yes
9152             fi
9153           else
9154             result=$wxUSE_POSTSCRIPT
9155           fi
9156
9157           { echo "$as_me:$LINENO: result: $result" >&5
9158 echo "${ECHO_T}$result" >&6; }
9159
9160
9161           enablestring=
9162           defaultval=$wxUSE_ALL_FEATURES
9163           if test -z "$defaultval"; then
9164               if test x"$enablestring" = xdisable; then
9165                   defaultval=yes
9166               else
9167                   defaultval=no
9168               fi
9169           fi
9170
9171           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9172 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9173           # Check whether --enable-printarch was given.
9174 if test "${enable_printarch+set}" = set; then
9175   enableval=$enable_printarch;
9176                           if test "$enableval" = yes; then
9177                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9178                           else
9179                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9180                           fi
9181
9182 else
9183
9184                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9185
9186 fi
9187
9188
9189           eval "$wx_cv_use_printarch"
9190
9191           if test x"$enablestring" = xdisable; then
9192             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9193               result=no
9194             else
9195               result=yes
9196             fi
9197           else
9198             result=$wxUSE_PRINTING_ARCHITECTURE
9199           fi
9200
9201           { echo "$as_me:$LINENO: result: $result" >&5
9202 echo "${ECHO_T}$result" >&6; }
9203
9204
9205           enablestring=
9206           defaultval=$wxUSE_ALL_FEATURES
9207           if test -z "$defaultval"; then
9208               if test x"$enablestring" = xdisable; then
9209                   defaultval=yes
9210               else
9211                   defaultval=no
9212               fi
9213           fi
9214
9215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9216 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9217           # Check whether --enable-svg was given.
9218 if test "${enable_svg+set}" = set; then
9219   enableval=$enable_svg;
9220                           if test "$enableval" = yes; then
9221                             wx_cv_use_svg='wxUSE_SVG=yes'
9222                           else
9223                             wx_cv_use_svg='wxUSE_SVG=no'
9224                           fi
9225
9226 else
9227
9228                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9229
9230 fi
9231
9232
9233           eval "$wx_cv_use_svg"
9234
9235           if test x"$enablestring" = xdisable; then
9236             if test $wxUSE_SVG = yes; then
9237               result=no
9238             else
9239               result=yes
9240             fi
9241           else
9242             result=$wxUSE_SVG
9243           fi
9244
9245           { echo "$as_me:$LINENO: result: $result" >&5
9246 echo "${ECHO_T}$result" >&6; }
9247
9248
9249
9250
9251           enablestring=
9252           defaultval=$wxUSE_ALL_FEATURES
9253           if test -z "$defaultval"; then
9254               if test x"$enablestring" = xdisable; then
9255                   defaultval=yes
9256               else
9257                   defaultval=no
9258               fi
9259           fi
9260
9261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9262 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9263           # Check whether --enable-clipboard was given.
9264 if test "${enable_clipboard+set}" = set; then
9265   enableval=$enable_clipboard;
9266                           if test "$enableval" = yes; then
9267                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9268                           else
9269                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9270                           fi
9271
9272 else
9273
9274                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9275
9276 fi
9277
9278
9279           eval "$wx_cv_use_clipboard"
9280
9281           if test x"$enablestring" = xdisable; then
9282             if test $wxUSE_CLIPBOARD = yes; then
9283               result=no
9284             else
9285               result=yes
9286             fi
9287           else
9288             result=$wxUSE_CLIPBOARD
9289           fi
9290
9291           { echo "$as_me:$LINENO: result: $result" >&5
9292 echo "${ECHO_T}$result" >&6; }
9293
9294
9295           enablestring=
9296           defaultval=$wxUSE_ALL_FEATURES
9297           if test -z "$defaultval"; then
9298               if test x"$enablestring" = xdisable; then
9299                   defaultval=yes
9300               else
9301                   defaultval=no
9302               fi
9303           fi
9304
9305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9306 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9307           # Check whether --enable-dnd was given.
9308 if test "${enable_dnd+set}" = set; then
9309   enableval=$enable_dnd;
9310                           if test "$enableval" = yes; then
9311                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9312                           else
9313                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9314                           fi
9315
9316 else
9317
9318                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9319
9320 fi
9321
9322
9323           eval "$wx_cv_use_dnd"
9324
9325           if test x"$enablestring" = xdisable; then
9326             if test $wxUSE_DRAG_AND_DROP = yes; then
9327               result=no
9328             else
9329               result=yes
9330             fi
9331           else
9332             result=$wxUSE_DRAG_AND_DROP
9333           fi
9334
9335           { echo "$as_me:$LINENO: result: $result" >&5
9336 echo "${ECHO_T}$result" >&6; }
9337
9338
9339           enablestring=
9340           defaultval=$wxUSE_ALL_FEATURES
9341           if test -z "$defaultval"; then
9342               if test x"$enablestring" = xdisable; then
9343                   defaultval=yes
9344               else
9345                   defaultval=no
9346               fi
9347           fi
9348
9349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9350 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9351           # Check whether --enable-metafile was given.
9352 if test "${enable_metafile+set}" = set; then
9353   enableval=$enable_metafile;
9354                           if test "$enableval" = yes; then
9355                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9356                           else
9357                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9358                           fi
9359
9360 else
9361
9362                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9363
9364 fi
9365
9366
9367           eval "$wx_cv_use_metafile"
9368
9369           if test x"$enablestring" = xdisable; then
9370             if test $wxUSE_METAFILE = yes; then
9371               result=no
9372             else
9373               result=yes
9374             fi
9375           else
9376             result=$wxUSE_METAFILE
9377           fi
9378
9379           { echo "$as_me:$LINENO: result: $result" >&5
9380 echo "${ECHO_T}$result" >&6; }
9381
9382
9383
9384 DEFAULT_wxUSE_CONTROLS=none
9385
9386           enablestring=disable
9387           defaultval=
9388           if test -z "$defaultval"; then
9389               if test x"$enablestring" = xdisable; then
9390                   defaultval=yes
9391               else
9392                   defaultval=no
9393               fi
9394           fi
9395
9396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9397 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9398           # Check whether --enable-controls was given.
9399 if test "${enable_controls+set}" = set; then
9400   enableval=$enable_controls;
9401                           if test "$enableval" = yes; then
9402                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9403                           else
9404                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9405                           fi
9406
9407 else
9408
9409                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9410
9411 fi
9412
9413
9414           eval "$wx_cv_use_controls"
9415
9416           if test x"$enablestring" = xdisable; then
9417             if test $wxUSE_CONTROLS = yes; then
9418               result=no
9419             else
9420               result=yes
9421             fi
9422           else
9423             result=$wxUSE_CONTROLS
9424           fi
9425
9426           { echo "$as_me:$LINENO: result: $result" >&5
9427 echo "${ECHO_T}$result" >&6; }
9428
9429
9430 if test "$wxUSE_CONTROLS" = "no"; then
9431     DEFAULT_wxUSE_ACCEL=no
9432     DEFAULT_wxUSE_ANIMATIONCTRL=no
9433     DEFAULT_wxUSE_BMPBUTTON=no
9434     DEFAULT_wxUSE_BUTTON=no
9435     DEFAULT_wxUSE_CALCTRL=no
9436     DEFAULT_wxUSE_CARET=no
9437     DEFAULT_wxUSE_CHECKBOX=no
9438     DEFAULT_wxUSE_CHECKLISTBOX=no
9439     DEFAULT_wxUSE_CHOICE=no
9440     DEFAULT_wxUSE_CHOICEBOOK=no
9441     DEFAULT_wxUSE_COLLPANE=no
9442     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9443     DEFAULT_wxUSE_COMBOBOX=no
9444     DEFAULT_wxUSE_COMBOBOX=no
9445     DEFAULT_wxUSE_DATAVIEWCTRL=no
9446     DEFAULT_wxUSE_DATEPICKCTRL=no
9447     DEFAULT_wxUSE_DETECT_SM=no
9448     DEFAULT_wxUSE_DIRPICKERCTRL=no
9449     DEFAULT_wxUSE_DISPLAY=no
9450     DEFAULT_wxUSE_FILECTRL=no
9451     DEFAULT_wxUSE_FILEPICKERCTRL=no
9452     DEFAULT_wxUSE_FONTPICKERCTRL=no
9453     DEFAULT_wxUSE_GAUGE=no
9454     DEFAULT_wxUSE_GRID=no
9455     DEFAULT_wxUSE_HEADERCTRL=no
9456     DEFAULT_wxUSE_HYPERLINKCTRL=no
9457     DEFAULT_wxUSE_IMAGLIST=no
9458     DEFAULT_wxUSE_LISTBOOK=no
9459     DEFAULT_wxUSE_LISTBOX=no
9460     DEFAULT_wxUSE_LISTCTRL=no
9461     DEFAULT_wxUSE_NOTEBOOK=no
9462     DEFAULT_wxUSE_POPUPWIN=no
9463     DEFAULT_wxUSE_RADIOBOX=no
9464     DEFAULT_wxUSE_RADIOBTN=no
9465     DEFAULT_wxUSE_REARRANGECTRL=no
9466     DEFAULT_wxUSE_SASH=no
9467     DEFAULT_wxUSE_SCROLLBAR=no
9468     DEFAULT_wxUSE_SEARCHCTRL=no
9469     DEFAULT_wxUSE_SLIDER=no
9470     DEFAULT_wxUSE_SPINBTN=no
9471     DEFAULT_wxUSE_SPINCTRL=no
9472     DEFAULT_wxUSE_SPLITTER=no
9473     DEFAULT_wxUSE_STATBMP=no
9474     DEFAULT_wxUSE_STATBOX=no
9475     DEFAULT_wxUSE_STATLINE=no
9476     DEFAULT_wxUSE_STATUSBAR=no
9477     DEFAULT_wxUSE_TIPWINDOW=no
9478     DEFAULT_wxUSE_TOGGLEBTN=no
9479     DEFAULT_wxUSE_TOOLBAR=no
9480     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9481     DEFAULT_wxUSE_TOOLBOOK=no
9482     DEFAULT_wxUSE_TOOLTIPS=no
9483     DEFAULT_wxUSE_TREEBOOK=no
9484     DEFAULT_wxUSE_TREECTRL=no
9485 fi
9486
9487
9488           enablestring=
9489           defaultval=$wxUSE_ALL_FEATURES
9490           if test -z "$defaultval"; then
9491               if test x"$enablestring" = xdisable; then
9492                   defaultval=yes
9493               else
9494                   defaultval=no
9495               fi
9496           fi
9497
9498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9499 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9500           # Check whether --enable-accel was given.
9501 if test "${enable_accel+set}" = set; then
9502   enableval=$enable_accel;
9503                           if test "$enableval" = yes; then
9504                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9505                           else
9506                             wx_cv_use_accel='wxUSE_ACCEL=no'
9507                           fi
9508
9509 else
9510
9511                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9512
9513 fi
9514
9515
9516           eval "$wx_cv_use_accel"
9517
9518           if test x"$enablestring" = xdisable; then
9519             if test $wxUSE_ACCEL = yes; then
9520               result=no
9521             else
9522               result=yes
9523             fi
9524           else
9525             result=$wxUSE_ACCEL
9526           fi
9527
9528           { echo "$as_me:$LINENO: result: $result" >&5
9529 echo "${ECHO_T}$result" >&6; }
9530
9531
9532           enablestring=
9533           defaultval=$wxUSE_ALL_FEATURES
9534           if test -z "$defaultval"; then
9535               if test x"$enablestring" = xdisable; then
9536                   defaultval=yes
9537               else
9538                   defaultval=no
9539               fi
9540           fi
9541
9542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9543 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9544           # Check whether --enable-animatectrl was given.
9545 if test "${enable_animatectrl+set}" = set; then
9546   enableval=$enable_animatectrl;
9547                           if test "$enableval" = yes; then
9548                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9549                           else
9550                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9551                           fi
9552
9553 else
9554
9555                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9556
9557 fi
9558
9559
9560           eval "$wx_cv_use_animatectrl"
9561
9562           if test x"$enablestring" = xdisable; then
9563             if test $wxUSE_ANIMATIONCTRL = yes; then
9564               result=no
9565             else
9566               result=yes
9567             fi
9568           else
9569             result=$wxUSE_ANIMATIONCTRL
9570           fi
9571
9572           { echo "$as_me:$LINENO: result: $result" >&5
9573 echo "${ECHO_T}$result" >&6; }
9574
9575
9576           enablestring=
9577           defaultval=$wxUSE_ALL_FEATURES
9578           if test -z "$defaultval"; then
9579               if test x"$enablestring" = xdisable; then
9580                   defaultval=yes
9581               else
9582                   defaultval=no
9583               fi
9584           fi
9585
9586           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9587 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9588           # Check whether --enable-bmpbutton was given.
9589 if test "${enable_bmpbutton+set}" = set; then
9590   enableval=$enable_bmpbutton;
9591                           if test "$enableval" = yes; then
9592                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9593                           else
9594                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9595                           fi
9596
9597 else
9598
9599                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9600
9601 fi
9602
9603
9604           eval "$wx_cv_use_bmpbutton"
9605
9606           if test x"$enablestring" = xdisable; then
9607             if test $wxUSE_BMPBUTTON = yes; then
9608               result=no
9609             else
9610               result=yes
9611             fi
9612           else
9613             result=$wxUSE_BMPBUTTON
9614           fi
9615
9616           { echo "$as_me:$LINENO: result: $result" >&5
9617 echo "${ECHO_T}$result" >&6; }
9618
9619
9620           enablestring=
9621           defaultval=$wxUSE_ALL_FEATURES
9622           if test -z "$defaultval"; then
9623               if test x"$enablestring" = xdisable; then
9624                   defaultval=yes
9625               else
9626                   defaultval=no
9627               fi
9628           fi
9629
9630           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9631 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9632           # Check whether --enable-bmpcombobox was given.
9633 if test "${enable_bmpcombobox+set}" = set; then
9634   enableval=$enable_bmpcombobox;
9635                           if test "$enableval" = yes; then
9636                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9637                           else
9638                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9639                           fi
9640
9641 else
9642
9643                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9644
9645 fi
9646
9647
9648           eval "$wx_cv_use_bmpcombobox"
9649
9650           if test x"$enablestring" = xdisable; then
9651             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9652               result=no
9653             else
9654               result=yes
9655             fi
9656           else
9657             result=$wxUSE_BITMAPCOMBOBOX
9658           fi
9659
9660           { echo "$as_me:$LINENO: result: $result" >&5
9661 echo "${ECHO_T}$result" >&6; }
9662
9663
9664           enablestring=
9665           defaultval=$wxUSE_ALL_FEATURES
9666           if test -z "$defaultval"; then
9667               if test x"$enablestring" = xdisable; then
9668                   defaultval=yes
9669               else
9670                   defaultval=no
9671               fi
9672           fi
9673
9674           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9675 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9676           # Check whether --enable-button was given.
9677 if test "${enable_button+set}" = set; then
9678   enableval=$enable_button;
9679                           if test "$enableval" = yes; then
9680                             wx_cv_use_button='wxUSE_BUTTON=yes'
9681                           else
9682                             wx_cv_use_button='wxUSE_BUTTON=no'
9683                           fi
9684
9685 else
9686
9687                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9688
9689 fi
9690
9691
9692           eval "$wx_cv_use_button"
9693
9694           if test x"$enablestring" = xdisable; then
9695             if test $wxUSE_BUTTON = yes; then
9696               result=no
9697             else
9698               result=yes
9699             fi
9700           else
9701             result=$wxUSE_BUTTON
9702           fi
9703
9704           { echo "$as_me:$LINENO: result: $result" >&5
9705 echo "${ECHO_T}$result" >&6; }
9706
9707
9708           enablestring=
9709           defaultval=$wxUSE_ALL_FEATURES
9710           if test -z "$defaultval"; then
9711               if test x"$enablestring" = xdisable; then
9712                   defaultval=yes
9713               else
9714                   defaultval=no
9715               fi
9716           fi
9717
9718           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9719 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9720           # Check whether --enable-calendar was given.
9721 if test "${enable_calendar+set}" = set; then
9722   enableval=$enable_calendar;
9723                           if test "$enableval" = yes; then
9724                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9725                           else
9726                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9727                           fi
9728
9729 else
9730
9731                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9732
9733 fi
9734
9735
9736           eval "$wx_cv_use_calendar"
9737
9738           if test x"$enablestring" = xdisable; then
9739             if test $wxUSE_CALCTRL = yes; then
9740               result=no
9741             else
9742               result=yes
9743             fi
9744           else
9745             result=$wxUSE_CALCTRL
9746           fi
9747
9748           { echo "$as_me:$LINENO: result: $result" >&5
9749 echo "${ECHO_T}$result" >&6; }
9750
9751
9752           enablestring=
9753           defaultval=$wxUSE_ALL_FEATURES
9754           if test -z "$defaultval"; then
9755               if test x"$enablestring" = xdisable; then
9756                   defaultval=yes
9757               else
9758                   defaultval=no
9759               fi
9760           fi
9761
9762           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9763 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9764           # Check whether --enable-caret was given.
9765 if test "${enable_caret+set}" = set; then
9766   enableval=$enable_caret;
9767                           if test "$enableval" = yes; then
9768                             wx_cv_use_caret='wxUSE_CARET=yes'
9769                           else
9770                             wx_cv_use_caret='wxUSE_CARET=no'
9771                           fi
9772
9773 else
9774
9775                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9776
9777 fi
9778
9779
9780           eval "$wx_cv_use_caret"
9781
9782           if test x"$enablestring" = xdisable; then
9783             if test $wxUSE_CARET = yes; then
9784               result=no
9785             else
9786               result=yes
9787             fi
9788           else
9789             result=$wxUSE_CARET
9790           fi
9791
9792           { echo "$as_me:$LINENO: result: $result" >&5
9793 echo "${ECHO_T}$result" >&6; }
9794
9795
9796           enablestring=
9797           defaultval=$wxUSE_ALL_FEATURES
9798           if test -z "$defaultval"; then
9799               if test x"$enablestring" = xdisable; then
9800                   defaultval=yes
9801               else
9802                   defaultval=no
9803               fi
9804           fi
9805
9806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9807 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9808           # Check whether --enable-checkbox was given.
9809 if test "${enable_checkbox+set}" = set; then
9810   enableval=$enable_checkbox;
9811                           if test "$enableval" = yes; then
9812                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9813                           else
9814                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9815                           fi
9816
9817 else
9818
9819                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9820
9821 fi
9822
9823
9824           eval "$wx_cv_use_checkbox"
9825
9826           if test x"$enablestring" = xdisable; then
9827             if test $wxUSE_CHECKBOX = yes; then
9828               result=no
9829             else
9830               result=yes
9831             fi
9832           else
9833             result=$wxUSE_CHECKBOX
9834           fi
9835
9836           { echo "$as_me:$LINENO: result: $result" >&5
9837 echo "${ECHO_T}$result" >&6; }
9838
9839
9840           enablestring=
9841           defaultval=$wxUSE_ALL_FEATURES
9842           if test -z "$defaultval"; then
9843               if test x"$enablestring" = xdisable; then
9844                   defaultval=yes
9845               else
9846                   defaultval=no
9847               fi
9848           fi
9849
9850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9851 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9852           # Check whether --enable-checklst was given.
9853 if test "${enable_checklst+set}" = set; then
9854   enableval=$enable_checklst;
9855                           if test "$enableval" = yes; then
9856                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9857                           else
9858                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9859                           fi
9860
9861 else
9862
9863                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9864
9865 fi
9866
9867
9868           eval "$wx_cv_use_checklst"
9869
9870           if test x"$enablestring" = xdisable; then
9871             if test $wxUSE_CHECKLST = yes; then
9872               result=no
9873             else
9874               result=yes
9875             fi
9876           else
9877             result=$wxUSE_CHECKLST
9878           fi
9879
9880           { echo "$as_me:$LINENO: result: $result" >&5
9881 echo "${ECHO_T}$result" >&6; }
9882
9883
9884           enablestring=
9885           defaultval=$wxUSE_ALL_FEATURES
9886           if test -z "$defaultval"; then
9887               if test x"$enablestring" = xdisable; then
9888                   defaultval=yes
9889               else
9890                   defaultval=no
9891               fi
9892           fi
9893
9894           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9895 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9896           # Check whether --enable-choice was given.
9897 if test "${enable_choice+set}" = set; then
9898   enableval=$enable_choice;
9899                           if test "$enableval" = yes; then
9900                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9901                           else
9902                             wx_cv_use_choice='wxUSE_CHOICE=no'
9903                           fi
9904
9905 else
9906
9907                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9908
9909 fi
9910
9911
9912           eval "$wx_cv_use_choice"
9913
9914           if test x"$enablestring" = xdisable; then
9915             if test $wxUSE_CHOICE = yes; then
9916               result=no
9917             else
9918               result=yes
9919             fi
9920           else
9921             result=$wxUSE_CHOICE
9922           fi
9923
9924           { echo "$as_me:$LINENO: result: $result" >&5
9925 echo "${ECHO_T}$result" >&6; }
9926
9927
9928           enablestring=
9929           defaultval=$wxUSE_ALL_FEATURES
9930           if test -z "$defaultval"; then
9931               if test x"$enablestring" = xdisable; then
9932                   defaultval=yes
9933               else
9934                   defaultval=no
9935               fi
9936           fi
9937
9938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9939 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9940           # Check whether --enable-choicebook was given.
9941 if test "${enable_choicebook+set}" = set; then
9942   enableval=$enable_choicebook;
9943                           if test "$enableval" = yes; then
9944                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9945                           else
9946                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9947                           fi
9948
9949 else
9950
9951                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9952
9953 fi
9954
9955
9956           eval "$wx_cv_use_choicebook"
9957
9958           if test x"$enablestring" = xdisable; then
9959             if test $wxUSE_CHOICEBOOK = yes; then
9960               result=no
9961             else
9962               result=yes
9963             fi
9964           else
9965             result=$wxUSE_CHOICEBOOK
9966           fi
9967
9968           { echo "$as_me:$LINENO: result: $result" >&5
9969 echo "${ECHO_T}$result" >&6; }
9970
9971
9972           enablestring=
9973           defaultval=$wxUSE_ALL_FEATURES
9974           if test -z "$defaultval"; then
9975               if test x"$enablestring" = xdisable; then
9976                   defaultval=yes
9977               else
9978                   defaultval=no
9979               fi
9980           fi
9981
9982           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9983 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9984           # Check whether --enable-collpane was given.
9985 if test "${enable_collpane+set}" = set; then
9986   enableval=$enable_collpane;
9987                           if test "$enableval" = yes; then
9988                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9989                           else
9990                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9991                           fi
9992
9993 else
9994
9995                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9996
9997 fi
9998
9999
10000           eval "$wx_cv_use_collpane"
10001
10002           if test x"$enablestring" = xdisable; then
10003             if test $wxUSE_COLLPANE = yes; then
10004               result=no
10005             else
10006               result=yes
10007             fi
10008           else
10009             result=$wxUSE_COLLPANE
10010           fi
10011
10012           { echo "$as_me:$LINENO: result: $result" >&5
10013 echo "${ECHO_T}$result" >&6; }
10014
10015
10016           enablestring=
10017           defaultval=$wxUSE_ALL_FEATURES
10018           if test -z "$defaultval"; then
10019               if test x"$enablestring" = xdisable; then
10020                   defaultval=yes
10021               else
10022                   defaultval=no
10023               fi
10024           fi
10025
10026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10027 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10028           # Check whether --enable-colourpicker was given.
10029 if test "${enable_colourpicker+set}" = set; then
10030   enableval=$enable_colourpicker;
10031                           if test "$enableval" = yes; then
10032                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10033                           else
10034                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10035                           fi
10036
10037 else
10038
10039                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10040
10041 fi
10042
10043
10044           eval "$wx_cv_use_colourpicker"
10045
10046           if test x"$enablestring" = xdisable; then
10047             if test $wxUSE_COLOURPICKERCTRL = yes; then
10048               result=no
10049             else
10050               result=yes
10051             fi
10052           else
10053             result=$wxUSE_COLOURPICKERCTRL
10054           fi
10055
10056           { echo "$as_me:$LINENO: result: $result" >&5
10057 echo "${ECHO_T}$result" >&6; }
10058
10059
10060           enablestring=
10061           defaultval=$wxUSE_ALL_FEATURES
10062           if test -z "$defaultval"; then
10063               if test x"$enablestring" = xdisable; then
10064                   defaultval=yes
10065               else
10066                   defaultval=no
10067               fi
10068           fi
10069
10070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10071 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10072           # Check whether --enable-combobox was given.
10073 if test "${enable_combobox+set}" = set; then
10074   enableval=$enable_combobox;
10075                           if test "$enableval" = yes; then
10076                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10077                           else
10078                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10079                           fi
10080
10081 else
10082
10083                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10084
10085 fi
10086
10087
10088           eval "$wx_cv_use_combobox"
10089
10090           if test x"$enablestring" = xdisable; then
10091             if test $wxUSE_COMBOBOX = yes; then
10092               result=no
10093             else
10094               result=yes
10095             fi
10096           else
10097             result=$wxUSE_COMBOBOX
10098           fi
10099
10100           { echo "$as_me:$LINENO: result: $result" >&5
10101 echo "${ECHO_T}$result" >&6; }
10102
10103
10104           enablestring=
10105           defaultval=$wxUSE_ALL_FEATURES
10106           if test -z "$defaultval"; then
10107               if test x"$enablestring" = xdisable; then
10108                   defaultval=yes
10109               else
10110                   defaultval=no
10111               fi
10112           fi
10113
10114           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10115 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10116           # Check whether --enable-comboctrl was given.
10117 if test "${enable_comboctrl+set}" = set; then
10118   enableval=$enable_comboctrl;
10119                           if test "$enableval" = yes; then
10120                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10121                           else
10122                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10123                           fi
10124
10125 else
10126
10127                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10128
10129 fi
10130
10131
10132           eval "$wx_cv_use_comboctrl"
10133
10134           if test x"$enablestring" = xdisable; then
10135             if test $wxUSE_COMBOCTRL = yes; then
10136               result=no
10137             else
10138               result=yes
10139             fi
10140           else
10141             result=$wxUSE_COMBOCTRL
10142           fi
10143
10144           { echo "$as_me:$LINENO: result: $result" >&5
10145 echo "${ECHO_T}$result" >&6; }
10146
10147
10148           enablestring=
10149           defaultval=$wxUSE_ALL_FEATURES
10150           if test -z "$defaultval"; then
10151               if test x"$enablestring" = xdisable; then
10152                   defaultval=yes
10153               else
10154                   defaultval=no
10155               fi
10156           fi
10157
10158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10159 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10160           # Check whether --enable-dataviewctrl was given.
10161 if test "${enable_dataviewctrl+set}" = set; then
10162   enableval=$enable_dataviewctrl;
10163                           if test "$enableval" = yes; then
10164                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10165                           else
10166                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10167                           fi
10168
10169 else
10170
10171                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10172
10173 fi
10174
10175
10176           eval "$wx_cv_use_dataviewctrl"
10177
10178           if test x"$enablestring" = xdisable; then
10179             if test $wxUSE_DATAVIEWCTRL = yes; then
10180               result=no
10181             else
10182               result=yes
10183             fi
10184           else
10185             result=$wxUSE_DATAVIEWCTRL
10186           fi
10187
10188           { echo "$as_me:$LINENO: result: $result" >&5
10189 echo "${ECHO_T}$result" >&6; }
10190
10191
10192           enablestring=
10193           defaultval=$wxUSE_ALL_FEATURES
10194           if test -z "$defaultval"; then
10195               if test x"$enablestring" = xdisable; then
10196                   defaultval=yes
10197               else
10198                   defaultval=no
10199               fi
10200           fi
10201
10202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10203 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10204           # Check whether --enable-datepick was given.
10205 if test "${enable_datepick+set}" = set; then
10206   enableval=$enable_datepick;
10207                           if test "$enableval" = yes; then
10208                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10209                           else
10210                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10211                           fi
10212
10213 else
10214
10215                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10216
10217 fi
10218
10219
10220           eval "$wx_cv_use_datepick"
10221
10222           if test x"$enablestring" = xdisable; then
10223             if test $wxUSE_DATEPICKCTRL = yes; then
10224               result=no
10225             else
10226               result=yes
10227             fi
10228           else
10229             result=$wxUSE_DATEPICKCTRL
10230           fi
10231
10232           { echo "$as_me:$LINENO: result: $result" >&5
10233 echo "${ECHO_T}$result" >&6; }
10234
10235
10236           enablestring=
10237           defaultval=$wxUSE_ALL_FEATURES
10238           if test -z "$defaultval"; then
10239               if test x"$enablestring" = xdisable; then
10240                   defaultval=yes
10241               else
10242                   defaultval=no
10243               fi
10244           fi
10245
10246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10247 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10248           # Check whether --enable-detect_sm was given.
10249 if test "${enable_detect_sm+set}" = set; then
10250   enableval=$enable_detect_sm;
10251                           if test "$enableval" = yes; then
10252                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10253                           else
10254                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10255                           fi
10256
10257 else
10258
10259                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10260
10261 fi
10262
10263
10264           eval "$wx_cv_use_detect_sm"
10265
10266           if test x"$enablestring" = xdisable; then
10267             if test $wxUSE_DETECT_SM = yes; then
10268               result=no
10269             else
10270               result=yes
10271             fi
10272           else
10273             result=$wxUSE_DETECT_SM
10274           fi
10275
10276           { echo "$as_me:$LINENO: result: $result" >&5
10277 echo "${ECHO_T}$result" >&6; }
10278
10279
10280           enablestring=
10281           defaultval=$wxUSE_ALL_FEATURES
10282           if test -z "$defaultval"; then
10283               if test x"$enablestring" = xdisable; then
10284                   defaultval=yes
10285               else
10286                   defaultval=no
10287               fi
10288           fi
10289
10290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10292           # Check whether --enable-dirpicker was given.
10293 if test "${enable_dirpicker+set}" = set; then
10294   enableval=$enable_dirpicker;
10295                           if test "$enableval" = yes; then
10296                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10297                           else
10298                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10299                           fi
10300
10301 else
10302
10303                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10304
10305 fi
10306
10307
10308           eval "$wx_cv_use_dirpicker"
10309
10310           if test x"$enablestring" = xdisable; then
10311             if test $wxUSE_DIRPICKERCTRL = yes; then
10312               result=no
10313             else
10314               result=yes
10315             fi
10316           else
10317             result=$wxUSE_DIRPICKERCTRL
10318           fi
10319
10320           { echo "$as_me:$LINENO: result: $result" >&5
10321 echo "${ECHO_T}$result" >&6; }
10322
10323
10324           enablestring=
10325           defaultval=$wxUSE_ALL_FEATURES
10326           if test -z "$defaultval"; then
10327               if test x"$enablestring" = xdisable; then
10328                   defaultval=yes
10329               else
10330                   defaultval=no
10331               fi
10332           fi
10333
10334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10335 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10336           # Check whether --enable-display was given.
10337 if test "${enable_display+set}" = set; then
10338   enableval=$enable_display;
10339                           if test "$enableval" = yes; then
10340                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10341                           else
10342                             wx_cv_use_display='wxUSE_DISPLAY=no'
10343                           fi
10344
10345 else
10346
10347                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10348
10349 fi
10350
10351
10352           eval "$wx_cv_use_display"
10353
10354           if test x"$enablestring" = xdisable; then
10355             if test $wxUSE_DISPLAY = yes; then
10356               result=no
10357             else
10358               result=yes
10359             fi
10360           else
10361             result=$wxUSE_DISPLAY
10362           fi
10363
10364           { echo "$as_me:$LINENO: result: $result" >&5
10365 echo "${ECHO_T}$result" >&6; }
10366
10367
10368           enablestring=
10369           defaultval=$wxUSE_ALL_FEATURES
10370           if test -z "$defaultval"; then
10371               if test x"$enablestring" = xdisable; then
10372                   defaultval=yes
10373               else
10374                   defaultval=no
10375               fi
10376           fi
10377
10378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10379 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10380           # Check whether --enable-editablebox was given.
10381 if test "${enable_editablebox+set}" = set; then
10382   enableval=$enable_editablebox;
10383                           if test "$enableval" = yes; then
10384                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10385                           else
10386                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10387                           fi
10388
10389 else
10390
10391                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10392
10393 fi
10394
10395
10396           eval "$wx_cv_use_editablebox"
10397
10398           if test x"$enablestring" = xdisable; then
10399             if test $wxUSE_EDITABLELISTBOX = yes; then
10400               result=no
10401             else
10402               result=yes
10403             fi
10404           else
10405             result=$wxUSE_EDITABLELISTBOX
10406           fi
10407
10408           { echo "$as_me:$LINENO: result: $result" >&5
10409 echo "${ECHO_T}$result" >&6; }
10410
10411
10412           enablestring=
10413           defaultval=$wxUSE_ALL_FEATURES
10414           if test -z "$defaultval"; then
10415               if test x"$enablestring" = xdisable; then
10416                   defaultval=yes
10417               else
10418                   defaultval=no
10419               fi
10420           fi
10421
10422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10423 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10424           # Check whether --enable-filectrl was given.
10425 if test "${enable_filectrl+set}" = set; then
10426   enableval=$enable_filectrl;
10427                           if test "$enableval" = yes; then
10428                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10429                           else
10430                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10431                           fi
10432
10433 else
10434
10435                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10436
10437 fi
10438
10439
10440           eval "$wx_cv_use_filectrl"
10441
10442           if test x"$enablestring" = xdisable; then
10443             if test $wxUSE_FILECTRL = yes; then
10444               result=no
10445             else
10446               result=yes
10447             fi
10448           else
10449             result=$wxUSE_FILECTRL
10450           fi
10451
10452           { echo "$as_me:$LINENO: result: $result" >&5
10453 echo "${ECHO_T}$result" >&6; }
10454
10455
10456           enablestring=
10457           defaultval=$wxUSE_ALL_FEATURES
10458           if test -z "$defaultval"; then
10459               if test x"$enablestring" = xdisable; then
10460                   defaultval=yes
10461               else
10462                   defaultval=no
10463               fi
10464           fi
10465
10466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10467 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10468           # Check whether --enable-filepicker was given.
10469 if test "${enable_filepicker+set}" = set; then
10470   enableval=$enable_filepicker;
10471                           if test "$enableval" = yes; then
10472                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10473                           else
10474                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10475                           fi
10476
10477 else
10478
10479                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10480
10481 fi
10482
10483
10484           eval "$wx_cv_use_filepicker"
10485
10486           if test x"$enablestring" = xdisable; then
10487             if test $wxUSE_FILEPICKERCTRL = yes; then
10488               result=no
10489             else
10490               result=yes
10491             fi
10492           else
10493             result=$wxUSE_FILEPICKERCTRL
10494           fi
10495
10496           { echo "$as_me:$LINENO: result: $result" >&5
10497 echo "${ECHO_T}$result" >&6; }
10498
10499
10500           enablestring=
10501           defaultval=$wxUSE_ALL_FEATURES
10502           if test -z "$defaultval"; then
10503               if test x"$enablestring" = xdisable; then
10504                   defaultval=yes
10505               else
10506                   defaultval=no
10507               fi
10508           fi
10509
10510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10511 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10512           # Check whether --enable-fontpicker was given.
10513 if test "${enable_fontpicker+set}" = set; then
10514   enableval=$enable_fontpicker;
10515                           if test "$enableval" = yes; then
10516                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10517                           else
10518                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10519                           fi
10520
10521 else
10522
10523                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10524
10525 fi
10526
10527
10528           eval "$wx_cv_use_fontpicker"
10529
10530           if test x"$enablestring" = xdisable; then
10531             if test $wxUSE_FONTPICKERCTRL = yes; then
10532               result=no
10533             else
10534               result=yes
10535             fi
10536           else
10537             result=$wxUSE_FONTPICKERCTRL
10538           fi
10539
10540           { echo "$as_me:$LINENO: result: $result" >&5
10541 echo "${ECHO_T}$result" >&6; }
10542
10543
10544           enablestring=
10545           defaultval=$wxUSE_ALL_FEATURES
10546           if test -z "$defaultval"; then
10547               if test x"$enablestring" = xdisable; then
10548                   defaultval=yes
10549               else
10550                   defaultval=no
10551               fi
10552           fi
10553
10554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10555 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10556           # Check whether --enable-gauge was given.
10557 if test "${enable_gauge+set}" = set; then
10558   enableval=$enable_gauge;
10559                           if test "$enableval" = yes; then
10560                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10561                           else
10562                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10563                           fi
10564
10565 else
10566
10567                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10568
10569 fi
10570
10571
10572           eval "$wx_cv_use_gauge"
10573
10574           if test x"$enablestring" = xdisable; then
10575             if test $wxUSE_GAUGE = yes; then
10576               result=no
10577             else
10578               result=yes
10579             fi
10580           else
10581             result=$wxUSE_GAUGE
10582           fi
10583
10584           { echo "$as_me:$LINENO: result: $result" >&5
10585 echo "${ECHO_T}$result" >&6; }
10586
10587
10588           enablestring=
10589           defaultval=$wxUSE_ALL_FEATURES
10590           if test -z "$defaultval"; then
10591               if test x"$enablestring" = xdisable; then
10592                   defaultval=yes
10593               else
10594                   defaultval=no
10595               fi
10596           fi
10597
10598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10599 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10600           # Check whether --enable-grid was given.
10601 if test "${enable_grid+set}" = set; then
10602   enableval=$enable_grid;
10603                           if test "$enableval" = yes; then
10604                             wx_cv_use_grid='wxUSE_GRID=yes'
10605                           else
10606                             wx_cv_use_grid='wxUSE_GRID=no'
10607                           fi
10608
10609 else
10610
10611                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10612
10613 fi
10614
10615
10616           eval "$wx_cv_use_grid"
10617
10618           if test x"$enablestring" = xdisable; then
10619             if test $wxUSE_GRID = yes; then
10620               result=no
10621             else
10622               result=yes
10623             fi
10624           else
10625             result=$wxUSE_GRID
10626           fi
10627
10628           { echo "$as_me:$LINENO: result: $result" >&5
10629 echo "${ECHO_T}$result" >&6; }
10630
10631
10632           enablestring=
10633           defaultval=$wxUSE_ALL_FEATURES
10634           if test -z "$defaultval"; then
10635               if test x"$enablestring" = xdisable; then
10636                   defaultval=yes
10637               else
10638                   defaultval=no
10639               fi
10640           fi
10641
10642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10643 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10644           # Check whether --enable-headerctrl was given.
10645 if test "${enable_headerctrl+set}" = set; then
10646   enableval=$enable_headerctrl;
10647                           if test "$enableval" = yes; then
10648                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10649                           else
10650                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10651                           fi
10652
10653 else
10654
10655                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10656
10657 fi
10658
10659
10660           eval "$wx_cv_use_headerctrl"
10661
10662           if test x"$enablestring" = xdisable; then
10663             if test $wxUSE_HEADERCTRL = yes; then
10664               result=no
10665             else
10666               result=yes
10667             fi
10668           else
10669             result=$wxUSE_HEADERCTRL
10670           fi
10671
10672           { echo "$as_me:$LINENO: result: $result" >&5
10673 echo "${ECHO_T}$result" >&6; }
10674
10675
10676           enablestring=
10677           defaultval=$wxUSE_ALL_FEATURES
10678           if test -z "$defaultval"; then
10679               if test x"$enablestring" = xdisable; then
10680                   defaultval=yes
10681               else
10682                   defaultval=no
10683               fi
10684           fi
10685
10686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10687 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10688           # Check whether --enable-hyperlink was given.
10689 if test "${enable_hyperlink+set}" = set; then
10690   enableval=$enable_hyperlink;
10691                           if test "$enableval" = yes; then
10692                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10693                           else
10694                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10695                           fi
10696
10697 else
10698
10699                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10700
10701 fi
10702
10703
10704           eval "$wx_cv_use_hyperlink"
10705
10706           if test x"$enablestring" = xdisable; then
10707             if test $wxUSE_HYPERLINKCTRL = yes; then
10708               result=no
10709             else
10710               result=yes
10711             fi
10712           else
10713             result=$wxUSE_HYPERLINKCTRL
10714           fi
10715
10716           { echo "$as_me:$LINENO: result: $result" >&5
10717 echo "${ECHO_T}$result" >&6; }
10718
10719
10720           enablestring=
10721           defaultval=$wxUSE_ALL_FEATURES
10722           if test -z "$defaultval"; then
10723               if test x"$enablestring" = xdisable; then
10724                   defaultval=yes
10725               else
10726                   defaultval=no
10727               fi
10728           fi
10729
10730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10731 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10732           # Check whether --enable-imaglist was given.
10733 if test "${enable_imaglist+set}" = set; then
10734   enableval=$enable_imaglist;
10735                           if test "$enableval" = yes; then
10736                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10737                           else
10738                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10739                           fi
10740
10741 else
10742
10743                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10744
10745 fi
10746
10747
10748           eval "$wx_cv_use_imaglist"
10749
10750           if test x"$enablestring" = xdisable; then
10751             if test $wxUSE_IMAGLIST = yes; then
10752               result=no
10753             else
10754               result=yes
10755             fi
10756           else
10757             result=$wxUSE_IMAGLIST
10758           fi
10759
10760           { echo "$as_me:$LINENO: result: $result" >&5
10761 echo "${ECHO_T}$result" >&6; }
10762
10763
10764           enablestring=
10765           defaultval=$wxUSE_ALL_FEATURES
10766           if test -z "$defaultval"; then
10767               if test x"$enablestring" = xdisable; then
10768                   defaultval=yes
10769               else
10770                   defaultval=no
10771               fi
10772           fi
10773
10774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10775 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10776           # Check whether --enable-listbook was given.
10777 if test "${enable_listbook+set}" = set; then
10778   enableval=$enable_listbook;
10779                           if test "$enableval" = yes; then
10780                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10781                           else
10782                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10783                           fi
10784
10785 else
10786
10787                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10788
10789 fi
10790
10791
10792           eval "$wx_cv_use_listbook"
10793
10794           if test x"$enablestring" = xdisable; then
10795             if test $wxUSE_LISTBOOK = yes; then
10796               result=no
10797             else
10798               result=yes
10799             fi
10800           else
10801             result=$wxUSE_LISTBOOK
10802           fi
10803
10804           { echo "$as_me:$LINENO: result: $result" >&5
10805 echo "${ECHO_T}$result" >&6; }
10806
10807
10808           enablestring=
10809           defaultval=$wxUSE_ALL_FEATURES
10810           if test -z "$defaultval"; then
10811               if test x"$enablestring" = xdisable; then
10812                   defaultval=yes
10813               else
10814                   defaultval=no
10815               fi
10816           fi
10817
10818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10819 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10820           # Check whether --enable-listbox was given.
10821 if test "${enable_listbox+set}" = set; then
10822   enableval=$enable_listbox;
10823                           if test "$enableval" = yes; then
10824                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10825                           else
10826                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10827                           fi
10828
10829 else
10830
10831                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10832
10833 fi
10834
10835
10836           eval "$wx_cv_use_listbox"
10837
10838           if test x"$enablestring" = xdisable; then
10839             if test $wxUSE_LISTBOX = yes; then
10840               result=no
10841             else
10842               result=yes
10843             fi
10844           else
10845             result=$wxUSE_LISTBOX
10846           fi
10847
10848           { echo "$as_me:$LINENO: result: $result" >&5
10849 echo "${ECHO_T}$result" >&6; }
10850
10851
10852           enablestring=
10853           defaultval=$wxUSE_ALL_FEATURES
10854           if test -z "$defaultval"; then
10855               if test x"$enablestring" = xdisable; then
10856                   defaultval=yes
10857               else
10858                   defaultval=no
10859               fi
10860           fi
10861
10862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10863 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10864           # Check whether --enable-listctrl was given.
10865 if test "${enable_listctrl+set}" = set; then
10866   enableval=$enable_listctrl;
10867                           if test "$enableval" = yes; then
10868                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10869                           else
10870                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10871                           fi
10872
10873 else
10874
10875                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10876
10877 fi
10878
10879
10880           eval "$wx_cv_use_listctrl"
10881
10882           if test x"$enablestring" = xdisable; then
10883             if test $wxUSE_LISTCTRL = yes; then
10884               result=no
10885             else
10886               result=yes
10887             fi
10888           else
10889             result=$wxUSE_LISTCTRL
10890           fi
10891
10892           { echo "$as_me:$LINENO: result: $result" >&5
10893 echo "${ECHO_T}$result" >&6; }
10894
10895
10896           enablestring=
10897           defaultval=$wxUSE_ALL_FEATURES
10898           if test -z "$defaultval"; then
10899               if test x"$enablestring" = xdisable; then
10900                   defaultval=yes
10901               else
10902                   defaultval=no
10903               fi
10904           fi
10905
10906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10907 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10908           # Check whether --enable-notebook was given.
10909 if test "${enable_notebook+set}" = set; then
10910   enableval=$enable_notebook;
10911                           if test "$enableval" = yes; then
10912                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10913                           else
10914                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10915                           fi
10916
10917 else
10918
10919                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10920
10921 fi
10922
10923
10924           eval "$wx_cv_use_notebook"
10925
10926           if test x"$enablestring" = xdisable; then
10927             if test $wxUSE_NOTEBOOK = yes; then
10928               result=no
10929             else
10930               result=yes
10931             fi
10932           else
10933             result=$wxUSE_NOTEBOOK
10934           fi
10935
10936           { echo "$as_me:$LINENO: result: $result" >&5
10937 echo "${ECHO_T}$result" >&6; }
10938
10939
10940           enablestring=
10941           defaultval=$wxUSE_ALL_FEATURES
10942           if test -z "$defaultval"; then
10943               if test x"$enablestring" = xdisable; then
10944                   defaultval=yes
10945               else
10946                   defaultval=no
10947               fi
10948           fi
10949
10950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10951 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10952           # Check whether --enable-notifmsg was given.
10953 if test "${enable_notifmsg+set}" = set; then
10954   enableval=$enable_notifmsg;
10955                           if test "$enableval" = yes; then
10956                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10957                           else
10958                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10959                           fi
10960
10961 else
10962
10963                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10964
10965 fi
10966
10967
10968           eval "$wx_cv_use_notifmsg"
10969
10970           if test x"$enablestring" = xdisable; then
10971             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10972               result=no
10973             else
10974               result=yes
10975             fi
10976           else
10977             result=$wxUSE_NOTIFICATION_MESSAGE
10978           fi
10979
10980           { echo "$as_me:$LINENO: result: $result" >&5
10981 echo "${ECHO_T}$result" >&6; }
10982
10983
10984           enablestring=
10985           defaultval=$wxUSE_ALL_FEATURES
10986           if test -z "$defaultval"; then
10987               if test x"$enablestring" = xdisable; then
10988                   defaultval=yes
10989               else
10990                   defaultval=no
10991               fi
10992           fi
10993
10994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10995 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10996           # Check whether --enable-odcombobox was given.
10997 if test "${enable_odcombobox+set}" = set; then
10998   enableval=$enable_odcombobox;
10999                           if test "$enableval" = yes; then
11000                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11001                           else
11002                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11003                           fi
11004
11005 else
11006
11007                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11008
11009 fi
11010
11011
11012           eval "$wx_cv_use_odcombobox"
11013
11014           if test x"$enablestring" = xdisable; then
11015             if test $wxUSE_ODCOMBOBOX = yes; then
11016               result=no
11017             else
11018               result=yes
11019             fi
11020           else
11021             result=$wxUSE_ODCOMBOBOX
11022           fi
11023
11024           { echo "$as_me:$LINENO: result: $result" >&5
11025 echo "${ECHO_T}$result" >&6; }
11026
11027
11028           enablestring=
11029           defaultval=$wxUSE_ALL_FEATURES
11030           if test -z "$defaultval"; then
11031               if test x"$enablestring" = xdisable; then
11032                   defaultval=yes
11033               else
11034                   defaultval=no
11035               fi
11036           fi
11037
11038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11039 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11040           # Check whether --enable-popupwin was given.
11041 if test "${enable_popupwin+set}" = set; then
11042   enableval=$enable_popupwin;
11043                           if test "$enableval" = yes; then
11044                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11045                           else
11046                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11047                           fi
11048
11049 else
11050
11051                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11052
11053 fi
11054
11055
11056           eval "$wx_cv_use_popupwin"
11057
11058           if test x"$enablestring" = xdisable; then
11059             if test $wxUSE_POPUPWIN = yes; then
11060               result=no
11061             else
11062               result=yes
11063             fi
11064           else
11065             result=$wxUSE_POPUPWIN
11066           fi
11067
11068           { echo "$as_me:$LINENO: result: $result" >&5
11069 echo "${ECHO_T}$result" >&6; }
11070
11071
11072           enablestring=
11073           defaultval=$wxUSE_ALL_FEATURES
11074           if test -z "$defaultval"; then
11075               if test x"$enablestring" = xdisable; then
11076                   defaultval=yes
11077               else
11078                   defaultval=no
11079               fi
11080           fi
11081
11082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11083 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11084           # Check whether --enable-radiobox was given.
11085 if test "${enable_radiobox+set}" = set; then
11086   enableval=$enable_radiobox;
11087                           if test "$enableval" = yes; then
11088                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11089                           else
11090                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11091                           fi
11092
11093 else
11094
11095                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11096
11097 fi
11098
11099
11100           eval "$wx_cv_use_radiobox"
11101
11102           if test x"$enablestring" = xdisable; then
11103             if test $wxUSE_RADIOBOX = yes; then
11104               result=no
11105             else
11106               result=yes
11107             fi
11108           else
11109             result=$wxUSE_RADIOBOX
11110           fi
11111
11112           { echo "$as_me:$LINENO: result: $result" >&5
11113 echo "${ECHO_T}$result" >&6; }
11114
11115
11116           enablestring=
11117           defaultval=$wxUSE_ALL_FEATURES
11118           if test -z "$defaultval"; then
11119               if test x"$enablestring" = xdisable; then
11120                   defaultval=yes
11121               else
11122                   defaultval=no
11123               fi
11124           fi
11125
11126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11127 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11128           # Check whether --enable-radiobtn was given.
11129 if test "${enable_radiobtn+set}" = set; then
11130   enableval=$enable_radiobtn;
11131                           if test "$enableval" = yes; then
11132                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11133                           else
11134                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11135                           fi
11136
11137 else
11138
11139                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11140
11141 fi
11142
11143
11144           eval "$wx_cv_use_radiobtn"
11145
11146           if test x"$enablestring" = xdisable; then
11147             if test $wxUSE_RADIOBTN = yes; then
11148               result=no
11149             else
11150               result=yes
11151             fi
11152           else
11153             result=$wxUSE_RADIOBTN
11154           fi
11155
11156           { echo "$as_me:$LINENO: result: $result" >&5
11157 echo "${ECHO_T}$result" >&6; }
11158
11159
11160           enablestring=
11161           defaultval=$wxUSE_ALL_FEATURES
11162           if test -z "$defaultval"; then
11163               if test x"$enablestring" = xdisable; then
11164                   defaultval=yes
11165               else
11166                   defaultval=no
11167               fi
11168           fi
11169
11170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11171 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11172           # Check whether --enable-rearrangectrl was given.
11173 if test "${enable_rearrangectrl+set}" = set; then
11174   enableval=$enable_rearrangectrl;
11175                           if test "$enableval" = yes; then
11176                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11177                           else
11178                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11179                           fi
11180
11181 else
11182
11183                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11184
11185 fi
11186
11187
11188           eval "$wx_cv_use_rearrangectrl"
11189
11190           if test x"$enablestring" = xdisable; then
11191             if test $wxUSE_REARRANGECTRL = yes; then
11192               result=no
11193             else
11194               result=yes
11195             fi
11196           else
11197             result=$wxUSE_REARRANGECTRL
11198           fi
11199
11200           { echo "$as_me:$LINENO: result: $result" >&5
11201 echo "${ECHO_T}$result" >&6; }
11202
11203
11204           enablestring=
11205           defaultval=$wxUSE_ALL_FEATURES
11206           if test -z "$defaultval"; then
11207               if test x"$enablestring" = xdisable; then
11208                   defaultval=yes
11209               else
11210                   defaultval=no
11211               fi
11212           fi
11213
11214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11215 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11216           # Check whether --enable-sash was given.
11217 if test "${enable_sash+set}" = set; then
11218   enableval=$enable_sash;
11219                           if test "$enableval" = yes; then
11220                             wx_cv_use_sash='wxUSE_SASH=yes'
11221                           else
11222                             wx_cv_use_sash='wxUSE_SASH=no'
11223                           fi
11224
11225 else
11226
11227                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11228
11229 fi
11230
11231
11232           eval "$wx_cv_use_sash"
11233
11234           if test x"$enablestring" = xdisable; then
11235             if test $wxUSE_SASH = yes; then
11236               result=no
11237             else
11238               result=yes
11239             fi
11240           else
11241             result=$wxUSE_SASH
11242           fi
11243
11244           { echo "$as_me:$LINENO: result: $result" >&5
11245 echo "${ECHO_T}$result" >&6; }
11246
11247
11248           enablestring=
11249           defaultval=$wxUSE_ALL_FEATURES
11250           if test -z "$defaultval"; then
11251               if test x"$enablestring" = xdisable; then
11252                   defaultval=yes
11253               else
11254                   defaultval=no
11255               fi
11256           fi
11257
11258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11259 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11260           # Check whether --enable-scrollbar was given.
11261 if test "${enable_scrollbar+set}" = set; then
11262   enableval=$enable_scrollbar;
11263                           if test "$enableval" = yes; then
11264                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11265                           else
11266                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11267                           fi
11268
11269 else
11270
11271                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11272
11273 fi
11274
11275
11276           eval "$wx_cv_use_scrollbar"
11277
11278           if test x"$enablestring" = xdisable; then
11279             if test $wxUSE_SCROLLBAR = yes; then
11280               result=no
11281             else
11282               result=yes
11283             fi
11284           else
11285             result=$wxUSE_SCROLLBAR
11286           fi
11287
11288           { echo "$as_me:$LINENO: result: $result" >&5
11289 echo "${ECHO_T}$result" >&6; }
11290
11291
11292           enablestring=
11293           defaultval=$wxUSE_ALL_FEATURES
11294           if test -z "$defaultval"; then
11295               if test x"$enablestring" = xdisable; then
11296                   defaultval=yes
11297               else
11298                   defaultval=no
11299               fi
11300           fi
11301
11302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11303 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11304           # Check whether --enable-searchctrl was given.
11305 if test "${enable_searchctrl+set}" = set; then
11306   enableval=$enable_searchctrl;
11307                           if test "$enableval" = yes; then
11308                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11309                           else
11310                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11311                           fi
11312
11313 else
11314
11315                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11316
11317 fi
11318
11319
11320           eval "$wx_cv_use_searchctrl"
11321
11322           if test x"$enablestring" = xdisable; then
11323             if test $wxUSE_SEARCHCTRL = yes; then
11324               result=no
11325             else
11326               result=yes
11327             fi
11328           else
11329             result=$wxUSE_SEARCHCTRL
11330           fi
11331
11332           { echo "$as_me:$LINENO: result: $result" >&5
11333 echo "${ECHO_T}$result" >&6; }
11334
11335
11336           enablestring=
11337           defaultval=$wxUSE_ALL_FEATURES
11338           if test -z "$defaultval"; then
11339               if test x"$enablestring" = xdisable; then
11340                   defaultval=yes
11341               else
11342                   defaultval=no
11343               fi
11344           fi
11345
11346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11347 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11348           # Check whether --enable-slider was given.
11349 if test "${enable_slider+set}" = set; then
11350   enableval=$enable_slider;
11351                           if test "$enableval" = yes; then
11352                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11353                           else
11354                             wx_cv_use_slider='wxUSE_SLIDER=no'
11355                           fi
11356
11357 else
11358
11359                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11360
11361 fi
11362
11363
11364           eval "$wx_cv_use_slider"
11365
11366           if test x"$enablestring" = xdisable; then
11367             if test $wxUSE_SLIDER = yes; then
11368               result=no
11369             else
11370               result=yes
11371             fi
11372           else
11373             result=$wxUSE_SLIDER
11374           fi
11375
11376           { echo "$as_me:$LINENO: result: $result" >&5
11377 echo "${ECHO_T}$result" >&6; }
11378
11379
11380           enablestring=
11381           defaultval=$wxUSE_ALL_FEATURES
11382           if test -z "$defaultval"; then
11383               if test x"$enablestring" = xdisable; then
11384                   defaultval=yes
11385               else
11386                   defaultval=no
11387               fi
11388           fi
11389
11390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11391 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11392           # Check whether --enable-spinbtn was given.
11393 if test "${enable_spinbtn+set}" = set; then
11394   enableval=$enable_spinbtn;
11395                           if test "$enableval" = yes; then
11396                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11397                           else
11398                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11399                           fi
11400
11401 else
11402
11403                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11404
11405 fi
11406
11407
11408           eval "$wx_cv_use_spinbtn"
11409
11410           if test x"$enablestring" = xdisable; then
11411             if test $wxUSE_SPINBTN = yes; then
11412               result=no
11413             else
11414               result=yes
11415             fi
11416           else
11417             result=$wxUSE_SPINBTN
11418           fi
11419
11420           { echo "$as_me:$LINENO: result: $result" >&5
11421 echo "${ECHO_T}$result" >&6; }
11422
11423
11424           enablestring=
11425           defaultval=$wxUSE_ALL_FEATURES
11426           if test -z "$defaultval"; then
11427               if test x"$enablestring" = xdisable; then
11428                   defaultval=yes
11429               else
11430                   defaultval=no
11431               fi
11432           fi
11433
11434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11435 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11436           # Check whether --enable-spinctrl was given.
11437 if test "${enable_spinctrl+set}" = set; then
11438   enableval=$enable_spinctrl;
11439                           if test "$enableval" = yes; then
11440                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11441                           else
11442                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11443                           fi
11444
11445 else
11446
11447                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11448
11449 fi
11450
11451
11452           eval "$wx_cv_use_spinctrl"
11453
11454           if test x"$enablestring" = xdisable; then
11455             if test $wxUSE_SPINCTRL = yes; then
11456               result=no
11457             else
11458               result=yes
11459             fi
11460           else
11461             result=$wxUSE_SPINCTRL
11462           fi
11463
11464           { echo "$as_me:$LINENO: result: $result" >&5
11465 echo "${ECHO_T}$result" >&6; }
11466
11467
11468           enablestring=
11469           defaultval=$wxUSE_ALL_FEATURES
11470           if test -z "$defaultval"; then
11471               if test x"$enablestring" = xdisable; then
11472                   defaultval=yes
11473               else
11474                   defaultval=no
11475               fi
11476           fi
11477
11478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11479 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11480           # Check whether --enable-splitter was given.
11481 if test "${enable_splitter+set}" = set; then
11482   enableval=$enable_splitter;
11483                           if test "$enableval" = yes; then
11484                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11485                           else
11486                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11487                           fi
11488
11489 else
11490
11491                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11492
11493 fi
11494
11495
11496           eval "$wx_cv_use_splitter"
11497
11498           if test x"$enablestring" = xdisable; then
11499             if test $wxUSE_SPLITTER = yes; then
11500               result=no
11501             else
11502               result=yes
11503             fi
11504           else
11505             result=$wxUSE_SPLITTER
11506           fi
11507
11508           { echo "$as_me:$LINENO: result: $result" >&5
11509 echo "${ECHO_T}$result" >&6; }
11510
11511
11512           enablestring=
11513           defaultval=$wxUSE_ALL_FEATURES
11514           if test -z "$defaultval"; then
11515               if test x"$enablestring" = xdisable; then
11516                   defaultval=yes
11517               else
11518                   defaultval=no
11519               fi
11520           fi
11521
11522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11523 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11524           # Check whether --enable-statbmp was given.
11525 if test "${enable_statbmp+set}" = set; then
11526   enableval=$enable_statbmp;
11527                           if test "$enableval" = yes; then
11528                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11529                           else
11530                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11531                           fi
11532
11533 else
11534
11535                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11536
11537 fi
11538
11539
11540           eval "$wx_cv_use_statbmp"
11541
11542           if test x"$enablestring" = xdisable; then
11543             if test $wxUSE_STATBMP = yes; then
11544               result=no
11545             else
11546               result=yes
11547             fi
11548           else
11549             result=$wxUSE_STATBMP
11550           fi
11551
11552           { echo "$as_me:$LINENO: result: $result" >&5
11553 echo "${ECHO_T}$result" >&6; }
11554
11555
11556           enablestring=
11557           defaultval=$wxUSE_ALL_FEATURES
11558           if test -z "$defaultval"; then
11559               if test x"$enablestring" = xdisable; then
11560                   defaultval=yes
11561               else
11562                   defaultval=no
11563               fi
11564           fi
11565
11566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11567 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11568           # Check whether --enable-statbox was given.
11569 if test "${enable_statbox+set}" = set; then
11570   enableval=$enable_statbox;
11571                           if test "$enableval" = yes; then
11572                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11573                           else
11574                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11575                           fi
11576
11577 else
11578
11579                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11580
11581 fi
11582
11583
11584           eval "$wx_cv_use_statbox"
11585
11586           if test x"$enablestring" = xdisable; then
11587             if test $wxUSE_STATBOX = yes; then
11588               result=no
11589             else
11590               result=yes
11591             fi
11592           else
11593             result=$wxUSE_STATBOX
11594           fi
11595
11596           { echo "$as_me:$LINENO: result: $result" >&5
11597 echo "${ECHO_T}$result" >&6; }
11598
11599
11600           enablestring=
11601           defaultval=$wxUSE_ALL_FEATURES
11602           if test -z "$defaultval"; then
11603               if test x"$enablestring" = xdisable; then
11604                   defaultval=yes
11605               else
11606                   defaultval=no
11607               fi
11608           fi
11609
11610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11611 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11612           # Check whether --enable-statline was given.
11613 if test "${enable_statline+set}" = set; then
11614   enableval=$enable_statline;
11615                           if test "$enableval" = yes; then
11616                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11617                           else
11618                             wx_cv_use_statline='wxUSE_STATLINE=no'
11619                           fi
11620
11621 else
11622
11623                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11624
11625 fi
11626
11627
11628           eval "$wx_cv_use_statline"
11629
11630           if test x"$enablestring" = xdisable; then
11631             if test $wxUSE_STATLINE = yes; then
11632               result=no
11633             else
11634               result=yes
11635             fi
11636           else
11637             result=$wxUSE_STATLINE
11638           fi
11639
11640           { echo "$as_me:$LINENO: result: $result" >&5
11641 echo "${ECHO_T}$result" >&6; }
11642
11643
11644           enablestring=
11645           defaultval=$wxUSE_ALL_FEATURES
11646           if test -z "$defaultval"; then
11647               if test x"$enablestring" = xdisable; then
11648                   defaultval=yes
11649               else
11650                   defaultval=no
11651               fi
11652           fi
11653
11654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11655 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11656           # Check whether --enable-stattext was given.
11657 if test "${enable_stattext+set}" = set; then
11658   enableval=$enable_stattext;
11659                           if test "$enableval" = yes; then
11660                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11661                           else
11662                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11663                           fi
11664
11665 else
11666
11667                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11668
11669 fi
11670
11671
11672           eval "$wx_cv_use_stattext"
11673
11674           if test x"$enablestring" = xdisable; then
11675             if test $wxUSE_STATTEXT = yes; then
11676               result=no
11677             else
11678               result=yes
11679             fi
11680           else
11681             result=$wxUSE_STATTEXT
11682           fi
11683
11684           { echo "$as_me:$LINENO: result: $result" >&5
11685 echo "${ECHO_T}$result" >&6; }
11686
11687
11688           enablestring=
11689           defaultval=$wxUSE_ALL_FEATURES
11690           if test -z "$defaultval"; then
11691               if test x"$enablestring" = xdisable; then
11692                   defaultval=yes
11693               else
11694                   defaultval=no
11695               fi
11696           fi
11697
11698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11699 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11700           # Check whether --enable-statusbar was given.
11701 if test "${enable_statusbar+set}" = set; then
11702   enableval=$enable_statusbar;
11703                           if test "$enableval" = yes; then
11704                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11705                           else
11706                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11707                           fi
11708
11709 else
11710
11711                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11712
11713 fi
11714
11715
11716           eval "$wx_cv_use_statusbar"
11717
11718           if test x"$enablestring" = xdisable; then
11719             if test $wxUSE_STATUSBAR = yes; then
11720               result=no
11721             else
11722               result=yes
11723             fi
11724           else
11725             result=$wxUSE_STATUSBAR
11726           fi
11727
11728           { echo "$as_me:$LINENO: result: $result" >&5
11729 echo "${ECHO_T}$result" >&6; }
11730
11731
11732           enablestring=
11733           defaultval=$wxUSE_ALL_FEATURES
11734           if test -z "$defaultval"; then
11735               if test x"$enablestring" = xdisable; then
11736                   defaultval=yes
11737               else
11738                   defaultval=no
11739               fi
11740           fi
11741
11742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11743 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11744           # Check whether --enable-taskbaricon was given.
11745 if test "${enable_taskbaricon+set}" = set; then
11746   enableval=$enable_taskbaricon;
11747                           if test "$enableval" = yes; then
11748                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11749                           else
11750                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11751                           fi
11752
11753 else
11754
11755                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11756
11757 fi
11758
11759
11760           eval "$wx_cv_use_taskbaricon"
11761
11762           if test x"$enablestring" = xdisable; then
11763             if test $wxUSE_TASKBARICON = yes; then
11764               result=no
11765             else
11766               result=yes
11767             fi
11768           else
11769             result=$wxUSE_TASKBARICON
11770           fi
11771
11772           { echo "$as_me:$LINENO: result: $result" >&5
11773 echo "${ECHO_T}$result" >&6; }
11774
11775
11776           enablestring=
11777           defaultval=$wxUSE_ALL_FEATURES
11778           if test -z "$defaultval"; then
11779               if test x"$enablestring" = xdisable; then
11780                   defaultval=yes
11781               else
11782                   defaultval=no
11783               fi
11784           fi
11785
11786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11787 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11788           # Check whether --enable-tbarnative was given.
11789 if test "${enable_tbarnative+set}" = set; then
11790   enableval=$enable_tbarnative;
11791                           if test "$enableval" = yes; then
11792                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11793                           else
11794                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11795                           fi
11796
11797 else
11798
11799                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11800
11801 fi
11802
11803
11804           eval "$wx_cv_use_tbarnative"
11805
11806           if test x"$enablestring" = xdisable; then
11807             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11808               result=no
11809             else
11810               result=yes
11811             fi
11812           else
11813             result=$wxUSE_TOOLBAR_NATIVE
11814           fi
11815
11816           { echo "$as_me:$LINENO: result: $result" >&5
11817 echo "${ECHO_T}$result" >&6; }
11818
11819
11820           enablestring=
11821           defaultval=$wxUSE_ALL_FEATURES
11822           if test -z "$defaultval"; then
11823               if test x"$enablestring" = xdisable; then
11824                   defaultval=yes
11825               else
11826                   defaultval=no
11827               fi
11828           fi
11829
11830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11831 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11832           # Check whether --enable-textctrl was given.
11833 if test "${enable_textctrl+set}" = set; then
11834   enableval=$enable_textctrl;
11835                           if test "$enableval" = yes; then
11836                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11837                           else
11838                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11839                           fi
11840
11841 else
11842
11843                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11844
11845 fi
11846
11847
11848           eval "$wx_cv_use_textctrl"
11849
11850           if test x"$enablestring" = xdisable; then
11851             if test $wxUSE_TEXTCTRL = yes; then
11852               result=no
11853             else
11854               result=yes
11855             fi
11856           else
11857             result=$wxUSE_TEXTCTRL
11858           fi
11859
11860           { echo "$as_me:$LINENO: result: $result" >&5
11861 echo "${ECHO_T}$result" >&6; }
11862
11863
11864           enablestring=
11865           defaultval=$wxUSE_ALL_FEATURES
11866           if test -z "$defaultval"; then
11867               if test x"$enablestring" = xdisable; then
11868                   defaultval=yes
11869               else
11870                   defaultval=no
11871               fi
11872           fi
11873
11874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11875 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11876           # Check whether --enable-tipwindow was given.
11877 if test "${enable_tipwindow+set}" = set; then
11878   enableval=$enable_tipwindow;
11879                           if test "$enableval" = yes; then
11880                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11881                           else
11882                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11883                           fi
11884
11885 else
11886
11887                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11888
11889 fi
11890
11891
11892           eval "$wx_cv_use_tipwindow"
11893
11894           if test x"$enablestring" = xdisable; then
11895             if test $wxUSE_TIPWINDOW = yes; then
11896               result=no
11897             else
11898               result=yes
11899             fi
11900           else
11901             result=$wxUSE_TIPWINDOW
11902           fi
11903
11904           { echo "$as_me:$LINENO: result: $result" >&5
11905 echo "${ECHO_T}$result" >&6; }
11906
11907
11908           enablestring=
11909           defaultval=$wxUSE_ALL_FEATURES
11910           if test -z "$defaultval"; then
11911               if test x"$enablestring" = xdisable; then
11912                   defaultval=yes
11913               else
11914                   defaultval=no
11915               fi
11916           fi
11917
11918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11919 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11920           # Check whether --enable-togglebtn was given.
11921 if test "${enable_togglebtn+set}" = set; then
11922   enableval=$enable_togglebtn;
11923                           if test "$enableval" = yes; then
11924                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11925                           else
11926                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11927                           fi
11928
11929 else
11930
11931                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11932
11933 fi
11934
11935
11936           eval "$wx_cv_use_togglebtn"
11937
11938           if test x"$enablestring" = xdisable; then
11939             if test $wxUSE_TOGGLEBTN = yes; then
11940               result=no
11941             else
11942               result=yes
11943             fi
11944           else
11945             result=$wxUSE_TOGGLEBTN
11946           fi
11947
11948           { echo "$as_me:$LINENO: result: $result" >&5
11949 echo "${ECHO_T}$result" >&6; }
11950
11951
11952           enablestring=
11953           defaultval=$wxUSE_ALL_FEATURES
11954           if test -z "$defaultval"; then
11955               if test x"$enablestring" = xdisable; then
11956                   defaultval=yes
11957               else
11958                   defaultval=no
11959               fi
11960           fi
11961
11962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11963 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11964           # Check whether --enable-toolbar was given.
11965 if test "${enable_toolbar+set}" = set; then
11966   enableval=$enable_toolbar;
11967                           if test "$enableval" = yes; then
11968                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11969                           else
11970                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11971                           fi
11972
11973 else
11974
11975                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11976
11977 fi
11978
11979
11980           eval "$wx_cv_use_toolbar"
11981
11982           if test x"$enablestring" = xdisable; then
11983             if test $wxUSE_TOOLBAR = yes; then
11984               result=no
11985             else
11986               result=yes
11987             fi
11988           else
11989             result=$wxUSE_TOOLBAR
11990           fi
11991
11992           { echo "$as_me:$LINENO: result: $result" >&5
11993 echo "${ECHO_T}$result" >&6; }
11994
11995
11996           enablestring=
11997           defaultval=$wxUSE_ALL_FEATURES
11998           if test -z "$defaultval"; then
11999               if test x"$enablestring" = xdisable; then
12000                   defaultval=yes
12001               else
12002                   defaultval=no
12003               fi
12004           fi
12005
12006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12007 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12008           # Check whether --enable-toolbook was given.
12009 if test "${enable_toolbook+set}" = set; then
12010   enableval=$enable_toolbook;
12011                           if test "$enableval" = yes; then
12012                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12013                           else
12014                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12015                           fi
12016
12017 else
12018
12019                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12020
12021 fi
12022
12023
12024           eval "$wx_cv_use_toolbook"
12025
12026           if test x"$enablestring" = xdisable; then
12027             if test $wxUSE_TOOLBOOK = yes; then
12028               result=no
12029             else
12030               result=yes
12031             fi
12032           else
12033             result=$wxUSE_TOOLBOOK
12034           fi
12035
12036           { echo "$as_me:$LINENO: result: $result" >&5
12037 echo "${ECHO_T}$result" >&6; }
12038
12039
12040           enablestring=
12041           defaultval=$wxUSE_ALL_FEATURES
12042           if test -z "$defaultval"; then
12043               if test x"$enablestring" = xdisable; then
12044                   defaultval=yes
12045               else
12046                   defaultval=no
12047               fi
12048           fi
12049
12050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12051 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12052           # Check whether --enable-treebook was given.
12053 if test "${enable_treebook+set}" = set; then
12054   enableval=$enable_treebook;
12055                           if test "$enableval" = yes; then
12056                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12057                           else
12058                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12059                           fi
12060
12061 else
12062
12063                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12064
12065 fi
12066
12067
12068           eval "$wx_cv_use_treebook"
12069
12070           if test x"$enablestring" = xdisable; then
12071             if test $wxUSE_TREEBOOK = yes; then
12072               result=no
12073             else
12074               result=yes
12075             fi
12076           else
12077             result=$wxUSE_TREEBOOK
12078           fi
12079
12080           { echo "$as_me:$LINENO: result: $result" >&5
12081 echo "${ECHO_T}$result" >&6; }
12082
12083
12084           enablestring=
12085           defaultval=$wxUSE_ALL_FEATURES
12086           if test -z "$defaultval"; then
12087               if test x"$enablestring" = xdisable; then
12088                   defaultval=yes
12089               else
12090                   defaultval=no
12091               fi
12092           fi
12093
12094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12095 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12096           # Check whether --enable-treectrl was given.
12097 if test "${enable_treectrl+set}" = set; then
12098   enableval=$enable_treectrl;
12099                           if test "$enableval" = yes; then
12100                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12101                           else
12102                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12103                           fi
12104
12105 else
12106
12107                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12108
12109 fi
12110
12111
12112           eval "$wx_cv_use_treectrl"
12113
12114           if test x"$enablestring" = xdisable; then
12115             if test $wxUSE_TREECTRL = yes; then
12116               result=no
12117             else
12118               result=yes
12119             fi
12120           else
12121             result=$wxUSE_TREECTRL
12122           fi
12123
12124           { echo "$as_me:$LINENO: result: $result" >&5
12125 echo "${ECHO_T}$result" >&6; }
12126
12127
12128
12129
12130           enablestring=
12131           defaultval=$wxUSE_ALL_FEATURES
12132           if test -z "$defaultval"; then
12133               if test x"$enablestring" = xdisable; then
12134                   defaultval=yes
12135               else
12136                   defaultval=no
12137               fi
12138           fi
12139
12140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12141 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12142           # Check whether --enable-commondlg was given.
12143 if test "${enable_commondlg+set}" = set; then
12144   enableval=$enable_commondlg;
12145                           if test "$enableval" = yes; then
12146                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12147                           else
12148                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12149                           fi
12150
12151 else
12152
12153                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12154
12155 fi
12156
12157
12158           eval "$wx_cv_use_commondlg"
12159
12160           if test x"$enablestring" = xdisable; then
12161             if test $wxUSE_COMMONDLGS = yes; then
12162               result=no
12163             else
12164               result=yes
12165             fi
12166           else
12167             result=$wxUSE_COMMONDLGS
12168           fi
12169
12170           { echo "$as_me:$LINENO: result: $result" >&5
12171 echo "${ECHO_T}$result" >&6; }
12172
12173
12174           enablestring=
12175           defaultval=$wxUSE_ALL_FEATURES
12176           if test -z "$defaultval"; then
12177               if test x"$enablestring" = xdisable; then
12178                   defaultval=yes
12179               else
12180                   defaultval=no
12181               fi
12182           fi
12183
12184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12185 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12186           # Check whether --enable-aboutdlg was given.
12187 if test "${enable_aboutdlg+set}" = set; then
12188   enableval=$enable_aboutdlg;
12189                           if test "$enableval" = yes; then
12190                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12191                           else
12192                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12193                           fi
12194
12195 else
12196
12197                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12198
12199 fi
12200
12201
12202           eval "$wx_cv_use_aboutdlg"
12203
12204           if test x"$enablestring" = xdisable; then
12205             if test $wxUSE_ABOUTDLG = yes; then
12206               result=no
12207             else
12208               result=yes
12209             fi
12210           else
12211             result=$wxUSE_ABOUTDLG
12212           fi
12213
12214           { echo "$as_me:$LINENO: result: $result" >&5
12215 echo "${ECHO_T}$result" >&6; }
12216
12217
12218           enablestring=
12219           defaultval=$wxUSE_ALL_FEATURES
12220           if test -z "$defaultval"; then
12221               if test x"$enablestring" = xdisable; then
12222                   defaultval=yes
12223               else
12224                   defaultval=no
12225               fi
12226           fi
12227
12228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12229 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12230           # Check whether --enable-choicedlg was given.
12231 if test "${enable_choicedlg+set}" = set; then
12232   enableval=$enable_choicedlg;
12233                           if test "$enableval" = yes; then
12234                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12235                           else
12236                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12237                           fi
12238
12239 else
12240
12241                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12242
12243 fi
12244
12245
12246           eval "$wx_cv_use_choicedlg"
12247
12248           if test x"$enablestring" = xdisable; then
12249             if test $wxUSE_CHOICEDLG = yes; then
12250               result=no
12251             else
12252               result=yes
12253             fi
12254           else
12255             result=$wxUSE_CHOICEDLG
12256           fi
12257
12258           { echo "$as_me:$LINENO: result: $result" >&5
12259 echo "${ECHO_T}$result" >&6; }
12260
12261
12262           enablestring=
12263           defaultval=$wxUSE_ALL_FEATURES
12264           if test -z "$defaultval"; then
12265               if test x"$enablestring" = xdisable; then
12266                   defaultval=yes
12267               else
12268                   defaultval=no
12269               fi
12270           fi
12271
12272           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12273 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12274           # Check whether --enable-coldlg was given.
12275 if test "${enable_coldlg+set}" = set; then
12276   enableval=$enable_coldlg;
12277                           if test "$enableval" = yes; then
12278                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12279                           else
12280                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12281                           fi
12282
12283 else
12284
12285                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12286
12287 fi
12288
12289
12290           eval "$wx_cv_use_coldlg"
12291
12292           if test x"$enablestring" = xdisable; then
12293             if test $wxUSE_COLOURDLG = yes; then
12294               result=no
12295             else
12296               result=yes
12297             fi
12298           else
12299             result=$wxUSE_COLOURDLG
12300           fi
12301
12302           { echo "$as_me:$LINENO: result: $result" >&5
12303 echo "${ECHO_T}$result" >&6; }
12304
12305
12306           enablestring=
12307           defaultval=$wxUSE_ALL_FEATURES
12308           if test -z "$defaultval"; then
12309               if test x"$enablestring" = xdisable; then
12310                   defaultval=yes
12311               else
12312                   defaultval=no
12313               fi
12314           fi
12315
12316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12317 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12318           # Check whether --enable-filedlg was given.
12319 if test "${enable_filedlg+set}" = set; then
12320   enableval=$enable_filedlg;
12321                           if test "$enableval" = yes; then
12322                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12323                           else
12324                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12325                           fi
12326
12327 else
12328
12329                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12330
12331 fi
12332
12333
12334           eval "$wx_cv_use_filedlg"
12335
12336           if test x"$enablestring" = xdisable; then
12337             if test $wxUSE_FILEDLG = yes; then
12338               result=no
12339             else
12340               result=yes
12341             fi
12342           else
12343             result=$wxUSE_FILEDLG
12344           fi
12345
12346           { echo "$as_me:$LINENO: result: $result" >&5
12347 echo "${ECHO_T}$result" >&6; }
12348
12349
12350           enablestring=
12351           defaultval=$wxUSE_ALL_FEATURES
12352           if test -z "$defaultval"; then
12353               if test x"$enablestring" = xdisable; then
12354                   defaultval=yes
12355               else
12356                   defaultval=no
12357               fi
12358           fi
12359
12360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12361 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12362           # Check whether --enable-finddlg was given.
12363 if test "${enable_finddlg+set}" = set; then
12364   enableval=$enable_finddlg;
12365                           if test "$enableval" = yes; then
12366                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12367                           else
12368                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12369                           fi
12370
12371 else
12372
12373                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12374
12375 fi
12376
12377
12378           eval "$wx_cv_use_finddlg"
12379
12380           if test x"$enablestring" = xdisable; then
12381             if test $wxUSE_FINDREPLDLG = yes; then
12382               result=no
12383             else
12384               result=yes
12385             fi
12386           else
12387             result=$wxUSE_FINDREPLDLG
12388           fi
12389
12390           { echo "$as_me:$LINENO: result: $result" >&5
12391 echo "${ECHO_T}$result" >&6; }
12392
12393
12394           enablestring=
12395           defaultval=$wxUSE_ALL_FEATURES
12396           if test -z "$defaultval"; then
12397               if test x"$enablestring" = xdisable; then
12398                   defaultval=yes
12399               else
12400                   defaultval=no
12401               fi
12402           fi
12403
12404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12405 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12406           # Check whether --enable-fontdlg was given.
12407 if test "${enable_fontdlg+set}" = set; then
12408   enableval=$enable_fontdlg;
12409                           if test "$enableval" = yes; then
12410                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12411                           else
12412                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12413                           fi
12414
12415 else
12416
12417                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12418
12419 fi
12420
12421
12422           eval "$wx_cv_use_fontdlg"
12423
12424           if test x"$enablestring" = xdisable; then
12425             if test $wxUSE_FONTDLG = yes; then
12426               result=no
12427             else
12428               result=yes
12429             fi
12430           else
12431             result=$wxUSE_FONTDLG
12432           fi
12433
12434           { echo "$as_me:$LINENO: result: $result" >&5
12435 echo "${ECHO_T}$result" >&6; }
12436
12437
12438           enablestring=
12439           defaultval=$wxUSE_ALL_FEATURES
12440           if test -z "$defaultval"; then
12441               if test x"$enablestring" = xdisable; then
12442                   defaultval=yes
12443               else
12444                   defaultval=no
12445               fi
12446           fi
12447
12448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12449 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12450           # Check whether --enable-dirdlg was given.
12451 if test "${enable_dirdlg+set}" = set; then
12452   enableval=$enable_dirdlg;
12453                           if test "$enableval" = yes; then
12454                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12455                           else
12456                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12457                           fi
12458
12459 else
12460
12461                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12462
12463 fi
12464
12465
12466           eval "$wx_cv_use_dirdlg"
12467
12468           if test x"$enablestring" = xdisable; then
12469             if test $wxUSE_DIRDLG = yes; then
12470               result=no
12471             else
12472               result=yes
12473             fi
12474           else
12475             result=$wxUSE_DIRDLG
12476           fi
12477
12478           { echo "$as_me:$LINENO: result: $result" >&5
12479 echo "${ECHO_T}$result" >&6; }
12480
12481
12482           enablestring=
12483           defaultval=$wxUSE_ALL_FEATURES
12484           if test -z "$defaultval"; then
12485               if test x"$enablestring" = xdisable; then
12486                   defaultval=yes
12487               else
12488                   defaultval=no
12489               fi
12490           fi
12491
12492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12493 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12494           # Check whether --enable-msgdlg was given.
12495 if test "${enable_msgdlg+set}" = set; then
12496   enableval=$enable_msgdlg;
12497                           if test "$enableval" = yes; then
12498                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12499                           else
12500                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12501                           fi
12502
12503 else
12504
12505                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12506
12507 fi
12508
12509
12510           eval "$wx_cv_use_msgdlg"
12511
12512           if test x"$enablestring" = xdisable; then
12513             if test $wxUSE_MSGDLG = yes; then
12514               result=no
12515             else
12516               result=yes
12517             fi
12518           else
12519             result=$wxUSE_MSGDLG
12520           fi
12521
12522           { echo "$as_me:$LINENO: result: $result" >&5
12523 echo "${ECHO_T}$result" >&6; }
12524
12525
12526           enablestring=
12527           defaultval=$wxUSE_ALL_FEATURES
12528           if test -z "$defaultval"; then
12529               if test x"$enablestring" = xdisable; then
12530                   defaultval=yes
12531               else
12532                   defaultval=no
12533               fi
12534           fi
12535
12536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12537 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12538           # Check whether --enable-numberdlg was given.
12539 if test "${enable_numberdlg+set}" = set; then
12540   enableval=$enable_numberdlg;
12541                           if test "$enableval" = yes; then
12542                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12543                           else
12544                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12545                           fi
12546
12547 else
12548
12549                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12550
12551 fi
12552
12553
12554           eval "$wx_cv_use_numberdlg"
12555
12556           if test x"$enablestring" = xdisable; then
12557             if test $wxUSE_NUMBERDLG = yes; then
12558               result=no
12559             else
12560               result=yes
12561             fi
12562           else
12563             result=$wxUSE_NUMBERDLG
12564           fi
12565
12566           { echo "$as_me:$LINENO: result: $result" >&5
12567 echo "${ECHO_T}$result" >&6; }
12568
12569
12570           enablestring=
12571           defaultval=$wxUSE_ALL_FEATURES
12572           if test -z "$defaultval"; then
12573               if test x"$enablestring" = xdisable; then
12574                   defaultval=yes
12575               else
12576                   defaultval=no
12577               fi
12578           fi
12579
12580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12581 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12582           # Check whether --enable-splash was given.
12583 if test "${enable_splash+set}" = set; then
12584   enableval=$enable_splash;
12585                           if test "$enableval" = yes; then
12586                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12587                           else
12588                             wx_cv_use_splash='wxUSE_SPLASH=no'
12589                           fi
12590
12591 else
12592
12593                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12594
12595 fi
12596
12597
12598           eval "$wx_cv_use_splash"
12599
12600           if test x"$enablestring" = xdisable; then
12601             if test $wxUSE_SPLASH = yes; then
12602               result=no
12603             else
12604               result=yes
12605             fi
12606           else
12607             result=$wxUSE_SPLASH
12608           fi
12609
12610           { echo "$as_me:$LINENO: result: $result" >&5
12611 echo "${ECHO_T}$result" >&6; }
12612
12613
12614           enablestring=
12615           defaultval=$wxUSE_ALL_FEATURES
12616           if test -z "$defaultval"; then
12617               if test x"$enablestring" = xdisable; then
12618                   defaultval=yes
12619               else
12620                   defaultval=no
12621               fi
12622           fi
12623
12624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12625 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12626           # Check whether --enable-textdlg was given.
12627 if test "${enable_textdlg+set}" = set; then
12628   enableval=$enable_textdlg;
12629                           if test "$enableval" = yes; then
12630                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12631                           else
12632                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12633                           fi
12634
12635 else
12636
12637                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12638
12639 fi
12640
12641
12642           eval "$wx_cv_use_textdlg"
12643
12644           if test x"$enablestring" = xdisable; then
12645             if test $wxUSE_TEXTDLG = yes; then
12646               result=no
12647             else
12648               result=yes
12649             fi
12650           else
12651             result=$wxUSE_TEXTDLG
12652           fi
12653
12654           { echo "$as_me:$LINENO: result: $result" >&5
12655 echo "${ECHO_T}$result" >&6; }
12656
12657
12658           enablestring=
12659           defaultval=$wxUSE_ALL_FEATURES
12660           if test -z "$defaultval"; then
12661               if test x"$enablestring" = xdisable; then
12662                   defaultval=yes
12663               else
12664                   defaultval=no
12665               fi
12666           fi
12667
12668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12669 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12670           # Check whether --enable-tipdlg was given.
12671 if test "${enable_tipdlg+set}" = set; then
12672   enableval=$enable_tipdlg;
12673                           if test "$enableval" = yes; then
12674                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12675                           else
12676                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12677                           fi
12678
12679 else
12680
12681                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12682
12683 fi
12684
12685
12686           eval "$wx_cv_use_tipdlg"
12687
12688           if test x"$enablestring" = xdisable; then
12689             if test $wxUSE_STARTUP_TIPS = yes; then
12690               result=no
12691             else
12692               result=yes
12693             fi
12694           else
12695             result=$wxUSE_STARTUP_TIPS
12696           fi
12697
12698           { echo "$as_me:$LINENO: result: $result" >&5
12699 echo "${ECHO_T}$result" >&6; }
12700
12701
12702           enablestring=
12703           defaultval=$wxUSE_ALL_FEATURES
12704           if test -z "$defaultval"; then
12705               if test x"$enablestring" = xdisable; then
12706                   defaultval=yes
12707               else
12708                   defaultval=no
12709               fi
12710           fi
12711
12712           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12713 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12714           # Check whether --enable-progressdlg was given.
12715 if test "${enable_progressdlg+set}" = set; then
12716   enableval=$enable_progressdlg;
12717                           if test "$enableval" = yes; then
12718                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12719                           else
12720                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12721                           fi
12722
12723 else
12724
12725                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12726
12727 fi
12728
12729
12730           eval "$wx_cv_use_progressdlg"
12731
12732           if test x"$enablestring" = xdisable; then
12733             if test $wxUSE_PROGRESSDLG = yes; then
12734               result=no
12735             else
12736               result=yes
12737             fi
12738           else
12739             result=$wxUSE_PROGRESSDLG
12740           fi
12741
12742           { echo "$as_me:$LINENO: result: $result" >&5
12743 echo "${ECHO_T}$result" >&6; }
12744
12745
12746           enablestring=
12747           defaultval=$wxUSE_ALL_FEATURES
12748           if test -z "$defaultval"; then
12749               if test x"$enablestring" = xdisable; then
12750                   defaultval=yes
12751               else
12752                   defaultval=no
12753               fi
12754           fi
12755
12756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12757 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12758           # Check whether --enable-wizarddlg was given.
12759 if test "${enable_wizarddlg+set}" = set; then
12760   enableval=$enable_wizarddlg;
12761                           if test "$enableval" = yes; then
12762                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12763                           else
12764                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12765                           fi
12766
12767 else
12768
12769                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12770
12771 fi
12772
12773
12774           eval "$wx_cv_use_wizarddlg"
12775
12776           if test x"$enablestring" = xdisable; then
12777             if test $wxUSE_WIZARDDLG = yes; then
12778               result=no
12779             else
12780               result=yes
12781             fi
12782           else
12783             result=$wxUSE_WIZARDDLG
12784           fi
12785
12786           { echo "$as_me:$LINENO: result: $result" >&5
12787 echo "${ECHO_T}$result" >&6; }
12788
12789
12790
12791
12792           enablestring=
12793           defaultval=$wxUSE_ALL_FEATURES
12794           if test -z "$defaultval"; then
12795               if test x"$enablestring" = xdisable; then
12796                   defaultval=yes
12797               else
12798                   defaultval=no
12799               fi
12800           fi
12801
12802           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12803 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12804           # Check whether --enable-menus was given.
12805 if test "${enable_menus+set}" = set; then
12806   enableval=$enable_menus;
12807                           if test "$enableval" = yes; then
12808                             wx_cv_use_menus='wxUSE_MENUS=yes'
12809                           else
12810                             wx_cv_use_menus='wxUSE_MENUS=no'
12811                           fi
12812
12813 else
12814
12815                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12816
12817 fi
12818
12819
12820           eval "$wx_cv_use_menus"
12821
12822           if test x"$enablestring" = xdisable; then
12823             if test $wxUSE_MENUS = yes; then
12824               result=no
12825             else
12826               result=yes
12827             fi
12828           else
12829             result=$wxUSE_MENUS
12830           fi
12831
12832           { echo "$as_me:$LINENO: result: $result" >&5
12833 echo "${ECHO_T}$result" >&6; }
12834
12835
12836           enablestring=
12837           defaultval=$wxUSE_ALL_FEATURES
12838           if test -z "$defaultval"; then
12839               if test x"$enablestring" = xdisable; then
12840                   defaultval=yes
12841               else
12842                   defaultval=no
12843               fi
12844           fi
12845
12846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12847 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12848           # Check whether --enable-miniframe was given.
12849 if test "${enable_miniframe+set}" = set; then
12850   enableval=$enable_miniframe;
12851                           if test "$enableval" = yes; then
12852                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12853                           else
12854                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12855                           fi
12856
12857 else
12858
12859                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12860
12861 fi
12862
12863
12864           eval "$wx_cv_use_miniframe"
12865
12866           if test x"$enablestring" = xdisable; then
12867             if test $wxUSE_MINIFRAME = yes; then
12868               result=no
12869             else
12870               result=yes
12871             fi
12872           else
12873             result=$wxUSE_MINIFRAME
12874           fi
12875
12876           { echo "$as_me:$LINENO: result: $result" >&5
12877 echo "${ECHO_T}$result" >&6; }
12878
12879
12880           enablestring=
12881           defaultval=$wxUSE_ALL_FEATURES
12882           if test -z "$defaultval"; then
12883               if test x"$enablestring" = xdisable; then
12884                   defaultval=yes
12885               else
12886                   defaultval=no
12887               fi
12888           fi
12889
12890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12891 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12892           # Check whether --enable-tooltips was given.
12893 if test "${enable_tooltips+set}" = set; then
12894   enableval=$enable_tooltips;
12895                           if test "$enableval" = yes; then
12896                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12897                           else
12898                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12899                           fi
12900
12901 else
12902
12903                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12904
12905 fi
12906
12907
12908           eval "$wx_cv_use_tooltips"
12909
12910           if test x"$enablestring" = xdisable; then
12911             if test $wxUSE_TOOLTIPS = yes; then
12912               result=no
12913             else
12914               result=yes
12915             fi
12916           else
12917             result=$wxUSE_TOOLTIPS
12918           fi
12919
12920           { echo "$as_me:$LINENO: result: $result" >&5
12921 echo "${ECHO_T}$result" >&6; }
12922
12923
12924           enablestring=
12925           defaultval=$wxUSE_ALL_FEATURES
12926           if test -z "$defaultval"; then
12927               if test x"$enablestring" = xdisable; then
12928                   defaultval=yes
12929               else
12930                   defaultval=no
12931               fi
12932           fi
12933
12934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12935 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12936           # Check whether --enable-splines was given.
12937 if test "${enable_splines+set}" = set; then
12938   enableval=$enable_splines;
12939                           if test "$enableval" = yes; then
12940                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12941                           else
12942                             wx_cv_use_splines='wxUSE_SPLINES=no'
12943                           fi
12944
12945 else
12946
12947                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12948
12949 fi
12950
12951
12952           eval "$wx_cv_use_splines"
12953
12954           if test x"$enablestring" = xdisable; then
12955             if test $wxUSE_SPLINES = yes; then
12956               result=no
12957             else
12958               result=yes
12959             fi
12960           else
12961             result=$wxUSE_SPLINES
12962           fi
12963
12964           { echo "$as_me:$LINENO: result: $result" >&5
12965 echo "${ECHO_T}$result" >&6; }
12966
12967
12968           enablestring=
12969           defaultval=$wxUSE_ALL_FEATURES
12970           if test -z "$defaultval"; then
12971               if test x"$enablestring" = xdisable; then
12972                   defaultval=yes
12973               else
12974                   defaultval=no
12975               fi
12976           fi
12977
12978           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12979 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12980           # Check whether --enable-mousewheel was given.
12981 if test "${enable_mousewheel+set}" = set; then
12982   enableval=$enable_mousewheel;
12983                           if test "$enableval" = yes; then
12984                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12985                           else
12986                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12987                           fi
12988
12989 else
12990
12991                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12992
12993 fi
12994
12995
12996           eval "$wx_cv_use_mousewheel"
12997
12998           if test x"$enablestring" = xdisable; then
12999             if test $wxUSE_MOUSEWHEEL = yes; then
13000               result=no
13001             else
13002               result=yes
13003             fi
13004           else
13005             result=$wxUSE_MOUSEWHEEL
13006           fi
13007
13008           { echo "$as_me:$LINENO: result: $result" >&5
13009 echo "${ECHO_T}$result" >&6; }
13010
13011
13012           enablestring=
13013           defaultval=$wxUSE_ALL_FEATURES
13014           if test -z "$defaultval"; then
13015               if test x"$enablestring" = xdisable; then
13016                   defaultval=yes
13017               else
13018                   defaultval=no
13019               fi
13020           fi
13021
13022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13023 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13024           # Check whether --enable-validators was given.
13025 if test "${enable_validators+set}" = set; then
13026   enableval=$enable_validators;
13027                           if test "$enableval" = yes; then
13028                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13029                           else
13030                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13031                           fi
13032
13033 else
13034
13035                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13036
13037 fi
13038
13039
13040           eval "$wx_cv_use_validators"
13041
13042           if test x"$enablestring" = xdisable; then
13043             if test $wxUSE_VALIDATORS = yes; then
13044               result=no
13045             else
13046               result=yes
13047             fi
13048           else
13049             result=$wxUSE_VALIDATORS
13050           fi
13051
13052           { echo "$as_me:$LINENO: result: $result" >&5
13053 echo "${ECHO_T}$result" >&6; }
13054
13055
13056           enablestring=
13057           defaultval=$wxUSE_ALL_FEATURES
13058           if test -z "$defaultval"; then
13059               if test x"$enablestring" = xdisable; then
13060                   defaultval=yes
13061               else
13062                   defaultval=no
13063               fi
13064           fi
13065
13066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13067 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13068           # Check whether --enable-busyinfo was given.
13069 if test "${enable_busyinfo+set}" = set; then
13070   enableval=$enable_busyinfo;
13071                           if test "$enableval" = yes; then
13072                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13073                           else
13074                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13075                           fi
13076
13077 else
13078
13079                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13080
13081 fi
13082
13083
13084           eval "$wx_cv_use_busyinfo"
13085
13086           if test x"$enablestring" = xdisable; then
13087             if test $wxUSE_BUSYINFO = yes; then
13088               result=no
13089             else
13090               result=yes
13091             fi
13092           else
13093             result=$wxUSE_BUSYINFO
13094           fi
13095
13096           { echo "$as_me:$LINENO: result: $result" >&5
13097 echo "${ECHO_T}$result" >&6; }
13098
13099
13100           enablestring=
13101           defaultval=$wxUSE_ALL_FEATURES
13102           if test -z "$defaultval"; then
13103               if test x"$enablestring" = xdisable; then
13104                   defaultval=yes
13105               else
13106                   defaultval=no
13107               fi
13108           fi
13109
13110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13111 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13112           # Check whether --enable-joystick was given.
13113 if test "${enable_joystick+set}" = set; then
13114   enableval=$enable_joystick;
13115                           if test "$enableval" = yes; then
13116                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13117                           else
13118                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13119                           fi
13120
13121 else
13122
13123                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13124
13125 fi
13126
13127
13128           eval "$wx_cv_use_joystick"
13129
13130           if test x"$enablestring" = xdisable; then
13131             if test $wxUSE_JOYSTICK = yes; then
13132               result=no
13133             else
13134               result=yes
13135             fi
13136           else
13137             result=$wxUSE_JOYSTICK
13138           fi
13139
13140           { echo "$as_me:$LINENO: result: $result" >&5
13141 echo "${ECHO_T}$result" >&6; }
13142
13143
13144           enablestring=
13145           defaultval=$wxUSE_ALL_FEATURES
13146           if test -z "$defaultval"; then
13147               if test x"$enablestring" = xdisable; then
13148                   defaultval=yes
13149               else
13150                   defaultval=no
13151               fi
13152           fi
13153
13154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13155 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13156           # Check whether --enable-metafile was given.
13157 if test "${enable_metafile+set}" = set; then
13158   enableval=$enable_metafile;
13159                           if test "$enableval" = yes; then
13160                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13161                           else
13162                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13163                           fi
13164
13165 else
13166
13167                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13168
13169 fi
13170
13171
13172           eval "$wx_cv_use_metafile"
13173
13174           if test x"$enablestring" = xdisable; then
13175             if test $wxUSE_METAFILE = yes; then
13176               result=no
13177             else
13178               result=yes
13179             fi
13180           else
13181             result=$wxUSE_METAFILE
13182           fi
13183
13184           { echo "$as_me:$LINENO: result: $result" >&5
13185 echo "${ECHO_T}$result" >&6; }
13186
13187
13188           enablestring=
13189           defaultval=$wxUSE_ALL_FEATURES
13190           if test -z "$defaultval"; then
13191               if test x"$enablestring" = xdisable; then
13192                   defaultval=yes
13193               else
13194                   defaultval=no
13195               fi
13196           fi
13197
13198           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13199 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13200           # Check whether --enable-dragimage was given.
13201 if test "${enable_dragimage+set}" = set; then
13202   enableval=$enable_dragimage;
13203                           if test "$enableval" = yes; then
13204                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13205                           else
13206                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13207                           fi
13208
13209 else
13210
13211                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13212
13213 fi
13214
13215
13216           eval "$wx_cv_use_dragimage"
13217
13218           if test x"$enablestring" = xdisable; then
13219             if test $wxUSE_DRAGIMAGE = yes; then
13220               result=no
13221             else
13222               result=yes
13223             fi
13224           else
13225             result=$wxUSE_DRAGIMAGE
13226           fi
13227
13228           { echo "$as_me:$LINENO: result: $result" >&5
13229 echo "${ECHO_T}$result" >&6; }
13230
13231
13232           enablestring=
13233           defaultval=$wxUSE_ALL_FEATURES
13234           if test -z "$defaultval"; then
13235               if test x"$enablestring" = xdisable; then
13236                   defaultval=yes
13237               else
13238                   defaultval=no
13239               fi
13240           fi
13241
13242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13243 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13244           # Check whether --enable-accessibility was given.
13245 if test "${enable_accessibility+set}" = set; then
13246   enableval=$enable_accessibility;
13247                           if test "$enableval" = yes; then
13248                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13249                           else
13250                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13251                           fi
13252
13253 else
13254
13255                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13256
13257 fi
13258
13259
13260           eval "$wx_cv_use_accessibility"
13261
13262           if test x"$enablestring" = xdisable; then
13263             if test $wxUSE_ACCESSIBILITY = yes; then
13264               result=no
13265             else
13266               result=yes
13267             fi
13268           else
13269             result=$wxUSE_ACCESSIBILITY
13270           fi
13271
13272           { echo "$as_me:$LINENO: result: $result" >&5
13273 echo "${ECHO_T}$result" >&6; }
13274
13275
13276
13277
13278           enablestring=
13279           defaultval=$wxUSE_ALL_FEATURES
13280           if test -z "$defaultval"; then
13281               if test x"$enablestring" = xdisable; then
13282                   defaultval=yes
13283               else
13284                   defaultval=no
13285               fi
13286           fi
13287
13288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13289 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13290           # Check whether --enable-palette was given.
13291 if test "${enable_palette+set}" = set; then
13292   enableval=$enable_palette;
13293                           if test "$enableval" = yes; then
13294                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13295                           else
13296                             wx_cv_use_palette='wxUSE_PALETTE=no'
13297                           fi
13298
13299 else
13300
13301                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13302
13303 fi
13304
13305
13306           eval "$wx_cv_use_palette"
13307
13308           if test x"$enablestring" = xdisable; then
13309             if test $wxUSE_PALETTE = yes; then
13310               result=no
13311             else
13312               result=yes
13313             fi
13314           else
13315             result=$wxUSE_PALETTE
13316           fi
13317
13318           { echo "$as_me:$LINENO: result: $result" >&5
13319 echo "${ECHO_T}$result" >&6; }
13320
13321
13322           enablestring=
13323           defaultval=$wxUSE_ALL_FEATURES
13324           if test -z "$defaultval"; then
13325               if test x"$enablestring" = xdisable; then
13326                   defaultval=yes
13327               else
13328                   defaultval=no
13329               fi
13330           fi
13331
13332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13333 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13334           # Check whether --enable-image was given.
13335 if test "${enable_image+set}" = set; then
13336   enableval=$enable_image;
13337                           if test "$enableval" = yes; then
13338                             wx_cv_use_image='wxUSE_IMAGE=yes'
13339                           else
13340                             wx_cv_use_image='wxUSE_IMAGE=no'
13341                           fi
13342
13343 else
13344
13345                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13346
13347 fi
13348
13349
13350           eval "$wx_cv_use_image"
13351
13352           if test x"$enablestring" = xdisable; then
13353             if test $wxUSE_IMAGE = yes; then
13354               result=no
13355             else
13356               result=yes
13357             fi
13358           else
13359             result=$wxUSE_IMAGE
13360           fi
13361
13362           { echo "$as_me:$LINENO: result: $result" >&5
13363 echo "${ECHO_T}$result" >&6; }
13364
13365
13366           enablestring=
13367           defaultval=$wxUSE_ALL_FEATURES
13368           if test -z "$defaultval"; then
13369               if test x"$enablestring" = xdisable; then
13370                   defaultval=yes
13371               else
13372                   defaultval=no
13373               fi
13374           fi
13375
13376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13377 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13378           # Check whether --enable-gif was given.
13379 if test "${enable_gif+set}" = set; then
13380   enableval=$enable_gif;
13381                           if test "$enableval" = yes; then
13382                             wx_cv_use_gif='wxUSE_GIF=yes'
13383                           else
13384                             wx_cv_use_gif='wxUSE_GIF=no'
13385                           fi
13386
13387 else
13388
13389                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13390
13391 fi
13392
13393
13394           eval "$wx_cv_use_gif"
13395
13396           if test x"$enablestring" = xdisable; then
13397             if test $wxUSE_GIF = yes; then
13398               result=no
13399             else
13400               result=yes
13401             fi
13402           else
13403             result=$wxUSE_GIF
13404           fi
13405
13406           { echo "$as_me:$LINENO: result: $result" >&5
13407 echo "${ECHO_T}$result" >&6; }
13408
13409
13410           enablestring=
13411           defaultval=$wxUSE_ALL_FEATURES
13412           if test -z "$defaultval"; then
13413               if test x"$enablestring" = xdisable; then
13414                   defaultval=yes
13415               else
13416                   defaultval=no
13417               fi
13418           fi
13419
13420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13421 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13422           # Check whether --enable-pcx was given.
13423 if test "${enable_pcx+set}" = set; then
13424   enableval=$enable_pcx;
13425                           if test "$enableval" = yes; then
13426                             wx_cv_use_pcx='wxUSE_PCX=yes'
13427                           else
13428                             wx_cv_use_pcx='wxUSE_PCX=no'
13429                           fi
13430
13431 else
13432
13433                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13434
13435 fi
13436
13437
13438           eval "$wx_cv_use_pcx"
13439
13440           if test x"$enablestring" = xdisable; then
13441             if test $wxUSE_PCX = yes; then
13442               result=no
13443             else
13444               result=yes
13445             fi
13446           else
13447             result=$wxUSE_PCX
13448           fi
13449
13450           { echo "$as_me:$LINENO: result: $result" >&5
13451 echo "${ECHO_T}$result" >&6; }
13452
13453
13454           enablestring=
13455           defaultval=$wxUSE_ALL_FEATURES
13456           if test -z "$defaultval"; then
13457               if test x"$enablestring" = xdisable; then
13458                   defaultval=yes
13459               else
13460                   defaultval=no
13461               fi
13462           fi
13463
13464           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13465 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13466           # Check whether --enable-tga was given.
13467 if test "${enable_tga+set}" = set; then
13468   enableval=$enable_tga;
13469                           if test "$enableval" = yes; then
13470                             wx_cv_use_tga='wxUSE_TGA=yes'
13471                           else
13472                             wx_cv_use_tga='wxUSE_TGA=no'
13473                           fi
13474
13475 else
13476
13477                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13478
13479 fi
13480
13481
13482           eval "$wx_cv_use_tga"
13483
13484           if test x"$enablestring" = xdisable; then
13485             if test $wxUSE_TGA = yes; then
13486               result=no
13487             else
13488               result=yes
13489             fi
13490           else
13491             result=$wxUSE_TGA
13492           fi
13493
13494           { echo "$as_me:$LINENO: result: $result" >&5
13495 echo "${ECHO_T}$result" >&6; }
13496
13497
13498           enablestring=
13499           defaultval=$wxUSE_ALL_FEATURES
13500           if test -z "$defaultval"; then
13501               if test x"$enablestring" = xdisable; then
13502                   defaultval=yes
13503               else
13504                   defaultval=no
13505               fi
13506           fi
13507
13508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13509 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13510           # Check whether --enable-iff was given.
13511 if test "${enable_iff+set}" = set; then
13512   enableval=$enable_iff;
13513                           if test "$enableval" = yes; then
13514                             wx_cv_use_iff='wxUSE_IFF=yes'
13515                           else
13516                             wx_cv_use_iff='wxUSE_IFF=no'
13517                           fi
13518
13519 else
13520
13521                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13522
13523 fi
13524
13525
13526           eval "$wx_cv_use_iff"
13527
13528           if test x"$enablestring" = xdisable; then
13529             if test $wxUSE_IFF = yes; then
13530               result=no
13531             else
13532               result=yes
13533             fi
13534           else
13535             result=$wxUSE_IFF
13536           fi
13537
13538           { echo "$as_me:$LINENO: result: $result" >&5
13539 echo "${ECHO_T}$result" >&6; }
13540
13541
13542           enablestring=
13543           defaultval=$wxUSE_ALL_FEATURES
13544           if test -z "$defaultval"; then
13545               if test x"$enablestring" = xdisable; then
13546                   defaultval=yes
13547               else
13548                   defaultval=no
13549               fi
13550           fi
13551
13552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13553 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13554           # Check whether --enable-pnm was given.
13555 if test "${enable_pnm+set}" = set; then
13556   enableval=$enable_pnm;
13557                           if test "$enableval" = yes; then
13558                             wx_cv_use_pnm='wxUSE_PNM=yes'
13559                           else
13560                             wx_cv_use_pnm='wxUSE_PNM=no'
13561                           fi
13562
13563 else
13564
13565                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13566
13567 fi
13568
13569
13570           eval "$wx_cv_use_pnm"
13571
13572           if test x"$enablestring" = xdisable; then
13573             if test $wxUSE_PNM = yes; then
13574               result=no
13575             else
13576               result=yes
13577             fi
13578           else
13579             result=$wxUSE_PNM
13580           fi
13581
13582           { echo "$as_me:$LINENO: result: $result" >&5
13583 echo "${ECHO_T}$result" >&6; }
13584
13585
13586           enablestring=
13587           defaultval=$wxUSE_ALL_FEATURES
13588           if test -z "$defaultval"; then
13589               if test x"$enablestring" = xdisable; then
13590                   defaultval=yes
13591               else
13592                   defaultval=no
13593               fi
13594           fi
13595
13596           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13597 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13598           # Check whether --enable-xpm was given.
13599 if test "${enable_xpm+set}" = set; then
13600   enableval=$enable_xpm;
13601                           if test "$enableval" = yes; then
13602                             wx_cv_use_xpm='wxUSE_XPM=yes'
13603                           else
13604                             wx_cv_use_xpm='wxUSE_XPM=no'
13605                           fi
13606
13607 else
13608
13609                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13610
13611 fi
13612
13613
13614           eval "$wx_cv_use_xpm"
13615
13616           if test x"$enablestring" = xdisable; then
13617             if test $wxUSE_XPM = yes; then
13618               result=no
13619             else
13620               result=yes
13621             fi
13622           else
13623             result=$wxUSE_XPM
13624           fi
13625
13626           { echo "$as_me:$LINENO: result: $result" >&5
13627 echo "${ECHO_T}$result" >&6; }
13628
13629
13630           enablestring=
13631           defaultval=$wxUSE_ALL_FEATURES
13632           if test -z "$defaultval"; then
13633               if test x"$enablestring" = xdisable; then
13634                   defaultval=yes
13635               else
13636                   defaultval=no
13637               fi
13638           fi
13639
13640           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13641 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13642           # Check whether --enable-ico_cur was given.
13643 if test "${enable_ico_cur+set}" = set; then
13644   enableval=$enable_ico_cur;
13645                           if test "$enableval" = yes; then
13646                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13647                           else
13648                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13649                           fi
13650
13651 else
13652
13653                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13654
13655 fi
13656
13657
13658           eval "$wx_cv_use_ico_cur"
13659
13660           if test x"$enablestring" = xdisable; then
13661             if test $wxUSE_ICO_CUR = yes; then
13662               result=no
13663             else
13664               result=yes
13665             fi
13666           else
13667             result=$wxUSE_ICO_CUR
13668           fi
13669
13670           { echo "$as_me:$LINENO: result: $result" >&5
13671 echo "${ECHO_T}$result" >&6; }
13672
13673
13674
13675
13676           enablestring=
13677           defaultval=$wxUSE_ALL_FEATURES
13678           if test -z "$defaultval"; then
13679               if test x"$enablestring" = xdisable; then
13680                   defaultval=yes
13681               else
13682                   defaultval=no
13683               fi
13684           fi
13685
13686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13687 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13688           # Check whether --enable-dccache was given.
13689 if test "${enable_dccache+set}" = set; then
13690   enableval=$enable_dccache;
13691                           if test "$enableval" = yes; then
13692                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13693                           else
13694                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13695                           fi
13696
13697 else
13698
13699                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13700
13701 fi
13702
13703
13704           eval "$wx_cv_use_dccache"
13705
13706           if test x"$enablestring" = xdisable; then
13707             if test $wxUSE_DC_CACHEING = yes; then
13708               result=no
13709             else
13710               result=yes
13711             fi
13712           else
13713             result=$wxUSE_DC_CACHEING
13714           fi
13715
13716           { echo "$as_me:$LINENO: result: $result" >&5
13717 echo "${ECHO_T}$result" >&6; }
13718
13719
13720           enablestring=
13721           defaultval=$wxUSE_ALL_FEATURES
13722           if test -z "$defaultval"; then
13723               if test x"$enablestring" = xdisable; then
13724                   defaultval=yes
13725               else
13726                   defaultval=no
13727               fi
13728           fi
13729
13730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13731 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13732           # Check whether --enable-ps-in-msw was given.
13733 if test "${enable_ps_in_msw+set}" = set; then
13734   enableval=$enable_ps_in_msw;
13735                           if test "$enableval" = yes; then
13736                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13737                           else
13738                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13739                           fi
13740
13741 else
13742
13743                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13744
13745 fi
13746
13747
13748           eval "$wx_cv_use_ps_in_msw"
13749
13750           if test x"$enablestring" = xdisable; then
13751             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13752               result=no
13753             else
13754               result=yes
13755             fi
13756           else
13757             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13758           fi
13759
13760           { echo "$as_me:$LINENO: result: $result" >&5
13761 echo "${ECHO_T}$result" >&6; }
13762
13763
13764           enablestring=
13765           defaultval=$wxUSE_ALL_FEATURES
13766           if test -z "$defaultval"; then
13767               if test x"$enablestring" = xdisable; then
13768                   defaultval=yes
13769               else
13770                   defaultval=no
13771               fi
13772           fi
13773
13774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13775 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13776           # Check whether --enable-ownerdrawn was given.
13777 if test "${enable_ownerdrawn+set}" = set; then
13778   enableval=$enable_ownerdrawn;
13779                           if test "$enableval" = yes; then
13780                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13781                           else
13782                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13783                           fi
13784
13785 else
13786
13787                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13788
13789 fi
13790
13791
13792           eval "$wx_cv_use_ownerdrawn"
13793
13794           if test x"$enablestring" = xdisable; then
13795             if test $wxUSE_OWNER_DRAWN = yes; then
13796               result=no
13797             else
13798               result=yes
13799             fi
13800           else
13801             result=$wxUSE_OWNER_DRAWN
13802           fi
13803
13804           { echo "$as_me:$LINENO: result: $result" >&5
13805 echo "${ECHO_T}$result" >&6; }
13806
13807
13808           enablestring=
13809           defaultval=$wxUSE_ALL_FEATURES
13810           if test -z "$defaultval"; then
13811               if test x"$enablestring" = xdisable; then
13812                   defaultval=yes
13813               else
13814                   defaultval=no
13815               fi
13816           fi
13817
13818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13819 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13820           # Check whether --enable-uxtheme was given.
13821 if test "${enable_uxtheme+set}" = set; then
13822   enableval=$enable_uxtheme;
13823                           if test "$enableval" = yes; then
13824                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13825                           else
13826                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13827                           fi
13828
13829 else
13830
13831                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13832
13833 fi
13834
13835
13836           eval "$wx_cv_use_uxtheme"
13837
13838           if test x"$enablestring" = xdisable; then
13839             if test $wxUSE_UXTHEME = yes; then
13840               result=no
13841             else
13842               result=yes
13843             fi
13844           else
13845             result=$wxUSE_UXTHEME
13846           fi
13847
13848           { echo "$as_me:$LINENO: result: $result" >&5
13849 echo "${ECHO_T}$result" >&6; }
13850
13851
13852           enablestring=
13853           defaultval=$wxUSE_ALL_FEATURES
13854           if test -z "$defaultval"; then
13855               if test x"$enablestring" = xdisable; then
13856                   defaultval=yes
13857               else
13858                   defaultval=no
13859               fi
13860           fi
13861
13862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13863 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13864           # Check whether --enable-wxdib was given.
13865 if test "${enable_wxdib+set}" = set; then
13866   enableval=$enable_wxdib;
13867                           if test "$enableval" = yes; then
13868                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13869                           else
13870                             wx_cv_use_wxdib='wxUSE_DIB=no'
13871                           fi
13872
13873 else
13874
13875                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13876
13877 fi
13878
13879
13880           eval "$wx_cv_use_wxdib"
13881
13882           if test x"$enablestring" = xdisable; then
13883             if test $wxUSE_DIB = yes; then
13884               result=no
13885             else
13886               result=yes
13887             fi
13888           else
13889             result=$wxUSE_DIB
13890           fi
13891
13892           { echo "$as_me:$LINENO: result: $result" >&5
13893 echo "${ECHO_T}$result" >&6; }
13894
13895
13896 if test "$wxUSE_MSW" != 1; then
13897     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13898 fi
13899
13900
13901           enablestring=
13902           defaultval=$wxUSE_ALL_FEATURES
13903           if test -z "$defaultval"; then
13904               if test x"$enablestring" = xdisable; then
13905                   defaultval=yes
13906               else
13907                   defaultval=no
13908               fi
13909           fi
13910
13911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13912 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13913           # Check whether --enable-autoidman was given.
13914 if test "${enable_autoidman+set}" = set; then
13915   enableval=$enable_autoidman;
13916                           if test "$enableval" = yes; then
13917                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13918                           else
13919                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13920                           fi
13921
13922 else
13923
13924                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13925
13926 fi
13927
13928
13929           eval "$wx_cv_use_autoidman"
13930
13931           if test x"$enablestring" = xdisable; then
13932             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13933               result=no
13934             else
13935               result=yes
13936             fi
13937           else
13938             result=$wxUSE_AUTOID_MANAGEMENT
13939           fi
13940
13941           { echo "$as_me:$LINENO: result: $result" >&5
13942 echo "${ECHO_T}$result" >&6; }
13943
13944
13945 fi
13946
13947
13948 cat >confcache <<\_ACEOF
13949 # This file is a shell script that caches the results of configure
13950 # tests run on this system so they can be shared between configure
13951 # scripts and configure runs, see configure's option --config-cache.
13952 # It is not useful on other systems.  If it contains results you don't
13953 # want to keep, you may remove or edit it.
13954 #
13955 # config.status only pays attention to the cache file if you give it
13956 # the --recheck option to rerun configure.
13957 #
13958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13960 # following values.
13961
13962 _ACEOF
13963
13964 # The following way of writing the cache mishandles newlines in values,
13965 # but we know of no workaround that is simple, portable, and efficient.
13966 # So, we kill variables containing newlines.
13967 # Ultrix sh set writes to stderr and can't be redirected directly,
13968 # and sets the high bit in the cache file unless we assign to the vars.
13969 (
13970   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13971     eval ac_val=\$$ac_var
13972     case $ac_val in #(
13973     *${as_nl}*)
13974       case $ac_var in #(
13975       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13976 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13977       esac
13978       case $ac_var in #(
13979       _ | IFS | as_nl) ;; #(
13980       *) $as_unset $ac_var ;;
13981       esac ;;
13982     esac
13983   done
13984
13985   (set) 2>&1 |
13986     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13987     *${as_nl}ac_space=\ *)
13988       # `set' does not quote correctly, so add quotes (double-quote
13989       # substitution turns \\\\ into \\, and sed turns \\ into \).
13990       sed -n \
13991         "s/'/'\\\\''/g;
13992           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13993       ;; #(
13994     *)
13995       # `set' quotes correctly as required by POSIX, so do not add quotes.
13996       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13997       ;;
13998     esac |
13999     sort
14000 ) |
14001   sed '
14002      /^ac_cv_env_/b end
14003      t clear
14004      :clear
14005      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14006      t end
14007      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14008      :end' >>confcache
14009 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14010   if test -w "$cache_file"; then
14011     test "x$cache_file" != "x/dev/null" &&
14012       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14013 echo "$as_me: updating cache $cache_file" >&6;}
14014     cat confcache >$cache_file
14015   else
14016     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14017 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14018   fi
14019 fi
14020 rm -f confcache
14021
14022 CFLAGS=${CFLAGS:=}
14023
14024
14025
14026     ac_ext=c
14027 ac_cpp='$CPP $CPPFLAGS'
14028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14031 if test -n "$ac_tool_prefix"; then
14032   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14036 if test "${ac_cv_prog_CC+set}" = set; then
14037   echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039   if test -n "$CC"; then
14040   ac_cv_prog_CC="$CC" # Let the user override the test.
14041 else
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045   IFS=$as_save_IFS
14046   test -z "$as_dir" && as_dir=.
14047   for ac_exec_ext in '' $ac_executable_extensions; do
14048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14049     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14051     break 2
14052   fi
14053 done
14054 done
14055 IFS=$as_save_IFS
14056
14057 fi
14058 fi
14059 CC=$ac_cv_prog_CC
14060 if test -n "$CC"; then
14061   { echo "$as_me:$LINENO: result: $CC" >&5
14062 echo "${ECHO_T}$CC" >&6; }
14063 else
14064   { echo "$as_me:$LINENO: result: no" >&5
14065 echo "${ECHO_T}no" >&6; }
14066 fi
14067
14068
14069 fi
14070 if test -z "$ac_cv_prog_CC"; then
14071   ac_ct_CC=$CC
14072   # Extract the first word of "gcc", so it can be a program name with args.
14073 set dummy gcc; ac_word=$2
14074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14077   echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079   if test -n "$ac_ct_CC"; then
14080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14081 else
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14084 do
14085   IFS=$as_save_IFS
14086   test -z "$as_dir" && as_dir=.
14087   for ac_exec_ext in '' $ac_executable_extensions; do
14088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14089     ac_cv_prog_ac_ct_CC="gcc"
14090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14091     break 2
14092   fi
14093 done
14094 done
14095 IFS=$as_save_IFS
14096
14097 fi
14098 fi
14099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14100 if test -n "$ac_ct_CC"; then
14101   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14102 echo "${ECHO_T}$ac_ct_CC" >&6; }
14103 else
14104   { echo "$as_me:$LINENO: result: no" >&5
14105 echo "${ECHO_T}no" >&6; }
14106 fi
14107
14108   if test "x$ac_ct_CC" = x; then
14109     CC=""
14110   else
14111     case $cross_compiling:$ac_tool_warned in
14112 yes:)
14113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14114 whose name does not start with the host triplet.  If you think this
14115 configuration is useful to you, please write to autoconf@gnu.org." >&5
14116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14117 whose name does not start with the host triplet.  If you think this
14118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14119 ac_tool_warned=yes ;;
14120 esac
14121     CC=$ac_ct_CC
14122   fi
14123 else
14124   CC="$ac_cv_prog_CC"
14125 fi
14126
14127 if test -z "$CC"; then
14128           if test -n "$ac_tool_prefix"; then
14129     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14130 set dummy ${ac_tool_prefix}cc; ac_word=$2
14131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14133 if test "${ac_cv_prog_CC+set}" = set; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   if test -n "$CC"; then
14137   ac_cv_prog_CC="$CC" # Let the user override the test.
14138 else
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in $PATH
14141 do
14142   IFS=$as_save_IFS
14143   test -z "$as_dir" && as_dir=.
14144   for ac_exec_ext in '' $ac_executable_extensions; do
14145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14146     ac_cv_prog_CC="${ac_tool_prefix}cc"
14147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14148     break 2
14149   fi
14150 done
14151 done
14152 IFS=$as_save_IFS
14153
14154 fi
14155 fi
14156 CC=$ac_cv_prog_CC
14157 if test -n "$CC"; then
14158   { echo "$as_me:$LINENO: result: $CC" >&5
14159 echo "${ECHO_T}$CC" >&6; }
14160 else
14161   { echo "$as_me:$LINENO: result: no" >&5
14162 echo "${ECHO_T}no" >&6; }
14163 fi
14164
14165
14166   fi
14167 fi
14168 if test -z "$CC"; then
14169   # Extract the first word of "cc", so it can be a program name with args.
14170 set dummy cc; ac_word=$2
14171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14173 if test "${ac_cv_prog_CC+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   if test -n "$CC"; then
14177   ac_cv_prog_CC="$CC" # Let the user override the test.
14178 else
14179   ac_prog_rejected=no
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14182 do
14183   IFS=$as_save_IFS
14184   test -z "$as_dir" && as_dir=.
14185   for ac_exec_ext in '' $ac_executable_extensions; do
14186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14187     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14188        ac_prog_rejected=yes
14189        continue
14190      fi
14191     ac_cv_prog_CC="cc"
14192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14193     break 2
14194   fi
14195 done
14196 done
14197 IFS=$as_save_IFS
14198
14199 if test $ac_prog_rejected = yes; then
14200   # We found a bogon in the path, so make sure we never use it.
14201   set dummy $ac_cv_prog_CC
14202   shift
14203   if test $# != 0; then
14204     # We chose a different compiler from the bogus one.
14205     # However, it has the same basename, so the bogon will be chosen
14206     # first if we set CC to just the basename; use the full file name.
14207     shift
14208     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14209   fi
14210 fi
14211 fi
14212 fi
14213 CC=$ac_cv_prog_CC
14214 if test -n "$CC"; then
14215   { echo "$as_me:$LINENO: result: $CC" >&5
14216 echo "${ECHO_T}$CC" >&6; }
14217 else
14218   { echo "$as_me:$LINENO: result: no" >&5
14219 echo "${ECHO_T}no" >&6; }
14220 fi
14221
14222
14223 fi
14224 if test -z "$CC"; then
14225   if test -n "$ac_tool_prefix"; then
14226   for ac_prog in cl.exe
14227   do
14228     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14232 if test "${ac_cv_prog_CC+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   if test -n "$CC"; then
14236   ac_cv_prog_CC="$CC" # Let the user override the test.
14237 else
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14240 do
14241   IFS=$as_save_IFS
14242   test -z "$as_dir" && as_dir=.
14243   for ac_exec_ext in '' $ac_executable_extensions; do
14244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14245     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14247     break 2
14248   fi
14249 done
14250 done
14251 IFS=$as_save_IFS
14252
14253 fi
14254 fi
14255 CC=$ac_cv_prog_CC
14256 if test -n "$CC"; then
14257   { echo "$as_me:$LINENO: result: $CC" >&5
14258 echo "${ECHO_T}$CC" >&6; }
14259 else
14260   { echo "$as_me:$LINENO: result: no" >&5
14261 echo "${ECHO_T}no" >&6; }
14262 fi
14263
14264
14265     test -n "$CC" && break
14266   done
14267 fi
14268 if test -z "$CC"; then
14269   ac_ct_CC=$CC
14270   for ac_prog in cl.exe
14271 do
14272   # Extract the first word of "$ac_prog", so it can be a program name with args.
14273 set dummy $ac_prog; ac_word=$2
14274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   if test -n "$ac_ct_CC"; then
14280   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14281 else
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14284 do
14285   IFS=$as_save_IFS
14286   test -z "$as_dir" && as_dir=.
14287   for ac_exec_ext in '' $ac_executable_extensions; do
14288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14289     ac_cv_prog_ac_ct_CC="$ac_prog"
14290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14291     break 2
14292   fi
14293 done
14294 done
14295 IFS=$as_save_IFS
14296
14297 fi
14298 fi
14299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14300 if test -n "$ac_ct_CC"; then
14301   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14302 echo "${ECHO_T}$ac_ct_CC" >&6; }
14303 else
14304   { echo "$as_me:$LINENO: result: no" >&5
14305 echo "${ECHO_T}no" >&6; }
14306 fi
14307
14308
14309   test -n "$ac_ct_CC" && break
14310 done
14311
14312   if test "x$ac_ct_CC" = x; then
14313     CC=""
14314   else
14315     case $cross_compiling:$ac_tool_warned in
14316 yes:)
14317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14318 whose name does not start with the host triplet.  If you think this
14319 configuration is useful to you, please write to autoconf@gnu.org." >&5
14320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14321 whose name does not start with the host triplet.  If you think this
14322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14323 ac_tool_warned=yes ;;
14324 esac
14325     CC=$ac_ct_CC
14326   fi
14327 fi
14328
14329 fi
14330
14331
14332 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14333 See \`config.log' for more details." >&5
14334 echo "$as_me: error: no acceptable C compiler found in \$PATH
14335 See \`config.log' for more details." >&2;}
14336    { (exit 1); exit 1; }; }
14337
14338 # Provide some information about the compiler.
14339 echo "$as_me:$LINENO: checking for C compiler version" >&5
14340 ac_compiler=`set X $ac_compile; echo $2`
14341 { (ac_try="$ac_compiler --version >&5"
14342 case "(($ac_try" in
14343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344   *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347   (eval "$ac_compiler --version >&5") 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }
14351 { (ac_try="$ac_compiler -v >&5"
14352 case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_compiler -v >&5") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }
14361 { (ac_try="$ac_compiler -V >&5"
14362 case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_compiler -V >&5") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }
14371
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378
14379 int
14380 main ()
14381 {
14382
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 ac_clean_files_save=$ac_clean_files
14388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14389 # Try to create an executable without -o first, disregard a.out.
14390 # It will help us diagnose broken compilers, and finding out an intuition
14391 # of exeext.
14392 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14395 #
14396 # List of possible output files, starting from the most likely.
14397 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14398 # only as a last resort.  b.out is created by i960 compilers.
14399 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14400 #
14401 # The IRIX 6 linker writes into existing files which may not be
14402 # executable, retaining their permissions.  Remove them first so a
14403 # subsequent execution test works.
14404 ac_rmfiles=
14405 for ac_file in $ac_files
14406 do
14407   case $ac_file in
14408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14409     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14410   esac
14411 done
14412 rm -f $ac_rmfiles
14413
14414 if { (ac_try="$ac_link_default"
14415 case "(($ac_try" in
14416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417   *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420   (eval "$ac_link_default") 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); }; then
14424   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14426 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14427 # so that the user can short-circuit this test for compilers unknown to
14428 # Autoconf.
14429 for ac_file in $ac_files ''
14430 do
14431   test -f "$ac_file" || continue
14432   case $ac_file in
14433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14434         ;;
14435     [ab].out )
14436         # We found the default executable, but exeext='' is most
14437         # certainly right.
14438         break;;
14439     *.* )
14440         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14441         then :; else
14442            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14443         fi
14444         # We set ac_cv_exeext here because the later test for it is not
14445         # safe: cross compilers may not add the suffix if given an `-o'
14446         # argument, so we may need to know it at that point already.
14447         # Even if this section looks crufty: it has the advantage of
14448         # actually working.
14449         break;;
14450     * )
14451         break;;
14452   esac
14453 done
14454 test "$ac_cv_exeext" = no && ac_cv_exeext=
14455
14456 else
14457   ac_file=''
14458 fi
14459
14460 { echo "$as_me:$LINENO: result: $ac_file" >&5
14461 echo "${ECHO_T}$ac_file" >&6; }
14462 if test -z "$ac_file"; then
14463   echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14465
14466 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14467 See \`config.log' for more details." >&5
14468 echo "$as_me: error: C compiler cannot create executables
14469 See \`config.log' for more details." >&2;}
14470    { (exit 77); exit 77; }; }
14471 fi
14472
14473 ac_exeext=$ac_cv_exeext
14474
14475 # Check that the compiler produces executables we can run.  If not, either
14476 # the compiler is broken, or we cross compile.
14477 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14480 # If not cross compiling, check that we can run a simple program.
14481 if test "$cross_compiling" != yes; then
14482   if { ac_try='./$ac_file'
14483   { (case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488   (eval "$ac_try") 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492     cross_compiling=no
14493   else
14494     if test "$cross_compiling" = maybe; then
14495         cross_compiling=yes
14496     else
14497         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14498 If you meant to cross compile, use \`--host'.
14499 See \`config.log' for more details." >&5
14500 echo "$as_me: error: cannot run C compiled programs.
14501 If you meant to cross compile, use \`--host'.
14502 See \`config.log' for more details." >&2;}
14503    { (exit 1); exit 1; }; }
14504     fi
14505   fi
14506 fi
14507 { echo "$as_me:$LINENO: result: yes" >&5
14508 echo "${ECHO_T}yes" >&6; }
14509
14510 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14511 ac_clean_files=$ac_clean_files_save
14512 # Check that the compiler produces executables we can run.  If not, either
14513 # the compiler is broken, or we cross compile.
14514 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14515 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14516 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14517 echo "${ECHO_T}$cross_compiling" >&6; }
14518
14519 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14520 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_link") 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; then
14531   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14532 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14533 # work properly (i.e., refer to `conftest.exe'), while it won't with
14534 # `rm'.
14535 for ac_file in conftest.exe conftest conftest.*; do
14536   test -f "$ac_file" || continue
14537   case $ac_file in
14538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14539     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14540           break;;
14541     * ) break;;
14542   esac
14543 done
14544 else
14545   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14546 See \`config.log' for more details." >&5
14547 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14548 See \`config.log' for more details." >&2;}
14549    { (exit 1); exit 1; }; }
14550 fi
14551
14552 rm -f conftest$ac_cv_exeext
14553 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14554 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14555
14556 rm -f conftest.$ac_ext
14557 EXEEXT=$ac_cv_exeext
14558 ac_exeext=$EXEEXT
14559 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14560 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14561 if test "${ac_cv_objext+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570
14571 int
14572 main ()
14573 {
14574
14575   ;
14576   return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest.o conftest.obj
14580 if { (ac_try="$ac_compile"
14581 case "(($ac_try" in
14582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583   *) ac_try_echo=$ac_try;;
14584 esac
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586   (eval "$ac_compile") 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; then
14590   for ac_file in conftest.o conftest.obj conftest.*; do
14591   test -f "$ac_file" || continue;
14592   case $ac_file in
14593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14594     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14595        break;;
14596   esac
14597 done
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14603 See \`config.log' for more details." >&5
14604 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14605 See \`config.log' for more details." >&2;}
14606    { (exit 1); exit 1; }; }
14607 fi
14608
14609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14610 fi
14611 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14612 echo "${ECHO_T}$ac_cv_objext" >&6; }
14613 OBJEXT=$ac_cv_objext
14614 ac_objext=$OBJEXT
14615 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14616 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626
14627 int
14628 main ()
14629 {
14630 #ifndef __GNUC__
14631        choke me
14632 #endif
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   ac_compiler_gnu=yes
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660         ac_compiler_gnu=no
14661 fi
14662
14663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14665
14666 fi
14667 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14669 GCC=`test $ac_compiler_gnu = yes && echo yes`
14670 ac_test_CFLAGS=${CFLAGS+set}
14671 ac_save_CFLAGS=$CFLAGS
14672 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14674 if test "${ac_cv_prog_cc_g+set}" = set; then
14675   echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677   ac_save_c_werror_flag=$ac_c_werror_flag
14678    ac_c_werror_flag=yes
14679    ac_cv_prog_cc_g=no
14680    CFLAGS="-g"
14681    cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687
14688 int
14689 main ()
14690 {
14691
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700   *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703   (eval "$ac_compile") 2>conftest.er1
14704   ac_status=$?
14705   grep -v '^ *+' conftest.er1 >conftest.err
14706   rm -f conftest.er1
14707   cat conftest.err >&5
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); } && {
14710          test -z "$ac_c_werror_flag" ||
14711          test ! -s conftest.err
14712        } && test -s conftest.$ac_objext; then
14713   ac_cv_prog_cc_g=yes
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718         CFLAGS=""
14719       cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725
14726 int
14727 main ()
14728 {
14729
14730   ;
14731   return 0;
14732 }
14733 _ACEOF
14734 rm -f conftest.$ac_objext
14735 if { (ac_try="$ac_compile"
14736 case "(($ac_try" in
14737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738   *) ac_try_echo=$ac_try;;
14739 esac
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741   (eval "$ac_compile") 2>conftest.er1
14742   ac_status=$?
14743   grep -v '^ *+' conftest.er1 >conftest.err
14744   rm -f conftest.er1
14745   cat conftest.err >&5
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); } && {
14748          test -z "$ac_c_werror_flag" ||
14749          test ! -s conftest.err
14750        } && test -s conftest.$ac_objext; then
14751   :
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756         ac_c_werror_flag=$ac_save_c_werror_flag
14757          CFLAGS="-g"
14758          cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764
14765 int
14766 main ()
14767 {
14768
14769   ;
14770   return 0;
14771 }
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (ac_try="$ac_compile"
14775 case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_compile") 2>conftest.er1
14781   ac_status=$?
14782   grep -v '^ *+' conftest.er1 >conftest.err
14783   rm -f conftest.er1
14784   cat conftest.err >&5
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } && {
14787          test -z "$ac_c_werror_flag" ||
14788          test ! -s conftest.err
14789        } && test -s conftest.$ac_objext; then
14790   ac_cv_prog_cc_g=yes
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795
14796 fi
14797
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 fi
14800
14801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802 fi
14803
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805    ac_c_werror_flag=$ac_save_c_werror_flag
14806 fi
14807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14809 if test "$ac_test_CFLAGS" = set; then
14810   CFLAGS=$ac_save_CFLAGS
14811 elif test $ac_cv_prog_cc_g = yes; then
14812   if test "$GCC" = yes; then
14813     CFLAGS="-g -O2"
14814   else
14815     CFLAGS="-g"
14816   fi
14817 else
14818   if test "$GCC" = yes; then
14819     CFLAGS="-O2"
14820   else
14821     CFLAGS=
14822   fi
14823 fi
14824 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14825 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14826 if test "${ac_cv_prog_cc_c89+set}" = set; then
14827   echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829   ac_cv_prog_cc_c89=no
14830 ac_save_CC=$CC
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h.  */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h.  */
14837 #include <stdarg.h>
14838 #include <stdio.h>
14839 #include <sys/types.h>
14840 #include <sys/stat.h>
14841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14842 struct buf { int x; };
14843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14844 static char *e (p, i)
14845      char **p;
14846      int i;
14847 {
14848   return p[i];
14849 }
14850 static char *f (char * (*g) (char **, int), char **p, ...)
14851 {
14852   char *s;
14853   va_list v;
14854   va_start (v,p);
14855   s = g (p, va_arg (v,int));
14856   va_end (v);
14857   return s;
14858 }
14859
14860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14861    function prototypes and stuff, but not '\xHH' hex character constants.
14862    These don't provoke an error unfortunately, instead are silently treated
14863    as 'x'.  The following induces an error, until -std is added to get
14864    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14865    array size at least.  It's necessary to write '\x00'==0 to get something
14866    that's true only with -std.  */
14867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14868
14869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14870    inside strings and character constants.  */
14871 #define FOO(x) 'x'
14872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14873
14874 int test (int i, double x);
14875 struct s1 {int (*f) (int a);};
14876 struct s2 {int (*f) (double a);};
14877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14878 int argc;
14879 char **argv;
14880 int
14881 main ()
14882 {
14883 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14889         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14890 do
14891   CC="$ac_save_CC $ac_arg"
14892   rm -f conftest.$ac_objext
14893 if { (ac_try="$ac_compile"
14894 case "(($ac_try" in
14895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896   *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899   (eval "$ac_compile") 2>conftest.er1
14900   ac_status=$?
14901   grep -v '^ *+' conftest.er1 >conftest.err
14902   rm -f conftest.er1
14903   cat conftest.err >&5
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); } && {
14906          test -z "$ac_c_werror_flag" ||
14907          test ! -s conftest.err
14908        } && test -s conftest.$ac_objext; then
14909   ac_cv_prog_cc_c89=$ac_arg
14910 else
14911   echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914
14915 fi
14916
14917 rm -f core conftest.err conftest.$ac_objext
14918   test "x$ac_cv_prog_cc_c89" != "xno" && break
14919 done
14920 rm -f conftest.$ac_ext
14921 CC=$ac_save_CC
14922
14923 fi
14924 # AC_CACHE_VAL
14925 case "x$ac_cv_prog_cc_c89" in
14926   x)
14927     { echo "$as_me:$LINENO: result: none needed" >&5
14928 echo "${ECHO_T}none needed" >&6; } ;;
14929   xno)
14930     { echo "$as_me:$LINENO: result: unsupported" >&5
14931 echo "${ECHO_T}unsupported" >&6; } ;;
14932   *)
14933     CC="$CC $ac_cv_prog_cc_c89"
14934     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14935 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14936 esac
14937
14938
14939 ac_ext=c
14940 ac_cpp='$CPP $CPPFLAGS'
14941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14944
14945
14946
14947
14948     ac_ext=c
14949 ac_cpp='$CPP $CPPFLAGS'
14950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14953
14954     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14955 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14956 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959   cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h.  */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h.  */
14965
14966 int
14967 main ()
14968 {
14969
14970              #ifndef __INTEL_COMPILER
14971                 choke me
14972              #endif
14973
14974   ;
14975   return 0;
14976 }
14977 _ACEOF
14978 rm -f conftest.$ac_objext
14979 if { (ac_try="$ac_compile"
14980 case "(($ac_try" in
14981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982   *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985   (eval "$ac_compile") 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } && {
14992          test -z "$ac_c_werror_flag" ||
14993          test ! -s conftest.err
14994        } && test -s conftest.$ac_objext; then
14995   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000         bakefile_cv_c_compiler___INTEL_COMPILER=no
15001
15002 fi
15003
15004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15005
15006
15007 fi
15008 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15009 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15010     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15011         :; INTELCC=yes
15012     else
15013         :;
15014     fi
15015     ac_ext=c
15016 ac_cpp='$CPP $CPPFLAGS'
15017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15020
15021
15022
15023
15024         if test "$INTELCC" = "yes"; then
15025
15026
15027     ac_ext=c
15028 ac_cpp='$CPP $CPPFLAGS'
15029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15032
15033     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15034 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15035 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044
15045 int
15046 main ()
15047 {
15048
15049              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15050                 choke me
15051              #endif
15052
15053   ;
15054   return 0;
15055 }
15056 _ACEOF
15057 rm -f conftest.$ac_objext
15058 if { (ac_try="$ac_compile"
15059 case "(($ac_try" in
15060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061   *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064   (eval "$ac_compile") 2>conftest.er1
15065   ac_status=$?
15066   grep -v '^ *+' conftest.er1 >conftest.err
15067   rm -f conftest.er1
15068   cat conftest.err >&5
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } && {
15071          test -z "$ac_c_werror_flag" ||
15072          test ! -s conftest.err
15073        } && test -s conftest.$ac_objext; then
15074   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15075 else
15076   echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15080
15081 fi
15082
15083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084
15085
15086 fi
15087 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15088 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15089     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15090         :; INTELCC8=yes
15091     else
15092         :;
15093     fi
15094     ac_ext=c
15095 ac_cpp='$CPP $CPPFLAGS'
15096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15099
15100
15101
15102
15103
15104     ac_ext=c
15105 ac_cpp='$CPP $CPPFLAGS'
15106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15109
15110     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15111 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15112 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115   cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121
15122 int
15123 main ()
15124 {
15125
15126              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15127                 choke me
15128              #endif
15129
15130   ;
15131   return 0;
15132 }
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_compile") 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } && {
15148          test -z "$ac_c_werror_flag" ||
15149          test ! -s conftest.err
15150        } && test -s conftest.$ac_objext; then
15151   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15157
15158 fi
15159
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161
15162
15163 fi
15164 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15165 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15166     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15167         :; INTELCC10=yes
15168     else
15169         :;
15170     fi
15171     ac_ext=c
15172 ac_cpp='$CPP $CPPFLAGS'
15173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15176
15177
15178
15179     fi
15180
15181         if test "x$GCC" != "xyes"; then
15182         if test "xCC" = "xC"; then
15183             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15184 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15185 if test "${bakefile_cv_c_exto+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h.  */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h.  */
15194
15195 int
15196 main ()
15197 {
15198
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest.$ac_ext.o
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205   (eval $ac_compile) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; then
15209   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15210     case $ac_file in
15211         conftest.$ac_ext.o)
15212             bakefile_cv_c_exto="-ext o"
15213             ;;
15214         *)
15215             ;;
15216     esac
15217 done
15218 else
15219   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15220 See \`config.log' for more details." >&5
15221 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15222 See \`config.log' for more details." >&2;}
15223    { (exit 1); exit 1; }; }
15224
15225 fi
15226
15227 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15228
15229 fi
15230 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15231 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15232 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15233     if test "c" = "c"; then
15234         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15235     fi
15236     if test "c" = "cxx"; then
15237         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15238     fi
15239 fi
15240
15241             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15242                 unset ac_cv_prog_cc_g
15243                 ac_test_CFLAGS=${CFLAGS+set}
15244 ac_save_CFLAGS=$CFLAGS
15245 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15246 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15247 if test "${ac_cv_prog_cc_g+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   ac_save_c_werror_flag=$ac_c_werror_flag
15251    ac_c_werror_flag=yes
15252    ac_cv_prog_cc_g=no
15253    CFLAGS="-g"
15254    cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h.  */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h.  */
15260
15261 int
15262 main ()
15263 {
15264
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (ac_try="$ac_compile"
15271 case "(($ac_try" in
15272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273   *) ac_try_echo=$ac_try;;
15274 esac
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276   (eval "$ac_compile") 2>conftest.er1
15277   ac_status=$?
15278   grep -v '^ *+' conftest.er1 >conftest.err
15279   rm -f conftest.er1
15280   cat conftest.err >&5
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); } && {
15283          test -z "$ac_c_werror_flag" ||
15284          test ! -s conftest.err
15285        } && test -s conftest.$ac_objext; then
15286   ac_cv_prog_cc_g=yes
15287 else
15288   echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291         CFLAGS=""
15292       cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298
15299 int
15300 main ()
15301 {
15302
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest.$ac_objext
15308 if { (ac_try="$ac_compile"
15309 case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_compile") 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } && {
15321          test -z "$ac_c_werror_flag" ||
15322          test ! -s conftest.err
15323        } && test -s conftest.$ac_objext; then
15324   :
15325 else
15326   echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329         ac_c_werror_flag=$ac_save_c_werror_flag
15330          CFLAGS="-g"
15331          cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337
15338 int
15339 main ()
15340 {
15341
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 rm -f conftest.$ac_objext
15347 if { (ac_try="$ac_compile"
15348 case "(($ac_try" in
15349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350   *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353   (eval "$ac_compile") 2>conftest.er1
15354   ac_status=$?
15355   grep -v '^ *+' conftest.er1 >conftest.err
15356   rm -f conftest.er1
15357   cat conftest.err >&5
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); } && {
15360          test -z "$ac_c_werror_flag" ||
15361          test ! -s conftest.err
15362        } && test -s conftest.$ac_objext; then
15363   ac_cv_prog_cc_g=yes
15364 else
15365   echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15367
15368
15369 fi
15370
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 fi
15373
15374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 fi
15376
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378    ac_c_werror_flag=$ac_save_c_werror_flag
15379 fi
15380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15381 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15382 if test "$ac_test_CFLAGS" = set; then
15383   CFLAGS=$ac_save_CFLAGS
15384 elif test $ac_cv_prog_cc_g = yes; then
15385   if test "$GCC" = yes; then
15386     CFLAGS="-g -O2"
15387   else
15388     CFLAGS="-g"
15389   fi
15390 else
15391   if test "$GCC" = yes; then
15392     CFLAGS="-O2"
15393   else
15394     CFLAGS=
15395   fi
15396 fi
15397             fi
15398         fi
15399
15400                         case `uname -s` in
15401             AIX*)
15402
15403
15404     ac_ext=c
15405 ac_cpp='$CPP $CPPFLAGS'
15406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15409
15410     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15411 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15412 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15413   echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415   cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421
15422 int
15423 main ()
15424 {
15425
15426              #ifndef __xlC__
15427                 choke me
15428              #endif
15429
15430   ;
15431   return 0;
15432 }
15433 _ACEOF
15434 rm -f conftest.$ac_objext
15435 if { (ac_try="$ac_compile"
15436 case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441   (eval "$ac_compile") 2>conftest.er1
15442   ac_status=$?
15443   grep -v '^ *+' conftest.er1 >conftest.err
15444   rm -f conftest.er1
15445   cat conftest.err >&5
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); } && {
15448          test -z "$ac_c_werror_flag" ||
15449          test ! -s conftest.err
15450        } && test -s conftest.$ac_objext; then
15451   bakefile_cv_c_compiler___xlC__=yes
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456         bakefile_cv_c_compiler___xlC__=no
15457
15458 fi
15459
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461
15462
15463 fi
15464 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15465 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15466     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15467         :; XLCC=yes
15468     else
15469         :;
15470     fi
15471     ac_ext=c
15472 ac_cpp='$CPP $CPPFLAGS'
15473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15476
15477
15478
15479                 ;;
15480
15481             Darwin)
15482
15483
15484     ac_ext=c
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15489
15490     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15491 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15492 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501
15502 int
15503 main ()
15504 {
15505
15506              #ifndef __MWERKS__
15507                 choke me
15508              #endif
15509
15510   ;
15511   return 0;
15512 }
15513 _ACEOF
15514 rm -f conftest.$ac_objext
15515 if { (ac_try="$ac_compile"
15516 case "(($ac_try" in
15517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518   *) ac_try_echo=$ac_try;;
15519 esac
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521   (eval "$ac_compile") 2>conftest.er1
15522   ac_status=$?
15523   grep -v '^ *+' conftest.er1 >conftest.err
15524   rm -f conftest.er1
15525   cat conftest.err >&5
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } && {
15528          test -z "$ac_c_werror_flag" ||
15529          test ! -s conftest.err
15530        } && test -s conftest.$ac_objext; then
15531   bakefile_cv_c_compiler___MWERKS__=yes
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536         bakefile_cv_c_compiler___MWERKS__=no
15537
15538 fi
15539
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541
15542
15543 fi
15544 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15545 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15546     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15547         :; MWCC=yes
15548     else
15549         :;
15550     fi
15551     ac_ext=c
15552 ac_cpp='$CPP $CPPFLAGS'
15553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15556
15557
15558
15559                 if test "$MWCC" != "yes"; then
15560
15561
15562     ac_ext=c
15563 ac_cpp='$CPP $CPPFLAGS'
15564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15567
15568     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15569 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15570 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15571   echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15573   cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579
15580 int
15581 main ()
15582 {
15583
15584              #ifndef __xlC__
15585                 choke me
15586              #endif
15587
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest.$ac_objext
15593 if { (ac_try="$ac_compile"
15594 case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_compile") 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } && {
15606          test -z "$ac_c_werror_flag" ||
15607          test ! -s conftest.err
15608        } && test -s conftest.$ac_objext; then
15609   bakefile_cv_c_compiler___xlC__=yes
15610 else
15611   echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15613
15614         bakefile_cv_c_compiler___xlC__=no
15615
15616 fi
15617
15618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619
15620
15621 fi
15622 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15623 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15624     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15625         :; XLCC=yes
15626     else
15627         :;
15628     fi
15629     ac_ext=c
15630 ac_cpp='$CPP $CPPFLAGS'
15631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15634
15635
15636
15637                 fi
15638                 ;;
15639
15640             IRIX*)
15641
15642
15643     ac_ext=c
15644 ac_cpp='$CPP $CPPFLAGS'
15645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15648
15649     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15650 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15651 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654   cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660
15661 int
15662 main ()
15663 {
15664
15665              #ifndef _SGI_COMPILER_VERSION
15666                 choke me
15667              #endif
15668
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (ac_try="$ac_compile"
15675 case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_compile") 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } && {
15687          test -z "$ac_c_werror_flag" ||
15688          test ! -s conftest.err
15689        } && test -s conftest.$ac_objext; then
15690   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15696
15697 fi
15698
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700
15701
15702 fi
15703 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15704 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15705     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15706         :; SGICC=yes
15707     else
15708         :;
15709     fi
15710     ac_ext=c
15711 ac_cpp='$CPP $CPPFLAGS'
15712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15715
15716
15717
15718                 ;;
15719
15720             Linux*)
15721                                                 if test "$INTELCC" != "yes"; then
15722
15723
15724     ac_ext=c
15725 ac_cpp='$CPP $CPPFLAGS'
15726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15729
15730     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15731 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15732 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741
15742 int
15743 main ()
15744 {
15745
15746              #ifndef __SUNPRO_C
15747                 choke me
15748              #endif
15749
15750   ;
15751   return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (ac_try="$ac_compile"
15756 case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_compile") 2>conftest.er1
15762   ac_status=$?
15763   grep -v '^ *+' conftest.er1 >conftest.err
15764   rm -f conftest.er1
15765   cat conftest.err >&5
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); } && {
15768          test -z "$ac_c_werror_flag" ||
15769          test ! -s conftest.err
15770        } && test -s conftest.$ac_objext; then
15771   bakefile_cv_c_compiler___SUNPRO_C=yes
15772 else
15773   echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776         bakefile_cv_c_compiler___SUNPRO_C=no
15777
15778 fi
15779
15780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781
15782
15783 fi
15784 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15785 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15786     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15787         :; SUNCC=yes
15788     else
15789         :;
15790     fi
15791     ac_ext=c
15792 ac_cpp='$CPP $CPPFLAGS'
15793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15796
15797
15798
15799                 fi
15800                 ;;
15801
15802             HP-UX*)
15803
15804
15805     ac_ext=c
15806 ac_cpp='$CPP $CPPFLAGS'
15807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15810
15811     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15812 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15813 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
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
15823 int
15824 main ()
15825 {
15826
15827              #ifndef __HP_cc
15828                 choke me
15829              #endif
15830
15831   ;
15832   return 0;
15833 }
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839   *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842   (eval "$ac_compile") 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } && {
15849          test -z "$ac_c_werror_flag" ||
15850          test ! -s conftest.err
15851        } && test -s conftest.$ac_objext; then
15852   bakefile_cv_c_compiler___HP_cc=yes
15853 else
15854   echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857         bakefile_cv_c_compiler___HP_cc=no
15858
15859 fi
15860
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862
15863
15864 fi
15865 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15866 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15867     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15868         :; HPCC=yes
15869     else
15870         :;
15871     fi
15872     ac_ext=c
15873 ac_cpp='$CPP $CPPFLAGS'
15874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15877
15878
15879
15880                 ;;
15881
15882             OSF1)
15883
15884
15885     ac_ext=c
15886 ac_cpp='$CPP $CPPFLAGS'
15887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15890
15891     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15892 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15893 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15894   echo $ECHO_N "(cached) $ECHO_C" >&6
15895 else
15896   cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h.  */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h.  */
15902
15903 int
15904 main ()
15905 {
15906
15907              #ifndef __DECC
15908                 choke me
15909              #endif
15910
15911   ;
15912   return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest.$ac_objext
15916 if { (ac_try="$ac_compile"
15917 case "(($ac_try" in
15918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919   *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922   (eval "$ac_compile") 2>conftest.er1
15923   ac_status=$?
15924   grep -v '^ *+' conftest.er1 >conftest.err
15925   rm -f conftest.er1
15926   cat conftest.err >&5
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } && {
15929          test -z "$ac_c_werror_flag" ||
15930          test ! -s conftest.err
15931        } && test -s conftest.$ac_objext; then
15932   bakefile_cv_c_compiler___DECC=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937         bakefile_cv_c_compiler___DECC=no
15938
15939 fi
15940
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942
15943
15944 fi
15945 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15946 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15947     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15948         :; COMPAQCC=yes
15949     else
15950         :;
15951     fi
15952     ac_ext=c
15953 ac_cpp='$CPP $CPPFLAGS'
15954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15957
15958
15959
15960                 ;;
15961
15962             SunOS)
15963
15964
15965     ac_ext=c
15966 ac_cpp='$CPP $CPPFLAGS'
15967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15970
15971     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15972 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15973 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15974   echo $ECHO_N "(cached) $ECHO_C" >&6
15975 else
15976   cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h.  */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h.  */
15982
15983 int
15984 main ()
15985 {
15986
15987              #ifndef __SUNPRO_C
15988                 choke me
15989              #endif
15990
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext
15996 if { (ac_try="$ac_compile"
15997 case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002   (eval "$ac_compile") 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } && {
16009          test -z "$ac_c_werror_flag" ||
16010          test ! -s conftest.err
16011        } && test -s conftest.$ac_objext; then
16012   bakefile_cv_c_compiler___SUNPRO_C=yes
16013 else
16014   echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017         bakefile_cv_c_compiler___SUNPRO_C=no
16018
16019 fi
16020
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022
16023
16024 fi
16025 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16026 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16027     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16028         :; SUNCC=yes
16029     else
16030         :;
16031     fi
16032     ac_ext=c
16033 ac_cpp='$CPP $CPPFLAGS'
16034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16037
16038
16039
16040                 ;;
16041         esac
16042     fi
16043
16044
16045
16046 ac_ext=c
16047 ac_cpp='$CPP $CPPFLAGS'
16048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16051 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16053 # On Suns, sometimes $CPP names a directory.
16054 if test -n "$CPP" && test -d "$CPP"; then
16055   CPP=
16056 fi
16057 if test -z "$CPP"; then
16058   if test "${ac_cv_prog_CPP+set}" = set; then
16059   echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061       # Double quotes because CPP needs to be expanded
16062     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16063     do
16064       ac_preproc_ok=false
16065 for ac_c_preproc_warn_flag in '' yes
16066 do
16067   # Use a header file that comes with gcc, so configuring glibc
16068   # with a fresh cross-compiler works.
16069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16070   # <limits.h> exists even on freestanding compilers.
16071   # On the NeXT, cc -E runs the code through the compiler's parser,
16072   # not just through cpp. "Syntax error" is here to catch this case.
16073   cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 #ifdef __STDC__
16080 # include <limits.h>
16081 #else
16082 # include <assert.h>
16083 #endif
16084                      Syntax error
16085 _ACEOF
16086 if { (ac_try="$ac_cpp conftest.$ac_ext"
16087 case "(($ac_try" in
16088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089   *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16093   ac_status=$?
16094   grep -v '^ *+' conftest.er1 >conftest.err
16095   rm -f conftest.er1
16096   cat conftest.err >&5
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } >/dev/null && {
16099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16100          test ! -s conftest.err
16101        }; then
16102   :
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107   # Broken: fails on valid input.
16108 continue
16109 fi
16110
16111 rm -f conftest.err conftest.$ac_ext
16112
16113   # OK, works on sane cases.  Now check whether nonexistent headers
16114   # can be detected and how.
16115   cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121 #include <ac_nonexistent.h>
16122 _ACEOF
16123 if { (ac_try="$ac_cpp conftest.$ac_ext"
16124 case "(($ac_try" in
16125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126   *) ac_try_echo=$ac_try;;
16127 esac
16128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16130   ac_status=$?
16131   grep -v '^ *+' conftest.er1 >conftest.err
16132   rm -f conftest.er1
16133   cat conftest.err >&5
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); } >/dev/null && {
16136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16137          test ! -s conftest.err
16138        }; then
16139   # Broken: success on invalid input.
16140 continue
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145   # Passes both tests.
16146 ac_preproc_ok=:
16147 break
16148 fi
16149
16150 rm -f conftest.err conftest.$ac_ext
16151
16152 done
16153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16154 rm -f conftest.err conftest.$ac_ext
16155 if $ac_preproc_ok; then
16156   break
16157 fi
16158
16159     done
16160     ac_cv_prog_CPP=$CPP
16161
16162 fi
16163   CPP=$ac_cv_prog_CPP
16164 else
16165   ac_cv_prog_CPP=$CPP
16166 fi
16167 { echo "$as_me:$LINENO: result: $CPP" >&5
16168 echo "${ECHO_T}$CPP" >&6; }
16169 ac_preproc_ok=false
16170 for ac_c_preproc_warn_flag in '' yes
16171 do
16172   # Use a header file that comes with gcc, so configuring glibc
16173   # with a fresh cross-compiler works.
16174   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16175   # <limits.h> exists even on freestanding compilers.
16176   # On the NeXT, cc -E runs the code through the compiler's parser,
16177   # not just through cpp. "Syntax error" is here to catch this case.
16178   cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h.  */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h.  */
16184 #ifdef __STDC__
16185 # include <limits.h>
16186 #else
16187 # include <assert.h>
16188 #endif
16189                      Syntax error
16190 _ACEOF
16191 if { (ac_try="$ac_cpp conftest.$ac_ext"
16192 case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16198   ac_status=$?
16199   grep -v '^ *+' conftest.er1 >conftest.err
16200   rm -f conftest.er1
16201   cat conftest.err >&5
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); } >/dev/null && {
16204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16205          test ! -s conftest.err
16206        }; then
16207   :
16208 else
16209   echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16211
16212   # Broken: fails on valid input.
16213 continue
16214 fi
16215
16216 rm -f conftest.err conftest.$ac_ext
16217
16218   # OK, works on sane cases.  Now check whether nonexistent headers
16219   # can be detected and how.
16220   cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 #include <ac_nonexistent.h>
16227 _ACEOF
16228 if { (ac_try="$ac_cpp conftest.$ac_ext"
16229 case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16235   ac_status=$?
16236   grep -v '^ *+' conftest.er1 >conftest.err
16237   rm -f conftest.er1
16238   cat conftest.err >&5
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } >/dev/null && {
16241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16242          test ! -s conftest.err
16243        }; then
16244   # Broken: success on invalid input.
16245 continue
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250   # Passes both tests.
16251 ac_preproc_ok=:
16252 break
16253 fi
16254
16255 rm -f conftest.err conftest.$ac_ext
16256
16257 done
16258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16259 rm -f conftest.err conftest.$ac_ext
16260 if $ac_preproc_ok; then
16261   :
16262 else
16263   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16264 See \`config.log' for more details." >&5
16265 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16266 See \`config.log' for more details." >&2;}
16267    { (exit 1); exit 1; }; }
16268 fi
16269
16270 ac_ext=c
16271 ac_cpp='$CPP $CPPFLAGS'
16272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16275
16276
16277 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16278 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16279 if test "${ac_cv_path_GREP+set}" = set; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282   # Extract the first word of "grep ggrep" to use in msg output
16283 if test -z "$GREP"; then
16284 set dummy grep ggrep; ac_prog_name=$2
16285 if test "${ac_cv_path_GREP+set}" = set; then
16286   echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288   ac_path_GREP_found=false
16289 # Loop through the user's path and test for each of PROGNAME-LIST
16290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16292 do
16293   IFS=$as_save_IFS
16294   test -z "$as_dir" && as_dir=.
16295   for ac_prog in grep ggrep; do
16296   for ac_exec_ext in '' $ac_executable_extensions; do
16297     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16298     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16299     # Check for GNU ac_path_GREP and select it if it is found.
16300   # Check for GNU $ac_path_GREP
16301 case `"$ac_path_GREP" --version 2>&1` in
16302 *GNU*)
16303   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16304 *)
16305   ac_count=0
16306   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16307   while :
16308   do
16309     cat "conftest.in" "conftest.in" >"conftest.tmp"
16310     mv "conftest.tmp" "conftest.in"
16311     cp "conftest.in" "conftest.nl"
16312     echo 'GREP' >> "conftest.nl"
16313     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16315     ac_count=`expr $ac_count + 1`
16316     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16317       # Best one so far, save it but keep looking for a better one
16318       ac_cv_path_GREP="$ac_path_GREP"
16319       ac_path_GREP_max=$ac_count
16320     fi
16321     # 10*(2^10) chars as input seems more than enough
16322     test $ac_count -gt 10 && break
16323   done
16324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16325 esac
16326
16327
16328     $ac_path_GREP_found && break 3
16329   done
16330 done
16331
16332 done
16333 IFS=$as_save_IFS
16334
16335
16336 fi
16337
16338 GREP="$ac_cv_path_GREP"
16339 if test -z "$GREP"; then
16340   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16341 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16342    { (exit 1); exit 1; }; }
16343 fi
16344
16345 else
16346   ac_cv_path_GREP=$GREP
16347 fi
16348
16349
16350 fi
16351 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16352 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16353  GREP="$ac_cv_path_GREP"
16354
16355
16356 { echo "$as_me:$LINENO: checking for egrep" >&5
16357 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16358 if test "${ac_cv_path_EGREP+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16362    then ac_cv_path_EGREP="$GREP -E"
16363    else
16364      # Extract the first word of "egrep" to use in msg output
16365 if test -z "$EGREP"; then
16366 set dummy egrep; ac_prog_name=$2
16367 if test "${ac_cv_path_EGREP+set}" = set; then
16368   echo $ECHO_N "(cached) $ECHO_C" >&6
16369 else
16370   ac_path_EGREP_found=false
16371 # Loop through the user's path and test for each of PROGNAME-LIST
16372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16374 do
16375   IFS=$as_save_IFS
16376   test -z "$as_dir" && as_dir=.
16377   for ac_prog in egrep; do
16378   for ac_exec_ext in '' $ac_executable_extensions; do
16379     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16380     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16381     # Check for GNU ac_path_EGREP and select it if it is found.
16382   # Check for GNU $ac_path_EGREP
16383 case `"$ac_path_EGREP" --version 2>&1` in
16384 *GNU*)
16385   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16386 *)
16387   ac_count=0
16388   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16389   while :
16390   do
16391     cat "conftest.in" "conftest.in" >"conftest.tmp"
16392     mv "conftest.tmp" "conftest.in"
16393     cp "conftest.in" "conftest.nl"
16394     echo 'EGREP' >> "conftest.nl"
16395     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16396     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16397     ac_count=`expr $ac_count + 1`
16398     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16399       # Best one so far, save it but keep looking for a better one
16400       ac_cv_path_EGREP="$ac_path_EGREP"
16401       ac_path_EGREP_max=$ac_count
16402     fi
16403     # 10*(2^10) chars as input seems more than enough
16404     test $ac_count -gt 10 && break
16405   done
16406   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16407 esac
16408
16409
16410     $ac_path_EGREP_found && break 3
16411   done
16412 done
16413
16414 done
16415 IFS=$as_save_IFS
16416
16417
16418 fi
16419
16420 EGREP="$ac_cv_path_EGREP"
16421 if test -z "$EGREP"; then
16422   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16423 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16424    { (exit 1); exit 1; }; }
16425 fi
16426
16427 else
16428   ac_cv_path_EGREP=$EGREP
16429 fi
16430
16431
16432    fi
16433 fi
16434 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16435 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16436  EGREP="$ac_cv_path_EGREP"
16437
16438
16439 if test $ac_cv_c_compiler_gnu = yes; then
16440     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16441 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16442 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445     ac_pattern="Autoconf.*'x'"
16446   cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452 #include <sgtty.h>
16453 Autoconf TIOCGETP
16454 _ACEOF
16455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16456   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16457   ac_cv_prog_gcc_traditional=yes
16458 else
16459   ac_cv_prog_gcc_traditional=no
16460 fi
16461 rm -f conftest*
16462
16463
16464   if test $ac_cv_prog_gcc_traditional = no; then
16465     cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h.  */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h.  */
16471 #include <termio.h>
16472 Autoconf TCGETA
16473 _ACEOF
16474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16475   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16476   ac_cv_prog_gcc_traditional=yes
16477 fi
16478 rm -f conftest*
16479
16480   fi
16481 fi
16482 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16483 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16484   if test $ac_cv_prog_gcc_traditional = yes; then
16485     CC="$CC -traditional"
16486   fi
16487 fi
16488
16489
16490 CXXFLAGS=${CXXFLAGS:=}
16491
16492
16493
16494     ac_ext=cpp
16495 ac_cpp='$CXXCPP $CPPFLAGS'
16496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16499 if test -z "$CXX"; then
16500   if test -n "$CCC"; then
16501     CXX=$CCC
16502   else
16503     if test -n "$ac_tool_prefix"; then
16504   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16505   do
16506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16510 if test "${ac_cv_prog_CXX+set}" = set; then
16511   echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513   if test -n "$CXX"; then
16514   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16515 else
16516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16517 for as_dir in $PATH
16518 do
16519   IFS=$as_save_IFS
16520   test -z "$as_dir" && as_dir=.
16521   for ac_exec_ext in '' $ac_executable_extensions; do
16522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16523     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16525     break 2
16526   fi
16527 done
16528 done
16529 IFS=$as_save_IFS
16530
16531 fi
16532 fi
16533 CXX=$ac_cv_prog_CXX
16534 if test -n "$CXX"; then
16535   { echo "$as_me:$LINENO: result: $CXX" >&5
16536 echo "${ECHO_T}$CXX" >&6; }
16537 else
16538   { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16540 fi
16541
16542
16543     test -n "$CXX" && break
16544   done
16545 fi
16546 if test -z "$CXX"; then
16547   ac_ct_CXX=$CXX
16548   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16549 do
16550   # Extract the first word of "$ac_prog", so it can be a program name with args.
16551 set dummy $ac_prog; ac_word=$2
16552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16554 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   if test -n "$ac_ct_CXX"; then
16558   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16559 else
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16562 do
16563   IFS=$as_save_IFS
16564   test -z "$as_dir" && as_dir=.
16565   for ac_exec_ext in '' $ac_executable_extensions; do
16566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16567     ac_cv_prog_ac_ct_CXX="$ac_prog"
16568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16569     break 2
16570   fi
16571 done
16572 done
16573 IFS=$as_save_IFS
16574
16575 fi
16576 fi
16577 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16578 if test -n "$ac_ct_CXX"; then
16579   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16580 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16581 else
16582   { echo "$as_me:$LINENO: result: no" >&5
16583 echo "${ECHO_T}no" >&6; }
16584 fi
16585
16586
16587   test -n "$ac_ct_CXX" && break
16588 done
16589
16590   if test "x$ac_ct_CXX" = x; then
16591     CXX="g++"
16592   else
16593     case $cross_compiling:$ac_tool_warned in
16594 yes:)
16595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16596 whose name does not start with the host triplet.  If you think this
16597 configuration is useful to you, please write to autoconf@gnu.org." >&5
16598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16599 whose name does not start with the host triplet.  If you think this
16600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16601 ac_tool_warned=yes ;;
16602 esac
16603     CXX=$ac_ct_CXX
16604   fi
16605 fi
16606
16607   fi
16608 fi
16609 # Provide some information about the compiler.
16610 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16611 ac_compiler=`set X $ac_compile; echo $2`
16612 { (ac_try="$ac_compiler --version >&5"
16613 case "(($ac_try" in
16614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615   *) ac_try_echo=$ac_try;;
16616 esac
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618   (eval "$ac_compiler --version >&5") 2>&5
16619   ac_status=$?
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); }
16622 { (ac_try="$ac_compiler -v >&5"
16623 case "(($ac_try" in
16624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625   *) ac_try_echo=$ac_try;;
16626 esac
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628   (eval "$ac_compiler -v >&5") 2>&5
16629   ac_status=$?
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); }
16632 { (ac_try="$ac_compiler -V >&5"
16633 case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_compiler -V >&5") 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }
16642
16643 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16644 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16645 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 int
16656 main ()
16657 {
16658 #ifndef __GNUC__
16659        choke me
16660 #endif
16661
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 rm -f conftest.$ac_objext
16667 if { (ac_try="$ac_compile"
16668 case "(($ac_try" in
16669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670   *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673   (eval "$ac_compile") 2>conftest.er1
16674   ac_status=$?
16675   grep -v '^ *+' conftest.er1 >conftest.err
16676   rm -f conftest.er1
16677   cat conftest.err >&5
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } && {
16680          test -z "$ac_cxx_werror_flag" ||
16681          test ! -s conftest.err
16682        } && test -s conftest.$ac_objext; then
16683   ac_compiler_gnu=yes
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688         ac_compiler_gnu=no
16689 fi
16690
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16693
16694 fi
16695 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16696 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16697 GXX=`test $ac_compiler_gnu = yes && echo yes`
16698 ac_test_CXXFLAGS=${CXXFLAGS+set}
16699 ac_save_CXXFLAGS=$CXXFLAGS
16700 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16701 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16702 if test "${ac_cv_prog_cxx_g+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16706    ac_cxx_werror_flag=yes
16707    ac_cv_prog_cxx_g=no
16708    CXXFLAGS="-g"
16709    cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715
16716 int
16717 main ()
16718 {
16719
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext
16725 if { (ac_try="$ac_compile"
16726 case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_compile") 2>conftest.er1
16732   ac_status=$?
16733   grep -v '^ *+' conftest.er1 >conftest.err
16734   rm -f conftest.er1
16735   cat conftest.err >&5
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } && {
16738          test -z "$ac_cxx_werror_flag" ||
16739          test ! -s conftest.err
16740        } && test -s conftest.$ac_objext; then
16741   ac_cv_prog_cxx_g=yes
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746         CXXFLAGS=""
16747       cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h.  */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h.  */
16753
16754 int
16755 main ()
16756 {
16757
16758   ;
16759   return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext
16763 if { (ac_try="$ac_compile"
16764 case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769   (eval "$ac_compile") 2>conftest.er1
16770   ac_status=$?
16771   grep -v '^ *+' conftest.er1 >conftest.err
16772   rm -f conftest.er1
16773   cat conftest.err >&5
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); } && {
16776          test -z "$ac_cxx_werror_flag" ||
16777          test ! -s conftest.err
16778        } && test -s conftest.$ac_objext; then
16779   :
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16785          CXXFLAGS="-g"
16786          cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792
16793 int
16794 main ()
16795 {
16796
16797   ;
16798   return 0;
16799 }
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808   (eval "$ac_compile") 2>conftest.er1
16809   ac_status=$?
16810   grep -v '^ *+' conftest.er1 >conftest.err
16811   rm -f conftest.er1
16812   cat conftest.err >&5
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); } && {
16815          test -z "$ac_cxx_werror_flag" ||
16816          test ! -s conftest.err
16817        } && test -s conftest.$ac_objext; then
16818   ac_cv_prog_cxx_g=yes
16819 else
16820   echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823
16824 fi
16825
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16827 fi
16828
16829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830 fi
16831
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16834 fi
16835 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16836 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16837 if test "$ac_test_CXXFLAGS" = set; then
16838   CXXFLAGS=$ac_save_CXXFLAGS
16839 elif test $ac_cv_prog_cxx_g = yes; then
16840   if test "$GXX" = yes; then
16841     CXXFLAGS="-g -O2"
16842   else
16843     CXXFLAGS="-g"
16844   fi
16845 else
16846   if test "$GXX" = yes; then
16847     CXXFLAGS="-O2"
16848   else
16849     CXXFLAGS=
16850   fi
16851 fi
16852 ac_ext=c
16853 ac_cpp='$CPP $CPPFLAGS'
16854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16857
16858
16859
16860
16861     ac_ext=cpp
16862 ac_cpp='$CXXCPP $CPPFLAGS'
16863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16866
16867     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16868 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16869 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16870   echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872   cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878
16879 int
16880 main ()
16881 {
16882
16883              #ifndef __INTEL_COMPILER
16884                 choke me
16885              #endif
16886
16887   ;
16888   return 0;
16889 }
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_compile") 2>conftest.er1
16899   ac_status=$?
16900   grep -v '^ *+' conftest.er1 >conftest.err
16901   rm -f conftest.er1
16902   cat conftest.err >&5
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); } && {
16905          test -z "$ac_cxx_werror_flag" ||
16906          test ! -s conftest.err
16907        } && test -s conftest.$ac_objext; then
16908   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16909 else
16910   echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16914
16915 fi
16916
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918
16919
16920 fi
16921 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16922 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16923     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16924         :; INTELCXX=yes
16925     else
16926         :;
16927     fi
16928     ac_ext=c
16929 ac_cpp='$CPP $CPPFLAGS'
16930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16933
16934
16935
16936
16937         if test "$INTELCXX" = "yes"; then
16938
16939
16940     ac_ext=cpp
16941 ac_cpp='$CXXCPP $CPPFLAGS'
16942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16945
16946     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
16947 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
16948 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951   cat >conftest.$ac_ext <<_ACEOF
16952 /* confdefs.h.  */
16953 _ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h.  */
16957
16958 int
16959 main ()
16960 {
16961
16962              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16963                 choke me
16964              #endif
16965
16966   ;
16967   return 0;
16968 }
16969 _ACEOF
16970 rm -f conftest.$ac_objext
16971 if { (ac_try="$ac_compile"
16972 case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_compile") 2>conftest.er1
16978   ac_status=$?
16979   grep -v '^ *+' conftest.er1 >conftest.err
16980   rm -f conftest.er1
16981   cat conftest.err >&5
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } && {
16984          test -z "$ac_cxx_werror_flag" ||
16985          test ! -s conftest.err
16986        } && test -s conftest.$ac_objext; then
16987   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
16993
16994 fi
16995
16996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16997
16998
16999 fi
17000 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17001 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17002     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17003         :; INTELCXX8=yes
17004     else
17005         :;
17006     fi
17007     ac_ext=c
17008 ac_cpp='$CPP $CPPFLAGS'
17009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17012
17013
17014
17015
17016
17017     ac_ext=cpp
17018 ac_cpp='$CXXCPP $CPPFLAGS'
17019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17022
17023     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17024 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17025 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17026   echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028   cat >conftest.$ac_ext <<_ACEOF
17029 /* confdefs.h.  */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h.  */
17034
17035 int
17036 main ()
17037 {
17038
17039              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17040                 choke me
17041              #endif
17042
17043   ;
17044   return 0;
17045 }
17046 _ACEOF
17047 rm -f conftest.$ac_objext
17048 if { (ac_try="$ac_compile"
17049 case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_compile") 2>conftest.er1
17055   ac_status=$?
17056   grep -v '^ *+' conftest.er1 >conftest.err
17057   rm -f conftest.er1
17058   cat conftest.err >&5
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); } && {
17061          test -z "$ac_cxx_werror_flag" ||
17062          test ! -s conftest.err
17063        } && test -s conftest.$ac_objext; then
17064   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17070
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074
17075
17076 fi
17077 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17078 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17079     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17080         :; INTELCXX10=yes
17081     else
17082         :;
17083     fi
17084     ac_ext=c
17085 ac_cpp='$CPP $CPPFLAGS'
17086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17089
17090
17091
17092     fi
17093
17094         if test "x$GCXX" != "xyes"; then
17095         if test "xCXX" = "xC"; then
17096             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17097 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17098 if test "${bakefile_cv_c_exto+set}" = set; then
17099   echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101   cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h.  */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h.  */
17107
17108 int
17109 main ()
17110 {
17111
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext conftest.$ac_ext.o
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118   (eval $ac_compile) 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; then
17122   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17123     case $ac_file in
17124         conftest.$ac_ext.o)
17125             bakefile_cv_c_exto="-ext o"
17126             ;;
17127         *)
17128             ;;
17129     esac
17130 done
17131 else
17132   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17133 See \`config.log' for more details." >&5
17134 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17135 See \`config.log' for more details." >&2;}
17136    { (exit 1); exit 1; }; }
17137
17138 fi
17139
17140 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17141
17142 fi
17143 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17144 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17145 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17146     if test "c" = "c"; then
17147         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17148     fi
17149     if test "c" = "cxx"; then
17150         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17151     fi
17152 fi
17153
17154             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17155                 unset ac_cv_prog_cc_g
17156                 ac_test_CFLAGS=${CFLAGS+set}
17157 ac_save_CFLAGS=$CFLAGS
17158 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17159 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17160 if test "${ac_cv_prog_cc_g+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   ac_save_c_werror_flag=$ac_c_werror_flag
17164    ac_c_werror_flag=yes
17165    ac_cv_prog_cc_g=no
17166    CFLAGS="-g"
17167    cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173
17174 int
17175 main ()
17176 {
17177
17178   ;
17179   return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext
17183 if { (ac_try="$ac_compile"
17184 case "(($ac_try" in
17185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186   *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189   (eval "$ac_compile") 2>conftest.er1
17190   ac_status=$?
17191   grep -v '^ *+' conftest.er1 >conftest.err
17192   rm -f conftest.er1
17193   cat conftest.err >&5
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } && {
17196          test -z "$ac_c_werror_flag" ||
17197          test ! -s conftest.err
17198        } && test -s conftest.$ac_objext; then
17199   ac_cv_prog_cc_g=yes
17200 else
17201   echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204         CFLAGS=""
17205       cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211
17212 int
17213 main ()
17214 {
17215
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext
17221 if { (ac_try="$ac_compile"
17222 case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227   (eval "$ac_compile") 2>conftest.er1
17228   ac_status=$?
17229   grep -v '^ *+' conftest.er1 >conftest.err
17230   rm -f conftest.er1
17231   cat conftest.err >&5
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } && {
17234          test -z "$ac_c_werror_flag" ||
17235          test ! -s conftest.err
17236        } && test -s conftest.$ac_objext; then
17237   :
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         ac_c_werror_flag=$ac_save_c_werror_flag
17243          CFLAGS="-g"
17244          cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250
17251 int
17252 main ()
17253 {
17254
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext
17260 if { (ac_try="$ac_compile"
17261 case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266   (eval "$ac_compile") 2>conftest.er1
17267   ac_status=$?
17268   grep -v '^ *+' conftest.er1 >conftest.err
17269   rm -f conftest.er1
17270   cat conftest.err >&5
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); } && {
17273          test -z "$ac_c_werror_flag" ||
17274          test ! -s conftest.err
17275        } && test -s conftest.$ac_objext; then
17276   ac_cv_prog_cc_g=yes
17277 else
17278   echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17280
17281
17282 fi
17283
17284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285 fi
17286
17287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17288 fi
17289
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291    ac_c_werror_flag=$ac_save_c_werror_flag
17292 fi
17293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17294 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17295 if test "$ac_test_CFLAGS" = set; then
17296   CFLAGS=$ac_save_CFLAGS
17297 elif test $ac_cv_prog_cc_g = yes; then
17298   if test "$GCC" = yes; then
17299     CFLAGS="-g -O2"
17300   else
17301     CFLAGS="-g"
17302   fi
17303 else
17304   if test "$GCC" = yes; then
17305     CFLAGS="-O2"
17306   else
17307     CFLAGS=
17308   fi
17309 fi
17310             fi
17311         fi
17312
17313                         case `uname -s` in
17314             AIX*)
17315
17316
17317     ac_ext=cpp
17318 ac_cpp='$CXXCPP $CPPFLAGS'
17319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17322
17323     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17324 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17325 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328   cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334
17335 int
17336 main ()
17337 {
17338
17339              #ifndef __xlC__
17340                 choke me
17341              #endif
17342
17343   ;
17344   return 0;
17345 }
17346 _ACEOF
17347 rm -f conftest.$ac_objext
17348 if { (ac_try="$ac_compile"
17349 case "(($ac_try" in
17350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351   *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354   (eval "$ac_compile") 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } && {
17361          test -z "$ac_cxx_werror_flag" ||
17362          test ! -s conftest.err
17363        } && test -s conftest.$ac_objext; then
17364   bakefile_cv_cxx_compiler___xlC__=yes
17365 else
17366   echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369         bakefile_cv_cxx_compiler___xlC__=no
17370
17371 fi
17372
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374
17375
17376 fi
17377 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17378 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17379     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17380         :; XLCXX=yes
17381     else
17382         :;
17383     fi
17384     ac_ext=c
17385 ac_cpp='$CPP $CPPFLAGS'
17386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17389
17390
17391
17392                 ;;
17393
17394             Darwin)
17395
17396
17397     ac_ext=cpp
17398 ac_cpp='$CXXCPP $CPPFLAGS'
17399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17402
17403     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17404 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17405 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414
17415 int
17416 main ()
17417 {
17418
17419              #ifndef __MWERKS__
17420                 choke me
17421              #endif
17422
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 rm -f conftest.$ac_objext
17428 if { (ac_try="$ac_compile"
17429 case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_compile") 2>conftest.er1
17435   ac_status=$?
17436   grep -v '^ *+' conftest.er1 >conftest.err
17437   rm -f conftest.er1
17438   cat conftest.err >&5
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } && {
17441          test -z "$ac_cxx_werror_flag" ||
17442          test ! -s conftest.err
17443        } && test -s conftest.$ac_objext; then
17444   bakefile_cv_cxx_compiler___MWERKS__=yes
17445 else
17446   echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17448
17449         bakefile_cv_cxx_compiler___MWERKS__=no
17450
17451 fi
17452
17453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17454
17455
17456 fi
17457 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17458 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17459     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17460         :; MWCXX=yes
17461     else
17462         :;
17463     fi
17464     ac_ext=c
17465 ac_cpp='$CPP $CPPFLAGS'
17466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17469
17470
17471
17472                 if test "$MWCXX" != "yes"; then
17473
17474
17475     ac_ext=cpp
17476 ac_cpp='$CXXCPP $CPPFLAGS'
17477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17480
17481     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17482 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17483 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17484   echo $ECHO_N "(cached) $ECHO_C" >&6
17485 else
17486   cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492
17493 int
17494 main ()
17495 {
17496
17497              #ifndef __xlC__
17498                 choke me
17499              #endif
17500
17501   ;
17502   return 0;
17503 }
17504 _ACEOF
17505 rm -f conftest.$ac_objext
17506 if { (ac_try="$ac_compile"
17507 case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_compile") 2>conftest.er1
17513   ac_status=$?
17514   grep -v '^ *+' conftest.er1 >conftest.err
17515   rm -f conftest.er1
17516   cat conftest.err >&5
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } && {
17519          test -z "$ac_cxx_werror_flag" ||
17520          test ! -s conftest.err
17521        } && test -s conftest.$ac_objext; then
17522   bakefile_cv_cxx_compiler___xlC__=yes
17523 else
17524   echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527         bakefile_cv_cxx_compiler___xlC__=no
17528
17529 fi
17530
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532
17533
17534 fi
17535 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17536 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17537     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17538         :; XLCXX=yes
17539     else
17540         :;
17541     fi
17542     ac_ext=c
17543 ac_cpp='$CPP $CPPFLAGS'
17544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17547
17548
17549
17550                 fi
17551                 ;;
17552
17553             IRIX*)
17554
17555
17556     ac_ext=cpp
17557 ac_cpp='$CXXCPP $CPPFLAGS'
17558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17561
17562     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17563 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17564 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17565   echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567   cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h.  */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h.  */
17573
17574 int
17575 main ()
17576 {
17577
17578              #ifndef _SGI_COMPILER_VERSION
17579                 choke me
17580              #endif
17581
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext
17587 if { (ac_try="$ac_compile"
17588 case "(($ac_try" in
17589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590   *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593   (eval "$ac_compile") 2>conftest.er1
17594   ac_status=$?
17595   grep -v '^ *+' conftest.er1 >conftest.err
17596   rm -f conftest.er1
17597   cat conftest.err >&5
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } && {
17600          test -z "$ac_cxx_werror_flag" ||
17601          test ! -s conftest.err
17602        } && test -s conftest.$ac_objext; then
17603   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17604 else
17605   echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17607
17608         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17609
17610 fi
17611
17612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613
17614
17615 fi
17616 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17617 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17618     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17619         :; SGICXX=yes
17620     else
17621         :;
17622     fi
17623     ac_ext=c
17624 ac_cpp='$CPP $CPPFLAGS'
17625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17628
17629
17630
17631                 ;;
17632
17633             Linux*)
17634                                                 if test "$INTELCXX" != "yes"; then
17635
17636
17637     ac_ext=cpp
17638 ac_cpp='$CXXCPP $CPPFLAGS'
17639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17642
17643     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17644 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17645 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17646   echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648   cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654
17655 int
17656 main ()
17657 {
17658
17659              #ifndef __SUNPRO_CC
17660                 choke me
17661              #endif
17662
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671   *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674   (eval "$ac_compile") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_cxx_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest.$ac_objext; then
17684   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17690
17691 fi
17692
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694
17695
17696 fi
17697 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17698 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17699     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17700         :; SUNCXX=yes
17701     else
17702         :;
17703     fi
17704     ac_ext=c
17705 ac_cpp='$CPP $CPPFLAGS'
17706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17709
17710
17711
17712                 fi
17713                 ;;
17714
17715             HP-UX*)
17716
17717
17718     ac_ext=cpp
17719 ac_cpp='$CXXCPP $CPPFLAGS'
17720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17723
17724     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17725 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17726 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17727   echo $ECHO_N "(cached) $ECHO_C" >&6
17728 else
17729   cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735
17736 int
17737 main ()
17738 {
17739
17740              #ifndef __HP_aCC
17741                 choke me
17742              #endif
17743
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755   (eval "$ac_compile") 2>conftest.er1
17756   ac_status=$?
17757   grep -v '^ *+' conftest.er1 >conftest.err
17758   rm -f conftest.er1
17759   cat conftest.err >&5
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); } && {
17762          test -z "$ac_cxx_werror_flag" ||
17763          test ! -s conftest.err
17764        } && test -s conftest.$ac_objext; then
17765   bakefile_cv_cxx_compiler___HP_aCC=yes
17766 else
17767   echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770         bakefile_cv_cxx_compiler___HP_aCC=no
17771
17772 fi
17773
17774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775
17776
17777 fi
17778 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17779 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17780     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17781         :; HPCXX=yes
17782     else
17783         :;
17784     fi
17785     ac_ext=c
17786 ac_cpp='$CPP $CPPFLAGS'
17787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17790
17791
17792
17793                 ;;
17794
17795             OSF1)
17796
17797
17798     ac_ext=cpp
17799 ac_cpp='$CXXCPP $CPPFLAGS'
17800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17803
17804     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17805 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17806 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815
17816 int
17817 main ()
17818 {
17819
17820              #ifndef __DECCXX
17821                 choke me
17822              #endif
17823
17824   ;
17825   return 0;
17826 }
17827 _ACEOF
17828 rm -f conftest.$ac_objext
17829 if { (ac_try="$ac_compile"
17830 case "(($ac_try" in
17831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832   *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835   (eval "$ac_compile") 2>conftest.er1
17836   ac_status=$?
17837   grep -v '^ *+' conftest.er1 >conftest.err
17838   rm -f conftest.er1
17839   cat conftest.err >&5
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); } && {
17842          test -z "$ac_cxx_werror_flag" ||
17843          test ! -s conftest.err
17844        } && test -s conftest.$ac_objext; then
17845   bakefile_cv_cxx_compiler___DECCXX=yes
17846 else
17847   echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850         bakefile_cv_cxx_compiler___DECCXX=no
17851
17852 fi
17853
17854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855
17856
17857 fi
17858 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17859 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17860     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17861         :; COMPAQCXX=yes
17862     else
17863         :;
17864     fi
17865     ac_ext=c
17866 ac_cpp='$CPP $CPPFLAGS'
17867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17870
17871
17872
17873                 ;;
17874
17875             SunOS)
17876
17877
17878     ac_ext=cpp
17879 ac_cpp='$CXXCPP $CPPFLAGS'
17880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17883
17884     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17885 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17886 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17887   echo $ECHO_N "(cached) $ECHO_C" >&6
17888 else
17889   cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h.  */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h.  */
17895
17896 int
17897 main ()
17898 {
17899
17900              #ifndef __SUNPRO_CC
17901                 choke me
17902              #endif
17903
17904   ;
17905   return 0;
17906 }
17907 _ACEOF
17908 rm -f conftest.$ac_objext
17909 if { (ac_try="$ac_compile"
17910 case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_compile") 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } && {
17922          test -z "$ac_cxx_werror_flag" ||
17923          test ! -s conftest.err
17924        } && test -s conftest.$ac_objext; then
17925   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17926 else
17927   echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17931
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935
17936
17937 fi
17938 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17939 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17940     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17941         :; SUNCXX=yes
17942     else
17943         :;
17944     fi
17945     ac_ext=c
17946 ac_cpp='$CPP $CPPFLAGS'
17947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17950
17951
17952
17953                 ;;
17954         esac
17955     fi
17956
17957
17958
17959 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17960     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17961 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17962    { (exit 1); exit 1; }; }
17963 fi
17964
17965 if test "x$SUNCXX" != xyes; then
17966     if test -n "$ac_tool_prefix"; then
17967   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17968 set dummy ${ac_tool_prefix}ar; ac_word=$2
17969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17971 if test "${ac_cv_prog_AR+set}" = set; then
17972   echo $ECHO_N "(cached) $ECHO_C" >&6
17973 else
17974   if test -n "$AR"; then
17975   ac_cv_prog_AR="$AR" # Let the user override the test.
17976 else
17977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17978 for as_dir in $PATH
17979 do
17980   IFS=$as_save_IFS
17981   test -z "$as_dir" && as_dir=.
17982   for ac_exec_ext in '' $ac_executable_extensions; do
17983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17984     ac_cv_prog_AR="${ac_tool_prefix}ar"
17985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17986     break 2
17987   fi
17988 done
17989 done
17990 IFS=$as_save_IFS
17991
17992 fi
17993 fi
17994 AR=$ac_cv_prog_AR
17995 if test -n "$AR"; then
17996   { echo "$as_me:$LINENO: result: $AR" >&5
17997 echo "${ECHO_T}$AR" >&6; }
17998 else
17999   { echo "$as_me:$LINENO: result: no" >&5
18000 echo "${ECHO_T}no" >&6; }
18001 fi
18002
18003
18004 fi
18005 if test -z "$ac_cv_prog_AR"; then
18006   ac_ct_AR=$AR
18007   # Extract the first word of "ar", so it can be a program name with args.
18008 set dummy ar; ac_word=$2
18009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18011 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   if test -n "$ac_ct_AR"; then
18015   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18016 else
18017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18018 for as_dir in $PATH
18019 do
18020   IFS=$as_save_IFS
18021   test -z "$as_dir" && as_dir=.
18022   for ac_exec_ext in '' $ac_executable_extensions; do
18023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18024     ac_cv_prog_ac_ct_AR="ar"
18025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18026     break 2
18027   fi
18028 done
18029 done
18030 IFS=$as_save_IFS
18031
18032 fi
18033 fi
18034 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18035 if test -n "$ac_ct_AR"; then
18036   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18037 echo "${ECHO_T}$ac_ct_AR" >&6; }
18038 else
18039   { echo "$as_me:$LINENO: result: no" >&5
18040 echo "${ECHO_T}no" >&6; }
18041 fi
18042
18043   if test "x$ac_ct_AR" = x; then
18044     AR=""
18045   else
18046     case $cross_compiling:$ac_tool_warned in
18047 yes:)
18048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18049 whose name does not start with the host triplet.  If you think this
18050 configuration is useful to you, please write to autoconf@gnu.org." >&5
18051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18052 whose name does not start with the host triplet.  If you think this
18053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18054 ac_tool_warned=yes ;;
18055 esac
18056     AR=$ac_ct_AR
18057   fi
18058 else
18059   AR="$ac_cv_prog_AR"
18060 fi
18061
18062     if test "x$AR" = "x" ; then
18063         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18064 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18065    { (exit 1); exit 1; }; }
18066     fi
18067 fi
18068
18069 retest_macosx_linking=no
18070
18071 #if test "$wxUSE_MAC" = 1; then
18072     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18073                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18074             # Implicitly turn on the new --with-macosx-sdk using the default
18075             # SDK which provides the behavior this option has always had.
18076             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18077                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18078 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18079                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18080 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18081                 wxUSE_MACOSX_SDK=yes
18082             fi
18083         else
18084             # Complain to user if he specified an argument to --enable-universal_binary
18085             # and also 1) specified --with-macosx-sdk using the default (yes) or
18086             # 2) specified --with-macosx-sdk using a path or 3) specified
18087             # --without-macosx-sdk (no).
18088             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18089                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18090 See \`config.log' for more details." >&5
18091 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18092 See \`config.log' for more details." >&2;}
18093    { (exit 1); exit 1; }; }
18094             else
18095                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18096                 # special-case the empty string because the below test simply
18097                 # converts "no" to the empty string anyway.
18098                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18099                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18100 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18101             fi
18102         fi
18103                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18104         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18105         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18106         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18107         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18108         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18109                                                                                                                 retest_macosx_linking=yes
18110
18111                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18112 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18113         bk_use_pch=no
18114     fi
18115 #fi
18116
18117 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18118     wxUSE_MACOSX_SDK=
18119 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18120     # TODO: Search for most recent SDK and use it.
18121     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18122 fi
18123
18124
18125 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18126     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18127 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18128     if ! test -d "$wxUSE_MACOSX_SDK"; then
18129         { { echo "$as_me:$LINENO: error: not found
18130 See \`config.log' for more details." >&5
18131 echo "$as_me: error: not found
18132 See \`config.log' for more details." >&2;}
18133    { (exit 1); exit 1; }; }
18134     else
18135         { echo "$as_me:$LINENO: result: exists" >&5
18136 echo "${ECHO_T}exists" >&6; }
18137     fi
18138     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18139     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18140     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18141     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18142     retest_macosx_linking=yes
18143             fi
18144
18145 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18146     wxUSE_MACOSX_VERSION_MIN=
18147 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18148     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18149         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18150 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18151
18152         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/'`
18153
18154         # If that failed, try again with the new key
18155         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18156
18157             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/'`
18158
18159         fi
18160
18161         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18162             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18163             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18164 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18165         else
18166             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18167 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18168             wxUSE_MACOSX_VERSION_MIN=
18169         fi
18170     else
18171         wxUSE_MACOSX_VERSION_MIN=
18172     fi
18173 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18174     if test "$wxUSE_MAC" = 1; then
18175         # otherwise configure stops on leopard for universal_binary
18176         wxUSE_MACOSX_VERSION_MIN=10.4
18177     fi
18178 fi
18179
18180 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18181     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18182     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18183     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18184     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18185     retest_macosx_linking=yes
18186 fi
18187
18188 if test "x$retest_macosx_linking" = "xyes"; then
18189     ac_ext=c
18190 ac_cpp='$CPP $CPPFLAGS'
18191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18194
18195     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18196 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18197     cat >conftest.$ac_ext <<_ACEOF
18198 /* confdefs.h.  */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h.  */
18203
18204 int
18205 main ()
18206 {
18207
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_link") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } && {
18226          test -z "$ac_c_werror_flag" ||
18227          test ! -s conftest.err
18228        } && test -s conftest$ac_exeext &&
18229        $as_test_x conftest$ac_exeext; then
18230   { echo "$as_me:$LINENO: result: yes" >&5
18231 echo "${ECHO_T}yes" >&6; }
18232 else
18233   echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18237 See \`config.log' for more details." >&5
18238 echo "$as_me: error: no.  Try a different SDK
18239 See \`config.log' for more details." >&2;}
18240    { (exit 1); exit 1; }; }; exit 1
18241 fi
18242
18243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18244       conftest$ac_exeext conftest.$ac_ext
18245     ac_ext=c
18246 ac_cpp='$CPP $CPPFLAGS'
18247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18250
18251
18252     ac_ext=cpp
18253 ac_cpp='$CXXCPP $CPPFLAGS'
18254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18257
18258     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18259 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18260     cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266
18267 int
18268 main ()
18269 {
18270
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_link") 2>conftest.er1
18283   ac_status=$?
18284   grep -v '^ *+' conftest.er1 >conftest.err
18285   rm -f conftest.er1
18286   cat conftest.err >&5
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } && {
18289          test -z "$ac_cxx_werror_flag" ||
18290          test ! -s conftest.err
18291        } && test -s conftest$ac_exeext &&
18292        $as_test_x conftest$ac_exeext; then
18293   { echo "$as_me:$LINENO: result: yes" >&5
18294 echo "${ECHO_T}yes" >&6; }
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18300 See \`config.log' for more details." >&5
18301 echo "$as_me: error: no.  Try a different SDK
18302 See \`config.log' for more details." >&2;}
18303    { (exit 1); exit 1; }; }; exit 1
18304 fi
18305
18306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18307       conftest$ac_exeext conftest.$ac_ext
18308     ac_ext=c
18309 ac_cpp='$CPP $CPPFLAGS'
18310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18313
18314 fi
18315
18316
18317 case "${host}" in
18318
18319                 *-*-darwin* )
18320         INSTALL_PROGRAM="cp -fp"
18321         INSTALL_DATA="cp -fp"
18322         ;;
18323     *)
18324         ;;
18325 esac
18326
18327
18328 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18329     CXXFLAGS="-qunique $CXXFLAGS"
18330 fi
18331
18332 case "${host}" in
18333   powerpc-*-darwin* )
18334     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18335 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18336     cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h.  */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h.  */
18342
18343 int
18344 main ()
18345 {
18346 #ifndef __POWERPC__
18347         choke me for lack of PowerPC
18348 #endif
18349
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext
18355 if { (ac_try="$ac_compile"
18356 case "(($ac_try" in
18357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358   *) ac_try_echo=$ac_try;;
18359 esac
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361   (eval "$ac_compile") 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } && {
18368          test -z "$ac_c_werror_flag" ||
18369          test ! -s conftest.err
18370        } && test -s conftest.$ac_objext; then
18371   { echo "$as_me:$LINENO: result: yes" >&5
18372 echo "${ECHO_T}yes" >&6; }
18373 else
18374   echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18376
18377         { echo "$as_me:$LINENO: result: no" >&5
18378 echo "${ECHO_T}no" >&6; }
18379         cat >>confdefs.h <<\_ACEOF
18380 #define __POWERPC__ 1
18381 _ACEOF
18382
18383
18384 fi
18385
18386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18387   ;;
18388 esac
18389
18390 case "${host}" in
18391   *-*-darwin* )
18392     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18393 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18394     cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h.  */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h.  */
18400 #include <CoreFoundation/CFBase.h>
18401
18402 int
18403 main ()
18404 {
18405
18406   ;
18407   return 0;
18408 }
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (ac_try="$ac_compile"
18412 case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_compile") 2>conftest.er1
18418   ac_status=$?
18419   grep -v '^ *+' conftest.er1 >conftest.err
18420   rm -f conftest.er1
18421   cat conftest.err >&5
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); } && {
18424          test -z "$ac_c_werror_flag" ||
18425          test ! -s conftest.err
18426        } && test -s conftest.$ac_objext; then
18427   { echo "$as_me:$LINENO: result: yes" >&5
18428 echo "${ECHO_T}yes" >&6; }
18429 else
18430   echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433         { echo "$as_me:$LINENO: result: no" >&5
18434 echo "${ECHO_T}no" >&6; }
18435         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18436 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18437         cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443 #define __CF_USE_FRAMEWORK_INCLUDES__
18444 #include <CoreFoundation/CFBase.h>
18445
18446 int
18447 main ()
18448 {
18449
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext
18455 if { (ac_try="$ac_compile"
18456 case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_compile") 2>conftest.er1
18462   ac_status=$?
18463   grep -v '^ *+' conftest.er1 >conftest.err
18464   rm -f conftest.er1
18465   cat conftest.err >&5
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } && {
18468          test -z "$ac_c_werror_flag" ||
18469          test ! -s conftest.err
18470        } && test -s conftest.$ac_objext; then
18471   { echo "$as_me:$LINENO: result: yes" >&5
18472 echo "${ECHO_T}yes" >&6; }
18473                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18479 See \`config.log' for more details." >&5
18480 echo "$as_me: error: no.  CoreFoundation not available.
18481 See \`config.log' for more details." >&2;}
18482    { (exit 1); exit 1; }; }
18483
18484 fi
18485
18486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18487
18488
18489 fi
18490
18491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18492   ;;
18493 esac
18494
18495 wants_win32=0
18496 doesnt_want_win32=0
18497 case "${host}" in
18498   *-*-cygwin*)
18499       if test "$wxUSE_MSW" = 1 ; then
18500         wants_win32=1
18501       else
18502                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18503 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18504 if test "${wx_cv_nocygwin+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507
18508                 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514
18515 int
18516 main ()
18517 {
18518
18519                         #ifdef __MINGW32__
18520                             choke me
18521                         #endif
18522
18523   ;
18524   return 0;
18525 }
18526 _ACEOF
18527 rm -f conftest.$ac_objext
18528 if { (ac_try="$ac_compile"
18529 case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_compile") 2>conftest.er1
18535   ac_status=$?
18536   grep -v '^ *+' conftest.er1 >conftest.err
18537   rm -f conftest.er1
18538   cat conftest.err >&5
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); } && {
18541          test -z "$ac_c_werror_flag" ||
18542          test ! -s conftest.err
18543        } && test -s conftest.$ac_objext; then
18544   wx_cv_nocygwin=no
18545 else
18546   echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549         wx_cv_nocygwin=yes
18550
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554
18555
18556 fi
18557 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18558 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18559
18560         if test "$wx_cv_nocygwin" = "yes"; then
18561             wants_win32=1
18562         else
18563             doesnt_want_win32=1
18564         fi
18565       fi
18566       if test "$wants_win32" = 1 ; then
18567         BAKEFILE_FORCE_PLATFORM=win32
18568       fi
18569   ;;
18570   *-*-mingw*)
18571       wants_win32=1
18572   ;;
18573 esac
18574
18575 if test "$wxUSE_WINE" = "yes"; then
18576     wants_win32=1
18577     LDFLAGS_GUI="-mwindows"
18578 fi
18579
18580 if test "$wants_win32" = 1 ; then
18581     USE_UNIX=0
18582     USE_WIN32=1
18583     cat >>confdefs.h <<\_ACEOF
18584 #define __WIN32__ 1
18585 _ACEOF
18586
18587     cat >>confdefs.h <<\_ACEOF
18588 #define __WIN95__ 1
18589 _ACEOF
18590
18591     cat >>confdefs.h <<\_ACEOF
18592 #define __WINDOWS__ 1
18593 _ACEOF
18594
18595     cat >>confdefs.h <<\_ACEOF
18596 #define __GNUWIN32__ 1
18597 _ACEOF
18598
18599     cat >>confdefs.h <<\_ACEOF
18600 #define STRICT 1
18601 _ACEOF
18602
18603 fi
18604 if test "$doesnt_want_win32" = 1 ; then
18605     USE_UNIX=1
18606     USE_WIN32=0
18607 fi
18608
18609 if test "$USE_UNIX" = 1 ; then
18610     wxUSE_UNIX=yes
18611     cat >>confdefs.h <<\_ACEOF
18612 #define __UNIX__ 1
18613 _ACEOF
18614
18615 fi
18616
18617 case "${host}" in
18618   *-pc-os2_emx | *-pc-os2-emx )
18619                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18620                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18621 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18622 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18623   echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625   ac_check_lib_save_LIBS=$LIBS
18626 LIBS="-lcExt  $LIBS"
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h.  */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h.  */
18633
18634 /* Override any GCC internal prototype to avoid an error.
18635    Use char because int might match the return type of a GCC
18636    builtin and then its argument prototype would still apply.  */
18637 #ifdef __cplusplus
18638 extern "C"
18639 #endif
18640 char drand48 ();
18641 int
18642 main ()
18643 {
18644 return drand48 ();
18645   ;
18646   return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (ac_try="$ac_link"
18651 case "(($ac_try" in
18652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653   *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656   (eval "$ac_link") 2>conftest.er1
18657   ac_status=$?
18658   grep -v '^ *+' conftest.er1 >conftest.err
18659   rm -f conftest.er1
18660   cat conftest.err >&5
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); } && {
18663          test -z "$ac_c_werror_flag" ||
18664          test ! -s conftest.err
18665        } && test -s conftest$ac_exeext &&
18666        $as_test_x conftest$ac_exeext; then
18667   ac_cv_lib_cExt_drand48=yes
18668 else
18669   echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672         ac_cv_lib_cExt_drand48=no
18673 fi
18674
18675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18676       conftest$ac_exeext conftest.$ac_ext
18677 LIBS=$ac_check_lib_save_LIBS
18678 fi
18679 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18680 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18681 if test $ac_cv_lib_cExt_drand48 = yes; then
18682   LIBS="$LIBS -lcExt"
18683 fi
18684
18685       else
18686                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18687       fi
18688                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18689 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18690 if test "${wx_cv_gccversion+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693
18694           if test "$cross_compiling" = yes; then
18695                 wx_cv_gccversion="EMX2"
18696
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
18705                   #include <stdio.h>
18706
18707                   int main()
18708                   {
18709                       FILE *f=fopen("conftestval", "w");
18710                       if (!f) exit(1);
18711                       fprintf(f,
18712                   #if (__GNUC__ < 3)
18713                               "EMX2"
18714                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18715                               "EMX3"
18716                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18717                               "Innotek5"
18718                   #else
18719                               "Innotek6"
18720                   #endif
18721                       );
18722                       exit(0);
18723                   }
18724
18725 _ACEOF
18726 rm -f conftest$ac_exeext
18727 if { (ac_try="$ac_link"
18728 case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_link") 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18737   { (case "(($ac_try" in
18738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739   *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742   (eval "$ac_try") 2>&5
18743   ac_status=$?
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); }; }; then
18746   wx_cv_gccversion=`cat conftestval`
18747 else
18748   echo "$as_me: program exited with status $ac_status" >&5
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 ( exit $ac_status )
18753 wx_cv_gccversion="EMX2"
18754 fi
18755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18756 fi
18757
18758
18759
18760 fi
18761 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18762 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18763       if test "$wx_cv_gccversion" = "EMX2"; then
18764           LIBS="$LIBS -lstdcpp"
18765           LDFLAGS="$LDFLAGS -Zsysv-signals"
18766       else
18767           if test "$wx_cv_gccversion" = "EMX3"; then
18768               LIBS="$LIBS -lstdcxx -lgcc"
18769               LDFLAGS="$LDFLAGS -Zsysv-signals"
18770           else
18771               LIBS="$LIBS -lstdc++"
18772           fi
18773       fi
18774       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18775         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18776 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18777         wxUSE_OMF=yes
18778         enable_omf=yes
18779       fi
18780         ;;
18781   *)
18782
18783       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18784 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18785 if test "${ac_cv_string_strcasecmp+set}" = set; then
18786   echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788
18789           cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795
18796               #include <string.h>
18797
18798 int
18799 main ()
18800 {
18801
18802                   strcasecmp("foo", "bar");
18803
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (ac_try="$ac_link"
18810 case "(($ac_try" in
18811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812   *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815   (eval "$ac_link") 2>conftest.er1
18816   ac_status=$?
18817   grep -v '^ *+' conftest.er1 >conftest.err
18818   rm -f conftest.er1
18819   cat conftest.err >&5
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); } && {
18822          test -z "$ac_c_werror_flag" ||
18823          test ! -s conftest.err
18824        } && test -s conftest$ac_exeext &&
18825        $as_test_x conftest$ac_exeext; then
18826   ac_cv_string_strcasecmp=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831         ac_cv_string_strcasecmp=no
18832
18833 fi
18834
18835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18836       conftest$ac_exeext conftest.$ac_ext
18837
18838 fi
18839 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18840 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18841
18842       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18843           cat >>confdefs.h <<\_ACEOF
18844 #define HAVE_STRCASECMP_IN_STRING_H 1
18845 _ACEOF
18846
18847       else
18848           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18849 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18850 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18851   echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853
18854               cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860
18861                   #include <strings.h>
18862
18863 int
18864 main ()
18865 {
18866
18867                       strcasecmp("foo", "bar");
18868
18869   ;
18870   return 0;
18871 }
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877   *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880   (eval "$ac_link") 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } && {
18887          test -z "$ac_c_werror_flag" ||
18888          test ! -s conftest.err
18889        } && test -s conftest$ac_exeext &&
18890        $as_test_x conftest$ac_exeext; then
18891   ac_cv_strings_strcasecmp=yes
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896         ac_cv_strings_strcasecmp=no
18897
18898 fi
18899
18900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18901       conftest$ac_exeext conftest.$ac_ext
18902
18903 fi
18904 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18905 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18906
18907           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18908               cat >>confdefs.h <<\_ACEOF
18909 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18910 _ACEOF
18911
18912           else
18913               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18914 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18915    { (exit 1); exit 1; }; }
18916           fi
18917       fi
18918
18919         ;;
18920 esac
18921
18922
18923 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18924 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18925 if test "${ac_cv_header_stdc+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928   cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934 #include <stdlib.h>
18935 #include <stdarg.h>
18936 #include <string.h>
18937 #include <float.h>
18938
18939 int
18940 main ()
18941 {
18942
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext
18948 if { (ac_try="$ac_compile"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_compile") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && {
18961          test -z "$ac_c_werror_flag" ||
18962          test ! -s conftest.err
18963        } && test -s conftest.$ac_objext; then
18964   ac_cv_header_stdc=yes
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969         ac_cv_header_stdc=no
18970 fi
18971
18972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973
18974 if test $ac_cv_header_stdc = yes; then
18975   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18976   cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h.  */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h.  */
18982 #include <string.h>
18983
18984 _ACEOF
18985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18986   $EGREP "memchr" >/dev/null 2>&1; then
18987   :
18988 else
18989   ac_cv_header_stdc=no
18990 fi
18991 rm -f conftest*
18992
18993 fi
18994
18995 if test $ac_cv_header_stdc = yes; then
18996   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18997   cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003 #include <stdlib.h>
19004
19005 _ACEOF
19006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19007   $EGREP "free" >/dev/null 2>&1; then
19008   :
19009 else
19010   ac_cv_header_stdc=no
19011 fi
19012 rm -f conftest*
19013
19014 fi
19015
19016 if test $ac_cv_header_stdc = yes; then
19017   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19018   if test "$cross_compiling" = yes; then
19019   :
19020 else
19021   cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h.  */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h.  */
19027 #include <ctype.h>
19028 #include <stdlib.h>
19029 #if ((' ' & 0x0FF) == 0x020)
19030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19032 #else
19033 # define ISLOWER(c) \
19034                    (('a' <= (c) && (c) <= 'i') \
19035                      || ('j' <= (c) && (c) <= 'r') \
19036                      || ('s' <= (c) && (c) <= 'z'))
19037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19038 #endif
19039
19040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19041 int
19042 main ()
19043 {
19044   int i;
19045   for (i = 0; i < 256; i++)
19046     if (XOR (islower (i), ISLOWER (i))
19047         || toupper (i) != TOUPPER (i))
19048       return 2;
19049   return 0;
19050 }
19051 _ACEOF
19052 rm -f conftest$ac_exeext
19053 if { (ac_try="$ac_link"
19054 case "(($ac_try" in
19055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056   *) ac_try_echo=$ac_try;;
19057 esac
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059   (eval "$ac_link") 2>&5
19060   ac_status=$?
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19063   { (case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_try") 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; }; then
19072   :
19073 else
19074   echo "$as_me: program exited with status $ac_status" >&5
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078 ( exit $ac_status )
19079 ac_cv_header_stdc=no
19080 fi
19081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19082 fi
19083
19084
19085 fi
19086 fi
19087 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19088 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19089 if test $ac_cv_header_stdc = yes; then
19090
19091 cat >>confdefs.h <<\_ACEOF
19092 #define STDC_HEADERS 1
19093 _ACEOF
19094
19095 fi
19096
19097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19108                   inttypes.h stdint.h unistd.h
19109 do
19110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19114   echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116   cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h.  */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h.  */
19122 $ac_includes_default
19123
19124 #include <$ac_header>
19125 _ACEOF
19126 rm -f conftest.$ac_objext
19127 if { (ac_try="$ac_compile"
19128 case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_compile") 2>conftest.er1
19134   ac_status=$?
19135   grep -v '^ *+' conftest.er1 >conftest.err
19136   rm -f conftest.er1
19137   cat conftest.err >&5
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } && {
19140          test -z "$ac_c_werror_flag" ||
19141          test ! -s conftest.err
19142        } && test -s conftest.$ac_objext; then
19143   eval "$as_ac_Header=yes"
19144 else
19145   echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148         eval "$as_ac_Header=no"
19149 fi
19150
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 fi
19153 ac_res=`eval echo '${'$as_ac_Header'}'`
19154                { echo "$as_me:$LINENO: result: $ac_res" >&5
19155 echo "${ECHO_T}$ac_res" >&6; }
19156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19157   cat >>confdefs.h <<_ACEOF
19158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19159 _ACEOF
19160
19161 fi
19162
19163 done
19164
19165
19166
19167
19168 for ac_header in langinfo.h wchar.h
19169 do
19170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176   cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h.  */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h.  */
19182 $ac_includes_default
19183
19184 #include <$ac_header>
19185 _ACEOF
19186 rm -f conftest.$ac_objext
19187 if { (ac_try="$ac_compile"
19188 case "(($ac_try" in
19189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190   *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193   (eval "$ac_compile") 2>conftest.er1
19194   ac_status=$?
19195   grep -v '^ *+' conftest.er1 >conftest.err
19196   rm -f conftest.er1
19197   cat conftest.err >&5
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } && {
19200          test -z "$ac_c_werror_flag" ||
19201          test ! -s conftest.err
19202        } && test -s conftest.$ac_objext; then
19203   eval "$as_ac_Header=yes"
19204 else
19205   echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208         eval "$as_ac_Header=no"
19209 fi
19210
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212 fi
19213 ac_res=`eval echo '${'$as_ac_Header'}'`
19214                { echo "$as_me:$LINENO: result: $ac_res" >&5
19215 echo "${ECHO_T}$ac_res" >&6; }
19216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19217   cat >>confdefs.h <<_ACEOF
19218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19219 _ACEOF
19220
19221 fi
19222
19223 done
19224
19225
19226 if test "$ac_cv_header_wchar_h" != "yes"; then
19227
19228 for ac_header in wcstr.h
19229 do
19230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 $ac_includes_default
19243
19244 #include <$ac_header>
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250   *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253   (eval "$ac_compile") 2>conftest.er1
19254   ac_status=$?
19255   grep -v '^ *+' conftest.er1 >conftest.err
19256   rm -f conftest.er1
19257   cat conftest.err >&5
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); } && {
19260          test -z "$ac_c_werror_flag" ||
19261          test ! -s conftest.err
19262        } && test -s conftest.$ac_objext; then
19263   eval "$as_ac_Header=yes"
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268         eval "$as_ac_Header=no"
19269 fi
19270
19271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272 fi
19273 ac_res=`eval echo '${'$as_ac_Header'}'`
19274                { echo "$as_me:$LINENO: result: $ac_res" >&5
19275 echo "${ECHO_T}$ac_res" >&6; }
19276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19277   cat >>confdefs.h <<_ACEOF
19278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19279 _ACEOF
19280
19281 fi
19282
19283 done
19284
19285 fi
19286
19287 case "${host}" in
19288   *-pc-os2_emx | *-pc-os2-emx )
19289                   if test $ac_cv_header_langinfo_h = "yes" \
19290                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19291                      -o "$wx_cv_gccversion" = "EMX3" \
19292                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19293           LIBS="$LIBS -lintl"
19294       fi
19295   ;;
19296 esac
19297
19298 if test "$USE_UNIX" = 1 ; then
19299
19300 for ac_header in sys/select.h
19301 do
19302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19306   echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308   cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h.  */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h.  */
19314 $ac_includes_default
19315
19316 #include <$ac_header>
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (ac_try="$ac_compile"
19320 case "(($ac_try" in
19321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322   *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325   (eval "$ac_compile") 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } && {
19332          test -z "$ac_c_werror_flag" ||
19333          test ! -s conftest.err
19334        } && test -s conftest.$ac_objext; then
19335   eval "$as_ac_Header=yes"
19336 else
19337   echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340         eval "$as_ac_Header=no"
19341 fi
19342
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344 fi
19345 ac_res=`eval echo '${'$as_ac_Header'}'`
19346                { echo "$as_me:$LINENO: result: $ac_res" >&5
19347 echo "${ECHO_T}$ac_res" >&6; }
19348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19349   cat >>confdefs.h <<_ACEOF
19350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19351 _ACEOF
19352
19353 fi
19354
19355 done
19356
19357 fi
19358
19359
19360 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19361 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19362 if test "${ac_cv_c_const+set}" = set; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365   cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h.  */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h.  */
19371
19372 int
19373 main ()
19374 {
19375 /* FIXME: Include the comments suggested by Paul. */
19376 #ifndef __cplusplus
19377   /* Ultrix mips cc rejects this.  */
19378   typedef int charset[2];
19379   const charset cs;
19380   /* SunOS 4.1.1 cc rejects this.  */
19381   char const *const *pcpcc;
19382   char **ppc;
19383   /* NEC SVR4.0.2 mips cc rejects this.  */
19384   struct point {int x, y;};
19385   static struct point const zero = {0,0};
19386   /* AIX XL C 1.02.0.0 rejects this.
19387      It does not let you subtract one const X* pointer from another in
19388      an arm of an if-expression whose if-part is not a constant
19389      expression */
19390   const char *g = "string";
19391   pcpcc = &g + (g ? g-g : 0);
19392   /* HPUX 7.0 cc rejects these. */
19393   ++pcpcc;
19394   ppc = (char**) pcpcc;
19395   pcpcc = (char const *const *) ppc;
19396   { /* SCO 3.2v4 cc rejects this.  */
19397     char *t;
19398     char const *s = 0 ? (char *) 0 : (char const *) 0;
19399
19400     *t++ = 0;
19401     if (s) return 0;
19402   }
19403   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19404     int x[] = {25, 17};
19405     const int *foo = &x[0];
19406     ++foo;
19407   }
19408   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19409     typedef const int *iptr;
19410     iptr p = 0;
19411     ++p;
19412   }
19413   { /* AIX XL C 1.02.0.0 rejects this saying
19414        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19415     struct s { int j; const int *ap[3]; };
19416     struct s *b; b->j = 5;
19417   }
19418   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19419     const int foo = 10;
19420     if (!foo) return 0;
19421   }
19422   return !cs[0] && !zero.x;
19423 #endif
19424
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (ac_try="$ac_compile"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_compile") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest.$ac_objext; then
19446   ac_cv_c_const=yes
19447 else
19448   echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451         ac_cv_c_const=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 fi
19456 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19457 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19458 if test $ac_cv_c_const = no; then
19459
19460 cat >>confdefs.h <<\_ACEOF
19461 #define const
19462 _ACEOF
19463
19464 fi
19465
19466 { echo "$as_me:$LINENO: checking for inline" >&5
19467 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19468 if test "${ac_cv_c_inline+set}" = set; then
19469   echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471   ac_cv_c_inline=no
19472 for ac_kw in inline __inline__ __inline; do
19473   cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h.  */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h.  */
19479 #ifndef __cplusplus
19480 typedef int foo_t;
19481 static $ac_kw foo_t static_foo () {return 0; }
19482 $ac_kw foo_t foo () {return 0; }
19483 #endif
19484
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490   *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493   (eval "$ac_compile") 2>conftest.er1
19494   ac_status=$?
19495   grep -v '^ *+' conftest.er1 >conftest.err
19496   rm -f conftest.er1
19497   cat conftest.err >&5
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } && {
19500          test -z "$ac_c_werror_flag" ||
19501          test ! -s conftest.err
19502        } && test -s conftest.$ac_objext; then
19503   ac_cv_c_inline=$ac_kw
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508
19509 fi
19510
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512   test "$ac_cv_c_inline" != no && break
19513 done
19514
19515 fi
19516 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19517 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19518
19519
19520 case $ac_cv_c_inline in
19521   inline | yes) ;;
19522   *)
19523     case $ac_cv_c_inline in
19524       no) ac_val=;;
19525       *) ac_val=$ac_cv_c_inline;;
19526     esac
19527     cat >>confdefs.h <<_ACEOF
19528 #ifndef __cplusplus
19529 #define inline $ac_val
19530 #endif
19531 _ACEOF
19532     ;;
19533 esac
19534
19535
19536 { echo "$as_me:$LINENO: checking for short" >&5
19537 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19538 if test "${ac_cv_type_short+set}" = set; then
19539   echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541   cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h.  */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h.  */
19547 $ac_includes_default
19548 typedef short ac__type_new_;
19549 int
19550 main ()
19551 {
19552 if ((ac__type_new_ *) 0)
19553   return 0;
19554 if (sizeof (ac__type_new_))
19555   return 0;
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext
19561 if { (ac_try="$ac_compile"
19562 case "(($ac_try" in
19563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564   *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567   (eval "$ac_compile") 2>conftest.er1
19568   ac_status=$?
19569   grep -v '^ *+' conftest.er1 >conftest.err
19570   rm -f conftest.er1
19571   cat conftest.err >&5
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } && {
19574          test -z "$ac_c_werror_flag" ||
19575          test ! -s conftest.err
19576        } && test -s conftest.$ac_objext; then
19577   ac_cv_type_short=yes
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582         ac_cv_type_short=no
19583 fi
19584
19585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19586 fi
19587 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19588 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19589
19590 # The cast to long int works around a bug in the HP C Compiler
19591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19593 # This bug is HP SR number 8606223364.
19594 { echo "$as_me:$LINENO: checking size of short" >&5
19595 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19596 if test "${ac_cv_sizeof_short+set}" = set; then
19597   echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599   if test "$cross_compiling" = yes; then
19600   # Depending upon the size, compute the lo and hi bounds.
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 $ac_includes_default
19608    typedef short ac__type_sizeof_;
19609 int
19610 main ()
19611 {
19612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19613 test_array [0] = 0
19614
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_compile") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } && {
19633          test -z "$ac_c_werror_flag" ||
19634          test ! -s conftest.err
19635        } && test -s conftest.$ac_objext; then
19636   ac_lo=0 ac_mid=0
19637   while :; do
19638     cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h.  */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h.  */
19644 $ac_includes_default
19645    typedef short ac__type_sizeof_;
19646 int
19647 main ()
19648 {
19649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19650 test_array [0] = 0
19651
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_compile") 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } && {
19670          test -z "$ac_c_werror_flag" ||
19671          test ! -s conftest.err
19672        } && test -s conftest.$ac_objext; then
19673   ac_hi=$ac_mid; break
19674 else
19675   echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678         ac_lo=`expr $ac_mid + 1`
19679                         if test $ac_lo -le $ac_mid; then
19680                           ac_lo= ac_hi=
19681                           break
19682                         fi
19683                         ac_mid=`expr 2 '*' $ac_mid + 1`
19684 fi
19685
19686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19687   done
19688 else
19689   echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692         cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h.  */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h.  */
19698 $ac_includes_default
19699    typedef short ac__type_sizeof_;
19700 int
19701 main ()
19702 {
19703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19704 test_array [0] = 0
19705
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714   *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717   (eval "$ac_compile") 2>conftest.er1
19718   ac_status=$?
19719   grep -v '^ *+' conftest.er1 >conftest.err
19720   rm -f conftest.er1
19721   cat conftest.err >&5
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } && {
19724          test -z "$ac_c_werror_flag" ||
19725          test ! -s conftest.err
19726        } && test -s conftest.$ac_objext; then
19727   ac_hi=-1 ac_mid=-1
19728   while :; do
19729     cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735 $ac_includes_default
19736    typedef short ac__type_sizeof_;
19737 int
19738 main ()
19739 {
19740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19741 test_array [0] = 0
19742
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (ac_try="$ac_compile"
19749 case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_compile") 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } && {
19761          test -z "$ac_c_werror_flag" ||
19762          test ! -s conftest.err
19763        } && test -s conftest.$ac_objext; then
19764   ac_lo=$ac_mid; break
19765 else
19766   echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769         ac_hi=`expr '(' $ac_mid ')' - 1`
19770                         if test $ac_mid -le $ac_hi; then
19771                           ac_lo= ac_hi=
19772                           break
19773                         fi
19774                         ac_mid=`expr 2 '*' $ac_mid`
19775 fi
19776
19777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778   done
19779 else
19780   echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783         ac_lo= ac_hi=
19784 fi
19785
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 fi
19788
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790 # Binary search between lo and hi bounds.
19791 while test "x$ac_lo" != "x$ac_hi"; do
19792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19793   cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 $ac_includes_default
19800    typedef short ac__type_sizeof_;
19801 int
19802 main ()
19803 {
19804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19805 test_array [0] = 0
19806
19807   ;
19808   return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest.$ac_objext
19812 if { (ac_try="$ac_compile"
19813 case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_compile") 2>conftest.er1
19819   ac_status=$?
19820   grep -v '^ *+' conftest.er1 >conftest.err
19821   rm -f conftest.er1
19822   cat conftest.err >&5
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); } && {
19825          test -z "$ac_c_werror_flag" ||
19826          test ! -s conftest.err
19827        } && test -s conftest.$ac_objext; then
19828   ac_hi=$ac_mid
19829 else
19830   echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833         ac_lo=`expr '(' $ac_mid ')' + 1`
19834 fi
19835
19836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 done
19838 case $ac_lo in
19839 ?*) ac_cv_sizeof_short=$ac_lo;;
19840 '') if test "$ac_cv_type_short" = yes; then
19841      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19842 See \`config.log' for more details." >&5
19843 echo "$as_me: error: cannot compute sizeof (short)
19844 See \`config.log' for more details." >&2;}
19845    { (exit 77); exit 77; }; }
19846    else
19847      ac_cv_sizeof_short=0
19848    fi ;;
19849 esac
19850 else
19851   cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h.  */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h.  */
19857 $ac_includes_default
19858    typedef short ac__type_sizeof_;
19859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19861 #include <stdio.h>
19862 #include <stdlib.h>
19863 int
19864 main ()
19865 {
19866
19867   FILE *f = fopen ("conftest.val", "w");
19868   if (! f)
19869     return 1;
19870   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19871     {
19872       long int i = longval ();
19873       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19874         return 1;
19875       fprintf (f, "%ld\n", i);
19876     }
19877   else
19878     {
19879       unsigned long int i = ulongval ();
19880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19881         return 1;
19882       fprintf (f, "%lu\n", i);
19883     }
19884   return ferror (f) || fclose (f) != 0;
19885
19886   ;
19887   return 0;
19888 }
19889 _ACEOF
19890 rm -f conftest$ac_exeext
19891 if { (ac_try="$ac_link"
19892 case "(($ac_try" in
19893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894   *) ac_try_echo=$ac_try;;
19895 esac
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897   (eval "$ac_link") 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19901   { (case "(($ac_try" in
19902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903   *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906   (eval "$ac_try") 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; }; then
19910   ac_cv_sizeof_short=`cat conftest.val`
19911 else
19912   echo "$as_me: program exited with status $ac_status" >&5
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 ( exit $ac_status )
19917 if test "$ac_cv_type_short" = yes; then
19918      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19919 See \`config.log' for more details." >&5
19920 echo "$as_me: error: cannot compute sizeof (short)
19921 See \`config.log' for more details." >&2;}
19922    { (exit 77); exit 77; }; }
19923    else
19924      ac_cv_sizeof_short=0
19925    fi
19926 fi
19927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19928 fi
19929 rm -f conftest.val
19930 fi
19931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19932 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19933
19934
19935
19936 cat >>confdefs.h <<_ACEOF
19937 #define SIZEOF_SHORT $ac_cv_sizeof_short
19938 _ACEOF
19939
19940
19941 { echo "$as_me:$LINENO: checking for void *" >&5
19942 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19943 if test "${ac_cv_type_void_p+set}" = set; then
19944   echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946   cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h.  */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h.  */
19952 $ac_includes_default
19953 typedef void * ac__type_new_;
19954 int
19955 main ()
19956 {
19957 if ((ac__type_new_ *) 0)
19958   return 0;
19959 if (sizeof (ac__type_new_))
19960   return 0;
19961   ;
19962   return 0;
19963 }
19964 _ACEOF
19965 rm -f conftest.$ac_objext
19966 if { (ac_try="$ac_compile"
19967 case "(($ac_try" in
19968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969   *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972   (eval "$ac_compile") 2>conftest.er1
19973   ac_status=$?
19974   grep -v '^ *+' conftest.er1 >conftest.err
19975   rm -f conftest.er1
19976   cat conftest.err >&5
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); } && {
19979          test -z "$ac_c_werror_flag" ||
19980          test ! -s conftest.err
19981        } && test -s conftest.$ac_objext; then
19982   ac_cv_type_void_p=yes
19983 else
19984   echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19986
19987         ac_cv_type_void_p=no
19988 fi
19989
19990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19991 fi
19992 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19993 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19994
19995 # The cast to long int works around a bug in the HP C Compiler
19996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19998 # This bug is HP SR number 8606223364.
19999 { echo "$as_me:$LINENO: checking size of void *" >&5
20000 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20001 if test "${ac_cv_sizeof_void_p+set}" = set; then
20002   echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004   if test "$cross_compiling" = yes; then
20005   # Depending upon the size, compute the lo and hi bounds.
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012 $ac_includes_default
20013    typedef void * ac__type_sizeof_;
20014 int
20015 main ()
20016 {
20017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20018 test_array [0] = 0
20019
20020   ;
20021   return 0;
20022 }
20023 _ACEOF
20024 rm -f conftest.$ac_objext
20025 if { (ac_try="$ac_compile"
20026 case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031   (eval "$ac_compile") 2>conftest.er1
20032   ac_status=$?
20033   grep -v '^ *+' conftest.er1 >conftest.err
20034   rm -f conftest.er1
20035   cat conftest.err >&5
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); } && {
20038          test -z "$ac_c_werror_flag" ||
20039          test ! -s conftest.err
20040        } && test -s conftest.$ac_objext; then
20041   ac_lo=0 ac_mid=0
20042   while :; do
20043     cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 $ac_includes_default
20050    typedef void * ac__type_sizeof_;
20051 int
20052 main ()
20053 {
20054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20055 test_array [0] = 0
20056
20057   ;
20058   return 0;
20059 }
20060 _ACEOF
20061 rm -f conftest.$ac_objext
20062 if { (ac_try="$ac_compile"
20063 case "(($ac_try" in
20064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065   *) ac_try_echo=$ac_try;;
20066 esac
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068   (eval "$ac_compile") 2>conftest.er1
20069   ac_status=$?
20070   grep -v '^ *+' conftest.er1 >conftest.err
20071   rm -f conftest.er1
20072   cat conftest.err >&5
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); } && {
20075          test -z "$ac_c_werror_flag" ||
20076          test ! -s conftest.err
20077        } && test -s conftest.$ac_objext; then
20078   ac_hi=$ac_mid; break
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083         ac_lo=`expr $ac_mid + 1`
20084                         if test $ac_lo -le $ac_mid; then
20085                           ac_lo= ac_hi=
20086                           break
20087                         fi
20088                         ac_mid=`expr 2 '*' $ac_mid + 1`
20089 fi
20090
20091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20092   done
20093 else
20094   echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20096
20097         cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h.  */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h.  */
20103 $ac_includes_default
20104    typedef void * ac__type_sizeof_;
20105 int
20106 main ()
20107 {
20108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20109 test_array [0] = 0
20110
20111   ;
20112   return 0;
20113 }
20114 _ACEOF
20115 rm -f conftest.$ac_objext
20116 if { (ac_try="$ac_compile"
20117 case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122   (eval "$ac_compile") 2>conftest.er1
20123   ac_status=$?
20124   grep -v '^ *+' conftest.er1 >conftest.err
20125   rm -f conftest.er1
20126   cat conftest.err >&5
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); } && {
20129          test -z "$ac_c_werror_flag" ||
20130          test ! -s conftest.err
20131        } && test -s conftest.$ac_objext; then
20132   ac_hi=-1 ac_mid=-1
20133   while :; do
20134     cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 $ac_includes_default
20141    typedef void * ac__type_sizeof_;
20142 int
20143 main ()
20144 {
20145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20146 test_array [0] = 0
20147
20148   ;
20149   return 0;
20150 }
20151 _ACEOF
20152 rm -f conftest.$ac_objext
20153 if { (ac_try="$ac_compile"
20154 case "(($ac_try" in
20155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156   *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159   (eval "$ac_compile") 2>conftest.er1
20160   ac_status=$?
20161   grep -v '^ *+' conftest.er1 >conftest.err
20162   rm -f conftest.er1
20163   cat conftest.err >&5
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); } && {
20166          test -z "$ac_c_werror_flag" ||
20167          test ! -s conftest.err
20168        } && test -s conftest.$ac_objext; then
20169   ac_lo=$ac_mid; break
20170 else
20171   echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20173
20174         ac_hi=`expr '(' $ac_mid ')' - 1`
20175                         if test $ac_mid -le $ac_hi; then
20176                           ac_lo= ac_hi=
20177                           break
20178                         fi
20179                         ac_mid=`expr 2 '*' $ac_mid`
20180 fi
20181
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183   done
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188         ac_lo= ac_hi=
20189 fi
20190
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 fi
20193
20194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20195 # Binary search between lo and hi bounds.
20196 while test "x$ac_lo" != "x$ac_hi"; do
20197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20198   cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 $ac_includes_default
20205    typedef void * ac__type_sizeof_;
20206 int
20207 main ()
20208 {
20209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20210 test_array [0] = 0
20211
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_compile") 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && {
20230          test -z "$ac_c_werror_flag" ||
20231          test ! -s conftest.err
20232        } && test -s conftest.$ac_objext; then
20233   ac_hi=$ac_mid
20234 else
20235   echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238         ac_lo=`expr '(' $ac_mid ')' + 1`
20239 fi
20240
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242 done
20243 case $ac_lo in
20244 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20245 '') if test "$ac_cv_type_void_p" = yes; then
20246      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20247 See \`config.log' for more details." >&5
20248 echo "$as_me: error: cannot compute sizeof (void *)
20249 See \`config.log' for more details." >&2;}
20250    { (exit 77); exit 77; }; }
20251    else
20252      ac_cv_sizeof_void_p=0
20253    fi ;;
20254 esac
20255 else
20256   cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262 $ac_includes_default
20263    typedef void * ac__type_sizeof_;
20264 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20265 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20266 #include <stdio.h>
20267 #include <stdlib.h>
20268 int
20269 main ()
20270 {
20271
20272   FILE *f = fopen ("conftest.val", "w");
20273   if (! f)
20274     return 1;
20275   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20276     {
20277       long int i = longval ();
20278       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20279         return 1;
20280       fprintf (f, "%ld\n", i);
20281     }
20282   else
20283     {
20284       unsigned long int i = ulongval ();
20285       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20286         return 1;
20287       fprintf (f, "%lu\n", i);
20288     }
20289   return ferror (f) || fclose (f) != 0;
20290
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299   *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302   (eval "$ac_link") 2>&5
20303   ac_status=$?
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20306   { (case "(($ac_try" in
20307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308   *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311   (eval "$ac_try") 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   ac_cv_sizeof_void_p=`cat conftest.val`
20316 else
20317   echo "$as_me: program exited with status $ac_status" >&5
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20320
20321 ( exit $ac_status )
20322 if test "$ac_cv_type_void_p" = yes; then
20323      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20324 See \`config.log' for more details." >&5
20325 echo "$as_me: error: cannot compute sizeof (void *)
20326 See \`config.log' for more details." >&2;}
20327    { (exit 77); exit 77; }; }
20328    else
20329      ac_cv_sizeof_void_p=0
20330    fi
20331 fi
20332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20333 fi
20334 rm -f conftest.val
20335 fi
20336 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20337 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20338
20339
20340
20341 cat >>confdefs.h <<_ACEOF
20342 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20343 _ACEOF
20344
20345
20346 { echo "$as_me:$LINENO: checking for int" >&5
20347 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20348 if test "${ac_cv_type_int+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357 $ac_includes_default
20358 typedef int ac__type_new_;
20359 int
20360 main ()
20361 {
20362 if ((ac__type_new_ *) 0)
20363   return 0;
20364 if (sizeof (ac__type_new_))
20365   return 0;
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext
20371 if { (ac_try="$ac_compile"
20372 case "(($ac_try" in
20373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374   *) ac_try_echo=$ac_try;;
20375 esac
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377   (eval "$ac_compile") 2>conftest.er1
20378   ac_status=$?
20379   grep -v '^ *+' conftest.er1 >conftest.err
20380   rm -f conftest.er1
20381   cat conftest.err >&5
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); } && {
20384          test -z "$ac_c_werror_flag" ||
20385          test ! -s conftest.err
20386        } && test -s conftest.$ac_objext; then
20387   ac_cv_type_int=yes
20388 else
20389   echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20391
20392         ac_cv_type_int=no
20393 fi
20394
20395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20396 fi
20397 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20398 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20399
20400 # The cast to long int works around a bug in the HP C Compiler
20401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20403 # This bug is HP SR number 8606223364.
20404 { echo "$as_me:$LINENO: checking size of int" >&5
20405 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20406 if test "${ac_cv_sizeof_int+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   if test "$cross_compiling" = yes; then
20410   # Depending upon the size, compute the lo and hi bounds.
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 $ac_includes_default
20418    typedef int ac__type_sizeof_;
20419 int
20420 main ()
20421 {
20422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20423 test_array [0] = 0
20424
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (ac_try="$ac_compile"
20431 case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_compile") 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } && {
20443          test -z "$ac_c_werror_flag" ||
20444          test ! -s conftest.err
20445        } && test -s conftest.$ac_objext; then
20446   ac_lo=0 ac_mid=0
20447   while :; do
20448     cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454 $ac_includes_default
20455    typedef int ac__type_sizeof_;
20456 int
20457 main ()
20458 {
20459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20460 test_array [0] = 0
20461
20462   ;
20463   return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (ac_try="$ac_compile"
20468 case "(($ac_try" in
20469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470   *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473   (eval "$ac_compile") 2>conftest.er1
20474   ac_status=$?
20475   grep -v '^ *+' conftest.er1 >conftest.err
20476   rm -f conftest.er1
20477   cat conftest.err >&5
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } && {
20480          test -z "$ac_c_werror_flag" ||
20481          test ! -s conftest.err
20482        } && test -s conftest.$ac_objext; then
20483   ac_hi=$ac_mid; break
20484 else
20485   echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488         ac_lo=`expr $ac_mid + 1`
20489                         if test $ac_lo -le $ac_mid; then
20490                           ac_lo= ac_hi=
20491                           break
20492                         fi
20493                         ac_mid=`expr 2 '*' $ac_mid + 1`
20494 fi
20495
20496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497   done
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502         cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508 $ac_includes_default
20509    typedef int ac__type_sizeof_;
20510 int
20511 main ()
20512 {
20513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20514 test_array [0] = 0
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_compile") 2>conftest.er1
20528   ac_status=$?
20529   grep -v '^ *+' conftest.er1 >conftest.err
20530   rm -f conftest.er1
20531   cat conftest.err >&5
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); } && {
20534          test -z "$ac_c_werror_flag" ||
20535          test ! -s conftest.err
20536        } && test -s conftest.$ac_objext; then
20537   ac_hi=-1 ac_mid=-1
20538   while :; do
20539     cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545 $ac_includes_default
20546    typedef int ac__type_sizeof_;
20547 int
20548 main ()
20549 {
20550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20551 test_array [0] = 0
20552
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_compile") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } && {
20571          test -z "$ac_c_werror_flag" ||
20572          test ! -s conftest.err
20573        } && test -s conftest.$ac_objext; then
20574   ac_lo=$ac_mid; break
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579         ac_hi=`expr '(' $ac_mid ')' - 1`
20580                         if test $ac_mid -le $ac_hi; then
20581                           ac_lo= ac_hi=
20582                           break
20583                         fi
20584                         ac_mid=`expr 2 '*' $ac_mid`
20585 fi
20586
20587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20588   done
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593         ac_lo= ac_hi=
20594 fi
20595
20596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597 fi
20598
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 # Binary search between lo and hi bounds.
20601 while test "x$ac_lo" != "x$ac_hi"; do
20602   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20603   cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h.  */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h.  */
20609 $ac_includes_default
20610    typedef int ac__type_sizeof_;
20611 int
20612 main ()
20613 {
20614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20615 test_array [0] = 0
20616
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_compile") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } && {
20635          test -z "$ac_c_werror_flag" ||
20636          test ! -s conftest.err
20637        } && test -s conftest.$ac_objext; then
20638   ac_hi=$ac_mid
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         ac_lo=`expr '(' $ac_mid ')' + 1`
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 done
20648 case $ac_lo in
20649 ?*) ac_cv_sizeof_int=$ac_lo;;
20650 '') if test "$ac_cv_type_int" = yes; then
20651      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20652 See \`config.log' for more details." >&5
20653 echo "$as_me: error: cannot compute sizeof (int)
20654 See \`config.log' for more details." >&2;}
20655    { (exit 77); exit 77; }; }
20656    else
20657      ac_cv_sizeof_int=0
20658    fi ;;
20659 esac
20660 else
20661   cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 $ac_includes_default
20668    typedef int ac__type_sizeof_;
20669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20671 #include <stdio.h>
20672 #include <stdlib.h>
20673 int
20674 main ()
20675 {
20676
20677   FILE *f = fopen ("conftest.val", "w");
20678   if (! f)
20679     return 1;
20680   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20681     {
20682       long int i = longval ();
20683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20684         return 1;
20685       fprintf (f, "%ld\n", i);
20686     }
20687   else
20688     {
20689       unsigned long int i = ulongval ();
20690       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20691         return 1;
20692       fprintf (f, "%lu\n", i);
20693     }
20694   return ferror (f) || fclose (f) != 0;
20695
20696   ;
20697   return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704   *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707   (eval "$ac_link") 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20711   { (case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_try") 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   ac_cv_sizeof_int=`cat conftest.val`
20721 else
20722   echo "$as_me: program exited with status $ac_status" >&5
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726 ( exit $ac_status )
20727 if test "$ac_cv_type_int" = yes; then
20728      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20729 See \`config.log' for more details." >&5
20730 echo "$as_me: error: cannot compute sizeof (int)
20731 See \`config.log' for more details." >&2;}
20732    { (exit 77); exit 77; }; }
20733    else
20734      ac_cv_sizeof_int=0
20735    fi
20736 fi
20737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20738 fi
20739 rm -f conftest.val
20740 fi
20741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20742 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20743
20744
20745
20746 cat >>confdefs.h <<_ACEOF
20747 #define SIZEOF_INT $ac_cv_sizeof_int
20748 _ACEOF
20749
20750
20751 { echo "$as_me:$LINENO: checking for long" >&5
20752 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20753 if test "${ac_cv_type_long+set}" = set; then
20754   echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756   cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762 $ac_includes_default
20763 typedef long ac__type_new_;
20764 int
20765 main ()
20766 {
20767 if ((ac__type_new_ *) 0)
20768   return 0;
20769 if (sizeof (ac__type_new_))
20770   return 0;
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_compile") 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } && {
20789          test -z "$ac_c_werror_flag" ||
20790          test ! -s conftest.err
20791        } && test -s conftest.$ac_objext; then
20792   ac_cv_type_long=yes
20793 else
20794   echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797         ac_cv_type_long=no
20798 fi
20799
20800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801 fi
20802 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20803 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20804
20805 # The cast to long int works around a bug in the HP C Compiler
20806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20808 # This bug is HP SR number 8606223364.
20809 { echo "$as_me:$LINENO: checking size of long" >&5
20810 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20811 if test "${ac_cv_sizeof_long+set}" = set; then
20812   echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814   if test "$cross_compiling" = yes; then
20815   # Depending upon the size, compute the lo and hi bounds.
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822 $ac_includes_default
20823    typedef long ac__type_sizeof_;
20824 int
20825 main ()
20826 {
20827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20828 test_array [0] = 0
20829
20830   ;
20831   return 0;
20832 }
20833 _ACEOF
20834 rm -f conftest.$ac_objext
20835 if { (ac_try="$ac_compile"
20836 case "(($ac_try" in
20837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838   *) ac_try_echo=$ac_try;;
20839 esac
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841   (eval "$ac_compile") 2>conftest.er1
20842   ac_status=$?
20843   grep -v '^ *+' conftest.er1 >conftest.err
20844   rm -f conftest.er1
20845   cat conftest.err >&5
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } && {
20848          test -z "$ac_c_werror_flag" ||
20849          test ! -s conftest.err
20850        } && test -s conftest.$ac_objext; then
20851   ac_lo=0 ac_mid=0
20852   while :; do
20853     cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h.  */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h.  */
20859 $ac_includes_default
20860    typedef long ac__type_sizeof_;
20861 int
20862 main ()
20863 {
20864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20865 test_array [0] = 0
20866
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_compile") 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } && {
20885          test -z "$ac_c_werror_flag" ||
20886          test ! -s conftest.err
20887        } && test -s conftest.$ac_objext; then
20888   ac_hi=$ac_mid; break
20889 else
20890   echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893         ac_lo=`expr $ac_mid + 1`
20894                         if test $ac_lo -le $ac_mid; then
20895                           ac_lo= ac_hi=
20896                           break
20897                         fi
20898                         ac_mid=`expr 2 '*' $ac_mid + 1`
20899 fi
20900
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902   done
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907         cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 $ac_includes_default
20914    typedef long ac__type_sizeof_;
20915 int
20916 main ()
20917 {
20918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20919 test_array [0] = 0
20920
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929   *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932   (eval "$ac_compile") 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } && {
20939          test -z "$ac_c_werror_flag" ||
20940          test ! -s conftest.err
20941        } && test -s conftest.$ac_objext; then
20942   ac_hi=-1 ac_mid=-1
20943   while :; do
20944     cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 $ac_includes_default
20951    typedef long ac__type_sizeof_;
20952 int
20953 main ()
20954 {
20955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20956 test_array [0] = 0
20957
20958   ;
20959   return 0;
20960 }
20961 _ACEOF
20962 rm -f conftest.$ac_objext
20963 if { (ac_try="$ac_compile"
20964 case "(($ac_try" in
20965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966   *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969   (eval "$ac_compile") 2>conftest.er1
20970   ac_status=$?
20971   grep -v '^ *+' conftest.er1 >conftest.err
20972   rm -f conftest.er1
20973   cat conftest.err >&5
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); } && {
20976          test -z "$ac_c_werror_flag" ||
20977          test ! -s conftest.err
20978        } && test -s conftest.$ac_objext; then
20979   ac_lo=$ac_mid; break
20980 else
20981   echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984         ac_hi=`expr '(' $ac_mid ')' - 1`
20985                         if test $ac_mid -le $ac_hi; then
20986                           ac_lo= ac_hi=
20987                           break
20988                         fi
20989                         ac_mid=`expr 2 '*' $ac_mid`
20990 fi
20991
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993   done
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998         ac_lo= ac_hi=
20999 fi
21000
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 fi
21003
21004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 # Binary search between lo and hi bounds.
21006 while test "x$ac_lo" != "x$ac_hi"; do
21007   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21008   cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h.  */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h.  */
21014 $ac_includes_default
21015    typedef long ac__type_sizeof_;
21016 int
21017 main ()
21018 {
21019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21020 test_array [0] = 0
21021
21022   ;
21023   return 0;
21024 }
21025 _ACEOF
21026 rm -f conftest.$ac_objext
21027 if { (ac_try="$ac_compile"
21028 case "(($ac_try" in
21029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030   *) ac_try_echo=$ac_try;;
21031 esac
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033   (eval "$ac_compile") 2>conftest.er1
21034   ac_status=$?
21035   grep -v '^ *+' conftest.er1 >conftest.err
21036   rm -f conftest.er1
21037   cat conftest.err >&5
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); } && {
21040          test -z "$ac_c_werror_flag" ||
21041          test ! -s conftest.err
21042        } && test -s conftest.$ac_objext; then
21043   ac_hi=$ac_mid
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048         ac_lo=`expr '(' $ac_mid ')' + 1`
21049 fi
21050
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 done
21053 case $ac_lo in
21054 ?*) ac_cv_sizeof_long=$ac_lo;;
21055 '') if test "$ac_cv_type_long" = yes; then
21056      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21057 See \`config.log' for more details." >&5
21058 echo "$as_me: error: cannot compute sizeof (long)
21059 See \`config.log' for more details." >&2;}
21060    { (exit 77); exit 77; }; }
21061    else
21062      ac_cv_sizeof_long=0
21063    fi ;;
21064 esac
21065 else
21066   cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h.  */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h.  */
21072 $ac_includes_default
21073    typedef long ac__type_sizeof_;
21074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21076 #include <stdio.h>
21077 #include <stdlib.h>
21078 int
21079 main ()
21080 {
21081
21082   FILE *f = fopen ("conftest.val", "w");
21083   if (! f)
21084     return 1;
21085   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21086     {
21087       long int i = longval ();
21088       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21089         return 1;
21090       fprintf (f, "%ld\n", i);
21091     }
21092   else
21093     {
21094       unsigned long int i = ulongval ();
21095       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21096         return 1;
21097       fprintf (f, "%lu\n", i);
21098     }
21099   return ferror (f) || fclose (f) != 0;
21100
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest$ac_exeext
21106 if { (ac_try="$ac_link"
21107 case "(($ac_try" in
21108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109   *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112   (eval "$ac_link") 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21116   { (case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_try") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; }; then
21125   ac_cv_sizeof_long=`cat conftest.val`
21126 else
21127   echo "$as_me: program exited with status $ac_status" >&5
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131 ( exit $ac_status )
21132 if test "$ac_cv_type_long" = yes; then
21133      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21134 See \`config.log' for more details." >&5
21135 echo "$as_me: error: cannot compute sizeof (long)
21136 See \`config.log' for more details." >&2;}
21137    { (exit 77); exit 77; }; }
21138    else
21139      ac_cv_sizeof_long=0
21140    fi
21141 fi
21142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21143 fi
21144 rm -f conftest.val
21145 fi
21146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21147 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21148
21149
21150
21151 cat >>confdefs.h <<_ACEOF
21152 #define SIZEOF_LONG $ac_cv_sizeof_long
21153 _ACEOF
21154
21155
21156 { echo "$as_me:$LINENO: checking for size_t" >&5
21157 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21158 if test "${ac_cv_type_size_t+set}" = set; then
21159   echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161   cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 $ac_includes_default
21168 typedef size_t ac__type_new_;
21169 int
21170 main ()
21171 {
21172 if ((ac__type_new_ *) 0)
21173   return 0;
21174 if (sizeof (ac__type_new_))
21175   return 0;
21176   ;
21177   return 0;
21178 }
21179 _ACEOF
21180 rm -f conftest.$ac_objext
21181 if { (ac_try="$ac_compile"
21182 case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_compile") 2>conftest.er1
21188   ac_status=$?
21189   grep -v '^ *+' conftest.er1 >conftest.err
21190   rm -f conftest.er1
21191   cat conftest.err >&5
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); } && {
21194          test -z "$ac_c_werror_flag" ||
21195          test ! -s conftest.err
21196        } && test -s conftest.$ac_objext; then
21197   ac_cv_type_size_t=yes
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202         ac_cv_type_size_t=no
21203 fi
21204
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 fi
21207 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21208 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21209
21210 # The cast to long int works around a bug in the HP C Compiler
21211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21213 # This bug is HP SR number 8606223364.
21214 { echo "$as_me:$LINENO: checking size of size_t" >&5
21215 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21216 if test "${ac_cv_sizeof_size_t+set}" = set; then
21217   echo $ECHO_N "(cached) $ECHO_C" >&6
21218 else
21219   if test "$cross_compiling" = yes; then
21220   # Depending upon the size, compute the lo and hi bounds.
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h.  */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h.  */
21227 $ac_includes_default
21228    typedef size_t ac__type_sizeof_;
21229 int
21230 main ()
21231 {
21232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21233 test_array [0] = 0
21234
21235   ;
21236   return 0;
21237 }
21238 _ACEOF
21239 rm -f conftest.$ac_objext
21240 if { (ac_try="$ac_compile"
21241 case "(($ac_try" in
21242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243   *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246   (eval "$ac_compile") 2>conftest.er1
21247   ac_status=$?
21248   grep -v '^ *+' conftest.er1 >conftest.err
21249   rm -f conftest.er1
21250   cat conftest.err >&5
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } && {
21253          test -z "$ac_c_werror_flag" ||
21254          test ! -s conftest.err
21255        } && test -s conftest.$ac_objext; then
21256   ac_lo=0 ac_mid=0
21257   while :; do
21258     cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 $ac_includes_default
21265    typedef size_t ac__type_sizeof_;
21266 int
21267 main ()
21268 {
21269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21270 test_array [0] = 0
21271
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (ac_try="$ac_compile"
21278 case "(($ac_try" in
21279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280   *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283   (eval "$ac_compile") 2>conftest.er1
21284   ac_status=$?
21285   grep -v '^ *+' conftest.er1 >conftest.err
21286   rm -f conftest.er1
21287   cat conftest.err >&5
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); } && {
21290          test -z "$ac_c_werror_flag" ||
21291          test ! -s conftest.err
21292        } && test -s conftest.$ac_objext; then
21293   ac_hi=$ac_mid; break
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298         ac_lo=`expr $ac_mid + 1`
21299                         if test $ac_lo -le $ac_mid; then
21300                           ac_lo= ac_hi=
21301                           break
21302                         fi
21303                         ac_mid=`expr 2 '*' $ac_mid + 1`
21304 fi
21305
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307   done
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312         cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h.  */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h.  */
21318 $ac_includes_default
21319    typedef size_t ac__type_sizeof_;
21320 int
21321 main ()
21322 {
21323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21324 test_array [0] = 0
21325
21326   ;
21327   return 0;
21328 }
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337   (eval "$ac_compile") 2>conftest.er1
21338   ac_status=$?
21339   grep -v '^ *+' conftest.er1 >conftest.err
21340   rm -f conftest.er1
21341   cat conftest.err >&5
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); } && {
21344          test -z "$ac_c_werror_flag" ||
21345          test ! -s conftest.err
21346        } && test -s conftest.$ac_objext; then
21347   ac_hi=-1 ac_mid=-1
21348   while :; do
21349     cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h.  */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h.  */
21355 $ac_includes_default
21356    typedef size_t ac__type_sizeof_;
21357 int
21358 main ()
21359 {
21360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21361 test_array [0] = 0
21362
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (ac_try="$ac_compile"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_compile") 2>conftest.er1
21375   ac_status=$?
21376   grep -v '^ *+' conftest.er1 >conftest.err
21377   rm -f conftest.er1
21378   cat conftest.err >&5
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } && {
21381          test -z "$ac_c_werror_flag" ||
21382          test ! -s conftest.err
21383        } && test -s conftest.$ac_objext; then
21384   ac_lo=$ac_mid; break
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389         ac_hi=`expr '(' $ac_mid ')' - 1`
21390                         if test $ac_mid -le $ac_hi; then
21391                           ac_lo= ac_hi=
21392                           break
21393                         fi
21394                         ac_mid=`expr 2 '*' $ac_mid`
21395 fi
21396
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398   done
21399 else
21400   echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21402
21403         ac_lo= ac_hi=
21404 fi
21405
21406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 fi
21408
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 # Binary search between lo and hi bounds.
21411 while test "x$ac_lo" != "x$ac_hi"; do
21412   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21413   cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419 $ac_includes_default
21420    typedef size_t ac__type_sizeof_;
21421 int
21422 main ()
21423 {
21424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21425 test_array [0] = 0
21426
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_compile") 2>conftest.er1
21439   ac_status=$?
21440   grep -v '^ *+' conftest.er1 >conftest.err
21441   rm -f conftest.er1
21442   cat conftest.err >&5
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } && {
21445          test -z "$ac_c_werror_flag" ||
21446          test ! -s conftest.err
21447        } && test -s conftest.$ac_objext; then
21448   ac_hi=$ac_mid
21449 else
21450   echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453         ac_lo=`expr '(' $ac_mid ')' + 1`
21454 fi
21455
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 done
21458 case $ac_lo in
21459 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21460 '') if test "$ac_cv_type_size_t" = yes; then
21461      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21462 See \`config.log' for more details." >&5
21463 echo "$as_me: error: cannot compute sizeof (size_t)
21464 See \`config.log' for more details." >&2;}
21465    { (exit 77); exit 77; }; }
21466    else
21467      ac_cv_sizeof_size_t=0
21468    fi ;;
21469 esac
21470 else
21471   cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 $ac_includes_default
21478    typedef size_t ac__type_sizeof_;
21479 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21480 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21481 #include <stdio.h>
21482 #include <stdlib.h>
21483 int
21484 main ()
21485 {
21486
21487   FILE *f = fopen ("conftest.val", "w");
21488   if (! f)
21489     return 1;
21490   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21491     {
21492       long int i = longval ();
21493       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21494         return 1;
21495       fprintf (f, "%ld\n", i);
21496     }
21497   else
21498     {
21499       unsigned long int i = ulongval ();
21500       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21501         return 1;
21502       fprintf (f, "%lu\n", i);
21503     }
21504   return ferror (f) || fclose (f) != 0;
21505
21506   ;
21507   return 0;
21508 }
21509 _ACEOF
21510 rm -f conftest$ac_exeext
21511 if { (ac_try="$ac_link"
21512 case "(($ac_try" in
21513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514   *) ac_try_echo=$ac_try;;
21515 esac
21516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21517   (eval "$ac_link") 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21521   { (case "(($ac_try" in
21522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523   *) ac_try_echo=$ac_try;;
21524 esac
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526   (eval "$ac_try") 2>&5
21527   ac_status=$?
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); }; }; then
21530   ac_cv_sizeof_size_t=`cat conftest.val`
21531 else
21532   echo "$as_me: program exited with status $ac_status" >&5
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536 ( exit $ac_status )
21537 if test "$ac_cv_type_size_t" = yes; then
21538      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21539 See \`config.log' for more details." >&5
21540 echo "$as_me: error: cannot compute sizeof (size_t)
21541 See \`config.log' for more details." >&2;}
21542    { (exit 77); exit 77; }; }
21543    else
21544      ac_cv_sizeof_size_t=0
21545    fi
21546 fi
21547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21548 fi
21549 rm -f conftest.val
21550 fi
21551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21552 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21553
21554
21555
21556 cat >>confdefs.h <<_ACEOF
21557 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21558 _ACEOF
21559
21560
21561
21562 case "${host}" in
21563     arm-*-linux* )
21564         { echo "$as_me:$LINENO: checking for long long" >&5
21565 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21566 if test "${ac_cv_type_long_long+set}" = set; then
21567   echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569   cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 $ac_includes_default
21576 typedef long long ac__type_new_;
21577 int
21578 main ()
21579 {
21580 if ((ac__type_new_ *) 0)
21581   return 0;
21582 if (sizeof (ac__type_new_))
21583   return 0;
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_c_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   ac_cv_type_long_long=yes
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610         ac_cv_type_long_long=no
21611 fi
21612
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 fi
21615 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21616 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21617
21618 # The cast to long int works around a bug in the HP C Compiler
21619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21621 # This bug is HP SR number 8606223364.
21622 { echo "$as_me:$LINENO: checking size of long long" >&5
21623 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21624 if test "${ac_cv_sizeof_long_long+set}" = set; then
21625   echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627   if test "$cross_compiling" = yes; then
21628   # Depending upon the size, compute the lo and hi bounds.
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635 $ac_includes_default
21636    typedef long long ac__type_sizeof_;
21637 int
21638 main ()
21639 {
21640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21641 test_array [0] = 0
21642
21643   ;
21644   return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest.$ac_objext
21648 if { (ac_try="$ac_compile"
21649 case "(($ac_try" in
21650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651   *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654   (eval "$ac_compile") 2>conftest.er1
21655   ac_status=$?
21656   grep -v '^ *+' conftest.er1 >conftest.err
21657   rm -f conftest.er1
21658   cat conftest.err >&5
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } && {
21661          test -z "$ac_c_werror_flag" ||
21662          test ! -s conftest.err
21663        } && test -s conftest.$ac_objext; then
21664   ac_lo=0 ac_mid=0
21665   while :; do
21666     cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h.  */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h.  */
21672 $ac_includes_default
21673    typedef long long ac__type_sizeof_;
21674 int
21675 main ()
21676 {
21677 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21678 test_array [0] = 0
21679
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688   *) ac_try_echo=$ac_try;;
21689 esac
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691   (eval "$ac_compile") 2>conftest.er1
21692   ac_status=$?
21693   grep -v '^ *+' conftest.er1 >conftest.err
21694   rm -f conftest.er1
21695   cat conftest.err >&5
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); } && {
21698          test -z "$ac_c_werror_flag" ||
21699          test ! -s conftest.err
21700        } && test -s conftest.$ac_objext; then
21701   ac_hi=$ac_mid; break
21702 else
21703   echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706         ac_lo=`expr $ac_mid + 1`
21707                         if test $ac_lo -le $ac_mid; then
21708                           ac_lo= ac_hi=
21709                           break
21710                         fi
21711                         ac_mid=`expr 2 '*' $ac_mid + 1`
21712 fi
21713
21714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21715   done
21716 else
21717   echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21719
21720         cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h.  */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h.  */
21726 $ac_includes_default
21727    typedef long long ac__type_sizeof_;
21728 int
21729 main ()
21730 {
21731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21732 test_array [0] = 0
21733
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 rm -f conftest.$ac_objext
21739 if { (ac_try="$ac_compile"
21740 case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_compile") 2>conftest.er1
21746   ac_status=$?
21747   grep -v '^ *+' conftest.er1 >conftest.err
21748   rm -f conftest.er1
21749   cat conftest.err >&5
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && {
21752          test -z "$ac_c_werror_flag" ||
21753          test ! -s conftest.err
21754        } && test -s conftest.$ac_objext; then
21755   ac_hi=-1 ac_mid=-1
21756   while :; do
21757     cat >conftest.$ac_ext <<_ACEOF
21758 /* confdefs.h.  */
21759 _ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h.  */
21763 $ac_includes_default
21764    typedef long long ac__type_sizeof_;
21765 int
21766 main ()
21767 {
21768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21769 test_array [0] = 0
21770
21771   ;
21772   return 0;
21773 }
21774 _ACEOF
21775 rm -f conftest.$ac_objext
21776 if { (ac_try="$ac_compile"
21777 case "(($ac_try" in
21778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779   *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782   (eval "$ac_compile") 2>conftest.er1
21783   ac_status=$?
21784   grep -v '^ *+' conftest.er1 >conftest.err
21785   rm -f conftest.er1
21786   cat conftest.err >&5
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); } && {
21789          test -z "$ac_c_werror_flag" ||
21790          test ! -s conftest.err
21791        } && test -s conftest.$ac_objext; then
21792   ac_lo=$ac_mid; break
21793 else
21794   echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21796
21797         ac_hi=`expr '(' $ac_mid ')' - 1`
21798                         if test $ac_mid -le $ac_hi; then
21799                           ac_lo= ac_hi=
21800                           break
21801                         fi
21802                         ac_mid=`expr 2 '*' $ac_mid`
21803 fi
21804
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806   done
21807 else
21808   echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811         ac_lo= ac_hi=
21812 fi
21813
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 fi
21816
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 # Binary search between lo and hi bounds.
21819 while test "x$ac_lo" != "x$ac_hi"; do
21820   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21821   cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h.  */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h.  */
21827 $ac_includes_default
21828    typedef long long ac__type_sizeof_;
21829 int
21830 main ()
21831 {
21832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21833 test_array [0] = 0
21834
21835   ;
21836   return 0;
21837 }
21838 _ACEOF
21839 rm -f conftest.$ac_objext
21840 if { (ac_try="$ac_compile"
21841 case "(($ac_try" in
21842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843   *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846   (eval "$ac_compile") 2>conftest.er1
21847   ac_status=$?
21848   grep -v '^ *+' conftest.er1 >conftest.err
21849   rm -f conftest.er1
21850   cat conftest.err >&5
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); } && {
21853          test -z "$ac_c_werror_flag" ||
21854          test ! -s conftest.err
21855        } && test -s conftest.$ac_objext; then
21856   ac_hi=$ac_mid
21857 else
21858   echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861         ac_lo=`expr '(' $ac_mid ')' + 1`
21862 fi
21863
21864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21865 done
21866 case $ac_lo in
21867 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21868 '') if test "$ac_cv_type_long_long" = yes; then
21869      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21870 See \`config.log' for more details." >&5
21871 echo "$as_me: error: cannot compute sizeof (long long)
21872 See \`config.log' for more details." >&2;}
21873    { (exit 77); exit 77; }; }
21874    else
21875      ac_cv_sizeof_long_long=0
21876    fi ;;
21877 esac
21878 else
21879   cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885 $ac_includes_default
21886    typedef long long ac__type_sizeof_;
21887 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21888 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21889 #include <stdio.h>
21890 #include <stdlib.h>
21891 int
21892 main ()
21893 {
21894
21895   FILE *f = fopen ("conftest.val", "w");
21896   if (! f)
21897     return 1;
21898   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21899     {
21900       long int i = longval ();
21901       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21902         return 1;
21903       fprintf (f, "%ld\n", i);
21904     }
21905   else
21906     {
21907       unsigned long int i = ulongval ();
21908       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21909         return 1;
21910       fprintf (f, "%lu\n", i);
21911     }
21912   return ferror (f) || fclose (f) != 0;
21913
21914   ;
21915   return 0;
21916 }
21917 _ACEOF
21918 rm -f conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_link") 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21929   { (case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934   (eval "$ac_try") 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; }; then
21938   ac_cv_sizeof_long_long=`cat conftest.val`
21939 else
21940   echo "$as_me: program exited with status $ac_status" >&5
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944 ( exit $ac_status )
21945 if test "$ac_cv_type_long_long" = yes; then
21946      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21947 See \`config.log' for more details." >&5
21948 echo "$as_me: error: cannot compute sizeof (long long)
21949 See \`config.log' for more details." >&2;}
21950    { (exit 77); exit 77; }; }
21951    else
21952      ac_cv_sizeof_long_long=0
21953    fi
21954 fi
21955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21956 fi
21957 rm -f conftest.val
21958 fi
21959 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21960 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21961
21962
21963
21964 cat >>confdefs.h <<_ACEOF
21965 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21966 _ACEOF
21967
21968
21969     ;;
21970     *-hp-hpux* )
21971         { echo "$as_me:$LINENO: checking for long long" >&5
21972 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21973 if test "${ac_cv_type_long_long+set}" = set; then
21974   echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976   cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h.  */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h.  */
21982 $ac_includes_default
21983 typedef long long ac__type_new_;
21984 int
21985 main ()
21986 {
21987 if ((ac__type_new_ *) 0)
21988   return 0;
21989 if (sizeof (ac__type_new_))
21990   return 0;
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 rm -f conftest.$ac_objext
21996 if { (ac_try="$ac_compile"
21997 case "(($ac_try" in
21998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999   *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002   (eval "$ac_compile") 2>conftest.er1
22003   ac_status=$?
22004   grep -v '^ *+' conftest.er1 >conftest.err
22005   rm -f conftest.er1
22006   cat conftest.err >&5
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); } && {
22009          test -z "$ac_c_werror_flag" ||
22010          test ! -s conftest.err
22011        } && test -s conftest.$ac_objext; then
22012   ac_cv_type_long_long=yes
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017         ac_cv_type_long_long=no
22018 fi
22019
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 fi
22022 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22023 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22024
22025 # The cast to long int works around a bug in the HP C Compiler
22026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22028 # This bug is HP SR number 8606223364.
22029 { echo "$as_me:$LINENO: checking size of long long" >&5
22030 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22031 if test "${ac_cv_sizeof_long_long+set}" = set; then
22032   echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034   if test "$cross_compiling" = yes; then
22035   # Depending upon the size, compute the lo and hi bounds.
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042 $ac_includes_default
22043    typedef long long ac__type_sizeof_;
22044 int
22045 main ()
22046 {
22047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22048 test_array [0] = 0
22049
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_compile") 2>conftest.er1
22062   ac_status=$?
22063   grep -v '^ *+' conftest.er1 >conftest.err
22064   rm -f conftest.er1
22065   cat conftest.err >&5
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); } && {
22068          test -z "$ac_c_werror_flag" ||
22069          test ! -s conftest.err
22070        } && test -s conftest.$ac_objext; then
22071   ac_lo=0 ac_mid=0
22072   while :; do
22073     cat >conftest.$ac_ext <<_ACEOF
22074 /* confdefs.h.  */
22075 _ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h.  */
22079 $ac_includes_default
22080    typedef long long ac__type_sizeof_;
22081 int
22082 main ()
22083 {
22084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22085 test_array [0] = 0
22086
22087   ;
22088   return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095   *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098   (eval "$ac_compile") 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } && {
22105          test -z "$ac_c_werror_flag" ||
22106          test ! -s conftest.err
22107        } && test -s conftest.$ac_objext; then
22108   ac_hi=$ac_mid; break
22109 else
22110   echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113         ac_lo=`expr $ac_mid + 1`
22114                         if test $ac_lo -le $ac_mid; then
22115                           ac_lo= ac_hi=
22116                           break
22117                         fi
22118                         ac_mid=`expr 2 '*' $ac_mid + 1`
22119 fi
22120
22121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122   done
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127         cat >conftest.$ac_ext <<_ACEOF
22128 /* confdefs.h.  */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h.  */
22133 $ac_includes_default
22134    typedef long long ac__type_sizeof_;
22135 int
22136 main ()
22137 {
22138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22139 test_array [0] = 0
22140
22141   ;
22142   return 0;
22143 }
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (ac_try="$ac_compile"
22147 case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_compile") 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } && {
22159          test -z "$ac_c_werror_flag" ||
22160          test ! -s conftest.err
22161        } && test -s conftest.$ac_objext; then
22162   ac_hi=-1 ac_mid=-1
22163   while :; do
22164     cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h.  */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h.  */
22170 $ac_includes_default
22171    typedef long long ac__type_sizeof_;
22172 int
22173 main ()
22174 {
22175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22176 test_array [0] = 0
22177
22178   ;
22179   return 0;
22180 }
22181 _ACEOF
22182 rm -f conftest.$ac_objext
22183 if { (ac_try="$ac_compile"
22184 case "(($ac_try" in
22185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186   *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189   (eval "$ac_compile") 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } && {
22196          test -z "$ac_c_werror_flag" ||
22197          test ! -s conftest.err
22198        } && test -s conftest.$ac_objext; then
22199   ac_lo=$ac_mid; break
22200 else
22201   echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22203
22204         ac_hi=`expr '(' $ac_mid ')' - 1`
22205                         if test $ac_mid -le $ac_hi; then
22206                           ac_lo= ac_hi=
22207                           break
22208                         fi
22209                         ac_mid=`expr 2 '*' $ac_mid`
22210 fi
22211
22212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213   done
22214 else
22215   echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22217
22218         ac_lo= ac_hi=
22219 fi
22220
22221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22222 fi
22223
22224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 # Binary search between lo and hi bounds.
22226 while test "x$ac_lo" != "x$ac_hi"; do
22227   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22228   cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h.  */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h.  */
22234 $ac_includes_default
22235    typedef long long ac__type_sizeof_;
22236 int
22237 main ()
22238 {
22239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22240 test_array [0] = 0
22241
22242   ;
22243   return 0;
22244 }
22245 _ACEOF
22246 rm -f conftest.$ac_objext
22247 if { (ac_try="$ac_compile"
22248 case "(($ac_try" in
22249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250   *) ac_try_echo=$ac_try;;
22251 esac
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253   (eval "$ac_compile") 2>conftest.er1
22254   ac_status=$?
22255   grep -v '^ *+' conftest.er1 >conftest.err
22256   rm -f conftest.er1
22257   cat conftest.err >&5
22258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259   (exit $ac_status); } && {
22260          test -z "$ac_c_werror_flag" ||
22261          test ! -s conftest.err
22262        } && test -s conftest.$ac_objext; then
22263   ac_hi=$ac_mid
22264 else
22265   echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268         ac_lo=`expr '(' $ac_mid ')' + 1`
22269 fi
22270
22271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22272 done
22273 case $ac_lo in
22274 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22275 '') if test "$ac_cv_type_long_long" = yes; then
22276      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22277 See \`config.log' for more details." >&5
22278 echo "$as_me: error: cannot compute sizeof (long long)
22279 See \`config.log' for more details." >&2;}
22280    { (exit 77); exit 77; }; }
22281    else
22282      ac_cv_sizeof_long_long=0
22283    fi ;;
22284 esac
22285 else
22286   cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h.  */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h.  */
22292 $ac_includes_default
22293    typedef long long ac__type_sizeof_;
22294 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22295 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22296 #include <stdio.h>
22297 #include <stdlib.h>
22298 int
22299 main ()
22300 {
22301
22302   FILE *f = fopen ("conftest.val", "w");
22303   if (! f)
22304     return 1;
22305   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22306     {
22307       long int i = longval ();
22308       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22309         return 1;
22310       fprintf (f, "%ld\n", i);
22311     }
22312   else
22313     {
22314       unsigned long int i = ulongval ();
22315       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22316         return 1;
22317       fprintf (f, "%lu\n", i);
22318     }
22319   return ferror (f) || fclose (f) != 0;
22320
22321   ;
22322   return 0;
22323 }
22324 _ACEOF
22325 rm -f conftest$ac_exeext
22326 if { (ac_try="$ac_link"
22327 case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332   (eval "$ac_link") 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22336   { (case "(($ac_try" in
22337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338   *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341   (eval "$ac_try") 2>&5
22342   ac_status=$?
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); }; }; then
22345   ac_cv_sizeof_long_long=`cat conftest.val`
22346 else
22347   echo "$as_me: program exited with status $ac_status" >&5
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22350
22351 ( exit $ac_status )
22352 if test "$ac_cv_type_long_long" = yes; then
22353      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22354 See \`config.log' for more details." >&5
22355 echo "$as_me: error: cannot compute sizeof (long long)
22356 See \`config.log' for more details." >&2;}
22357    { (exit 77); exit 77; }; }
22358    else
22359      ac_cv_sizeof_long_long=0
22360    fi
22361 fi
22362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22363 fi
22364 rm -f conftest.val
22365 fi
22366 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22367 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22368
22369
22370
22371 cat >>confdefs.h <<_ACEOF
22372 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22373 _ACEOF
22374
22375
22376         if test "$ac_cv_sizeof_long_long" != 0; then
22377                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22378         fi
22379     ;;
22380     * )
22381         { echo "$as_me:$LINENO: checking for long long" >&5
22382 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22383 if test "${ac_cv_type_long_long+set}" = set; then
22384   echo $ECHO_N "(cached) $ECHO_C" >&6
22385 else
22386   cat >conftest.$ac_ext <<_ACEOF
22387 /* confdefs.h.  */
22388 _ACEOF
22389 cat confdefs.h >>conftest.$ac_ext
22390 cat >>conftest.$ac_ext <<_ACEOF
22391 /* end confdefs.h.  */
22392 $ac_includes_default
22393 typedef long long ac__type_new_;
22394 int
22395 main ()
22396 {
22397 if ((ac__type_new_ *) 0)
22398   return 0;
22399 if (sizeof (ac__type_new_))
22400   return 0;
22401   ;
22402   return 0;
22403 }
22404 _ACEOF
22405 rm -f conftest.$ac_objext
22406 if { (ac_try="$ac_compile"
22407 case "(($ac_try" in
22408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409   *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412   (eval "$ac_compile") 2>conftest.er1
22413   ac_status=$?
22414   grep -v '^ *+' conftest.er1 >conftest.err
22415   rm -f conftest.er1
22416   cat conftest.err >&5
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); } && {
22419          test -z "$ac_c_werror_flag" ||
22420          test ! -s conftest.err
22421        } && test -s conftest.$ac_objext; then
22422   ac_cv_type_long_long=yes
22423 else
22424   echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427         ac_cv_type_long_long=no
22428 fi
22429
22430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431 fi
22432 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22433 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22434
22435 # The cast to long int works around a bug in the HP C Compiler
22436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22438 # This bug is HP SR number 8606223364.
22439 { echo "$as_me:$LINENO: checking size of long long" >&5
22440 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22441 if test "${ac_cv_sizeof_long_long+set}" = set; then
22442   echo $ECHO_N "(cached) $ECHO_C" >&6
22443 else
22444   if test "$cross_compiling" = yes; then
22445   # Depending upon the size, compute the lo and hi bounds.
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 $ac_includes_default
22453    typedef long long ac__type_sizeof_;
22454 int
22455 main ()
22456 {
22457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22458 test_array [0] = 0
22459
22460   ;
22461   return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468   *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471   (eval "$ac_compile") 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } && {
22478          test -z "$ac_c_werror_flag" ||
22479          test ! -s conftest.err
22480        } && test -s conftest.$ac_objext; then
22481   ac_lo=0 ac_mid=0
22482   while :; do
22483     cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489 $ac_includes_default
22490    typedef long long ac__type_sizeof_;
22491 int
22492 main ()
22493 {
22494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22495 test_array [0] = 0
22496
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505   *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508   (eval "$ac_compile") 2>conftest.er1
22509   ac_status=$?
22510   grep -v '^ *+' conftest.er1 >conftest.err
22511   rm -f conftest.er1
22512   cat conftest.err >&5
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); } && {
22515          test -z "$ac_c_werror_flag" ||
22516          test ! -s conftest.err
22517        } && test -s conftest.$ac_objext; then
22518   ac_hi=$ac_mid; break
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523         ac_lo=`expr $ac_mid + 1`
22524                         if test $ac_lo -le $ac_mid; then
22525                           ac_lo= ac_hi=
22526                           break
22527                         fi
22528                         ac_mid=`expr 2 '*' $ac_mid + 1`
22529 fi
22530
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532   done
22533 else
22534   echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22536
22537         cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h.  */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h.  */
22543 $ac_includes_default
22544    typedef long long ac__type_sizeof_;
22545 int
22546 main ()
22547 {
22548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22549 test_array [0] = 0
22550
22551   ;
22552   return 0;
22553 }
22554 _ACEOF
22555 rm -f conftest.$ac_objext
22556 if { (ac_try="$ac_compile"
22557 case "(($ac_try" in
22558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559   *) ac_try_echo=$ac_try;;
22560 esac
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562   (eval "$ac_compile") 2>conftest.er1
22563   ac_status=$?
22564   grep -v '^ *+' conftest.er1 >conftest.err
22565   rm -f conftest.er1
22566   cat conftest.err >&5
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); } && {
22569          test -z "$ac_c_werror_flag" ||
22570          test ! -s conftest.err
22571        } && test -s conftest.$ac_objext; then
22572   ac_hi=-1 ac_mid=-1
22573   while :; do
22574     cat >conftest.$ac_ext <<_ACEOF
22575 /* confdefs.h.  */
22576 _ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h.  */
22580 $ac_includes_default
22581    typedef long long ac__type_sizeof_;
22582 int
22583 main ()
22584 {
22585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22586 test_array [0] = 0
22587
22588   ;
22589   return 0;
22590 }
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596   *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599   (eval "$ac_compile") 2>conftest.er1
22600   ac_status=$?
22601   grep -v '^ *+' conftest.er1 >conftest.err
22602   rm -f conftest.er1
22603   cat conftest.err >&5
22604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605   (exit $ac_status); } && {
22606          test -z "$ac_c_werror_flag" ||
22607          test ! -s conftest.err
22608        } && test -s conftest.$ac_objext; then
22609   ac_lo=$ac_mid; break
22610 else
22611   echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614         ac_hi=`expr '(' $ac_mid ')' - 1`
22615                         if test $ac_mid -le $ac_hi; then
22616                           ac_lo= ac_hi=
22617                           break
22618                         fi
22619                         ac_mid=`expr 2 '*' $ac_mid`
22620 fi
22621
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623   done
22624 else
22625   echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22627
22628         ac_lo= ac_hi=
22629 fi
22630
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22632 fi
22633
22634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22635 # Binary search between lo and hi bounds.
22636 while test "x$ac_lo" != "x$ac_hi"; do
22637   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22638   cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h.  */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h.  */
22644 $ac_includes_default
22645    typedef long long ac__type_sizeof_;
22646 int
22647 main ()
22648 {
22649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22650 test_array [0] = 0
22651
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 rm -f conftest.$ac_objext
22657 if { (ac_try="$ac_compile"
22658 case "(($ac_try" in
22659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660   *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663   (eval "$ac_compile") 2>conftest.er1
22664   ac_status=$?
22665   grep -v '^ *+' conftest.er1 >conftest.err
22666   rm -f conftest.er1
22667   cat conftest.err >&5
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); } && {
22670          test -z "$ac_c_werror_flag" ||
22671          test ! -s conftest.err
22672        } && test -s conftest.$ac_objext; then
22673   ac_hi=$ac_mid
22674 else
22675   echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22677
22678         ac_lo=`expr '(' $ac_mid ')' + 1`
22679 fi
22680
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682 done
22683 case $ac_lo in
22684 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22685 '') if test "$ac_cv_type_long_long" = yes; then
22686      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22687 See \`config.log' for more details." >&5
22688 echo "$as_me: error: cannot compute sizeof (long long)
22689 See \`config.log' for more details." >&2;}
22690    { (exit 77); exit 77; }; }
22691    else
22692      ac_cv_sizeof_long_long=0
22693    fi ;;
22694 esac
22695 else
22696   cat >conftest.$ac_ext <<_ACEOF
22697 /* confdefs.h.  */
22698 _ACEOF
22699 cat confdefs.h >>conftest.$ac_ext
22700 cat >>conftest.$ac_ext <<_ACEOF
22701 /* end confdefs.h.  */
22702 $ac_includes_default
22703    typedef long long ac__type_sizeof_;
22704 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22705 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22706 #include <stdio.h>
22707 #include <stdlib.h>
22708 int
22709 main ()
22710 {
22711
22712   FILE *f = fopen ("conftest.val", "w");
22713   if (! f)
22714     return 1;
22715   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22716     {
22717       long int i = longval ();
22718       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22719         return 1;
22720       fprintf (f, "%ld\n", i);
22721     }
22722   else
22723     {
22724       unsigned long int i = ulongval ();
22725       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22726         return 1;
22727       fprintf (f, "%lu\n", i);
22728     }
22729   return ferror (f) || fclose (f) != 0;
22730
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest$ac_exeext
22736 if { (ac_try="$ac_link"
22737 case "(($ac_try" in
22738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739   *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742   (eval "$ac_link") 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22746   { (case "(($ac_try" in
22747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748   *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751   (eval "$ac_try") 2>&5
22752   ac_status=$?
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); }; }; then
22755   ac_cv_sizeof_long_long=`cat conftest.val`
22756 else
22757   echo "$as_me: program exited with status $ac_status" >&5
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22760
22761 ( exit $ac_status )
22762 if test "$ac_cv_type_long_long" = yes; then
22763      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22764 See \`config.log' for more details." >&5
22765 echo "$as_me: error: cannot compute sizeof (long long)
22766 See \`config.log' for more details." >&2;}
22767    { (exit 77); exit 77; }; }
22768    else
22769      ac_cv_sizeof_long_long=0
22770    fi
22771 fi
22772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22773 fi
22774 rm -f conftest.val
22775 fi
22776 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22777 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22778
22779
22780
22781 cat >>confdefs.h <<_ACEOF
22782 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22783 _ACEOF
22784
22785
22786 esac
22787
22788 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22789 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22790 if test "${ac_cv_type_wchar_t+set}" = set; then
22791   echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793   cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h.  */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h.  */
22799
22800         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22801         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22802         #  error "fake wchar_t"
22803         #endif
22804         #ifdef HAVE_WCHAR_H
22805         #  ifdef __CYGWIN__
22806         #    include <stddef.h>
22807         #  endif
22808         #  include <wchar.h>
22809         #endif
22810         #ifdef HAVE_STDLIB_H
22811         #  include <stdlib.h>
22812         #endif
22813         #include <stdio.h>
22814
22815
22816
22817 typedef wchar_t ac__type_new_;
22818 int
22819 main ()
22820 {
22821 if ((ac__type_new_ *) 0)
22822   return 0;
22823 if (sizeof (ac__type_new_))
22824   return 0;
22825   ;
22826   return 0;
22827 }
22828 _ACEOF
22829 rm -f conftest.$ac_objext
22830 if { (ac_try="$ac_compile"
22831 case "(($ac_try" in
22832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833   *) ac_try_echo=$ac_try;;
22834 esac
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836   (eval "$ac_compile") 2>conftest.er1
22837   ac_status=$?
22838   grep -v '^ *+' conftest.er1 >conftest.err
22839   rm -f conftest.er1
22840   cat conftest.err >&5
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); } && {
22843          test -z "$ac_c_werror_flag" ||
22844          test ! -s conftest.err
22845        } && test -s conftest.$ac_objext; then
22846   ac_cv_type_wchar_t=yes
22847 else
22848   echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851         ac_cv_type_wchar_t=no
22852 fi
22853
22854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22855 fi
22856 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22857 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22858
22859 # The cast to long int works around a bug in the HP C Compiler
22860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22862 # This bug is HP SR number 8606223364.
22863 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22864 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22865 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868   if test "$cross_compiling" = yes; then
22869   # Depending upon the size, compute the lo and hi bounds.
22870 cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h.  */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h.  */
22876
22877         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22878         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22879         #  error "fake wchar_t"
22880         #endif
22881         #ifdef HAVE_WCHAR_H
22882         #  ifdef __CYGWIN__
22883         #    include <stddef.h>
22884         #  endif
22885         #  include <wchar.h>
22886         #endif
22887         #ifdef HAVE_STDLIB_H
22888         #  include <stdlib.h>
22889         #endif
22890         #include <stdio.h>
22891
22892
22893
22894    typedef wchar_t ac__type_sizeof_;
22895 int
22896 main ()
22897 {
22898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22899 test_array [0] = 0
22900
22901   ;
22902   return 0;
22903 }
22904 _ACEOF
22905 rm -f conftest.$ac_objext
22906 if { (ac_try="$ac_compile"
22907 case "(($ac_try" in
22908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909   *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912   (eval "$ac_compile") 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } && {
22919          test -z "$ac_c_werror_flag" ||
22920          test ! -s conftest.err
22921        } && test -s conftest.$ac_objext; then
22922   ac_lo=0 ac_mid=0
22923   while :; do
22924     cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h.  */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h.  */
22930
22931         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22932         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22933         #  error "fake wchar_t"
22934         #endif
22935         #ifdef HAVE_WCHAR_H
22936         #  ifdef __CYGWIN__
22937         #    include <stddef.h>
22938         #  endif
22939         #  include <wchar.h>
22940         #endif
22941         #ifdef HAVE_STDLIB_H
22942         #  include <stdlib.h>
22943         #endif
22944         #include <stdio.h>
22945
22946
22947
22948    typedef wchar_t ac__type_sizeof_;
22949 int
22950 main ()
22951 {
22952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22953 test_array [0] = 0
22954
22955   ;
22956   return 0;
22957 }
22958 _ACEOF
22959 rm -f conftest.$ac_objext
22960 if { (ac_try="$ac_compile"
22961 case "(($ac_try" in
22962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963   *) ac_try_echo=$ac_try;;
22964 esac
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966   (eval "$ac_compile") 2>conftest.er1
22967   ac_status=$?
22968   grep -v '^ *+' conftest.er1 >conftest.err
22969   rm -f conftest.er1
22970   cat conftest.err >&5
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); } && {
22973          test -z "$ac_c_werror_flag" ||
22974          test ! -s conftest.err
22975        } && test -s conftest.$ac_objext; then
22976   ac_hi=$ac_mid; break
22977 else
22978   echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22980
22981         ac_lo=`expr $ac_mid + 1`
22982                         if test $ac_lo -le $ac_mid; then
22983                           ac_lo= ac_hi=
22984                           break
22985                         fi
22986                         ac_mid=`expr 2 '*' $ac_mid + 1`
22987 fi
22988
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990   done
22991 else
22992   echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22994
22995         cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001
23002         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23003         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23004         #  error "fake wchar_t"
23005         #endif
23006         #ifdef HAVE_WCHAR_H
23007         #  ifdef __CYGWIN__
23008         #    include <stddef.h>
23009         #  endif
23010         #  include <wchar.h>
23011         #endif
23012         #ifdef HAVE_STDLIB_H
23013         #  include <stdlib.h>
23014         #endif
23015         #include <stdio.h>
23016
23017
23018
23019    typedef wchar_t ac__type_sizeof_;
23020 int
23021 main ()
23022 {
23023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23024 test_array [0] = 0
23025
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034   *) ac_try_echo=$ac_try;;
23035 esac
23036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23037   (eval "$ac_compile") 2>conftest.er1
23038   ac_status=$?
23039   grep -v '^ *+' conftest.er1 >conftest.err
23040   rm -f conftest.er1
23041   cat conftest.err >&5
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); } && {
23044          test -z "$ac_c_werror_flag" ||
23045          test ! -s conftest.err
23046        } && test -s conftest.$ac_objext; then
23047   ac_hi=-1 ac_mid=-1
23048   while :; do
23049     cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055
23056         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23057         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23058         #  error "fake wchar_t"
23059         #endif
23060         #ifdef HAVE_WCHAR_H
23061         #  ifdef __CYGWIN__
23062         #    include <stddef.h>
23063         #  endif
23064         #  include <wchar.h>
23065         #endif
23066         #ifdef HAVE_STDLIB_H
23067         #  include <stdlib.h>
23068         #endif
23069         #include <stdio.h>
23070
23071
23072
23073    typedef wchar_t ac__type_sizeof_;
23074 int
23075 main ()
23076 {
23077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23078 test_array [0] = 0
23079
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 rm -f conftest.$ac_objext
23085 if { (ac_try="$ac_compile"
23086 case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091   (eval "$ac_compile") 2>conftest.er1
23092   ac_status=$?
23093   grep -v '^ *+' conftest.er1 >conftest.err
23094   rm -f conftest.er1
23095   cat conftest.err >&5
23096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); } && {
23098          test -z "$ac_c_werror_flag" ||
23099          test ! -s conftest.err
23100        } && test -s conftest.$ac_objext; then
23101   ac_lo=$ac_mid; break
23102 else
23103   echo "$as_me: failed program was:" >&5
23104 sed 's/^/| /' conftest.$ac_ext >&5
23105
23106         ac_hi=`expr '(' $ac_mid ')' - 1`
23107                         if test $ac_mid -le $ac_hi; then
23108                           ac_lo= ac_hi=
23109                           break
23110                         fi
23111                         ac_mid=`expr 2 '*' $ac_mid`
23112 fi
23113
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115   done
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120         ac_lo= ac_hi=
23121 fi
23122
23123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124 fi
23125
23126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 # Binary search between lo and hi bounds.
23128 while test "x$ac_lo" != "x$ac_hi"; do
23129   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23130   cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h.  */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h.  */
23136
23137         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23138         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23139         #  error "fake wchar_t"
23140         #endif
23141         #ifdef HAVE_WCHAR_H
23142         #  ifdef __CYGWIN__
23143         #    include <stddef.h>
23144         #  endif
23145         #  include <wchar.h>
23146         #endif
23147         #ifdef HAVE_STDLIB_H
23148         #  include <stdlib.h>
23149         #endif
23150         #include <stdio.h>
23151
23152
23153
23154    typedef wchar_t ac__type_sizeof_;
23155 int
23156 main ()
23157 {
23158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23159 test_array [0] = 0
23160
23161   ;
23162   return 0;
23163 }
23164 _ACEOF
23165 rm -f conftest.$ac_objext
23166 if { (ac_try="$ac_compile"
23167 case "(($ac_try" in
23168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169   *) ac_try_echo=$ac_try;;
23170 esac
23171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172   (eval "$ac_compile") 2>conftest.er1
23173   ac_status=$?
23174   grep -v '^ *+' conftest.er1 >conftest.err
23175   rm -f conftest.er1
23176   cat conftest.err >&5
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } && {
23179          test -z "$ac_c_werror_flag" ||
23180          test ! -s conftest.err
23181        } && test -s conftest.$ac_objext; then
23182   ac_hi=$ac_mid
23183 else
23184   echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23186
23187         ac_lo=`expr '(' $ac_mid ')' + 1`
23188 fi
23189
23190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191 done
23192 case $ac_lo in
23193 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23194 '') if test "$ac_cv_type_wchar_t" = yes; then
23195      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23196 See \`config.log' for more details." >&5
23197 echo "$as_me: error: cannot compute sizeof (wchar_t)
23198 See \`config.log' for more details." >&2;}
23199    { (exit 77); exit 77; }; }
23200    else
23201      ac_cv_sizeof_wchar_t=0
23202    fi ;;
23203 esac
23204 else
23205   cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211
23212         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23213         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23214         #  error "fake wchar_t"
23215         #endif
23216         #ifdef HAVE_WCHAR_H
23217         #  ifdef __CYGWIN__
23218         #    include <stddef.h>
23219         #  endif
23220         #  include <wchar.h>
23221         #endif
23222         #ifdef HAVE_STDLIB_H
23223         #  include <stdlib.h>
23224         #endif
23225         #include <stdio.h>
23226
23227
23228
23229    typedef wchar_t ac__type_sizeof_;
23230 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23231 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23232 #include <stdio.h>
23233 #include <stdlib.h>
23234 int
23235 main ()
23236 {
23237
23238   FILE *f = fopen ("conftest.val", "w");
23239   if (! f)
23240     return 1;
23241   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23242     {
23243       long int i = longval ();
23244       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23245         return 1;
23246       fprintf (f, "%ld\n", i);
23247     }
23248   else
23249     {
23250       unsigned long int i = ulongval ();
23251       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23252         return 1;
23253       fprintf (f, "%lu\n", i);
23254     }
23255   return ferror (f) || fclose (f) != 0;
23256
23257   ;
23258   return 0;
23259 }
23260 _ACEOF
23261 rm -f conftest$ac_exeext
23262 if { (ac_try="$ac_link"
23263 case "(($ac_try" in
23264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265   *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268   (eval "$ac_link") 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23272   { (case "(($ac_try" in
23273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274   *) ac_try_echo=$ac_try;;
23275 esac
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277   (eval "$ac_try") 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; }; then
23281   ac_cv_sizeof_wchar_t=`cat conftest.val`
23282 else
23283   echo "$as_me: program exited with status $ac_status" >&5
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23286
23287 ( exit $ac_status )
23288 if test "$ac_cv_type_wchar_t" = yes; then
23289      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23290 See \`config.log' for more details." >&5
23291 echo "$as_me: error: cannot compute sizeof (wchar_t)
23292 See \`config.log' for more details." >&2;}
23293    { (exit 77); exit 77; }; }
23294    else
23295      ac_cv_sizeof_wchar_t=0
23296    fi
23297 fi
23298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23299 fi
23300 rm -f conftest.val
23301 fi
23302 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23303 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23304
23305
23306
23307 cat >>confdefs.h <<_ACEOF
23308 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23309 _ACEOF
23310
23311
23312 if test "$ac_cv_sizeof_wchar_t" != 0; then
23313     wxUSE_WCHAR_T=yes
23314 else
23315     wxUSE_WCHAR_T=no
23316 fi
23317
23318 { echo "$as_me:$LINENO: checking for va_copy" >&5
23319 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23320 if test "${wx_cv_func_va_copy+set}" = set; then
23321   echo $ECHO_N "(cached) $ECHO_C" >&6
23322 else
23323
23324         ac_ext=cpp
23325 ac_cpp='$CXXCPP $CPPFLAGS'
23326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23329
23330         cat >conftest.$ac_ext <<_ACEOF
23331
23332             #include <stdarg.h>
23333             void foo(char *f, ...)
23334             {
23335                 va_list ap1, ap2;
23336                 va_start(ap1, f);
23337                 va_copy(ap2, ap1);
23338                 va_end(ap2);
23339                 va_end(ap1);
23340             }
23341             int main()
23342             {
23343                 foo("hi", 17);
23344                 return 0;
23345             }
23346 _ACEOF
23347 rm -f conftest.$ac_objext conftest$ac_exeext
23348 if { (ac_try="$ac_link"
23349 case "(($ac_try" in
23350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351   *) ac_try_echo=$ac_try;;
23352 esac
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354   (eval "$ac_link") 2>conftest.er1
23355   ac_status=$?
23356   grep -v '^ *+' conftest.er1 >conftest.err
23357   rm -f conftest.er1
23358   cat conftest.err >&5
23359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360   (exit $ac_status); } && {
23361          test -z "$ac_cxx_werror_flag" ||
23362          test ! -s conftest.err
23363        } && test -s conftest$ac_exeext &&
23364        $as_test_x conftest$ac_exeext; then
23365   wx_cv_func_va_copy=yes
23366 else
23367   echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370         wx_cv_func_va_copy=no
23371
23372 fi
23373
23374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23375       conftest$ac_exeext conftest.$ac_ext
23376         ac_ext=c
23377 ac_cpp='$CPP $CPPFLAGS'
23378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23381
23382
23383
23384 fi
23385 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23386 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23387
23388 if test $wx_cv_func_va_copy = "yes"; then
23389     cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_VA_COPY 1
23391 _ACEOF
23392
23393 else
23394         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23395 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23396 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23397   echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399
23400             if test "$cross_compiling" = yes; then
23401                   wx_cv_type_va_list_lvalue=yes
23402
23403 else
23404   cat >conftest.$ac_ext <<_ACEOF
23405
23406                 #include <stdarg.h>
23407                 int foo(char *f, ...)
23408                 {
23409                     va_list ap1, ap2;
23410                     va_start(ap1, f);
23411                     ap2 = ap1;
23412                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23413                         return 1;
23414                     va_end(ap2);
23415                     va_end(ap1);
23416                     return 0;
23417                 }
23418                 int main()
23419                 {
23420                     return foo("hi", 17);
23421                 }
23422 _ACEOF
23423 rm -f conftest$ac_exeext
23424 if { (ac_try="$ac_link"
23425 case "(($ac_try" in
23426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427   *) ac_try_echo=$ac_try;;
23428 esac
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430   (eval "$ac_link") 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23434   { (case "(($ac_try" in
23435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436   *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439   (eval "$ac_try") 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); }; }; then
23443   wx_cv_type_va_list_lvalue=yes
23444 else
23445   echo "$as_me: program exited with status $ac_status" >&5
23446 echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449 ( exit $ac_status )
23450 wx_cv_type_va_list_lvalue=no
23451 fi
23452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23453 fi
23454
23455
23456
23457
23458 fi
23459 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23460 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23461
23462     if test $wx_cv_type_va_list_lvalue != "yes"; then
23463                         cat >>confdefs.h <<\_ACEOF
23464 #define VA_LIST_IS_ARRAY 1
23465 _ACEOF
23466
23467     fi
23468 fi
23469
23470 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23471
23472 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23473 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23474 if test "${wx_cv_have_variadic_macros+set}" = set; then
23475   echo $ECHO_N "(cached) $ECHO_C" >&6
23476 else
23477
23478                         ac_ext=cpp
23479 ac_cpp='$CXXCPP $CPPFLAGS'
23480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23483
23484         cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490
23491                     #include <stdio.h>
23492                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23493
23494 int
23495 main ()
23496 {
23497
23498                     test("%s %d %p", "test", 1, 0);
23499
23500
23501   ;
23502   return 0;
23503 }
23504 _ACEOF
23505 rm -f conftest.$ac_objext
23506 if { (ac_try="$ac_compile"
23507 case "(($ac_try" in
23508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509   *) ac_try_echo=$ac_try;;
23510 esac
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512   (eval "$ac_compile") 2>conftest.er1
23513   ac_status=$?
23514   grep -v '^ *+' conftest.er1 >conftest.err
23515   rm -f conftest.er1
23516   cat conftest.err >&5
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); } && {
23519          test -z "$ac_cxx_werror_flag" ||
23520          test ! -s conftest.err
23521        } && test -s conftest.$ac_objext; then
23522   wx_cv_have_variadic_macros=yes
23523 else
23524   echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23526
23527         wx_cv_have_variadic_macros=no
23528
23529 fi
23530
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23532         ac_ext=c
23533 ac_cpp='$CPP $CPPFLAGS'
23534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23537
23538
23539
23540 fi
23541 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23542 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23543
23544 if test $wx_cv_have_variadic_macros = "yes"; then
23545     cat >>confdefs.h <<\_ACEOF
23546 #define HAVE_VARIADIC_MACROS 1
23547 _ACEOF
23548
23549 fi
23550
23551 fi
23552
23553 LARGEFILE_CPPFLAGS=
23554 # Check whether --enable-largefile was given.
23555 if test "${enable_largefile+set}" = set; then
23556   enableval=$enable_largefile;
23557 fi
23558
23559 if test "$enable_largefile" != no; then
23560             wx_largefile=no
23561
23562     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23563 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23564 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23565   echo $ECHO_N "(cached) $ECHO_C" >&6
23566 else
23567
23568           cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 #define _FILE_OFFSET_BITS 64
23575                           #include <sys/types.h>
23576 int
23577 main ()
23578 {
23579 typedef struct {
23580     unsigned int field: sizeof(off_t) == 8;
23581 } wxlf;
23582
23583   ;
23584   return 0;
23585 }
23586 _ACEOF
23587 rm -f conftest.$ac_objext
23588 if { (ac_try="$ac_compile"
23589 case "(($ac_try" in
23590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591   *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594   (eval "$ac_compile") 2>conftest.er1
23595   ac_status=$?
23596   grep -v '^ *+' conftest.er1 >conftest.err
23597   rm -f conftest.er1
23598   cat conftest.err >&5
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } && {
23601          test -z "$ac_c_werror_flag" ||
23602          test ! -s conftest.err
23603        } && test -s conftest.$ac_objext; then
23604   ac_cv_sys_file_offset_bits=64
23605 else
23606   echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609         ac_cv_sys_file_offset_bits=no
23610 fi
23611
23612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23613
23614
23615 fi
23616 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23617 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23618
23619     if test "$ac_cv_sys_file_offset_bits" != no; then
23620         wx_largefile=yes
23621         cat >>confdefs.h <<_ACEOF
23622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23623 _ACEOF
23624
23625     fi
23626
23627     if test "x$wx_largefile" != "xyes"; then
23628
23629     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23630 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23631 if test "${ac_cv_sys_large_files+set}" = set; then
23632   echo $ECHO_N "(cached) $ECHO_C" >&6
23633 else
23634
23635           cat >conftest.$ac_ext <<_ACEOF
23636 /* confdefs.h.  */
23637 _ACEOF
23638 cat confdefs.h >>conftest.$ac_ext
23639 cat >>conftest.$ac_ext <<_ACEOF
23640 /* end confdefs.h.  */
23641 #define _LARGE_FILES 1
23642                           #include <sys/types.h>
23643 int
23644 main ()
23645 {
23646 typedef struct {
23647     unsigned int field: sizeof(off_t) == 8;
23648 } wxlf;
23649
23650   ;
23651   return 0;
23652 }
23653 _ACEOF
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658   *) ac_try_echo=$ac_try;;
23659 esac
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661   (eval "$ac_compile") 2>conftest.er1
23662   ac_status=$?
23663   grep -v '^ *+' conftest.er1 >conftest.err
23664   rm -f conftest.er1
23665   cat conftest.err >&5
23666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667   (exit $ac_status); } && {
23668          test -z "$ac_c_werror_flag" ||
23669          test ! -s conftest.err
23670        } && test -s conftest.$ac_objext; then
23671   ac_cv_sys_large_files=1
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676         ac_cv_sys_large_files=no
23677 fi
23678
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680
23681
23682 fi
23683 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23684 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23685
23686     if test "$ac_cv_sys_large_files" != no; then
23687         wx_largefile=yes
23688         cat >>confdefs.h <<_ACEOF
23689 #define _LARGE_FILES $ac_cv_sys_large_files
23690 _ACEOF
23691
23692     fi
23693
23694     fi
23695
23696     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23697 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23698     if test "x$wx_largefile" = "xyes"; then
23699         cat >>confdefs.h <<\_ACEOF
23700 #define HAVE_LARGEFILE_SUPPORT 1
23701 _ACEOF
23702
23703     fi
23704     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23705 echo "${ECHO_T}$wx_largefile" >&6; }
23706 fi
23707
23708 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23709     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23710 elif test "$ac_cv_sys_large_files" = 1; then
23711     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23712 fi
23713
23714 if test -n "$LARGEFILE_CPPFLAGS"; then
23715     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23716
23717                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23718         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23719 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23720 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723
23724                 ac_ext=cpp
23725 ac_cpp='$CXXCPP $CPPFLAGS'
23726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23729
23730                 cat >conftest.$ac_ext <<_ACEOF
23731 /* confdefs.h.  */
23732 _ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h.  */
23736
23737 int
23738 main ()
23739 {
23740
23741                         #ifndef __STDC_EXT__
23742                             choke me
23743                         #endif
23744
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 rm -f conftest.$ac_objext
23750 if { (ac_try="$ac_compile"
23751 case "(($ac_try" in
23752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753   *) ac_try_echo=$ac_try;;
23754 esac
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756   (eval "$ac_compile") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_cxx_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest.$ac_objext; then
23766   wx_cv_STDC_EXT_required=no
23767 else
23768   echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23770
23771         wx_cv_STDC_EXT_required=yes
23772
23773 fi
23774
23775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776                 ac_ext=c
23777 ac_cpp='$CPP $CPPFLAGS'
23778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23781
23782
23783
23784 fi
23785 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23786 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23787         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23788             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23789         fi
23790     fi
23791 fi
23792
23793 ac_ext=cpp
23794 ac_cpp='$CXXCPP $CPPFLAGS'
23795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23798
23799 old_CPPFLAGS="$CPPFLAGS"
23800 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23801 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23802 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23803 if test "${ac_cv_sys_largefile_source+set}" = set; then
23804   echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806   while :; do
23807   cat >conftest.$ac_ext <<_ACEOF
23808 /* confdefs.h.  */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h.  */
23813 #include <sys/types.h> /* for off_t */
23814      #include <stdio.h>
23815 int
23816 main ()
23817 {
23818 int (*fp) (FILE *, off_t, int) = fseeko;
23819      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23820   ;
23821   return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest.$ac_objext conftest$ac_exeext
23825 if { (ac_try="$ac_link"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23831   (eval "$ac_link") 2>conftest.er1
23832   ac_status=$?
23833   grep -v '^ *+' conftest.er1 >conftest.err
23834   rm -f conftest.er1
23835   cat conftest.err >&5
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); } && {
23838          test -z "$ac_cxx_werror_flag" ||
23839          test ! -s conftest.err
23840        } && test -s conftest$ac_exeext &&
23841        $as_test_x conftest$ac_exeext; then
23842   ac_cv_sys_largefile_source=no; break
23843 else
23844   echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847
23848 fi
23849
23850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23851       conftest$ac_exeext conftest.$ac_ext
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 #define _LARGEFILE_SOURCE 1
23859 #include <sys/types.h> /* for off_t */
23860      #include <stdio.h>
23861 int
23862 main ()
23863 {
23864 int (*fp) (FILE *, off_t, int) = fseeko;
23865      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23866   ;
23867   return 0;
23868 }
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874   *) ac_try_echo=$ac_try;;
23875 esac
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877   (eval "$ac_link") 2>conftest.er1
23878   ac_status=$?
23879   grep -v '^ *+' conftest.er1 >conftest.err
23880   rm -f conftest.er1
23881   cat conftest.err >&5
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); } && {
23884          test -z "$ac_cxx_werror_flag" ||
23885          test ! -s conftest.err
23886        } && test -s conftest$ac_exeext &&
23887        $as_test_x conftest$ac_exeext; then
23888   ac_cv_sys_largefile_source=1; break
23889 else
23890   echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23892
23893
23894 fi
23895
23896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23897       conftest$ac_exeext conftest.$ac_ext
23898   ac_cv_sys_largefile_source=unknown
23899   break
23900 done
23901 fi
23902 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23903 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23904 case $ac_cv_sys_largefile_source in #(
23905   no | unknown) ;;
23906   *)
23907 cat >>confdefs.h <<_ACEOF
23908 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23909 _ACEOF
23910 ;;
23911 esac
23912 rm -f conftest*
23913
23914 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23915 # in glibc 2.1.3, but that breaks too many other things.
23916 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23917 if test $ac_cv_sys_largefile_source != unknown; then
23918
23919 cat >>confdefs.h <<\_ACEOF
23920 #define HAVE_FSEEKO 1
23921 _ACEOF
23922
23923 fi
23924
23925 CPPFLAGS="$old_CPPFLAGS"
23926 ac_ext=c
23927 ac_cpp='$CPP $CPPFLAGS'
23928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23931
23932 if test "$ac_cv_sys_largefile_source" != no; then
23933     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23934 fi
23935
23936 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23937 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23938 if test "${ac_cv_c_bigendian+set}" = set; then
23939   echo $ECHO_N "(cached) $ECHO_C" >&6
23940 else
23941   ac_cv_c_bigendian=unknown
23942 # See if sys/param.h defines the BYTE_ORDER macro.
23943 cat >conftest.$ac_ext <<_ACEOF
23944 /* confdefs.h.  */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h.  */
23949 #include <sys/types.h>
23950 #include <sys/param.h>
23951 int
23952 main ()
23953 {
23954
23955 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23956  bogus endian macros
23957 #endif
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969   (eval "$ac_compile") 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } && {
23976          test -z "$ac_c_werror_flag" ||
23977          test ! -s conftest.err
23978        } && test -s conftest.$ac_objext; then
23979   # It does; now see whether it defined to BIG_ENDIAN or not.
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h.  */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h.  */
23986 #include <sys/types.h>
23987 #include <sys/param.h>
23988 int
23989 main ()
23990 {
23991
23992 #if BYTE_ORDER != BIG_ENDIAN
23993  not big endian
23994 #endif
23995   ;
23996   return 0;
23997 }
23998 _ACEOF
23999 rm -f conftest.$ac_objext
24000 if { (ac_try="$ac_compile"
24001 case "(($ac_try" in
24002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003   *) ac_try_echo=$ac_try;;
24004 esac
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006   (eval "$ac_compile") 2>conftest.er1
24007   ac_status=$?
24008   grep -v '^ *+' conftest.er1 >conftest.err
24009   rm -f conftest.er1
24010   cat conftest.err >&5
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); } && {
24013          test -z "$ac_c_werror_flag" ||
24014          test ! -s conftest.err
24015        } && test -s conftest.$ac_objext; then
24016   ac_cv_c_bigendian=yes
24017 else
24018   echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24020
24021         ac_cv_c_bigendian=no
24022 fi
24023
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025 else
24026   echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24028
24029
24030 fi
24031
24032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24033 if test $ac_cv_c_bigendian = unknown; then
24034 if test "$cross_compiling" = yes; then
24035   ac_cv_c_bigendian=unknown
24036 else
24037   cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043 main () {
24044   /* Are we little or big endian?  From Harbison&Steele.  */
24045   union
24046   {
24047     long l;
24048     char c[sizeof (long)];
24049   } u;
24050   u.l = 1;
24051   exit (u.c[sizeof (long) - 1] == 1);
24052 }
24053 _ACEOF
24054 rm -f conftest$ac_exeext
24055 if { (ac_try="$ac_link"
24056 case "(($ac_try" in
24057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24058   *) ac_try_echo=$ac_try;;
24059 esac
24060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24061   (eval "$ac_link") 2>&5
24062   ac_status=$?
24063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24065   { (case "(($ac_try" in
24066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067   *) ac_try_echo=$ac_try;;
24068 esac
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070   (eval "$ac_try") 2>&5
24071   ac_status=$?
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); }; }; then
24074   ac_cv_c_bigendian=no
24075 else
24076   echo "$as_me: program exited with status $ac_status" >&5
24077 echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24079
24080 ( exit $ac_status )
24081 ac_cv_c_bigendian=yes
24082 fi
24083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24084 fi
24085
24086
24087 fi
24088 fi
24089 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24090 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24091 if test $ac_cv_c_bigendian = unknown; then
24092   { 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
24093 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;}
24094 fi
24095 if test $ac_cv_c_bigendian = yes; then
24096   cat >>confdefs.h <<\_ACEOF
24097 #define WORDS_BIGENDIAN 1
24098 _ACEOF
24099
24100 fi
24101
24102
24103
24104
24105     ac_ext=cpp
24106 ac_cpp='$CXXCPP $CPPFLAGS'
24107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24110
24111
24112
24113 for ac_header in iostream
24114 do
24115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121   cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h.  */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h.  */
24127
24128
24129 #include <$ac_header>
24130 _ACEOF
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135   *) ac_try_echo=$ac_try;;
24136 esac
24137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24138   (eval "$ac_compile") 2>conftest.er1
24139   ac_status=$?
24140   grep -v '^ *+' conftest.er1 >conftest.err
24141   rm -f conftest.er1
24142   cat conftest.err >&5
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); } && {
24145          test -z "$ac_cxx_werror_flag" ||
24146          test ! -s conftest.err
24147        } && test -s conftest.$ac_objext; then
24148   eval "$as_ac_Header=yes"
24149 else
24150   echo "$as_me: failed program was:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24152
24153         eval "$as_ac_Header=no"
24154 fi
24155
24156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157 fi
24158 ac_res=`eval echo '${'$as_ac_Header'}'`
24159                { echo "$as_me:$LINENO: result: $ac_res" >&5
24160 echo "${ECHO_T}$ac_res" >&6; }
24161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24162   cat >>confdefs.h <<_ACEOF
24163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24164 _ACEOF
24165
24166 fi
24167
24168 done
24169
24170
24171     if test "$ac_cv_header_iostream" = "yes" ; then
24172       :
24173     else
24174       cat >>confdefs.h <<\_ACEOF
24175 #define wxUSE_IOSTREAMH 1
24176 _ACEOF
24177
24178     fi
24179
24180     ac_ext=c
24181 ac_cpp='$CPP $CPPFLAGS'
24182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24185
24186
24187
24188
24189   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24190 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24191 if test "${wx_cv_explicit+set}" = set; then
24192   echo $ECHO_N "(cached) $ECHO_C" >&6
24193 else
24194
24195
24196     ac_ext=cpp
24197 ac_cpp='$CXXCPP $CPPFLAGS'
24198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24201
24202
24203             cat >conftest.$ac_ext <<_ACEOF
24204 /* confdefs.h.  */
24205 _ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h.  */
24209
24210         class Foo { public: explicit Foo(int) {} };
24211
24212 int
24213 main ()
24214 {
24215
24216         return 0;
24217
24218   ;
24219   return 0;
24220 }
24221 _ACEOF
24222 rm -f conftest.$ac_objext
24223 if { (ac_try="$ac_compile"
24224 case "(($ac_try" in
24225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226   *) ac_try_echo=$ac_try;;
24227 esac
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229   (eval "$ac_compile") 2>conftest.er1
24230   ac_status=$?
24231   grep -v '^ *+' conftest.er1 >conftest.err
24232   rm -f conftest.er1
24233   cat conftest.err >&5
24234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235   (exit $ac_status); } && {
24236          test -z "$ac_cxx_werror_flag" ||
24237          test ! -s conftest.err
24238        } && test -s conftest.$ac_objext; then
24239
24240         cat >conftest.$ac_ext <<_ACEOF
24241 /* confdefs.h.  */
24242 _ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h.  */
24246
24247                 class Foo { public: explicit Foo(int) {} };
24248                 static void TakeFoo(const Foo& foo) { }
24249
24250 int
24251 main ()
24252 {
24253
24254                 TakeFoo(17);
24255                 return 0;
24256
24257   ;
24258   return 0;
24259 }
24260 _ACEOF
24261 rm -f conftest.$ac_objext
24262 if { (ac_try="$ac_compile"
24263 case "(($ac_try" in
24264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265   *) ac_try_echo=$ac_try;;
24266 esac
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268   (eval "$ac_compile") 2>conftest.er1
24269   ac_status=$?
24270   grep -v '^ *+' conftest.er1 >conftest.err
24271   rm -f conftest.er1
24272   cat conftest.err >&5
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); } && {
24275          test -z "$ac_cxx_werror_flag" ||
24276          test ! -s conftest.err
24277        } && test -s conftest.$ac_objext; then
24278   wx_cv_explicit=no
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283         wx_cv_explicit=yes
24284
24285 fi
24286
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288
24289 else
24290   echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24292
24293         wx_cv_explicit=no
24294
24295 fi
24296
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298
24299     ac_ext=c
24300 ac_cpp='$CPP $CPPFLAGS'
24301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24304
24305
24306 fi
24307 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24308 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24309
24310   if test "$wx_cv_explicit" = "yes"; then
24311     cat >>confdefs.h <<\_ACEOF
24312 #define HAVE_EXPLICIT 1
24313 _ACEOF
24314
24315   fi
24316
24317
24318 if test "x$SUNCXX" = xyes; then
24319     CXXFLAGS="-features=tmplife $CXXFLAGS"
24320 fi
24321
24322 if test "x$SUNCC" = xyes; then
24323     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24324 fi
24325
24326 if test "x$SGICC" = "xyes"; then
24327     CFLAGS="-woff 3970 $CFLAGS"
24328 fi
24329 if test "x$SGICXX" = "xyes"; then
24330     CXXFLAGS="-woff 3970 $CXXFLAGS"
24331 fi
24332
24333 if test "x$HPCC" = "xyes"; then
24334                     CFLAGS="+W 2011,2450 $CFLAGS"
24335 fi
24336 if test "x$HPCXX" = "xyes"; then
24337                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24338 fi
24339
24340 if test "x$COMPAQCXX" = "xyes"; then
24341                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24342 fi
24343
24344 ac_ext=cpp
24345 ac_cpp='$CXXCPP $CPPFLAGS'
24346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24349
24350
24351 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24352     if test "$wxUSE_UNICODE" = "yes"; then
24353         std_string="std::wstring"
24354         char_type="wchar_t"
24355     else
24356         std_string="std::string"
24357         char_type="char"
24358     fi
24359
24360         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24361 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24362 if test "${wx_cv_class_stdstring+set}" = set; then
24363   echo $ECHO_N "(cached) $ECHO_C" >&6
24364 else
24365
24366             cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h.  */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h.  */
24372 #include <string>
24373 int
24374 main ()
24375 {
24376 $std_string foo;
24377   ;
24378   return 0;
24379 }
24380 _ACEOF
24381 rm -f conftest.$ac_objext
24382 if { (ac_try="$ac_compile"
24383 case "(($ac_try" in
24384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385   *) ac_try_echo=$ac_try;;
24386 esac
24387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388   (eval "$ac_compile") 2>conftest.er1
24389   ac_status=$?
24390   grep -v '^ *+' conftest.er1 >conftest.err
24391   rm -f conftest.er1
24392   cat conftest.err >&5
24393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); } && {
24395          test -z "$ac_cxx_werror_flag" ||
24396          test ! -s conftest.err
24397        } && test -s conftest.$ac_objext; then
24398   wx_cv_class_stdstring=yes
24399 else
24400   echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24402
24403         wx_cv_class_stdstring=no
24404
24405 fi
24406
24407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408
24409
24410 fi
24411 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24412 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24413
24414     if test "$wx_cv_class_stdstring" = yes; then
24415         if test "$wxUSE_UNICODE" = "yes"; then
24416             cat >>confdefs.h <<\_ACEOF
24417 #define HAVE_STD_WSTRING 1
24418 _ACEOF
24419
24420         fi
24421                     else
24422         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24423 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24424 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24425   echo $ECHO_N "(cached) $ECHO_C" >&6
24426 else
24427
24428                 cat >conftest.$ac_ext <<_ACEOF
24429 /* confdefs.h.  */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h.  */
24434
24435                     #ifdef HAVE_WCHAR_H
24436                     #  ifdef __CYGWIN__
24437                     #    include <stddef.h>
24438                     #  endif
24439                     #  include <wchar.h>
24440                     #endif
24441                     #ifdef HAVE_STDLIB_H
24442                     #  include <stdlib.h>
24443                     #endif
24444                     #include <stdio.h>
24445                     #include <string>
24446
24447 int
24448 main ()
24449 {
24450 std::basic_string<$char_type> foo;
24451                      const $char_type* dummy = foo.c_str();
24452   ;
24453   return 0;
24454 }
24455 _ACEOF
24456 rm -f conftest.$ac_objext
24457 if { (ac_try="$ac_compile"
24458 case "(($ac_try" in
24459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460   *) ac_try_echo=$ac_try;;
24461 esac
24462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24463   (eval "$ac_compile") 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } && {
24470          test -z "$ac_cxx_werror_flag" ||
24471          test ! -s conftest.err
24472        } && test -s conftest.$ac_objext; then
24473   wx_cv_class_stdbasicstring=yes
24474 else
24475   echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24477
24478         wx_cv_class_stdbasicstring=no
24479
24480 fi
24481
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483
24484
24485 fi
24486 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24487 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24488
24489         if test "$wx_cv_class_stdbasicstring" != yes; then
24490             if test "$wxUSE_STL" = "yes"; then
24491                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24492 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24493    { (exit 1); exit 1; }; }
24494             elif test "$wxUSE_STD_STRING" = "yes"; then
24495                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24496 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24497    { (exit 1); exit 1; }; }
24498             else
24499                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24500 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24501                 wxUSE_STD_STRING=no
24502             fi
24503         fi
24504     fi
24505 fi
24506
24507 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24508     { echo "$as_me:$LINENO: checking for std::istream" >&5
24509 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24510 if test "${ac_cv_type_std__istream+set}" = set; then
24511   echo $ECHO_N "(cached) $ECHO_C" >&6
24512 else
24513   cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h.  */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h.  */
24519 #include <iostream>
24520
24521 typedef std::istream ac__type_new_;
24522 int
24523 main ()
24524 {
24525 if ((ac__type_new_ *) 0)
24526   return 0;
24527 if (sizeof (ac__type_new_))
24528   return 0;
24529   ;
24530   return 0;
24531 }
24532 _ACEOF
24533 rm -f conftest.$ac_objext
24534 if { (ac_try="$ac_compile"
24535 case "(($ac_try" in
24536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24537   *) ac_try_echo=$ac_try;;
24538 esac
24539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24540   (eval "$ac_compile") 2>conftest.er1
24541   ac_status=$?
24542   grep -v '^ *+' conftest.er1 >conftest.err
24543   rm -f conftest.er1
24544   cat conftest.err >&5
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); } && {
24547          test -z "$ac_cxx_werror_flag" ||
24548          test ! -s conftest.err
24549        } && test -s conftest.$ac_objext; then
24550   ac_cv_type_std__istream=yes
24551 else
24552   echo "$as_me: failed program was:" >&5
24553 sed 's/^/| /' conftest.$ac_ext >&5
24554
24555         ac_cv_type_std__istream=no
24556 fi
24557
24558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24559 fi
24560 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24561 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24562 if test $ac_cv_type_std__istream = yes; then
24563
24564 cat >>confdefs.h <<_ACEOF
24565 #define HAVE_STD__ISTREAM 1
24566 _ACEOF
24567
24568
24569 else
24570   wxUSE_STD_IOSTREAM=no
24571 fi
24572 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24573 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24574 if test "${ac_cv_type_std__ostream+set}" = set; then
24575   echo $ECHO_N "(cached) $ECHO_C" >&6
24576 else
24577   cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583 #include <iostream>
24584
24585 typedef std::ostream ac__type_new_;
24586 int
24587 main ()
24588 {
24589 if ((ac__type_new_ *) 0)
24590   return 0;
24591 if (sizeof (ac__type_new_))
24592   return 0;
24593   ;
24594   return 0;
24595 }
24596 _ACEOF
24597 rm -f conftest.$ac_objext
24598 if { (ac_try="$ac_compile"
24599 case "(($ac_try" in
24600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601   *) ac_try_echo=$ac_try;;
24602 esac
24603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604   (eval "$ac_compile") 2>conftest.er1
24605   ac_status=$?
24606   grep -v '^ *+' conftest.er1 >conftest.err
24607   rm -f conftest.er1
24608   cat conftest.err >&5
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); } && {
24611          test -z "$ac_cxx_werror_flag" ||
24612          test ! -s conftest.err
24613        } && test -s conftest.$ac_objext; then
24614   ac_cv_type_std__ostream=yes
24615 else
24616   echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24618
24619         ac_cv_type_std__ostream=no
24620 fi
24621
24622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24623 fi
24624 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24625 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24626 if test $ac_cv_type_std__ostream = yes; then
24627
24628 cat >>confdefs.h <<_ACEOF
24629 #define HAVE_STD__OSTREAM 1
24630 _ACEOF
24631
24632
24633 else
24634   wxUSE_STD_IOSTREAM=no
24635 fi
24636
24637
24638     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24639         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24640             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24641 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24642    { (exit 1); exit 1; }; }
24643         else
24644             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24645 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24646         fi
24647     fi
24648 fi
24649
24650 if test "$wxUSE_STL" = "yes"; then
24651         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24652 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24653 if test "${wx_cv_lib_stl+set}" = set; then
24654   echo $ECHO_N "(cached) $ECHO_C" >&6
24655 else
24656   cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h.  */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h.  */
24662 #include <string>
24663             #include <functional>
24664             #include <algorithm>
24665             #include <vector>
24666             #include <list>
24667 int
24668 main ()
24669 {
24670 std::vector<int> moo;
24671              std::list<int> foo;
24672              std::vector<int>::iterator it =
24673                  std::find_if(moo.begin(), moo.end(),
24674                               std::bind2nd(std::less<int>(), 3));
24675   ;
24676   return 0;
24677 }
24678 _ACEOF
24679 rm -f conftest.$ac_objext
24680 if { (ac_try="$ac_compile"
24681 case "(($ac_try" in
24682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683   *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686   (eval "$ac_compile") 2>conftest.er1
24687   ac_status=$?
24688   grep -v '^ *+' conftest.er1 >conftest.err
24689   rm -f conftest.er1
24690   cat conftest.err >&5
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); } && {
24693          test -z "$ac_cxx_werror_flag" ||
24694          test ! -s conftest.err
24695        } && test -s conftest.$ac_objext; then
24696   wx_cv_lib_stl=yes
24697 else
24698   echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24700
24701         wx_cv_lib_stl=no
24702
24703 fi
24704
24705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706
24707 fi
24708 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24709 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24710
24711     if test "$wx_cv_lib_stl" != yes; then
24712          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24713 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24714    { (exit 1); exit 1; }; }
24715     fi
24716
24717         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24718 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24719 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728 #include <string>
24729 int
24730 main ()
24731 {
24732 std::string foo, bar;
24733             foo.compare(bar);
24734             foo.compare(1, 1, bar);
24735             foo.compare(1, 1, bar, 1, 1);
24736             foo.compare("");
24737             foo.compare(1, 1, "");
24738             foo.compare(1, 1, "", 2);
24739   ;
24740   return 0;
24741 }
24742 _ACEOF
24743 rm -f conftest.$ac_objext
24744 if { (ac_try="$ac_compile"
24745 case "(($ac_try" in
24746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747   *) ac_try_echo=$ac_try;;
24748 esac
24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750   (eval "$ac_compile") 2>conftest.er1
24751   ac_status=$?
24752   grep -v '^ *+' conftest.er1 >conftest.err
24753   rm -f conftest.er1
24754   cat conftest.err >&5
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); } && {
24757          test -z "$ac_cxx_werror_flag" ||
24758          test ! -s conftest.err
24759        } && test -s conftest.$ac_objext; then
24760   wx_cv_func_stdstring_compare=yes
24761 else
24762   echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24764
24765         wx_cv_func_stdstring_compare=no
24766
24767 fi
24768
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770
24771 fi
24772 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24773 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24774
24775     if test "$wx_cv_func_stdstring_compare" = yes; then
24776         cat >>confdefs.h <<\_ACEOF
24777 #define HAVE_STD_STRING_COMPARE 1
24778 _ACEOF
24779
24780     fi
24781
24782     if test "$wx_cv_class_gnuhashmapset" = yes; then
24783          cat >>confdefs.h <<\_ACEOF
24784 #define HAVE_EXT_HASH_MAP 1
24785 _ACEOF
24786
24787          cat >>confdefs.h <<\_ACEOF
24788 #define HAVE_GNU_CXX_HASH_MAP 1
24789 _ACEOF
24790
24791     fi
24792
24793     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24794 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24795 if test "${ac_cv_header_unordered_map+set}" = set; then
24796   echo $ECHO_N "(cached) $ECHO_C" >&6
24797 else
24798   cat >conftest.$ac_ext <<_ACEOF
24799 /* confdefs.h.  */
24800 _ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h.  */
24804
24805
24806
24807 #include <unordered_map>
24808 _ACEOF
24809 rm -f conftest.$ac_objext
24810 if { (ac_try="$ac_compile"
24811 case "(($ac_try" in
24812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813   *) ac_try_echo=$ac_try;;
24814 esac
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816   (eval "$ac_compile") 2>conftest.er1
24817   ac_status=$?
24818   grep -v '^ *+' conftest.er1 >conftest.err
24819   rm -f conftest.er1
24820   cat conftest.err >&5
24821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); } && {
24823          test -z "$ac_cxx_werror_flag" ||
24824          test ! -s conftest.err
24825        } && test -s conftest.$ac_objext; then
24826   ac_cv_header_unordered_map=yes
24827 else
24828   echo "$as_me: failed program was:" >&5
24829 sed 's/^/| /' conftest.$ac_ext >&5
24830
24831         ac_cv_header_unordered_map=no
24832 fi
24833
24834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24835 fi
24836 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24837 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24838 if test $ac_cv_header_unordered_map = yes; then
24839   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24840 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24841 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 else
24844   cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850 #include <unordered_map>
24851                 #include <unordered_set>
24852 int
24853 main ()
24854 {
24855 std::unordered_map<double*, char*> test1;
24856                  std::unordered_set<char*> test2;
24857   ;
24858   return 0;
24859 }
24860 _ACEOF
24861 rm -f conftest.$ac_objext
24862 if { (ac_try="$ac_compile"
24863 case "(($ac_try" in
24864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865   *) ac_try_echo=$ac_try;;
24866 esac
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868   (eval "$ac_compile") 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } && {
24875          test -z "$ac_cxx_werror_flag" ||
24876          test ! -s conftest.err
24877        } && test -s conftest.$ac_objext; then
24878   wx_cv_class_stdunorderedmapset=yes
24879 else
24880   echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24882
24883         wx_cv_class_stdunorderedmapset=no
24884 fi
24885
24886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24887
24888
24889 fi
24890 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24891 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24892 fi
24893
24894
24895
24896     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24897          cat >>confdefs.h <<\_ACEOF
24898 #define HAVE_STD_UNORDERED_MAP 1
24899 _ACEOF
24900
24901          cat >>confdefs.h <<\_ACEOF
24902 #define HAVE_STD_UNORDERED_SET 1
24903 _ACEOF
24904
24905     else
24906         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24907 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24908 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24909   echo $ECHO_N "(cached) $ECHO_C" >&6
24910 else
24911   cat >conftest.$ac_ext <<_ACEOF
24912 /* confdefs.h.  */
24913 _ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h.  */
24917
24918
24919
24920 #include <tr1/unordered_map>
24921 _ACEOF
24922 rm -f conftest.$ac_objext
24923 if { (ac_try="$ac_compile"
24924 case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929   (eval "$ac_compile") 2>conftest.er1
24930   ac_status=$?
24931   grep -v '^ *+' conftest.er1 >conftest.err
24932   rm -f conftest.er1
24933   cat conftest.err >&5
24934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935   (exit $ac_status); } && {
24936          test -z "$ac_cxx_werror_flag" ||
24937          test ! -s conftest.err
24938        } && test -s conftest.$ac_objext; then
24939   ac_cv_header_tr1_unordered_map=yes
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         ac_cv_header_tr1_unordered_map=no
24945 fi
24946
24947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 fi
24949 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24950 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24951 if test $ac_cv_header_tr1_unordered_map = yes; then
24952   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24953 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24954 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24955   echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957   cat >conftest.$ac_ext <<_ACEOF
24958 /* confdefs.h.  */
24959 _ACEOF
24960 cat confdefs.h >>conftest.$ac_ext
24961 cat >>conftest.$ac_ext <<_ACEOF
24962 /* end confdefs.h.  */
24963 #include <tr1/unordered_map>
24964                     #include <tr1/unordered_set>
24965 int
24966 main ()
24967 {
24968 std::tr1::unordered_map<double*, char*> test1;
24969                      std::tr1::unordered_set<char*> test2;
24970             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24971             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24972             #endif
24973   ;
24974   return 0;
24975 }
24976 _ACEOF
24977 rm -f conftest.$ac_objext
24978 if { (ac_try="$ac_compile"
24979 case "(($ac_try" in
24980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981   *) ac_try_echo=$ac_try;;
24982 esac
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984   (eval "$ac_compile") 2>conftest.er1
24985   ac_status=$?
24986   grep -v '^ *+' conftest.er1 >conftest.err
24987   rm -f conftest.er1
24988   cat conftest.err >&5
24989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990   (exit $ac_status); } && {
24991          test -z "$ac_cxx_werror_flag" ||
24992          test ! -s conftest.err
24993        } && test -s conftest.$ac_objext; then
24994   wx_cv_class_tr1unorderedmapset=yes
24995 else
24996   echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999         wx_cv_class_tr1unorderedmapset=no
25000 fi
25001
25002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003
25004
25005 fi
25006 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25007 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25008 fi
25009
25010
25011
25012         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25013             cat >>confdefs.h <<\_ACEOF
25014 #define HAVE_TR1_UNORDERED_MAP 1
25015 _ACEOF
25016
25017             cat >>confdefs.h <<\_ACEOF
25018 #define HAVE_TR1_UNORDERED_SET 1
25019 _ACEOF
25020
25021         else
25022                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25023 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25024 if test "${ac_cv_header_hash_map+set}" = set; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027   cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033
25034
25035
25036 #include <hash_map>
25037 _ACEOF
25038 rm -f conftest.$ac_objext
25039 if { (ac_try="$ac_compile"
25040 case "(($ac_try" in
25041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042   *) ac_try_echo=$ac_try;;
25043 esac
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045   (eval "$ac_compile") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_cxx_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest.$ac_objext; then
25055   ac_cv_header_hash_map=yes
25056 else
25057   echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060         ac_cv_header_hash_map=no
25061 fi
25062
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 fi
25065 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25066 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25067 if test $ac_cv_header_hash_map = yes; then
25068   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25069 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25070 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25071   echo $ECHO_N "(cached) $ECHO_C" >&6
25072 else
25073   cat >conftest.$ac_ext <<_ACEOF
25074 /* confdefs.h.  */
25075 _ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h.  */
25079 #include <hash_map>
25080                         #include <hash_set>
25081 int
25082 main ()
25083 {
25084 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25085                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25086   ;
25087   return 0;
25088 }
25089 _ACEOF
25090 rm -f conftest.$ac_objext
25091 if { (ac_try="$ac_compile"
25092 case "(($ac_try" in
25093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094   *) ac_try_echo=$ac_try;;
25095 esac
25096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25097   (eval "$ac_compile") 2>conftest.er1
25098   ac_status=$?
25099   grep -v '^ *+' conftest.er1 >conftest.err
25100   rm -f conftest.er1
25101   cat conftest.err >&5
25102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103   (exit $ac_status); } && {
25104          test -z "$ac_cxx_werror_flag" ||
25105          test ! -s conftest.err
25106        } && test -s conftest.$ac_objext; then
25107   wx_cv_class_stdhashmapset=yes
25108 else
25109   echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25111
25112         wx_cv_class_stdhashmapset=no
25113 fi
25114
25115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116
25117
25118 fi
25119 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25120 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25121 fi
25122
25123
25124
25125             if test "$wx_cv_class_stdhashmapset" = yes; then
25126                 cat >>confdefs.h <<\_ACEOF
25127 #define HAVE_HASH_MAP 1
25128 _ACEOF
25129
25130                 cat >>confdefs.h <<\_ACEOF
25131 #define HAVE_STD_HASH_MAP 1
25132 _ACEOF
25133
25134             fi
25135
25136             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25137 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25138 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25139   echo $ECHO_N "(cached) $ECHO_C" >&6
25140 else
25141   cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h.  */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h.  */
25147
25148
25149
25150 #include <ext/hash_map>
25151 _ACEOF
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_compile") 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } && {
25166          test -z "$ac_cxx_werror_flag" ||
25167          test ! -s conftest.err
25168        } && test -s conftest.$ac_objext; then
25169   ac_cv_header_ext_hash_map=yes
25170 else
25171   echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25173
25174         ac_cv_header_ext_hash_map=no
25175 fi
25176
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 fi
25179 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25180 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25181 if test $ac_cv_header_ext_hash_map = yes; then
25182   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25183 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25184 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25185   echo $ECHO_N "(cached) $ECHO_C" >&6
25186 else
25187   cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193 #include <ext/hash_map>
25194                         #include <ext/hash_set>
25195 int
25196 main ()
25197 {
25198 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25199                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25200   ;
25201   return 0;
25202 }
25203 _ACEOF
25204 rm -f conftest.$ac_objext
25205 if { (ac_try="$ac_compile"
25206 case "(($ac_try" in
25207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208   *) ac_try_echo=$ac_try;;
25209 esac
25210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211   (eval "$ac_compile") 2>conftest.er1
25212   ac_status=$?
25213   grep -v '^ *+' conftest.er1 >conftest.err
25214   rm -f conftest.er1
25215   cat conftest.err >&5
25216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); } && {
25218          test -z "$ac_cxx_werror_flag" ||
25219          test ! -s conftest.err
25220        } && test -s conftest.$ac_objext; then
25221   wx_cv_class_gnuhashmapset=yes
25222 else
25223   echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226         wx_cv_class_gnuhashmapset=no
25227 fi
25228
25229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25230
25231
25232 fi
25233 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25234 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25235 fi
25236
25237
25238
25239         fi
25240     fi
25241 fi
25242
25243
25244
25245   if test -n "$GCC"; then
25246     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25247 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25248     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25249   echo $ECHO_N "(cached) $ECHO_C" >&6
25250 else
25251
25252       cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h.  */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h.  */
25258
25259 int
25260 main ()
25261 {
25262
25263           unsigned int value=0;
25264           /* wxAtomicInc doesn't use return value here */
25265           __sync_fetch_and_add(&value, 2);
25266           __sync_sub_and_fetch(&value, 1);
25267           /* but wxAtomicDec does, so mimic that: */
25268           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25269
25270   ;
25271   return 0;
25272 }
25273 _ACEOF
25274 rm -f conftest.$ac_objext conftest$ac_exeext
25275 if { (ac_try="$ac_link"
25276 case "(($ac_try" in
25277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25278   *) ac_try_echo=$ac_try;;
25279 esac
25280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25281   (eval "$ac_link") 2>conftest.er1
25282   ac_status=$?
25283   grep -v '^ *+' conftest.er1 >conftest.err
25284   rm -f conftest.er1
25285   cat conftest.err >&5
25286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287   (exit $ac_status); } && {
25288          test -z "$ac_cxx_werror_flag" ||
25289          test ! -s conftest.err
25290        } && test -s conftest$ac_exeext &&
25291        $as_test_x conftest$ac_exeext; then
25292   wx_cv_cc_gcc_atomic_builtins=yes
25293 else
25294   echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25296
25297         wx_cv_cc_gcc_atomic_builtins=no
25298 fi
25299
25300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25301       conftest$ac_exeext conftest.$ac_ext
25302
25303 fi
25304
25305     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25306 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25307     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25308       cat >>confdefs.h <<\_ACEOF
25309 #define HAVE_GCC_ATOMIC_BUILTINS 1
25310 _ACEOF
25311
25312     fi
25313   fi
25314
25315
25316 ac_ext=c
25317 ac_cpp='$CPP $CPPFLAGS'
25318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25321
25322
25323
25324 SEARCH_INCLUDE="\
25325     /usr/local/include        \
25326     /usr/local/X11/include    \
25327     /usr/local/include/X11    \
25328     /usr/local/X11R6/include  \
25329     /usr/local/include/X11R6  \
25330                               \
25331     /usr/Motif-2.1/include    \
25332     /usr/Motif-1.2/include    \
25333     /usr/include/Motif1.2     \
25334                               \
25335     /usr/dt/include           \
25336     /usr/openwin/include      \
25337                               \
25338     /usr/include/Xm           \
25339                               \
25340     /usr/X11R6/include        \
25341     /usr/X11R6.4/include      \
25342                               \
25343     /usr/include/X11R6        \
25344                               \
25345     /usr/X11/include          \
25346     /usr/include/X11          \
25347                               \
25348     /usr/XFree86/include/X11  \
25349     /usr/pkg/include          \
25350                               \
25351     /usr/local/X1R5/include  \
25352     /usr/local/include/X11R5  \
25353     /usr/X11R5/include        \
25354     /usr/include/X11R5        \
25355                               \
25356     /usr/local/X11R4/include  \
25357     /usr/local/include/X11R4  \
25358     /usr/X11R4/include        \
25359     /usr/include/X11R4        \
25360                               \
25361     /usr/openwin/share/include"
25362
25363 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25364 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25365
25366 case "${host}" in
25367     *-*-irix6* )
25368         if test "${wx_cv_std_libpath+set}" = set; then
25369   echo $ECHO_N "(cached) $ECHO_C" >&6
25370 else
25371
25372                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25373                     for e in a so sl dylib dll.a; do
25374                         libc="$d/libc.$e"
25375                         if test -f $libc; then
25376                             save_LIBS="$LIBS"
25377                             LIBS="$libc"
25378                             cat >conftest.$ac_ext <<_ACEOF
25379 int main() { return 0; }
25380 _ACEOF
25381 rm -f conftest.$ac_objext conftest$ac_exeext
25382 if { (ac_try="$ac_link"
25383 case "(($ac_try" in
25384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385   *) ac_try_echo=$ac_try;;
25386 esac
25387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25388   (eval "$ac_link") 2>conftest.er1
25389   ac_status=$?
25390   grep -v '^ *+' conftest.er1 >conftest.err
25391   rm -f conftest.er1
25392   cat conftest.err >&5
25393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394   (exit $ac_status); } && {
25395          test -z "$ac_c_werror_flag" ||
25396          test ! -s conftest.err
25397        } && test -s conftest$ac_exeext &&
25398        $as_test_x conftest$ac_exeext; then
25399   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25400 else
25401   echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404
25405 fi
25406
25407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25408       conftest$ac_exeext conftest.$ac_ext
25409                             LIBS="$save_LIBS"
25410                             if test "x$wx_cv_std_libpath" != "x"; then
25411                                 break 2
25412                             fi
25413                         fi
25414                     done
25415                 done
25416                 if test "x$wx_cv_std_libpath" = "x"; then
25417                     wx_cv_std_libpath="lib"
25418                 fi
25419
25420
25421 fi
25422
25423         ;;
25424
25425     *-*-solaris2* )
25426                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25427             wx_cv_std_libpath="lib/64"
25428         else
25429             wx_cv_std_libpath="lib"
25430         fi
25431         ;;
25432
25433     *-*-linux* )
25434                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25435                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25436             wx_cv_std_libpath="lib64"
25437         else
25438             wx_cv_std_libpath="lib"
25439         fi
25440         ;;
25441
25442     *)
25443         wx_cv_std_libpath="lib";
25444         ;;
25445 esac
25446
25447 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25448 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25449
25450 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25451
25452 if test "$build" != "$host" -a "$GCC" = yes; then
25453                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25454         cross_root=`dirname $cross_root`
25455         cross_root=`dirname $cross_root`
25456
25457                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25458         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25459         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25460
25461                 if test -z "$PKG_CONFIG_PATH"; then
25462             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25463             export PKG_CONFIG_PATH
25464         fi
25465
25466                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25467
25468 ac_find_includes=
25469 for ac_dir in $SEARCH_INCLUDE /usr/include;
25470   do
25471     if test -f "$ac_dir/X11/Intrinsic.h"; then
25472       ac_find_includes=$ac_dir
25473       break
25474     fi
25475   done
25476
25477             x_includes=$ac_find_includes
25478         fi
25479         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25480
25481   ac_find_libraries=
25482   for ac_dir in $SEARCH_LIB;
25483   do
25484     for ac_extension in a so sl dylib dll.a; do
25485       if test -f "$ac_dir/libXt.$ac_extension"; then
25486         ac_find_libraries=$ac_dir
25487         break 2
25488       fi
25489     done
25490   done
25491
25492             x_libraries=$ac_find_libraries
25493         fi
25494     fi
25495 fi
25496
25497
25498 cat >confcache <<\_ACEOF
25499 # This file is a shell script that caches the results of configure
25500 # tests run on this system so they can be shared between configure
25501 # scripts and configure runs, see configure's option --config-cache.
25502 # It is not useful on other systems.  If it contains results you don't
25503 # want to keep, you may remove or edit it.
25504 #
25505 # config.status only pays attention to the cache file if you give it
25506 # the --recheck option to rerun configure.
25507 #
25508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25510 # following values.
25511
25512 _ACEOF
25513
25514 # The following way of writing the cache mishandles newlines in values,
25515 # but we know of no workaround that is simple, portable, and efficient.
25516 # So, we kill variables containing newlines.
25517 # Ultrix sh set writes to stderr and can't be redirected directly,
25518 # and sets the high bit in the cache file unless we assign to the vars.
25519 (
25520   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25521     eval ac_val=\$$ac_var
25522     case $ac_val in #(
25523     *${as_nl}*)
25524       case $ac_var in #(
25525       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25527       esac
25528       case $ac_var in #(
25529       _ | IFS | as_nl) ;; #(
25530       *) $as_unset $ac_var ;;
25531       esac ;;
25532     esac
25533   done
25534
25535   (set) 2>&1 |
25536     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25537     *${as_nl}ac_space=\ *)
25538       # `set' does not quote correctly, so add quotes (double-quote
25539       # substitution turns \\\\ into \\, and sed turns \\ into \).
25540       sed -n \
25541         "s/'/'\\\\''/g;
25542           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25543       ;; #(
25544     *)
25545       # `set' quotes correctly as required by POSIX, so do not add quotes.
25546       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25547       ;;
25548     esac |
25549     sort
25550 ) |
25551   sed '
25552      /^ac_cv_env_/b end
25553      t clear
25554      :clear
25555      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25556      t end
25557      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25558      :end' >>confcache
25559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25560   if test -w "$cache_file"; then
25561     test "x$cache_file" != "x/dev/null" &&
25562       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25563 echo "$as_me: updating cache $cache_file" >&6;}
25564     cat confcache >$cache_file
25565   else
25566     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25567 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25568   fi
25569 fi
25570 rm -f confcache
25571
25572 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25573     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25574 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25575 if test "${wx_cv_lib_glibc21+set}" = set; then
25576   echo $ECHO_N "(cached) $ECHO_C" >&6
25577 else
25578
25579         cat >conftest.$ac_ext <<_ACEOF
25580 /* confdefs.h.  */
25581 _ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h.  */
25585 #include <features.h>
25586 int
25587 main ()
25588 {
25589
25590                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25591                 not glibc 2.1
25592                 #endif
25593
25594   ;
25595   return 0;
25596 }
25597 _ACEOF
25598 rm -f conftest.$ac_objext
25599 if { (ac_try="$ac_compile"
25600 case "(($ac_try" in
25601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25602   *) ac_try_echo=$ac_try;;
25603 esac
25604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25605   (eval "$ac_compile") 2>conftest.er1
25606   ac_status=$?
25607   grep -v '^ *+' conftest.er1 >conftest.err
25608   rm -f conftest.er1
25609   cat conftest.err >&5
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); } && {
25612          test -z "$ac_c_werror_flag" ||
25613          test ! -s conftest.err
25614        } && test -s conftest.$ac_objext; then
25615
25616                 wx_cv_lib_glibc21=yes
25617
25618 else
25619   echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622
25623                 wx_cv_lib_glibc21=no
25624
25625
25626 fi
25627
25628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25629
25630 fi
25631 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25632 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25633     if test "$wx_cv_lib_glibc21" = "yes"; then
25634         cat >>confdefs.h <<\_ACEOF
25635 #define wxHAVE_GLIBC2 1
25636 _ACEOF
25637
25638     fi
25639 fi
25640
25641 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25642     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25643         cat >>confdefs.h <<\_ACEOF
25644 #define _GNU_SOURCE 1
25645 _ACEOF
25646
25647     fi
25648 fi
25649
25650 have_cos=0
25651 have_floor=0
25652
25653 for ac_func in cos
25654 do
25655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661   cat >conftest.$ac_ext <<_ACEOF
25662 /* confdefs.h.  */
25663 _ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h.  */
25667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25669 #define $ac_func innocuous_$ac_func
25670
25671 /* System header to define __stub macros and hopefully few prototypes,
25672     which can conflict with char $ac_func (); below.
25673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25674     <limits.h> exists even on freestanding compilers.  */
25675
25676 #ifdef __STDC__
25677 # include <limits.h>
25678 #else
25679 # include <assert.h>
25680 #endif
25681
25682 #undef $ac_func
25683
25684 /* Override any GCC internal prototype to avoid an error.
25685    Use char because int might match the return type of a GCC
25686    builtin and then its argument prototype would still apply.  */
25687 #ifdef __cplusplus
25688 extern "C"
25689 #endif
25690 char $ac_func ();
25691 /* The GNU C library defines this for functions which it implements
25692     to always fail with ENOSYS.  Some functions are actually named
25693     something starting with __ and the normal name is an alias.  */
25694 #if defined __stub_$ac_func || defined __stub___$ac_func
25695 choke me
25696 #endif
25697
25698 int
25699 main ()
25700 {
25701 return $ac_func ();
25702   ;
25703   return 0;
25704 }
25705 _ACEOF
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (ac_try="$ac_link"
25708 case "(($ac_try" in
25709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710   *) ac_try_echo=$ac_try;;
25711 esac
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713   (eval "$ac_link") 2>conftest.er1
25714   ac_status=$?
25715   grep -v '^ *+' conftest.er1 >conftest.err
25716   rm -f conftest.er1
25717   cat conftest.err >&5
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); } && {
25720          test -z "$ac_c_werror_flag" ||
25721          test ! -s conftest.err
25722        } && test -s conftest$ac_exeext &&
25723        $as_test_x conftest$ac_exeext; then
25724   eval "$as_ac_var=yes"
25725 else
25726   echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729         eval "$as_ac_var=no"
25730 fi
25731
25732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25733       conftest$ac_exeext conftest.$ac_ext
25734 fi
25735 ac_res=`eval echo '${'$as_ac_var'}'`
25736                { echo "$as_me:$LINENO: result: $ac_res" >&5
25737 echo "${ECHO_T}$ac_res" >&6; }
25738 if test `eval echo '${'$as_ac_var'}'` = yes; then
25739   cat >>confdefs.h <<_ACEOF
25740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25741 _ACEOF
25742  have_cos=1
25743 fi
25744 done
25745
25746
25747 for ac_func in floor
25748 do
25749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755   cat >conftest.$ac_ext <<_ACEOF
25756 /* confdefs.h.  */
25757 _ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h.  */
25761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25763 #define $ac_func innocuous_$ac_func
25764
25765 /* System header to define __stub macros and hopefully few prototypes,
25766     which can conflict with char $ac_func (); below.
25767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25768     <limits.h> exists even on freestanding compilers.  */
25769
25770 #ifdef __STDC__
25771 # include <limits.h>
25772 #else
25773 # include <assert.h>
25774 #endif
25775
25776 #undef $ac_func
25777
25778 /* Override any GCC internal prototype to avoid an error.
25779    Use char because int might match the return type of a GCC
25780    builtin and then its argument prototype would still apply.  */
25781 #ifdef __cplusplus
25782 extern "C"
25783 #endif
25784 char $ac_func ();
25785 /* The GNU C library defines this for functions which it implements
25786     to always fail with ENOSYS.  Some functions are actually named
25787     something starting with __ and the normal name is an alias.  */
25788 #if defined __stub_$ac_func || defined __stub___$ac_func
25789 choke me
25790 #endif
25791
25792 int
25793 main ()
25794 {
25795 return $ac_func ();
25796   ;
25797   return 0;
25798 }
25799 _ACEOF
25800 rm -f conftest.$ac_objext conftest$ac_exeext
25801 if { (ac_try="$ac_link"
25802 case "(($ac_try" in
25803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804   *) ac_try_echo=$ac_try;;
25805 esac
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807   (eval "$ac_link") 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } && {
25814          test -z "$ac_c_werror_flag" ||
25815          test ! -s conftest.err
25816        } && test -s conftest$ac_exeext &&
25817        $as_test_x conftest$ac_exeext; then
25818   eval "$as_ac_var=yes"
25819 else
25820   echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823         eval "$as_ac_var=no"
25824 fi
25825
25826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25827       conftest$ac_exeext conftest.$ac_ext
25828 fi
25829 ac_res=`eval echo '${'$as_ac_var'}'`
25830                { echo "$as_me:$LINENO: result: $ac_res" >&5
25831 echo "${ECHO_T}$ac_res" >&6; }
25832 if test `eval echo '${'$as_ac_var'}'` = yes; then
25833   cat >>confdefs.h <<_ACEOF
25834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25835 _ACEOF
25836  have_floor=1
25837 fi
25838 done
25839
25840 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25841 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25842 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25843     { echo "$as_me:$LINENO: result: yes" >&5
25844 echo "${ECHO_T}yes" >&6; }
25845 else
25846     { echo "$as_me:$LINENO: result: no" >&5
25847 echo "${ECHO_T}no" >&6; }
25848     LIBS="$LIBS -lm"
25849     # use different functions to avoid configure caching
25850     have_sin=0
25851     have_ceil=0
25852
25853 for ac_func in sin
25854 do
25855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25859   echo $ECHO_N "(cached) $ECHO_C" >&6
25860 else
25861   cat >conftest.$ac_ext <<_ACEOF
25862 /* confdefs.h.  */
25863 _ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h.  */
25867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25869 #define $ac_func innocuous_$ac_func
25870
25871 /* System header to define __stub macros and hopefully few prototypes,
25872     which can conflict with char $ac_func (); below.
25873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25874     <limits.h> exists even on freestanding compilers.  */
25875
25876 #ifdef __STDC__
25877 # include <limits.h>
25878 #else
25879 # include <assert.h>
25880 #endif
25881
25882 #undef $ac_func
25883
25884 /* Override any GCC internal prototype to avoid an error.
25885    Use char because int might match the return type of a GCC
25886    builtin and then its argument prototype would still apply.  */
25887 #ifdef __cplusplus
25888 extern "C"
25889 #endif
25890 char $ac_func ();
25891 /* The GNU C library defines this for functions which it implements
25892     to always fail with ENOSYS.  Some functions are actually named
25893     something starting with __ and the normal name is an alias.  */
25894 #if defined __stub_$ac_func || defined __stub___$ac_func
25895 choke me
25896 #endif
25897
25898 int
25899 main ()
25900 {
25901 return $ac_func ();
25902   ;
25903   return 0;
25904 }
25905 _ACEOF
25906 rm -f conftest.$ac_objext conftest$ac_exeext
25907 if { (ac_try="$ac_link"
25908 case "(($ac_try" in
25909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910   *) ac_try_echo=$ac_try;;
25911 esac
25912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25913   (eval "$ac_link") 2>conftest.er1
25914   ac_status=$?
25915   grep -v '^ *+' conftest.er1 >conftest.err
25916   rm -f conftest.er1
25917   cat conftest.err >&5
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); } && {
25920          test -z "$ac_c_werror_flag" ||
25921          test ! -s conftest.err
25922        } && test -s conftest$ac_exeext &&
25923        $as_test_x conftest$ac_exeext; then
25924   eval "$as_ac_var=yes"
25925 else
25926   echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25928
25929         eval "$as_ac_var=no"
25930 fi
25931
25932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25933       conftest$ac_exeext conftest.$ac_ext
25934 fi
25935 ac_res=`eval echo '${'$as_ac_var'}'`
25936                { echo "$as_me:$LINENO: result: $ac_res" >&5
25937 echo "${ECHO_T}$ac_res" >&6; }
25938 if test `eval echo '${'$as_ac_var'}'` = yes; then
25939   cat >>confdefs.h <<_ACEOF
25940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25941 _ACEOF
25942  have_sin=1
25943 fi
25944 done
25945
25946
25947 for ac_func in ceil
25948 do
25949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25953   echo $ECHO_N "(cached) $ECHO_C" >&6
25954 else
25955   cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h.  */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h.  */
25961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25963 #define $ac_func innocuous_$ac_func
25964
25965 /* System header to define __stub macros and hopefully few prototypes,
25966     which can conflict with char $ac_func (); below.
25967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25968     <limits.h> exists even on freestanding compilers.  */
25969
25970 #ifdef __STDC__
25971 # include <limits.h>
25972 #else
25973 # include <assert.h>
25974 #endif
25975
25976 #undef $ac_func
25977
25978 /* Override any GCC internal prototype to avoid an error.
25979    Use char because int might match the return type of a GCC
25980    builtin and then its argument prototype would still apply.  */
25981 #ifdef __cplusplus
25982 extern "C"
25983 #endif
25984 char $ac_func ();
25985 /* The GNU C library defines this for functions which it implements
25986     to always fail with ENOSYS.  Some functions are actually named
25987     something starting with __ and the normal name is an alias.  */
25988 #if defined __stub_$ac_func || defined __stub___$ac_func
25989 choke me
25990 #endif
25991
25992 int
25993 main ()
25994 {
25995 return $ac_func ();
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 rm -f conftest.$ac_objext conftest$ac_exeext
26001 if { (ac_try="$ac_link"
26002 case "(($ac_try" in
26003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004   *) ac_try_echo=$ac_try;;
26005 esac
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007   (eval "$ac_link") 2>conftest.er1
26008   ac_status=$?
26009   grep -v '^ *+' conftest.er1 >conftest.err
26010   rm -f conftest.er1
26011   cat conftest.err >&5
26012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013   (exit $ac_status); } && {
26014          test -z "$ac_c_werror_flag" ||
26015          test ! -s conftest.err
26016        } && test -s conftest$ac_exeext &&
26017        $as_test_x conftest$ac_exeext; then
26018   eval "$as_ac_var=yes"
26019 else
26020   echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023         eval "$as_ac_var=no"
26024 fi
26025
26026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26027       conftest$ac_exeext conftest.$ac_ext
26028 fi
26029 ac_res=`eval echo '${'$as_ac_var'}'`
26030                { echo "$as_me:$LINENO: result: $ac_res" >&5
26031 echo "${ECHO_T}$ac_res" >&6; }
26032 if test `eval echo '${'$as_ac_var'}'` = yes; then
26033   cat >>confdefs.h <<_ACEOF
26034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26035 _ACEOF
26036  have_ceil=1
26037 fi
26038 done
26039
26040     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26041 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26042     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26043         { echo "$as_me:$LINENO: result: yes" >&5
26044 echo "${ECHO_T}yes" >&6; }
26045     else
26046         { echo "$as_me:$LINENO: result: no" >&5
26047 echo "${ECHO_T}no" >&6; }
26048         # not sure we should warn the user, crash, etc.
26049     fi
26050 fi
26051
26052 ac_ext=cpp
26053 ac_cpp='$CXXCPP $CPPFLAGS'
26054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26057
26058 if test "wxUSE_UNICODE" = "yes"; then
26059
26060   for wx_func in wcstoull
26061   do
26062     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26063 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26064 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26065   echo $ECHO_N "(cached) $ECHO_C" >&6
26066 else
26067
26068         cat >conftest.$ac_ext <<_ACEOF
26069
26070             /* confdefs.h.  */
26071 _ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h.  */
26075
26076
26077                 $ac_includes_default
26078
26079 int
26080 main ()
26081 {
26082
26083                 #ifndef $wx_func
26084                   &$wx_func;
26085                 #endif
26086
26087
26088   ;
26089   return 0;
26090 }
26091
26092 _ACEOF
26093 rm -f conftest.$ac_objext 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>conftest.er1
26101   ac_status=$?
26102   grep -v '^ *+' conftest.er1 >conftest.err
26103   rm -f conftest.er1
26104   cat conftest.err >&5
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); } && {
26107          test -z "$ac_cxx_werror_flag" ||
26108          test ! -s conftest.err
26109        } && test -s conftest$ac_exeext &&
26110        $as_test_x conftest$ac_exeext; then
26111   eval wx_cv_func_$wx_func=yes
26112 else
26113   echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116         eval wx_cv_func_$wx_func=no
26117 fi
26118
26119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26120       conftest$ac_exeext conftest.$ac_ext
26121
26122 fi
26123 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26124                { echo "$as_me:$LINENO: result: $ac_res" >&5
26125 echo "${ECHO_T}$ac_res" >&6; }
26126
26127     if eval test \$wx_cv_func_$wx_func = yes
26128     then
26129       cat >>confdefs.h <<_ACEOF
26130 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26131 _ACEOF
26132
26133
26134     else
26135       :
26136
26137     fi
26138   done
26139
26140 else
26141
26142   for wx_func in strtoull
26143   do
26144     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26145 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26146 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26147   echo $ECHO_N "(cached) $ECHO_C" >&6
26148 else
26149
26150         cat >conftest.$ac_ext <<_ACEOF
26151
26152             /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157
26158
26159                 $ac_includes_default
26160
26161 int
26162 main ()
26163 {
26164
26165                 #ifndef $wx_func
26166                   &$wx_func;
26167                 #endif
26168
26169
26170   ;
26171   return 0;
26172 }
26173
26174 _ACEOF
26175 rm -f conftest.$ac_objext conftest$ac_exeext
26176 if { (ac_try="$ac_link"
26177 case "(($ac_try" in
26178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179   *) ac_try_echo=$ac_try;;
26180 esac
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182   (eval "$ac_link") 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } && {
26189          test -z "$ac_cxx_werror_flag" ||
26190          test ! -s conftest.err
26191        } && test -s conftest$ac_exeext &&
26192        $as_test_x conftest$ac_exeext; then
26193   eval wx_cv_func_$wx_func=yes
26194 else
26195   echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26197
26198         eval wx_cv_func_$wx_func=no
26199 fi
26200
26201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26202       conftest$ac_exeext conftest.$ac_ext
26203
26204 fi
26205 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26206                { echo "$as_me:$LINENO: result: $ac_res" >&5
26207 echo "${ECHO_T}$ac_res" >&6; }
26208
26209     if eval test \$wx_cv_func_$wx_func = yes
26210     then
26211       cat >>confdefs.h <<_ACEOF
26212 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26213 _ACEOF
26214
26215
26216     else
26217       :
26218
26219     fi
26220   done
26221
26222 fi
26223 ac_ext=c
26224 ac_cpp='$CPP $CPPFLAGS'
26225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26228
26229
26230
26231
26232 if test "$wxUSE_REGEX" != "no"; then
26233     cat >>confdefs.h <<\_ACEOF
26234 #define wxUSE_REGEX 1
26235 _ACEOF
26236
26237
26238     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26239         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26240 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26241         wxUSE_REGEX=builtin
26242     fi
26243
26244     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26245                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26246 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26247 if test "${ac_cv_header_regex_h+set}" = set; then
26248   echo $ECHO_N "(cached) $ECHO_C" >&6
26249 else
26250   cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h.  */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h.  */
26256
26257
26258 #include <regex.h>
26259 _ACEOF
26260 rm -f conftest.$ac_objext
26261 if { (ac_try="$ac_compile"
26262 case "(($ac_try" in
26263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26264   *) ac_try_echo=$ac_try;;
26265 esac
26266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26267   (eval "$ac_compile") 2>conftest.er1
26268   ac_status=$?
26269   grep -v '^ *+' conftest.er1 >conftest.err
26270   rm -f conftest.er1
26271   cat conftest.err >&5
26272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273   (exit $ac_status); } && {
26274          test -z "$ac_c_werror_flag" ||
26275          test ! -s conftest.err
26276        } && test -s conftest.$ac_objext; then
26277   ac_cv_header_regex_h=yes
26278 else
26279   echo "$as_me: failed program was:" >&5
26280 sed 's/^/| /' conftest.$ac_ext >&5
26281
26282         ac_cv_header_regex_h=no
26283 fi
26284
26285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26286 fi
26287 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26288 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26289 if test $ac_cv_header_regex_h = yes; then
26290
26291
26292 for ac_func in regcomp re_search
26293 do
26294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300   cat >conftest.$ac_ext <<_ACEOF
26301 /* confdefs.h.  */
26302 _ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h.  */
26306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26308 #define $ac_func innocuous_$ac_func
26309
26310 /* System header to define __stub macros and hopefully few prototypes,
26311     which can conflict with char $ac_func (); below.
26312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26313     <limits.h> exists even on freestanding compilers.  */
26314
26315 #ifdef __STDC__
26316 # include <limits.h>
26317 #else
26318 # include <assert.h>
26319 #endif
26320
26321 #undef $ac_func
26322
26323 /* Override any GCC internal prototype to avoid an error.
26324    Use char because int might match the return type of a GCC
26325    builtin and then its argument prototype would still apply.  */
26326 #ifdef __cplusplus
26327 extern "C"
26328 #endif
26329 char $ac_func ();
26330 /* The GNU C library defines this for functions which it implements
26331     to always fail with ENOSYS.  Some functions are actually named
26332     something starting with __ and the normal name is an alias.  */
26333 #if defined __stub_$ac_func || defined __stub___$ac_func
26334 choke me
26335 #endif
26336
26337 int
26338 main ()
26339 {
26340 return $ac_func ();
26341   ;
26342   return 0;
26343 }
26344 _ACEOF
26345 rm -f conftest.$ac_objext conftest$ac_exeext
26346 if { (ac_try="$ac_link"
26347 case "(($ac_try" in
26348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349   *) ac_try_echo=$ac_try;;
26350 esac
26351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26352   (eval "$ac_link") 2>conftest.er1
26353   ac_status=$?
26354   grep -v '^ *+' conftest.er1 >conftest.err
26355   rm -f conftest.er1
26356   cat conftest.err >&5
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); } && {
26359          test -z "$ac_c_werror_flag" ||
26360          test ! -s conftest.err
26361        } && test -s conftest$ac_exeext &&
26362        $as_test_x conftest$ac_exeext; then
26363   eval "$as_ac_var=yes"
26364 else
26365   echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26367
26368         eval "$as_ac_var=no"
26369 fi
26370
26371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26372       conftest$ac_exeext conftest.$ac_ext
26373 fi
26374 ac_res=`eval echo '${'$as_ac_var'}'`
26375                { echo "$as_me:$LINENO: result: $ac_res" >&5
26376 echo "${ECHO_T}$ac_res" >&6; }
26377 if test `eval echo '${'$as_ac_var'}'` = yes; then
26378   cat >>confdefs.h <<_ACEOF
26379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26380 _ACEOF
26381
26382 fi
26383 done
26384
26385 fi
26386
26387
26388
26389         if test "x$ac_cv_func_regcomp" != "xyes"; then
26390             if test "$wxUSE_REGEX" = "sys" ; then
26391                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26392 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26393    { (exit 1); exit 1; }; }
26394             else
26395                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26396 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26397                 wxUSE_REGEX=builtin
26398             fi
26399         else
26400                         wxUSE_REGEX=sys
26401                         cat >>confdefs.h <<\_ACEOF
26402 #define WX_NO_REGEX_ADVANCED 1
26403 _ACEOF
26404
26405         fi
26406     fi
26407 fi
26408
26409
26410 ZLIB_LINK=
26411 if test "$wxUSE_ZLIB" != "no" ; then
26412     cat >>confdefs.h <<\_ACEOF
26413 #define wxUSE_ZLIB 1
26414 _ACEOF
26415
26416
26417     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26418                                                 if test "$USE_DARWIN" = 1; then
26419             system_zlib_h_ok="yes"
26420         else
26421                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26422 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26423 if test "${ac_cv_header_zlib_h+set}" = set; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   if test "$cross_compiling" = yes; then
26427                       unset ac_cv_header_zlib_h
26428
26429 else
26430   cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436
26437                         #include <zlib.h>
26438                         #include <stdio.h>
26439
26440                         int main()
26441                         {
26442                             FILE *f=fopen("conftestval", "w");
26443                             if (!f) exit(1);
26444                             fprintf(f, "%s",
26445                                     ZLIB_VERSION[0] == '1' &&
26446                                     (ZLIB_VERSION[2] > '1' ||
26447                                     (ZLIB_VERSION[2] == '1' &&
26448                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26449                             exit(0);
26450                         }
26451
26452 _ACEOF
26453 rm -f conftest$ac_exeext
26454 if { (ac_try="$ac_link"
26455 case "(($ac_try" in
26456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26457   *) ac_try_echo=$ac_try;;
26458 esac
26459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26460   (eval "$ac_link") 2>&5
26461   ac_status=$?
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26464   { (case "(($ac_try" in
26465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26466   *) ac_try_echo=$ac_try;;
26467 esac
26468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26469   (eval "$ac_try") 2>&5
26470   ac_status=$?
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); }; }; then
26473   ac_cv_header_zlib_h=`cat conftestval`
26474 else
26475   echo "$as_me: program exited with status $ac_status" >&5
26476 echo "$as_me: failed program was:" >&5
26477 sed 's/^/| /' conftest.$ac_ext >&5
26478
26479 ( exit $ac_status )
26480 ac_cv_header_zlib_h=no
26481 fi
26482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26483 fi
26484
26485
26486
26487 fi
26488 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26489 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26490                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26491 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26492 if test "${ac_cv_header_zlib_h+set}" = set; then
26493   echo $ECHO_N "(cached) $ECHO_C" >&6
26494 else
26495   cat >conftest.$ac_ext <<_ACEOF
26496 /* confdefs.h.  */
26497 _ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h.  */
26501
26502
26503 #include <zlib.h>
26504 _ACEOF
26505 rm -f conftest.$ac_objext
26506 if { (ac_try="$ac_compile"
26507 case "(($ac_try" in
26508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509   *) ac_try_echo=$ac_try;;
26510 esac
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512   (eval "$ac_compile") 2>conftest.er1
26513   ac_status=$?
26514   grep -v '^ *+' conftest.er1 >conftest.err
26515   rm -f conftest.er1
26516   cat conftest.err >&5
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } && {
26519          test -z "$ac_c_werror_flag" ||
26520          test ! -s conftest.err
26521        } && test -s conftest.$ac_objext; then
26522   ac_cv_header_zlib_h=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527         ac_cv_header_zlib_h=no
26528 fi
26529
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 fi
26532 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26533 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26534
26535
26536
26537             system_zlib_h_ok=$ac_cv_header_zlib_h
26538         fi
26539
26540         if test "$system_zlib_h_ok" = "yes"; then
26541             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26542 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26543 if test "${ac_cv_lib_z_deflate+set}" = set; then
26544   echo $ECHO_N "(cached) $ECHO_C" >&6
26545 else
26546   ac_check_lib_save_LIBS=$LIBS
26547 LIBS="-lz  $LIBS"
26548 cat >conftest.$ac_ext <<_ACEOF
26549 /* confdefs.h.  */
26550 _ACEOF
26551 cat confdefs.h >>conftest.$ac_ext
26552 cat >>conftest.$ac_ext <<_ACEOF
26553 /* end confdefs.h.  */
26554
26555 /* Override any GCC internal prototype to avoid an error.
26556    Use char because int might match the return type of a GCC
26557    builtin and then its argument prototype would still apply.  */
26558 #ifdef __cplusplus
26559 extern "C"
26560 #endif
26561 char deflate ();
26562 int
26563 main ()
26564 {
26565 return deflate ();
26566   ;
26567   return 0;
26568 }
26569 _ACEOF
26570 rm -f conftest.$ac_objext conftest$ac_exeext
26571 if { (ac_try="$ac_link"
26572 case "(($ac_try" in
26573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574   *) ac_try_echo=$ac_try;;
26575 esac
26576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577   (eval "$ac_link") 2>conftest.er1
26578   ac_status=$?
26579   grep -v '^ *+' conftest.er1 >conftest.err
26580   rm -f conftest.er1
26581   cat conftest.err >&5
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); } && {
26584          test -z "$ac_c_werror_flag" ||
26585          test ! -s conftest.err
26586        } && test -s conftest$ac_exeext &&
26587        $as_test_x conftest$ac_exeext; then
26588   ac_cv_lib_z_deflate=yes
26589 else
26590   echo "$as_me: failed program was:" >&5
26591 sed 's/^/| /' conftest.$ac_ext >&5
26592
26593         ac_cv_lib_z_deflate=no
26594 fi
26595
26596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26597       conftest$ac_exeext conftest.$ac_ext
26598 LIBS=$ac_check_lib_save_LIBS
26599 fi
26600 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26601 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26602 if test $ac_cv_lib_z_deflate = yes; then
26603   ZLIB_LINK=" -lz"
26604 fi
26605
26606         fi
26607
26608         if test "x$ZLIB_LINK" = "x" ; then
26609             if test "$wxUSE_ZLIB" = "sys" ; then
26610                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26611 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26612    { (exit 1); exit 1; }; }
26613             else
26614                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26615 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26616                 wxUSE_ZLIB=builtin
26617             fi
26618         else
26619                         wxUSE_ZLIB=sys
26620         fi
26621     fi
26622 fi
26623
26624
26625 PNG_LINK=
26626 if test "$wxUSE_LIBPNG" != "no" ; then
26627     cat >>confdefs.h <<\_ACEOF
26628 #define wxUSE_LIBPNG 1
26629 _ACEOF
26630
26631
26632     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26633         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26634 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26635         wxUSE_LIBPNG=sys
26636     fi
26637
26638                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26639         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26640 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26641         wxUSE_LIBPNG=builtin
26642     fi
26643
26644     if test "$wxUSE_MGL" != 1 ; then
26645                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26646                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26647 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26648 if test "${ac_cv_header_png_h+set}" = set; then
26649   echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651   if test "$cross_compiling" = yes; then
26652                       unset ac_cv_header_png_h
26653
26654 else
26655   cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h.  */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h.  */
26661
26662                         #include <png.h>
26663                         #include <stdio.h>
26664
26665                         int main()
26666                         {
26667                             FILE *f=fopen("conftestval", "w");
26668                             if (!f) exit(1);
26669                             fprintf(f, "%s",
26670                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26671                             exit(0);
26672                         }
26673
26674 _ACEOF
26675 rm -f conftest$ac_exeext
26676 if { (ac_try="$ac_link"
26677 case "(($ac_try" in
26678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679   *) ac_try_echo=$ac_try;;
26680 esac
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682   (eval "$ac_link") 2>&5
26683   ac_status=$?
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26686   { (case "(($ac_try" in
26687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688   *) ac_try_echo=$ac_try;;
26689 esac
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691   (eval "$ac_try") 2>&5
26692   ac_status=$?
26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); }; }; then
26695   ac_cv_header_png_h=`cat conftestval`
26696 else
26697   echo "$as_me: program exited with status $ac_status" >&5
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ( exit $ac_status )
26702 ac_cv_header_png_h=no
26703 fi
26704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26705 fi
26706
26707
26708
26709 fi
26710 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26711 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26712             { echo "$as_me:$LINENO: checking for png.h" >&5
26713 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26714 if test "${ac_cv_header_png_h+set}" = set; then
26715   echo $ECHO_N "(cached) $ECHO_C" >&6
26716 else
26717   cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723
26724
26725 #include <png.h>
26726 _ACEOF
26727 rm -f conftest.$ac_objext
26728 if { (ac_try="$ac_compile"
26729 case "(($ac_try" in
26730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731   *) ac_try_echo=$ac_try;;
26732 esac
26733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26734   (eval "$ac_compile") 2>conftest.er1
26735   ac_status=$?
26736   grep -v '^ *+' conftest.er1 >conftest.err
26737   rm -f conftest.er1
26738   cat conftest.err >&5
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); } && {
26741          test -z "$ac_c_werror_flag" ||
26742          test ! -s conftest.err
26743        } && test -s conftest.$ac_objext; then
26744   ac_cv_header_png_h=yes
26745 else
26746   echo "$as_me: failed program was:" >&5
26747 sed 's/^/| /' conftest.$ac_ext >&5
26748
26749         ac_cv_header_png_h=no
26750 fi
26751
26752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26753 fi
26754 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26755 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26756
26757
26758
26759             if test "$ac_cv_header_png_h" = "yes"; then
26760                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26761 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26762 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26763   echo $ECHO_N "(cached) $ECHO_C" >&6
26764 else
26765   ac_check_lib_save_LIBS=$LIBS
26766 LIBS="-lpng -lz -lm $LIBS"
26767 cat >conftest.$ac_ext <<_ACEOF
26768 /* confdefs.h.  */
26769 _ACEOF
26770 cat confdefs.h >>conftest.$ac_ext
26771 cat >>conftest.$ac_ext <<_ACEOF
26772 /* end confdefs.h.  */
26773
26774 /* Override any GCC internal prototype to avoid an error.
26775    Use char because int might match the return type of a GCC
26776    builtin and then its argument prototype would still apply.  */
26777 #ifdef __cplusplus
26778 extern "C"
26779 #endif
26780 char png_check_sig ();
26781 int
26782 main ()
26783 {
26784 return png_check_sig ();
26785   ;
26786   return 0;
26787 }
26788 _ACEOF
26789 rm -f conftest.$ac_objext conftest$ac_exeext
26790 if { (ac_try="$ac_link"
26791 case "(($ac_try" in
26792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793   *) ac_try_echo=$ac_try;;
26794 esac
26795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796   (eval "$ac_link") 2>conftest.er1
26797   ac_status=$?
26798   grep -v '^ *+' conftest.er1 >conftest.err
26799   rm -f conftest.er1
26800   cat conftest.err >&5
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); } && {
26803          test -z "$ac_c_werror_flag" ||
26804          test ! -s conftest.err
26805        } && test -s conftest$ac_exeext &&
26806        $as_test_x conftest$ac_exeext; then
26807   ac_cv_lib_png_png_check_sig=yes
26808 else
26809   echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26811
26812         ac_cv_lib_png_png_check_sig=no
26813 fi
26814
26815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26816       conftest$ac_exeext conftest.$ac_ext
26817 LIBS=$ac_check_lib_save_LIBS
26818 fi
26819 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26820 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26821 if test $ac_cv_lib_png_png_check_sig = yes; then
26822   PNG_LINK=" -lpng -lz"
26823 fi
26824
26825             fi
26826
26827             if test "x$PNG_LINK" = "x" ; then
26828                 if test "$wxUSE_LIBPNG" = "sys" ; then
26829                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26830 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26831    { (exit 1); exit 1; }; }
26832                 else
26833                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26834 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26835                     wxUSE_LIBPNG=builtin
26836                 fi
26837             else
26838                                 wxUSE_LIBPNG=sys
26839             fi
26840         fi
26841     fi
26842 fi
26843
26844
26845 JPEG_LINK=
26846 if test "$wxUSE_LIBJPEG" != "no" ; then
26847     cat >>confdefs.h <<\_ACEOF
26848 #define wxUSE_LIBJPEG 1
26849 _ACEOF
26850
26851
26852     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26853         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26854 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26855         wxUSE_LIBJPEG=sys
26856     fi
26857
26858     if test "$wxUSE_MGL" != 1 ; then
26859                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26860                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26861 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26862             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26863   echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865   cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871
26872                         #undef HAVE_STDLIB_H
26873                         #include <stdio.h>
26874                         #include <jpeglib.h>
26875
26876 int
26877 main ()
26878 {
26879
26880
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 rm -f conftest.$ac_objext
26886 if { (ac_try="$ac_compile"
26887 case "(($ac_try" in
26888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889   *) ac_try_echo=$ac_try;;
26890 esac
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892   (eval "$ac_compile") 2>conftest.er1
26893   ac_status=$?
26894   grep -v '^ *+' conftest.er1 >conftest.err
26895   rm -f conftest.er1
26896   cat conftest.err >&5
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); } && {
26899          test -z "$ac_c_werror_flag" ||
26900          test ! -s conftest.err
26901        } && test -s conftest.$ac_objext; then
26902   ac_cv_header_jpeglib_h=yes
26903 else
26904   echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26906
26907         ac_cv_header_jpeglib_h=no
26908
26909 fi
26910
26911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26912
26913 fi
26914
26915             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26916 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26917
26918             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26919                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26920 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26921 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26922   echo $ECHO_N "(cached) $ECHO_C" >&6
26923 else
26924   ac_check_lib_save_LIBS=$LIBS
26925 LIBS="-ljpeg  $LIBS"
26926 cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932
26933 /* Override any GCC internal prototype to avoid an error.
26934    Use char because int might match the return type of a GCC
26935    builtin and then its argument prototype would still apply.  */
26936 #ifdef __cplusplus
26937 extern "C"
26938 #endif
26939 char jpeg_read_header ();
26940 int
26941 main ()
26942 {
26943 return jpeg_read_header ();
26944   ;
26945   return 0;
26946 }
26947 _ACEOF
26948 rm -f conftest.$ac_objext conftest$ac_exeext
26949 if { (ac_try="$ac_link"
26950 case "(($ac_try" in
26951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952   *) ac_try_echo=$ac_try;;
26953 esac
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955   (eval "$ac_link") 2>conftest.er1
26956   ac_status=$?
26957   grep -v '^ *+' conftest.er1 >conftest.err
26958   rm -f conftest.er1
26959   cat conftest.err >&5
26960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961   (exit $ac_status); } && {
26962          test -z "$ac_c_werror_flag" ||
26963          test ! -s conftest.err
26964        } && test -s conftest$ac_exeext &&
26965        $as_test_x conftest$ac_exeext; then
26966   ac_cv_lib_jpeg_jpeg_read_header=yes
26967 else
26968   echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26970
26971         ac_cv_lib_jpeg_jpeg_read_header=no
26972 fi
26973
26974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26975       conftest$ac_exeext conftest.$ac_ext
26976 LIBS=$ac_check_lib_save_LIBS
26977 fi
26978 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26979 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26980 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26981   JPEG_LINK=" -ljpeg"
26982 fi
26983
26984             fi
26985
26986             if test "x$JPEG_LINK" = "x" ; then
26987                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26988                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26989 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26990    { (exit 1); exit 1; }; }
26991                 else
26992                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26993 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26994                     wxUSE_LIBJPEG=builtin
26995                 fi
26996             else
26997                                 wxUSE_LIBJPEG=sys
26998
26999                 if test "$wxUSE_MSW" = 1; then
27000                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27001 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27002 if test "${ac_cv_type_boolean+set}" = set; then
27003   echo $ECHO_N "(cached) $ECHO_C" >&6
27004 else
27005   cat >conftest.$ac_ext <<_ACEOF
27006 /* confdefs.h.  */
27007 _ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h.  */
27011 #include <windows.h>
27012
27013 typedef boolean ac__type_new_;
27014 int
27015 main ()
27016 {
27017 if ((ac__type_new_ *) 0)
27018   return 0;
27019 if (sizeof (ac__type_new_))
27020   return 0;
27021   ;
27022   return 0;
27023 }
27024 _ACEOF
27025 rm -f conftest.$ac_objext
27026 if { (ac_try="$ac_compile"
27027 case "(($ac_try" in
27028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029   *) ac_try_echo=$ac_try;;
27030 esac
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032   (eval "$ac_compile") 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } && {
27039          test -z "$ac_c_werror_flag" ||
27040          test ! -s conftest.err
27041        } && test -s conftest.$ac_objext; then
27042   ac_cv_type_boolean=yes
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047         ac_cv_type_boolean=no
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051 fi
27052 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27053 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27054 if test $ac_cv_type_boolean = yes; then
27055
27056 cat >>confdefs.h <<_ACEOF
27057 #define HAVE_BOOLEAN 1
27058 _ACEOF
27059
27060
27061                             { echo "$as_me:$LINENO: checking for boolean" >&5
27062 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27063 if test "${ac_cv_type_boolean+set}" = set; then
27064   echo $ECHO_N "(cached) $ECHO_C" >&6
27065 else
27066   cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h.  */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h.  */
27072
27073                                     #undef HAVE_BOOLEAN
27074                                     #include <stdio.h>
27075                                     #include <jpeglib.h>
27076
27077
27078 typedef boolean ac__type_new_;
27079 int
27080 main ()
27081 {
27082 if ((ac__type_new_ *) 0)
27083   return 0;
27084 if (sizeof (ac__type_new_))
27085   return 0;
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest.$ac_objext
27091 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27098   ac_status=$?
27099   grep -v '^ *+' conftest.er1 >conftest.err
27100   rm -f conftest.er1
27101   cat conftest.err >&5
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); } && {
27104          test -z "$ac_c_werror_flag" ||
27105          test ! -s conftest.err
27106        } && test -s conftest.$ac_objext; then
27107   ac_cv_type_boolean=yes
27108 else
27109   echo "$as_me: failed program was:" >&5
27110 sed 's/^/| /' conftest.$ac_ext >&5
27111
27112         ac_cv_type_boolean=no
27113 fi
27114
27115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27116 fi
27117 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27118 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27119
27120 # The cast to long int works around a bug in the HP C Compiler
27121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27123 # This bug is HP SR number 8606223364.
27124 { echo "$as_me:$LINENO: checking size of boolean" >&5
27125 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27126 if test "${ac_cv_sizeof_boolean+set}" = set; then
27127   echo $ECHO_N "(cached) $ECHO_C" >&6
27128 else
27129   if test "$cross_compiling" = yes; then
27130   # Depending upon the size, compute the lo and hi bounds.
27131 cat >conftest.$ac_ext <<_ACEOF
27132 /* confdefs.h.  */
27133 _ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h.  */
27137
27138                                     #undef HAVE_BOOLEAN
27139                                     #include <stdio.h>
27140                                     #include <jpeglib.h>
27141
27142
27143    typedef boolean ac__type_sizeof_;
27144 int
27145 main ()
27146 {
27147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27148 test_array [0] = 0
27149
27150   ;
27151   return 0;
27152 }
27153 _ACEOF
27154 rm -f conftest.$ac_objext
27155 if { (ac_try="$ac_compile"
27156 case "(($ac_try" in
27157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158   *) ac_try_echo=$ac_try;;
27159 esac
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161   (eval "$ac_compile") 2>conftest.er1
27162   ac_status=$?
27163   grep -v '^ *+' conftest.er1 >conftest.err
27164   rm -f conftest.er1
27165   cat conftest.err >&5
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); } && {
27168          test -z "$ac_c_werror_flag" ||
27169          test ! -s conftest.err
27170        } && test -s conftest.$ac_objext; then
27171   ac_lo=0 ac_mid=0
27172   while :; do
27173     cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179
27180                                     #undef HAVE_BOOLEAN
27181                                     #include <stdio.h>
27182                                     #include <jpeglib.h>
27183
27184
27185    typedef boolean ac__type_sizeof_;
27186 int
27187 main ()
27188 {
27189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27190 test_array [0] = 0
27191
27192   ;
27193   return 0;
27194 }
27195 _ACEOF
27196 rm -f conftest.$ac_objext
27197 if { (ac_try="$ac_compile"
27198 case "(($ac_try" in
27199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200   *) ac_try_echo=$ac_try;;
27201 esac
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203   (eval "$ac_compile") 2>conftest.er1
27204   ac_status=$?
27205   grep -v '^ *+' conftest.er1 >conftest.err
27206   rm -f conftest.er1
27207   cat conftest.err >&5
27208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); } && {
27210          test -z "$ac_c_werror_flag" ||
27211          test ! -s conftest.err
27212        } && test -s conftest.$ac_objext; then
27213   ac_hi=$ac_mid; break
27214 else
27215   echo "$as_me: failed program was:" >&5
27216 sed 's/^/| /' conftest.$ac_ext >&5
27217
27218         ac_lo=`expr $ac_mid + 1`
27219                         if test $ac_lo -le $ac_mid; then
27220                           ac_lo= ac_hi=
27221                           break
27222                         fi
27223                         ac_mid=`expr 2 '*' $ac_mid + 1`
27224 fi
27225
27226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27227   done
27228 else
27229   echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27231
27232         cat >conftest.$ac_ext <<_ACEOF
27233 /* confdefs.h.  */
27234 _ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h.  */
27238
27239                                     #undef HAVE_BOOLEAN
27240                                     #include <stdio.h>
27241                                     #include <jpeglib.h>
27242
27243
27244    typedef boolean ac__type_sizeof_;
27245 int
27246 main ()
27247 {
27248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27249 test_array [0] = 0
27250
27251   ;
27252   return 0;
27253 }
27254 _ACEOF
27255 rm -f conftest.$ac_objext
27256 if { (ac_try="$ac_compile"
27257 case "(($ac_try" in
27258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27259   *) ac_try_echo=$ac_try;;
27260 esac
27261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27262   (eval "$ac_compile") 2>conftest.er1
27263   ac_status=$?
27264   grep -v '^ *+' conftest.er1 >conftest.err
27265   rm -f conftest.er1
27266   cat conftest.err >&5
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); } && {
27269          test -z "$ac_c_werror_flag" ||
27270          test ! -s conftest.err
27271        } && test -s conftest.$ac_objext; then
27272   ac_hi=-1 ac_mid=-1
27273   while :; do
27274     cat >conftest.$ac_ext <<_ACEOF
27275 /* confdefs.h.  */
27276 _ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h.  */
27280
27281                                     #undef HAVE_BOOLEAN
27282                                     #include <stdio.h>
27283                                     #include <jpeglib.h>
27284
27285
27286    typedef boolean ac__type_sizeof_;
27287 int
27288 main ()
27289 {
27290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27291 test_array [0] = 0
27292
27293   ;
27294   return 0;
27295 }
27296 _ACEOF
27297 rm -f conftest.$ac_objext
27298 if { (ac_try="$ac_compile"
27299 case "(($ac_try" in
27300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301   *) ac_try_echo=$ac_try;;
27302 esac
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304   (eval "$ac_compile") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } && {
27311          test -z "$ac_c_werror_flag" ||
27312          test ! -s conftest.err
27313        } && test -s conftest.$ac_objext; then
27314   ac_lo=$ac_mid; break
27315 else
27316   echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319         ac_hi=`expr '(' $ac_mid ')' - 1`
27320                         if test $ac_mid -le $ac_hi; then
27321                           ac_lo= ac_hi=
27322                           break
27323                         fi
27324                         ac_mid=`expr 2 '*' $ac_mid`
27325 fi
27326
27327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27328   done
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333         ac_lo= ac_hi=
27334 fi
27335
27336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27337 fi
27338
27339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27340 # Binary search between lo and hi bounds.
27341 while test "x$ac_lo" != "x$ac_hi"; do
27342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349
27350                                     #undef HAVE_BOOLEAN
27351                                     #include <stdio.h>
27352                                     #include <jpeglib.h>
27353
27354
27355    typedef boolean ac__type_sizeof_;
27356 int
27357 main ()
27358 {
27359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27360 test_array [0] = 0
27361
27362   ;
27363   return 0;
27364 }
27365 _ACEOF
27366 rm -f conftest.$ac_objext
27367 if { (ac_try="$ac_compile"
27368 case "(($ac_try" in
27369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370   *) ac_try_echo=$ac_try;;
27371 esac
27372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373   (eval "$ac_compile") 2>conftest.er1
27374   ac_status=$?
27375   grep -v '^ *+' conftest.er1 >conftest.err
27376   rm -f conftest.er1
27377   cat conftest.err >&5
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); } && {
27380          test -z "$ac_c_werror_flag" ||
27381          test ! -s conftest.err
27382        } && test -s conftest.$ac_objext; then
27383   ac_hi=$ac_mid
27384 else
27385   echo "$as_me: failed program was:" >&5
27386 sed 's/^/| /' conftest.$ac_ext >&5
27387
27388         ac_lo=`expr '(' $ac_mid ')' + 1`
27389 fi
27390
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392 done
27393 case $ac_lo in
27394 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27395 '') if test "$ac_cv_type_boolean" = yes; then
27396      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27397 See \`config.log' for more details." >&5
27398 echo "$as_me: error: cannot compute sizeof (boolean)
27399 See \`config.log' for more details." >&2;}
27400    { (exit 77); exit 77; }; }
27401    else
27402      ac_cv_sizeof_boolean=0
27403    fi ;;
27404 esac
27405 else
27406   cat >conftest.$ac_ext <<_ACEOF
27407 /* confdefs.h.  */
27408 _ACEOF
27409 cat confdefs.h >>conftest.$ac_ext
27410 cat >>conftest.$ac_ext <<_ACEOF
27411 /* end confdefs.h.  */
27412
27413                                     #undef HAVE_BOOLEAN
27414                                     #include <stdio.h>
27415                                     #include <jpeglib.h>
27416
27417
27418    typedef boolean ac__type_sizeof_;
27419 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27420 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27421 #include <stdio.h>
27422 #include <stdlib.h>
27423 int
27424 main ()
27425 {
27426
27427   FILE *f = fopen ("conftest.val", "w");
27428   if (! f)
27429     return 1;
27430   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27431     {
27432       long int i = longval ();
27433       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27434         return 1;
27435       fprintf (f, "%ld\n", i);
27436     }
27437   else
27438     {
27439       unsigned long int i = ulongval ();
27440       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27441         return 1;
27442       fprintf (f, "%lu\n", i);
27443     }
27444   return ferror (f) || fclose (f) != 0;
27445
27446   ;
27447   return 0;
27448 }
27449 _ACEOF
27450 rm -f conftest$ac_exeext
27451 if { (ac_try="$ac_link"
27452 case "(($ac_try" in
27453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454   *) ac_try_echo=$ac_try;;
27455 esac
27456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457   (eval "$ac_link") 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27461   { (case "(($ac_try" in
27462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463   *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466   (eval "$ac_try") 2>&5
27467   ac_status=$?
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); }; }; then
27470   ac_cv_sizeof_boolean=`cat conftest.val`
27471 else
27472   echo "$as_me: program exited with status $ac_status" >&5
27473 echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27475
27476 ( exit $ac_status )
27477 if test "$ac_cv_type_boolean" = yes; then
27478      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27479 See \`config.log' for more details." >&5
27480 echo "$as_me: error: cannot compute sizeof (boolean)
27481 See \`config.log' for more details." >&2;}
27482    { (exit 77); exit 77; }; }
27483    else
27484      ac_cv_sizeof_boolean=0
27485    fi
27486 fi
27487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27488 fi
27489 rm -f conftest.val
27490 fi
27491 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27492 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27493
27494
27495
27496 cat >>confdefs.h <<_ACEOF
27497 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27498 _ACEOF
27499
27500
27501                             cat >>confdefs.h <<_ACEOF
27502 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27503 _ACEOF
27504
27505
27506 fi
27507
27508                 fi
27509             fi
27510         fi
27511     fi
27512 fi
27513
27514
27515 TIFF_LINK=
27516 TIFF_PREREQ_LINKS=-lm
27517 if test "$wxUSE_LIBTIFF" != "no" ; then
27518     cat >>confdefs.h <<\_ACEOF
27519 #define wxUSE_LIBTIFF 1
27520 _ACEOF
27521
27522
27523     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27524                         if test "$wxUSE_LIBJPEG" = "sys"; then
27525             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27526         fi
27527         if test "$wxUSE_ZLIB" = "sys"; then
27528             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27529         fi
27530         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27531 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27532 if test "${ac_cv_header_tiffio_h+set}" = set; then
27533   echo $ECHO_N "(cached) $ECHO_C" >&6
27534 else
27535   cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h.  */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h.  */
27541
27542
27543
27544 #include <tiffio.h>
27545 _ACEOF
27546 rm -f conftest.$ac_objext
27547 if { (ac_try="$ac_compile"
27548 case "(($ac_try" in
27549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550   *) ac_try_echo=$ac_try;;
27551 esac
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553   (eval "$ac_compile") 2>conftest.er1
27554   ac_status=$?
27555   grep -v '^ *+' conftest.er1 >conftest.err
27556   rm -f conftest.er1
27557   cat conftest.err >&5
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); } && {
27560          test -z "$ac_c_werror_flag" ||
27561          test ! -s conftest.err
27562        } && test -s conftest.$ac_objext; then
27563   ac_cv_header_tiffio_h=yes
27564 else
27565   echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27567
27568         ac_cv_header_tiffio_h=no
27569 fi
27570
27571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572 fi
27573 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27574 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27575 if test $ac_cv_header_tiffio_h = yes; then
27576
27577                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27578 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27579 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27580   echo $ECHO_N "(cached) $ECHO_C" >&6
27581 else
27582   ac_check_lib_save_LIBS=$LIBS
27583 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27584 cat >conftest.$ac_ext <<_ACEOF
27585 /* confdefs.h.  */
27586 _ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h.  */
27590
27591 /* Override any GCC internal prototype to avoid an error.
27592    Use char because int might match the return type of a GCC
27593    builtin and then its argument prototype would still apply.  */
27594 #ifdef __cplusplus
27595 extern "C"
27596 #endif
27597 char TIFFError ();
27598 int
27599 main ()
27600 {
27601 return TIFFError ();
27602   ;
27603   return 0;
27604 }
27605 _ACEOF
27606 rm -f conftest.$ac_objext conftest$ac_exeext
27607 if { (ac_try="$ac_link"
27608 case "(($ac_try" in
27609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610   *) ac_try_echo=$ac_try;;
27611 esac
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613   (eval "$ac_link") 2>conftest.er1
27614   ac_status=$?
27615   grep -v '^ *+' conftest.er1 >conftest.err
27616   rm -f conftest.er1
27617   cat conftest.err >&5
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); } && {
27620          test -z "$ac_c_werror_flag" ||
27621          test ! -s conftest.err
27622        } && test -s conftest$ac_exeext &&
27623        $as_test_x conftest$ac_exeext; then
27624   ac_cv_lib_tiff_TIFFError=yes
27625 else
27626   echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27628
27629         ac_cv_lib_tiff_TIFFError=no
27630 fi
27631
27632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27633       conftest$ac_exeext conftest.$ac_ext
27634 LIBS=$ac_check_lib_save_LIBS
27635 fi
27636 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27637 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27638 if test $ac_cv_lib_tiff_TIFFError = yes; then
27639   TIFF_LINK=" -ltiff"
27640 fi
27641
27642
27643 fi
27644
27645
27646
27647         if test "x$TIFF_LINK" = "x" ; then
27648             if test "$wxUSE_LIBTIFF" = "sys" ; then
27649                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27650 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27651    { (exit 1); exit 1; }; }
27652             else
27653                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27654 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27655                 wxUSE_LIBTIFF=builtin
27656             fi
27657         else
27658                         wxUSE_LIBTIFF=sys
27659         fi
27660     fi
27661     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27662         if test "$wxUSE_LIBJPEG" = "no"; then
27663                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27664         fi
27665         subdirs="$subdirs src/tiff"
27666
27667     fi
27668 fi
27669
27670
27671 if test "$wxUSE_WCHAR_T" != "yes"; then
27672     if test "$wxUSE_EXPAT" != "no"; then
27673         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27674 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27675         wxUSE_EXPAT=no
27676     fi
27677     if test "$wxUSE_XML" != "no"; then
27678         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27679 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27680         wxUSE_XML=no
27681     fi
27682 fi
27683
27684 if test "$wxUSE_EXPAT" != "no"; then
27685     wxUSE_XML=yes
27686     cat >>confdefs.h <<\_ACEOF
27687 #define wxUSE_EXPAT 1
27688 _ACEOF
27689
27690     cat >>confdefs.h <<\_ACEOF
27691 #define wxUSE_XML 1
27692 _ACEOF
27693
27694
27695     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27696         { echo "$as_me:$LINENO: checking for expat.h" >&5
27697 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27698 if test "${ac_cv_header_expat_h+set}" = set; then
27699   echo $ECHO_N "(cached) $ECHO_C" >&6
27700 else
27701   cat >conftest.$ac_ext <<_ACEOF
27702 /* confdefs.h.  */
27703 _ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h.  */
27707
27708
27709 #include <expat.h>
27710 _ACEOF
27711 rm -f conftest.$ac_objext
27712 if { (ac_try="$ac_compile"
27713 case "(($ac_try" in
27714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715   *) ac_try_echo=$ac_try;;
27716 esac
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718   (eval "$ac_compile") 2>conftest.er1
27719   ac_status=$?
27720   grep -v '^ *+' conftest.er1 >conftest.err
27721   rm -f conftest.er1
27722   cat conftest.err >&5
27723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); } && {
27725          test -z "$ac_c_werror_flag" ||
27726          test ! -s conftest.err
27727        } && test -s conftest.$ac_objext; then
27728   ac_cv_header_expat_h=yes
27729 else
27730   echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27732
27733         ac_cv_header_expat_h=no
27734 fi
27735
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737 fi
27738 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27739 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27740 if test $ac_cv_header_expat_h = yes; then
27741   found_expat_h=1
27742 fi
27743
27744
27745         if test "x$found_expat_h" = "x1"; then
27746                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27747 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27748 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27749   echo $ECHO_N "(cached) $ECHO_C" >&6
27750 else
27751
27752                 ac_ext=cpp
27753 ac_cpp='$CXXCPP $CPPFLAGS'
27754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27757
27758                 cat >conftest.$ac_ext <<_ACEOF
27759 /* confdefs.h.  */
27760 _ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h.  */
27764 #include <expat.h>
27765 int
27766 main ()
27767 {
27768
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 rm -f conftest.$ac_objext
27774 if { (ac_try="$ac_compile"
27775 case "(($ac_try" in
27776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777   *) ac_try_echo=$ac_try;;
27778 esac
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780   (eval "$ac_compile") 2>conftest.er1
27781   ac_status=$?
27782   grep -v '^ *+' conftest.er1 >conftest.err
27783   rm -f conftest.er1
27784   cat conftest.err >&5
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); } && {
27787          test -z "$ac_cxx_werror_flag" ||
27788          test ! -s conftest.err
27789        } && test -s conftest.$ac_objext; then
27790   wx_cv_expat_is_not_broken=yes
27791 else
27792   echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27794
27795         wx_cv_expat_is_not_broken=no
27796
27797 fi
27798
27799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27800                 ac_ext=c
27801 ac_cpp='$CPP $CPPFLAGS'
27802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27805
27806
27807
27808 fi
27809 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27810 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27811             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27812                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27813 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27814 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27815   echo $ECHO_N "(cached) $ECHO_C" >&6
27816 else
27817   ac_check_lib_save_LIBS=$LIBS
27818 LIBS="-lexpat  $LIBS"
27819 cat >conftest.$ac_ext <<_ACEOF
27820 /* confdefs.h.  */
27821 _ACEOF
27822 cat confdefs.h >>conftest.$ac_ext
27823 cat >>conftest.$ac_ext <<_ACEOF
27824 /* end confdefs.h.  */
27825
27826 /* Override any GCC internal prototype to avoid an error.
27827    Use char because int might match the return type of a GCC
27828    builtin and then its argument prototype would still apply.  */
27829 #ifdef __cplusplus
27830 extern "C"
27831 #endif
27832 char XML_ParserCreate ();
27833 int
27834 main ()
27835 {
27836 return XML_ParserCreate ();
27837   ;
27838   return 0;
27839 }
27840 _ACEOF
27841 rm -f conftest.$ac_objext conftest$ac_exeext
27842 if { (ac_try="$ac_link"
27843 case "(($ac_try" in
27844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27845   *) ac_try_echo=$ac_try;;
27846 esac
27847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27848   (eval "$ac_link") 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } && {
27855          test -z "$ac_c_werror_flag" ||
27856          test ! -s conftest.err
27857        } && test -s conftest$ac_exeext &&
27858        $as_test_x conftest$ac_exeext; then
27859   ac_cv_lib_expat_XML_ParserCreate=yes
27860 else
27861   echo "$as_me: failed program was:" >&5
27862 sed 's/^/| /' conftest.$ac_ext >&5
27863
27864         ac_cv_lib_expat_XML_ParserCreate=no
27865 fi
27866
27867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27868       conftest$ac_exeext conftest.$ac_ext
27869 LIBS=$ac_check_lib_save_LIBS
27870 fi
27871 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27872 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27873 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27874   EXPAT_LINK=" -lexpat"
27875 fi
27876
27877             fi
27878         fi
27879         if test "x$EXPAT_LINK" = "x" ; then
27880             if test "$wxUSE_EXPAT" = "sys" ; then
27881                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27882 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27883    { (exit 1); exit 1; }; }
27884             else
27885                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27886 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27887                 wxUSE_EXPAT=builtin
27888             fi
27889         else
27890                         wxUSE_EXPAT=sys
27891         fi
27892     fi
27893     if test "$wxUSE_EXPAT" = "builtin" ; then
27894                 subdirs="$subdirs src/expat"
27895
27896     fi
27897 fi
27898
27899
27900
27901 if test "$wxUSE_LIBMSPACK" != "no"; then
27902     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27903 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27904 if test "${ac_cv_header_mspack_h+set}" = set; then
27905   echo $ECHO_N "(cached) $ECHO_C" >&6
27906 else
27907   cat >conftest.$ac_ext <<_ACEOF
27908 /* confdefs.h.  */
27909 _ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h.  */
27913
27914
27915 #include <mspack.h>
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924   (eval "$ac_compile") 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } && {
27931          test -z "$ac_c_werror_flag" ||
27932          test ! -s conftest.err
27933        } && test -s conftest.$ac_objext; then
27934   ac_cv_header_mspack_h=yes
27935 else
27936   echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27938
27939         ac_cv_header_mspack_h=no
27940 fi
27941
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943 fi
27944 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27945 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27946 if test $ac_cv_header_mspack_h = yes; then
27947   found_mspack_h=1
27948 fi
27949
27950
27951     if test "x$found_mspack_h" = "x1"; then
27952         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27953 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27954 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27955   echo $ECHO_N "(cached) $ECHO_C" >&6
27956 else
27957   ac_check_lib_save_LIBS=$LIBS
27958 LIBS="-lmspack  $LIBS"
27959 cat >conftest.$ac_ext <<_ACEOF
27960 /* confdefs.h.  */
27961 _ACEOF
27962 cat confdefs.h >>conftest.$ac_ext
27963 cat >>conftest.$ac_ext <<_ACEOF
27964 /* end confdefs.h.  */
27965
27966 /* Override any GCC internal prototype to avoid an error.
27967    Use char because int might match the return type of a GCC
27968    builtin and then its argument prototype would still apply.  */
27969 #ifdef __cplusplus
27970 extern "C"
27971 #endif
27972 char mspack_create_chm_decompressor ();
27973 int
27974 main ()
27975 {
27976 return mspack_create_chm_decompressor ();
27977   ;
27978   return 0;
27979 }
27980 _ACEOF
27981 rm -f conftest.$ac_objext conftest$ac_exeext
27982 if { (ac_try="$ac_link"
27983 case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988   (eval "$ac_link") 2>conftest.er1
27989   ac_status=$?
27990   grep -v '^ *+' conftest.er1 >conftest.err
27991   rm -f conftest.er1
27992   cat conftest.err >&5
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); } && {
27995          test -z "$ac_c_werror_flag" ||
27996          test ! -s conftest.err
27997        } && test -s conftest$ac_exeext &&
27998        $as_test_x conftest$ac_exeext; then
27999   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28000 else
28001   echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28003
28004         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28005 fi
28006
28007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28008       conftest$ac_exeext conftest.$ac_ext
28009 LIBS=$ac_check_lib_save_LIBS
28010 fi
28011 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28012 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28013 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28014   MSPACK_LINK=" -lmspack"
28015 fi
28016
28017     fi
28018     if test "x$MSPACK_LINK" = "x" ; then
28019         wxUSE_LIBMSPACK=no
28020     fi
28021 fi
28022
28023 if test "$wxUSE_LIBMSPACK" != "no"; then
28024     cat >>confdefs.h <<\_ACEOF
28025 #define wxUSE_LIBMSPACK 1
28026 _ACEOF
28027
28028 fi
28029
28030
28031
28032 AFMINSTALL=
28033 WIN32INSTALL=
28034
28035 TOOLKIT=
28036 TOOLKIT_INCLUDE=
28037 WIDGET_SET=
28038
28039 if test "$USE_WIN32" = 1 ; then
28040
28041 for ac_header in w32api.h
28042 do
28043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28047   echo $ECHO_N "(cached) $ECHO_C" >&6
28048 else
28049   cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h.  */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h.  */
28055
28056
28057 #include <$ac_header>
28058 _ACEOF
28059 rm -f conftest.$ac_objext
28060 if { (ac_try="$ac_compile"
28061 case "(($ac_try" in
28062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063   *) ac_try_echo=$ac_try;;
28064 esac
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066   (eval "$ac_compile") 2>conftest.er1
28067   ac_status=$?
28068   grep -v '^ *+' conftest.er1 >conftest.err
28069   rm -f conftest.er1
28070   cat conftest.err >&5
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); } && {
28073          test -z "$ac_c_werror_flag" ||
28074          test ! -s conftest.err
28075        } && test -s conftest.$ac_objext; then
28076   eval "$as_ac_Header=yes"
28077 else
28078   echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.$ac_ext >&5
28080
28081         eval "$as_ac_Header=no"
28082 fi
28083
28084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28085 fi
28086 ac_res=`eval echo '${'$as_ac_Header'}'`
28087                { echo "$as_me:$LINENO: result: $ac_res" >&5
28088 echo "${ECHO_T}$ac_res" >&6; }
28089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28090   cat >>confdefs.h <<_ACEOF
28091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28092 _ACEOF
28093
28094 fi
28095
28096 done
28097
28098     { echo "$as_me:$LINENO: checking for windows.h" >&5
28099 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28100 if test "${ac_cv_header_windows_h+set}" = set; then
28101   echo $ECHO_N "(cached) $ECHO_C" >&6
28102 else
28103   cat >conftest.$ac_ext <<_ACEOF
28104 /* confdefs.h.  */
28105 _ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h.  */
28109
28110
28111 #include <windows.h>
28112 _ACEOF
28113 rm -f conftest.$ac_objext
28114 if { (ac_try="$ac_compile"
28115 case "(($ac_try" in
28116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28117   *) ac_try_echo=$ac_try;;
28118 esac
28119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28120   (eval "$ac_compile") 2>conftest.er1
28121   ac_status=$?
28122   grep -v '^ *+' conftest.er1 >conftest.err
28123   rm -f conftest.er1
28124   cat conftest.err >&5
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); } && {
28127          test -z "$ac_c_werror_flag" ||
28128          test ! -s conftest.err
28129        } && test -s conftest.$ac_objext; then
28130   ac_cv_header_windows_h=yes
28131 else
28132   echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135         ac_cv_header_windows_h=no
28136 fi
28137
28138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28139 fi
28140 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28141 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28142 if test $ac_cv_header_windows_h = yes; then
28143   :
28144 else
28145
28146         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28147 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28148    { (exit 1); exit 1; }; }
28149
28150 fi
28151
28152
28153
28154             case "${host}" in
28155         x86_64-*-mingw32* )
28156                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28157         ;;
28158         * )
28159             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28160         ;;
28161     esac
28162     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28163         LIBS="$LIBS -loleacc"
28164     fi
28165
28166     case "${host}" in
28167         *-*-cygwin* )
28168                         LIBS="$LIBS -lkernel32 -luser32"
28169     esac
28170
28171         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28172     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28173
28174                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28175
28176         WIN32INSTALL=win32install
28177
28178         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28179 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28180 if test "${ac_cv_header_pbt_h+set}" = set; then
28181   echo $ECHO_N "(cached) $ECHO_C" >&6
28182 else
28183   cat >conftest.$ac_ext <<_ACEOF
28184 /* confdefs.h.  */
28185 _ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h.  */
28189
28190
28191 #include <pbt.h>
28192 _ACEOF
28193 rm -f conftest.$ac_objext
28194 if { (ac_try="$ac_compile"
28195 case "(($ac_try" in
28196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197   *) ac_try_echo=$ac_try;;
28198 esac
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200   (eval "$ac_compile") 2>conftest.er1
28201   ac_status=$?
28202   grep -v '^ *+' conftest.er1 >conftest.err
28203   rm -f conftest.er1
28204   cat conftest.err >&5
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); } && {
28207          test -z "$ac_c_werror_flag" ||
28208          test ! -s conftest.err
28209        } && test -s conftest.$ac_objext; then
28210   ac_cv_header_pbt_h=yes
28211 else
28212   echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28214
28215         ac_cv_header_pbt_h=no
28216 fi
28217
28218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28219 fi
28220 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28221 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28222 if test $ac_cv_header_pbt_h = yes; then
28223   :
28224 else
28225   cat >>confdefs.h <<\_ACEOF
28226 #define NEED_PBT_H 1
28227 _ACEOF
28228
28229 fi
28230
28231
28232 fi
28233
28234 if test "$wxUSE_GUI" = "yes"; then
28235     USE_GUI=1
28236
28237     GUI_TK_LIBRARY=
28238
28239     WXGTK12=
28240     WXGTK127=
28241     WXGTK2=
28242     WXGPE=
28243
28244     if test "$wxUSE_COCOA" = 1 ; then
28245         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28246             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28247 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28248             wxUSE_PRINTING_ARCHITECTURE=no
28249         fi
28250         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28251             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28252 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28253             wxUSE_DRAG_AND_DROP=no
28254         fi
28255         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28256             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28257 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28258             wxUSE_DRAGIMAGE=no
28259         fi
28260     fi
28261
28262     if test "$wxUSE_MSW" = 1 ; then
28263         TOOLKIT=MSW
28264         GUIDIST=MSW_DIST
28265
28266                 case "${host}" in
28267             *-*-mingw32* )
28268                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28269         esac
28270     fi
28271
28272     if test "$wxUSE_GTK" = 1; then
28273                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28274 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28275
28276         gtk_version_cached=1
28277         if test "${wx_cv_lib_gtk+set}" = set; then
28278   echo $ECHO_N "(cached) $ECHO_C" >&6
28279 else
28280
28281                                                 gtk_version_cached=0
28282                 { echo "$as_me:$LINENO: result: " >&5
28283 echo "${ECHO_T}" >&6; }
28284
28285                                                 GTK_MODULES=
28286                 if test "$wxUSE_THREADS" = "yes"; then
28287                     GTK_MODULES=gthread
28288                 fi
28289
28290                                 wx_cv_lib_gtk=
28291                 if test "x$wxGTK_VERSION" != "x1"
28292                 then
28293                                                                                 case "${host}" in
28294                         *-*-solaris2* )
28295                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28296                                 enable_gtktest=no
28297                             fi
28298                     esac
28299
28300                     # Check whether --enable-gtktest was given.
28301 if test "${enable_gtktest+set}" = set; then
28302   enableval=$enable_gtktest;
28303 else
28304   enable_gtktest=yes
28305 fi
28306
28307
28308   pkg_config_args=gtk+-2.0
28309   for module in . $GTK_MODULES
28310   do
28311       case "$module" in
28312          gthread)
28313              pkg_config_args="$pkg_config_args gthread-2.0"
28314          ;;
28315       esac
28316   done
28317
28318   no_gtk=""
28319
28320   # Extract the first word of "pkg-config", so it can be a program name with args.
28321 set dummy pkg-config; ac_word=$2
28322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28324 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28325   echo $ECHO_N "(cached) $ECHO_C" >&6
28326 else
28327   case $PKG_CONFIG in
28328   [\\/]* | ?:[\\/]*)
28329   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28330   ;;
28331   *)
28332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28333 for as_dir in $PATH
28334 do
28335   IFS=$as_save_IFS
28336   test -z "$as_dir" && as_dir=.
28337   for ac_exec_ext in '' $ac_executable_extensions; do
28338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28339     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28341     break 2
28342   fi
28343 done
28344 done
28345 IFS=$as_save_IFS
28346
28347   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28348   ;;
28349 esac
28350 fi
28351 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28352 if test -n "$PKG_CONFIG"; then
28353   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28354 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28355 else
28356   { echo "$as_me:$LINENO: result: no" >&5
28357 echo "${ECHO_T}no" >&6; }
28358 fi
28359
28360
28361
28362   if test x$PKG_CONFIG != xno ; then
28363     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28364       :
28365     else
28366       echo "*** pkg-config too old; version 0.7 or better required."
28367       no_gtk=yes
28368       PKG_CONFIG=no
28369     fi
28370   else
28371     no_gtk=yes
28372   fi
28373
28374   min_gtk_version=2.4.0
28375   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28376 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28377
28378   if test x$PKG_CONFIG != xno ; then
28379     ## don't try to run the test against uninstalled libtool libs
28380     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28381           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28382           enable_gtktest=no
28383     fi
28384
28385     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28386           :
28387     else
28388           no_gtk=yes
28389     fi
28390   fi
28391
28392   if test x"$no_gtk" = x ; then
28393     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28394     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28395     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28396            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28397     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28398            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28399     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28400            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28401     if test "x$enable_gtktest" = "xyes" ; then
28402       ac_save_CFLAGS="$CFLAGS"
28403       ac_save_LIBS="$LIBS"
28404       CFLAGS="$CFLAGS $GTK_CFLAGS"
28405       LIBS="$GTK_LIBS $LIBS"
28406       rm -f conf.gtktest
28407       if test "$cross_compiling" = yes; then
28408   echo $ac_n "cross compiling; assumed OK... $ac_c"
28409 else
28410   cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h.  */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h.  */
28416
28417 #include <gtk/gtk.h>
28418 #include <stdio.h>
28419 #include <stdlib.h>
28420
28421 int
28422 main ()
28423 {
28424   int major, minor, micro;
28425   char *tmp_version;
28426
28427   system ("touch conf.gtktest");
28428
28429   /* HP/UX 9 (%@#!) writes to sscanf strings */
28430   tmp_version = g_strdup("$min_gtk_version");
28431   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28432      printf("%s, bad version string\n", "$min_gtk_version");
28433      exit(1);
28434    }
28435
28436   if ((gtk_major_version != $gtk_config_major_version) ||
28437       (gtk_minor_version != $gtk_config_minor_version) ||
28438       (gtk_micro_version != $gtk_config_micro_version))
28439     {
28440       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28441              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28442              gtk_major_version, gtk_minor_version, gtk_micro_version);
28443       printf ("*** was found! If pkg-config was correct, then it is best\n");
28444       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28445       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28446       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28447       printf("*** required on your system.\n");
28448       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28449       printf("*** to point to the correct configuration files\n");
28450     }
28451   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28452            (gtk_minor_version != GTK_MINOR_VERSION) ||
28453            (gtk_micro_version != GTK_MICRO_VERSION))
28454     {
28455       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28456              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28457       printf("*** library (version %d.%d.%d)\n",
28458              gtk_major_version, gtk_minor_version, gtk_micro_version);
28459     }
28460   else
28461     {
28462       if ((gtk_major_version > major) ||
28463         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28464         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28465       {
28466         return 0;
28467        }
28468      else
28469       {
28470         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28471                gtk_major_version, gtk_minor_version, gtk_micro_version);
28472         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28473                major, minor, micro);
28474         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28475         printf("***\n");
28476         printf("*** If you have already installed a sufficiently new version, this error\n");
28477         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28478         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28479         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28480         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28481         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28482         printf("*** so that the correct libraries are found at run-time))\n");
28483       }
28484     }
28485   return 1;
28486 }
28487
28488 _ACEOF
28489 rm -f conftest$ac_exeext
28490 if { (ac_try="$ac_link"
28491 case "(($ac_try" in
28492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493   *) ac_try_echo=$ac_try;;
28494 esac
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496   (eval "$ac_link") 2>&5
28497   ac_status=$?
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28500   { (case "(($ac_try" in
28501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502   *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505   (eval "$ac_try") 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; }; then
28509   :
28510 else
28511   echo "$as_me: program exited with status $ac_status" >&5
28512 echo "$as_me: failed program was:" >&5
28513 sed 's/^/| /' conftest.$ac_ext >&5
28514
28515 ( exit $ac_status )
28516 no_gtk=yes
28517 fi
28518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28519 fi
28520
28521
28522        CFLAGS="$ac_save_CFLAGS"
28523        LIBS="$ac_save_LIBS"
28524      fi
28525   fi
28526   if test "x$no_gtk" = x ; then
28527      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28528 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28529      wx_cv_lib_gtk=2.0
28530   else
28531      { echo "$as_me:$LINENO: result: no" >&5
28532 echo "${ECHO_T}no" >&6; }
28533      if test "$PKG_CONFIG" = "no" ; then
28534        echo "*** A new enough version of pkg-config was not found."
28535        echo "*** See http://pkgconfig.sourceforge.net"
28536      else
28537        if test -f conf.gtktest ; then
28538         :
28539        else
28540           echo "*** Could not run GTK+ test program, checking why..."
28541           ac_save_CFLAGS="$CFLAGS"
28542           ac_save_LIBS="$LIBS"
28543           CFLAGS="$CFLAGS $GTK_CFLAGS"
28544           LIBS="$LIBS $GTK_LIBS"
28545           cat >conftest.$ac_ext <<_ACEOF
28546 /* confdefs.h.  */
28547 _ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h.  */
28551
28552 #include <gtk/gtk.h>
28553 #include <stdio.h>
28554
28555 int
28556 main ()
28557 {
28558  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28559   ;
28560   return 0;
28561 }
28562 _ACEOF
28563 rm -f conftest.$ac_objext conftest$ac_exeext
28564 if { (ac_try="$ac_link"
28565 case "(($ac_try" in
28566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567   *) ac_try_echo=$ac_try;;
28568 esac
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570   (eval "$ac_link") 2>conftest.er1
28571   ac_status=$?
28572   grep -v '^ *+' conftest.er1 >conftest.err
28573   rm -f conftest.er1
28574   cat conftest.err >&5
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); } && {
28577          test -z "$ac_c_werror_flag" ||
28578          test ! -s conftest.err
28579        } && test -s conftest$ac_exeext &&
28580        $as_test_x conftest$ac_exeext; then
28581    echo "*** The test program compiled, but did not run. This usually means"
28582           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28583           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28584           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28585           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28586           echo "*** is required on your system"
28587           echo "***"
28588           echo "*** If you have an old version installed, it is best to remove it, although"
28589           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28590 else
28591   echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28593
28594          echo "*** The test program failed to compile or link. See the file config.log for the"
28595           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28596 fi
28597
28598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28599       conftest$ac_exeext conftest.$ac_ext
28600           CFLAGS="$ac_save_CFLAGS"
28601           LIBS="$ac_save_LIBS"
28602        fi
28603      fi
28604      GTK_CFLAGS=""
28605      GTK_LIBS=""
28606      :
28607   fi
28608
28609
28610   rm -f conf.gtktest
28611
28612
28613                                         case "${host}" in
28614                         *-*-solaris2* )
28615                             if test "$wxUSE_SHARED" != "yes"; then
28616                                 GTK_LIBS="$GTK_LIBS -lX11"
28617                             fi
28618                     esac
28619                 fi
28620
28621                                 if test -z "$wx_cv_lib_gtk"; then
28622                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28623
28624 # Check whether --with-gtk-prefix was given.
28625 if test "${with_gtk_prefix+set}" = set; then
28626   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28627 else
28628   gtk_config_prefix=""
28629 fi
28630
28631
28632 # Check whether --with-gtk-exec-prefix was given.
28633 if test "${with_gtk_exec_prefix+set}" = set; then
28634   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28635 else
28636   gtk_config_exec_prefix=""
28637 fi
28638
28639 # Check whether --enable-gtktest was given.
28640 if test "${enable_gtktest+set}" = set; then
28641   enableval=$enable_gtktest;
28642 else
28643   enable_gtktest=yes
28644 fi
28645
28646
28647   for module in . $GTK_MODULES
28648   do
28649       case "$module" in
28650          gthread)
28651              gtk_config_args="$gtk_config_args gthread"
28652          ;;
28653       esac
28654   done
28655
28656   if test x$gtk_config_exec_prefix != x ; then
28657      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28658      if test x${GTK_CONFIG+set} != xset ; then
28659         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28660      fi
28661   fi
28662   if test x$gtk_config_prefix != x ; then
28663      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28664      if test x${GTK_CONFIG+set} != xset ; then
28665         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28666      fi
28667   fi
28668
28669   # Extract the first word of "gtk-config", so it can be a program name with args.
28670 set dummy gtk-config; ac_word=$2
28671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28673 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28674   echo $ECHO_N "(cached) $ECHO_C" >&6
28675 else
28676   case $GTK_CONFIG in
28677   [\\/]* | ?:[\\/]*)
28678   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28679   ;;
28680   *)
28681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28682 for as_dir in $PATH
28683 do
28684   IFS=$as_save_IFS
28685   test -z "$as_dir" && as_dir=.
28686   for ac_exec_ext in '' $ac_executable_extensions; do
28687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28688     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28690     break 2
28691   fi
28692 done
28693 done
28694 IFS=$as_save_IFS
28695
28696   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28697   ;;
28698 esac
28699 fi
28700 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28701 if test -n "$GTK_CONFIG"; then
28702   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28703 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28704 else
28705   { echo "$as_me:$LINENO: result: no" >&5
28706 echo "${ECHO_T}no" >&6; }
28707 fi
28708
28709
28710   min_gtk_version=1.2.7
28711   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28712 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28713   no_gtk=""
28714   if test "$GTK_CONFIG" = "no" ; then
28715     no_gtk=yes
28716   else
28717     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28718     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28719     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28721     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28722            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28723     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28724            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28725     if test "x$enable_gtktest" = "xyes" ; then
28726       ac_save_CFLAGS="$CFLAGS"
28727       ac_save_LIBS="$LIBS"
28728       CFLAGS="$CFLAGS $GTK_CFLAGS"
28729       LIBS="$GTK_LIBS $LIBS"
28730       rm -f conf.gtktest
28731       if test "$cross_compiling" = yes; then
28732   echo $ac_n "cross compiling; assumed OK... $ac_c"
28733 else
28734   cat >conftest.$ac_ext <<_ACEOF
28735 /* confdefs.h.  */
28736 _ACEOF
28737 cat confdefs.h >>conftest.$ac_ext
28738 cat >>conftest.$ac_ext <<_ACEOF
28739 /* end confdefs.h.  */
28740
28741 #include <gtk/gtk.h>
28742 #include <stdio.h>
28743 #include <stdlib.h>
28744
28745 int
28746 main ()
28747 {
28748   int major, minor, micro;
28749   char *tmp_version;
28750
28751   system ("touch conf.gtktest");
28752
28753   /* HP/UX 9 (%@#!) writes to sscanf strings */
28754   tmp_version = g_strdup("$min_gtk_version");
28755   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28756      printf("%s, bad version string\n", "$min_gtk_version");
28757      exit(1);
28758    }
28759
28760   if ((gtk_major_version != $gtk_config_major_version) ||
28761       (gtk_minor_version != $gtk_config_minor_version) ||
28762       (gtk_micro_version != $gtk_config_micro_version))
28763     {
28764       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28765              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28766              gtk_major_version, gtk_minor_version, gtk_micro_version);
28767       printf ("*** was found! If gtk-config was correct, then it is best\n");
28768       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28769       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28770       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28771       printf("*** required on your system.\n");
28772       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28773       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28774       printf("*** before re-running configure\n");
28775     }
28776 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28777   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28778            (gtk_minor_version != GTK_MINOR_VERSION) ||
28779            (gtk_micro_version != GTK_MICRO_VERSION))
28780     {
28781       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28782              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28783       printf("*** library (version %d.%d.%d)\n",
28784              gtk_major_version, gtk_minor_version, gtk_micro_version);
28785     }
28786 #endif /* defined (GTK_MAJOR_VERSION) ... */
28787   else
28788     {
28789       if ((gtk_major_version > major) ||
28790         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28791         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28792       {
28793         return 0;
28794        }
28795      else
28796       {
28797         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28798                gtk_major_version, gtk_minor_version, gtk_micro_version);
28799         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28800                major, minor, micro);
28801         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28802         printf("***\n");
28803         printf("*** If you have already installed a sufficiently new version, this error\n");
28804         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28805         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28806         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28807         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28808         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28809         printf("*** so that the correct libraries are found at run-time))\n");
28810       }
28811     }
28812   return 1;
28813 }
28814
28815 _ACEOF
28816 rm -f conftest$ac_exeext
28817 if { (ac_try="$ac_link"
28818 case "(($ac_try" in
28819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820   *) ac_try_echo=$ac_try;;
28821 esac
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823   (eval "$ac_link") 2>&5
28824   ac_status=$?
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28827   { (case "(($ac_try" in
28828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829   *) ac_try_echo=$ac_try;;
28830 esac
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832   (eval "$ac_try") 2>&5
28833   ac_status=$?
28834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835   (exit $ac_status); }; }; then
28836   :
28837 else
28838   echo "$as_me: program exited with status $ac_status" >&5
28839 echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28841
28842 ( exit $ac_status )
28843 no_gtk=yes
28844 fi
28845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28846 fi
28847
28848
28849        CFLAGS="$ac_save_CFLAGS"
28850        LIBS="$ac_save_LIBS"
28851      fi
28852   fi
28853   if test "x$no_gtk" = x ; then
28854      { echo "$as_me:$LINENO: result: yes" >&5
28855 echo "${ECHO_T}yes" >&6; }
28856      wx_cv_lib_gtk=1.2.7
28857   else
28858      { echo "$as_me:$LINENO: result: no" >&5
28859 echo "${ECHO_T}no" >&6; }
28860      if test "$GTK_CONFIG" = "no" ; then
28861        echo "*** The gtk-config script installed by GTK could not be found"
28862        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28863        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28864        echo "*** full path to gtk-config."
28865      else
28866        if test -f conf.gtktest ; then
28867         :
28868        else
28869           echo "*** Could not run GTK test program, checking why..."
28870           CFLAGS="$CFLAGS $GTK_CFLAGS"
28871           LIBS="$LIBS $GTK_LIBS"
28872           cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878
28879 #include <gtk/gtk.h>
28880 #include <stdio.h>
28881
28882 int
28883 main ()
28884 {
28885  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28886   ;
28887   return 0;
28888 }
28889 _ACEOF
28890 rm -f conftest.$ac_objext conftest$ac_exeext
28891 if { (ac_try="$ac_link"
28892 case "(($ac_try" in
28893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894   *) ac_try_echo=$ac_try;;
28895 esac
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897   (eval "$ac_link") 2>conftest.er1
28898   ac_status=$?
28899   grep -v '^ *+' conftest.er1 >conftest.err
28900   rm -f conftest.er1
28901   cat conftest.err >&5
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); } && {
28904          test -z "$ac_c_werror_flag" ||
28905          test ! -s conftest.err
28906        } && test -s conftest$ac_exeext &&
28907        $as_test_x conftest$ac_exeext; then
28908    echo "*** The test program compiled, but did not run. This usually means"
28909           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28910           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28911           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28912           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28913           echo "*** is required on your system"
28914           echo "***"
28915           echo "*** If you have an old version installed, it is best to remove it, although"
28916           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28917           echo "***"
28918           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28919           echo "*** came with the system with the command"
28920           echo "***"
28921           echo "***    rpm --erase --nodeps gtk gtk-devel"
28922 else
28923   echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28925
28926          echo "*** The test program failed to compile or link. See the file config.log for the"
28927           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28928           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28929           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28930 fi
28931
28932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28933       conftest$ac_exeext conftest.$ac_ext
28934           CFLAGS="$ac_save_CFLAGS"
28935           LIBS="$ac_save_LIBS"
28936        fi
28937      fi
28938      GTK_CFLAGS=""
28939      GTK_LIBS=""
28940      :
28941   fi
28942
28943
28944   rm -f conf.gtktest
28945
28946
28947                         if test -z "$wx_cv_lib_gtk"; then
28948
28949 # Check whether --with-gtk-prefix was given.
28950 if test "${with_gtk_prefix+set}" = set; then
28951   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28952 else
28953   gtk_config_prefix=""
28954 fi
28955
28956
28957 # Check whether --with-gtk-exec-prefix was given.
28958 if test "${with_gtk_exec_prefix+set}" = set; then
28959   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28960 else
28961   gtk_config_exec_prefix=""
28962 fi
28963
28964 # Check whether --enable-gtktest was given.
28965 if test "${enable_gtktest+set}" = set; then
28966   enableval=$enable_gtktest;
28967 else
28968   enable_gtktest=yes
28969 fi
28970
28971
28972   for module in . $GTK_MODULES
28973   do
28974       case "$module" in
28975          gthread)
28976              gtk_config_args="$gtk_config_args gthread"
28977          ;;
28978       esac
28979   done
28980
28981   if test x$gtk_config_exec_prefix != x ; then
28982      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28983      if test x${GTK_CONFIG+set} != xset ; then
28984         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28985      fi
28986   fi
28987   if test x$gtk_config_prefix != x ; then
28988      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28989      if test x${GTK_CONFIG+set} != xset ; then
28990         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28991      fi
28992   fi
28993
28994   # Extract the first word of "gtk-config", so it can be a program name with args.
28995 set dummy gtk-config; ac_word=$2
28996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28998 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001   case $GTK_CONFIG in
29002   [\\/]* | ?:[\\/]*)
29003   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29004   ;;
29005   *)
29006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29007 for as_dir in $PATH
29008 do
29009   IFS=$as_save_IFS
29010   test -z "$as_dir" && as_dir=.
29011   for ac_exec_ext in '' $ac_executable_extensions; do
29012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29013     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29015     break 2
29016   fi
29017 done
29018 done
29019 IFS=$as_save_IFS
29020
29021   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29022   ;;
29023 esac
29024 fi
29025 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29026 if test -n "$GTK_CONFIG"; then
29027   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29028 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29029 else
29030   { echo "$as_me:$LINENO: result: no" >&5
29031 echo "${ECHO_T}no" >&6; }
29032 fi
29033
29034
29035   min_gtk_version=1.2.3
29036   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29037 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29038   no_gtk=""
29039   if test "$GTK_CONFIG" = "no" ; then
29040     no_gtk=yes
29041   else
29042     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29043     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29044     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29045            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29046     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29047            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29048     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29049            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29050     if test "x$enable_gtktest" = "xyes" ; then
29051       ac_save_CFLAGS="$CFLAGS"
29052       ac_save_LIBS="$LIBS"
29053       CFLAGS="$CFLAGS $GTK_CFLAGS"
29054       LIBS="$GTK_LIBS $LIBS"
29055       rm -f conf.gtktest
29056       if test "$cross_compiling" = yes; then
29057   echo $ac_n "cross compiling; assumed OK... $ac_c"
29058 else
29059   cat >conftest.$ac_ext <<_ACEOF
29060 /* confdefs.h.  */
29061 _ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h.  */
29065
29066 #include <gtk/gtk.h>
29067 #include <stdio.h>
29068 #include <stdlib.h>
29069
29070 int
29071 main ()
29072 {
29073   int major, minor, micro;
29074   char *tmp_version;
29075
29076   system ("touch conf.gtktest");
29077
29078   /* HP/UX 9 (%@#!) writes to sscanf strings */
29079   tmp_version = g_strdup("$min_gtk_version");
29080   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29081      printf("%s, bad version string\n", "$min_gtk_version");
29082      exit(1);
29083    }
29084
29085   if ((gtk_major_version != $gtk_config_major_version) ||
29086       (gtk_minor_version != $gtk_config_minor_version) ||
29087       (gtk_micro_version != $gtk_config_micro_version))
29088     {
29089       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29090              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29091              gtk_major_version, gtk_minor_version, gtk_micro_version);
29092       printf ("*** was found! If gtk-config was correct, then it is best\n");
29093       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29094       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29095       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29096       printf("*** required on your system.\n");
29097       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29098       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29099       printf("*** before re-running configure\n");
29100     }
29101 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29102   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29103            (gtk_minor_version != GTK_MINOR_VERSION) ||
29104            (gtk_micro_version != GTK_MICRO_VERSION))
29105     {
29106       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29107              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29108       printf("*** library (version %d.%d.%d)\n",
29109              gtk_major_version, gtk_minor_version, gtk_micro_version);
29110     }
29111 #endif /* defined (GTK_MAJOR_VERSION) ... */
29112   else
29113     {
29114       if ((gtk_major_version > major) ||
29115         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29116         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29117       {
29118         return 0;
29119        }
29120      else
29121       {
29122         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29123                gtk_major_version, gtk_minor_version, gtk_micro_version);
29124         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29125                major, minor, micro);
29126         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29127         printf("***\n");
29128         printf("*** If you have already installed a sufficiently new version, this error\n");
29129         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29130         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29131         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29132         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29133         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29134         printf("*** so that the correct libraries are found at run-time))\n");
29135       }
29136     }
29137   return 1;
29138 }
29139
29140 _ACEOF
29141 rm -f conftest$ac_exeext
29142 if { (ac_try="$ac_link"
29143 case "(($ac_try" in
29144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145   *) ac_try_echo=$ac_try;;
29146 esac
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148   (eval "$ac_link") 2>&5
29149   ac_status=$?
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29152   { (case "(($ac_try" in
29153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154   *) ac_try_echo=$ac_try;;
29155 esac
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157   (eval "$ac_try") 2>&5
29158   ac_status=$?
29159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160   (exit $ac_status); }; }; then
29161   :
29162 else
29163   echo "$as_me: program exited with status $ac_status" >&5
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29166
29167 ( exit $ac_status )
29168 no_gtk=yes
29169 fi
29170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29171 fi
29172
29173
29174        CFLAGS="$ac_save_CFLAGS"
29175        LIBS="$ac_save_LIBS"
29176      fi
29177   fi
29178   if test "x$no_gtk" = x ; then
29179      { echo "$as_me:$LINENO: result: yes" >&5
29180 echo "${ECHO_T}yes" >&6; }
29181      wx_cv_lib_gtk=1.2.3
29182   else
29183      { echo "$as_me:$LINENO: result: no" >&5
29184 echo "${ECHO_T}no" >&6; }
29185      if test "$GTK_CONFIG" = "no" ; then
29186        echo "*** The gtk-config script installed by GTK could not be found"
29187        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29188        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29189        echo "*** full path to gtk-config."
29190      else
29191        if test -f conf.gtktest ; then
29192         :
29193        else
29194           echo "*** Could not run GTK test program, checking why..."
29195           CFLAGS="$CFLAGS $GTK_CFLAGS"
29196           LIBS="$LIBS $GTK_LIBS"
29197           cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h.  */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h.  */
29203
29204 #include <gtk/gtk.h>
29205 #include <stdio.h>
29206
29207 int
29208 main ()
29209 {
29210  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29211   ;
29212   return 0;
29213 }
29214 _ACEOF
29215 rm -f conftest.$ac_objext conftest$ac_exeext
29216 if { (ac_try="$ac_link"
29217 case "(($ac_try" in
29218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219   *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222   (eval "$ac_link") 2>conftest.er1
29223   ac_status=$?
29224   grep -v '^ *+' conftest.er1 >conftest.err
29225   rm -f conftest.er1
29226   cat conftest.err >&5
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); } && {
29229          test -z "$ac_c_werror_flag" ||
29230          test ! -s conftest.err
29231        } && test -s conftest$ac_exeext &&
29232        $as_test_x conftest$ac_exeext; then
29233    echo "*** The test program compiled, but did not run. This usually means"
29234           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29235           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29236           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29237           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29238           echo "*** is required on your system"
29239           echo "***"
29240           echo "*** If you have an old version installed, it is best to remove it, although"
29241           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29242           echo "***"
29243           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29244           echo "*** came with the system with the command"
29245           echo "***"
29246           echo "***    rpm --erase --nodeps gtk gtk-devel"
29247 else
29248   echo "$as_me: failed program was:" >&5
29249 sed 's/^/| /' conftest.$ac_ext >&5
29250
29251          echo "*** The test program failed to compile or link. See the file config.log for the"
29252           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29253           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29254           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29255 fi
29256
29257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29258       conftest$ac_exeext conftest.$ac_ext
29259           CFLAGS="$ac_save_CFLAGS"
29260           LIBS="$ac_save_LIBS"
29261        fi
29262      fi
29263      GTK_CFLAGS=""
29264      GTK_LIBS=""
29265      :
29266   fi
29267
29268
29269   rm -f conf.gtktest
29270
29271                         fi
29272                     fi
29273                 fi
29274
29275                 if test -z "$wx_cv_lib_gtk"; then
29276                                         wx_cv_lib_gtk=none
29277                 else
29278                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29279                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29280                 fi
29281
29282
29283 fi
29284
29285
29286                         if test "$gtk_version_cached" = 1; then
29287             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29288 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29289         fi
29290
29291         case "$wx_cv_lib_gtk" in
29292             2.0)    WXGTK2=1
29293                     TOOLKIT_VERSION=2
29294                     ;;
29295             1.2.7)  WXGTK127=1
29296                     WXGTK12=1
29297                     ;;
29298             1.2.3)  WXGTK12=1
29299                     ;;
29300             *)      { { echo "$as_me:$LINENO: error:
29301 The development files for GTK+ were not found. For GTK+ 2, please
29302 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29303 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29304 and that the version is 1.2.3 or above. Also check that the
29305 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29306 --libs' are in the LD_LIBRARY_PATH or equivalent.
29307                             " >&5
29308 echo "$as_me: error:
29309 The development files for GTK+ were not found. For GTK+ 2, please
29310 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29311 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29312 and that the version is 1.2.3 or above. Also check that the
29313 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29314 --libs' are in the LD_LIBRARY_PATH or equivalent.
29315                             " >&2;}
29316    { (exit 1); exit 1; }; }
29317                     ;;
29318         esac
29319
29320         if test "$WXGTK2" = 1; then
29321             save_CFLAGS="$CFLAGS"
29322             save_LIBS="$LIBS"
29323             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29324             LIBS="$LIBS $wx_cv_libs_gtk"
29325
29326                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29327 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29328             cat >conftest.$ac_ext <<_ACEOF
29329 /* confdefs.h.  */
29330 _ACEOF
29331 cat confdefs.h >>conftest.$ac_ext
29332 cat >>conftest.$ac_ext <<_ACEOF
29333 /* end confdefs.h.  */
29334
29335                             #include <gtk/gtk.h>
29336
29337 int
29338 main ()
29339 {
29340
29341                             #if !GTK_CHECK_VERSION(2,10,0)
29342                             Not GTK+ 2.10
29343                             #endif
29344
29345   ;
29346   return 0;
29347 }
29348 _ACEOF
29349 rm -f conftest.$ac_objext
29350 if { (ac_try="$ac_compile"
29351 case "(($ac_try" in
29352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353   *) ac_try_echo=$ac_try;;
29354 esac
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356   (eval "$ac_compile") 2>conftest.er1
29357   ac_status=$?
29358   grep -v '^ *+' conftest.er1 >conftest.err
29359   rm -f conftest.er1
29360   cat conftest.err >&5
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); } && {
29363          test -z "$ac_c_werror_flag" ||
29364          test ! -s conftest.err
29365        } && test -s conftest.$ac_objext; then
29366
29367                             cat >>confdefs.h <<\_ACEOF
29368 #define __WXGTK210__ 1
29369 _ACEOF
29370
29371                             cat >>confdefs.h <<\_ACEOF
29372 #define __WXGTK26__ 1
29373 _ACEOF
29374
29375                             { echo "$as_me:$LINENO: result: yes" >&5
29376 echo "${ECHO_T}yes" >&6; }
29377                             ac_wxgtk210=1
29378
29379 else
29380   echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29382
29383
29384                             { echo "$as_me:$LINENO: result: no" >&5
29385 echo "${ECHO_T}no" >&6; }
29386                             ac_wxgtk210=0
29387
29388 fi
29389
29390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391
29392             if test "$ac_wxgtk210" = 0; then
29393                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29394 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29395                 cat >conftest.$ac_ext <<_ACEOF
29396 /* confdefs.h.  */
29397 _ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h.  */
29401
29402                                 #include <gtk/gtk.h>
29403
29404 int
29405 main ()
29406 {
29407
29408                                 #if !GTK_CHECK_VERSION(2,6,0)
29409                                 Not GTK+ 2.6
29410                                 #endif
29411
29412   ;
29413   return 0;
29414 }
29415 _ACEOF
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_compile") 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } && {
29430          test -z "$ac_c_werror_flag" ||
29431          test ! -s conftest.err
29432        } && test -s conftest.$ac_objext; then
29433
29434                                 cat >>confdefs.h <<\_ACEOF
29435 #define __WXGTK26__ 1
29436 _ACEOF
29437
29438                                 { echo "$as_me:$LINENO: result: yes" >&5
29439 echo "${ECHO_T}yes" >&6; }
29440                                 ac_wxgtk26=1
29441
29442 else
29443   echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29445
29446
29447                                 { echo "$as_me:$LINENO: result: no" >&5
29448 echo "${ECHO_T}no" >&6; }
29449                                 ac_wxgtk26=0
29450
29451 fi
29452
29453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29454             fi
29455
29456             CFLAGS="$save_CFLAGS"
29457             LIBS="$save_LIBS"
29458         else
29459             if test "$wxUSE_UNICODE" = "yes"; then
29460                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29461 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29462                 wxUSE_UNICODE=no
29463             fi
29464
29465                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29466 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29467 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29468   echo $ECHO_N "(cached) $ECHO_C" >&6
29469 else
29470   ac_check_lib_save_LIBS=$LIBS
29471 LIBS="-lgdk  $LIBS"
29472 cat >conftest.$ac_ext <<_ACEOF
29473 /* confdefs.h.  */
29474 _ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h.  */
29478
29479 /* Override any GCC internal prototype to avoid an error.
29480    Use char because int might match the return type of a GCC
29481    builtin and then its argument prototype would still apply.  */
29482 #ifdef __cplusplus
29483 extern "C"
29484 #endif
29485 char gdk_im_open ();
29486 int
29487 main ()
29488 {
29489 return gdk_im_open ();
29490   ;
29491   return 0;
29492 }
29493 _ACEOF
29494 rm -f conftest.$ac_objext conftest$ac_exeext
29495 if { (ac_try="$ac_link"
29496 case "(($ac_try" in
29497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498   *) ac_try_echo=$ac_try;;
29499 esac
29500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501   (eval "$ac_link") 2>conftest.er1
29502   ac_status=$?
29503   grep -v '^ *+' conftest.er1 >conftest.err
29504   rm -f conftest.er1
29505   cat conftest.err >&5
29506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507   (exit $ac_status); } && {
29508          test -z "$ac_c_werror_flag" ||
29509          test ! -s conftest.err
29510        } && test -s conftest$ac_exeext &&
29511        $as_test_x conftest$ac_exeext; then
29512   ac_cv_lib_gdk_gdk_im_open=yes
29513 else
29514   echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29516
29517         ac_cv_lib_gdk_gdk_im_open=no
29518 fi
29519
29520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29521       conftest$ac_exeext conftest.$ac_ext
29522 LIBS=$ac_check_lib_save_LIBS
29523 fi
29524 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29525 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29526 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29527   cat >>confdefs.h <<\_ACEOF
29528 #define HAVE_XIM 1
29529 _ACEOF
29530
29531 fi
29532
29533
29534                                     if test "$USE_DARWIN" != 1; then
29535
29536 for ac_func in poll
29537 do
29538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29542   echo $ECHO_N "(cached) $ECHO_C" >&6
29543 else
29544   cat >conftest.$ac_ext <<_ACEOF
29545 /* confdefs.h.  */
29546 _ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h.  */
29550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29552 #define $ac_func innocuous_$ac_func
29553
29554 /* System header to define __stub macros and hopefully few prototypes,
29555     which can conflict with char $ac_func (); below.
29556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29557     <limits.h> exists even on freestanding compilers.  */
29558
29559 #ifdef __STDC__
29560 # include <limits.h>
29561 #else
29562 # include <assert.h>
29563 #endif
29564
29565 #undef $ac_func
29566
29567 /* Override any GCC internal prototype to avoid an error.
29568    Use char because int might match the return type of a GCC
29569    builtin and then its argument prototype would still apply.  */
29570 #ifdef __cplusplus
29571 extern "C"
29572 #endif
29573 char $ac_func ();
29574 /* The GNU C library defines this for functions which it implements
29575     to always fail with ENOSYS.  Some functions are actually named
29576     something starting with __ and the normal name is an alias.  */
29577 #if defined __stub_$ac_func || defined __stub___$ac_func
29578 choke me
29579 #endif
29580
29581 int
29582 main ()
29583 {
29584 return $ac_func ();
29585   ;
29586   return 0;
29587 }
29588 _ACEOF
29589 rm -f conftest.$ac_objext conftest$ac_exeext
29590 if { (ac_try="$ac_link"
29591 case "(($ac_try" in
29592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593   *) ac_try_echo=$ac_try;;
29594 esac
29595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29596   (eval "$ac_link") 2>conftest.er1
29597   ac_status=$?
29598   grep -v '^ *+' conftest.er1 >conftest.err
29599   rm -f conftest.er1
29600   cat conftest.err >&5
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); } && {
29603          test -z "$ac_c_werror_flag" ||
29604          test ! -s conftest.err
29605        } && test -s conftest$ac_exeext &&
29606        $as_test_x conftest$ac_exeext; then
29607   eval "$as_ac_var=yes"
29608 else
29609   echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29611
29612         eval "$as_ac_var=no"
29613 fi
29614
29615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29616       conftest$ac_exeext conftest.$ac_ext
29617 fi
29618 ac_res=`eval echo '${'$as_ac_var'}'`
29619                { echo "$as_me:$LINENO: result: $ac_res" >&5
29620 echo "${ECHO_T}$ac_res" >&6; }
29621 if test `eval echo '${'$as_ac_var'}'` = yes; then
29622   cat >>confdefs.h <<_ACEOF
29623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29624 _ACEOF
29625
29626 fi
29627 done
29628
29629             fi
29630         fi
29631
29632         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29633         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29634
29635         AFMINSTALL=afminstall
29636         TOOLKIT=GTK
29637         GUIDIST=GTK_DIST
29638
29639                 if test "$wxUSE_GPE" = "yes"; then
29640             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29641 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29642
29643   ac_find_libraries=
29644   for ac_dir in $SEARCH_LIB;
29645   do
29646     for ac_extension in a so sl dylib dll.a; do
29647       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29648         ac_find_libraries=$ac_dir
29649         break 2
29650       fi
29651     done
29652   done
29653
29654             if test "$ac_find_libraries" != "" ; then
29655
29656     if test "$ac_find_libraries" = "default location"; then
29657     ac_path_to_link=""
29658   else
29659     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29660     result=$?
29661     if test $result = 0; then
29662       ac_path_to_link=""
29663     else
29664       ac_path_to_link=" -L$ac_find_libraries"
29665     fi
29666   fi
29667
29668                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29669                 WXGPE=1
29670                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29671 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29672             else
29673                 { echo "$as_me:$LINENO: result: not found" >&5
29674 echo "${ECHO_T}not found" >&6; }
29675             fi
29676
29677                                                                                                                     fi
29678     fi
29679
29680     if test "$wxUSE_MGL" = 1; then
29681        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29682 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29683         if test "x$MGL_ROOT" = x ; then
29684             { echo "$as_me:$LINENO: result: not found" >&5
29685 echo "${ECHO_T}not found" >&6; }
29686             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29687 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29688    { (exit 1); exit 1; }; }
29689         else
29690             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29691 echo "${ECHO_T}$MGL_ROOT" >&6; }
29692         fi
29693
29694         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29695 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29696                                 case "${host}" in
29697             *-*-linux* )
29698                                           if test "x$wxUSE_SHARED" = xyes ; then
29699                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29700               else
29701                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29702               fi
29703               ;;
29704             *-pc-msdosdjgpp )
29705               mgl_os_candidates="dos32/dj2"
29706               ;;
29707             *)
29708               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29709 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29710    { (exit 1); exit 1; }; }
29711         esac
29712
29713         mgl_lib_type=""
29714         mgl_os=""
29715
29716         for mgl_os_i in $mgl_os_candidates ; do
29717             if test "x$mgl_os" = x ; then
29718                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29719                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29720                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29721                         mgl_lib_type=debug
29722                         mgl_os=$mgl_os_i
29723                     fi
29724                 fi
29725                 if test "x$mgl_lib_type" = x ; then
29726                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29727                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29728                         mgl_lib_type=release
29729                         mgl_os=$mgl_os_i
29730                     fi
29731                 fi
29732             fi
29733         done
29734
29735         if test "x$mgl_os" = x ; then
29736             { echo "$as_me:$LINENO: result: not found" >&5
29737 echo "${ECHO_T}not found" >&6; }
29738             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29739 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29740    { (exit 1); exit 1; }; }
29741         fi
29742         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29743 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29744
29745         wxUSE_UNIVERSAL="yes"
29746
29747         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29748         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29749
29750         AFMINSTALL=afminstall
29751         TOOLKIT=MGL
29752         GUIDIST=MGL_DIST
29753     fi
29754
29755     if test "$wxUSE_DFB" = 1; then
29756
29757
29758 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29759         if test -n "$ac_tool_prefix"; then
29760   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29761 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29765   echo $ECHO_N "(cached) $ECHO_C" >&6
29766 else
29767   case $PKG_CONFIG in
29768   [\\/]* | ?:[\\/]*)
29769   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29770   ;;
29771   *)
29772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29773 for as_dir in $PATH
29774 do
29775   IFS=$as_save_IFS
29776   test -z "$as_dir" && as_dir=.
29777   for ac_exec_ext in '' $ac_executable_extensions; do
29778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29779     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29781     break 2
29782   fi
29783 done
29784 done
29785 IFS=$as_save_IFS
29786
29787   ;;
29788 esac
29789 fi
29790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29791 if test -n "$PKG_CONFIG"; then
29792   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29793 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29794 else
29795   { echo "$as_me:$LINENO: result: no" >&5
29796 echo "${ECHO_T}no" >&6; }
29797 fi
29798
29799
29800 fi
29801 if test -z "$ac_cv_path_PKG_CONFIG"; then
29802   ac_pt_PKG_CONFIG=$PKG_CONFIG
29803   # Extract the first word of "pkg-config", so it can be a program name with args.
29804 set dummy pkg-config; ac_word=$2
29805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29807 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29808   echo $ECHO_N "(cached) $ECHO_C" >&6
29809 else
29810   case $ac_pt_PKG_CONFIG in
29811   [\\/]* | ?:[\\/]*)
29812   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29813   ;;
29814   *)
29815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29816 for as_dir in $PATH
29817 do
29818   IFS=$as_save_IFS
29819   test -z "$as_dir" && as_dir=.
29820   for ac_exec_ext in '' $ac_executable_extensions; do
29821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29822     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29824     break 2
29825   fi
29826 done
29827 done
29828 IFS=$as_save_IFS
29829
29830   ;;
29831 esac
29832 fi
29833 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29834 if test -n "$ac_pt_PKG_CONFIG"; then
29835   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29836 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29837 else
29838   { echo "$as_me:$LINENO: result: no" >&5
29839 echo "${ECHO_T}no" >&6; }
29840 fi
29841
29842   if test "x$ac_pt_PKG_CONFIG" = x; then
29843     PKG_CONFIG=""
29844   else
29845     case $cross_compiling:$ac_tool_warned in
29846 yes:)
29847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29848 whose name does not start with the host triplet.  If you think this
29849 configuration is useful to you, please write to autoconf@gnu.org." >&5
29850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29851 whose name does not start with the host triplet.  If you think this
29852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29853 ac_tool_warned=yes ;;
29854 esac
29855     PKG_CONFIG=$ac_pt_PKG_CONFIG
29856   fi
29857 else
29858   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29859 fi
29860
29861 fi
29862 if test -n "$PKG_CONFIG"; then
29863         _pkg_min_version=0.9.0
29864         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29865 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29866         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29867                 { echo "$as_me:$LINENO: result: yes" >&5
29868 echo "${ECHO_T}yes" >&6; }
29869         else
29870                 { echo "$as_me:$LINENO: result: no" >&5
29871 echo "${ECHO_T}no" >&6; }
29872                 PKG_CONFIG=""
29873         fi
29874
29875 fi
29876
29877
29878 pkg_failed=no
29879 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29880 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29881
29882 if test -n "$PKG_CONFIG"; then
29883     if test -n "$DIRECTFB_CFLAGS"; then
29884         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29885     else
29886         if test -n "$PKG_CONFIG" && \
29887     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29888   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29889   ac_status=$?
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); }; then
29892   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29893 else
29894   pkg_failed=yes
29895 fi
29896     fi
29897 else
29898         pkg_failed=untried
29899 fi
29900 if test -n "$PKG_CONFIG"; then
29901     if test -n "$DIRECTFB_LIBS"; then
29902         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29903     else
29904         if test -n "$PKG_CONFIG" && \
29905     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29906   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29907   ac_status=$?
29908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909   (exit $ac_status); }; then
29910   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29911 else
29912   pkg_failed=yes
29913 fi
29914     fi
29915 else
29916         pkg_failed=untried
29917 fi
29918
29919
29920
29921 if test $pkg_failed = yes; then
29922
29923 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29924         _pkg_short_errors_supported=yes
29925 else
29926         _pkg_short_errors_supported=no
29927 fi
29928         if test $_pkg_short_errors_supported = yes; then
29929                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29930         else
29931                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29932         fi
29933         # Put the nasty error message in config.log where it belongs
29934         echo "$DIRECTFB_PKG_ERRORS" >&5
29935
29936
29937                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29938 echo "$as_me: error: DirectFB not found." >&2;}
29939    { (exit 1); exit 1; }; }
29940
29941
29942 elif test $pkg_failed = untried; then
29943
29944                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29945 echo "$as_me: error: DirectFB not found." >&2;}
29946    { (exit 1); exit 1; }; }
29947
29948
29949 else
29950         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29951         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29952         { echo "$as_me:$LINENO: result: yes" >&5
29953 echo "${ECHO_T}yes" >&6; }
29954
29955                            wxUSE_UNIVERSAL="yes"
29956                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29957                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29958                            TOOLKIT=DFB
29959                            GUIDIST=DFB_DIST
29960
29961 fi
29962     fi
29963
29964     if test "$wxUSE_MICROWIN" = 1; then
29965         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29966 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29967         if test "x$MICROWINDOWS" = x ; then
29968             { echo "$as_me:$LINENO: result: not found" >&5
29969 echo "${ECHO_T}not found" >&6; }
29970             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29971 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29972    { (exit 1); exit 1; }; }
29973         else
29974             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29975 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29976         fi
29977
29978         if test -f $MICROWINDOWS/lib/libmwin.a; then
29979             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29980 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29981         else
29982             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29983 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29984    { (exit 1); exit 1; }; }
29985         fi
29986
29987         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29988         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29989
29990         wxUSE_UNIVERSAL="yes"
29991
29992         AFMINSTALL=afminstall
29993         TOOLKIT=MICROWIN
29994         GUIDIST=MICROWIN_DIST
29995
29996         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29997     fi
29998
29999         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30000                                 { echo "$as_me:$LINENO: checking for X" >&5
30001 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30002
30003
30004 # Check whether --with-x was given.
30005 if test "${with_x+set}" = set; then
30006   withval=$with_x;
30007 fi
30008
30009 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30010 if test "x$with_x" = xno; then
30011   # The user explicitly disabled X.
30012   have_x=disabled
30013 else
30014   case $x_includes,$x_libraries in #(
30015     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30016 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30017    { (exit 1); exit 1; }; };; #(
30018     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30019   echo $ECHO_N "(cached) $ECHO_C" >&6
30020 else
30021   # One or both of the vars are not set, and there is no cached value.
30022 ac_x_includes=no ac_x_libraries=no
30023 rm -f -r conftest.dir
30024 if mkdir conftest.dir; then
30025   cd conftest.dir
30026   cat >Imakefile <<'_ACEOF'
30027 incroot:
30028         @echo incroot='${INCROOT}'
30029 usrlibdir:
30030         @echo usrlibdir='${USRLIBDIR}'
30031 libdir:
30032         @echo libdir='${LIBDIR}'
30033 _ACEOF
30034   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30035     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30036     for ac_var in incroot usrlibdir libdir; do
30037       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30038     done
30039     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30040     for ac_extension in a so sl; do
30041       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30042          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30043         ac_im_usrlibdir=$ac_im_libdir; break
30044       fi
30045     done
30046     # Screen out bogus values from the imake configuration.  They are
30047     # bogus both because they are the default anyway, and because
30048     # using them would break gcc on systems where it needs fixed includes.
30049     case $ac_im_incroot in
30050         /usr/include) ac_x_includes= ;;
30051         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30052     esac
30053     case $ac_im_usrlibdir in
30054         /usr/lib | /lib) ;;
30055         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30056     esac
30057   fi
30058   cd ..
30059   rm -f -r conftest.dir
30060 fi
30061
30062 # Standard set of common directories for X headers.
30063 # Check X11 before X11Rn because it is often a symlink to the current release.
30064 ac_x_header_dirs='
30065 /usr/X11/include
30066 /usr/X11R6/include
30067 /usr/X11R5/include
30068 /usr/X11R4/include
30069
30070 /usr/include/X11
30071 /usr/include/X11R6
30072 /usr/include/X11R5
30073 /usr/include/X11R4
30074
30075 /usr/local/X11/include
30076 /usr/local/X11R6/include
30077 /usr/local/X11R5/include
30078 /usr/local/X11R4/include
30079
30080 /usr/local/include/X11
30081 /usr/local/include/X11R6
30082 /usr/local/include/X11R5
30083 /usr/local/include/X11R4
30084
30085 /usr/X386/include
30086 /usr/x386/include
30087 /usr/XFree86/include/X11
30088
30089 /usr/include
30090 /usr/local/include
30091 /usr/unsupported/include
30092 /usr/athena/include
30093 /usr/local/x11r5/include
30094 /usr/lpp/Xamples/include
30095
30096 /usr/openwin/include
30097 /usr/openwin/share/include'
30098
30099 if test "$ac_x_includes" = no; then
30100   # Guess where to find include files, by looking for Xlib.h.
30101   # First, try using that file with no special directory specified.
30102   cat >conftest.$ac_ext <<_ACEOF
30103 /* confdefs.h.  */
30104 _ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h.  */
30108 #include <X11/Xlib.h>
30109 _ACEOF
30110 if { (ac_try="$ac_cpp conftest.$ac_ext"
30111 case "(($ac_try" in
30112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113   *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30117   ac_status=$?
30118   grep -v '^ *+' conftest.er1 >conftest.err
30119   rm -f conftest.er1
30120   cat conftest.err >&5
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); } >/dev/null && {
30123          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30124          test ! -s conftest.err
30125        }; then
30126   # We can compile using X headers with no special include directory.
30127 ac_x_includes=
30128 else
30129   echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30131
30132   for ac_dir in $ac_x_header_dirs; do
30133   if test -r "$ac_dir/X11/Xlib.h"; then
30134     ac_x_includes=$ac_dir
30135     break
30136   fi
30137 done
30138 fi
30139
30140 rm -f conftest.err conftest.$ac_ext
30141 fi # $ac_x_includes = no
30142
30143 if test "$ac_x_libraries" = no; then
30144   # Check for the libraries.
30145   # See if we find them without any special options.
30146   # Don't add to $LIBS permanently.
30147   ac_save_LIBS=$LIBS
30148   LIBS="-lX11 $LIBS"
30149   cat >conftest.$ac_ext <<_ACEOF
30150 /* confdefs.h.  */
30151 _ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h.  */
30155 #include <X11/Xlib.h>
30156 int
30157 main ()
30158 {
30159 XrmInitialize ()
30160   ;
30161   return 0;
30162 }
30163 _ACEOF
30164 rm -f conftest.$ac_objext conftest$ac_exeext
30165 if { (ac_try="$ac_link"
30166 case "(($ac_try" in
30167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30168   *) ac_try_echo=$ac_try;;
30169 esac
30170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30171   (eval "$ac_link") 2>conftest.er1
30172   ac_status=$?
30173   grep -v '^ *+' conftest.er1 >conftest.err
30174   rm -f conftest.er1
30175   cat conftest.err >&5
30176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); } && {
30178          test -z "$ac_c_werror_flag" ||
30179          test ! -s conftest.err
30180        } && test -s conftest$ac_exeext &&
30181        $as_test_x conftest$ac_exeext; then
30182   LIBS=$ac_save_LIBS
30183 # We can link X programs with no special library path.
30184 ac_x_libraries=
30185 else
30186   echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30188
30189         LIBS=$ac_save_LIBS
30190 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30191 do
30192   # Don't even attempt the hair of trying to link an X program!
30193   for ac_extension in a so sl; do
30194     if test -r "$ac_dir/libX11.$ac_extension"; then
30195       ac_x_libraries=$ac_dir
30196       break 2
30197     fi
30198   done
30199 done
30200 fi
30201
30202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30203       conftest$ac_exeext conftest.$ac_ext
30204 fi # $ac_x_libraries = no
30205
30206 case $ac_x_includes,$ac_x_libraries in #(
30207   no,* | *,no | *\'*)
30208     # Didn't find X, or a directory has "'" in its name.
30209     ac_cv_have_x="have_x=no";; #(
30210   *)
30211     # Record where we found X for the cache.
30212     ac_cv_have_x="have_x=yes\
30213         ac_x_includes='$ac_x_includes'\
30214         ac_x_libraries='$ac_x_libraries'"
30215 esac
30216 fi
30217 ;; #(
30218     *) have_x=yes;;
30219   esac
30220   eval "$ac_cv_have_x"
30221 fi # $with_x != no
30222
30223 if test "$have_x" != yes; then
30224   { echo "$as_me:$LINENO: result: $have_x" >&5
30225 echo "${ECHO_T}$have_x" >&6; }
30226   no_x=yes
30227 else
30228   # If each of the values was on the command line, it overrides each guess.
30229   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30230   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30231   # Update the cache value to reflect the command line values.
30232   ac_cv_have_x="have_x=yes\
30233         ac_x_includes='$x_includes'\
30234         ac_x_libraries='$x_libraries'"
30235   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30236 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30237 fi
30238
30239 if test "$no_x" = yes; then
30240   # Not all programs may use this symbol, but it does not hurt to define it.
30241
30242 cat >>confdefs.h <<\_ACEOF
30243 #define X_DISPLAY_MISSING 1
30244 _ACEOF
30245
30246   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30247 else
30248   if test -n "$x_includes"; then
30249     X_CFLAGS="$X_CFLAGS -I$x_includes"
30250   fi
30251
30252   # It would also be nice to do this for all -L options, not just this one.
30253   if test -n "$x_libraries"; then
30254     X_LIBS="$X_LIBS -L$x_libraries"
30255     # For Solaris; some versions of Sun CC require a space after -R and
30256     # others require no space.  Words are not sufficient . . . .
30257     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30258 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30259     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30260     ac_xsave_c_werror_flag=$ac_c_werror_flag
30261     ac_c_werror_flag=yes
30262     cat >conftest.$ac_ext <<_ACEOF
30263 /* confdefs.h.  */
30264 _ACEOF
30265 cat confdefs.h >>conftest.$ac_ext
30266 cat >>conftest.$ac_ext <<_ACEOF
30267 /* end confdefs.h.  */
30268
30269 int
30270 main ()
30271 {
30272
30273   ;
30274   return 0;
30275 }
30276 _ACEOF
30277 rm -f conftest.$ac_objext conftest$ac_exeext
30278 if { (ac_try="$ac_link"
30279 case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_link") 2>conftest.er1
30285   ac_status=$?
30286   grep -v '^ *+' conftest.er1 >conftest.err
30287   rm -f conftest.er1
30288   cat conftest.err >&5
30289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290   (exit $ac_status); } && {
30291          test -z "$ac_c_werror_flag" ||
30292          test ! -s conftest.err
30293        } && test -s conftest$ac_exeext &&
30294        $as_test_x conftest$ac_exeext; then
30295   { echo "$as_me:$LINENO: result: no" >&5
30296 echo "${ECHO_T}no" >&6; }
30297        X_LIBS="$X_LIBS -R$x_libraries"
30298 else
30299   echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30301
30302         LIBS="$ac_xsave_LIBS -R $x_libraries"
30303        cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309
30310 int
30311 main ()
30312 {
30313
30314   ;
30315   return 0;
30316 }
30317 _ACEOF
30318 rm -f conftest.$ac_objext conftest$ac_exeext
30319 if { (ac_try="$ac_link"
30320 case "(($ac_try" in
30321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322   *) ac_try_echo=$ac_try;;
30323 esac
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325   (eval "$ac_link") 2>conftest.er1
30326   ac_status=$?
30327   grep -v '^ *+' conftest.er1 >conftest.err
30328   rm -f conftest.er1
30329   cat conftest.err >&5
30330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331   (exit $ac_status); } && {
30332          test -z "$ac_c_werror_flag" ||
30333          test ! -s conftest.err
30334        } && test -s conftest$ac_exeext &&
30335        $as_test_x conftest$ac_exeext; then
30336   { echo "$as_me:$LINENO: result: yes" >&5
30337 echo "${ECHO_T}yes" >&6; }
30338           X_LIBS="$X_LIBS -R $x_libraries"
30339 else
30340   echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30342
30343         { echo "$as_me:$LINENO: result: neither works" >&5
30344 echo "${ECHO_T}neither works" >&6; }
30345 fi
30346
30347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30348       conftest$ac_exeext conftest.$ac_ext
30349 fi
30350
30351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30352       conftest$ac_exeext conftest.$ac_ext
30353     ac_c_werror_flag=$ac_xsave_c_werror_flag
30354     LIBS=$ac_xsave_LIBS
30355   fi
30356
30357   # Check for system-dependent libraries X programs must link with.
30358   # Do this before checking for the system-independent R6 libraries
30359   # (-lICE), since we may need -lsocket or whatever for X linking.
30360
30361   if test "$ISC" = yes; then
30362     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30363   else
30364     # Martyn Johnson says this is needed for Ultrix, if the X
30365     # libraries were built with DECnet support.  And Karl Berry says
30366     # the Alpha needs dnet_stub (dnet does not exist).
30367     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30368     cat >conftest.$ac_ext <<_ACEOF
30369 /* confdefs.h.  */
30370 _ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h.  */
30374
30375 /* Override any GCC internal prototype to avoid an error.
30376    Use char because int might match the return type of a GCC
30377    builtin and then its argument prototype would still apply.  */
30378 #ifdef __cplusplus
30379 extern "C"
30380 #endif
30381 char XOpenDisplay ();
30382 int
30383 main ()
30384 {
30385 return XOpenDisplay ();
30386   ;
30387   return 0;
30388 }
30389 _ACEOF
30390 rm -f conftest.$ac_objext conftest$ac_exeext
30391 if { (ac_try="$ac_link"
30392 case "(($ac_try" in
30393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30394   *) ac_try_echo=$ac_try;;
30395 esac
30396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30397   (eval "$ac_link") 2>conftest.er1
30398   ac_status=$?
30399   grep -v '^ *+' conftest.er1 >conftest.err
30400   rm -f conftest.er1
30401   cat conftest.err >&5
30402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403   (exit $ac_status); } && {
30404          test -z "$ac_c_werror_flag" ||
30405          test ! -s conftest.err
30406        } && test -s conftest$ac_exeext &&
30407        $as_test_x conftest$ac_exeext; then
30408   :
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30414 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30415 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30416   echo $ECHO_N "(cached) $ECHO_C" >&6
30417 else
30418   ac_check_lib_save_LIBS=$LIBS
30419 LIBS="-ldnet  $LIBS"
30420 cat >conftest.$ac_ext <<_ACEOF
30421 /* confdefs.h.  */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h.  */
30426
30427 /* Override any GCC internal prototype to avoid an error.
30428    Use char because int might match the return type of a GCC
30429    builtin and then its argument prototype would still apply.  */
30430 #ifdef __cplusplus
30431 extern "C"
30432 #endif
30433 char dnet_ntoa ();
30434 int
30435 main ()
30436 {
30437 return dnet_ntoa ();
30438   ;
30439   return 0;
30440 }
30441 _ACEOF
30442 rm -f conftest.$ac_objext conftest$ac_exeext
30443 if { (ac_try="$ac_link"
30444 case "(($ac_try" in
30445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446   *) ac_try_echo=$ac_try;;
30447 esac
30448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449   (eval "$ac_link") 2>conftest.er1
30450   ac_status=$?
30451   grep -v '^ *+' conftest.er1 >conftest.err
30452   rm -f conftest.er1
30453   cat conftest.err >&5
30454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455   (exit $ac_status); } && {
30456          test -z "$ac_c_werror_flag" ||
30457          test ! -s conftest.err
30458        } && test -s conftest$ac_exeext &&
30459        $as_test_x conftest$ac_exeext; then
30460   ac_cv_lib_dnet_dnet_ntoa=yes
30461 else
30462   echo "$as_me: failed program was:" >&5
30463 sed 's/^/| /' conftest.$ac_ext >&5
30464
30465         ac_cv_lib_dnet_dnet_ntoa=no
30466 fi
30467
30468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30469       conftest$ac_exeext conftest.$ac_ext
30470 LIBS=$ac_check_lib_save_LIBS
30471 fi
30472 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30473 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30474 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30475   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30476 fi
30477
30478     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30479       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30480 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30481 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30482   echo $ECHO_N "(cached) $ECHO_C" >&6
30483 else
30484   ac_check_lib_save_LIBS=$LIBS
30485 LIBS="-ldnet_stub  $LIBS"
30486 cat >conftest.$ac_ext <<_ACEOF
30487 /* confdefs.h.  */
30488 _ACEOF
30489 cat confdefs.h >>conftest.$ac_ext
30490 cat >>conftest.$ac_ext <<_ACEOF
30491 /* end confdefs.h.  */
30492
30493 /* Override any GCC internal prototype to avoid an error.
30494    Use char because int might match the return type of a GCC
30495    builtin and then its argument prototype would still apply.  */
30496 #ifdef __cplusplus
30497 extern "C"
30498 #endif
30499 char dnet_ntoa ();
30500 int
30501 main ()
30502 {
30503 return dnet_ntoa ();
30504   ;
30505   return 0;
30506 }
30507 _ACEOF
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512   *) ac_try_echo=$ac_try;;
30513 esac
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515   (eval "$ac_link") 2>conftest.er1
30516   ac_status=$?
30517   grep -v '^ *+' conftest.er1 >conftest.err
30518   rm -f conftest.er1
30519   cat conftest.err >&5
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); } && {
30522          test -z "$ac_c_werror_flag" ||
30523          test ! -s conftest.err
30524        } && test -s conftest$ac_exeext &&
30525        $as_test_x conftest$ac_exeext; then
30526   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30527 else
30528   echo "$as_me: failed program was:" >&5
30529 sed 's/^/| /' conftest.$ac_ext >&5
30530
30531         ac_cv_lib_dnet_stub_dnet_ntoa=no
30532 fi
30533
30534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30535       conftest$ac_exeext conftest.$ac_ext
30536 LIBS=$ac_check_lib_save_LIBS
30537 fi
30538 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30539 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30540 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30541   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30542 fi
30543
30544     fi
30545 fi
30546
30547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30548       conftest$ac_exeext conftest.$ac_ext
30549     LIBS="$ac_xsave_LIBS"
30550
30551     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30552     # to get the SysV transport functions.
30553     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30554     # needs -lnsl.
30555     # The nsl library prevents programs from opening the X display
30556     # on Irix 5.2, according to T.E. Dickey.
30557     # The functions gethostbyname, getservbyname, and inet_addr are
30558     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30559     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30560 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30561 if test "${ac_cv_func_gethostbyname+set}" = set; then
30562   echo $ECHO_N "(cached) $ECHO_C" >&6
30563 else
30564   cat >conftest.$ac_ext <<_ACEOF
30565 /* confdefs.h.  */
30566 _ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h.  */
30570 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30572 #define gethostbyname innocuous_gethostbyname
30573
30574 /* System header to define __stub macros and hopefully few prototypes,
30575     which can conflict with char gethostbyname (); below.
30576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30577     <limits.h> exists even on freestanding compilers.  */
30578
30579 #ifdef __STDC__
30580 # include <limits.h>
30581 #else
30582 # include <assert.h>
30583 #endif
30584
30585 #undef gethostbyname
30586
30587 /* Override any GCC internal prototype to avoid an error.
30588    Use char because int might match the return type of a GCC
30589    builtin and then its argument prototype would still apply.  */
30590 #ifdef __cplusplus
30591 extern "C"
30592 #endif
30593 char gethostbyname ();
30594 /* The GNU C library defines this for functions which it implements
30595     to always fail with ENOSYS.  Some functions are actually named
30596     something starting with __ and the normal name is an alias.  */
30597 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30598 choke me
30599 #endif
30600
30601 int
30602 main ()
30603 {
30604 return gethostbyname ();
30605   ;
30606   return 0;
30607 }
30608 _ACEOF
30609 rm -f conftest.$ac_objext conftest$ac_exeext
30610 if { (ac_try="$ac_link"
30611 case "(($ac_try" in
30612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30613   *) ac_try_echo=$ac_try;;
30614 esac
30615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616   (eval "$ac_link") 2>conftest.er1
30617   ac_status=$?
30618   grep -v '^ *+' conftest.er1 >conftest.err
30619   rm -f conftest.er1
30620   cat conftest.err >&5
30621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622   (exit $ac_status); } && {
30623          test -z "$ac_c_werror_flag" ||
30624          test ! -s conftest.err
30625        } && test -s conftest$ac_exeext &&
30626        $as_test_x conftest$ac_exeext; then
30627   ac_cv_func_gethostbyname=yes
30628 else
30629   echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30631
30632         ac_cv_func_gethostbyname=no
30633 fi
30634
30635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30636       conftest$ac_exeext conftest.$ac_ext
30637 fi
30638 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30639 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30640
30641     if test $ac_cv_func_gethostbyname = no; then
30642       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30643 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30644 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30645   echo $ECHO_N "(cached) $ECHO_C" >&6
30646 else
30647   ac_check_lib_save_LIBS=$LIBS
30648 LIBS="-lnsl  $LIBS"
30649 cat >conftest.$ac_ext <<_ACEOF
30650 /* confdefs.h.  */
30651 _ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h.  */
30655
30656 /* Override any GCC internal prototype to avoid an error.
30657    Use char because int might match the return type of a GCC
30658    builtin and then its argument prototype would still apply.  */
30659 #ifdef __cplusplus
30660 extern "C"
30661 #endif
30662 char gethostbyname ();
30663 int
30664 main ()
30665 {
30666 return gethostbyname ();
30667   ;
30668   return 0;
30669 }
30670 _ACEOF
30671 rm -f conftest.$ac_objext conftest$ac_exeext
30672 if { (ac_try="$ac_link"
30673 case "(($ac_try" in
30674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675   *) ac_try_echo=$ac_try;;
30676 esac
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678   (eval "$ac_link") 2>conftest.er1
30679   ac_status=$?
30680   grep -v '^ *+' conftest.er1 >conftest.err
30681   rm -f conftest.er1
30682   cat conftest.err >&5
30683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684   (exit $ac_status); } && {
30685          test -z "$ac_c_werror_flag" ||
30686          test ! -s conftest.err
30687        } && test -s conftest$ac_exeext &&
30688        $as_test_x conftest$ac_exeext; then
30689   ac_cv_lib_nsl_gethostbyname=yes
30690 else
30691   echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694         ac_cv_lib_nsl_gethostbyname=no
30695 fi
30696
30697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30698       conftest$ac_exeext conftest.$ac_ext
30699 LIBS=$ac_check_lib_save_LIBS
30700 fi
30701 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30702 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30703 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30704   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30705 fi
30706
30707       if test $ac_cv_lib_nsl_gethostbyname = no; then
30708         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30709 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30710 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30711   echo $ECHO_N "(cached) $ECHO_C" >&6
30712 else
30713   ac_check_lib_save_LIBS=$LIBS
30714 LIBS="-lbsd  $LIBS"
30715 cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h.  */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h.  */
30721
30722 /* Override any GCC internal prototype to avoid an error.
30723    Use char because int might match the return type of a GCC
30724    builtin and then its argument prototype would still apply.  */
30725 #ifdef __cplusplus
30726 extern "C"
30727 #endif
30728 char gethostbyname ();
30729 int
30730 main ()
30731 {
30732 return gethostbyname ();
30733   ;
30734   return 0;
30735 }
30736 _ACEOF
30737 rm -f conftest.$ac_objext conftest$ac_exeext
30738 if { (ac_try="$ac_link"
30739 case "(($ac_try" in
30740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741   *) ac_try_echo=$ac_try;;
30742 esac
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744   (eval "$ac_link") 2>conftest.er1
30745   ac_status=$?
30746   grep -v '^ *+' conftest.er1 >conftest.err
30747   rm -f conftest.er1
30748   cat conftest.err >&5
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); } && {
30751          test -z "$ac_c_werror_flag" ||
30752          test ! -s conftest.err
30753        } && test -s conftest$ac_exeext &&
30754        $as_test_x conftest$ac_exeext; then
30755   ac_cv_lib_bsd_gethostbyname=yes
30756 else
30757   echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760         ac_cv_lib_bsd_gethostbyname=no
30761 fi
30762
30763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30764       conftest$ac_exeext conftest.$ac_ext
30765 LIBS=$ac_check_lib_save_LIBS
30766 fi
30767 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30768 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30769 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30770   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30771 fi
30772
30773       fi
30774     fi
30775
30776     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30777     # socket/setsockopt and other routines are undefined under SCO ODT
30778     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30779     # on later versions), says Simon Leinen: it contains gethostby*
30780     # variants that don't use the name server (or something).  -lsocket
30781     # must be given before -lnsl if both are needed.  We assume that
30782     # if connect needs -lnsl, so does gethostbyname.
30783     { echo "$as_me:$LINENO: checking for connect" >&5
30784 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30785 if test "${ac_cv_func_connect+set}" = set; then
30786   echo $ECHO_N "(cached) $ECHO_C" >&6
30787 else
30788   cat >conftest.$ac_ext <<_ACEOF
30789 /* confdefs.h.  */
30790 _ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h.  */
30794 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30796 #define connect innocuous_connect
30797
30798 /* System header to define __stub macros and hopefully few prototypes,
30799     which can conflict with char connect (); below.
30800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801     <limits.h> exists even on freestanding compilers.  */
30802
30803 #ifdef __STDC__
30804 # include <limits.h>
30805 #else
30806 # include <assert.h>
30807 #endif
30808
30809 #undef connect
30810
30811 /* Override any GCC internal prototype to avoid an error.
30812    Use char because int might match the return type of a GCC
30813    builtin and then its argument prototype would still apply.  */
30814 #ifdef __cplusplus
30815 extern "C"
30816 #endif
30817 char connect ();
30818 /* The GNU C library defines this for functions which it implements
30819     to always fail with ENOSYS.  Some functions are actually named
30820     something starting with __ and the normal name is an alias.  */
30821 #if defined __stub_connect || defined __stub___connect
30822 choke me
30823 #endif
30824
30825 int
30826 main ()
30827 {
30828 return connect ();
30829   ;
30830   return 0;
30831 }
30832 _ACEOF
30833 rm -f conftest.$ac_objext conftest$ac_exeext
30834 if { (ac_try="$ac_link"
30835 case "(($ac_try" in
30836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837   *) ac_try_echo=$ac_try;;
30838 esac
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840   (eval "$ac_link") 2>conftest.er1
30841   ac_status=$?
30842   grep -v '^ *+' conftest.er1 >conftest.err
30843   rm -f conftest.er1
30844   cat conftest.err >&5
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); } && {
30847          test -z "$ac_c_werror_flag" ||
30848          test ! -s conftest.err
30849        } && test -s conftest$ac_exeext &&
30850        $as_test_x conftest$ac_exeext; then
30851   ac_cv_func_connect=yes
30852 else
30853   echo "$as_me: failed program was:" >&5
30854 sed 's/^/| /' conftest.$ac_ext >&5
30855
30856         ac_cv_func_connect=no
30857 fi
30858
30859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30860       conftest$ac_exeext conftest.$ac_ext
30861 fi
30862 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30863 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30864
30865     if test $ac_cv_func_connect = no; then
30866       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30867 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30868 if test "${ac_cv_lib_socket_connect+set}" = set; then
30869   echo $ECHO_N "(cached) $ECHO_C" >&6
30870 else
30871   ac_check_lib_save_LIBS=$LIBS
30872 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30873 cat >conftest.$ac_ext <<_ACEOF
30874 /* confdefs.h.  */
30875 _ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h.  */
30879
30880 /* Override any GCC internal prototype to avoid an error.
30881    Use char because int might match the return type of a GCC
30882    builtin and then its argument prototype would still apply.  */
30883 #ifdef __cplusplus
30884 extern "C"
30885 #endif
30886 char connect ();
30887 int
30888 main ()
30889 {
30890 return connect ();
30891   ;
30892   return 0;
30893 }
30894 _ACEOF
30895 rm -f conftest.$ac_objext conftest$ac_exeext
30896 if { (ac_try="$ac_link"
30897 case "(($ac_try" in
30898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30899   *) ac_try_echo=$ac_try;;
30900 esac
30901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902   (eval "$ac_link") 2>conftest.er1
30903   ac_status=$?
30904   grep -v '^ *+' conftest.er1 >conftest.err
30905   rm -f conftest.er1
30906   cat conftest.err >&5
30907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); } && {
30909          test -z "$ac_c_werror_flag" ||
30910          test ! -s conftest.err
30911        } && test -s conftest$ac_exeext &&
30912        $as_test_x conftest$ac_exeext; then
30913   ac_cv_lib_socket_connect=yes
30914 else
30915   echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918         ac_cv_lib_socket_connect=no
30919 fi
30920
30921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30922       conftest$ac_exeext conftest.$ac_ext
30923 LIBS=$ac_check_lib_save_LIBS
30924 fi
30925 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30926 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30927 if test $ac_cv_lib_socket_connect = yes; then
30928   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30929 fi
30930
30931     fi
30932
30933     # Guillermo Gomez says -lposix is necessary on A/UX.
30934     { echo "$as_me:$LINENO: checking for remove" >&5
30935 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30936 if test "${ac_cv_func_remove+set}" = set; then
30937   echo $ECHO_N "(cached) $ECHO_C" >&6
30938 else
30939   cat >conftest.$ac_ext <<_ACEOF
30940 /* confdefs.h.  */
30941 _ACEOF
30942 cat confdefs.h >>conftest.$ac_ext
30943 cat >>conftest.$ac_ext <<_ACEOF
30944 /* end confdefs.h.  */
30945 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30947 #define remove innocuous_remove
30948
30949 /* System header to define __stub macros and hopefully few prototypes,
30950     which can conflict with char remove (); below.
30951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30952     <limits.h> exists even on freestanding compilers.  */
30953
30954 #ifdef __STDC__
30955 # include <limits.h>
30956 #else
30957 # include <assert.h>
30958 #endif
30959
30960 #undef remove
30961
30962 /* Override any GCC internal prototype to avoid an error.
30963    Use char because int might match the return type of a GCC
30964    builtin and then its argument prototype would still apply.  */
30965 #ifdef __cplusplus
30966 extern "C"
30967 #endif
30968 char remove ();
30969 /* The GNU C library defines this for functions which it implements
30970     to always fail with ENOSYS.  Some functions are actually named
30971     something starting with __ and the normal name is an alias.  */
30972 #if defined __stub_remove || defined __stub___remove
30973 choke me
30974 #endif
30975
30976 int
30977 main ()
30978 {
30979 return remove ();
30980   ;
30981   return 0;
30982 }
30983 _ACEOF
30984 rm -f conftest.$ac_objext conftest$ac_exeext
30985 if { (ac_try="$ac_link"
30986 case "(($ac_try" in
30987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988   *) ac_try_echo=$ac_try;;
30989 esac
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991   (eval "$ac_link") 2>conftest.er1
30992   ac_status=$?
30993   grep -v '^ *+' conftest.er1 >conftest.err
30994   rm -f conftest.er1
30995   cat conftest.err >&5
30996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997   (exit $ac_status); } && {
30998          test -z "$ac_c_werror_flag" ||
30999          test ! -s conftest.err
31000        } && test -s conftest$ac_exeext &&
31001        $as_test_x conftest$ac_exeext; then
31002   ac_cv_func_remove=yes
31003 else
31004   echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31006
31007         ac_cv_func_remove=no
31008 fi
31009
31010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31011       conftest$ac_exeext conftest.$ac_ext
31012 fi
31013 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31014 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31015
31016     if test $ac_cv_func_remove = no; then
31017       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31018 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31019 if test "${ac_cv_lib_posix_remove+set}" = set; then
31020   echo $ECHO_N "(cached) $ECHO_C" >&6
31021 else
31022   ac_check_lib_save_LIBS=$LIBS
31023 LIBS="-lposix  $LIBS"
31024 cat >conftest.$ac_ext <<_ACEOF
31025 /* confdefs.h.  */
31026 _ACEOF
31027 cat confdefs.h >>conftest.$ac_ext
31028 cat >>conftest.$ac_ext <<_ACEOF
31029 /* end confdefs.h.  */
31030
31031 /* Override any GCC internal prototype to avoid an error.
31032    Use char because int might match the return type of a GCC
31033    builtin and then its argument prototype would still apply.  */
31034 #ifdef __cplusplus
31035 extern "C"
31036 #endif
31037 char remove ();
31038 int
31039 main ()
31040 {
31041 return remove ();
31042   ;
31043   return 0;
31044 }
31045 _ACEOF
31046 rm -f conftest.$ac_objext conftest$ac_exeext
31047 if { (ac_try="$ac_link"
31048 case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_link") 2>conftest.er1
31054   ac_status=$?
31055   grep -v '^ *+' conftest.er1 >conftest.err
31056   rm -f conftest.er1
31057   cat conftest.err >&5
31058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059   (exit $ac_status); } && {
31060          test -z "$ac_c_werror_flag" ||
31061          test ! -s conftest.err
31062        } && test -s conftest$ac_exeext &&
31063        $as_test_x conftest$ac_exeext; then
31064   ac_cv_lib_posix_remove=yes
31065 else
31066   echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31068
31069         ac_cv_lib_posix_remove=no
31070 fi
31071
31072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31073       conftest$ac_exeext conftest.$ac_ext
31074 LIBS=$ac_check_lib_save_LIBS
31075 fi
31076 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31077 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31078 if test $ac_cv_lib_posix_remove = yes; then
31079   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31080 fi
31081
31082     fi
31083
31084     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31085     { echo "$as_me:$LINENO: checking for shmat" >&5
31086 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31087 if test "${ac_cv_func_shmat+set}" = set; then
31088   echo $ECHO_N "(cached) $ECHO_C" >&6
31089 else
31090   cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h.  */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h.  */
31096 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31098 #define shmat innocuous_shmat
31099
31100 /* System header to define __stub macros and hopefully few prototypes,
31101     which can conflict with char shmat (); below.
31102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31103     <limits.h> exists even on freestanding compilers.  */
31104
31105 #ifdef __STDC__
31106 # include <limits.h>
31107 #else
31108 # include <assert.h>
31109 #endif
31110
31111 #undef shmat
31112
31113 /* Override any GCC internal prototype to avoid an error.
31114    Use char because int might match the return type of a GCC
31115    builtin and then its argument prototype would still apply.  */
31116 #ifdef __cplusplus
31117 extern "C"
31118 #endif
31119 char shmat ();
31120 /* The GNU C library defines this for functions which it implements
31121     to always fail with ENOSYS.  Some functions are actually named
31122     something starting with __ and the normal name is an alias.  */
31123 #if defined __stub_shmat || defined __stub___shmat
31124 choke me
31125 #endif
31126
31127 int
31128 main ()
31129 {
31130 return shmat ();
31131   ;
31132   return 0;
31133 }
31134 _ACEOF
31135 rm -f conftest.$ac_objext conftest$ac_exeext
31136 if { (ac_try="$ac_link"
31137 case "(($ac_try" in
31138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139   *) ac_try_echo=$ac_try;;
31140 esac
31141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142   (eval "$ac_link") 2>conftest.er1
31143   ac_status=$?
31144   grep -v '^ *+' conftest.er1 >conftest.err
31145   rm -f conftest.er1
31146   cat conftest.err >&5
31147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148   (exit $ac_status); } && {
31149          test -z "$ac_c_werror_flag" ||
31150          test ! -s conftest.err
31151        } && test -s conftest$ac_exeext &&
31152        $as_test_x conftest$ac_exeext; then
31153   ac_cv_func_shmat=yes
31154 else
31155   echo "$as_me: failed program was:" >&5
31156 sed 's/^/| /' conftest.$ac_ext >&5
31157
31158         ac_cv_func_shmat=no
31159 fi
31160
31161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31162       conftest$ac_exeext conftest.$ac_ext
31163 fi
31164 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31165 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31166
31167     if test $ac_cv_func_shmat = no; then
31168       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31169 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31170 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31171   echo $ECHO_N "(cached) $ECHO_C" >&6
31172 else
31173   ac_check_lib_save_LIBS=$LIBS
31174 LIBS="-lipc  $LIBS"
31175 cat >conftest.$ac_ext <<_ACEOF
31176 /* confdefs.h.  */
31177 _ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h.  */
31181
31182 /* Override any GCC internal prototype to avoid an error.
31183    Use char because int might match the return type of a GCC
31184    builtin and then its argument prototype would still apply.  */
31185 #ifdef __cplusplus
31186 extern "C"
31187 #endif
31188 char shmat ();
31189 int
31190 main ()
31191 {
31192 return shmat ();
31193   ;
31194   return 0;
31195 }
31196 _ACEOF
31197 rm -f conftest.$ac_objext conftest$ac_exeext
31198 if { (ac_try="$ac_link"
31199 case "(($ac_try" in
31200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201   *) ac_try_echo=$ac_try;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204   (eval "$ac_link") 2>conftest.er1
31205   ac_status=$?
31206   grep -v '^ *+' conftest.er1 >conftest.err
31207   rm -f conftest.er1
31208   cat conftest.err >&5
31209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210   (exit $ac_status); } && {
31211          test -z "$ac_c_werror_flag" ||
31212          test ! -s conftest.err
31213        } && test -s conftest$ac_exeext &&
31214        $as_test_x conftest$ac_exeext; then
31215   ac_cv_lib_ipc_shmat=yes
31216 else
31217   echo "$as_me: failed program was:" >&5
31218 sed 's/^/| /' conftest.$ac_ext >&5
31219
31220         ac_cv_lib_ipc_shmat=no
31221 fi
31222
31223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31224       conftest$ac_exeext conftest.$ac_ext
31225 LIBS=$ac_check_lib_save_LIBS
31226 fi
31227 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31228 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31229 if test $ac_cv_lib_ipc_shmat = yes; then
31230   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31231 fi
31232
31233     fi
31234   fi
31235
31236   # Check for libraries that X11R6 Xt/Xaw programs need.
31237   ac_save_LDFLAGS=$LDFLAGS
31238   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31239   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31240   # check for ICE first), but we must link in the order -lSM -lICE or
31241   # we get undefined symbols.  So assume we have SM if we have ICE.
31242   # These have to be linked with before -lX11, unlike the other
31243   # libraries we check for below, so use a different variable.
31244   # John Interrante, Karl Berry
31245   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31246 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31247 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31248   echo $ECHO_N "(cached) $ECHO_C" >&6
31249 else
31250   ac_check_lib_save_LIBS=$LIBS
31251 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31252 cat >conftest.$ac_ext <<_ACEOF
31253 /* confdefs.h.  */
31254 _ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h.  */
31258
31259 /* Override any GCC internal prototype to avoid an error.
31260    Use char because int might match the return type of a GCC
31261    builtin and then its argument prototype would still apply.  */
31262 #ifdef __cplusplus
31263 extern "C"
31264 #endif
31265 char IceConnectionNumber ();
31266 int
31267 main ()
31268 {
31269 return IceConnectionNumber ();
31270   ;
31271   return 0;
31272 }
31273 _ACEOF
31274 rm -f conftest.$ac_objext conftest$ac_exeext
31275 if { (ac_try="$ac_link"
31276 case "(($ac_try" in
31277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31278   *) ac_try_echo=$ac_try;;
31279 esac
31280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31281   (eval "$ac_link") 2>conftest.er1
31282   ac_status=$?
31283   grep -v '^ *+' conftest.er1 >conftest.err
31284   rm -f conftest.er1
31285   cat conftest.err >&5
31286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287   (exit $ac_status); } && {
31288          test -z "$ac_c_werror_flag" ||
31289          test ! -s conftest.err
31290        } && test -s conftest$ac_exeext &&
31291        $as_test_x conftest$ac_exeext; then
31292   ac_cv_lib_ICE_IceConnectionNumber=yes
31293 else
31294   echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31296
31297         ac_cv_lib_ICE_IceConnectionNumber=no
31298 fi
31299
31300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31301       conftest$ac_exeext conftest.$ac_ext
31302 LIBS=$ac_check_lib_save_LIBS
31303 fi
31304 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31305 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31306 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31307   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31308 fi
31309
31310   LDFLAGS=$ac_save_LDFLAGS
31311
31312 fi
31313
31314
31315         if test "$no_x" = "yes"; then
31316           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31317 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31318    { (exit 1); exit 1; }; }
31319         fi
31320
31321                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31322         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31323         AFMINSTALL=afminstall
31324         COMPILED_X_PROGRAM=0
31325
31326     fi
31327
31328     if test "$wxUSE_X11" = 1; then
31329         if test "$wxUSE_NANOX" = "yes"; then
31330             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31331 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31332             if test "x$MICROWIN" = x ; then
31333                 { echo "$as_me:$LINENO: result: not found" >&5
31334 echo "${ECHO_T}not found" >&6; }
31335                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31336 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31337    { (exit 1); exit 1; }; }
31338             else
31339                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31340 echo "${ECHO_T}$MICROWIN" >&6; }
31341                 cat >>confdefs.h <<\_ACEOF
31342 #define wxUSE_NANOX 1
31343 _ACEOF
31344
31345             fi
31346         fi
31347
31348         if test "$wxUSE_UNICODE" = "yes"; then
31349
31350
31351 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31352         if test -n "$ac_tool_prefix"; then
31353   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31354 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31357 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31358   echo $ECHO_N "(cached) $ECHO_C" >&6
31359 else
31360   case $PKG_CONFIG in
31361   [\\/]* | ?:[\\/]*)
31362   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31363   ;;
31364   *)
31365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31366 for as_dir in $PATH
31367 do
31368   IFS=$as_save_IFS
31369   test -z "$as_dir" && as_dir=.
31370   for ac_exec_ext in '' $ac_executable_extensions; do
31371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31372     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31374     break 2
31375   fi
31376 done
31377 done
31378 IFS=$as_save_IFS
31379
31380   ;;
31381 esac
31382 fi
31383 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31384 if test -n "$PKG_CONFIG"; then
31385   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31386 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31387 else
31388   { echo "$as_me:$LINENO: result: no" >&5
31389 echo "${ECHO_T}no" >&6; }
31390 fi
31391
31392
31393 fi
31394 if test -z "$ac_cv_path_PKG_CONFIG"; then
31395   ac_pt_PKG_CONFIG=$PKG_CONFIG
31396   # Extract the first word of "pkg-config", so it can be a program name with args.
31397 set dummy pkg-config; ac_word=$2
31398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31400 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31401   echo $ECHO_N "(cached) $ECHO_C" >&6
31402 else
31403   case $ac_pt_PKG_CONFIG in
31404   [\\/]* | ?:[\\/]*)
31405   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31406   ;;
31407   *)
31408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31409 for as_dir in $PATH
31410 do
31411   IFS=$as_save_IFS
31412   test -z "$as_dir" && as_dir=.
31413   for ac_exec_ext in '' $ac_executable_extensions; do
31414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31415     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31417     break 2
31418   fi
31419 done
31420 done
31421 IFS=$as_save_IFS
31422
31423   ;;
31424 esac
31425 fi
31426 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31427 if test -n "$ac_pt_PKG_CONFIG"; then
31428   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31429 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31430 else
31431   { echo "$as_me:$LINENO: result: no" >&5
31432 echo "${ECHO_T}no" >&6; }
31433 fi
31434
31435   if test "x$ac_pt_PKG_CONFIG" = x; then
31436     PKG_CONFIG=""
31437   else
31438     case $cross_compiling:$ac_tool_warned in
31439 yes:)
31440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31441 whose name does not start with the host triplet.  If you think this
31442 configuration is useful to you, please write to autoconf@gnu.org." >&5
31443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31444 whose name does not start with the host triplet.  If you think this
31445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31446 ac_tool_warned=yes ;;
31447 esac
31448     PKG_CONFIG=$ac_pt_PKG_CONFIG
31449   fi
31450 else
31451   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31452 fi
31453
31454 fi
31455 if test -n "$PKG_CONFIG"; then
31456         _pkg_min_version=0.9.0
31457         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31458 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31459         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31460                 { echo "$as_me:$LINENO: result: yes" >&5
31461 echo "${ECHO_T}yes" >&6; }
31462         else
31463                 { echo "$as_me:$LINENO: result: no" >&5
31464 echo "${ECHO_T}no" >&6; }
31465                 PKG_CONFIG=""
31466         fi
31467
31468 fi
31469
31470
31471 pkg_failed=no
31472 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31473 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31474
31475 if test -n "$PKG_CONFIG"; then
31476     if test -n "$PANGOX_CFLAGS"; then
31477         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31478     else
31479         if test -n "$PKG_CONFIG" && \
31480     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31481   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31482   ac_status=$?
31483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484   (exit $ac_status); }; then
31485   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31486 else
31487   pkg_failed=yes
31488 fi
31489     fi
31490 else
31491         pkg_failed=untried
31492 fi
31493 if test -n "$PKG_CONFIG"; then
31494     if test -n "$PANGOX_LIBS"; then
31495         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31496     else
31497         if test -n "$PKG_CONFIG" && \
31498     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31499   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31500   ac_status=$?
31501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502   (exit $ac_status); }; then
31503   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31504 else
31505   pkg_failed=yes
31506 fi
31507     fi
31508 else
31509         pkg_failed=untried
31510 fi
31511
31512
31513
31514 if test $pkg_failed = yes; then
31515
31516 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31517         _pkg_short_errors_supported=yes
31518 else
31519         _pkg_short_errors_supported=no
31520 fi
31521         if test $_pkg_short_errors_supported = yes; then
31522                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31523         else
31524                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31525         fi
31526         # Put the nasty error message in config.log where it belongs
31527         echo "$PANGOX_PKG_ERRORS" >&5
31528
31529
31530                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31531 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31532    { (exit 1); exit 1; }; }
31533
31534
31535 elif test $pkg_failed = untried; then
31536
31537                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31538 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31539    { (exit 1); exit 1; }; }
31540
31541
31542 else
31543         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31544         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31545         { echo "$as_me:$LINENO: result: yes" >&5
31546 echo "${ECHO_T}yes" >&6; }
31547
31548                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31549                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31550                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31551
31552 fi
31553
31554 pkg_failed=no
31555 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31556 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31557
31558 if test -n "$PKG_CONFIG"; then
31559     if test -n "$PANGOFT2_CFLAGS"; then
31560         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31561     else
31562         if test -n "$PKG_CONFIG" && \
31563     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31564   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); }; then
31568   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31569 else
31570   pkg_failed=yes
31571 fi
31572     fi
31573 else
31574         pkg_failed=untried
31575 fi
31576 if test -n "$PKG_CONFIG"; then
31577     if test -n "$PANGOFT2_LIBS"; then
31578         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31579     else
31580         if test -n "$PKG_CONFIG" && \
31581     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31582   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31583   ac_status=$?
31584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); }; then
31586   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31587 else
31588   pkg_failed=yes
31589 fi
31590     fi
31591 else
31592         pkg_failed=untried
31593 fi
31594
31595
31596
31597 if test $pkg_failed = yes; then
31598
31599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31600         _pkg_short_errors_supported=yes
31601 else
31602         _pkg_short_errors_supported=no
31603 fi
31604         if test $_pkg_short_errors_supported = yes; then
31605                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31606         else
31607                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31608         fi
31609         # Put the nasty error message in config.log where it belongs
31610         echo "$PANGOFT2_PKG_ERRORS" >&5
31611
31612
31613                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31614 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31615                     wxUSE_PRINTING_ARCHITECTURE="no"
31616
31617
31618 elif test $pkg_failed = untried; then
31619
31620                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31621 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31622                     wxUSE_PRINTING_ARCHITECTURE="no"
31623
31624
31625 else
31626         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31627         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31628         { echo "$as_me:$LINENO: result: yes" >&5
31629 echo "${ECHO_T}yes" >&6; }
31630
31631                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31632                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31633                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31634
31635 fi
31636
31637 pkg_failed=no
31638 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31639 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31640
31641 if test -n "$PKG_CONFIG"; then
31642     if test -n "$PANGOXFT_CFLAGS"; then
31643         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31644     else
31645         if test -n "$PKG_CONFIG" && \
31646     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31647   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31648   ac_status=$?
31649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650   (exit $ac_status); }; then
31651   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31652 else
31653   pkg_failed=yes
31654 fi
31655     fi
31656 else
31657         pkg_failed=untried
31658 fi
31659 if test -n "$PKG_CONFIG"; then
31660     if test -n "$PANGOXFT_LIBS"; then
31661         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31662     else
31663         if test -n "$PKG_CONFIG" && \
31664     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31665   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31666   ac_status=$?
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); }; then
31669   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31670 else
31671   pkg_failed=yes
31672 fi
31673     fi
31674 else
31675         pkg_failed=untried
31676 fi
31677
31678
31679
31680 if test $pkg_failed = yes; then
31681
31682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31683         _pkg_short_errors_supported=yes
31684 else
31685         _pkg_short_errors_supported=no
31686 fi
31687         if test $_pkg_short_errors_supported = yes; then
31688                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31689         else
31690                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31691         fi
31692         # Put the nasty error message in config.log where it belongs
31693         echo "$PANGOXFT_PKG_ERRORS" >&5
31694
31695
31696                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31697 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31698
31699
31700 elif test $pkg_failed = untried; then
31701
31702                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31703 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31704
31705
31706 else
31707         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31708         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31709         { echo "$as_me:$LINENO: result: yes" >&5
31710 echo "${ECHO_T}yes" >&6; }
31711
31712                     cat >>confdefs.h <<\_ACEOF
31713 #define HAVE_PANGO_XFT 1
31714 _ACEOF
31715
31716                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31717                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31718                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31719
31720 fi
31721             save_LIBS="$LIBS"
31722             LIBS="$LIBS $PANGOX_LIBS"
31723
31724 for ac_func in pango_font_family_is_monospace
31725 do
31726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31730   echo $ECHO_N "(cached) $ECHO_C" >&6
31731 else
31732   cat >conftest.$ac_ext <<_ACEOF
31733 /* confdefs.h.  */
31734 _ACEOF
31735 cat confdefs.h >>conftest.$ac_ext
31736 cat >>conftest.$ac_ext <<_ACEOF
31737 /* end confdefs.h.  */
31738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31740 #define $ac_func innocuous_$ac_func
31741
31742 /* System header to define __stub macros and hopefully few prototypes,
31743     which can conflict with char $ac_func (); below.
31744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31745     <limits.h> exists even on freestanding compilers.  */
31746
31747 #ifdef __STDC__
31748 # include <limits.h>
31749 #else
31750 # include <assert.h>
31751 #endif
31752
31753 #undef $ac_func
31754
31755 /* Override any GCC internal prototype to avoid an error.
31756    Use char because int might match the return type of a GCC
31757    builtin and then its argument prototype would still apply.  */
31758 #ifdef __cplusplus
31759 extern "C"
31760 #endif
31761 char $ac_func ();
31762 /* The GNU C library defines this for functions which it implements
31763     to always fail with ENOSYS.  Some functions are actually named
31764     something starting with __ and the normal name is an alias.  */
31765 #if defined __stub_$ac_func || defined __stub___$ac_func
31766 choke me
31767 #endif
31768
31769 int
31770 main ()
31771 {
31772 return $ac_func ();
31773   ;
31774   return 0;
31775 }
31776 _ACEOF
31777 rm -f conftest.$ac_objext conftest$ac_exeext
31778 if { (ac_try="$ac_link"
31779 case "(($ac_try" in
31780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31781   *) ac_try_echo=$ac_try;;
31782 esac
31783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31784   (eval "$ac_link") 2>conftest.er1
31785   ac_status=$?
31786   grep -v '^ *+' conftest.er1 >conftest.err
31787   rm -f conftest.er1
31788   cat conftest.err >&5
31789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790   (exit $ac_status); } && {
31791          test -z "$ac_c_werror_flag" ||
31792          test ! -s conftest.err
31793        } && test -s conftest$ac_exeext &&
31794        $as_test_x conftest$ac_exeext; then
31795   eval "$as_ac_var=yes"
31796 else
31797   echo "$as_me: failed program was:" >&5
31798 sed 's/^/| /' conftest.$ac_ext >&5
31799
31800         eval "$as_ac_var=no"
31801 fi
31802
31803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31804       conftest$ac_exeext conftest.$ac_ext
31805 fi
31806 ac_res=`eval echo '${'$as_ac_var'}'`
31807                { echo "$as_me:$LINENO: result: $ac_res" >&5
31808 echo "${ECHO_T}$ac_res" >&6; }
31809 if test `eval echo '${'$as_ac_var'}'` = yes; then
31810   cat >>confdefs.h <<_ACEOF
31811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31812 _ACEOF
31813
31814 fi
31815 done
31816
31817             LIBS="$save_LIBS"
31818         fi
31819
31820         wxUSE_UNIVERSAL="yes"
31821
31822         if test "$wxUSE_NANOX" = "yes"; then
31823             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31824             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"
31825             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31826         else
31827             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31828         fi
31829
31830         TOOLKIT=X11
31831         GUIDIST=X11_DIST
31832     fi
31833
31834     if test "$wxUSE_MOTIF" = 1; then
31835         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31836 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31837
31838 ac_find_includes=
31839 for ac_dir in $SEARCH_INCLUDE /usr/include;
31840   do
31841     if test -f "$ac_dir/Xm/Xm.h"; then
31842       ac_find_includes=$ac_dir
31843       break
31844     fi
31845   done
31846
31847         if test "$ac_find_includes" != "" ; then
31848             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31849 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31850
31851     if test "x$ac_find_includes" = "x/usr/include"; then
31852     ac_path_to_include=""
31853   else
31854     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31855     result=$?
31856     if test $result = 0; then
31857       ac_path_to_include=""
31858     else
31859       ac_path_to_include=" -I$ac_find_includes"
31860     fi
31861   fi
31862
31863             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31864         else
31865             save_CFLAGS=$CFLAGS
31866             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31867
31868             cat >conftest.$ac_ext <<_ACEOF
31869 /* confdefs.h.  */
31870 _ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h.  */
31874
31875                     #include <Xm/Xm.h>
31876
31877 int
31878 main ()
31879 {
31880
31881                     int version;
31882                     version = xmUseVersion;
31883
31884   ;
31885   return 0;
31886 }
31887 _ACEOF
31888 rm -f conftest.$ac_objext
31889 if { (ac_try="$ac_compile"
31890 case "(($ac_try" in
31891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892   *) ac_try_echo=$ac_try;;
31893 esac
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895   (eval "$ac_compile") 2>conftest.er1
31896   ac_status=$?
31897   grep -v '^ *+' conftest.er1 >conftest.err
31898   rm -f conftest.er1
31899   cat conftest.err >&5
31900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901   (exit $ac_status); } && {
31902          test -z "$ac_c_werror_flag" ||
31903          test ! -s conftest.err
31904        } && test -s conftest.$ac_objext; then
31905
31906                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31907 echo "${ECHO_T}found in default search path" >&6; }
31908                     COMPILED_X_PROGRAM=1
31909
31910 else
31911   echo "$as_me: failed program was:" >&5
31912 sed 's/^/| /' conftest.$ac_ext >&5
31913
31914
31915                     { echo "$as_me:$LINENO: result: no" >&5
31916 echo "${ECHO_T}no" >&6; }
31917                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31918 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31919    { (exit 1); exit 1; }; }
31920
31921
31922 fi
31923
31924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31925
31926             CFLAGS=$save_CFLAGS
31927         fi
31928
31929
31930         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31931 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31932
31933   ac_find_libraries=
31934   for ac_dir in $SEARCH_LIB;
31935   do
31936     for ac_extension in a so sl dylib dll.a; do
31937       if test -f "$ac_dir/libXm.$ac_extension"; then
31938         ac_find_libraries=$ac_dir
31939         break 2
31940       fi
31941     done
31942   done
31943
31944
31945         if test "x$ac_find_libraries" != "x" ; then
31946             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31947 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31948
31949
31950     if test "$ac_find_libraries" = "default location"; then
31951     ac_path_to_link=""
31952   else
31953     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31954     result=$?
31955     if test $result = 0; then
31956       ac_path_to_link=""
31957     else
31958       ac_path_to_link=" -L$ac_find_libraries"
31959     fi
31960   fi
31961
31962             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31963         else
31964                                                 save_CFLAGS=$CFLAGS
31965             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31966             save_LIBS="$LIBS"
31967             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31968
31969             cat >conftest.$ac_ext <<_ACEOF
31970 /* confdefs.h.  */
31971 _ACEOF
31972 cat confdefs.h >>conftest.$ac_ext
31973 cat >>conftest.$ac_ext <<_ACEOF
31974 /* end confdefs.h.  */
31975
31976                     #include <Xm/Xm.h>
31977
31978 int
31979 main ()
31980 {
31981
31982                     int version;
31983                     version = xmUseVersion;
31984
31985   ;
31986   return 0;
31987 }
31988 _ACEOF
31989 rm -f conftest.$ac_objext conftest$ac_exeext
31990 if { (ac_try="$ac_link"
31991 case "(($ac_try" in
31992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993   *) ac_try_echo=$ac_try;;
31994 esac
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996   (eval "$ac_link") 2>conftest.er1
31997   ac_status=$?
31998   grep -v '^ *+' conftest.er1 >conftest.err
31999   rm -f conftest.er1
32000   cat conftest.err >&5
32001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002   (exit $ac_status); } && {
32003          test -z "$ac_c_werror_flag" ||
32004          test ! -s conftest.err
32005        } && test -s conftest$ac_exeext &&
32006        $as_test_x conftest$ac_exeext; then
32007
32008                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32009 echo "${ECHO_T}found in default search path" >&6; }
32010                     COMPILED_X_PROGRAM=1
32011
32012 else
32013   echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.$ac_ext >&5
32015
32016
32017                     { echo "$as_me:$LINENO: result: no" >&5
32018 echo "${ECHO_T}no" >&6; }
32019                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32020 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32021    { (exit 1); exit 1; }; }
32022
32023
32024 fi
32025
32026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32027       conftest$ac_exeext conftest.$ac_ext
32028
32029             CFLAGS=$save_CFLAGS
32030             LIBS="$save_LIBS"
32031         fi
32032
32033         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32034 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32035         libp_link=""
32036         libsm_ice_link=""
32037         libs_found=0
32038         for libp in "" " -lXp"; do
32039             if test "$libs_found" = 0; then
32040                 for libsm_ice in "" " -lSM -lICE"; do
32041                     if test "$libs_found" = 0; then
32042                         save_LIBS="$LIBS"
32043                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32044                         save_CFLAGS=$CFLAGS
32045                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32046
32047                         cat >conftest.$ac_ext <<_ACEOF
32048 /* confdefs.h.  */
32049 _ACEOF
32050 cat confdefs.h >>conftest.$ac_ext
32051 cat >>conftest.$ac_ext <<_ACEOF
32052 /* end confdefs.h.  */
32053
32054                                 #include <Xm/Xm.h>
32055                                 #include <Xm/List.h>
32056
32057 int
32058 main ()
32059 {
32060
32061                                 XmString string = NULL;
32062                                 Widget w = NULL;
32063                                 int position = 0;
32064                                 XmListAddItem(w, string, position);
32065
32066   ;
32067   return 0;
32068 }
32069 _ACEOF
32070 rm -f conftest.$ac_objext conftest$ac_exeext
32071 if { (ac_try="$ac_link"
32072 case "(($ac_try" in
32073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074   *) ac_try_echo=$ac_try;;
32075 esac
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077   (eval "$ac_link") 2>conftest.er1
32078   ac_status=$?
32079   grep -v '^ *+' conftest.er1 >conftest.err
32080   rm -f conftest.er1
32081   cat conftest.err >&5
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); } && {
32084          test -z "$ac_c_werror_flag" ||
32085          test ! -s conftest.err
32086        } && test -s conftest$ac_exeext &&
32087        $as_test_x conftest$ac_exeext; then
32088
32089                                 libp_link="$libp"
32090                                 libsm_ice_link="$libsm_ice"
32091                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32092 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32093                                 libs_found=1
32094
32095 else
32096   echo "$as_me: failed program was:" >&5
32097 sed 's/^/| /' conftest.$ac_ext >&5
32098
32099
32100
32101 fi
32102
32103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32104       conftest$ac_exeext conftest.$ac_ext
32105
32106                         LIBS="$save_LIBS"
32107                         CFLAGS=$save_CFLAGS
32108                     fi
32109                 done
32110             fi
32111         done
32112
32113         if test "$libs_found" = 0; then
32114             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32115 echo "${ECHO_T}can't find the right libraries" >&6; }
32116             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32117 echo "$as_me: error: can't link a simple motif program" >&2;}
32118    { (exit 1); exit 1; }; }
32119         fi
32120
32121                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32122 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32123 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32124   echo $ECHO_N "(cached) $ECHO_C" >&6
32125 else
32126   ac_check_lib_save_LIBS=$LIBS
32127 LIBS="-lSgm  $LIBS"
32128 cat >conftest.$ac_ext <<_ACEOF
32129 /* confdefs.h.  */
32130 _ACEOF
32131 cat confdefs.h >>conftest.$ac_ext
32132 cat >>conftest.$ac_ext <<_ACEOF
32133 /* end confdefs.h.  */
32134
32135 /* Override any GCC internal prototype to avoid an error.
32136    Use char because int might match the return type of a GCC
32137    builtin and then its argument prototype would still apply.  */
32138 #ifdef __cplusplus
32139 extern "C"
32140 #endif
32141 char SgCreateList ();
32142 int
32143 main ()
32144 {
32145 return SgCreateList ();
32146   ;
32147   return 0;
32148 }
32149 _ACEOF
32150 rm -f conftest.$ac_objext conftest$ac_exeext
32151 if { (ac_try="$ac_link"
32152 case "(($ac_try" in
32153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32154   *) ac_try_echo=$ac_try;;
32155 esac
32156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32157   (eval "$ac_link") 2>conftest.er1
32158   ac_status=$?
32159   grep -v '^ *+' conftest.er1 >conftest.err
32160   rm -f conftest.er1
32161   cat conftest.err >&5
32162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163   (exit $ac_status); } && {
32164          test -z "$ac_c_werror_flag" ||
32165          test ! -s conftest.err
32166        } && test -s conftest$ac_exeext &&
32167        $as_test_x conftest$ac_exeext; then
32168   ac_cv_lib_Sgm_SgCreateList=yes
32169 else
32170   echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32172
32173         ac_cv_lib_Sgm_SgCreateList=no
32174 fi
32175
32176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32177       conftest$ac_exeext conftest.$ac_ext
32178 LIBS=$ac_check_lib_save_LIBS
32179 fi
32180 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32181 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32182 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32183   libsgm_link=" -lSgm"
32184 fi
32185
32186
32187         save_CFLAGS=$CFLAGS
32188         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32189
32190         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32191 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32192 if test "${wx_cv_lib_motif2+set}" = set; then
32193   echo $ECHO_N "(cached) $ECHO_C" >&6
32194 else
32195   cat >conftest.$ac_ext <<_ACEOF
32196 /* confdefs.h.  */
32197 _ACEOF
32198 cat confdefs.h >>conftest.$ac_ext
32199 cat >>conftest.$ac_ext <<_ACEOF
32200 /* end confdefs.h.  */
32201
32202                             #include <Xm/Xm.h>
32203
32204 int
32205 main ()
32206 {
32207
32208                             #if XmVersion < 2000
32209                             Not Motif 2
32210                             #endif
32211
32212   ;
32213   return 0;
32214 }
32215 _ACEOF
32216 rm -f conftest.$ac_objext
32217 if { (ac_try="$ac_compile"
32218 case "(($ac_try" in
32219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220   *) ac_try_echo=$ac_try;;
32221 esac
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223   (eval "$ac_compile") 2>conftest.er1
32224   ac_status=$?
32225   grep -v '^ *+' conftest.er1 >conftest.err
32226   rm -f conftest.er1
32227   cat conftest.err >&5
32228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229   (exit $ac_status); } && {
32230          test -z "$ac_c_werror_flag" ||
32231          test ! -s conftest.err
32232        } && test -s conftest.$ac_objext; then
32233   wx_cv_lib_motif2="yes"
32234 else
32235   echo "$as_me: failed program was:" >&5
32236 sed 's/^/| /' conftest.$ac_ext >&5
32237
32238         wx_cv_lib_motif2="no"
32239 fi
32240
32241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242 fi
32243 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32244 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32245         if test "$wx_cv_lib_motif2" = "yes"; then
32246             cat >>confdefs.h <<\_ACEOF
32247 #define __WXMOTIF20__ 1
32248 _ACEOF
32249
32250         else
32251             cat >>confdefs.h <<\_ACEOF
32252 #define __WXMOTIF20__ 0
32253 _ACEOF
32254
32255         fi
32256
32257         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32258 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32259 if test "${wx_cv_lib_lesstif+set}" = set; then
32260   echo $ECHO_N "(cached) $ECHO_C" >&6
32261 else
32262   cat >conftest.$ac_ext <<_ACEOF
32263 /* confdefs.h.  */
32264 _ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h.  */
32268
32269                             #include <Xm/Xm.h>
32270
32271 int
32272 main ()
32273 {
32274
32275                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32276                             Not Lesstif
32277                             #endif
32278
32279   ;
32280   return 0;
32281 }
32282 _ACEOF
32283 rm -f conftest.$ac_objext
32284 if { (ac_try="$ac_compile"
32285 case "(($ac_try" in
32286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287   *) ac_try_echo=$ac_try;;
32288 esac
32289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290   (eval "$ac_compile") 2>conftest.er1
32291   ac_status=$?
32292   grep -v '^ *+' conftest.er1 >conftest.err
32293   rm -f conftest.er1
32294   cat conftest.err >&5
32295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296   (exit $ac_status); } && {
32297          test -z "$ac_c_werror_flag" ||
32298          test ! -s conftest.err
32299        } && test -s conftest.$ac_objext; then
32300   wx_cv_lib_lesstif="yes"
32301 else
32302   echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32304
32305         wx_cv_lib_lesstif="no"
32306 fi
32307
32308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32309
32310 fi
32311 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32312 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32313         if test "$wx_cv_lib_lesstif" = "yes"; then
32314             cat >>confdefs.h <<\_ACEOF
32315 #define __WXLESSTIF__ 1
32316 _ACEOF
32317
32318         else
32319             cat >>confdefs.h <<\_ACEOF
32320 #define __WXLESSTIF__ 0
32321 _ACEOF
32322
32323         fi
32324
32325         CFLAGS=$save_CFLAGS
32326
32327         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32328         TOOLKIT=MOTIF
32329         GUIDIST=MOTIF_DIST
32330     fi
32331
32332         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32333                 if test "$wxUSE_LIBXPM" = "sys"; then
32334             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32335 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32336
32337   ac_find_libraries=
32338   for ac_dir in $SEARCH_LIB;
32339   do
32340     for ac_extension in a so sl dylib dll.a; do
32341       if test -f "$ac_dir/libXpm.$ac_extension"; then
32342         ac_find_libraries=$ac_dir
32343         break 2
32344       fi
32345     done
32346   done
32347
32348             if test "$ac_find_libraries" != "" ; then
32349
32350     if test "$ac_find_libraries" = "default location"; then
32351     ac_path_to_link=""
32352   else
32353     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32354     result=$?
32355     if test $result = 0; then
32356       ac_path_to_link=""
32357     else
32358       ac_path_to_link=" -L$ac_find_libraries"
32359     fi
32360   fi
32361
32362                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32363                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32364 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32365
32366                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32367 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32368 if test "${wx_cv_x11_xpm_h+set}" = set; then
32369   echo $ECHO_N "(cached) $ECHO_C" >&6
32370 else
32371
32372                         save_CFLAGS=$CFLAGS
32373                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32374
32375                         cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381
32382                                 #include <X11/xpm.h>
32383
32384 int
32385 main ()
32386 {
32387
32388                                 int version;
32389                                 version = XpmLibraryVersion();
32390
32391   ;
32392   return 0;
32393 }
32394 _ACEOF
32395 rm -f conftest.$ac_objext
32396 if { (ac_try="$ac_compile"
32397 case "(($ac_try" in
32398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399   *) ac_try_echo=$ac_try;;
32400 esac
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402   (eval "$ac_compile") 2>conftest.er1
32403   ac_status=$?
32404   grep -v '^ *+' conftest.er1 >conftest.err
32405   rm -f conftest.er1
32406   cat conftest.err >&5
32407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408   (exit $ac_status); } && {
32409          test -z "$ac_c_werror_flag" ||
32410          test ! -s conftest.err
32411        } && test -s conftest.$ac_objext; then
32412   wx_cv_x11_xpm_h=yes
32413 else
32414   echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32416
32417         wx_cv_x11_xpm_h=no
32418
32419 fi
32420
32421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32422
32423                         CFLAGS=$save_CFLAGS
32424
32425
32426 fi
32427 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32428 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32429
32430                 if test $wx_cv_x11_xpm_h = "yes"; then
32431                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32432                     cat >>confdefs.h <<\_ACEOF
32433 #define wxHAVE_LIB_XPM 1
32434 _ACEOF
32435
32436                 else
32437                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32438 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32439                 fi
32440             fi
32441
32442         fi
32443
32444                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32445 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32446 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32447   echo $ECHO_N "(cached) $ECHO_C" >&6
32448 else
32449   ac_check_lib_save_LIBS=$LIBS
32450 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32451 cat >conftest.$ac_ext <<_ACEOF
32452 /* confdefs.h.  */
32453 _ACEOF
32454 cat confdefs.h >>conftest.$ac_ext
32455 cat >>conftest.$ac_ext <<_ACEOF
32456 /* end confdefs.h.  */
32457
32458 /* Override any GCC internal prototype to avoid an error.
32459    Use char because int might match the return type of a GCC
32460    builtin and then its argument prototype would still apply.  */
32461 #ifdef __cplusplus
32462 extern "C"
32463 #endif
32464 char XShapeQueryExtension ();
32465 int
32466 main ()
32467 {
32468 return XShapeQueryExtension ();
32469   ;
32470   return 0;
32471 }
32472 _ACEOF
32473 rm -f conftest.$ac_objext conftest$ac_exeext
32474 if { (ac_try="$ac_link"
32475 case "(($ac_try" in
32476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477   *) ac_try_echo=$ac_try;;
32478 esac
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480   (eval "$ac_link") 2>conftest.er1
32481   ac_status=$?
32482   grep -v '^ *+' conftest.er1 >conftest.err
32483   rm -f conftest.er1
32484   cat conftest.err >&5
32485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486   (exit $ac_status); } && {
32487          test -z "$ac_c_werror_flag" ||
32488          test ! -s conftest.err
32489        } && test -s conftest$ac_exeext &&
32490        $as_test_x conftest$ac_exeext; then
32491   ac_cv_lib_Xext_XShapeQueryExtension=yes
32492 else
32493   echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496         ac_cv_lib_Xext_XShapeQueryExtension=no
32497 fi
32498
32499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32500       conftest$ac_exeext conftest.$ac_ext
32501 LIBS=$ac_check_lib_save_LIBS
32502 fi
32503 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32504 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32505 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32506
32507                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32508                       wxHAVE_XEXT_LIB=1
32509
32510 fi
32511
32512
32513         if test "$wxHAVE_XEXT_LIB" = 1; then
32514             save_CFLAGS="$CFLAGS"
32515             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32516
32517             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32518 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32519             cat >conftest.$ac_ext <<_ACEOF
32520 /* confdefs.h.  */
32521 _ACEOF
32522 cat confdefs.h >>conftest.$ac_ext
32523 cat >>conftest.$ac_ext <<_ACEOF
32524 /* end confdefs.h.  */
32525
32526                             #include <X11/Xlib.h>
32527                             #include <X11/extensions/shape.h>
32528
32529 int
32530 main ()
32531 {
32532
32533                             int dummy1, dummy2;
32534                             XShapeQueryExtension((Display*)NULL,
32535                                                  (int*)NULL, (int*)NULL);
32536
32537   ;
32538   return 0;
32539 }
32540 _ACEOF
32541 rm -f conftest.$ac_objext
32542 if { (ac_try="$ac_compile"
32543 case "(($ac_try" in
32544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545   *) ac_try_echo=$ac_try;;
32546 esac
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548   (eval "$ac_compile") 2>conftest.er1
32549   ac_status=$?
32550   grep -v '^ *+' conftest.er1 >conftest.err
32551   rm -f conftest.er1
32552   cat conftest.err >&5
32553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554   (exit $ac_status); } && {
32555          test -z "$ac_c_werror_flag" ||
32556          test ! -s conftest.err
32557        } && test -s conftest.$ac_objext; then
32558
32559                             cat >>confdefs.h <<\_ACEOF
32560 #define HAVE_XSHAPE 1
32561 _ACEOF
32562
32563                             { echo "$as_me:$LINENO: result: found" >&5
32564 echo "${ECHO_T}found" >&6; }
32565
32566 else
32567   echo "$as_me: failed program was:" >&5
32568 sed 's/^/| /' conftest.$ac_ext >&5
32569
32570
32571                             { echo "$as_me:$LINENO: result: not found" >&5
32572 echo "${ECHO_T}not found" >&6; }
32573
32574 fi
32575
32576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32577             CFLAGS="$save_CFLAGS"
32578
32579         fi
32580     fi
32581
32582     if test "$wxUSE_OSX_CARBON" = 1; then
32583         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32584 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32585         if test "$GCC" = yes; then
32586             { echo "$as_me:$LINENO: result: gcc" >&5
32587 echo "${ECHO_T}gcc" >&6; }
32588             CPPFLAGS_PASCAL="-fpascal-strings"
32589         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32590             { echo "$as_me:$LINENO: result: xlc" >&5
32591 echo "${ECHO_T}xlc" >&6; }
32592             CPPFLAGS_PASCAL="-qmacpstr"
32593         else
32594             { echo "$as_me:$LINENO: result: none" >&5
32595 echo "${ECHO_T}none" >&6; }
32596         fi
32597
32598         if test "x$wxUSE_UNIX" = "xyes"; then
32599             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32600         else
32601                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32602         fi
32603
32604         TOOLKIT=OSX_CARBON
32605                 GUIDIST=OSX_CARBON_DIST
32606                         WXBASEPORT="_carbon"
32607     fi
32608
32609     if test "$wxUSE_OSX_COCOA" = 1; then
32610         TOOLKIT=OSX_COCOA
32611         GUIDIST=OSX_COCOA_DIST
32612     fi
32613
32614     if test "$wxUSE_COCOA" = 1; then
32615         TOOLKIT=COCOA
32616         GUIDIST=COCOA_DIST
32617     fi
32618
32619     if test "$wxUSE_PM" = 1; then
32620         TOOLKIT=PM
32621         GUIDIST=PM_DIST
32622         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32623 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32624 if test "${wx_cv_spbcdata+set}" = set; then
32625   echo $ECHO_N "(cached) $ECHO_C" >&6
32626 else
32627
32628                 cat >conftest.$ac_ext <<_ACEOF
32629 /* confdefs.h.  */
32630 _ACEOF
32631 cat confdefs.h >>conftest.$ac_ext
32632 cat >>conftest.$ac_ext <<_ACEOF
32633 /* end confdefs.h.  */
32634
32635                         #define INCL_PM
32636                         #include <os2.h>
32637
32638 int
32639 main ()
32640 {
32641
32642                         SPBCDATA test;
32643
32644   ;
32645   return 0;
32646 }
32647 _ACEOF
32648 rm -f conftest.$ac_objext
32649 if { (ac_try="$ac_compile"
32650 case "(($ac_try" in
32651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652   *) ac_try_echo=$ac_try;;
32653 esac
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655   (eval "$ac_compile") 2>conftest.er1
32656   ac_status=$?
32657   grep -v '^ *+' conftest.er1 >conftest.err
32658   rm -f conftest.er1
32659   cat conftest.err >&5
32660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661   (exit $ac_status); } && {
32662          test -z "$ac_c_werror_flag" ||
32663          test ! -s conftest.err
32664        } && test -s conftest.$ac_objext; then
32665   wx_cv_spbcdata=yes
32666 else
32667   echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32669
32670         wx_cv_spbcdata=no
32671
32672 fi
32673
32674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32675
32676
32677 fi
32678 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32679 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32680
32681         if test $wx_cv_spbcdata = "yes"; then
32682             cat >>confdefs.h <<\_ACEOF
32683 #define HAVE_SPBCDATA 1
32684 _ACEOF
32685
32686         fi
32687     fi
32688
32689         if test "$TOOLKIT" = "PM" ; then
32690         TOOLKIT_DIR="os2"
32691     else
32692         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32693     fi
32694
32695     if test "$wxUSE_UNIVERSAL" = "yes"; then
32696         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32697         WIDGET_SET=univ
32698     fi
32699
32700         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32701     DISTDIR="wx\$(TOOLKIT)"
32702 else
32703     USE_GUI=0
32704
32705             TOOLKIT_DIR="base"
32706
32707         if test "$USE_WIN32" = 1 ; then
32708                         TOOLKIT="MSW"
32709     fi
32710
32711         GUIDIST="BASE_DIST"
32712     DISTDIR="wxBase"
32713 fi
32714
32715
32716
32717 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32718     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32719         wxUSE_UNICODE_UTF8=yes
32720     elif test "$USE_OS2" = 1 ; then
32721                                 wxUSE_UNICODE_UTF8=yes
32722     else
32723         wxUSE_UNICODE_UTF8=no
32724     fi
32725 fi
32726
32727
32728 if test "$wxUSE_GUI" = "yes"; then
32729     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32730
32731 for ac_header in X11/Xlib.h
32732 do
32733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32737   echo $ECHO_N "(cached) $ECHO_C" >&6
32738 else
32739   cat >conftest.$ac_ext <<_ACEOF
32740 /* confdefs.h.  */
32741 _ACEOF
32742 cat confdefs.h >>conftest.$ac_ext
32743 cat >>conftest.$ac_ext <<_ACEOF
32744 /* end confdefs.h.  */
32745
32746
32747 #include <$ac_header>
32748 _ACEOF
32749 rm -f conftest.$ac_objext
32750 if { (ac_try="$ac_compile"
32751 case "(($ac_try" in
32752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32753   *) ac_try_echo=$ac_try;;
32754 esac
32755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32756   (eval "$ac_compile") 2>conftest.er1
32757   ac_status=$?
32758   grep -v '^ *+' conftest.er1 >conftest.err
32759   rm -f conftest.er1
32760   cat conftest.err >&5
32761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762   (exit $ac_status); } && {
32763          test -z "$ac_c_werror_flag" ||
32764          test ! -s conftest.err
32765        } && test -s conftest.$ac_objext; then
32766   eval "$as_ac_Header=yes"
32767 else
32768   echo "$as_me: failed program was:" >&5
32769 sed 's/^/| /' conftest.$ac_ext >&5
32770
32771         eval "$as_ac_Header=no"
32772 fi
32773
32774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32775 fi
32776 ac_res=`eval echo '${'$as_ac_Header'}'`
32777                { echo "$as_me:$LINENO: result: $ac_res" >&5
32778 echo "${ECHO_T}$ac_res" >&6; }
32779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32780   cat >>confdefs.h <<_ACEOF
32781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32782 _ACEOF
32783
32784 fi
32785
32786 done
32787
32788
32789 for ac_header in X11/XKBlib.h
32790 do
32791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32795   echo $ECHO_N "(cached) $ECHO_C" >&6
32796 else
32797   cat >conftest.$ac_ext <<_ACEOF
32798 /* confdefs.h.  */
32799 _ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h.  */
32803
32804                           #if HAVE_X11_XLIB_H
32805                             #include <X11/Xlib.h>
32806                           #endif
32807
32808
32809 #include <$ac_header>
32810 _ACEOF
32811 rm -f conftest.$ac_objext
32812 if { (ac_try="$ac_compile"
32813 case "(($ac_try" in
32814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32815   *) ac_try_echo=$ac_try;;
32816 esac
32817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32818   (eval "$ac_compile") 2>conftest.er1
32819   ac_status=$?
32820   grep -v '^ *+' conftest.er1 >conftest.err
32821   rm -f conftest.er1
32822   cat conftest.err >&5
32823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824   (exit $ac_status); } && {
32825          test -z "$ac_c_werror_flag" ||
32826          test ! -s conftest.err
32827        } && test -s conftest.$ac_objext; then
32828   eval "$as_ac_Header=yes"
32829 else
32830   echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32832
32833         eval "$as_ac_Header=no"
32834 fi
32835
32836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32837 fi
32838 ac_res=`eval echo '${'$as_ac_Header'}'`
32839                { echo "$as_me:$LINENO: result: $ac_res" >&5
32840 echo "${ECHO_T}$ac_res" >&6; }
32841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32842   cat >>confdefs.h <<_ACEOF
32843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32844 _ACEOF
32845
32846 fi
32847
32848 done
32849
32850     fi
32851 fi
32852
32853
32854
32855 if test "$wxUSE_DISPLAY" = "yes"; then
32856     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32857         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32858 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32859
32860   ac_find_libraries=
32861   for ac_dir in $SEARCH_LIB;
32862   do
32863     for ac_extension in a so sl dylib dll.a; do
32864       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32865         ac_find_libraries=$ac_dir
32866         break 2
32867       fi
32868     done
32869   done
32870
32871         if test "$ac_find_libraries" != "" ; then
32872
32873     if test "$ac_find_libraries" = "default location"; then
32874     ac_path_to_link=""
32875   else
32876     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32877     result=$?
32878     if test $result = 0; then
32879       ac_path_to_link=""
32880     else
32881       ac_path_to_link=" -L$ac_find_libraries"
32882     fi
32883   fi
32884
32885             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32886                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32887             fi
32888             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32889             { echo "$as_me:$LINENO: result: yes" >&5
32890 echo "${ECHO_T}yes" >&6; }
32891
32892             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32893 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32894
32895   ac_find_libraries=
32896   for ac_dir in $SEARCH_LIB;
32897   do
32898     for ac_extension in a so sl dylib dll.a; do
32899       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32900         ac_find_libraries=$ac_dir
32901         break 2
32902       fi
32903     done
32904   done
32905
32906             if test "$ac_find_libraries" != "" ; then
32907                 { echo "$as_me:$LINENO: result: yes" >&5
32908 echo "${ECHO_T}yes" >&6; }
32909
32910 for ac_header in X11/extensions/xf86vmode.h
32911 do
32912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32916   echo $ECHO_N "(cached) $ECHO_C" >&6
32917 else
32918   cat >conftest.$ac_ext <<_ACEOF
32919 /* confdefs.h.  */
32920 _ACEOF
32921 cat confdefs.h >>conftest.$ac_ext
32922 cat >>conftest.$ac_ext <<_ACEOF
32923 /* end confdefs.h.  */
32924
32925                                       #if HAVE_X11_XLIB_H
32926                                         #include <X11/Xlib.h>
32927                                       #endif
32928
32929
32930 #include <$ac_header>
32931 _ACEOF
32932 rm -f conftest.$ac_objext
32933 if { (ac_try="$ac_compile"
32934 case "(($ac_try" in
32935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936   *) ac_try_echo=$ac_try;;
32937 esac
32938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32939   (eval "$ac_compile") 2>conftest.er1
32940   ac_status=$?
32941   grep -v '^ *+' conftest.er1 >conftest.err
32942   rm -f conftest.er1
32943   cat conftest.err >&5
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); } && {
32946          test -z "$ac_c_werror_flag" ||
32947          test ! -s conftest.err
32948        } && test -s conftest.$ac_objext; then
32949   eval "$as_ac_Header=yes"
32950 else
32951   echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.$ac_ext >&5
32953
32954         eval "$as_ac_Header=no"
32955 fi
32956
32957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32958 fi
32959 ac_res=`eval echo '${'$as_ac_Header'}'`
32960                { echo "$as_me:$LINENO: result: $ac_res" >&5
32961 echo "${ECHO_T}$ac_res" >&6; }
32962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32963   cat >>confdefs.h <<_ACEOF
32964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32965 _ACEOF
32966
32967                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32968
32969 fi
32970
32971 done
32972
32973             else
32974                 { echo "$as_me:$LINENO: result: no" >&5
32975 echo "${ECHO_T}no" >&6; }
32976             fi
32977
32978         else
32979             { echo "$as_me:$LINENO: result: no" >&5
32980 echo "${ECHO_T}no" >&6; }
32981             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32982 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32983             wxUSE_DISPLAY="no"
32984         fi
32985     elif test "$wxUSE_MSW" = 1; then
32986         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32987 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32988 if test "${ac_cv_header_ddraw_h+set}" = set; then
32989   echo $ECHO_N "(cached) $ECHO_C" >&6
32990 else
32991   cat >conftest.$ac_ext <<_ACEOF
32992 /* confdefs.h.  */
32993 _ACEOF
32994 cat confdefs.h >>conftest.$ac_ext
32995 cat >>conftest.$ac_ext <<_ACEOF
32996 /* end confdefs.h.  */
32997 #include <windows.h>
32998
32999 #include <ddraw.h>
33000 _ACEOF
33001 rm -f conftest.$ac_objext
33002 if { (ac_try="$ac_compile"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_compile") 2>conftest.er1
33009   ac_status=$?
33010   grep -v '^ *+' conftest.er1 >conftest.err
33011   rm -f conftest.er1
33012   cat conftest.err >&5
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); } && {
33015          test -z "$ac_c_werror_flag" ||
33016          test ! -s conftest.err
33017        } && test -s conftest.$ac_objext; then
33018   ac_cv_header_ddraw_h=yes
33019 else
33020   echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33022
33023         ac_cv_header_ddraw_h=no
33024 fi
33025
33026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33027 fi
33028 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33029 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33030
33031
33032     fi
33033 fi
33034
33035 if test "$wxUSE_DETECT_SM" = "yes"; then
33036     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33037         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33038 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33039
33040   ac_find_libraries=
33041   for ac_dir in $SEARCH_LIB;
33042   do
33043     for ac_extension in a so sl dylib dll.a; do
33044       if test -f "$ac_dir/libSM.$ac_extension"; then
33045         ac_find_libraries=$ac_dir
33046         break 2
33047       fi
33048     done
33049   done
33050
33051         if test "$ac_find_libraries" != "" ; then
33052
33053     if test "$ac_find_libraries" = "default location"; then
33054     ac_path_to_link=""
33055   else
33056     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33057     result=$?
33058     if test $result = 0; then
33059       ac_path_to_link=""
33060     else
33061       ac_path_to_link=" -L$ac_find_libraries"
33062     fi
33063   fi
33064
33065             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33066                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33067             fi
33068             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33069             { echo "$as_me:$LINENO: result: yes" >&5
33070 echo "${ECHO_T}yes" >&6; }
33071         else
33072             { echo "$as_me:$LINENO: result: no" >&5
33073 echo "${ECHO_T}no" >&6; }
33074             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33075 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33076             wxUSE_DETECT_SM="no"
33077         fi
33078     else
33079         wxUSE_DETECT_SM="no"
33080     fi
33081 fi
33082
33083
33084
33085 USE_OPENGL=0
33086 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33087
33088
33089     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33090         OPENGL_LIBS="-framework OpenGL -framework AGL"
33091     elif test "$wxUSE_MSW" = 1; then
33092         OPENGL_LIBS="-lopengl32 -lglu32"
33093     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33094
33095                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33096 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33097
33098 ac_find_includes=
33099 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33100   do
33101     if test -f "$ac_dir/GL/gl.h"; then
33102       ac_find_includes=$ac_dir
33103       break
33104     fi
33105   done
33106
33107         if test "$ac_find_includes" != "" ; then
33108             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33109 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33110
33111     if test "x$ac_find_includes" = "x/usr/include"; then
33112     ac_path_to_include=""
33113   else
33114     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33115     result=$?
33116     if test $result = 0; then
33117       ac_path_to_include=""
33118     else
33119       ac_path_to_include=" -I$ac_find_includes"
33120     fi
33121   fi
33122
33123             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33124         else
33125             { echo "$as_me:$LINENO: result: not found" >&5
33126 echo "${ECHO_T}not found" >&6; }
33127         fi
33128
33129         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33130 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33131 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33132   echo $ECHO_N "(cached) $ECHO_C" >&6
33133 else
33134   cat >conftest.$ac_ext <<_ACEOF
33135 /* confdefs.h.  */
33136 _ACEOF
33137 cat confdefs.h >>conftest.$ac_ext
33138 cat >>conftest.$ac_ext <<_ACEOF
33139 /* end confdefs.h.  */
33140
33141
33142 #include <GL/gl.h>
33143 _ACEOF
33144 rm -f conftest.$ac_objext
33145 if { (ac_try="$ac_compile"
33146 case "(($ac_try" in
33147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33148   *) ac_try_echo=$ac_try;;
33149 esac
33150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33151   (eval "$ac_compile") 2>conftest.er1
33152   ac_status=$?
33153   grep -v '^ *+' conftest.er1 >conftest.err
33154   rm -f conftest.er1
33155   cat conftest.err >&5
33156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157   (exit $ac_status); } && {
33158          test -z "$ac_c_werror_flag" ||
33159          test ! -s conftest.err
33160        } && test -s conftest.$ac_objext; then
33161   ac_cv_header_GL_gl_h=yes
33162 else
33163   echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33165
33166         ac_cv_header_GL_gl_h=no
33167 fi
33168
33169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33170 fi
33171 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33172 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33173 if test $ac_cv_header_GL_gl_h = yes; then
33174
33175             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33176 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33177 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33178   echo $ECHO_N "(cached) $ECHO_C" >&6
33179 else
33180   cat >conftest.$ac_ext <<_ACEOF
33181 /* confdefs.h.  */
33182 _ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h.  */
33186
33187
33188 #include <GL/glu.h>
33189 _ACEOF
33190 rm -f conftest.$ac_objext
33191 if { (ac_try="$ac_compile"
33192 case "(($ac_try" in
33193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33194   *) ac_try_echo=$ac_try;;
33195 esac
33196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197   (eval "$ac_compile") 2>conftest.er1
33198   ac_status=$?
33199   grep -v '^ *+' conftest.er1 >conftest.err
33200   rm -f conftest.er1
33201   cat conftest.err >&5
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); } && {
33204          test -z "$ac_c_werror_flag" ||
33205          test ! -s conftest.err
33206        } && test -s conftest.$ac_objext; then
33207   ac_cv_header_GL_glu_h=yes
33208 else
33209   echo "$as_me: failed program was:" >&5
33210 sed 's/^/| /' conftest.$ac_ext >&5
33211
33212         ac_cv_header_GL_glu_h=no
33213 fi
33214
33215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33216 fi
33217 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33218 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33219 if test $ac_cv_header_GL_glu_h = yes; then
33220
33221                 found_gl=0
33222
33223                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33224 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33225
33226   ac_find_libraries=
33227   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33228   do
33229     for ac_extension in a so sl dylib dll.a; do
33230       if test -f "$ac_dir/libGL.$ac_extension"; then
33231         ac_find_libraries=$ac_dir
33232         break 2
33233       fi
33234     done
33235   done
33236
33237                 if test "$ac_find_libraries" != "" ; then
33238                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33239 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33240
33241
33242     if test "$ac_find_libraries" = "default location"; then
33243     ac_path_to_link=""
33244   else
33245     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33246     result=$?
33247     if test $result = 0; then
33248       ac_path_to_link=""
33249     else
33250       ac_path_to_link=" -L$ac_find_libraries"
33251     fi
33252   fi
33253
33254                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33255                         LDFLAGS_GL="$ac_path_to_link"
33256                     fi
33257
33258                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33259 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33260
33261   ac_find_libraries=
33262   for ac_dir in $SEARCH_LIB;
33263   do
33264     for ac_extension in a so sl dylib dll.a; do
33265       if test -f "$ac_dir/libGLU.$ac_extension"; then
33266         ac_find_libraries=$ac_dir
33267         break 2
33268       fi
33269     done
33270   done
33271
33272                     if test "$ac_find_libraries" != "" ; then
33273
33274     if test "$ac_find_libraries" = "default location"; then
33275     ac_path_to_link=""
33276   else
33277     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33278     result=$?
33279     if test $result = 0; then
33280       ac_path_to_link=""
33281     else
33282       ac_path_to_link=" -L$ac_find_libraries"
33283     fi
33284   fi
33285
33286                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33287                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33288                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33289                         fi
33290
33291                         found_gl=1
33292                         OPENGL_LIBS="-lGL -lGLU"
33293                         { echo "$as_me:$LINENO: result: yes" >&5
33294 echo "${ECHO_T}yes" >&6; }
33295                     else
33296                         { echo "$as_me:$LINENO: result: no" >&5
33297 echo "${ECHO_T}no" >&6; }
33298                     fi
33299                 else
33300                     { echo "$as_me:$LINENO: result: no" >&5
33301 echo "${ECHO_T}no" >&6; }
33302                 fi
33303
33304                 if test "$found_gl" != 1; then
33305                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33306 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33307
33308   ac_find_libraries=
33309   for ac_dir in $SEARCH_LIB;
33310   do
33311     for ac_extension in a so sl dylib dll.a; do
33312       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33313         ac_find_libraries=$ac_dir
33314         break 2
33315       fi
33316     done
33317   done
33318
33319                     if test "$ac_find_libraries" != "" ; then
33320
33321     if test "$ac_find_libraries" = "default location"; then
33322     ac_path_to_link=""
33323   else
33324     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33325     result=$?
33326     if test $result = 0; then
33327       ac_path_to_link=""
33328     else
33329       ac_path_to_link=" -L$ac_find_libraries"
33330     fi
33331   fi
33332
33333                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33334                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33335                         { echo "$as_me:$LINENO: result: yes" >&5
33336 echo "${ECHO_T}yes" >&6; }
33337                     else
33338                         { echo "$as_me:$LINENO: result: no" >&5
33339 echo "${ECHO_T}no" >&6; }
33340                     fi
33341                 fi
33342
33343 fi
33344
33345
33346
33347 fi
33348
33349
33350
33351         if test "x$OPENGL_LIBS" = "x"; then
33352             if test "$wxUSE_OPENGL" = "yes"; then
33353                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33354 echo "$as_me: error: OpenGL libraries not available" >&2;}
33355    { (exit 1); exit 1; }; }
33356             else
33357                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33358 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33359                 wxUSE_OPENGL=no
33360                 USE_OPENGL=0
33361             fi
33362         else
33363                         wxUSE_OPENGL=yes
33364         fi
33365     else
33366         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33367 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33368         wxUSE_OPENGL="no"
33369     fi
33370
33371     if test "$wxUSE_OPENGL" = "yes"; then
33372         USE_OPENGL=1
33373         cat >>confdefs.h <<\_ACEOF
33374 #define wxUSE_OPENGL 1
33375 _ACEOF
33376
33377         cat >>confdefs.h <<\_ACEOF
33378 #define wxUSE_GLCANVAS 1
33379 _ACEOF
33380
33381         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33382     fi
33383 fi
33384
33385
33386 if test -n "$TOOLKIT" ; then
33387     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33388 fi
33389
33390
33391
33392 if test "$wxUSE_SHARED" = "yes"; then
33393     case "${host}" in
33394       *-pc-msdosdjgpp )
33395                 wxUSE_SHARED=no
33396         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33397 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33398       ;;
33399     esac
33400 fi
33401
33402 if test "$wxUSE_SHARED" = "yes"; then
33403
33404
33405     case "${host}" in
33406         *-*-cygwin* | *-*-mingw* )
33407                                                                                                 wx_cv_version_script=no
33408             ;;
33409
33410         *)
33411             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33412 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33413 if test "${wx_cv_version_script+set}" = set; then
33414   echo $ECHO_N "(cached) $ECHO_C" >&6
33415 else
33416
33417                 echo "VER_1 { *; };" >conftest.sym
33418                 echo "int main() { return 0; }" >conftest.cpp
33419
33420                 if { ac_try='
33421                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33422                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33424   (eval $ac_try) 2>&5
33425   ac_status=$?
33426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427   (exit $ac_status); }; } ; then
33428                   if test -s conftest.stderr ; then
33429                       wx_cv_version_script=no
33430                   else
33431                       wx_cv_version_script=yes
33432                   fi
33433                 else
33434                   wx_cv_version_script=no
33435                 fi
33436
33437                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33438                 then
33439                   echo "struct B { virtual ~B() { } }; \
33440                         struct D : public B { }; \
33441                         void F() { D d; }" > conftest.cpp
33442
33443                   if { ac_try='
33444                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33445                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33447   (eval $ac_try) 2>&5
33448   ac_status=$?
33449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450   (exit $ac_status); }; } &&
33451                      { ac_try='
33452                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33453                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33455   (eval $ac_try) 2>&5
33456   ac_status=$?
33457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458   (exit $ac_status); }; }
33459                   then
33460                     if { ac_try='
33461                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33462                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33464   (eval $ac_try) 2>&5
33465   ac_status=$?
33466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); }; }
33468                     then
33469                       wx_cv_version_script=yes
33470                     else
33471                       wx_cv_version_script=no
33472                     fi
33473                   fi
33474                 fi
33475
33476                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33477                 rm -f conftest1.output conftest2.output conftest3.output
33478
33479 fi
33480 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33481 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33482
33483             if test $wx_cv_version_script = yes ; then
33484                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33485             fi
33486             ;;
33487     esac
33488
33489
33490             if test "$wxUSE_VISIBILITY" != "no"; then
33491
33492
33493   if test -n "$GCC"; then
33494     CFLAGS_VISIBILITY="-fvisibility=hidden"
33495     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33496     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33497 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33498     if test "${wx_cv_cc_visibility+set}" = set; then
33499   echo $ECHO_N "(cached) $ECHO_C" >&6
33500 else
33501
33502       wx_save_CXXFLAGS="$CXXFLAGS"
33503       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33504       ac_ext=cpp
33505 ac_cpp='$CXXCPP $CPPFLAGS'
33506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33509
33510       cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516
33517          /* we need gcc >= 4.0, older versions with visibility support
33518             didn't have class visibility: */
33519          #if defined(__GNUC__) && __GNUC__ < 4
33520          error this gcc is too old;
33521          #endif
33522
33523          /* visibility only makes sense for ELF shared libs: */
33524          #if !defined(__ELF__) && !defined(__APPLE__)
33525          error this platform has no visibility;
33526          #endif
33527
33528          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33529          extern __attribute__((__visibility__("default"))) int exportedvar;
33530          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33531          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33532          class __attribute__((__visibility__("default"))) Foo {
33533            Foo() {}
33534          };
33535
33536 int
33537 main ()
33538 {
33539
33540   ;
33541   return 0;
33542 }
33543 _ACEOF
33544 rm -f conftest.$ac_objext
33545 if { (ac_try="$ac_compile"
33546 case "(($ac_try" in
33547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548   *) ac_try_echo=$ac_try;;
33549 esac
33550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551   (eval "$ac_compile") 2>conftest.er1
33552   ac_status=$?
33553   grep -v '^ *+' conftest.er1 >conftest.err
33554   rm -f conftest.er1
33555   cat conftest.err >&5
33556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557   (exit $ac_status); } && {
33558          test -z "$ac_cxx_werror_flag" ||
33559          test ! -s conftest.err
33560        } && test -s conftest.$ac_objext; then
33561   wx_cv_cc_visibility=yes
33562 else
33563   echo "$as_me: failed program was:" >&5
33564 sed 's/^/| /' conftest.$ac_ext >&5
33565
33566         wx_cv_cc_visibility=no
33567 fi
33568
33569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33570       ac_ext=c
33571 ac_cpp='$CPP $CPPFLAGS'
33572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33575
33576       CXXFLAGS="$wx_save_CXXFLAGS"
33577 fi
33578
33579     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33580 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33581     if test $wx_cv_cc_visibility = yes; then
33582                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33583 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33584       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33585   echo $ECHO_N "(cached) $ECHO_C" >&6
33586 else
33587
33588         wx_save_CXXFLAGS="$CXXFLAGS"
33589         wx_save_LDFLAGS="$LDFLAGS"
33590         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33591         LDFLAGS="$LDFLAGS -shared -fPIC"
33592         ac_ext=cpp
33593 ac_cpp='$CXXCPP $CPPFLAGS'
33594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33597
33598         cat >conftest.$ac_ext <<_ACEOF
33599 /* confdefs.h.  */
33600 _ACEOF
33601 cat confdefs.h >>conftest.$ac_ext
33602 cat >>conftest.$ac_ext <<_ACEOF
33603 /* end confdefs.h.  */
33604
33605             #include <string>
33606
33607 int
33608 main ()
33609 {
33610
33611             std::string s("hello");
33612             return s.length();
33613
33614   ;
33615   return 0;
33616 }
33617 _ACEOF
33618 rm -f conftest.$ac_objext conftest$ac_exeext
33619 if { (ac_try="$ac_link"
33620 case "(($ac_try" in
33621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622   *) ac_try_echo=$ac_try;;
33623 esac
33624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625   (eval "$ac_link") 2>conftest.er1
33626   ac_status=$?
33627   grep -v '^ *+' conftest.er1 >conftest.err
33628   rm -f conftest.er1
33629   cat conftest.err >&5
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); } && {
33632          test -z "$ac_cxx_werror_flag" ||
33633          test ! -s conftest.err
33634        } && test -s conftest$ac_exeext &&
33635        $as_test_x conftest$ac_exeext; then
33636   wx_cv_cc_broken_libstdcxx_visibility=no
33637 else
33638   echo "$as_me: failed program was:" >&5
33639 sed 's/^/| /' conftest.$ac_ext >&5
33640
33641         wx_cv_cc_broken_libstdcxx_visibility=yes
33642 fi
33643
33644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33645       conftest$ac_exeext conftest.$ac_ext
33646         ac_ext=c
33647 ac_cpp='$CPP $CPPFLAGS'
33648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33651
33652         CXXFLAGS="$wx_save_CXXFLAGS"
33653         LDFLAGS="$wx_save_LDFLAGS"
33654 fi
33655
33656       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33657 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33658
33659       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33660         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33661 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33662         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33663   echo $ECHO_N "(cached) $ECHO_C" >&6
33664 else
33665
33666           ac_ext=cpp
33667 ac_cpp='$CXXCPP $CPPFLAGS'
33668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33671
33672           cat >conftest.$ac_ext <<_ACEOF
33673 /* confdefs.h.  */
33674 _ACEOF
33675 cat confdefs.h >>conftest.$ac_ext
33676 cat >>conftest.$ac_ext <<_ACEOF
33677 /* end confdefs.h.  */
33678
33679               #pragma GCC visibility push(default)
33680               #include <string>
33681               #pragma GCC visibility pop
33682
33683 int
33684 main ()
33685 {
33686
33687               std::string s("hello");
33688               return s.length();
33689
33690   ;
33691   return 0;
33692 }
33693 _ACEOF
33694 rm -f conftest.$ac_objext conftest$ac_exeext
33695 if { (ac_try="$ac_link"
33696 case "(($ac_try" in
33697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698   *) ac_try_echo=$ac_try;;
33699 esac
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701   (eval "$ac_link") 2>conftest.er1
33702   ac_status=$?
33703   grep -v '^ *+' conftest.er1 >conftest.err
33704   rm -f conftest.er1
33705   cat conftest.err >&5
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); } && {
33708          test -z "$ac_cxx_werror_flag" ||
33709          test ! -s conftest.err
33710        } && test -s conftest$ac_exeext &&
33711        $as_test_x conftest$ac_exeext; then
33712   wx_cv_cc_visibility_workaround=no
33713 else
33714   echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33716
33717         wx_cv_cc_visibility_workaround=yes
33718 fi
33719
33720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33721       conftest$ac_exeext conftest.$ac_ext
33722           ac_ext=c
33723 ac_cpp='$CPP $CPPFLAGS'
33724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33727
33728
33729 fi
33730
33731         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33732 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33733
33734         if test $wx_cv_cc_visibility_workaround = no; then
33735                     wx_cv_cc_visibility=no
33736         fi
33737       fi
33738     fi
33739
33740     if test $wx_cv_cc_visibility = yes; then
33741       cat >>confdefs.h <<\_ACEOF
33742 #define HAVE_VISIBILITY 1
33743 _ACEOF
33744
33745       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33746         cat >>confdefs.h <<\_ACEOF
33747 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33748 _ACEOF
33749
33750       fi
33751     else
33752       CFLAGS_VISIBILITY=""
33753       CXXFLAGS_VISIBILITY=""
33754     fi
33755
33756
33757   fi
33758
33759     fi
33760
33761         if test "x$SUNCXX" = xyes; then
33762         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33763         WXCONFIG_RPATH="-R\$libdir"
33764     else
33765     case "${host}" in
33766       *-*-linux* | *-*-gnu* )
33767         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33768         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33769         ;;
33770
33771       *-*-solaris2* )
33772
33773                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33774
33775                         saveLdflags="$LDFLAGS"
33776         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33777         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33778 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33779         cat >conftest.$ac_ext <<_ACEOF
33780 /* confdefs.h.  */
33781 _ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h.  */
33785
33786 int
33787 main ()
33788 {
33789
33790   ;
33791   return 0;
33792 }
33793 _ACEOF
33794 rm -f conftest.$ac_objext conftest$ac_exeext
33795 if { (ac_try="$ac_link"
33796 case "(($ac_try" in
33797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33798   *) ac_try_echo=$ac_try;;
33799 esac
33800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33801   (eval "$ac_link") 2>conftest.er1
33802   ac_status=$?
33803   grep -v '^ *+' conftest.er1 >conftest.err
33804   rm -f conftest.er1
33805   cat conftest.err >&5
33806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807   (exit $ac_status); } && {
33808          test -z "$ac_c_werror_flag" ||
33809          test ! -s conftest.err
33810        } && test -s conftest$ac_exeext &&
33811        $as_test_x conftest$ac_exeext; then
33812
33813                 { echo "$as_me:$LINENO: result: yes" >&5
33814 echo "${ECHO_T}yes" >&6; }
33815                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33816                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33817
33818 else
33819   echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33821
33822
33823                 { echo "$as_me:$LINENO: result: no" >&5
33824 echo "${ECHO_T}no" >&6; }
33825                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33826 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33827                 LDFLAGS="$saveLdflags -Wl,-R,/"
33828                 cat >conftest.$ac_ext <<_ACEOF
33829 /* confdefs.h.  */
33830 _ACEOF
33831 cat confdefs.h >>conftest.$ac_ext
33832 cat >>conftest.$ac_ext <<_ACEOF
33833 /* end confdefs.h.  */
33834
33835 int
33836 main ()
33837 {
33838
33839   ;
33840   return 0;
33841 }
33842 _ACEOF
33843 rm -f conftest.$ac_objext conftest$ac_exeext
33844 if { (ac_try="$ac_link"
33845 case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850   (eval "$ac_link") 2>conftest.er1
33851   ac_status=$?
33852   grep -v '^ *+' conftest.er1 >conftest.err
33853   rm -f conftest.er1
33854   cat conftest.err >&5
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); } && {
33857          test -z "$ac_c_werror_flag" ||
33858          test ! -s conftest.err
33859        } && test -s conftest$ac_exeext &&
33860        $as_test_x conftest$ac_exeext; then
33861
33862                         { echo "$as_me:$LINENO: result: yes" >&5
33863 echo "${ECHO_T}yes" >&6; }
33864                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33865                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33866
33867 else
33868   echo "$as_me: failed program was:" >&5
33869 sed 's/^/| /' conftest.$ac_ext >&5
33870
33871
33872                         { echo "$as_me:$LINENO: result: no" >&5
33873 echo "${ECHO_T}no" >&6; }
33874
33875 fi
33876
33877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33878       conftest$ac_exeext conftest.$ac_ext
33879
33880 fi
33881
33882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33883       conftest$ac_exeext conftest.$ac_ext
33884         LDFLAGS="$saveLdflags"
33885       ;;
33886
33887       *-*-darwin* )
33888         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
33889         if test "$install_name_tool" -a -x "$install_name_tool"; then
33890             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33891             cat <<EOF >change-install-names
33892 #!/bin/sh
33893 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33894 inst_cmd="${HOST_PREFIX}install_name_tool "
33895 for i in \${libnames} ; do
33896     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33897 done
33898 \${inst_cmd} \${3}
33899 EOF
33900             chmod +x change-install-names
33901         fi
33902
33903                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
33904       ;;
33905
33906       *-*-cygwin* | *-*-mingw32* )
33907         ;;
33908
33909       *-*-hpux* )
33910         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33911         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33912         ;;
33913
33914     esac
33915     fi
33916
33917             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33918
33919     if test $wxUSE_RPATH = "no"; then
33920         SAMPLES_RPATH_FLAG=''
33921         SAMPLES_RPATH_POSTLINK=''
33922         WXCONFIG_RPATH=''
33923     fi
33924
33925     SHARED=1
33926
33927 else
33928
33929     config_linkage_component="-static"
33930     SHARED=0
33931
33932 fi
33933
33934
33935 UNICODE=0
33936 lib_unicode_suffix=
33937 WX_CHARTYPE="ansi"
33938 if test "$wxUSE_UNICODE" = "yes"; then
33939     lib_unicode_suffix=u
33940     WX_CHARTYPE="unicode"
33941     UNICODE=1
33942 fi
33943
33944 lib_debug_suffix=
33945 WX_DEBUGTYPE="release"
33946 DEBUG_FLAG=0
33947 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33948     lib_debug_suffix=d
33949     WX_DEBUGTYPE="debug"
33950     DEBUG_FLAG=1
33951 fi
33952
33953 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33954 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33955
33956 DEBUG_INFO=0
33957 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33958     DEBUG_INFO=1
33959 fi
33960
33961 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33962
33963 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33964
33965 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33966
33967 if test "$cross_compiling" = "yes"; then
33968     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33969     TOOLCHAIN_FULLNAME="$HOST_PREFIX$TOOLCHAIN_FULLNAME"
33970 fi
33971
33972
33973 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33974     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33975 else
33976     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33977 fi
33978 if test "${TOOLKIT_DIR}" = "os2"; then
33979     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33980 else
33981     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33982 fi
33983
33984
33985
33986 if test "$wxUSE_COCOA" = 1; then
33987
33988     ac_ext=c
33989 ac_cpp='$CPP $CPPFLAGS'
33990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33993
33994 ac_ext=m
33995
33996     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33997 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33998     cat >conftest.$ac_ext <<_ACEOF
33999 /* confdefs.h.  */
34000 _ACEOF
34001 cat confdefs.h >>conftest.$ac_ext
34002 cat >>conftest.$ac_ext <<_ACEOF
34003 /* end confdefs.h.  */
34004 #include <AppKit/NSEvent.h>
34005 #include <CoreFoundation/CoreFoundation.h>
34006
34007 int
34008 main ()
34009 {
34010
34011   ;
34012   return 0;
34013 }
34014 _ACEOF
34015 rm -f conftest.$ac_objext
34016 if { (ac_try="$ac_compile"
34017 case "(($ac_try" in
34018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019   *) ac_try_echo=$ac_try;;
34020 esac
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022   (eval "$ac_compile") 2>conftest.er1
34023   ac_status=$?
34024   grep -v '^ *+' conftest.er1 >conftest.err
34025   rm -f conftest.er1
34026   cat conftest.err >&5
34027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028   (exit $ac_status); } && {
34029          test -z "$ac_c_werror_flag" ||
34030          test ! -s conftest.err
34031        } && test -s conftest.$ac_objext; then
34032   { echo "$as_me:$LINENO: result: no" >&5
34033 echo "${ECHO_T}no" >&6; }
34034 else
34035   echo "$as_me: failed program was:" >&5
34036 sed 's/^/| /' conftest.$ac_ext >&5
34037
34038         { echo "$as_me:$LINENO: result: yes" >&5
34039 echo "${ECHO_T}yes" >&6; }
34040         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34041 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34042         cat >conftest.$ac_ext <<_ACEOF
34043 /* confdefs.h.  */
34044 _ACEOF
34045 cat confdefs.h >>conftest.$ac_ext
34046 cat >>conftest.$ac_ext <<_ACEOF
34047 /* end confdefs.h.  */
34048 #define __Point__ 1
34049 #include <AppKit/NSEvent.h>
34050 #include <CoreFoundation/CoreFoundation.h>
34051
34052 int
34053 main ()
34054 {
34055
34056   ;
34057   return 0;
34058 }
34059 _ACEOF
34060 rm -f conftest.$ac_objext
34061 if { (ac_try="$ac_compile"
34062 case "(($ac_try" in
34063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064   *) ac_try_echo=$ac_try;;
34065 esac
34066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34067   (eval "$ac_compile") 2>conftest.er1
34068   ac_status=$?
34069   grep -v '^ *+' conftest.er1 >conftest.err
34070   rm -f conftest.er1
34071   cat conftest.err >&5
34072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073   (exit $ac_status); } && {
34074          test -z "$ac_c_werror_flag" ||
34075          test ! -s conftest.err
34076        } && test -s conftest.$ac_objext; then
34077   { echo "$as_me:$LINENO: result: yes" >&5
34078 echo "${ECHO_T}yes" >&6; }
34079             cat >>confdefs.h <<\_ACEOF
34080 #define __Point__ 1
34081 _ACEOF
34082
34083
34084 else
34085   echo "$as_me: failed program was:" >&5
34086 sed 's/^/| /' conftest.$ac_ext >&5
34087
34088         { { echo "$as_me:$LINENO: error: no
34089 See \`config.log' for more details." >&5
34090 echo "$as_me: error: no
34091 See \`config.log' for more details." >&2;}
34092    { (exit 1); exit 1; }; }
34093
34094 fi
34095
34096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34097
34098 fi
34099
34100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101     ac_ext=c
34102 ac_cpp='$CPP $CPPFLAGS'
34103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34106
34107 fi
34108
34109
34110 { echo "$as_me:$LINENO: checking for mode_t" >&5
34111 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34112 if test "${ac_cv_type_mode_t+set}" = set; then
34113   echo $ECHO_N "(cached) $ECHO_C" >&6
34114 else
34115   cat >conftest.$ac_ext <<_ACEOF
34116 /* confdefs.h.  */
34117 _ACEOF
34118 cat confdefs.h >>conftest.$ac_ext
34119 cat >>conftest.$ac_ext <<_ACEOF
34120 /* end confdefs.h.  */
34121 $ac_includes_default
34122 typedef mode_t ac__type_new_;
34123 int
34124 main ()
34125 {
34126 if ((ac__type_new_ *) 0)
34127   return 0;
34128 if (sizeof (ac__type_new_))
34129   return 0;
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_c_werror_flag" ||
34149          test ! -s conftest.err
34150        } && test -s conftest.$ac_objext; then
34151   ac_cv_type_mode_t=yes
34152 else
34153   echo "$as_me: failed program was:" >&5
34154 sed 's/^/| /' conftest.$ac_ext >&5
34155
34156         ac_cv_type_mode_t=no
34157 fi
34158
34159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34160 fi
34161 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34162 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34163 if test $ac_cv_type_mode_t = yes; then
34164   :
34165 else
34166
34167 cat >>confdefs.h <<_ACEOF
34168 #define mode_t int
34169 _ACEOF
34170
34171 fi
34172
34173 { echo "$as_me:$LINENO: checking for off_t" >&5
34174 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34175 if test "${ac_cv_type_off_t+set}" = set; then
34176   echo $ECHO_N "(cached) $ECHO_C" >&6
34177 else
34178   cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184 $ac_includes_default
34185 typedef off_t ac__type_new_;
34186 int
34187 main ()
34188 {
34189 if ((ac__type_new_ *) 0)
34190   return 0;
34191 if (sizeof (ac__type_new_))
34192   return 0;
34193   ;
34194   return 0;
34195 }
34196 _ACEOF
34197 rm -f conftest.$ac_objext
34198 if { (ac_try="$ac_compile"
34199 case "(($ac_try" in
34200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201   *) ac_try_echo=$ac_try;;
34202 esac
34203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204   (eval "$ac_compile") 2>conftest.er1
34205   ac_status=$?
34206   grep -v '^ *+' conftest.er1 >conftest.err
34207   rm -f conftest.er1
34208   cat conftest.err >&5
34209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210   (exit $ac_status); } && {
34211          test -z "$ac_c_werror_flag" ||
34212          test ! -s conftest.err
34213        } && test -s conftest.$ac_objext; then
34214   ac_cv_type_off_t=yes
34215 else
34216   echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34218
34219         ac_cv_type_off_t=no
34220 fi
34221
34222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34223 fi
34224 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34225 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34226 if test $ac_cv_type_off_t = yes; then
34227   :
34228 else
34229
34230 cat >>confdefs.h <<_ACEOF
34231 #define off_t long int
34232 _ACEOF
34233
34234 fi
34235
34236 { echo "$as_me:$LINENO: checking for pid_t" >&5
34237 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34238 if test "${ac_cv_type_pid_t+set}" = set; then
34239   echo $ECHO_N "(cached) $ECHO_C" >&6
34240 else
34241   cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h.  */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h.  */
34247 $ac_includes_default
34248 typedef pid_t ac__type_new_;
34249 int
34250 main ()
34251 {
34252 if ((ac__type_new_ *) 0)
34253   return 0;
34254 if (sizeof (ac__type_new_))
34255   return 0;
34256   ;
34257   return 0;
34258 }
34259 _ACEOF
34260 rm -f conftest.$ac_objext
34261 if { (ac_try="$ac_compile"
34262 case "(($ac_try" in
34263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34264   *) ac_try_echo=$ac_try;;
34265 esac
34266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34267   (eval "$ac_compile") 2>conftest.er1
34268   ac_status=$?
34269   grep -v '^ *+' conftest.er1 >conftest.err
34270   rm -f conftest.er1
34271   cat conftest.err >&5
34272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); } && {
34274          test -z "$ac_c_werror_flag" ||
34275          test ! -s conftest.err
34276        } && test -s conftest.$ac_objext; then
34277   ac_cv_type_pid_t=yes
34278 else
34279   echo "$as_me: failed program was:" >&5
34280 sed 's/^/| /' conftest.$ac_ext >&5
34281
34282         ac_cv_type_pid_t=no
34283 fi
34284
34285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34286 fi
34287 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34288 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34289 if test $ac_cv_type_pid_t = yes; then
34290   :
34291 else
34292
34293 cat >>confdefs.h <<_ACEOF
34294 #define pid_t int
34295 _ACEOF
34296
34297 fi
34298
34299 { echo "$as_me:$LINENO: checking for size_t" >&5
34300 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34301 if test "${ac_cv_type_size_t+set}" = set; then
34302   echo $ECHO_N "(cached) $ECHO_C" >&6
34303 else
34304   cat >conftest.$ac_ext <<_ACEOF
34305 /* confdefs.h.  */
34306 _ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h.  */
34310 $ac_includes_default
34311 typedef size_t ac__type_new_;
34312 int
34313 main ()
34314 {
34315 if ((ac__type_new_ *) 0)
34316   return 0;
34317 if (sizeof (ac__type_new_))
34318   return 0;
34319   ;
34320   return 0;
34321 }
34322 _ACEOF
34323 rm -f conftest.$ac_objext
34324 if { (ac_try="$ac_compile"
34325 case "(($ac_try" in
34326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34327   *) ac_try_echo=$ac_try;;
34328 esac
34329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34330   (eval "$ac_compile") 2>conftest.er1
34331   ac_status=$?
34332   grep -v '^ *+' conftest.er1 >conftest.err
34333   rm -f conftest.er1
34334   cat conftest.err >&5
34335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336   (exit $ac_status); } && {
34337          test -z "$ac_c_werror_flag" ||
34338          test ! -s conftest.err
34339        } && test -s conftest.$ac_objext; then
34340   ac_cv_type_size_t=yes
34341 else
34342   echo "$as_me: failed program was:" >&5
34343 sed 's/^/| /' conftest.$ac_ext >&5
34344
34345         ac_cv_type_size_t=no
34346 fi
34347
34348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34349 fi
34350 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34351 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34352 if test $ac_cv_type_size_t = yes; then
34353   :
34354 else
34355
34356 cat >>confdefs.h <<_ACEOF
34357 #define size_t unsigned int
34358 _ACEOF
34359
34360 fi
34361
34362
34363 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34364 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34365 if test "${ac_cv_type_ssize_t+set}" = set; then
34366   echo $ECHO_N "(cached) $ECHO_C" >&6
34367 else
34368   cat >conftest.$ac_ext <<_ACEOF
34369 /* confdefs.h.  */
34370 _ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h.  */
34374 $ac_includes_default
34375 typedef ssize_t ac__type_new_;
34376 int
34377 main ()
34378 {
34379 if ((ac__type_new_ *) 0)
34380   return 0;
34381 if (sizeof (ac__type_new_))
34382   return 0;
34383   ;
34384   return 0;
34385 }
34386 _ACEOF
34387 rm -f conftest.$ac_objext
34388 if { (ac_try="$ac_compile"
34389 case "(($ac_try" in
34390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34391   *) ac_try_echo=$ac_try;;
34392 esac
34393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34394   (eval "$ac_compile") 2>conftest.er1
34395   ac_status=$?
34396   grep -v '^ *+' conftest.er1 >conftest.err
34397   rm -f conftest.er1
34398   cat conftest.err >&5
34399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400   (exit $ac_status); } && {
34401          test -z "$ac_c_werror_flag" ||
34402          test ! -s conftest.err
34403        } && test -s conftest.$ac_objext; then
34404   ac_cv_type_ssize_t=yes
34405 else
34406   echo "$as_me: failed program was:" >&5
34407 sed 's/^/| /' conftest.$ac_ext >&5
34408
34409         ac_cv_type_ssize_t=no
34410 fi
34411
34412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34413 fi
34414 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34415 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34416 if test $ac_cv_type_ssize_t = yes; then
34417
34418 cat >>confdefs.h <<_ACEOF
34419 #define HAVE_SSIZE_T 1
34420 _ACEOF
34421
34422
34423 fi
34424
34425
34426 ac_ext=cpp
34427 ac_cpp='$CXXCPP $CPPFLAGS'
34428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34431  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34432 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34433 if test "${wx_cv_size_t_is_uint+set}" = set; then
34434   echo $ECHO_N "(cached) $ECHO_C" >&6
34435 else
34436
34437                             cat >conftest.$ac_ext <<_ACEOF
34438 /* confdefs.h.  */
34439 _ACEOF
34440 cat confdefs.h >>conftest.$ac_ext
34441 cat >>conftest.$ac_ext <<_ACEOF
34442 /* end confdefs.h.  */
34443 #include <stddef.h>
34444 int
34445 main ()
34446 {
34447
34448             return 0; }
34449
34450             struct Foo { void foo(size_t); void foo(unsigned int); };
34451
34452             int bar() {
34453
34454   ;
34455   return 0;
34456 }
34457 _ACEOF
34458 rm -f conftest.$ac_objext
34459 if { (ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
34473          test ! -s conftest.err
34474        } && test -s conftest.$ac_objext; then
34475   wx_cv_size_t_is_uint=no
34476 else
34477   echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34479
34480         wx_cv_size_t_is_uint=yes
34481
34482 fi
34483
34484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34485
34486
34487 fi
34488 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34489 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34490
34491 if test "$wx_cv_size_t_is_uint" = "yes"; then
34492     cat >>confdefs.h <<\_ACEOF
34493 #define wxSIZE_T_IS_UINT 1
34494 _ACEOF
34495
34496 else
34497     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34498 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34499 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34500   echo $ECHO_N "(cached) $ECHO_C" >&6
34501 else
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 #include <stddef.h>
34509 int
34510 main ()
34511 {
34512
34513                 return 0; }
34514
34515                 struct Foo { void foo(size_t); void foo(unsigned long); };
34516
34517                 int bar() {
34518
34519   ;
34520   return 0;
34521 }
34522 _ACEOF
34523 rm -f conftest.$ac_objext
34524 if { (ac_try="$ac_compile"
34525 case "(($ac_try" in
34526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527   *) ac_try_echo=$ac_try;;
34528 esac
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530   (eval "$ac_compile") 2>conftest.er1
34531   ac_status=$?
34532   grep -v '^ *+' conftest.er1 >conftest.err
34533   rm -f conftest.er1
34534   cat conftest.err >&5
34535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536   (exit $ac_status); } && {
34537          test -z "$ac_cxx_werror_flag" ||
34538          test ! -s conftest.err
34539        } && test -s conftest.$ac_objext; then
34540   wx_cv_size_t_is_ulong=no
34541 else
34542   echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34544
34545         wx_cv_size_t_is_ulong=yes
34546
34547 fi
34548
34549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34550
34551 fi
34552 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34553 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34554
34555     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34556         cat >>confdefs.h <<\_ACEOF
34557 #define wxSIZE_T_IS_ULONG 1
34558 _ACEOF
34559
34560     fi
34561 fi
34562
34563 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34564 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34565 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34566   echo $ECHO_N "(cached) $ECHO_C" >&6
34567 else
34568   cat >conftest.$ac_ext <<_ACEOF
34569 /* confdefs.h.  */
34570 _ACEOF
34571 cat confdefs.h >>conftest.$ac_ext
34572 cat >>conftest.$ac_ext <<_ACEOF
34573 /* end confdefs.h.  */
34574 #include <wchar.h>
34575 int
34576 main ()
34577 {
34578
34579             return 0; }
34580
34581             struct Foo { void foo(wchar_t);
34582                          void foo(unsigned short);
34583                          void foo(unsigned int);
34584                          void foo(unsigned long); };
34585
34586             int bar() {
34587
34588   ;
34589   return 0;
34590 }
34591 _ACEOF
34592 rm -f conftest.$ac_objext
34593 if { (ac_try="$ac_compile"
34594 case "(($ac_try" in
34595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34596   *) ac_try_echo=$ac_try;;
34597 esac
34598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34599   (eval "$ac_compile") 2>conftest.er1
34600   ac_status=$?
34601   grep -v '^ *+' conftest.er1 >conftest.err
34602   rm -f conftest.er1
34603   cat conftest.err >&5
34604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605   (exit $ac_status); } && {
34606          test -z "$ac_cxx_werror_flag" ||
34607          test ! -s conftest.err
34608        } && test -s conftest.$ac_objext; then
34609   wx_cv_wchar_t_is_separate_type=yes
34610 else
34611   echo "$as_me: failed program was:" >&5
34612 sed 's/^/| /' conftest.$ac_ext >&5
34613
34614         wx_cv_wchar_t_is_separate_type=no
34615
34616 fi
34617
34618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34619
34620 fi
34621 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34622 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34623
34624 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34625     cat >>confdefs.h <<\_ACEOF
34626 #define wxWCHAR_T_IS_REAL_TYPE 1
34627 _ACEOF
34628
34629 else
34630     cat >>confdefs.h <<\_ACEOF
34631 #define wxWCHAR_T_IS_REAL_TYPE 0
34632 _ACEOF
34633
34634 fi
34635
34636 ac_ext=c
34637 ac_cpp='$CPP $CPPFLAGS'
34638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34641
34642
34643 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34644 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34645 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34646   echo $ECHO_N "(cached) $ECHO_C" >&6
34647 else
34648
34649         cat >conftest.$ac_ext <<_ACEOF
34650 /* confdefs.h.  */
34651 _ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h.  */
34655 #include <pwd.h>
34656 int
34657 main ()
34658 {
34659
34660                 char *p;
34661                 struct passwd *pw;
34662                 p = pw->pw_gecos;
34663
34664   ;
34665   return 0;
34666 }
34667 _ACEOF
34668 rm -f conftest.$ac_objext
34669 if { (ac_try="$ac_compile"
34670 case "(($ac_try" in
34671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34672   *) ac_try_echo=$ac_try;;
34673 esac
34674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34675   (eval "$ac_compile") 2>conftest.er1
34676   ac_status=$?
34677   grep -v '^ *+' conftest.er1 >conftest.err
34678   rm -f conftest.er1
34679   cat conftest.err >&5
34680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681   (exit $ac_status); } && {
34682          test -z "$ac_c_werror_flag" ||
34683          test ! -s conftest.err
34684        } && test -s conftest.$ac_objext; then
34685
34686                 wx_cv_struct_pw_gecos=yes
34687
34688 else
34689   echo "$as_me: failed program was:" >&5
34690 sed 's/^/| /' conftest.$ac_ext >&5
34691
34692
34693                 wx_cv_struct_pw_gecos=no
34694
34695
34696 fi
34697
34698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34699
34700
34701 fi
34702 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34703 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34704
34705 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34706     cat >>confdefs.h <<\_ACEOF
34707 #define HAVE_PW_GECOS 1
34708 _ACEOF
34709
34710 fi
34711
34712
34713 if test "$wxUSE_WCHAR_T" = "yes"; then
34714     cat >>confdefs.h <<\_ACEOF
34715 #define wxUSE_WCHAR_T 1
34716 _ACEOF
34717
34718
34719         WCSLEN_FOUND=0
34720     WCHAR_LINK=
34721
34722 for ac_func in wcslen
34723 do
34724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34728   echo $ECHO_N "(cached) $ECHO_C" >&6
34729 else
34730   cat >conftest.$ac_ext <<_ACEOF
34731 /* confdefs.h.  */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h.  */
34736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34738 #define $ac_func innocuous_$ac_func
34739
34740 /* System header to define __stub macros and hopefully few prototypes,
34741     which can conflict with char $ac_func (); below.
34742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34743     <limits.h> exists even on freestanding compilers.  */
34744
34745 #ifdef __STDC__
34746 # include <limits.h>
34747 #else
34748 # include <assert.h>
34749 #endif
34750
34751 #undef $ac_func
34752
34753 /* Override any GCC internal prototype to avoid an error.
34754    Use char because int might match the return type of a GCC
34755    builtin and then its argument prototype would still apply.  */
34756 #ifdef __cplusplus
34757 extern "C"
34758 #endif
34759 char $ac_func ();
34760 /* The GNU C library defines this for functions which it implements
34761     to always fail with ENOSYS.  Some functions are actually named
34762     something starting with __ and the normal name is an alias.  */
34763 #if defined __stub_$ac_func || defined __stub___$ac_func
34764 choke me
34765 #endif
34766
34767 int
34768 main ()
34769 {
34770 return $ac_func ();
34771   ;
34772   return 0;
34773 }
34774 _ACEOF
34775 rm -f conftest.$ac_objext conftest$ac_exeext
34776 if { (ac_try="$ac_link"
34777 case "(($ac_try" in
34778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34779   *) ac_try_echo=$ac_try;;
34780 esac
34781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34782   (eval "$ac_link") 2>conftest.er1
34783   ac_status=$?
34784   grep -v '^ *+' conftest.er1 >conftest.err
34785   rm -f conftest.er1
34786   cat conftest.err >&5
34787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788   (exit $ac_status); } && {
34789          test -z "$ac_c_werror_flag" ||
34790          test ! -s conftest.err
34791        } && test -s conftest$ac_exeext &&
34792        $as_test_x conftest$ac_exeext; then
34793   eval "$as_ac_var=yes"
34794 else
34795   echo "$as_me: failed program was:" >&5
34796 sed 's/^/| /' conftest.$ac_ext >&5
34797
34798         eval "$as_ac_var=no"
34799 fi
34800
34801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34802       conftest$ac_exeext conftest.$ac_ext
34803 fi
34804 ac_res=`eval echo '${'$as_ac_var'}'`
34805                { echo "$as_me:$LINENO: result: $ac_res" >&5
34806 echo "${ECHO_T}$ac_res" >&6; }
34807 if test `eval echo '${'$as_ac_var'}'` = yes; then
34808   cat >>confdefs.h <<_ACEOF
34809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34810 _ACEOF
34811  WCSLEN_FOUND=1
34812 fi
34813 done
34814
34815
34816     if test "$WCSLEN_FOUND" = 0; then
34817         if test "$TOOLKIT" = "MSW"; then
34818             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34819 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34820 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34821   echo $ECHO_N "(cached) $ECHO_C" >&6
34822 else
34823   ac_check_lib_save_LIBS=$LIBS
34824 LIBS="-lmsvcrt  $LIBS"
34825 cat >conftest.$ac_ext <<_ACEOF
34826 /* confdefs.h.  */
34827 _ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h.  */
34831
34832 /* Override any GCC internal prototype to avoid an error.
34833    Use char because int might match the return type of a GCC
34834    builtin and then its argument prototype would still apply.  */
34835 #ifdef __cplusplus
34836 extern "C"
34837 #endif
34838 char wcslen ();
34839 int
34840 main ()
34841 {
34842 return wcslen ();
34843   ;
34844   return 0;
34845 }
34846 _ACEOF
34847 rm -f conftest.$ac_objext conftest$ac_exeext
34848 if { (ac_try="$ac_link"
34849 case "(($ac_try" in
34850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34851   *) ac_try_echo=$ac_try;;
34852 esac
34853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34854   (eval "$ac_link") 2>conftest.er1
34855   ac_status=$?
34856   grep -v '^ *+' conftest.er1 >conftest.err
34857   rm -f conftest.er1
34858   cat conftest.err >&5
34859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860   (exit $ac_status); } && {
34861          test -z "$ac_c_werror_flag" ||
34862          test ! -s conftest.err
34863        } && test -s conftest$ac_exeext &&
34864        $as_test_x conftest$ac_exeext; then
34865   ac_cv_lib_msvcrt_wcslen=yes
34866 else
34867   echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34869
34870         ac_cv_lib_msvcrt_wcslen=no
34871 fi
34872
34873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34874       conftest$ac_exeext conftest.$ac_ext
34875 LIBS=$ac_check_lib_save_LIBS
34876 fi
34877 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34878 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34879 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34880   WCHAR_OK=1
34881 fi
34882
34883         else
34884             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34885 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34886 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34887   echo $ECHO_N "(cached) $ECHO_C" >&6
34888 else
34889   ac_check_lib_save_LIBS=$LIBS
34890 LIBS="-lw  $LIBS"
34891 cat >conftest.$ac_ext <<_ACEOF
34892 /* confdefs.h.  */
34893 _ACEOF
34894 cat confdefs.h >>conftest.$ac_ext
34895 cat >>conftest.$ac_ext <<_ACEOF
34896 /* end confdefs.h.  */
34897
34898 /* Override any GCC internal prototype to avoid an error.
34899    Use char because int might match the return type of a GCC
34900    builtin and then its argument prototype would still apply.  */
34901 #ifdef __cplusplus
34902 extern "C"
34903 #endif
34904 char wcslen ();
34905 int
34906 main ()
34907 {
34908 return wcslen ();
34909   ;
34910   return 0;
34911 }
34912 _ACEOF
34913 rm -f conftest.$ac_objext conftest$ac_exeext
34914 if { (ac_try="$ac_link"
34915 case "(($ac_try" in
34916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34917   *) ac_try_echo=$ac_try;;
34918 esac
34919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34920   (eval "$ac_link") 2>conftest.er1
34921   ac_status=$?
34922   grep -v '^ *+' conftest.er1 >conftest.err
34923   rm -f conftest.er1
34924   cat conftest.err >&5
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); } && {
34927          test -z "$ac_c_werror_flag" ||
34928          test ! -s conftest.err
34929        } && test -s conftest$ac_exeext &&
34930        $as_test_x conftest$ac_exeext; then
34931   ac_cv_lib_w_wcslen=yes
34932 else
34933   echo "$as_me: failed program was:" >&5
34934 sed 's/^/| /' conftest.$ac_ext >&5
34935
34936         ac_cv_lib_w_wcslen=no
34937 fi
34938
34939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34940       conftest$ac_exeext conftest.$ac_ext
34941 LIBS=$ac_check_lib_save_LIBS
34942 fi
34943 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34944 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34945 if test $ac_cv_lib_w_wcslen = yes; then
34946
34947                             WCHAR_LINK=" -lw"
34948                             WCSLEN_FOUND=1
34949
34950 fi
34951
34952         fi
34953     fi
34954
34955     if test "$WCSLEN_FOUND" = 1; then
34956         cat >>confdefs.h <<\_ACEOF
34957 #define HAVE_WCSLEN 1
34958 _ACEOF
34959
34960     fi
34961
34962
34963
34964
34965
34966
34967 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
34968 do
34969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34973   echo $ECHO_N "(cached) $ECHO_C" >&6
34974 else
34975   cat >conftest.$ac_ext <<_ACEOF
34976 /* confdefs.h.  */
34977 _ACEOF
34978 cat confdefs.h >>conftest.$ac_ext
34979 cat >>conftest.$ac_ext <<_ACEOF
34980 /* end confdefs.h.  */
34981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34983 #define $ac_func innocuous_$ac_func
34984
34985 /* System header to define __stub macros and hopefully few prototypes,
34986     which can conflict with char $ac_func (); below.
34987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34988     <limits.h> exists even on freestanding compilers.  */
34989
34990 #ifdef __STDC__
34991 # include <limits.h>
34992 #else
34993 # include <assert.h>
34994 #endif
34995
34996 #undef $ac_func
34997
34998 /* Override any GCC internal prototype to avoid an error.
34999    Use char because int might match the return type of a GCC
35000    builtin and then its argument prototype would still apply.  */
35001 #ifdef __cplusplus
35002 extern "C"
35003 #endif
35004 char $ac_func ();
35005 /* The GNU C library defines this for functions which it implements
35006     to always fail with ENOSYS.  Some functions are actually named
35007     something starting with __ and the normal name is an alias.  */
35008 #if defined __stub_$ac_func || defined __stub___$ac_func
35009 choke me
35010 #endif
35011
35012 int
35013 main ()
35014 {
35015 return $ac_func ();
35016   ;
35017   return 0;
35018 }
35019 _ACEOF
35020 rm -f conftest.$ac_objext conftest$ac_exeext
35021 if { (ac_try="$ac_link"
35022 case "(($ac_try" in
35023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35024   *) ac_try_echo=$ac_try;;
35025 esac
35026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35027   (eval "$ac_link") 2>conftest.er1
35028   ac_status=$?
35029   grep -v '^ *+' conftest.er1 >conftest.err
35030   rm -f conftest.er1
35031   cat conftest.err >&5
35032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033   (exit $ac_status); } && {
35034          test -z "$ac_c_werror_flag" ||
35035          test ! -s conftest.err
35036        } && test -s conftest$ac_exeext &&
35037        $as_test_x conftest$ac_exeext; then
35038   eval "$as_ac_var=yes"
35039 else
35040   echo "$as_me: failed program was:" >&5
35041 sed 's/^/| /' conftest.$ac_ext >&5
35042
35043         eval "$as_ac_var=no"
35044 fi
35045
35046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35047       conftest$ac_exeext conftest.$ac_ext
35048 fi
35049 ac_res=`eval echo '${'$as_ac_var'}'`
35050                { echo "$as_me:$LINENO: result: $ac_res" >&5
35051 echo "${ECHO_T}$ac_res" >&6; }
35052 if test `eval echo '${'$as_ac_var'}'` = yes; then
35053   cat >>confdefs.h <<_ACEOF
35054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35055 _ACEOF
35056
35057 fi
35058 done
35059
35060
35061                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35062         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35063     fi
35064
35065                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35066 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35067 if test "${ac_cv_type_mbstate_t+set}" = set; then
35068   echo $ECHO_N "(cached) $ECHO_C" >&6
35069 else
35070   cat >conftest.$ac_ext <<_ACEOF
35071 /* confdefs.h.  */
35072 _ACEOF
35073 cat confdefs.h >>conftest.$ac_ext
35074 cat >>conftest.$ac_ext <<_ACEOF
35075 /* end confdefs.h.  */
35076 #include <wchar.h>
35077
35078 typedef mbstate_t ac__type_new_;
35079 int
35080 main ()
35081 {
35082 if ((ac__type_new_ *) 0)
35083   return 0;
35084 if (sizeof (ac__type_new_))
35085   return 0;
35086   ;
35087   return 0;
35088 }
35089 _ACEOF
35090 rm -f conftest.$ac_objext
35091 if { (ac_try="$ac_compile"
35092 case "(($ac_try" in
35093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35094   *) ac_try_echo=$ac_try;;
35095 esac
35096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35097   (eval "$ac_compile") 2>conftest.er1
35098   ac_status=$?
35099   grep -v '^ *+' conftest.er1 >conftest.err
35100   rm -f conftest.er1
35101   cat conftest.err >&5
35102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103   (exit $ac_status); } && {
35104          test -z "$ac_c_werror_flag" ||
35105          test ! -s conftest.err
35106        } && test -s conftest.$ac_objext; then
35107   ac_cv_type_mbstate_t=yes
35108 else
35109   echo "$as_me: failed program was:" >&5
35110 sed 's/^/| /' conftest.$ac_ext >&5
35111
35112         ac_cv_type_mbstate_t=no
35113 fi
35114
35115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35116 fi
35117 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35118 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35119 if test $ac_cv_type_mbstate_t = yes; then
35120
35121 cat >>confdefs.h <<_ACEOF
35122 #define HAVE_MBSTATE_T 1
35123 _ACEOF
35124
35125
35126 for ac_func in wcsrtombs
35127 do
35128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35132   echo $ECHO_N "(cached) $ECHO_C" >&6
35133 else
35134   cat >conftest.$ac_ext <<_ACEOF
35135 /* confdefs.h.  */
35136 _ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h.  */
35140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35142 #define $ac_func innocuous_$ac_func
35143
35144 /* System header to define __stub macros and hopefully few prototypes,
35145     which can conflict with char $ac_func (); below.
35146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35147     <limits.h> exists even on freestanding compilers.  */
35148
35149 #ifdef __STDC__
35150 # include <limits.h>
35151 #else
35152 # include <assert.h>
35153 #endif
35154
35155 #undef $ac_func
35156
35157 /* Override any GCC internal prototype to avoid an error.
35158    Use char because int might match the return type of a GCC
35159    builtin and then its argument prototype would still apply.  */
35160 #ifdef __cplusplus
35161 extern "C"
35162 #endif
35163 char $ac_func ();
35164 /* The GNU C library defines this for functions which it implements
35165     to always fail with ENOSYS.  Some functions are actually named
35166     something starting with __ and the normal name is an alias.  */
35167 #if defined __stub_$ac_func || defined __stub___$ac_func
35168 choke me
35169 #endif
35170
35171 int
35172 main ()
35173 {
35174 return $ac_func ();
35175   ;
35176   return 0;
35177 }
35178 _ACEOF
35179 rm -f conftest.$ac_objext conftest$ac_exeext
35180 if { (ac_try="$ac_link"
35181 case "(($ac_try" in
35182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35183   *) ac_try_echo=$ac_try;;
35184 esac
35185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35186   (eval "$ac_link") 2>conftest.er1
35187   ac_status=$?
35188   grep -v '^ *+' conftest.er1 >conftest.err
35189   rm -f conftest.er1
35190   cat conftest.err >&5
35191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192   (exit $ac_status); } && {
35193          test -z "$ac_c_werror_flag" ||
35194          test ! -s conftest.err
35195        } && test -s conftest$ac_exeext &&
35196        $as_test_x conftest$ac_exeext; then
35197   eval "$as_ac_var=yes"
35198 else
35199   echo "$as_me: failed program was:" >&5
35200 sed 's/^/| /' conftest.$ac_ext >&5
35201
35202         eval "$as_ac_var=no"
35203 fi
35204
35205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35206       conftest$ac_exeext conftest.$ac_ext
35207 fi
35208 ac_res=`eval echo '${'$as_ac_var'}'`
35209                { echo "$as_me:$LINENO: result: $ac_res" >&5
35210 echo "${ECHO_T}$ac_res" >&6; }
35211 if test `eval echo '${'$as_ac_var'}'` = yes; then
35212   cat >>confdefs.h <<_ACEOF
35213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35214 _ACEOF
35215
35216 fi
35217 done
35218
35219 fi
35220
35221 else
35222     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35223 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35224 fi
35225
35226
35227
35228
35229 for ac_func in snprintf vsnprintf vsscanf
35230 do
35231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35235   echo $ECHO_N "(cached) $ECHO_C" >&6
35236 else
35237   cat >conftest.$ac_ext <<_ACEOF
35238 /* confdefs.h.  */
35239 _ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h.  */
35243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35245 #define $ac_func innocuous_$ac_func
35246
35247 /* System header to define __stub macros and hopefully few prototypes,
35248     which can conflict with char $ac_func (); below.
35249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35250     <limits.h> exists even on freestanding compilers.  */
35251
35252 #ifdef __STDC__
35253 # include <limits.h>
35254 #else
35255 # include <assert.h>
35256 #endif
35257
35258 #undef $ac_func
35259
35260 /* Override any GCC internal prototype to avoid an error.
35261    Use char because int might match the return type of a GCC
35262    builtin and then its argument prototype would still apply.  */
35263 #ifdef __cplusplus
35264 extern "C"
35265 #endif
35266 char $ac_func ();
35267 /* The GNU C library defines this for functions which it implements
35268     to always fail with ENOSYS.  Some functions are actually named
35269     something starting with __ and the normal name is an alias.  */
35270 #if defined __stub_$ac_func || defined __stub___$ac_func
35271 choke me
35272 #endif
35273
35274 int
35275 main ()
35276 {
35277 return $ac_func ();
35278   ;
35279   return 0;
35280 }
35281 _ACEOF
35282 rm -f conftest.$ac_objext conftest$ac_exeext
35283 if { (ac_try="$ac_link"
35284 case "(($ac_try" in
35285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35286   *) ac_try_echo=$ac_try;;
35287 esac
35288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35289   (eval "$ac_link") 2>conftest.er1
35290   ac_status=$?
35291   grep -v '^ *+' conftest.er1 >conftest.err
35292   rm -f conftest.er1
35293   cat conftest.err >&5
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); } && {
35296          test -z "$ac_c_werror_flag" ||
35297          test ! -s conftest.err
35298        } && test -s conftest$ac_exeext &&
35299        $as_test_x conftest$ac_exeext; then
35300   eval "$as_ac_var=yes"
35301 else
35302   echo "$as_me: failed program was:" >&5
35303 sed 's/^/| /' conftest.$ac_ext >&5
35304
35305         eval "$as_ac_var=no"
35306 fi
35307
35308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35309       conftest$ac_exeext conftest.$ac_ext
35310 fi
35311 ac_res=`eval echo '${'$as_ac_var'}'`
35312                { echo "$as_me:$LINENO: result: $ac_res" >&5
35313 echo "${ECHO_T}$ac_res" >&6; }
35314 if test `eval echo '${'$as_ac_var'}'` = yes; then
35315   cat >>confdefs.h <<_ACEOF
35316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35317 _ACEOF
35318
35319 fi
35320 done
35321
35322
35323 ac_ext=cpp
35324 ac_cpp='$CXXCPP $CPPFLAGS'
35325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35328
35329 if test "$ac_cv_func_vsnprintf" = "yes"; then
35330         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35331 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35332 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35333   echo $ECHO_N "(cached) $ECHO_C" >&6
35334 else
35335
35336                                                             cat >conftest.$ac_ext <<_ACEOF
35337 /* confdefs.h.  */
35338 _ACEOF
35339 cat confdefs.h >>conftest.$ac_ext
35340 cat >>conftest.$ac_ext <<_ACEOF
35341 /* end confdefs.h.  */
35342
35343                     #include <stdio.h>
35344                     #include <stdarg.h>
35345                     #ifdef __MSL__
35346                     #if __MSL__ >= 0x6000
35347                     namespace std {}
35348                     using namespace std;
35349                     #endif
35350                     #endif
35351
35352 int
35353 main ()
35354 {
35355
35356                     char *buf;
35357                     va_list ap;
35358                     vsnprintf(buf, 10u, "%s", ap);
35359
35360   ;
35361   return 0;
35362 }
35363 _ACEOF
35364 rm -f conftest.$ac_objext
35365 if { (ac_try="$ac_compile"
35366 case "(($ac_try" in
35367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35368   *) ac_try_echo=$ac_try;;
35369 esac
35370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35371   (eval "$ac_compile") 2>conftest.er1
35372   ac_status=$?
35373   grep -v '^ *+' conftest.er1 >conftest.err
35374   rm -f conftest.er1
35375   cat conftest.err >&5
35376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377   (exit $ac_status); } && {
35378          test -z "$ac_cxx_werror_flag" ||
35379          test ! -s conftest.err
35380        } && test -s conftest.$ac_objext; then
35381   wx_cv_func_vsnprintf_decl=yes
35382 else
35383   echo "$as_me: failed program was:" >&5
35384 sed 's/^/| /' conftest.$ac_ext >&5
35385
35386         wx_cv_func_vsnprintf_decl=no
35387
35388 fi
35389
35390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35391
35392
35393 fi
35394 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35395 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35396
35397     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35398         cat >>confdefs.h <<\_ACEOF
35399 #define HAVE_VSNPRINTF_DECL 1
35400 _ACEOF
35401
35402
35403                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35404 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35405 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35406   echo $ECHO_N "(cached) $ECHO_C" >&6
35407 else
35408
35409                 cat >conftest.$ac_ext <<_ACEOF
35410 /* confdefs.h.  */
35411 _ACEOF
35412 cat confdefs.h >>conftest.$ac_ext
35413 cat >>conftest.$ac_ext <<_ACEOF
35414 /* end confdefs.h.  */
35415
35416                         #include <stdio.h>
35417                         #include <stdarg.h>
35418                         #ifdef __MSL__
35419                         #if __MSL__ >= 0x6000
35420                         namespace std {}
35421                         using namespace std;
35422                         #endif
35423                         #endif
35424
35425 int
35426 main ()
35427 {
35428
35429                         char *buf;
35430                         va_list ap;
35431                         const char *fmt = "%s";
35432                         vsnprintf(buf, 10u, fmt, ap);
35433
35434   ;
35435   return 0;
35436 }
35437 _ACEOF
35438 rm -f conftest.$ac_objext
35439 if { (ac_try="$ac_compile"
35440 case "(($ac_try" in
35441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35442   *) ac_try_echo=$ac_try;;
35443 esac
35444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35445   (eval "$ac_compile") 2>conftest.er1
35446   ac_status=$?
35447   grep -v '^ *+' conftest.er1 >conftest.err
35448   rm -f conftest.er1
35449   cat conftest.err >&5
35450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451   (exit $ac_status); } && {
35452          test -z "$ac_cxx_werror_flag" ||
35453          test ! -s conftest.err
35454        } && test -s conftest.$ac_objext; then
35455   wx_cv_func_broken_vsnprintf_decl=no
35456 else
35457   echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35459
35460         wx_cv_func_broken_vsnprintf_decl=yes
35461
35462 fi
35463
35464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35465
35466
35467 fi
35468 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35469 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35470
35471         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35472             cat >>confdefs.h <<\_ACEOF
35473 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35474 _ACEOF
35475
35476         fi
35477     fi
35478 fi
35479
35480 if test "$ac_cv_func_snprintf" = "yes"; then
35481     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35482 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35483 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35484   echo $ECHO_N "(cached) $ECHO_C" >&6
35485 else
35486
35487             cat >conftest.$ac_ext <<_ACEOF
35488 /* confdefs.h.  */
35489 _ACEOF
35490 cat confdefs.h >>conftest.$ac_ext
35491 cat >>conftest.$ac_ext <<_ACEOF
35492 /* end confdefs.h.  */
35493
35494                     #include <stdio.h>
35495                     #include <stdarg.h>
35496                     #ifdef __MSL__
35497                     #if __MSL__ >= 0x6000
35498                     namespace std {}
35499                     using namespace std;
35500                     #endif
35501                     #endif
35502
35503 int
35504 main ()
35505 {
35506
35507                     char *buf;
35508                     snprintf(buf, 10u, "%s", "wx");
35509
35510   ;
35511   return 0;
35512 }
35513 _ACEOF
35514 rm -f conftest.$ac_objext
35515 if { (ac_try="$ac_compile"
35516 case "(($ac_try" in
35517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35518   *) ac_try_echo=$ac_try;;
35519 esac
35520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35521   (eval "$ac_compile") 2>conftest.er1
35522   ac_status=$?
35523   grep -v '^ *+' conftest.er1 >conftest.err
35524   rm -f conftest.er1
35525   cat conftest.err >&5
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); } && {
35528          test -z "$ac_cxx_werror_flag" ||
35529          test ! -s conftest.err
35530        } && test -s conftest.$ac_objext; then
35531   wx_cv_func_snprintf_decl=yes
35532 else
35533   echo "$as_me: failed program was:" >&5
35534 sed 's/^/| /' conftest.$ac_ext >&5
35535
35536         wx_cv_func_snprintf_decl=no
35537
35538 fi
35539
35540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35541
35542
35543 fi
35544 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35545 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35546
35547     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35548         cat >>confdefs.h <<\_ACEOF
35549 #define HAVE_SNPRINTF_DECL 1
35550 _ACEOF
35551
35552     fi
35553
35554     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35555
35556                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35557 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35558 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35559   echo $ECHO_N "(cached) $ECHO_C" >&6
35560 else
35561
35562                 if test "$cross_compiling" = yes; then
35563
35564                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35565 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35566 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35567 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35568                         wx_cv_func_snprintf_pos_params=no
35569
35570
35571 else
35572   cat >conftest.$ac_ext <<_ACEOF
35573 /* confdefs.h.  */
35574 _ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h.  */
35578
35579                         #include <stdio.h>
35580
35581                         int main (void)
35582                         {
35583                             char buffer[128];
35584                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35585                             if (strcmp ("2 3 1", buffer) == 0)
35586                                 exit (0);
35587                             exit (1);
35588                         }
35589
35590 _ACEOF
35591 rm -f conftest$ac_exeext
35592 if { (ac_try="$ac_link"
35593 case "(($ac_try" in
35594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35595   *) ac_try_echo=$ac_try;;
35596 esac
35597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35598   (eval "$ac_link") 2>&5
35599   ac_status=$?
35600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35602   { (case "(($ac_try" in
35603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604   *) ac_try_echo=$ac_try;;
35605 esac
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607   (eval "$ac_try") 2>&5
35608   ac_status=$?
35609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610   (exit $ac_status); }; }; then
35611   wx_cv_func_snprintf_pos_params=no
35612 else
35613   echo "$as_me: program exited with status $ac_status" >&5
35614 echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35616
35617 ( exit $ac_status )
35618 wx_cv_func_snprintf_pos_params=yes
35619 fi
35620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35621 fi
35622
35623
35624
35625
35626 fi
35627 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35628 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35629
35630         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35631             cat >>confdefs.h <<\_ACEOF
35632 #define HAVE_UNIX98_PRINTF 1
35633 _ACEOF
35634
35635         fi
35636     fi
35637 fi
35638
35639 if test "$ac_cv_func_vsscanf" = "yes"; then
35640     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35641 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35642 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35643   echo $ECHO_N "(cached) $ECHO_C" >&6
35644 else
35645
35646             cat >conftest.$ac_ext <<_ACEOF
35647 /* confdefs.h.  */
35648 _ACEOF
35649 cat confdefs.h >>conftest.$ac_ext
35650 cat >>conftest.$ac_ext <<_ACEOF
35651 /* end confdefs.h.  */
35652
35653                     #include <stdio.h>
35654                     #include <stdarg.h>
35655                     #ifdef __MSL__
35656                     #if __MSL__ >= 0x6000
35657                     namespace std {}
35658                     using namespace std;
35659                     #endif
35660                     #endif
35661
35662 int
35663 main ()
35664 {
35665
35666                     char *buf;
35667                     va_list args;
35668                     vsscanf(buf, "%s", args);
35669
35670   ;
35671   return 0;
35672 }
35673 _ACEOF
35674 rm -f conftest.$ac_objext
35675 if { (ac_try="$ac_compile"
35676 case "(($ac_try" in
35677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35678   *) ac_try_echo=$ac_try;;
35679 esac
35680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35681   (eval "$ac_compile") 2>conftest.er1
35682   ac_status=$?
35683   grep -v '^ *+' conftest.er1 >conftest.err
35684   rm -f conftest.er1
35685   cat conftest.err >&5
35686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687   (exit $ac_status); } && {
35688          test -z "$ac_cxx_werror_flag" ||
35689          test ! -s conftest.err
35690        } && test -s conftest.$ac_objext; then
35691   wx_cv_func_vsscanf_decl=yes
35692 else
35693   echo "$as_me: failed program was:" >&5
35694 sed 's/^/| /' conftest.$ac_ext >&5
35695
35696         wx_cv_func_vsscanf_decl=no
35697
35698 fi
35699
35700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35701
35702
35703 fi
35704 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35705 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35706
35707     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35708         cat >>confdefs.h <<\_ACEOF
35709 #define HAVE_VSSCANF_DECL 1
35710 _ACEOF
35711
35712     fi
35713 fi
35714 ac_ext=c
35715 ac_cpp='$CPP $CPPFLAGS'
35716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35719
35720
35721 if test "$wxUSE_UNICODE" = yes; then
35722
35723             wchar_headers="#include <stdio.h>
35724 #include <wchar.h>"
35725     case "${host}" in
35726         *-*-solaris2* )
35727
35728 for ac_header in widec.h
35729 do
35730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35734   echo $ECHO_N "(cached) $ECHO_C" >&6
35735 else
35736   cat >conftest.$ac_ext <<_ACEOF
35737 /* confdefs.h.  */
35738 _ACEOF
35739 cat confdefs.h >>conftest.$ac_ext
35740 cat >>conftest.$ac_ext <<_ACEOF
35741 /* end confdefs.h.  */
35742 $ac_includes_default
35743
35744 #include <$ac_header>
35745 _ACEOF
35746 rm -f conftest.$ac_objext
35747 if { (ac_try="$ac_compile"
35748 case "(($ac_try" in
35749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750   *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753   (eval "$ac_compile") 2>conftest.er1
35754   ac_status=$?
35755   grep -v '^ *+' conftest.er1 >conftest.err
35756   rm -f conftest.er1
35757   cat conftest.err >&5
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); } && {
35760          test -z "$ac_c_werror_flag" ||
35761          test ! -s conftest.err
35762        } && test -s conftest.$ac_objext; then
35763   eval "$as_ac_Header=yes"
35764 else
35765   echo "$as_me: failed program was:" >&5
35766 sed 's/^/| /' conftest.$ac_ext >&5
35767
35768         eval "$as_ac_Header=no"
35769 fi
35770
35771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35772 fi
35773 ac_res=`eval echo '${'$as_ac_Header'}'`
35774                { echo "$as_me:$LINENO: result: $ac_res" >&5
35775 echo "${ECHO_T}$ac_res" >&6; }
35776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35777   cat >>confdefs.h <<_ACEOF
35778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35779 _ACEOF
35780
35781 fi
35782
35783 done
35784
35785             if test "$ac_cv_header_widec_h" = "yes"; then
35786                 wchar_headers="$wchar_headers
35787 #include <widec.h>"
35788             fi
35789     esac
35790
35791
35792   for wx_func in putws fputws wprintf vswprintf vswscanf
35793   do
35794     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35795 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35796 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35797   echo $ECHO_N "(cached) $ECHO_C" >&6
35798 else
35799
35800         cat >conftest.$ac_ext <<_ACEOF
35801
35802             /* confdefs.h.  */
35803 _ACEOF
35804 cat confdefs.h >>conftest.$ac_ext
35805 cat >>conftest.$ac_ext <<_ACEOF
35806 /* end confdefs.h.  */
35807
35808                 $wchar_headers
35809                 $ac_includes_default
35810
35811 int
35812 main ()
35813 {
35814
35815                 #ifndef $wx_func
35816                   &$wx_func;
35817                 #endif
35818
35819
35820   ;
35821   return 0;
35822 }
35823
35824 _ACEOF
35825 rm -f conftest.$ac_objext conftest$ac_exeext
35826 if { (ac_try="$ac_link"
35827 case "(($ac_try" in
35828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35829   *) ac_try_echo=$ac_try;;
35830 esac
35831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35832   (eval "$ac_link") 2>conftest.er1
35833   ac_status=$?
35834   grep -v '^ *+' conftest.er1 >conftest.err
35835   rm -f conftest.er1
35836   cat conftest.err >&5
35837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838   (exit $ac_status); } && {
35839          test -z "$ac_c_werror_flag" ||
35840          test ! -s conftest.err
35841        } && test -s conftest$ac_exeext &&
35842        $as_test_x conftest$ac_exeext; then
35843   eval wx_cv_func_$wx_func=yes
35844 else
35845   echo "$as_me: failed program was:" >&5
35846 sed 's/^/| /' conftest.$ac_ext >&5
35847
35848         eval wx_cv_func_$wx_func=no
35849 fi
35850
35851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35852       conftest$ac_exeext conftest.$ac_ext
35853
35854 fi
35855 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35856                { echo "$as_me:$LINENO: result: $ac_res" >&5
35857 echo "${ECHO_T}$ac_res" >&6; }
35858
35859     if eval test \$wx_cv_func_$wx_func = yes
35860     then
35861       cat >>confdefs.h <<_ACEOF
35862 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35863 _ACEOF
35864
35865
35866     else
35867       :
35868
35869     fi
35870   done
35871
35872
35873                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35874 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35875     cat >conftest.$ac_ext <<_ACEOF
35876 /* confdefs.h.  */
35877 _ACEOF
35878 cat confdefs.h >>conftest.$ac_ext
35879 cat >>conftest.$ac_ext <<_ACEOF
35880 /* end confdefs.h.  */
35881 #include <wchar.h>
35882 int
35883 main ()
35884 {
35885 &_vsnwprintf;
35886   ;
35887   return 0;
35888 }
35889 _ACEOF
35890 rm -f conftest.$ac_objext
35891 if { (ac_try="$ac_compile"
35892 case "(($ac_try" in
35893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35894   *) ac_try_echo=$ac_try;;
35895 esac
35896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35897   (eval "$ac_compile") 2>conftest.er1
35898   ac_status=$?
35899   grep -v '^ *+' conftest.er1 >conftest.err
35900   rm -f conftest.er1
35901   cat conftest.err >&5
35902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903   (exit $ac_status); } && {
35904          test -z "$ac_c_werror_flag" ||
35905          test ! -s conftest.err
35906        } && test -s conftest.$ac_objext; then
35907   { echo "$as_me:$LINENO: result: yes" >&5
35908 echo "${ECHO_T}yes" >&6; }
35909                     cat >>confdefs.h <<\_ACEOF
35910 #define HAVE__VSNWPRINTF 1
35911 _ACEOF
35912
35913 else
35914   echo "$as_me: failed program was:" >&5
35915 sed 's/^/| /' conftest.$ac_ext >&5
35916
35917         { echo "$as_me:$LINENO: result: no" >&5
35918 echo "${ECHO_T}no" >&6; }
35919 fi
35920
35921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35922 fi
35923
35924 if test "$wxUSE_FILE" = "yes"; then
35925
35926   for wx_func in fsync
35927   do
35928     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35929 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35930 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35931   echo $ECHO_N "(cached) $ECHO_C" >&6
35932 else
35933
35934         cat >conftest.$ac_ext <<_ACEOF
35935
35936             /* confdefs.h.  */
35937 _ACEOF
35938 cat confdefs.h >>conftest.$ac_ext
35939 cat >>conftest.$ac_ext <<_ACEOF
35940 /* end confdefs.h.  */
35941
35942
35943                 $ac_includes_default
35944
35945 int
35946 main ()
35947 {
35948
35949                 #ifndef $wx_func
35950                   &$wx_func;
35951                 #endif
35952
35953
35954   ;
35955   return 0;
35956 }
35957
35958 _ACEOF
35959 rm -f conftest.$ac_objext conftest$ac_exeext
35960 if { (ac_try="$ac_link"
35961 case "(($ac_try" in
35962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35963   *) ac_try_echo=$ac_try;;
35964 esac
35965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35966   (eval "$ac_link") 2>conftest.er1
35967   ac_status=$?
35968   grep -v '^ *+' conftest.er1 >conftest.err
35969   rm -f conftest.er1
35970   cat conftest.err >&5
35971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972   (exit $ac_status); } && {
35973          test -z "$ac_c_werror_flag" ||
35974          test ! -s conftest.err
35975        } && test -s conftest$ac_exeext &&
35976        $as_test_x conftest$ac_exeext; then
35977   eval wx_cv_func_$wx_func=yes
35978 else
35979   echo "$as_me: failed program was:" >&5
35980 sed 's/^/| /' conftest.$ac_ext >&5
35981
35982         eval wx_cv_func_$wx_func=no
35983 fi
35984
35985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35986       conftest$ac_exeext conftest.$ac_ext
35987
35988 fi
35989 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35990                { echo "$as_me:$LINENO: result: $ac_res" >&5
35991 echo "${ECHO_T}$ac_res" >&6; }
35992
35993     if eval test \$wx_cv_func_$wx_func = yes
35994     then
35995       cat >>confdefs.h <<_ACEOF
35996 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35997 _ACEOF
35998
35999
36000     else
36001       :
36002
36003     fi
36004   done
36005
36006 fi
36007
36008 ac_ext=cpp
36009 ac_cpp='$CXXCPP $CPPFLAGS'
36010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36013
36014
36015   for wx_func in round
36016   do
36017     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36018 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36019 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36020   echo $ECHO_N "(cached) $ECHO_C" >&6
36021 else
36022
36023         cat >conftest.$ac_ext <<_ACEOF
36024
36025             /* confdefs.h.  */
36026 _ACEOF
36027 cat confdefs.h >>conftest.$ac_ext
36028 cat >>conftest.$ac_ext <<_ACEOF
36029 /* end confdefs.h.  */
36030
36031                 #include <math.h>
36032                 $ac_includes_default
36033
36034 int
36035 main ()
36036 {
36037
36038                 #ifndef $wx_func
36039                   &$wx_func;
36040                 #endif
36041
36042
36043   ;
36044   return 0;
36045 }
36046
36047 _ACEOF
36048 rm -f conftest.$ac_objext conftest$ac_exeext
36049 if { (ac_try="$ac_link"
36050 case "(($ac_try" in
36051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36052   *) ac_try_echo=$ac_try;;
36053 esac
36054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36055   (eval "$ac_link") 2>conftest.er1
36056   ac_status=$?
36057   grep -v '^ *+' conftest.er1 >conftest.err
36058   rm -f conftest.er1
36059   cat conftest.err >&5
36060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061   (exit $ac_status); } && {
36062          test -z "$ac_cxx_werror_flag" ||
36063          test ! -s conftest.err
36064        } && test -s conftest$ac_exeext &&
36065        $as_test_x conftest$ac_exeext; then
36066   eval wx_cv_func_$wx_func=yes
36067 else
36068   echo "$as_me: failed program was:" >&5
36069 sed 's/^/| /' conftest.$ac_ext >&5
36070
36071         eval wx_cv_func_$wx_func=no
36072 fi
36073
36074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36075       conftest$ac_exeext conftest.$ac_ext
36076
36077 fi
36078 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36079                { echo "$as_me:$LINENO: result: $ac_res" >&5
36080 echo "${ECHO_T}$ac_res" >&6; }
36081
36082     if eval test \$wx_cv_func_$wx_func = yes
36083     then
36084       cat >>confdefs.h <<_ACEOF
36085 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36086 _ACEOF
36087
36088
36089     else
36090       :
36091
36092     fi
36093   done
36094
36095 ac_ext=c
36096 ac_cpp='$CPP $CPPFLAGS'
36097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36100
36101
36102 if test "$TOOLKIT" != "MSW"; then
36103
36104 if test "$wxUSE_LIBICONV" != "no" ; then
36105
36106
36107
36108 # Check whether --with-libiconv-prefix was given.
36109 if test "${with_libiconv_prefix+set}" = set; then
36110   withval=$with_libiconv_prefix;
36111     for dir in `echo "$withval" | tr : ' '`; do
36112       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36113       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36114     done
36115
36116 fi
36117
36118
36119   { echo "$as_me:$LINENO: checking for iconv" >&5
36120 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36121 if test "${am_cv_func_iconv+set}" = set; then
36122   echo $ECHO_N "(cached) $ECHO_C" >&6
36123 else
36124
36125     am_cv_func_iconv="no, consider installing GNU libiconv"
36126     am_cv_lib_iconv=no
36127     cat >conftest.$ac_ext <<_ACEOF
36128 /* confdefs.h.  */
36129 _ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h.  */
36133 #include <stdlib.h>
36134 #include <iconv.h>
36135 int
36136 main ()
36137 {
36138 iconv_t cd = iconv_open("","");
36139        iconv(cd,NULL,NULL,NULL,NULL);
36140        iconv_close(cd);
36141   ;
36142   return 0;
36143 }
36144 _ACEOF
36145 rm -f conftest.$ac_objext conftest$ac_exeext
36146 if { (ac_try="$ac_link"
36147 case "(($ac_try" in
36148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36149   *) ac_try_echo=$ac_try;;
36150 esac
36151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36152   (eval "$ac_link") 2>conftest.er1
36153   ac_status=$?
36154   grep -v '^ *+' conftest.er1 >conftest.err
36155   rm -f conftest.er1
36156   cat conftest.err >&5
36157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158   (exit $ac_status); } && {
36159          test -z "$ac_c_werror_flag" ||
36160          test ! -s conftest.err
36161        } && test -s conftest$ac_exeext &&
36162        $as_test_x conftest$ac_exeext; then
36163   am_cv_func_iconv=yes
36164 else
36165   echo "$as_me: failed program was:" >&5
36166 sed 's/^/| /' conftest.$ac_ext >&5
36167
36168
36169 fi
36170
36171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36172       conftest$ac_exeext conftest.$ac_ext
36173     if test "$am_cv_func_iconv" != yes; then
36174       am_save_LIBS="$LIBS"
36175       LIBS="$LIBS -liconv"
36176       cat >conftest.$ac_ext <<_ACEOF
36177 /* confdefs.h.  */
36178 _ACEOF
36179 cat confdefs.h >>conftest.$ac_ext
36180 cat >>conftest.$ac_ext <<_ACEOF
36181 /* end confdefs.h.  */
36182 #include <stdlib.h>
36183 #include <iconv.h>
36184 int
36185 main ()
36186 {
36187 iconv_t cd = iconv_open("","");
36188          iconv(cd,NULL,NULL,NULL,NULL);
36189          iconv_close(cd);
36190   ;
36191   return 0;
36192 }
36193 _ACEOF
36194 rm -f conftest.$ac_objext conftest$ac_exeext
36195 if { (ac_try="$ac_link"
36196 case "(($ac_try" in
36197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36198   *) ac_try_echo=$ac_try;;
36199 esac
36200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36201   (eval "$ac_link") 2>conftest.er1
36202   ac_status=$?
36203   grep -v '^ *+' conftest.er1 >conftest.err
36204   rm -f conftest.er1
36205   cat conftest.err >&5
36206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36207   (exit $ac_status); } && {
36208          test -z "$ac_c_werror_flag" ||
36209          test ! -s conftest.err
36210        } && test -s conftest$ac_exeext &&
36211        $as_test_x conftest$ac_exeext; then
36212   am_cv_lib_iconv=yes
36213         am_cv_func_iconv=yes
36214 else
36215   echo "$as_me: failed program was:" >&5
36216 sed 's/^/| /' conftest.$ac_ext >&5
36217
36218
36219 fi
36220
36221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36222       conftest$ac_exeext conftest.$ac_ext
36223       LIBS="$am_save_LIBS"
36224     fi
36225
36226 fi
36227 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36228 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36229   if test "$am_cv_func_iconv" = yes; then
36230
36231 cat >>confdefs.h <<\_ACEOF
36232 #define HAVE_ICONV 1
36233 _ACEOF
36234
36235     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36236 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36237 if test "${wx_cv_func_iconv_const+set}" = set; then
36238   echo $ECHO_N "(cached) $ECHO_C" >&6
36239 else
36240   cat >conftest.$ac_ext <<_ACEOF
36241 /* confdefs.h.  */
36242 _ACEOF
36243 cat confdefs.h >>conftest.$ac_ext
36244 cat >>conftest.$ac_ext <<_ACEOF
36245 /* end confdefs.h.  */
36246
36247 #include <stdlib.h>
36248 #include <iconv.h>
36249 extern
36250 #ifdef __cplusplus
36251 "C"
36252 #endif
36253 #if defined(__STDC__) || defined(__cplusplus)
36254 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36255 #else
36256 size_t iconv();
36257 #endif
36258
36259 int
36260 main ()
36261 {
36262
36263   ;
36264   return 0;
36265 }
36266 _ACEOF
36267 rm -f conftest.$ac_objext
36268 if { (ac_try="$ac_compile"
36269 case "(($ac_try" in
36270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36271   *) ac_try_echo=$ac_try;;
36272 esac
36273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36274   (eval "$ac_compile") 2>conftest.er1
36275   ac_status=$?
36276   grep -v '^ *+' conftest.er1 >conftest.err
36277   rm -f conftest.er1
36278   cat conftest.err >&5
36279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280   (exit $ac_status); } && {
36281          test -z "$ac_c_werror_flag" ||
36282          test ! -s conftest.err
36283        } && test -s conftest.$ac_objext; then
36284   wx_cv_func_iconv_const="no"
36285 else
36286   echo "$as_me: failed program was:" >&5
36287 sed 's/^/| /' conftest.$ac_ext >&5
36288
36289         wx_cv_func_iconv_const="yes"
36290
36291 fi
36292
36293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36294
36295 fi
36296 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36297 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36298
36299     iconv_const=
36300     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36301         iconv_const="const"
36302     fi
36303
36304
36305 cat >>confdefs.h <<_ACEOF
36306 #define ICONV_CONST $iconv_const
36307 _ACEOF
36308
36309   fi
36310   LIBICONV=
36311   if test "$am_cv_lib_iconv" = yes; then
36312     LIBICONV="-liconv"
36313   fi
36314
36315
36316     LIBS="$LIBICONV $LIBS"
36317 fi
36318
36319 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36320
36321 for ac_func in sigaction
36322 do
36323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36327   echo $ECHO_N "(cached) $ECHO_C" >&6
36328 else
36329   cat >conftest.$ac_ext <<_ACEOF
36330 /* confdefs.h.  */
36331 _ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h.  */
36335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36337 #define $ac_func innocuous_$ac_func
36338
36339 /* System header to define __stub macros and hopefully few prototypes,
36340     which can conflict with char $ac_func (); below.
36341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36342     <limits.h> exists even on freestanding compilers.  */
36343
36344 #ifdef __STDC__
36345 # include <limits.h>
36346 #else
36347 # include <assert.h>
36348 #endif
36349
36350 #undef $ac_func
36351
36352 /* Override any GCC internal prototype to avoid an error.
36353    Use char because int might match the return type of a GCC
36354    builtin and then its argument prototype would still apply.  */
36355 #ifdef __cplusplus
36356 extern "C"
36357 #endif
36358 char $ac_func ();
36359 /* The GNU C library defines this for functions which it implements
36360     to always fail with ENOSYS.  Some functions are actually named
36361     something starting with __ and the normal name is an alias.  */
36362 #if defined __stub_$ac_func || defined __stub___$ac_func
36363 choke me
36364 #endif
36365
36366 int
36367 main ()
36368 {
36369 return $ac_func ();
36370   ;
36371   return 0;
36372 }
36373 _ACEOF
36374 rm -f conftest.$ac_objext conftest$ac_exeext
36375 if { (ac_try="$ac_link"
36376 case "(($ac_try" in
36377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378   *) ac_try_echo=$ac_try;;
36379 esac
36380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36381   (eval "$ac_link") 2>conftest.er1
36382   ac_status=$?
36383   grep -v '^ *+' conftest.er1 >conftest.err
36384   rm -f conftest.er1
36385   cat conftest.err >&5
36386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387   (exit $ac_status); } && {
36388          test -z "$ac_c_werror_flag" ||
36389          test ! -s conftest.err
36390        } && test -s conftest$ac_exeext &&
36391        $as_test_x conftest$ac_exeext; then
36392   eval "$as_ac_var=yes"
36393 else
36394   echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36396
36397         eval "$as_ac_var=no"
36398 fi
36399
36400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36401       conftest$ac_exeext conftest.$ac_ext
36402 fi
36403 ac_res=`eval echo '${'$as_ac_var'}'`
36404                { echo "$as_me:$LINENO: result: $ac_res" >&5
36405 echo "${ECHO_T}$ac_res" >&6; }
36406 if test `eval echo '${'$as_ac_var'}'` = yes; then
36407   cat >>confdefs.h <<_ACEOF
36408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36409 _ACEOF
36410
36411 fi
36412 done
36413
36414
36415     if test "$ac_cv_func_sigaction" = "no"; then
36416         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36417 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36418         wxUSE_ON_FATAL_EXCEPTION=no
36419     fi
36420
36421     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36422       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36423 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36424 if test "${wx_cv_type_sa_handler+set}" = set; then
36425   echo $ECHO_N "(cached) $ECHO_C" >&6
36426 else
36427
36428                 ac_ext=cpp
36429 ac_cpp='$CXXCPP $CPPFLAGS'
36430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36433
36434         cat >conftest.$ac_ext <<_ACEOF
36435 /* confdefs.h.  */
36436 _ACEOF
36437 cat confdefs.h >>conftest.$ac_ext
36438 cat >>conftest.$ac_ext <<_ACEOF
36439 /* end confdefs.h.  */
36440 #include <signal.h>
36441 int
36442 main ()
36443 {
36444
36445                         extern void testSigHandler(int);
36446
36447                         struct sigaction sa;
36448                         sa.sa_handler = testSigHandler;
36449
36450   ;
36451   return 0;
36452 }
36453 _ACEOF
36454 rm -f conftest.$ac_objext
36455 if { (ac_try="$ac_compile"
36456 case "(($ac_try" in
36457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36458   *) ac_try_echo=$ac_try;;
36459 esac
36460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36461   (eval "$ac_compile") 2>conftest.er1
36462   ac_status=$?
36463   grep -v '^ *+' conftest.er1 >conftest.err
36464   rm -f conftest.er1
36465   cat conftest.err >&5
36466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467   (exit $ac_status); } && {
36468          test -z "$ac_cxx_werror_flag" ||
36469          test ! -s conftest.err
36470        } && test -s conftest.$ac_objext; then
36471
36472                         wx_cv_type_sa_handler=int
36473
36474 else
36475   echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36477
36478
36479                         wx_cv_type_sa_handler=void
36480
36481 fi
36482
36483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36484         ac_ext=c
36485 ac_cpp='$CPP $CPPFLAGS'
36486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36489
36490
36491 fi
36492 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36493 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36494
36495       cat >>confdefs.h <<_ACEOF
36496 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36497 _ACEOF
36498
36499     fi
36500 fi
36501
36502 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36503     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36504 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36505 if test "${wx_cv_func_backtrace+set}" = set; then
36506   echo $ECHO_N "(cached) $ECHO_C" >&6
36507 else
36508
36509             ac_ext=cpp
36510 ac_cpp='$CXXCPP $CPPFLAGS'
36511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36514
36515             cat >conftest.$ac_ext <<_ACEOF
36516 /* confdefs.h.  */
36517 _ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h.  */
36521 #include <execinfo.h>
36522 int
36523 main ()
36524 {
36525
36526                     void *trace[1];
36527                     char **messages;
36528
36529                     backtrace(trace, 1);
36530                     messages = backtrace_symbols(trace, 1);
36531
36532   ;
36533   return 0;
36534 }
36535 _ACEOF
36536 rm -f conftest.$ac_objext
36537 if { (ac_try="$ac_compile"
36538 case "(($ac_try" in
36539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36540   *) ac_try_echo=$ac_try;;
36541 esac
36542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36543   (eval "$ac_compile") 2>conftest.er1
36544   ac_status=$?
36545   grep -v '^ *+' conftest.er1 >conftest.err
36546   rm -f conftest.er1
36547   cat conftest.err >&5
36548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549   (exit $ac_status); } && {
36550          test -z "$ac_cxx_werror_flag" ||
36551          test ! -s conftest.err
36552        } && test -s conftest.$ac_objext; then
36553   wx_cv_func_backtrace=yes
36554 else
36555   echo "$as_me: failed program was:" >&5
36556 sed 's/^/| /' conftest.$ac_ext >&5
36557
36558         wx_cv_func_backtrace=no
36559
36560 fi
36561
36562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36563             ac_ext=c
36564 ac_cpp='$CPP $CPPFLAGS'
36565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36568
36569
36570
36571 fi
36572 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36573 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36574
36575
36576     if test "$wx_cv_func_backtrace" = "no"; then
36577         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36578 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36579         wxUSE_STACKWALKER=no
36580     else
36581         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36582 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36583 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36584   echo $ECHO_N "(cached) $ECHO_C" >&6
36585 else
36586
36587                 ac_ext=cpp
36588 ac_cpp='$CXXCPP $CPPFLAGS'
36589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36592
36593                 cat >conftest.$ac_ext <<_ACEOF
36594 /* confdefs.h.  */
36595 _ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h.  */
36599 #include <cxxabi.h>
36600 int
36601 main ()
36602 {
36603
36604                         int rc;
36605                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36606
36607   ;
36608   return 0;
36609 }
36610 _ACEOF
36611 rm -f conftest.$ac_objext conftest$ac_exeext
36612 if { (ac_try="$ac_link"
36613 case "(($ac_try" in
36614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36615   *) ac_try_echo=$ac_try;;
36616 esac
36617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36618   (eval "$ac_link") 2>conftest.er1
36619   ac_status=$?
36620   grep -v '^ *+' conftest.er1 >conftest.err
36621   rm -f conftest.er1
36622   cat conftest.err >&5
36623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624   (exit $ac_status); } && {
36625          test -z "$ac_cxx_werror_flag" ||
36626          test ! -s conftest.err
36627        } && test -s conftest$ac_exeext &&
36628        $as_test_x conftest$ac_exeext; then
36629   wx_cv_func_cxa_demangle=yes
36630 else
36631   echo "$as_me: failed program was:" >&5
36632 sed 's/^/| /' conftest.$ac_ext >&5
36633
36634         wx_cv_func_cxa_demangle=no
36635
36636 fi
36637
36638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36639       conftest$ac_exeext conftest.$ac_ext
36640                 ac_ext=c
36641 ac_cpp='$CPP $CPPFLAGS'
36642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36645
36646
36647
36648 fi
36649 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36650 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36651
36652         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36653             cat >>confdefs.h <<\_ACEOF
36654 #define HAVE_CXA_DEMANGLE 1
36655 _ACEOF
36656
36657         fi
36658     fi
36659 fi
36660
36661 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36662     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36663 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36664     wxUSE_STACKWALKER=no
36665 fi
36666
36667
36668
36669
36670 for ac_func in mkstemp mktemp
36671 do
36672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36676   echo $ECHO_N "(cached) $ECHO_C" >&6
36677 else
36678   cat >conftest.$ac_ext <<_ACEOF
36679 /* confdefs.h.  */
36680 _ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h.  */
36684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36686 #define $ac_func innocuous_$ac_func
36687
36688 /* System header to define __stub macros and hopefully few prototypes,
36689     which can conflict with char $ac_func (); below.
36690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36691     <limits.h> exists even on freestanding compilers.  */
36692
36693 #ifdef __STDC__
36694 # include <limits.h>
36695 #else
36696 # include <assert.h>
36697 #endif
36698
36699 #undef $ac_func
36700
36701 /* Override any GCC internal prototype to avoid an error.
36702    Use char because int might match the return type of a GCC
36703    builtin and then its argument prototype would still apply.  */
36704 #ifdef __cplusplus
36705 extern "C"
36706 #endif
36707 char $ac_func ();
36708 /* The GNU C library defines this for functions which it implements
36709     to always fail with ENOSYS.  Some functions are actually named
36710     something starting with __ and the normal name is an alias.  */
36711 #if defined __stub_$ac_func || defined __stub___$ac_func
36712 choke me
36713 #endif
36714
36715 int
36716 main ()
36717 {
36718 return $ac_func ();
36719   ;
36720   return 0;
36721 }
36722 _ACEOF
36723 rm -f conftest.$ac_objext conftest$ac_exeext
36724 if { (ac_try="$ac_link"
36725 case "(($ac_try" in
36726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36727   *) ac_try_echo=$ac_try;;
36728 esac
36729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36730   (eval "$ac_link") 2>conftest.er1
36731   ac_status=$?
36732   grep -v '^ *+' conftest.er1 >conftest.err
36733   rm -f conftest.er1
36734   cat conftest.err >&5
36735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736   (exit $ac_status); } && {
36737          test -z "$ac_c_werror_flag" ||
36738          test ! -s conftest.err
36739        } && test -s conftest$ac_exeext &&
36740        $as_test_x conftest$ac_exeext; then
36741   eval "$as_ac_var=yes"
36742 else
36743   echo "$as_me: failed program was:" >&5
36744 sed 's/^/| /' conftest.$ac_ext >&5
36745
36746         eval "$as_ac_var=no"
36747 fi
36748
36749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36750       conftest$ac_exeext conftest.$ac_ext
36751 fi
36752 ac_res=`eval echo '${'$as_ac_var'}'`
36753                { echo "$as_me:$LINENO: result: $ac_res" >&5
36754 echo "${ECHO_T}$ac_res" >&6; }
36755 if test `eval echo '${'$as_ac_var'}'` = yes; then
36756   cat >>confdefs.h <<_ACEOF
36757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36758 _ACEOF
36759  break
36760 fi
36761 done
36762
36763
36764 { echo "$as_me:$LINENO: checking for statfs" >&5
36765 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36766 if test "${wx_cv_func_statfs+set}" = set; then
36767   echo $ECHO_N "(cached) $ECHO_C" >&6
36768 else
36769   cat >conftest.$ac_ext <<_ACEOF
36770 /* confdefs.h.  */
36771 _ACEOF
36772 cat confdefs.h >>conftest.$ac_ext
36773 cat >>conftest.$ac_ext <<_ACEOF
36774 /* end confdefs.h.  */
36775
36776              #if defined(__BSD__)
36777              #include <sys/param.h>
36778              #include <sys/mount.h>
36779              #else
36780              #include <sys/vfs.h>
36781              #endif
36782
36783 int
36784 main ()
36785 {
36786
36787              long l;
36788              struct statfs fs;
36789              statfs("/", &fs);
36790              l = fs.f_bsize;
36791              l += fs.f_blocks;
36792              l += fs.f_bavail;
36793
36794   ;
36795   return 0;
36796 }
36797 _ACEOF
36798 rm -f conftest.$ac_objext
36799 if { (ac_try="$ac_compile"
36800 case "(($ac_try" in
36801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36802   *) ac_try_echo=$ac_try;;
36803 esac
36804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36805   (eval "$ac_compile") 2>conftest.er1
36806   ac_status=$?
36807   grep -v '^ *+' conftest.er1 >conftest.err
36808   rm -f conftest.er1
36809   cat conftest.err >&5
36810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811   (exit $ac_status); } && {
36812          test -z "$ac_c_werror_flag" ||
36813          test ! -s conftest.err
36814        } && test -s conftest.$ac_objext; then
36815   wx_cv_func_statfs=yes
36816 else
36817   echo "$as_me: failed program was:" >&5
36818 sed 's/^/| /' conftest.$ac_ext >&5
36819
36820         wx_cv_func_statfs=no
36821
36822 fi
36823
36824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36825
36826 fi
36827 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36828 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36829
36830 if test "$wx_cv_func_statfs" = "yes"; then
36831         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36832 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36833 if test "${wx_cv_func_statfs_decl+set}" = set; then
36834   echo $ECHO_N "(cached) $ECHO_C" >&6
36835 else
36836   ac_ext=cpp
36837 ac_cpp='$CXXCPP $CPPFLAGS'
36838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36841
36842         cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h.  */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h.  */
36848
36849                  #if defined(__BSD__)
36850                  #include <sys/param.h>
36851                  #include <sys/mount.h>
36852                  #else
36853                  #include <sys/vfs.h>
36854                  #endif
36855
36856 int
36857 main ()
36858 {
36859
36860                 struct statfs fs;
36861                 statfs("", &fs);
36862
36863   ;
36864   return 0;
36865 }
36866 _ACEOF
36867 rm -f conftest.$ac_objext
36868 if { (ac_try="$ac_compile"
36869 case "(($ac_try" in
36870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36871   *) ac_try_echo=$ac_try;;
36872 esac
36873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36874   (eval "$ac_compile") 2>conftest.er1
36875   ac_status=$?
36876   grep -v '^ *+' conftest.er1 >conftest.err
36877   rm -f conftest.er1
36878   cat conftest.err >&5
36879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880   (exit $ac_status); } && {
36881          test -z "$ac_cxx_werror_flag" ||
36882          test ! -s conftest.err
36883        } && test -s conftest.$ac_objext; then
36884   wx_cv_func_statfs_decl=yes
36885 else
36886   echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36888
36889         wx_cv_func_statfs_decl=no
36890
36891 fi
36892
36893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36894         ac_ext=c
36895 ac_cpp='$CPP $CPPFLAGS'
36896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36899
36900
36901 fi
36902 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36903 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36904
36905     if test "$wx_cv_func_statfs_decl" = "yes"; then
36906         cat >>confdefs.h <<\_ACEOF
36907 #define HAVE_STATFS_DECL 1
36908 _ACEOF
36909
36910     fi
36911
36912     wx_cv_type_statvfs_t="struct statfs"
36913     cat >>confdefs.h <<\_ACEOF
36914 #define HAVE_STATFS 1
36915 _ACEOF
36916
36917 else
36918     { echo "$as_me:$LINENO: checking for statvfs" >&5
36919 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36920 if test "${wx_cv_func_statvfs+set}" = set; then
36921   echo $ECHO_N "(cached) $ECHO_C" >&6
36922 else
36923   cat >conftest.$ac_ext <<_ACEOF
36924 /* confdefs.h.  */
36925 _ACEOF
36926 cat confdefs.h >>conftest.$ac_ext
36927 cat >>conftest.$ac_ext <<_ACEOF
36928 /* end confdefs.h.  */
36929
36930                 #include <stddef.h>
36931                 #include <sys/statvfs.h>
36932
36933 int
36934 main ()
36935 {
36936
36937                 statvfs("/", NULL);
36938
36939   ;
36940   return 0;
36941 }
36942 _ACEOF
36943 rm -f conftest.$ac_objext
36944 if { (ac_try="$ac_compile"
36945 case "(($ac_try" in
36946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36947   *) ac_try_echo=$ac_try;;
36948 esac
36949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36950   (eval "$ac_compile") 2>conftest.er1
36951   ac_status=$?
36952   grep -v '^ *+' conftest.er1 >conftest.err
36953   rm -f conftest.er1
36954   cat conftest.err >&5
36955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956   (exit $ac_status); } && {
36957          test -z "$ac_c_werror_flag" ||
36958          test ! -s conftest.err
36959        } && test -s conftest.$ac_objext; then
36960   wx_cv_func_statvfs=yes
36961 else
36962   echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36964
36965         wx_cv_func_statvfs=no
36966
36967 fi
36968
36969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36970
36971 fi
36972 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36973 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36974
36975     if test "$wx_cv_func_statvfs" = "yes"; then
36976                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36977 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36978 if test "${wx_cv_type_statvfs_t+set}" = set; then
36979   echo $ECHO_N "(cached) $ECHO_C" >&6
36980 else
36981   ac_ext=cpp
36982 ac_cpp='$CXXCPP $CPPFLAGS'
36983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36986
36987             cat >conftest.$ac_ext <<_ACEOF
36988 /* confdefs.h.  */
36989 _ACEOF
36990 cat confdefs.h >>conftest.$ac_ext
36991 cat >>conftest.$ac_ext <<_ACEOF
36992 /* end confdefs.h.  */
36993
36994                     #include <sys/statvfs.h>
36995
36996 int
36997 main ()
36998 {
36999
37000                     long l;
37001                     statvfs_t fs;
37002                     statvfs("/", &fs);
37003                     l = fs.f_bsize;
37004                     l += fs.f_blocks;
37005                     l += fs.f_bavail;
37006
37007   ;
37008   return 0;
37009 }
37010 _ACEOF
37011 rm -f conftest.$ac_objext
37012 if { (ac_try="$ac_compile"
37013 case "(($ac_try" in
37014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37015   *) ac_try_echo=$ac_try;;
37016 esac
37017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37018   (eval "$ac_compile") 2>conftest.er1
37019   ac_status=$?
37020   grep -v '^ *+' conftest.er1 >conftest.err
37021   rm -f conftest.er1
37022   cat conftest.err >&5
37023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024   (exit $ac_status); } && {
37025          test -z "$ac_cxx_werror_flag" ||
37026          test ! -s conftest.err
37027        } && test -s conftest.$ac_objext; then
37028   wx_cv_type_statvfs_t=statvfs_t
37029 else
37030   echo "$as_me: failed program was:" >&5
37031 sed 's/^/| /' conftest.$ac_ext >&5
37032
37033
37034                     cat >conftest.$ac_ext <<_ACEOF
37035 /* confdefs.h.  */
37036 _ACEOF
37037 cat confdefs.h >>conftest.$ac_ext
37038 cat >>conftest.$ac_ext <<_ACEOF
37039 /* end confdefs.h.  */
37040
37041                             #include <sys/statvfs.h>
37042
37043 int
37044 main ()
37045 {
37046
37047                             long l;
37048                             struct statvfs fs;
37049                             statvfs("/", &fs);
37050                             l = fs.f_bsize;
37051                             l += fs.f_blocks;
37052                             l += fs.f_bavail;
37053
37054   ;
37055   return 0;
37056 }
37057 _ACEOF
37058 rm -f conftest.$ac_objext
37059 if { (ac_try="$ac_compile"
37060 case "(($ac_try" in
37061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37062   *) ac_try_echo=$ac_try;;
37063 esac
37064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37065   (eval "$ac_compile") 2>conftest.er1
37066   ac_status=$?
37067   grep -v '^ *+' conftest.er1 >conftest.err
37068   rm -f conftest.er1
37069   cat conftest.err >&5
37070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37071   (exit $ac_status); } && {
37072          test -z "$ac_cxx_werror_flag" ||
37073          test ! -s conftest.err
37074        } && test -s conftest.$ac_objext; then
37075   wx_cv_type_statvfs_t="struct statvfs"
37076 else
37077   echo "$as_me: failed program was:" >&5
37078 sed 's/^/| /' conftest.$ac_ext >&5
37079
37080         wx_cv_type_statvfs_t="unknown"
37081
37082 fi
37083
37084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37085
37086
37087 fi
37088
37089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37090             ac_ext=c
37091 ac_cpp='$CPP $CPPFLAGS'
37092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37095
37096
37097 fi
37098 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37099 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37100
37101         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37102             cat >>confdefs.h <<\_ACEOF
37103 #define HAVE_STATVFS 1
37104 _ACEOF
37105
37106         fi
37107     else
37108                 wx_cv_type_statvfs_t="unknown"
37109     fi
37110 fi
37111
37112 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37113     cat >>confdefs.h <<_ACEOF
37114 #define WX_STATFS_T $wx_cv_type_statvfs_t
37115 _ACEOF
37116
37117 else
37118     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37119 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37120 fi
37121
37122 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37123
37124
37125 for ac_func in fcntl flock
37126 do
37127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37131   echo $ECHO_N "(cached) $ECHO_C" >&6
37132 else
37133   cat >conftest.$ac_ext <<_ACEOF
37134 /* confdefs.h.  */
37135 _ACEOF
37136 cat confdefs.h >>conftest.$ac_ext
37137 cat >>conftest.$ac_ext <<_ACEOF
37138 /* end confdefs.h.  */
37139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37141 #define $ac_func innocuous_$ac_func
37142
37143 /* System header to define __stub macros and hopefully few prototypes,
37144     which can conflict with char $ac_func (); below.
37145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37146     <limits.h> exists even on freestanding compilers.  */
37147
37148 #ifdef __STDC__
37149 # include <limits.h>
37150 #else
37151 # include <assert.h>
37152 #endif
37153
37154 #undef $ac_func
37155
37156 /* Override any GCC internal prototype to avoid an error.
37157    Use char because int might match the return type of a GCC
37158    builtin and then its argument prototype would still apply.  */
37159 #ifdef __cplusplus
37160 extern "C"
37161 #endif
37162 char $ac_func ();
37163 /* The GNU C library defines this for functions which it implements
37164     to always fail with ENOSYS.  Some functions are actually named
37165     something starting with __ and the normal name is an alias.  */
37166 #if defined __stub_$ac_func || defined __stub___$ac_func
37167 choke me
37168 #endif
37169
37170 int
37171 main ()
37172 {
37173 return $ac_func ();
37174   ;
37175   return 0;
37176 }
37177 _ACEOF
37178 rm -f conftest.$ac_objext conftest$ac_exeext
37179 if { (ac_try="$ac_link"
37180 case "(($ac_try" in
37181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37182   *) ac_try_echo=$ac_try;;
37183 esac
37184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37185   (eval "$ac_link") 2>conftest.er1
37186   ac_status=$?
37187   grep -v '^ *+' conftest.er1 >conftest.err
37188   rm -f conftest.er1
37189   cat conftest.err >&5
37190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37191   (exit $ac_status); } && {
37192          test -z "$ac_c_werror_flag" ||
37193          test ! -s conftest.err
37194        } && test -s conftest$ac_exeext &&
37195        $as_test_x conftest$ac_exeext; then
37196   eval "$as_ac_var=yes"
37197 else
37198   echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37200
37201         eval "$as_ac_var=no"
37202 fi
37203
37204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37205       conftest$ac_exeext conftest.$ac_ext
37206 fi
37207 ac_res=`eval echo '${'$as_ac_var'}'`
37208                { echo "$as_me:$LINENO: result: $ac_res" >&5
37209 echo "${ECHO_T}$ac_res" >&6; }
37210 if test `eval echo '${'$as_ac_var'}'` = yes; then
37211   cat >>confdefs.h <<_ACEOF
37212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37213 _ACEOF
37214  break
37215 fi
37216 done
37217
37218
37219     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37220         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37221 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37222         wxUSE_SNGLINST_CHECKER=no
37223     fi
37224 fi
37225
37226
37227
37228 for ac_func in setenv putenv
37229 do
37230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37234   echo $ECHO_N "(cached) $ECHO_C" >&6
37235 else
37236   cat >conftest.$ac_ext <<_ACEOF
37237 /* confdefs.h.  */
37238 _ACEOF
37239 cat confdefs.h >>conftest.$ac_ext
37240 cat >>conftest.$ac_ext <<_ACEOF
37241 /* end confdefs.h.  */
37242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37244 #define $ac_func innocuous_$ac_func
37245
37246 /* System header to define __stub macros and hopefully few prototypes,
37247     which can conflict with char $ac_func (); below.
37248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37249     <limits.h> exists even on freestanding compilers.  */
37250
37251 #ifdef __STDC__
37252 # include <limits.h>
37253 #else
37254 # include <assert.h>
37255 #endif
37256
37257 #undef $ac_func
37258
37259 /* Override any GCC internal prototype to avoid an error.
37260    Use char because int might match the return type of a GCC
37261    builtin and then its argument prototype would still apply.  */
37262 #ifdef __cplusplus
37263 extern "C"
37264 #endif
37265 char $ac_func ();
37266 /* The GNU C library defines this for functions which it implements
37267     to always fail with ENOSYS.  Some functions are actually named
37268     something starting with __ and the normal name is an alias.  */
37269 #if defined __stub_$ac_func || defined __stub___$ac_func
37270 choke me
37271 #endif
37272
37273 int
37274 main ()
37275 {
37276 return $ac_func ();
37277   ;
37278   return 0;
37279 }
37280 _ACEOF
37281 rm -f conftest.$ac_objext conftest$ac_exeext
37282 if { (ac_try="$ac_link"
37283 case "(($ac_try" in
37284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37285   *) ac_try_echo=$ac_try;;
37286 esac
37287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37288   (eval "$ac_link") 2>conftest.er1
37289   ac_status=$?
37290   grep -v '^ *+' conftest.er1 >conftest.err
37291   rm -f conftest.er1
37292   cat conftest.err >&5
37293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294   (exit $ac_status); } && {
37295          test -z "$ac_c_werror_flag" ||
37296          test ! -s conftest.err
37297        } && test -s conftest$ac_exeext &&
37298        $as_test_x conftest$ac_exeext; then
37299   eval "$as_ac_var=yes"
37300 else
37301   echo "$as_me: failed program was:" >&5
37302 sed 's/^/| /' conftest.$ac_ext >&5
37303
37304         eval "$as_ac_var=no"
37305 fi
37306
37307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37308       conftest$ac_exeext conftest.$ac_ext
37309 fi
37310 ac_res=`eval echo '${'$as_ac_var'}'`
37311                { echo "$as_me:$LINENO: result: $ac_res" >&5
37312 echo "${ECHO_T}$ac_res" >&6; }
37313 if test `eval echo '${'$as_ac_var'}'` = yes; then
37314   cat >>confdefs.h <<_ACEOF
37315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37316 _ACEOF
37317  break
37318 fi
37319 done
37320
37321 if test "$ac_cv_func_setenv" = "yes"; then
37322
37323 for ac_func in unsetenv
37324 do
37325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37329   echo $ECHO_N "(cached) $ECHO_C" >&6
37330 else
37331   cat >conftest.$ac_ext <<_ACEOF
37332 /* confdefs.h.  */
37333 _ACEOF
37334 cat confdefs.h >>conftest.$ac_ext
37335 cat >>conftest.$ac_ext <<_ACEOF
37336 /* end confdefs.h.  */
37337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37339 #define $ac_func innocuous_$ac_func
37340
37341 /* System header to define __stub macros and hopefully few prototypes,
37342     which can conflict with char $ac_func (); below.
37343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37344     <limits.h> exists even on freestanding compilers.  */
37345
37346 #ifdef __STDC__
37347 # include <limits.h>
37348 #else
37349 # include <assert.h>
37350 #endif
37351
37352 #undef $ac_func
37353
37354 /* Override any GCC internal prototype to avoid an error.
37355    Use char because int might match the return type of a GCC
37356    builtin and then its argument prototype would still apply.  */
37357 #ifdef __cplusplus
37358 extern "C"
37359 #endif
37360 char $ac_func ();
37361 /* The GNU C library defines this for functions which it implements
37362     to always fail with ENOSYS.  Some functions are actually named
37363     something starting with __ and the normal name is an alias.  */
37364 #if defined __stub_$ac_func || defined __stub___$ac_func
37365 choke me
37366 #endif
37367
37368 int
37369 main ()
37370 {
37371 return $ac_func ();
37372   ;
37373   return 0;
37374 }
37375 _ACEOF
37376 rm -f conftest.$ac_objext conftest$ac_exeext
37377 if { (ac_try="$ac_link"
37378 case "(($ac_try" in
37379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37380   *) ac_try_echo=$ac_try;;
37381 esac
37382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37383   (eval "$ac_link") 2>conftest.er1
37384   ac_status=$?
37385   grep -v '^ *+' conftest.er1 >conftest.err
37386   rm -f conftest.er1
37387   cat conftest.err >&5
37388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389   (exit $ac_status); } && {
37390          test -z "$ac_c_werror_flag" ||
37391          test ! -s conftest.err
37392        } && test -s conftest$ac_exeext &&
37393        $as_test_x conftest$ac_exeext; then
37394   eval "$as_ac_var=yes"
37395 else
37396   echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37398
37399         eval "$as_ac_var=no"
37400 fi
37401
37402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37403       conftest$ac_exeext conftest.$ac_ext
37404 fi
37405 ac_res=`eval echo '${'$as_ac_var'}'`
37406                { echo "$as_me:$LINENO: result: $ac_res" >&5
37407 echo "${ECHO_T}$ac_res" >&6; }
37408 if test `eval echo '${'$as_ac_var'}'` = yes; then
37409   cat >>confdefs.h <<_ACEOF
37410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37411 _ACEOF
37412
37413 fi
37414 done
37415
37416 fi
37417
37418 HAVE_SOME_SLEEP_FUNC=0
37419 if test "$USE_BEOS" = 1; then
37420             cat >>confdefs.h <<\_ACEOF
37421 #define HAVE_SLEEP 1
37422 _ACEOF
37423
37424     HAVE_SOME_SLEEP_FUNC=1
37425 fi
37426
37427 if test "$USE_DARWIN" = 1; then
37428             cat >>confdefs.h <<\_ACEOF
37429 #define HAVE_USLEEP 1
37430 _ACEOF
37431
37432     HAVE_SOME_SLEEP_FUNC=1
37433 fi
37434
37435 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37436         POSIX4_LINK=
37437
37438 for ac_func in nanosleep
37439 do
37440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37444   echo $ECHO_N "(cached) $ECHO_C" >&6
37445 else
37446   cat >conftest.$ac_ext <<_ACEOF
37447 /* confdefs.h.  */
37448 _ACEOF
37449 cat confdefs.h >>conftest.$ac_ext
37450 cat >>conftest.$ac_ext <<_ACEOF
37451 /* end confdefs.h.  */
37452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37454 #define $ac_func innocuous_$ac_func
37455
37456 /* System header to define __stub macros and hopefully few prototypes,
37457     which can conflict with char $ac_func (); below.
37458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37459     <limits.h> exists even on freestanding compilers.  */
37460
37461 #ifdef __STDC__
37462 # include <limits.h>
37463 #else
37464 # include <assert.h>
37465 #endif
37466
37467 #undef $ac_func
37468
37469 /* Override any GCC internal prototype to avoid an error.
37470    Use char because int might match the return type of a GCC
37471    builtin and then its argument prototype would still apply.  */
37472 #ifdef __cplusplus
37473 extern "C"
37474 #endif
37475 char $ac_func ();
37476 /* The GNU C library defines this for functions which it implements
37477     to always fail with ENOSYS.  Some functions are actually named
37478     something starting with __ and the normal name is an alias.  */
37479 #if defined __stub_$ac_func || defined __stub___$ac_func
37480 choke me
37481 #endif
37482
37483 int
37484 main ()
37485 {
37486 return $ac_func ();
37487   ;
37488   return 0;
37489 }
37490 _ACEOF
37491 rm -f conftest.$ac_objext conftest$ac_exeext
37492 if { (ac_try="$ac_link"
37493 case "(($ac_try" in
37494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37495   *) ac_try_echo=$ac_try;;
37496 esac
37497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37498   (eval "$ac_link") 2>conftest.er1
37499   ac_status=$?
37500   grep -v '^ *+' conftest.er1 >conftest.err
37501   rm -f conftest.er1
37502   cat conftest.err >&5
37503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504   (exit $ac_status); } && {
37505          test -z "$ac_c_werror_flag" ||
37506          test ! -s conftest.err
37507        } && test -s conftest$ac_exeext &&
37508        $as_test_x conftest$ac_exeext; then
37509   eval "$as_ac_var=yes"
37510 else
37511   echo "$as_me: failed program was:" >&5
37512 sed 's/^/| /' conftest.$ac_ext >&5
37513
37514         eval "$as_ac_var=no"
37515 fi
37516
37517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37518       conftest$ac_exeext conftest.$ac_ext
37519 fi
37520 ac_res=`eval echo '${'$as_ac_var'}'`
37521                { echo "$as_me:$LINENO: result: $ac_res" >&5
37522 echo "${ECHO_T}$ac_res" >&6; }
37523 if test `eval echo '${'$as_ac_var'}'` = yes; then
37524   cat >>confdefs.h <<_ACEOF
37525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37526 _ACEOF
37527  cat >>confdefs.h <<\_ACEOF
37528 #define HAVE_NANOSLEEP 1
37529 _ACEOF
37530
37531 else
37532
37533             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37534 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37535 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37536   echo $ECHO_N "(cached) $ECHO_C" >&6
37537 else
37538   ac_check_lib_save_LIBS=$LIBS
37539 LIBS="-lposix4  $LIBS"
37540 cat >conftest.$ac_ext <<_ACEOF
37541 /* confdefs.h.  */
37542 _ACEOF
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h.  */
37546
37547 /* Override any GCC internal prototype to avoid an error.
37548    Use char because int might match the return type of a GCC
37549    builtin and then its argument prototype would still apply.  */
37550 #ifdef __cplusplus
37551 extern "C"
37552 #endif
37553 char nanosleep ();
37554 int
37555 main ()
37556 {
37557 return nanosleep ();
37558   ;
37559   return 0;
37560 }
37561 _ACEOF
37562 rm -f conftest.$ac_objext conftest$ac_exeext
37563 if { (ac_try="$ac_link"
37564 case "(($ac_try" in
37565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566   *) ac_try_echo=$ac_try;;
37567 esac
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569   (eval "$ac_link") 2>conftest.er1
37570   ac_status=$?
37571   grep -v '^ *+' conftest.er1 >conftest.err
37572   rm -f conftest.er1
37573   cat conftest.err >&5
37574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575   (exit $ac_status); } && {
37576          test -z "$ac_c_werror_flag" ||
37577          test ! -s conftest.err
37578        } && test -s conftest$ac_exeext &&
37579        $as_test_x conftest$ac_exeext; then
37580   ac_cv_lib_posix4_nanosleep=yes
37581 else
37582   echo "$as_me: failed program was:" >&5
37583 sed 's/^/| /' conftest.$ac_ext >&5
37584
37585         ac_cv_lib_posix4_nanosleep=no
37586 fi
37587
37588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37589       conftest$ac_exeext conftest.$ac_ext
37590 LIBS=$ac_check_lib_save_LIBS
37591 fi
37592 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37593 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37594 if test $ac_cv_lib_posix4_nanosleep = yes; then
37595
37596                     cat >>confdefs.h <<\_ACEOF
37597 #define HAVE_NANOSLEEP 1
37598 _ACEOF
37599
37600                     POSIX4_LINK=" -lposix4"
37601
37602 else
37603
37604
37605   for wx_func in usleep
37606   do
37607     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37608 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37609 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37610   echo $ECHO_N "(cached) $ECHO_C" >&6
37611 else
37612
37613         cat >conftest.$ac_ext <<_ACEOF
37614
37615             /* confdefs.h.  */
37616 _ACEOF
37617 cat confdefs.h >>conftest.$ac_ext
37618 cat >>conftest.$ac_ext <<_ACEOF
37619 /* end confdefs.h.  */
37620
37621
37622                 $ac_includes_default
37623
37624 int
37625 main ()
37626 {
37627
37628                 #ifndef $wx_func
37629                   &$wx_func;
37630                 #endif
37631
37632
37633   ;
37634   return 0;
37635 }
37636
37637 _ACEOF
37638 rm -f conftest.$ac_objext conftest$ac_exeext
37639 if { (ac_try="$ac_link"
37640 case "(($ac_try" in
37641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37642   *) ac_try_echo=$ac_try;;
37643 esac
37644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37645   (eval "$ac_link") 2>conftest.er1
37646   ac_status=$?
37647   grep -v '^ *+' conftest.er1 >conftest.err
37648   rm -f conftest.er1
37649   cat conftest.err >&5
37650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651   (exit $ac_status); } && {
37652          test -z "$ac_c_werror_flag" ||
37653          test ! -s conftest.err
37654        } && test -s conftest$ac_exeext &&
37655        $as_test_x conftest$ac_exeext; then
37656   eval wx_cv_func_$wx_func=yes
37657 else
37658   echo "$as_me: failed program was:" >&5
37659 sed 's/^/| /' conftest.$ac_ext >&5
37660
37661         eval wx_cv_func_$wx_func=no
37662 fi
37663
37664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37665       conftest$ac_exeext conftest.$ac_ext
37666
37667 fi
37668 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37669                { echo "$as_me:$LINENO: result: $ac_res" >&5
37670 echo "${ECHO_T}$ac_res" >&6; }
37671
37672     if eval test \$wx_cv_func_$wx_func = yes
37673     then
37674       cat >>confdefs.h <<_ACEOF
37675 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37676 _ACEOF
37677
37678
37679     else
37680       :
37681       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37682 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37683
37684     fi
37685   done
37686
37687
37688
37689 fi
37690
37691
37692
37693 fi
37694 done
37695
37696 fi
37697
37698
37699   for wx_func in uname
37700   do
37701     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37702 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37703 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37704   echo $ECHO_N "(cached) $ECHO_C" >&6
37705 else
37706
37707         cat >conftest.$ac_ext <<_ACEOF
37708
37709             /* confdefs.h.  */
37710 _ACEOF
37711 cat confdefs.h >>conftest.$ac_ext
37712 cat >>conftest.$ac_ext <<_ACEOF
37713 /* end confdefs.h.  */
37714
37715                 #include <sys/utsname.h>
37716                 $ac_includes_default
37717
37718 int
37719 main ()
37720 {
37721
37722                 #ifndef $wx_func
37723                   &$wx_func;
37724                 #endif
37725
37726
37727   ;
37728   return 0;
37729 }
37730
37731 _ACEOF
37732 rm -f conftest.$ac_objext conftest$ac_exeext
37733 if { (ac_try="$ac_link"
37734 case "(($ac_try" in
37735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37736   *) ac_try_echo=$ac_try;;
37737 esac
37738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37739   (eval "$ac_link") 2>conftest.er1
37740   ac_status=$?
37741   grep -v '^ *+' conftest.er1 >conftest.err
37742   rm -f conftest.er1
37743   cat conftest.err >&5
37744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745   (exit $ac_status); } && {
37746          test -z "$ac_c_werror_flag" ||
37747          test ! -s conftest.err
37748        } && test -s conftest$ac_exeext &&
37749        $as_test_x conftest$ac_exeext; then
37750   eval wx_cv_func_$wx_func=yes
37751 else
37752   echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37754
37755         eval wx_cv_func_$wx_func=no
37756 fi
37757
37758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37759       conftest$ac_exeext conftest.$ac_ext
37760
37761 fi
37762 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37763                { echo "$as_me:$LINENO: result: $ac_res" >&5
37764 echo "${ECHO_T}$ac_res" >&6; }
37765
37766     if eval test \$wx_cv_func_$wx_func = yes
37767     then
37768       cat >>confdefs.h <<_ACEOF
37769 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37770 _ACEOF
37771
37772
37773     else
37774       :
37775
37776     fi
37777   done
37778
37779 if test "$wx_cv_func_uname" != yes; then
37780
37781   for wx_func in gethostname
37782   do
37783     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37784 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37785 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37786   echo $ECHO_N "(cached) $ECHO_C" >&6
37787 else
37788
37789         cat >conftest.$ac_ext <<_ACEOF
37790
37791             /* confdefs.h.  */
37792 _ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h.  */
37796
37797
37798                 $ac_includes_default
37799
37800 int
37801 main ()
37802 {
37803
37804                 #ifndef $wx_func
37805                   &$wx_func;
37806                 #endif
37807
37808
37809   ;
37810   return 0;
37811 }
37812
37813 _ACEOF
37814 rm -f conftest.$ac_objext conftest$ac_exeext
37815 if { (ac_try="$ac_link"
37816 case "(($ac_try" in
37817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37818   *) ac_try_echo=$ac_try;;
37819 esac
37820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37821   (eval "$ac_link") 2>conftest.er1
37822   ac_status=$?
37823   grep -v '^ *+' conftest.er1 >conftest.err
37824   rm -f conftest.er1
37825   cat conftest.err >&5
37826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827   (exit $ac_status); } && {
37828          test -z "$ac_c_werror_flag" ||
37829          test ! -s conftest.err
37830        } && test -s conftest$ac_exeext &&
37831        $as_test_x conftest$ac_exeext; then
37832   eval wx_cv_func_$wx_func=yes
37833 else
37834   echo "$as_me: failed program was:" >&5
37835 sed 's/^/| /' conftest.$ac_ext >&5
37836
37837         eval wx_cv_func_$wx_func=no
37838 fi
37839
37840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37841       conftest$ac_exeext conftest.$ac_ext
37842
37843 fi
37844 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37845                { echo "$as_me:$LINENO: result: $ac_res" >&5
37846 echo "${ECHO_T}$ac_res" >&6; }
37847
37848     if eval test \$wx_cv_func_$wx_func = yes
37849     then
37850       cat >>confdefs.h <<_ACEOF
37851 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37852 _ACEOF
37853
37854
37855     else
37856       :
37857
37858     fi
37859   done
37860
37861 fi
37862
37863
37864   for wx_func in strtok_r
37865   do
37866     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37867 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37868 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37869   echo $ECHO_N "(cached) $ECHO_C" >&6
37870 else
37871
37872         cat >conftest.$ac_ext <<_ACEOF
37873
37874             /* confdefs.h.  */
37875 _ACEOF
37876 cat confdefs.h >>conftest.$ac_ext
37877 cat >>conftest.$ac_ext <<_ACEOF
37878 /* end confdefs.h.  */
37879
37880                 #define _REENTRANT
37881                 $ac_includes_default
37882
37883 int
37884 main ()
37885 {
37886
37887                 #ifndef $wx_func
37888                   &$wx_func;
37889                 #endif
37890
37891
37892   ;
37893   return 0;
37894 }
37895
37896 _ACEOF
37897 rm -f conftest.$ac_objext conftest$ac_exeext
37898 if { (ac_try="$ac_link"
37899 case "(($ac_try" in
37900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901   *) ac_try_echo=$ac_try;;
37902 esac
37903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37904   (eval "$ac_link") 2>conftest.er1
37905   ac_status=$?
37906   grep -v '^ *+' conftest.er1 >conftest.err
37907   rm -f conftest.er1
37908   cat conftest.err >&5
37909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910   (exit $ac_status); } && {
37911          test -z "$ac_c_werror_flag" ||
37912          test ! -s conftest.err
37913        } && test -s conftest$ac_exeext &&
37914        $as_test_x conftest$ac_exeext; then
37915   eval wx_cv_func_$wx_func=yes
37916 else
37917   echo "$as_me: failed program was:" >&5
37918 sed 's/^/| /' conftest.$ac_ext >&5
37919
37920         eval wx_cv_func_$wx_func=no
37921 fi
37922
37923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37924       conftest$ac_exeext conftest.$ac_ext
37925
37926 fi
37927 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37928                { echo "$as_me:$LINENO: result: $ac_res" >&5
37929 echo "${ECHO_T}$ac_res" >&6; }
37930
37931     if eval test \$wx_cv_func_$wx_func = yes
37932     then
37933       cat >>confdefs.h <<_ACEOF
37934 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37935 _ACEOF
37936
37937
37938     else
37939       :
37940
37941     fi
37942   done
37943
37944
37945 INET_LINK=
37946
37947 for ac_func in inet_addr
37948 do
37949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37953   echo $ECHO_N "(cached) $ECHO_C" >&6
37954 else
37955   cat >conftest.$ac_ext <<_ACEOF
37956 /* confdefs.h.  */
37957 _ACEOF
37958 cat confdefs.h >>conftest.$ac_ext
37959 cat >>conftest.$ac_ext <<_ACEOF
37960 /* end confdefs.h.  */
37961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37963 #define $ac_func innocuous_$ac_func
37964
37965 /* System header to define __stub macros and hopefully few prototypes,
37966     which can conflict with char $ac_func (); below.
37967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37968     <limits.h> exists even on freestanding compilers.  */
37969
37970 #ifdef __STDC__
37971 # include <limits.h>
37972 #else
37973 # include <assert.h>
37974 #endif
37975
37976 #undef $ac_func
37977
37978 /* Override any GCC internal prototype to avoid an error.
37979    Use char because int might match the return type of a GCC
37980    builtin and then its argument prototype would still apply.  */
37981 #ifdef __cplusplus
37982 extern "C"
37983 #endif
37984 char $ac_func ();
37985 /* The GNU C library defines this for functions which it implements
37986     to always fail with ENOSYS.  Some functions are actually named
37987     something starting with __ and the normal name is an alias.  */
37988 #if defined __stub_$ac_func || defined __stub___$ac_func
37989 choke me
37990 #endif
37991
37992 int
37993 main ()
37994 {
37995 return $ac_func ();
37996   ;
37997   return 0;
37998 }
37999 _ACEOF
38000 rm -f conftest.$ac_objext conftest$ac_exeext
38001 if { (ac_try="$ac_link"
38002 case "(($ac_try" in
38003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38004   *) ac_try_echo=$ac_try;;
38005 esac
38006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38007   (eval "$ac_link") 2>conftest.er1
38008   ac_status=$?
38009   grep -v '^ *+' conftest.er1 >conftest.err
38010   rm -f conftest.er1
38011   cat conftest.err >&5
38012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38013   (exit $ac_status); } && {
38014          test -z "$ac_c_werror_flag" ||
38015          test ! -s conftest.err
38016        } && test -s conftest$ac_exeext &&
38017        $as_test_x conftest$ac_exeext; then
38018   eval "$as_ac_var=yes"
38019 else
38020   echo "$as_me: failed program was:" >&5
38021 sed 's/^/| /' conftest.$ac_ext >&5
38022
38023         eval "$as_ac_var=no"
38024 fi
38025
38026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38027       conftest$ac_exeext conftest.$ac_ext
38028 fi
38029 ac_res=`eval echo '${'$as_ac_var'}'`
38030                { echo "$as_me:$LINENO: result: $ac_res" >&5
38031 echo "${ECHO_T}$ac_res" >&6; }
38032 if test `eval echo '${'$as_ac_var'}'` = yes; then
38033   cat >>confdefs.h <<_ACEOF
38034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38035 _ACEOF
38036  cat >>confdefs.h <<\_ACEOF
38037 #define HAVE_INET_ADDR 1
38038 _ACEOF
38039
38040 else
38041
38042         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38043 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38044 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38045   echo $ECHO_N "(cached) $ECHO_C" >&6
38046 else
38047   ac_check_lib_save_LIBS=$LIBS
38048 LIBS="-lnsl  $LIBS"
38049 cat >conftest.$ac_ext <<_ACEOF
38050 /* confdefs.h.  */
38051 _ACEOF
38052 cat confdefs.h >>conftest.$ac_ext
38053 cat >>conftest.$ac_ext <<_ACEOF
38054 /* end confdefs.h.  */
38055
38056 /* Override any GCC internal prototype to avoid an error.
38057    Use char because int might match the return type of a GCC
38058    builtin and then its argument prototype would still apply.  */
38059 #ifdef __cplusplus
38060 extern "C"
38061 #endif
38062 char inet_addr ();
38063 int
38064 main ()
38065 {
38066 return inet_addr ();
38067   ;
38068   return 0;
38069 }
38070 _ACEOF
38071 rm -f conftest.$ac_objext conftest$ac_exeext
38072 if { (ac_try="$ac_link"
38073 case "(($ac_try" in
38074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38075   *) ac_try_echo=$ac_try;;
38076 esac
38077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38078   (eval "$ac_link") 2>conftest.er1
38079   ac_status=$?
38080   grep -v '^ *+' conftest.er1 >conftest.err
38081   rm -f conftest.er1
38082   cat conftest.err >&5
38083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084   (exit $ac_status); } && {
38085          test -z "$ac_c_werror_flag" ||
38086          test ! -s conftest.err
38087        } && test -s conftest$ac_exeext &&
38088        $as_test_x conftest$ac_exeext; then
38089   ac_cv_lib_nsl_inet_addr=yes
38090 else
38091   echo "$as_me: failed program was:" >&5
38092 sed 's/^/| /' conftest.$ac_ext >&5
38093
38094         ac_cv_lib_nsl_inet_addr=no
38095 fi
38096
38097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38098       conftest$ac_exeext conftest.$ac_ext
38099 LIBS=$ac_check_lib_save_LIBS
38100 fi
38101 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38102 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38103 if test $ac_cv_lib_nsl_inet_addr = yes; then
38104   INET_LINK="nsl"
38105 else
38106
38107                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38108 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38109 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38110   echo $ECHO_N "(cached) $ECHO_C" >&6
38111 else
38112   ac_check_lib_save_LIBS=$LIBS
38113 LIBS="-lresolv  $LIBS"
38114 cat >conftest.$ac_ext <<_ACEOF
38115 /* confdefs.h.  */
38116 _ACEOF
38117 cat confdefs.h >>conftest.$ac_ext
38118 cat >>conftest.$ac_ext <<_ACEOF
38119 /* end confdefs.h.  */
38120
38121 /* Override any GCC internal prototype to avoid an error.
38122    Use char because int might match the return type of a GCC
38123    builtin and then its argument prototype would still apply.  */
38124 #ifdef __cplusplus
38125 extern "C"
38126 #endif
38127 char inet_addr ();
38128 int
38129 main ()
38130 {
38131 return inet_addr ();
38132   ;
38133   return 0;
38134 }
38135 _ACEOF
38136 rm -f conftest.$ac_objext conftest$ac_exeext
38137 if { (ac_try="$ac_link"
38138 case "(($ac_try" in
38139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38140   *) ac_try_echo=$ac_try;;
38141 esac
38142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38143   (eval "$ac_link") 2>conftest.er1
38144   ac_status=$?
38145   grep -v '^ *+' conftest.er1 >conftest.err
38146   rm -f conftest.er1
38147   cat conftest.err >&5
38148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149   (exit $ac_status); } && {
38150          test -z "$ac_c_werror_flag" ||
38151          test ! -s conftest.err
38152        } && test -s conftest$ac_exeext &&
38153        $as_test_x conftest$ac_exeext; then
38154   ac_cv_lib_resolv_inet_addr=yes
38155 else
38156   echo "$as_me: failed program was:" >&5
38157 sed 's/^/| /' conftest.$ac_ext >&5
38158
38159         ac_cv_lib_resolv_inet_addr=no
38160 fi
38161
38162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38163       conftest$ac_exeext conftest.$ac_ext
38164 LIBS=$ac_check_lib_save_LIBS
38165 fi
38166 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38167 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38168 if test $ac_cv_lib_resolv_inet_addr = yes; then
38169   INET_LINK="resolv"
38170 else
38171
38172                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38173 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38174 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38175   echo $ECHO_N "(cached) $ECHO_C" >&6
38176 else
38177   ac_check_lib_save_LIBS=$LIBS
38178 LIBS="-lsocket  $LIBS"
38179 cat >conftest.$ac_ext <<_ACEOF
38180 /* confdefs.h.  */
38181 _ACEOF
38182 cat confdefs.h >>conftest.$ac_ext
38183 cat >>conftest.$ac_ext <<_ACEOF
38184 /* end confdefs.h.  */
38185
38186 /* Override any GCC internal prototype to avoid an error.
38187    Use char because int might match the return type of a GCC
38188    builtin and then its argument prototype would still apply.  */
38189 #ifdef __cplusplus
38190 extern "C"
38191 #endif
38192 char inet_addr ();
38193 int
38194 main ()
38195 {
38196 return inet_addr ();
38197   ;
38198   return 0;
38199 }
38200 _ACEOF
38201 rm -f conftest.$ac_objext conftest$ac_exeext
38202 if { (ac_try="$ac_link"
38203 case "(($ac_try" in
38204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38205   *) ac_try_echo=$ac_try;;
38206 esac
38207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38208   (eval "$ac_link") 2>conftest.er1
38209   ac_status=$?
38210   grep -v '^ *+' conftest.er1 >conftest.err
38211   rm -f conftest.er1
38212   cat conftest.err >&5
38213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214   (exit $ac_status); } && {
38215          test -z "$ac_c_werror_flag" ||
38216          test ! -s conftest.err
38217        } && test -s conftest$ac_exeext &&
38218        $as_test_x conftest$ac_exeext; then
38219   ac_cv_lib_socket_inet_addr=yes
38220 else
38221   echo "$as_me: failed program was:" >&5
38222 sed 's/^/| /' conftest.$ac_ext >&5
38223
38224         ac_cv_lib_socket_inet_addr=no
38225 fi
38226
38227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38228       conftest$ac_exeext conftest.$ac_ext
38229 LIBS=$ac_check_lib_save_LIBS
38230 fi
38231 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38232 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38233 if test $ac_cv_lib_socket_inet_addr = yes; then
38234   INET_LINK="socket"
38235
38236 fi
38237
38238
38239
38240 fi
38241
38242
38243
38244 fi
38245
38246
38247
38248 fi
38249 done
38250
38251
38252
38253 for ac_func in inet_aton
38254 do
38255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38259   echo $ECHO_N "(cached) $ECHO_C" >&6
38260 else
38261   cat >conftest.$ac_ext <<_ACEOF
38262 /* confdefs.h.  */
38263 _ACEOF
38264 cat confdefs.h >>conftest.$ac_ext
38265 cat >>conftest.$ac_ext <<_ACEOF
38266 /* end confdefs.h.  */
38267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38269 #define $ac_func innocuous_$ac_func
38270
38271 /* System header to define __stub macros and hopefully few prototypes,
38272     which can conflict with char $ac_func (); below.
38273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38274     <limits.h> exists even on freestanding compilers.  */
38275
38276 #ifdef __STDC__
38277 # include <limits.h>
38278 #else
38279 # include <assert.h>
38280 #endif
38281
38282 #undef $ac_func
38283
38284 /* Override any GCC internal prototype to avoid an error.
38285    Use char because int might match the return type of a GCC
38286    builtin and then its argument prototype would still apply.  */
38287 #ifdef __cplusplus
38288 extern "C"
38289 #endif
38290 char $ac_func ();
38291 /* The GNU C library defines this for functions which it implements
38292     to always fail with ENOSYS.  Some functions are actually named
38293     something starting with __ and the normal name is an alias.  */
38294 #if defined __stub_$ac_func || defined __stub___$ac_func
38295 choke me
38296 #endif
38297
38298 int
38299 main ()
38300 {
38301 return $ac_func ();
38302   ;
38303   return 0;
38304 }
38305 _ACEOF
38306 rm -f conftest.$ac_objext conftest$ac_exeext
38307 if { (ac_try="$ac_link"
38308 case "(($ac_try" in
38309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38310   *) ac_try_echo=$ac_try;;
38311 esac
38312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38313   (eval "$ac_link") 2>conftest.er1
38314   ac_status=$?
38315   grep -v '^ *+' conftest.er1 >conftest.err
38316   rm -f conftest.er1
38317   cat conftest.err >&5
38318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319   (exit $ac_status); } && {
38320          test -z "$ac_c_werror_flag" ||
38321          test ! -s conftest.err
38322        } && test -s conftest$ac_exeext &&
38323        $as_test_x conftest$ac_exeext; then
38324   eval "$as_ac_var=yes"
38325 else
38326   echo "$as_me: failed program was:" >&5
38327 sed 's/^/| /' conftest.$ac_ext >&5
38328
38329         eval "$as_ac_var=no"
38330 fi
38331
38332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38333       conftest$ac_exeext conftest.$ac_ext
38334 fi
38335 ac_res=`eval echo '${'$as_ac_var'}'`
38336                { echo "$as_me:$LINENO: result: $ac_res" >&5
38337 echo "${ECHO_T}$ac_res" >&6; }
38338 if test `eval echo '${'$as_ac_var'}'` = yes; then
38339   cat >>confdefs.h <<_ACEOF
38340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38341 _ACEOF
38342  cat >>confdefs.h <<\_ACEOF
38343 #define HAVE_INET_ATON 1
38344 _ACEOF
38345
38346 else
38347
38348                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38349 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38350 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38351 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38352   echo $ECHO_N "(cached) $ECHO_C" >&6
38353 else
38354   ac_check_lib_save_LIBS=$LIBS
38355 LIBS="-l$INET_LINK  $LIBS"
38356 cat >conftest.$ac_ext <<_ACEOF
38357 /* confdefs.h.  */
38358 _ACEOF
38359 cat confdefs.h >>conftest.$ac_ext
38360 cat >>conftest.$ac_ext <<_ACEOF
38361 /* end confdefs.h.  */
38362
38363 /* Override any GCC internal prototype to avoid an error.
38364    Use char because int might match the return type of a GCC
38365    builtin and then its argument prototype would still apply.  */
38366 #ifdef __cplusplus
38367 extern "C"
38368 #endif
38369 char inet_aton ();
38370 int
38371 main ()
38372 {
38373 return inet_aton ();
38374   ;
38375   return 0;
38376 }
38377 _ACEOF
38378 rm -f conftest.$ac_objext conftest$ac_exeext
38379 if { (ac_try="$ac_link"
38380 case "(($ac_try" in
38381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38382   *) ac_try_echo=$ac_try;;
38383 esac
38384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38385   (eval "$ac_link") 2>conftest.er1
38386   ac_status=$?
38387   grep -v '^ *+' conftest.er1 >conftest.err
38388   rm -f conftest.er1
38389   cat conftest.err >&5
38390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391   (exit $ac_status); } && {
38392          test -z "$ac_c_werror_flag" ||
38393          test ! -s conftest.err
38394        } && test -s conftest$ac_exeext &&
38395        $as_test_x conftest$ac_exeext; then
38396   eval "$as_ac_Lib=yes"
38397 else
38398   echo "$as_me: failed program was:" >&5
38399 sed 's/^/| /' conftest.$ac_ext >&5
38400
38401         eval "$as_ac_Lib=no"
38402 fi
38403
38404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38405       conftest$ac_exeext conftest.$ac_ext
38406 LIBS=$ac_check_lib_save_LIBS
38407 fi
38408 ac_res=`eval echo '${'$as_ac_Lib'}'`
38409                { echo "$as_me:$LINENO: result: $ac_res" >&5
38410 echo "${ECHO_T}$ac_res" >&6; }
38411 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38412   cat >>confdefs.h <<\_ACEOF
38413 #define HAVE_INET_ATON 1
38414 _ACEOF
38415
38416 fi
38417
38418
38419 fi
38420 done
38421
38422
38423 if test "x$INET_LINK" != "x"; then
38424     cat >>confdefs.h <<\_ACEOF
38425 #define HAVE_INET_ADDR 1
38426 _ACEOF
38427
38428     INET_LINK=" -l$INET_LINK"
38429 fi
38430
38431
38432   for wx_func in fdopen
38433   do
38434     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38435 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38436 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38437   echo $ECHO_N "(cached) $ECHO_C" >&6
38438 else
38439
38440         cat >conftest.$ac_ext <<_ACEOF
38441
38442             /* confdefs.h.  */
38443 _ACEOF
38444 cat confdefs.h >>conftest.$ac_ext
38445 cat >>conftest.$ac_ext <<_ACEOF
38446 /* end confdefs.h.  */
38447
38448
38449                 $ac_includes_default
38450
38451 int
38452 main ()
38453 {
38454
38455                 #ifndef $wx_func
38456                   &$wx_func;
38457                 #endif
38458
38459
38460   ;
38461   return 0;
38462 }
38463
38464 _ACEOF
38465 rm -f conftest.$ac_objext conftest$ac_exeext
38466 if { (ac_try="$ac_link"
38467 case "(($ac_try" in
38468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38469   *) ac_try_echo=$ac_try;;
38470 esac
38471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38472   (eval "$ac_link") 2>conftest.er1
38473   ac_status=$?
38474   grep -v '^ *+' conftest.er1 >conftest.err
38475   rm -f conftest.er1
38476   cat conftest.err >&5
38477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478   (exit $ac_status); } && {
38479          test -z "$ac_c_werror_flag" ||
38480          test ! -s conftest.err
38481        } && test -s conftest$ac_exeext &&
38482        $as_test_x conftest$ac_exeext; then
38483   eval wx_cv_func_$wx_func=yes
38484 else
38485   echo "$as_me: failed program was:" >&5
38486 sed 's/^/| /' conftest.$ac_ext >&5
38487
38488         eval wx_cv_func_$wx_func=no
38489 fi
38490
38491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38492       conftest$ac_exeext conftest.$ac_ext
38493
38494 fi
38495 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38496                { echo "$as_me:$LINENO: result: $ac_res" >&5
38497 echo "${ECHO_T}$ac_res" >&6; }
38498
38499     if eval test \$wx_cv_func_$wx_func = yes
38500     then
38501       cat >>confdefs.h <<_ACEOF
38502 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38503 _ACEOF
38504
38505
38506     else
38507       :
38508
38509     fi
38510   done
38511
38512
38513 if test "$wxUSE_TARSTREAM" = "yes"; then
38514
38515   for wx_func in sysconf
38516   do
38517     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38518 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38519 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38520   echo $ECHO_N "(cached) $ECHO_C" >&6
38521 else
38522
38523         cat >conftest.$ac_ext <<_ACEOF
38524
38525             /* confdefs.h.  */
38526 _ACEOF
38527 cat confdefs.h >>conftest.$ac_ext
38528 cat >>conftest.$ac_ext <<_ACEOF
38529 /* end confdefs.h.  */
38530
38531
38532                 $ac_includes_default
38533
38534 int
38535 main ()
38536 {
38537
38538                 #ifndef $wx_func
38539                   &$wx_func;
38540                 #endif
38541
38542
38543   ;
38544   return 0;
38545 }
38546
38547 _ACEOF
38548 rm -f conftest.$ac_objext conftest$ac_exeext
38549 if { (ac_try="$ac_link"
38550 case "(($ac_try" in
38551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38552   *) ac_try_echo=$ac_try;;
38553 esac
38554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38555   (eval "$ac_link") 2>conftest.er1
38556   ac_status=$?
38557   grep -v '^ *+' conftest.er1 >conftest.err
38558   rm -f conftest.er1
38559   cat conftest.err >&5
38560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561   (exit $ac_status); } && {
38562          test -z "$ac_c_werror_flag" ||
38563          test ! -s conftest.err
38564        } && test -s conftest$ac_exeext &&
38565        $as_test_x conftest$ac_exeext; then
38566   eval wx_cv_func_$wx_func=yes
38567 else
38568   echo "$as_me: failed program was:" >&5
38569 sed 's/^/| /' conftest.$ac_ext >&5
38570
38571         eval wx_cv_func_$wx_func=no
38572 fi
38573
38574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38575       conftest$ac_exeext conftest.$ac_ext
38576
38577 fi
38578 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38579                { echo "$as_me:$LINENO: result: $ac_res" >&5
38580 echo "${ECHO_T}$ac_res" >&6; }
38581
38582     if eval test \$wx_cv_func_$wx_func = yes
38583     then
38584       cat >>confdefs.h <<_ACEOF
38585 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38586 _ACEOF
38587
38588
38589     else
38590       :
38591
38592     fi
38593   done
38594
38595
38596
38597   for wx_func in getpwuid_r
38598   do
38599     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38600 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38601 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38602   echo $ECHO_N "(cached) $ECHO_C" >&6
38603 else
38604
38605         cat >conftest.$ac_ext <<_ACEOF
38606
38607             /* confdefs.h.  */
38608 _ACEOF
38609 cat confdefs.h >>conftest.$ac_ext
38610 cat >>conftest.$ac_ext <<_ACEOF
38611 /* end confdefs.h.  */
38612
38613
38614                     #define _REENTRANT
38615                     #include <pwd.h>
38616
38617                 $ac_includes_default
38618
38619 int
38620 main ()
38621 {
38622
38623                 #ifndef $wx_func
38624                   &$wx_func;
38625                 #endif
38626
38627                     struct passwd pw, *ppw;
38628                     char buf[1024];
38629                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38630
38631
38632   ;
38633   return 0;
38634 }
38635
38636 _ACEOF
38637 rm -f conftest.$ac_objext conftest$ac_exeext
38638 if { (ac_try="$ac_link"
38639 case "(($ac_try" in
38640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38641   *) ac_try_echo=$ac_try;;
38642 esac
38643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38644   (eval "$ac_link") 2>conftest.er1
38645   ac_status=$?
38646   grep -v '^ *+' conftest.er1 >conftest.err
38647   rm -f conftest.er1
38648   cat conftest.err >&5
38649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38650   (exit $ac_status); } && {
38651          test -z "$ac_c_werror_flag" ||
38652          test ! -s conftest.err
38653        } && test -s conftest$ac_exeext &&
38654        $as_test_x conftest$ac_exeext; then
38655   eval wx_cv_func_$wx_func=yes
38656 else
38657   echo "$as_me: failed program was:" >&5
38658 sed 's/^/| /' conftest.$ac_ext >&5
38659
38660         eval wx_cv_func_$wx_func=no
38661 fi
38662
38663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38664       conftest$ac_exeext conftest.$ac_ext
38665
38666 fi
38667 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38668                { echo "$as_me:$LINENO: result: $ac_res" >&5
38669 echo "${ECHO_T}$ac_res" >&6; }
38670
38671     if eval test \$wx_cv_func_$wx_func = yes
38672     then
38673       cat >>confdefs.h <<_ACEOF
38674 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38675 _ACEOF
38676
38677
38678     else
38679       :
38680
38681     fi
38682   done
38683
38684
38685
38686   for wx_func in getgrgid_r
38687   do
38688     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38689 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38690 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38691   echo $ECHO_N "(cached) $ECHO_C" >&6
38692 else
38693
38694         cat >conftest.$ac_ext <<_ACEOF
38695
38696             /* confdefs.h.  */
38697 _ACEOF
38698 cat confdefs.h >>conftest.$ac_ext
38699 cat >>conftest.$ac_ext <<_ACEOF
38700 /* end confdefs.h.  */
38701
38702
38703                     #define _REENTRANT
38704                     #include <grp.h>
38705
38706                 $ac_includes_default
38707
38708 int
38709 main ()
38710 {
38711
38712                 #ifndef $wx_func
38713                   &$wx_func;
38714                 #endif
38715
38716                     struct group grp, *pgrp;
38717                     char buf[1024];
38718                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38719
38720
38721   ;
38722   return 0;
38723 }
38724
38725 _ACEOF
38726 rm -f conftest.$ac_objext conftest$ac_exeext
38727 if { (ac_try="$ac_link"
38728 case "(($ac_try" in
38729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38730   *) ac_try_echo=$ac_try;;
38731 esac
38732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38733   (eval "$ac_link") 2>conftest.er1
38734   ac_status=$?
38735   grep -v '^ *+' conftest.er1 >conftest.err
38736   rm -f conftest.er1
38737   cat conftest.err >&5
38738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739   (exit $ac_status); } && {
38740          test -z "$ac_c_werror_flag" ||
38741          test ! -s conftest.err
38742        } && test -s conftest$ac_exeext &&
38743        $as_test_x conftest$ac_exeext; then
38744   eval wx_cv_func_$wx_func=yes
38745 else
38746   echo "$as_me: failed program was:" >&5
38747 sed 's/^/| /' conftest.$ac_ext >&5
38748
38749         eval wx_cv_func_$wx_func=no
38750 fi
38751
38752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38753       conftest$ac_exeext conftest.$ac_ext
38754
38755 fi
38756 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38757                { echo "$as_me:$LINENO: result: $ac_res" >&5
38758 echo "${ECHO_T}$ac_res" >&6; }
38759
38760     if eval test \$wx_cv_func_$wx_func = yes
38761     then
38762       cat >>confdefs.h <<_ACEOF
38763 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38764 _ACEOF
38765
38766
38767     else
38768       :
38769
38770     fi
38771   done
38772
38773 fi
38774
38775 fi
38776
38777
38778
38779 cat >confcache <<\_ACEOF
38780 # This file is a shell script that caches the results of configure
38781 # tests run on this system so they can be shared between configure
38782 # scripts and configure runs, see configure's option --config-cache.
38783 # It is not useful on other systems.  If it contains results you don't
38784 # want to keep, you may remove or edit it.
38785 #
38786 # config.status only pays attention to the cache file if you give it
38787 # the --recheck option to rerun configure.
38788 #
38789 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38791 # following values.
38792
38793 _ACEOF
38794
38795 # The following way of writing the cache mishandles newlines in values,
38796 # but we know of no workaround that is simple, portable, and efficient.
38797 # So, we kill variables containing newlines.
38798 # Ultrix sh set writes to stderr and can't be redirected directly,
38799 # and sets the high bit in the cache file unless we assign to the vars.
38800 (
38801   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38802     eval ac_val=\$$ac_var
38803     case $ac_val in #(
38804     *${as_nl}*)
38805       case $ac_var in #(
38806       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38807 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38808       esac
38809       case $ac_var in #(
38810       _ | IFS | as_nl) ;; #(
38811       *) $as_unset $ac_var ;;
38812       esac ;;
38813     esac
38814   done
38815
38816   (set) 2>&1 |
38817     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38818     *${as_nl}ac_space=\ *)
38819       # `set' does not quote correctly, so add quotes (double-quote
38820       # substitution turns \\\\ into \\, and sed turns \\ into \).
38821       sed -n \
38822         "s/'/'\\\\''/g;
38823           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38824       ;; #(
38825     *)
38826       # `set' quotes correctly as required by POSIX, so do not add quotes.
38827       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38828       ;;
38829     esac |
38830     sort
38831 ) |
38832   sed '
38833      /^ac_cv_env_/b end
38834      t clear
38835      :clear
38836      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38837      t end
38838      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38839      :end' >>confcache
38840 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38841   if test -w "$cache_file"; then
38842     test "x$cache_file" != "x/dev/null" &&
38843       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38844 echo "$as_me: updating cache $cache_file" >&6;}
38845     cat confcache >$cache_file
38846   else
38847     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38848 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38849   fi
38850 fi
38851 rm -f confcache
38852
38853
38854 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38855
38856
38857     THREADS_LINK=
38858     THREADS_CFLAGS=
38859
38860     if test "$wxUSE_THREADS" = "yes" ; then
38861         if test "$USE_BEOS" = 1; then
38862             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38863 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38864             wxUSE_THREADS="no"
38865         fi
38866     fi
38867
38868     if test "$wxUSE_THREADS" = "yes" ; then
38869
38870
38871                                 THREAD_OPTS="-pthread"
38872         if test "x$SUNCXX" = xyes; then
38873             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38874         fi
38875
38876         case "${host}" in
38877           *-*-solaris2* | *-*-sunos4* )
38878                 if test "x$GCC" = "xyes"; then
38879                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38880                 fi
38881                 ;;
38882           *-*-freebsd*)
38883                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38884                 ;;
38885           *-*-darwin* | *-*-cygwin* )
38886                                                 THREAD_OPTS=""
38887                 ;;
38888           *-*-aix*)
38889                                 THREAD_OPTS="pthreads"
38890                 ;;
38891           *-hp-hpux* )
38892                 if test "x$GCC" = "xyes"; then
38893                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38894                         THREAD_OPTS=""
38895                 else
38896                                                             THREAD_OPTS="-mt"
38897                 fi
38898                 ;;
38899
38900           *-*-irix* )
38901                                                                 if test "x$GCC" = "xyes"; then
38902                     THREAD_OPTS=""
38903                 fi
38904                 ;;
38905
38906           *-*-*UnixWare*)
38907                                 if test "x$GCC" != "xyes"; then
38908                     THREAD_OPTS="-Ethread"
38909                 fi
38910                 ;;
38911         esac
38912
38913                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38914
38915                 THREADS_OK=no
38916         for flag in $THREAD_OPTS; do
38917             case $flag in
38918                 none)
38919                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38920 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38921                     ;;
38922
38923                 -*)
38924                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38925 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38926                     THREADS_CFLAGS="$flag"
38927                     ;;
38928
38929                 *)
38930                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38931 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38932                     THREADS_LINK="-l$flag"
38933                     ;;
38934               esac
38935
38936               save_LIBS="$LIBS"
38937               save_CFLAGS="$CFLAGS"
38938               LIBS="$THREADS_LINK $LIBS"
38939               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38940
38941               cat >conftest.$ac_ext <<_ACEOF
38942 /* confdefs.h.  */
38943 _ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h.  */
38947 #include <pthread.h>
38948 int
38949 main ()
38950 {
38951 pthread_create(0,0,0,0);
38952   ;
38953   return 0;
38954 }
38955 _ACEOF
38956 rm -f conftest.$ac_objext conftest$ac_exeext
38957 if { (ac_try="$ac_link"
38958 case "(($ac_try" in
38959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38960   *) ac_try_echo=$ac_try;;
38961 esac
38962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38963   (eval "$ac_link") 2>conftest.er1
38964   ac_status=$?
38965   grep -v '^ *+' conftest.er1 >conftest.err
38966   rm -f conftest.er1
38967   cat conftest.err >&5
38968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969   (exit $ac_status); } && {
38970          test -z "$ac_c_werror_flag" ||
38971          test ! -s conftest.err
38972        } && test -s conftest$ac_exeext &&
38973        $as_test_x conftest$ac_exeext; then
38974   THREADS_OK=yes
38975 else
38976   echo "$as_me: failed program was:" >&5
38977 sed 's/^/| /' conftest.$ac_ext >&5
38978
38979
38980 fi
38981
38982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38983       conftest$ac_exeext conftest.$ac_ext
38984
38985               LIBS="$save_LIBS"
38986               CFLAGS="$save_CFLAGS"
38987
38988               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38989 echo "${ECHO_T}$THREADS_OK" >&6; }
38990               if test "x$THREADS_OK" = "xyes"; then
38991                       break;
38992               fi
38993
38994               THREADS_LINK=""
38995               THREADS_CFLAGS=""
38996       done
38997
38998       if test "x$THREADS_OK" != "xyes"; then
38999           wxUSE_THREADS=no
39000           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39001 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39002       else
39003                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39004           LIBS="$THREADS_LINK $LIBS"
39005
39006           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39007 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39008           flag=no
39009           case "${host}" in
39010             *-aix*)
39011                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39012                 flag="-D_THREAD_SAFE"
39013                 ;;
39014             *-freebsd*)
39015                 flag="-D_THREAD_SAFE"
39016                 ;;
39017             *-hp-hpux* )
39018                 flag="-D_REENTRANT"
39019                 if test "x$GCC" != "xyes"; then
39020                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39021                 fi
39022                 ;;
39023             *solaris* | alpha*-osf*)
39024                 flag="-D_REENTRANT"
39025                 ;;
39026           esac
39027           { echo "$as_me:$LINENO: result: ${flag}" >&5
39028 echo "${ECHO_T}${flag}" >&6; }
39029           if test "x$flag" != xno; then
39030               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39031           fi
39032
39033                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39034       fi
39035     fi
39036
39037         if test "$wxUSE_THREADS" = "yes" ; then
39038
39039 for ac_func in thr_setconcurrency
39040 do
39041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39045   echo $ECHO_N "(cached) $ECHO_C" >&6
39046 else
39047   cat >conftest.$ac_ext <<_ACEOF
39048 /* confdefs.h.  */
39049 _ACEOF
39050 cat confdefs.h >>conftest.$ac_ext
39051 cat >>conftest.$ac_ext <<_ACEOF
39052 /* end confdefs.h.  */
39053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39055 #define $ac_func innocuous_$ac_func
39056
39057 /* System header to define __stub macros and hopefully few prototypes,
39058     which can conflict with char $ac_func (); below.
39059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39060     <limits.h> exists even on freestanding compilers.  */
39061
39062 #ifdef __STDC__
39063 # include <limits.h>
39064 #else
39065 # include <assert.h>
39066 #endif
39067
39068 #undef $ac_func
39069
39070 /* Override any GCC internal prototype to avoid an error.
39071    Use char because int might match the return type of a GCC
39072    builtin and then its argument prototype would still apply.  */
39073 #ifdef __cplusplus
39074 extern "C"
39075 #endif
39076 char $ac_func ();
39077 /* The GNU C library defines this for functions which it implements
39078     to always fail with ENOSYS.  Some functions are actually named
39079     something starting with __ and the normal name is an alias.  */
39080 #if defined __stub_$ac_func || defined __stub___$ac_func
39081 choke me
39082 #endif
39083
39084 int
39085 main ()
39086 {
39087 return $ac_func ();
39088   ;
39089   return 0;
39090 }
39091 _ACEOF
39092 rm -f conftest.$ac_objext conftest$ac_exeext
39093 if { (ac_try="$ac_link"
39094 case "(($ac_try" in
39095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39096   *) ac_try_echo=$ac_try;;
39097 esac
39098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39099   (eval "$ac_link") 2>conftest.er1
39100   ac_status=$?
39101   grep -v '^ *+' conftest.er1 >conftest.err
39102   rm -f conftest.er1
39103   cat conftest.err >&5
39104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39105   (exit $ac_status); } && {
39106          test -z "$ac_c_werror_flag" ||
39107          test ! -s conftest.err
39108        } && test -s conftest$ac_exeext &&
39109        $as_test_x conftest$ac_exeext; then
39110   eval "$as_ac_var=yes"
39111 else
39112   echo "$as_me: failed program was:" >&5
39113 sed 's/^/| /' conftest.$ac_ext >&5
39114
39115         eval "$as_ac_var=no"
39116 fi
39117
39118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39119       conftest$ac_exeext conftest.$ac_ext
39120 fi
39121 ac_res=`eval echo '${'$as_ac_var'}'`
39122                { echo "$as_me:$LINENO: result: $ac_res" >&5
39123 echo "${ECHO_T}$ac_res" >&6; }
39124 if test `eval echo '${'$as_ac_var'}'` = yes; then
39125   cat >>confdefs.h <<_ACEOF
39126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39127 _ACEOF
39128
39129 fi
39130 done
39131
39132
39133                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39134 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39135 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39136   echo $ECHO_N "(cached) $ECHO_C" >&6
39137 else
39138
39139                                 ac_ext=cpp
39140 ac_cpp='$CXXCPP $CPPFLAGS'
39141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39144
39145         cat >conftest.$ac_ext <<_ACEOF
39146 /* confdefs.h.  */
39147 _ACEOF
39148 cat confdefs.h >>conftest.$ac_ext
39149 cat >>conftest.$ac_ext <<_ACEOF
39150 /* end confdefs.h.  */
39151 #include <pthread.h>
39152                void ThreadCleanupFunc(void *p);
39153
39154 int
39155 main ()
39156 {
39157
39158                 void *p;
39159                 pthread_cleanup_push(ThreadCleanupFunc, p);
39160                 pthread_cleanup_pop(0);
39161
39162   ;
39163   return 0;
39164 }
39165 _ACEOF
39166 rm -f conftest.$ac_objext
39167 if { (ac_try="$ac_compile"
39168 case "(($ac_try" in
39169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39170   *) ac_try_echo=$ac_try;;
39171 esac
39172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39173   (eval "$ac_compile") 2>conftest.er1
39174   ac_status=$?
39175   grep -v '^ *+' conftest.er1 >conftest.err
39176   rm -f conftest.er1
39177   cat conftest.err >&5
39178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179   (exit $ac_status); } && {
39180          test -z "$ac_cxx_werror_flag" ||
39181          test ! -s conftest.err
39182        } && test -s conftest.$ac_objext; then
39183
39184                wx_cv_func_pthread_cleanup=yes
39185
39186 else
39187   echo "$as_me: failed program was:" >&5
39188 sed 's/^/| /' conftest.$ac_ext >&5
39189
39190
39191                wx_cv_func_pthread_cleanup=no
39192
39193
39194 fi
39195
39196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39197         ac_ext=c
39198 ac_cpp='$CPP $CPPFLAGS'
39199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39202
39203
39204 fi
39205 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39206 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39207       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39208         cat >>confdefs.h <<\_ACEOF
39209 #define wxHAVE_PTHREAD_CLEANUP 1
39210 _ACEOF
39211
39212       fi
39213
39214
39215 for ac_header in sched.h
39216 do
39217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39221   echo $ECHO_N "(cached) $ECHO_C" >&6
39222 else
39223   cat >conftest.$ac_ext <<_ACEOF
39224 /* confdefs.h.  */
39225 _ACEOF
39226 cat confdefs.h >>conftest.$ac_ext
39227 cat >>conftest.$ac_ext <<_ACEOF
39228 /* end confdefs.h.  */
39229 $ac_includes_default
39230
39231 #include <$ac_header>
39232 _ACEOF
39233 rm -f conftest.$ac_objext
39234 if { (ac_try="$ac_compile"
39235 case "(($ac_try" in
39236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39237   *) ac_try_echo=$ac_try;;
39238 esac
39239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39240   (eval "$ac_compile") 2>conftest.er1
39241   ac_status=$?
39242   grep -v '^ *+' conftest.er1 >conftest.err
39243   rm -f conftest.er1
39244   cat conftest.err >&5
39245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246   (exit $ac_status); } && {
39247          test -z "$ac_c_werror_flag" ||
39248          test ! -s conftest.err
39249        } && test -s conftest.$ac_objext; then
39250   eval "$as_ac_Header=yes"
39251 else
39252   echo "$as_me: failed program was:" >&5
39253 sed 's/^/| /' conftest.$ac_ext >&5
39254
39255         eval "$as_ac_Header=no"
39256 fi
39257
39258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39259 fi
39260 ac_res=`eval echo '${'$as_ac_Header'}'`
39261                { echo "$as_me:$LINENO: result: $ac_res" >&5
39262 echo "${ECHO_T}$ac_res" >&6; }
39263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39264   cat >>confdefs.h <<_ACEOF
39265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39266 _ACEOF
39267
39268 fi
39269
39270 done
39271
39272       if test "$ac_cv_header_sched_h" = "yes"; then
39273           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39274 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39275 if test "${ac_cv_func_sched_yield+set}" = set; then
39276   echo $ECHO_N "(cached) $ECHO_C" >&6
39277 else
39278   cat >conftest.$ac_ext <<_ACEOF
39279 /* confdefs.h.  */
39280 _ACEOF
39281 cat confdefs.h >>conftest.$ac_ext
39282 cat >>conftest.$ac_ext <<_ACEOF
39283 /* end confdefs.h.  */
39284 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39286 #define sched_yield innocuous_sched_yield
39287
39288 /* System header to define __stub macros and hopefully few prototypes,
39289     which can conflict with char sched_yield (); below.
39290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39291     <limits.h> exists even on freestanding compilers.  */
39292
39293 #ifdef __STDC__
39294 # include <limits.h>
39295 #else
39296 # include <assert.h>
39297 #endif
39298
39299 #undef sched_yield
39300
39301 /* Override any GCC internal prototype to avoid an error.
39302    Use char because int might match the return type of a GCC
39303    builtin and then its argument prototype would still apply.  */
39304 #ifdef __cplusplus
39305 extern "C"
39306 #endif
39307 char sched_yield ();
39308 /* The GNU C library defines this for functions which it implements
39309     to always fail with ENOSYS.  Some functions are actually named
39310     something starting with __ and the normal name is an alias.  */
39311 #if defined __stub_sched_yield || defined __stub___sched_yield
39312 choke me
39313 #endif
39314
39315 int
39316 main ()
39317 {
39318 return sched_yield ();
39319   ;
39320   return 0;
39321 }
39322 _ACEOF
39323 rm -f conftest.$ac_objext conftest$ac_exeext
39324 if { (ac_try="$ac_link"
39325 case "(($ac_try" in
39326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39327   *) ac_try_echo=$ac_try;;
39328 esac
39329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39330   (eval "$ac_link") 2>conftest.er1
39331   ac_status=$?
39332   grep -v '^ *+' conftest.er1 >conftest.err
39333   rm -f conftest.er1
39334   cat conftest.err >&5
39335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39336   (exit $ac_status); } && {
39337          test -z "$ac_c_werror_flag" ||
39338          test ! -s conftest.err
39339        } && test -s conftest$ac_exeext &&
39340        $as_test_x conftest$ac_exeext; then
39341   ac_cv_func_sched_yield=yes
39342 else
39343   echo "$as_me: failed program was:" >&5
39344 sed 's/^/| /' conftest.$ac_ext >&5
39345
39346         ac_cv_func_sched_yield=no
39347 fi
39348
39349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39350       conftest$ac_exeext conftest.$ac_ext
39351 fi
39352 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39353 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39354 if test $ac_cv_func_sched_yield = yes; then
39355   cat >>confdefs.h <<\_ACEOF
39356 #define HAVE_SCHED_YIELD 1
39357 _ACEOF
39358
39359 else
39360
39361                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39362 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39363 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39364   echo $ECHO_N "(cached) $ECHO_C" >&6
39365 else
39366   ac_check_lib_save_LIBS=$LIBS
39367 LIBS="-lposix4  $LIBS"
39368 cat >conftest.$ac_ext <<_ACEOF
39369 /* confdefs.h.  */
39370 _ACEOF
39371 cat confdefs.h >>conftest.$ac_ext
39372 cat >>conftest.$ac_ext <<_ACEOF
39373 /* end confdefs.h.  */
39374
39375 /* Override any GCC internal prototype to avoid an error.
39376    Use char because int might match the return type of a GCC
39377    builtin and then its argument prototype would still apply.  */
39378 #ifdef __cplusplus
39379 extern "C"
39380 #endif
39381 char sched_yield ();
39382 int
39383 main ()
39384 {
39385 return sched_yield ();
39386   ;
39387   return 0;
39388 }
39389 _ACEOF
39390 rm -f conftest.$ac_objext conftest$ac_exeext
39391 if { (ac_try="$ac_link"
39392 case "(($ac_try" in
39393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39394   *) ac_try_echo=$ac_try;;
39395 esac
39396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39397   (eval "$ac_link") 2>conftest.er1
39398   ac_status=$?
39399   grep -v '^ *+' conftest.er1 >conftest.err
39400   rm -f conftest.er1
39401   cat conftest.err >&5
39402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403   (exit $ac_status); } && {
39404          test -z "$ac_c_werror_flag" ||
39405          test ! -s conftest.err
39406        } && test -s conftest$ac_exeext &&
39407        $as_test_x conftest$ac_exeext; then
39408   ac_cv_lib_posix4_sched_yield=yes
39409 else
39410   echo "$as_me: failed program was:" >&5
39411 sed 's/^/| /' conftest.$ac_ext >&5
39412
39413         ac_cv_lib_posix4_sched_yield=no
39414 fi
39415
39416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39417       conftest$ac_exeext conftest.$ac_ext
39418 LIBS=$ac_check_lib_save_LIBS
39419 fi
39420 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39421 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39422 if test $ac_cv_lib_posix4_sched_yield = yes; then
39423   cat >>confdefs.h <<\_ACEOF
39424 #define HAVE_SCHED_YIELD 1
39425 _ACEOF
39426  POSIX4_LINK=" -lposix4"
39427 else
39428   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39429 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39430
39431 fi
39432
39433
39434
39435 fi
39436
39437       fi
39438
39439                                           HAVE_PRIOR_FUNCS=0
39440       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39441 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39442 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39443   echo $ECHO_N "(cached) $ECHO_C" >&6
39444 else
39445   cat >conftest.$ac_ext <<_ACEOF
39446 /* confdefs.h.  */
39447 _ACEOF
39448 cat confdefs.h >>conftest.$ac_ext
39449 cat >>conftest.$ac_ext <<_ACEOF
39450 /* end confdefs.h.  */
39451 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39453 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39454
39455 /* System header to define __stub macros and hopefully few prototypes,
39456     which can conflict with char pthread_attr_getschedpolicy (); below.
39457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39458     <limits.h> exists even on freestanding compilers.  */
39459
39460 #ifdef __STDC__
39461 # include <limits.h>
39462 #else
39463 # include <assert.h>
39464 #endif
39465
39466 #undef pthread_attr_getschedpolicy
39467
39468 /* Override any GCC internal prototype to avoid an error.
39469    Use char because int might match the return type of a GCC
39470    builtin and then its argument prototype would still apply.  */
39471 #ifdef __cplusplus
39472 extern "C"
39473 #endif
39474 char pthread_attr_getschedpolicy ();
39475 /* The GNU C library defines this for functions which it implements
39476     to always fail with ENOSYS.  Some functions are actually named
39477     something starting with __ and the normal name is an alias.  */
39478 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39479 choke me
39480 #endif
39481
39482 int
39483 main ()
39484 {
39485 return pthread_attr_getschedpolicy ();
39486   ;
39487   return 0;
39488 }
39489 _ACEOF
39490 rm -f conftest.$ac_objext conftest$ac_exeext
39491 if { (ac_try="$ac_link"
39492 case "(($ac_try" in
39493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39494   *) ac_try_echo=$ac_try;;
39495 esac
39496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39497   (eval "$ac_link") 2>conftest.er1
39498   ac_status=$?
39499   grep -v '^ *+' conftest.er1 >conftest.err
39500   rm -f conftest.er1
39501   cat conftest.err >&5
39502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39503   (exit $ac_status); } && {
39504          test -z "$ac_c_werror_flag" ||
39505          test ! -s conftest.err
39506        } && test -s conftest$ac_exeext &&
39507        $as_test_x conftest$ac_exeext; then
39508   ac_cv_func_pthread_attr_getschedpolicy=yes
39509 else
39510   echo "$as_me: failed program was:" >&5
39511 sed 's/^/| /' conftest.$ac_ext >&5
39512
39513         ac_cv_func_pthread_attr_getschedpolicy=no
39514 fi
39515
39516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39517       conftest$ac_exeext conftest.$ac_ext
39518 fi
39519 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39520 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39521 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39522   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39523 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39524 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39525   echo $ECHO_N "(cached) $ECHO_C" >&6
39526 else
39527   cat >conftest.$ac_ext <<_ACEOF
39528 /* confdefs.h.  */
39529 _ACEOF
39530 cat confdefs.h >>conftest.$ac_ext
39531 cat >>conftest.$ac_ext <<_ACEOF
39532 /* end confdefs.h.  */
39533 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39535 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39536
39537 /* System header to define __stub macros and hopefully few prototypes,
39538     which can conflict with char pthread_attr_setschedparam (); below.
39539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39540     <limits.h> exists even on freestanding compilers.  */
39541
39542 #ifdef __STDC__
39543 # include <limits.h>
39544 #else
39545 # include <assert.h>
39546 #endif
39547
39548 #undef pthread_attr_setschedparam
39549
39550 /* Override any GCC internal prototype to avoid an error.
39551    Use char because int might match the return type of a GCC
39552    builtin and then its argument prototype would still apply.  */
39553 #ifdef __cplusplus
39554 extern "C"
39555 #endif
39556 char pthread_attr_setschedparam ();
39557 /* The GNU C library defines this for functions which it implements
39558     to always fail with ENOSYS.  Some functions are actually named
39559     something starting with __ and the normal name is an alias.  */
39560 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39561 choke me
39562 #endif
39563
39564 int
39565 main ()
39566 {
39567 return pthread_attr_setschedparam ();
39568   ;
39569   return 0;
39570 }
39571 _ACEOF
39572 rm -f conftest.$ac_objext conftest$ac_exeext
39573 if { (ac_try="$ac_link"
39574 case "(($ac_try" in
39575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39576   *) ac_try_echo=$ac_try;;
39577 esac
39578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39579   (eval "$ac_link") 2>conftest.er1
39580   ac_status=$?
39581   grep -v '^ *+' conftest.er1 >conftest.err
39582   rm -f conftest.er1
39583   cat conftest.err >&5
39584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585   (exit $ac_status); } && {
39586          test -z "$ac_c_werror_flag" ||
39587          test ! -s conftest.err
39588        } && test -s conftest$ac_exeext &&
39589        $as_test_x conftest$ac_exeext; then
39590   ac_cv_func_pthread_attr_setschedparam=yes
39591 else
39592   echo "$as_me: failed program was:" >&5
39593 sed 's/^/| /' conftest.$ac_ext >&5
39594
39595         ac_cv_func_pthread_attr_setschedparam=no
39596 fi
39597
39598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39599       conftest$ac_exeext conftest.$ac_ext
39600 fi
39601 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39602 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39603 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39604   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39605 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39606 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39607   echo $ECHO_N "(cached) $ECHO_C" >&6
39608 else
39609   cat >conftest.$ac_ext <<_ACEOF
39610 /* confdefs.h.  */
39611 _ACEOF
39612 cat confdefs.h >>conftest.$ac_ext
39613 cat >>conftest.$ac_ext <<_ACEOF
39614 /* end confdefs.h.  */
39615 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39617 #define sched_get_priority_max innocuous_sched_get_priority_max
39618
39619 /* System header to define __stub macros and hopefully few prototypes,
39620     which can conflict with char sched_get_priority_max (); below.
39621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39622     <limits.h> exists even on freestanding compilers.  */
39623
39624 #ifdef __STDC__
39625 # include <limits.h>
39626 #else
39627 # include <assert.h>
39628 #endif
39629
39630 #undef sched_get_priority_max
39631
39632 /* Override any GCC internal prototype to avoid an error.
39633    Use char because int might match the return type of a GCC
39634    builtin and then its argument prototype would still apply.  */
39635 #ifdef __cplusplus
39636 extern "C"
39637 #endif
39638 char sched_get_priority_max ();
39639 /* The GNU C library defines this for functions which it implements
39640     to always fail with ENOSYS.  Some functions are actually named
39641     something starting with __ and the normal name is an alias.  */
39642 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39643 choke me
39644 #endif
39645
39646 int
39647 main ()
39648 {
39649 return sched_get_priority_max ();
39650   ;
39651   return 0;
39652 }
39653 _ACEOF
39654 rm -f conftest.$ac_objext conftest$ac_exeext
39655 if { (ac_try="$ac_link"
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_link") 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_exeext &&
39671        $as_test_x conftest$ac_exeext; then
39672   ac_cv_func_sched_get_priority_max=yes
39673 else
39674   echo "$as_me: failed program was:" >&5
39675 sed 's/^/| /' conftest.$ac_ext >&5
39676
39677         ac_cv_func_sched_get_priority_max=no
39678 fi
39679
39680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39681       conftest$ac_exeext conftest.$ac_ext
39682 fi
39683 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39684 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39685 if test $ac_cv_func_sched_get_priority_max = yes; then
39686   HAVE_PRIOR_FUNCS=1
39687 else
39688   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39689 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39690 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39691   echo $ECHO_N "(cached) $ECHO_C" >&6
39692 else
39693   ac_check_lib_save_LIBS=$LIBS
39694 LIBS="-lposix4  $LIBS"
39695 cat >conftest.$ac_ext <<_ACEOF
39696 /* confdefs.h.  */
39697 _ACEOF
39698 cat confdefs.h >>conftest.$ac_ext
39699 cat >>conftest.$ac_ext <<_ACEOF
39700 /* end confdefs.h.  */
39701
39702 /* Override any GCC internal prototype to avoid an error.
39703    Use char because int might match the return type of a GCC
39704    builtin and then its argument prototype would still apply.  */
39705 #ifdef __cplusplus
39706 extern "C"
39707 #endif
39708 char sched_get_priority_max ();
39709 int
39710 main ()
39711 {
39712 return sched_get_priority_max ();
39713   ;
39714   return 0;
39715 }
39716 _ACEOF
39717 rm -f conftest.$ac_objext conftest$ac_exeext
39718 if { (ac_try="$ac_link"
39719 case "(($ac_try" in
39720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39721   *) ac_try_echo=$ac_try;;
39722 esac
39723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39724   (eval "$ac_link") 2>conftest.er1
39725   ac_status=$?
39726   grep -v '^ *+' conftest.er1 >conftest.err
39727   rm -f conftest.er1
39728   cat conftest.err >&5
39729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730   (exit $ac_status); } && {
39731          test -z "$ac_c_werror_flag" ||
39732          test ! -s conftest.err
39733        } && test -s conftest$ac_exeext &&
39734        $as_test_x conftest$ac_exeext; then
39735   ac_cv_lib_posix4_sched_get_priority_max=yes
39736 else
39737   echo "$as_me: failed program was:" >&5
39738 sed 's/^/| /' conftest.$ac_ext >&5
39739
39740         ac_cv_lib_posix4_sched_get_priority_max=no
39741 fi
39742
39743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39744       conftest$ac_exeext conftest.$ac_ext
39745 LIBS=$ac_check_lib_save_LIBS
39746 fi
39747 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39748 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39749 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39750
39751                                 HAVE_PRIOR_FUNCS=1
39752                                 POSIX4_LINK=" -lposix4"
39753
39754 fi
39755
39756
39757 fi
39758
39759
39760 fi
39761
39762
39763 fi
39764
39765
39766       if test "$HAVE_PRIOR_FUNCS" = 1; then
39767         cat >>confdefs.h <<\_ACEOF
39768 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39769 _ACEOF
39770
39771       else
39772         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39773 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39774       fi
39775
39776       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39777 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39778 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39779   echo $ECHO_N "(cached) $ECHO_C" >&6
39780 else
39781   cat >conftest.$ac_ext <<_ACEOF
39782 /* confdefs.h.  */
39783 _ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h.  */
39787 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39789 #define pthread_cancel innocuous_pthread_cancel
39790
39791 /* System header to define __stub macros and hopefully few prototypes,
39792     which can conflict with char pthread_cancel (); below.
39793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39794     <limits.h> exists even on freestanding compilers.  */
39795
39796 #ifdef __STDC__
39797 # include <limits.h>
39798 #else
39799 # include <assert.h>
39800 #endif
39801
39802 #undef pthread_cancel
39803
39804 /* Override any GCC internal prototype to avoid an error.
39805    Use char because int might match the return type of a GCC
39806    builtin and then its argument prototype would still apply.  */
39807 #ifdef __cplusplus
39808 extern "C"
39809 #endif
39810 char pthread_cancel ();
39811 /* The GNU C library defines this for functions which it implements
39812     to always fail with ENOSYS.  Some functions are actually named
39813     something starting with __ and the normal name is an alias.  */
39814 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39815 choke me
39816 #endif
39817
39818 int
39819 main ()
39820 {
39821 return pthread_cancel ();
39822   ;
39823   return 0;
39824 }
39825 _ACEOF
39826 rm -f conftest.$ac_objext conftest$ac_exeext
39827 if { (ac_try="$ac_link"
39828 case "(($ac_try" in
39829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39830   *) ac_try_echo=$ac_try;;
39831 esac
39832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39833   (eval "$ac_link") 2>conftest.er1
39834   ac_status=$?
39835   grep -v '^ *+' conftest.er1 >conftest.err
39836   rm -f conftest.er1
39837   cat conftest.err >&5
39838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839   (exit $ac_status); } && {
39840          test -z "$ac_c_werror_flag" ||
39841          test ! -s conftest.err
39842        } && test -s conftest$ac_exeext &&
39843        $as_test_x conftest$ac_exeext; then
39844   ac_cv_func_pthread_cancel=yes
39845 else
39846   echo "$as_me: failed program was:" >&5
39847 sed 's/^/| /' conftest.$ac_ext >&5
39848
39849         ac_cv_func_pthread_cancel=no
39850 fi
39851
39852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39853       conftest$ac_exeext conftest.$ac_ext
39854 fi
39855 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39856 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39857 if test $ac_cv_func_pthread_cancel = yes; then
39858   cat >>confdefs.h <<\_ACEOF
39859 #define HAVE_PTHREAD_CANCEL 1
39860 _ACEOF
39861
39862 else
39863   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39864 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39865 fi
39866
39867
39868       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39869 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39870 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39871   echo $ECHO_N "(cached) $ECHO_C" >&6
39872 else
39873   cat >conftest.$ac_ext <<_ACEOF
39874 /* confdefs.h.  */
39875 _ACEOF
39876 cat confdefs.h >>conftest.$ac_ext
39877 cat >>conftest.$ac_ext <<_ACEOF
39878 /* end confdefs.h.  */
39879 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39881 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39882
39883 /* System header to define __stub macros and hopefully few prototypes,
39884     which can conflict with char pthread_mutex_timedlock (); below.
39885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39886     <limits.h> exists even on freestanding compilers.  */
39887
39888 #ifdef __STDC__
39889 # include <limits.h>
39890 #else
39891 # include <assert.h>
39892 #endif
39893
39894 #undef pthread_mutex_timedlock
39895
39896 /* Override any GCC internal prototype to avoid an error.
39897    Use char because int might match the return type of a GCC
39898    builtin and then its argument prototype would still apply.  */
39899 #ifdef __cplusplus
39900 extern "C"
39901 #endif
39902 char pthread_mutex_timedlock ();
39903 /* The GNU C library defines this for functions which it implements
39904     to always fail with ENOSYS.  Some functions are actually named
39905     something starting with __ and the normal name is an alias.  */
39906 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39907 choke me
39908 #endif
39909
39910 int
39911 main ()
39912 {
39913 return pthread_mutex_timedlock ();
39914   ;
39915   return 0;
39916 }
39917 _ACEOF
39918 rm -f conftest.$ac_objext conftest$ac_exeext
39919 if { (ac_try="$ac_link"
39920 case "(($ac_try" in
39921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39922   *) ac_try_echo=$ac_try;;
39923 esac
39924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39925   (eval "$ac_link") 2>conftest.er1
39926   ac_status=$?
39927   grep -v '^ *+' conftest.er1 >conftest.err
39928   rm -f conftest.er1
39929   cat conftest.err >&5
39930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931   (exit $ac_status); } && {
39932          test -z "$ac_c_werror_flag" ||
39933          test ! -s conftest.err
39934        } && test -s conftest$ac_exeext &&
39935        $as_test_x conftest$ac_exeext; then
39936   ac_cv_func_pthread_mutex_timedlock=yes
39937 else
39938   echo "$as_me: failed program was:" >&5
39939 sed 's/^/| /' conftest.$ac_ext >&5
39940
39941         ac_cv_func_pthread_mutex_timedlock=no
39942 fi
39943
39944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39945       conftest$ac_exeext conftest.$ac_ext
39946 fi
39947 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39948 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39949 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39950   cat >>confdefs.h <<\_ACEOF
39951 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39952 _ACEOF
39953
39954 else
39955   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39956 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39957 fi
39958
39959
39960       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39961 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39962 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39963   echo $ECHO_N "(cached) $ECHO_C" >&6
39964 else
39965   cat >conftest.$ac_ext <<_ACEOF
39966 /* confdefs.h.  */
39967 _ACEOF
39968 cat confdefs.h >>conftest.$ac_ext
39969 cat >>conftest.$ac_ext <<_ACEOF
39970 /* end confdefs.h.  */
39971 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39973 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39974
39975 /* System header to define __stub macros and hopefully few prototypes,
39976     which can conflict with char pthread_attr_setstacksize (); below.
39977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39978     <limits.h> exists even on freestanding compilers.  */
39979
39980 #ifdef __STDC__
39981 # include <limits.h>
39982 #else
39983 # include <assert.h>
39984 #endif
39985
39986 #undef pthread_attr_setstacksize
39987
39988 /* Override any GCC internal prototype to avoid an error.
39989    Use char because int might match the return type of a GCC
39990    builtin and then its argument prototype would still apply.  */
39991 #ifdef __cplusplus
39992 extern "C"
39993 #endif
39994 char pthread_attr_setstacksize ();
39995 /* The GNU C library defines this for functions which it implements
39996     to always fail with ENOSYS.  Some functions are actually named
39997     something starting with __ and the normal name is an alias.  */
39998 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39999 choke me
40000 #endif
40001
40002 int
40003 main ()
40004 {
40005 return pthread_attr_setstacksize ();
40006   ;
40007   return 0;
40008 }
40009 _ACEOF
40010 rm -f conftest.$ac_objext conftest$ac_exeext
40011 if { (ac_try="$ac_link"
40012 case "(($ac_try" in
40013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40014   *) ac_try_echo=$ac_try;;
40015 esac
40016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40017   (eval "$ac_link") 2>conftest.er1
40018   ac_status=$?
40019   grep -v '^ *+' conftest.er1 >conftest.err
40020   rm -f conftest.er1
40021   cat conftest.err >&5
40022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023   (exit $ac_status); } && {
40024          test -z "$ac_c_werror_flag" ||
40025          test ! -s conftest.err
40026        } && test -s conftest$ac_exeext &&
40027        $as_test_x conftest$ac_exeext; then
40028   ac_cv_func_pthread_attr_setstacksize=yes
40029 else
40030   echo "$as_me: failed program was:" >&5
40031 sed 's/^/| /' conftest.$ac_ext >&5
40032
40033         ac_cv_func_pthread_attr_setstacksize=no
40034 fi
40035
40036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40037       conftest$ac_exeext conftest.$ac_ext
40038 fi
40039 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40040 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40041 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40042   cat >>confdefs.h <<\_ACEOF
40043 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40044 _ACEOF
40045
40046 fi
40047
40048
40049
40050       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40051 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40052 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40053   echo $ECHO_N "(cached) $ECHO_C" >&6
40054 else
40055
40056         cat >conftest.$ac_ext <<_ACEOF
40057 /* confdefs.h.  */
40058 _ACEOF
40059 cat confdefs.h >>conftest.$ac_ext
40060 cat >>conftest.$ac_ext <<_ACEOF
40061 /* end confdefs.h.  */
40062 #include <pthread.h>
40063 int
40064 main ()
40065 {
40066
40067                pthread_mutexattr_t attr;
40068                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40069
40070   ;
40071   return 0;
40072 }
40073 _ACEOF
40074 rm -f conftest.$ac_objext
40075 if { (ac_try="$ac_compile"
40076 case "(($ac_try" in
40077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40078   *) ac_try_echo=$ac_try;;
40079 esac
40080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40081   (eval "$ac_compile") 2>conftest.er1
40082   ac_status=$?
40083   grep -v '^ *+' conftest.er1 >conftest.err
40084   rm -f conftest.er1
40085   cat conftest.err >&5
40086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087   (exit $ac_status); } && {
40088          test -z "$ac_c_werror_flag" ||
40089          test ! -s conftest.err
40090        } && test -s conftest.$ac_objext; then
40091   wx_cv_type_pthread_mutexattr_t=yes
40092 else
40093   echo "$as_me: failed program was:" >&5
40094 sed 's/^/| /' conftest.$ac_ext >&5
40095
40096         wx_cv_type_pthread_mutexattr_t=no
40097
40098 fi
40099
40100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40101
40102 fi
40103 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40104 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40105
40106       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40107         cat >>confdefs.h <<\_ACEOF
40108 #define HAVE_PTHREAD_MUTEXATTR_T 1
40109 _ACEOF
40110
40111
40112                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40113 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40114 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40115   echo $ECHO_N "(cached) $ECHO_C" >&6
40116 else
40117
40118                        cat >conftest.$ac_ext <<_ACEOF
40119 /* confdefs.h.  */
40120 _ACEOF
40121 cat confdefs.h >>conftest.$ac_ext
40122 cat >>conftest.$ac_ext <<_ACEOF
40123 /* end confdefs.h.  */
40124 #include <pthread.h>
40125 int
40126 main ()
40127 {
40128
40129                                pthread_mutexattr_t attr;
40130                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40131
40132   ;
40133   return 0;
40134 }
40135 _ACEOF
40136 rm -f conftest.$ac_objext
40137 if { (ac_try="$ac_compile"
40138 case "(($ac_try" in
40139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40140   *) ac_try_echo=$ac_try;;
40141 esac
40142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40143   (eval "$ac_compile") 2>conftest.er1
40144   ac_status=$?
40145   grep -v '^ *+' conftest.er1 >conftest.err
40146   rm -f conftest.er1
40147   cat conftest.err >&5
40148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149   (exit $ac_status); } && {
40150          test -z "$ac_c_werror_flag" ||
40151          test ! -s conftest.err
40152        } && test -s conftest.$ac_objext; then
40153   wx_cv_func_pthread_mutexattr_settype_decl=yes
40154 else
40155   echo "$as_me: failed program was:" >&5
40156 sed 's/^/| /' conftest.$ac_ext >&5
40157
40158         wx_cv_func_pthread_mutexattr_settype_decl=no
40159
40160 fi
40161
40162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40163
40164 fi
40165 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40166 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40167         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40168             cat >>confdefs.h <<\_ACEOF
40169 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40170 _ACEOF
40171
40172         fi
40173       else
40174                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40175 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40176 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40177   echo $ECHO_N "(cached) $ECHO_C" >&6
40178 else
40179
40180             cat >conftest.$ac_ext <<_ACEOF
40181 /* confdefs.h.  */
40182 _ACEOF
40183 cat confdefs.h >>conftest.$ac_ext
40184 cat >>conftest.$ac_ext <<_ACEOF
40185 /* end confdefs.h.  */
40186 #include <pthread.h>
40187 int
40188 main ()
40189 {
40190
40191                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40192
40193   ;
40194   return 0;
40195 }
40196 _ACEOF
40197 rm -f conftest.$ac_objext
40198 if { (ac_try="$ac_compile"
40199 case "(($ac_try" in
40200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40201   *) ac_try_echo=$ac_try;;
40202 esac
40203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40204   (eval "$ac_compile") 2>conftest.er1
40205   ac_status=$?
40206   grep -v '^ *+' conftest.er1 >conftest.err
40207   rm -f conftest.er1
40208   cat conftest.err >&5
40209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210   (exit $ac_status); } && {
40211          test -z "$ac_c_werror_flag" ||
40212          test ! -s conftest.err
40213        } && test -s conftest.$ac_objext; then
40214
40215                     wx_cv_type_pthread_rec_mutex_init=yes
40216
40217 else
40218   echo "$as_me: failed program was:" >&5
40219 sed 's/^/| /' conftest.$ac_ext >&5
40220
40221
40222                     wx_cv_type_pthread_rec_mutex_init=no
40223
40224
40225 fi
40226
40227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40228
40229 fi
40230 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40231 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40232         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40233           cat >>confdefs.h <<\_ACEOF
40234 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40235 _ACEOF
40236
40237         else
40238                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40239 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40240         fi
40241       fi
40242
40243             { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40244 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40245 if test "${wx_cv_cc___thread+set}" = set; then
40246   echo $ECHO_N "(cached) $ECHO_C" >&6
40247 else
40248
40249               cat >conftest.$ac_ext <<_ACEOF
40250 /* confdefs.h.  */
40251 _ACEOF
40252 cat confdefs.h >>conftest.$ac_ext
40253 cat >>conftest.$ac_ext <<_ACEOF
40254 /* end confdefs.h.  */
40255 #include <pthread.h>
40256 int
40257 main ()
40258 {
40259
40260                       static __thread int n = 0;
40261                       static __thread int *p = 0;
40262
40263   ;
40264   return 0;
40265 }
40266 _ACEOF
40267 rm -f conftest.$ac_objext
40268 if { (ac_try="$ac_compile"
40269 case "(($ac_try" in
40270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40271   *) ac_try_echo=$ac_try;;
40272 esac
40273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40274   (eval "$ac_compile") 2>conftest.er1
40275   ac_status=$?
40276   grep -v '^ *+' conftest.er1 >conftest.err
40277   rm -f conftest.er1
40278   cat conftest.err >&5
40279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280   (exit $ac_status); } && {
40281          test -z "$ac_c_werror_flag" ||
40282          test ! -s conftest.err
40283        } && test -s conftest.$ac_objext; then
40284   wx_cv_cc___thread=yes
40285 else
40286   echo "$as_me: failed program was:" >&5
40287 sed 's/^/| /' conftest.$ac_ext >&5
40288
40289         wx_cv_cc___thread=no
40290
40291 fi
40292
40293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40294
40295
40296 fi
40297 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40298 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40299
40300       if test "$wx_cv_cc___thread" = "yes"; then
40301
40302   GXX_VERSION=""
40303
40304
40305
40306   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40307 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40308
40309   if  test "x$GCC" = "xyes" ; then
40310
40311     if  test -z "" ; then
40312
40313       ax_gcc_option_test="int main()
40314 {
40315         return 0;
40316 }"
40317
40318 else
40319
40320       ax_gcc_option_test=""
40321
40322 fi
40323
40324
40325     # Dump the test program to file
40326     cat <<EOF > conftest.c
40327 $ax_gcc_option_test
40328 EOF
40329
40330     # Dump back the file to the log, useful for debugging purposes
40331     { ac_try='cat conftest.c 1>&5'
40332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40333   (eval $ac_try) 2>&5
40334   ac_status=$?
40335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336   (exit $ac_status); }; }
40337
40338     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40340   (eval $ac_try) 2>&5
40341   ac_status=$?
40342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343   (exit $ac_status); }; } ; then
40344
40345                 { echo "$as_me:$LINENO: result: yes" >&5
40346 echo "${ECHO_T}yes" >&6; }
40347
40348     ax_gcc_version_option=yes
40349
40350
40351 else
40352
40353                 { echo "$as_me:$LINENO: result: no" >&5
40354 echo "${ECHO_T}no" >&6; }
40355
40356     ax_gcc_version_option=no
40357
40358
40359 fi
40360
40361
40362 else
40363
40364     { echo "$as_me:$LINENO: result: no gcc available" >&5
40365 echo "${ECHO_T}no gcc available" >&6; }
40366
40367 fi
40368
40369
40370   if test "x$GXX" = "xyes"; then
40371
40372     if test "x$ax_gxx_version_option" != "no"; then
40373
40374       { echo "$as_me:$LINENO: checking gxx version" >&5
40375 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40376 if test "${ax_cv_gxx_version+set}" = set; then
40377   echo $ECHO_N "(cached) $ECHO_C" >&6
40378 else
40379
40380         ax_cv_gxx_version="`$CXX -dumpversion`"
40381         if test "x$ax_cv_gxx_version" = "x"; then
40382
40383           ax_cv_gxx_version=""
40384
40385 fi
40386
40387
40388 fi
40389 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40390 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40391       GXX_VERSION=$ax_cv_gxx_version
40392
40393 fi
40394
40395
40396 fi
40397
40398
40399
40400           if test -n "$ax_cv_gxx_version"; then
40401                                                                                                                               { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40402 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40403               case "$ax_cv_gxx_version" in
40404                 1.* | 2.* | 3.* )
40405                     { echo "$as_me:$LINENO: result: no, it's broken" >&5
40406 echo "${ECHO_T}no, it's broken" >&6; }
40407                     wx_cv_cc___thread=no
40408                     ;;
40409                 *)
40410                     { echo "$as_me:$LINENO: result: yes, it works" >&5
40411 echo "${ECHO_T}yes, it works" >&6; }
40412                     ;;
40413               esac
40414           fi
40415       fi
40416
40417       if test "$wx_cv_cc___thread" = "yes"; then
40418         cat >>confdefs.h <<\_ACEOF
40419 #define HAVE___THREAD_KEYWORD 1
40420 _ACEOF
40421
40422       fi
40423     fi
40424
40425 else
40426     if test "$wxUSE_THREADS" = "yes" ; then
40427       case "${host}" in
40428         x86_64-*-mingw32* )
40429         ;;
40430         *-*-mingw32* )
40431                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40432 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40433 if test "${wx_cv_cflags_mthread+set}" = set; then
40434   echo $ECHO_N "(cached) $ECHO_C" >&6
40435 else
40436
40437                     CFLAGS_OLD="$CFLAGS"
40438                     CFLAGS="-mthreads $CFLAGS"
40439                     cat >conftest.$ac_ext <<_ACEOF
40440 /* confdefs.h.  */
40441 _ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h.  */
40445
40446 int
40447 main ()
40448 {
40449
40450   ;
40451   return 0;
40452 }
40453 _ACEOF
40454 rm -f conftest.$ac_objext
40455 if { (ac_try="$ac_compile"
40456 case "(($ac_try" in
40457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40458   *) ac_try_echo=$ac_try;;
40459 esac
40460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40461   (eval "$ac_compile") 2>conftest.er1
40462   ac_status=$?
40463   grep -v '^ *+' conftest.er1 >conftest.err
40464   rm -f conftest.er1
40465   cat conftest.err >&5
40466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40467   (exit $ac_status); } && {
40468          test -z "$ac_c_werror_flag" ||
40469          test ! -s conftest.err
40470        } && test -s conftest.$ac_objext; then
40471   wx_cv_cflags_mthread=yes
40472 else
40473   echo "$as_me: failed program was:" >&5
40474 sed 's/^/| /' conftest.$ac_ext >&5
40475
40476         wx_cv_cflags_mthread=no
40477
40478 fi
40479
40480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40481
40482
40483 fi
40484 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40485 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40486
40487             if test "$wx_cv_cflags_mthread" = "yes"; then
40488                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40489                 LDFLAGS="$LDFLAGS -mthreads"
40490             else
40491                                 CFLAGS="$CFLAGS_OLD"
40492             fi
40493         ;;
40494         *-pc-os2*emx )
40495             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40496             LDFLAGS="$LDFLAGS -Zmt"
40497         ;;
40498       esac
40499     fi
40500 fi
40501
40502 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40503 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40504 if test "${ac_cv_func_localtime_r+set}" = set; then
40505   echo $ECHO_N "(cached) $ECHO_C" >&6
40506 else
40507   cat >conftest.$ac_ext <<_ACEOF
40508 /* confdefs.h.  */
40509 _ACEOF
40510 cat confdefs.h >>conftest.$ac_ext
40511 cat >>conftest.$ac_ext <<_ACEOF
40512 /* end confdefs.h.  */
40513 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40515 #define localtime_r innocuous_localtime_r
40516
40517 /* System header to define __stub macros and hopefully few prototypes,
40518     which can conflict with char localtime_r (); below.
40519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40520     <limits.h> exists even on freestanding compilers.  */
40521
40522 #ifdef __STDC__
40523 # include <limits.h>
40524 #else
40525 # include <assert.h>
40526 #endif
40527
40528 #undef localtime_r
40529
40530 /* Override any GCC internal prototype to avoid an error.
40531    Use char because int might match the return type of a GCC
40532    builtin and then its argument prototype would still apply.  */
40533 #ifdef __cplusplus
40534 extern "C"
40535 #endif
40536 char localtime_r ();
40537 /* The GNU C library defines this for functions which it implements
40538     to always fail with ENOSYS.  Some functions are actually named
40539     something starting with __ and the normal name is an alias.  */
40540 #if defined __stub_localtime_r || defined __stub___localtime_r
40541 choke me
40542 #endif
40543
40544 int
40545 main ()
40546 {
40547 return localtime_r ();
40548   ;
40549   return 0;
40550 }
40551 _ACEOF
40552 rm -f conftest.$ac_objext conftest$ac_exeext
40553 if { (ac_try="$ac_link"
40554 case "(($ac_try" in
40555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40556   *) ac_try_echo=$ac_try;;
40557 esac
40558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40559   (eval "$ac_link") 2>conftest.er1
40560   ac_status=$?
40561   grep -v '^ *+' conftest.er1 >conftest.err
40562   rm -f conftest.er1
40563   cat conftest.err >&5
40564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565   (exit $ac_status); } && {
40566          test -z "$ac_c_werror_flag" ||
40567          test ! -s conftest.err
40568        } && test -s conftest$ac_exeext &&
40569        $as_test_x conftest$ac_exeext; then
40570   ac_cv_func_localtime_r=yes
40571 else
40572   echo "$as_me: failed program was:" >&5
40573 sed 's/^/| /' conftest.$ac_ext >&5
40574
40575         ac_cv_func_localtime_r=no
40576 fi
40577
40578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40579       conftest$ac_exeext conftest.$ac_ext
40580 fi
40581 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40582 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40583 if test $ac_cv_func_localtime_r = yes; then
40584    cat >>confdefs.h <<\_ACEOF
40585 #define HAVE_LOCALTIME_R 1
40586 _ACEOF
40587
40588 fi
40589
40590 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40591 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40592 if test "${ac_cv_func_gmtime_r+set}" = set; then
40593   echo $ECHO_N "(cached) $ECHO_C" >&6
40594 else
40595   cat >conftest.$ac_ext <<_ACEOF
40596 /* confdefs.h.  */
40597 _ACEOF
40598 cat confdefs.h >>conftest.$ac_ext
40599 cat >>conftest.$ac_ext <<_ACEOF
40600 /* end confdefs.h.  */
40601 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40603 #define gmtime_r innocuous_gmtime_r
40604
40605 /* System header to define __stub macros and hopefully few prototypes,
40606     which can conflict with char gmtime_r (); below.
40607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40608     <limits.h> exists even on freestanding compilers.  */
40609
40610 #ifdef __STDC__
40611 # include <limits.h>
40612 #else
40613 # include <assert.h>
40614 #endif
40615
40616 #undef gmtime_r
40617
40618 /* Override any GCC internal prototype to avoid an error.
40619    Use char because int might match the return type of a GCC
40620    builtin and then its argument prototype would still apply.  */
40621 #ifdef __cplusplus
40622 extern "C"
40623 #endif
40624 char gmtime_r ();
40625 /* The GNU C library defines this for functions which it implements
40626     to always fail with ENOSYS.  Some functions are actually named
40627     something starting with __ and the normal name is an alias.  */
40628 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40629 choke me
40630 #endif
40631
40632 int
40633 main ()
40634 {
40635 return gmtime_r ();
40636   ;
40637   return 0;
40638 }
40639 _ACEOF
40640 rm -f conftest.$ac_objext conftest$ac_exeext
40641 if { (ac_try="$ac_link"
40642 case "(($ac_try" in
40643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40644   *) ac_try_echo=$ac_try;;
40645 esac
40646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40647   (eval "$ac_link") 2>conftest.er1
40648   ac_status=$?
40649   grep -v '^ *+' conftest.er1 >conftest.err
40650   rm -f conftest.er1
40651   cat conftest.err >&5
40652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653   (exit $ac_status); } && {
40654          test -z "$ac_c_werror_flag" ||
40655          test ! -s conftest.err
40656        } && test -s conftest$ac_exeext &&
40657        $as_test_x conftest$ac_exeext; then
40658   ac_cv_func_gmtime_r=yes
40659 else
40660   echo "$as_me: failed program was:" >&5
40661 sed 's/^/| /' conftest.$ac_ext >&5
40662
40663         ac_cv_func_gmtime_r=no
40664 fi
40665
40666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40667       conftest$ac_exeext conftest.$ac_ext
40668 fi
40669 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40670 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40671 if test $ac_cv_func_gmtime_r = yes; then
40672    cat >>confdefs.h <<\_ACEOF
40673 #define HAVE_GMTIME_R 1
40674 _ACEOF
40675
40676 fi
40677
40678
40679
40680
40681     ac_ext=c
40682 ac_cpp='$CPP $CPPFLAGS'
40683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40686
40687     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40688 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40689
40690     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40691   echo $ECHO_N "(cached) $ECHO_C" >&6
40692 else
40693
40694
40695 ################################################################
40696
40697 ac_cv_func_which_gethostbyname_r=unknown
40698
40699 #
40700 # ONE ARGUMENT (sanity check)
40701 #
40702
40703 # This should fail, as there is no variant of gethostbyname_r() that takes
40704 # a single argument. If it actually compiles, then we can assume that
40705 # netdb.h is not declaring the function, and the compiler is thereby
40706 # assuming an implicit prototype. In which case, we're out of luck.
40707 #
40708 cat >conftest.$ac_ext <<_ACEOF
40709 /* confdefs.h.  */
40710 _ACEOF
40711 cat confdefs.h >>conftest.$ac_ext
40712 cat >>conftest.$ac_ext <<_ACEOF
40713 /* end confdefs.h.  */
40714 #include <netdb.h>
40715 int
40716 main ()
40717 {
40718
40719             char *name = "www.gnu.org";
40720             (void)gethostbyname_r(name) /* ; */
40721
40722   ;
40723   return 0;
40724 }
40725 _ACEOF
40726 rm -f conftest.$ac_objext
40727 if { (ac_try="$ac_compile"
40728 case "(($ac_try" in
40729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40730   *) ac_try_echo=$ac_try;;
40731 esac
40732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40733   (eval "$ac_compile") 2>conftest.er1
40734   ac_status=$?
40735   grep -v '^ *+' conftest.er1 >conftest.err
40736   rm -f conftest.er1
40737   cat conftest.err >&5
40738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739   (exit $ac_status); } && {
40740          test -z "$ac_c_werror_flag" ||
40741          test ! -s conftest.err
40742        } && test -s conftest.$ac_objext; then
40743   ac_cv_func_which_gethostbyname_r=no
40744 else
40745   echo "$as_me: failed program was:" >&5
40746 sed 's/^/| /' conftest.$ac_ext >&5
40747
40748
40749 fi
40750
40751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40752
40753 #
40754 # SIX ARGUMENTS
40755 # (e.g. Linux)
40756 #
40757
40758 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40759
40760 cat >conftest.$ac_ext <<_ACEOF
40761 /* confdefs.h.  */
40762 _ACEOF
40763 cat confdefs.h >>conftest.$ac_ext
40764 cat >>conftest.$ac_ext <<_ACEOF
40765 /* end confdefs.h.  */
40766 #include <netdb.h>
40767 int
40768 main ()
40769 {
40770
40771             char *name = "www.gnu.org";
40772             struct hostent ret, *retp;
40773             char buf[1024];
40774             int buflen = 1024;
40775             int my_h_errno;
40776             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40777
40778   ;
40779   return 0;
40780 }
40781 _ACEOF
40782 rm -f conftest.$ac_objext
40783 if { (ac_try="$ac_compile"
40784 case "(($ac_try" in
40785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40786   *) ac_try_echo=$ac_try;;
40787 esac
40788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40789   (eval "$ac_compile") 2>conftest.er1
40790   ac_status=$?
40791   grep -v '^ *+' conftest.er1 >conftest.err
40792   rm -f conftest.er1
40793   cat conftest.err >&5
40794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40795   (exit $ac_status); } && {
40796          test -z "$ac_c_werror_flag" ||
40797          test ! -s conftest.err
40798        } && test -s conftest.$ac_objext; then
40799   ac_cv_func_which_gethostbyname_r=six
40800 else
40801   echo "$as_me: failed program was:" >&5
40802 sed 's/^/| /' conftest.$ac_ext >&5
40803
40804
40805 fi
40806
40807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40808
40809 fi
40810
40811 #
40812 # FIVE ARGUMENTS
40813 # (e.g. Solaris)
40814 #
40815
40816 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40817
40818 cat >conftest.$ac_ext <<_ACEOF
40819 /* confdefs.h.  */
40820 _ACEOF
40821 cat confdefs.h >>conftest.$ac_ext
40822 cat >>conftest.$ac_ext <<_ACEOF
40823 /* end confdefs.h.  */
40824 #include <netdb.h>
40825 int
40826 main ()
40827 {
40828
40829             char *name = "www.gnu.org";
40830             struct hostent ret;
40831             char buf[1024];
40832             int buflen = 1024;
40833             int my_h_errno;
40834             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40835
40836   ;
40837   return 0;
40838 }
40839 _ACEOF
40840 rm -f conftest.$ac_objext
40841 if { (ac_try="$ac_compile"
40842 case "(($ac_try" in
40843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40844   *) ac_try_echo=$ac_try;;
40845 esac
40846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40847   (eval "$ac_compile") 2>conftest.er1
40848   ac_status=$?
40849   grep -v '^ *+' conftest.er1 >conftest.err
40850   rm -f conftest.er1
40851   cat conftest.err >&5
40852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853   (exit $ac_status); } && {
40854          test -z "$ac_c_werror_flag" ||
40855          test ! -s conftest.err
40856        } && test -s conftest.$ac_objext; then
40857   ac_cv_func_which_gethostbyname_r=five
40858 else
40859   echo "$as_me: failed program was:" >&5
40860 sed 's/^/| /' conftest.$ac_ext >&5
40861
40862
40863 fi
40864
40865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40866
40867 fi
40868
40869 #
40870 # THREE ARGUMENTS
40871 # (e.g. AIX, HP-UX, Tru64)
40872 #
40873
40874 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40875
40876 cat >conftest.$ac_ext <<_ACEOF
40877 /* confdefs.h.  */
40878 _ACEOF
40879 cat confdefs.h >>conftest.$ac_ext
40880 cat >>conftest.$ac_ext <<_ACEOF
40881 /* end confdefs.h.  */
40882 #include <netdb.h>
40883 int
40884 main ()
40885 {
40886
40887             char *name = "www.gnu.org";
40888             struct hostent ret;
40889             struct hostent_data data;
40890             (void)gethostbyname_r(name, &ret, &data) /* ; */
40891
40892   ;
40893   return 0;
40894 }
40895 _ACEOF
40896 rm -f conftest.$ac_objext
40897 if { (ac_try="$ac_compile"
40898 case "(($ac_try" in
40899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40900   *) ac_try_echo=$ac_try;;
40901 esac
40902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40903   (eval "$ac_compile") 2>conftest.er1
40904   ac_status=$?
40905   grep -v '^ *+' conftest.er1 >conftest.err
40906   rm -f conftest.er1
40907   cat conftest.err >&5
40908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909   (exit $ac_status); } && {
40910          test -z "$ac_c_werror_flag" ||
40911          test ! -s conftest.err
40912        } && test -s conftest.$ac_objext; then
40913   ac_cv_func_which_gethostbyname_r=three
40914 else
40915   echo "$as_me: failed program was:" >&5
40916 sed 's/^/| /' conftest.$ac_ext >&5
40917
40918
40919 fi
40920
40921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40922
40923 fi
40924
40925 ################################################################
40926
40927
40928 fi
40929
40930 case "$ac_cv_func_which_gethostbyname_r" in
40931     three)
40932     { echo "$as_me:$LINENO: result: three" >&5
40933 echo "${ECHO_T}three" >&6; }
40934     cat >>confdefs.h <<\_ACEOF
40935 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40936 _ACEOF
40937
40938     ;;
40939
40940     five)
40941     { echo "$as_me:$LINENO: result: five" >&5
40942 echo "${ECHO_T}five" >&6; }
40943     cat >>confdefs.h <<\_ACEOF
40944 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40945 _ACEOF
40946
40947     ;;
40948
40949     six)
40950     { echo "$as_me:$LINENO: result: six" >&5
40951 echo "${ECHO_T}six" >&6; }
40952     cat >>confdefs.h <<\_ACEOF
40953 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40954 _ACEOF
40955
40956     ;;
40957
40958     no)
40959     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40960 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40961     ;;
40962
40963     unknown)
40964     { echo "$as_me:$LINENO: result: can't tell" >&5
40965 echo "${ECHO_T}can't tell" >&6; }
40966     ;;
40967
40968     *)
40969     { { echo "$as_me:$LINENO: error: internal error" >&5
40970 echo "$as_me: error: internal error" >&2;}
40971    { (exit 1); exit 1; }; }
40972     ;;
40973 esac
40974
40975 ac_ext=c
40976 ac_cpp='$CPP $CPPFLAGS'
40977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40980
40981
40982
40983       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40984               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40985           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40986 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40987 if test "${ac_cv_func_gethostbyname+set}" = set; then
40988   echo $ECHO_N "(cached) $ECHO_C" >&6
40989 else
40990   cat >conftest.$ac_ext <<_ACEOF
40991 /* confdefs.h.  */
40992 _ACEOF
40993 cat confdefs.h >>conftest.$ac_ext
40994 cat >>conftest.$ac_ext <<_ACEOF
40995 /* end confdefs.h.  */
40996 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40998 #define gethostbyname innocuous_gethostbyname
40999
41000 /* System header to define __stub macros and hopefully few prototypes,
41001     which can conflict with char gethostbyname (); below.
41002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41003     <limits.h> exists even on freestanding compilers.  */
41004
41005 #ifdef __STDC__
41006 # include <limits.h>
41007 #else
41008 # include <assert.h>
41009 #endif
41010
41011 #undef gethostbyname
41012
41013 /* Override any GCC internal prototype to avoid an error.
41014    Use char because int might match the return type of a GCC
41015    builtin and then its argument prototype would still apply.  */
41016 #ifdef __cplusplus
41017 extern "C"
41018 #endif
41019 char gethostbyname ();
41020 /* The GNU C library defines this for functions which it implements
41021     to always fail with ENOSYS.  Some functions are actually named
41022     something starting with __ and the normal name is an alias.  */
41023 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41024 choke me
41025 #endif
41026
41027 int
41028 main ()
41029 {
41030 return gethostbyname ();
41031   ;
41032   return 0;
41033 }
41034 _ACEOF
41035 rm -f conftest.$ac_objext conftest$ac_exeext
41036 if { (ac_try="$ac_link"
41037 case "(($ac_try" in
41038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41039   *) ac_try_echo=$ac_try;;
41040 esac
41041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41042   (eval "$ac_link") 2>conftest.er1
41043   ac_status=$?
41044   grep -v '^ *+' conftest.er1 >conftest.err
41045   rm -f conftest.er1
41046   cat conftest.err >&5
41047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048   (exit $ac_status); } && {
41049          test -z "$ac_c_werror_flag" ||
41050          test ! -s conftest.err
41051        } && test -s conftest$ac_exeext &&
41052        $as_test_x conftest$ac_exeext; then
41053   ac_cv_func_gethostbyname=yes
41054 else
41055   echo "$as_me: failed program was:" >&5
41056 sed 's/^/| /' conftest.$ac_ext >&5
41057
41058         ac_cv_func_gethostbyname=no
41059 fi
41060
41061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41062       conftest$ac_exeext conftest.$ac_ext
41063 fi
41064 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41065 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41066 if test $ac_cv_func_gethostbyname = yes; then
41067    cat >>confdefs.h <<\_ACEOF
41068 #define HAVE_GETHOSTBYNAME 1
41069 _ACEOF
41070
41071 fi
41072
41073       fi
41074
41075 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41076 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41077 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41078   echo $ECHO_N "(cached) $ECHO_C" >&6
41079 else
41080
41081                 ac_ext=cpp
41082 ac_cpp='$CXXCPP $CPPFLAGS'
41083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41086
41087
41088         cat >conftest.$ac_ext <<_ACEOF
41089 /* confdefs.h.  */
41090 _ACEOF
41091 cat confdefs.h >>conftest.$ac_ext
41092 cat >>conftest.$ac_ext <<_ACEOF
41093 /* end confdefs.h.  */
41094 #include <netdb.h>
41095 int
41096 main ()
41097 {
41098
41099                 char *name;
41100                 char *proto;
41101                 struct servent *se, *res;
41102                 char buffer[2048];
41103                 int buflen = 2048;
41104                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41105
41106   ;
41107   return 0;
41108 }
41109 _ACEOF
41110 rm -f conftest.$ac_objext
41111 if { (ac_try="$ac_compile"
41112 case "(($ac_try" in
41113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41114   *) ac_try_echo=$ac_try;;
41115 esac
41116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41117   (eval "$ac_compile") 2>conftest.er1
41118   ac_status=$?
41119   grep -v '^ *+' conftest.er1 >conftest.err
41120   rm -f conftest.er1
41121   cat conftest.err >&5
41122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41123   (exit $ac_status); } && {
41124          test -z "$ac_cxx_werror_flag" ||
41125          test ! -s conftest.err
41126        } && test -s conftest.$ac_objext; then
41127   ac_cv_func_which_getservbyname_r=six
41128 else
41129   echo "$as_me: failed program was:" >&5
41130 sed 's/^/| /' conftest.$ac_ext >&5
41131
41132
41133                 cat >conftest.$ac_ext <<_ACEOF
41134 /* confdefs.h.  */
41135 _ACEOF
41136 cat confdefs.h >>conftest.$ac_ext
41137 cat >>conftest.$ac_ext <<_ACEOF
41138 /* end confdefs.h.  */
41139 #include <netdb.h>
41140 int
41141 main ()
41142 {
41143
41144                         char *name;
41145                         char *proto;
41146                         struct servent *se;
41147                         char buffer[2048];
41148                         int buflen = 2048;
41149                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41150
41151   ;
41152   return 0;
41153 }
41154 _ACEOF
41155 rm -f conftest.$ac_objext
41156 if { (ac_try="$ac_compile"
41157 case "(($ac_try" in
41158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41159   *) ac_try_echo=$ac_try;;
41160 esac
41161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41162   (eval "$ac_compile") 2>conftest.er1
41163   ac_status=$?
41164   grep -v '^ *+' conftest.er1 >conftest.err
41165   rm -f conftest.er1
41166   cat conftest.err >&5
41167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168   (exit $ac_status); } && {
41169          test -z "$ac_cxx_werror_flag" ||
41170          test ! -s conftest.err
41171        } && test -s conftest.$ac_objext; then
41172   ac_cv_func_which_getservbyname_r=five
41173 else
41174   echo "$as_me: failed program was:" >&5
41175 sed 's/^/| /' conftest.$ac_ext >&5
41176
41177
41178                         cat >conftest.$ac_ext <<_ACEOF
41179 /* confdefs.h.  */
41180 _ACEOF
41181 cat confdefs.h >>conftest.$ac_ext
41182 cat >>conftest.$ac_ext <<_ACEOF
41183 /* end confdefs.h.  */
41184 #include <netdb.h>
41185 int
41186 main ()
41187 {
41188
41189                                 char *name;
41190                                 char *proto;
41191                                 struct servent *se;
41192                                 struct servent_data data;
41193                                 (void) getservbyname_r(name, proto, se, &data);
41194
41195   ;
41196   return 0;
41197 }
41198 _ACEOF
41199 rm -f conftest.$ac_objext
41200 if { (ac_try="$ac_compile"
41201 case "(($ac_try" in
41202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41203   *) ac_try_echo=$ac_try;;
41204 esac
41205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41206   (eval "$ac_compile") 2>conftest.er1
41207   ac_status=$?
41208   grep -v '^ *+' conftest.er1 >conftest.err
41209   rm -f conftest.er1
41210   cat conftest.err >&5
41211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41212   (exit $ac_status); } && {
41213          test -z "$ac_cxx_werror_flag" ||
41214          test ! -s conftest.err
41215        } && test -s conftest.$ac_objext; then
41216   ac_cv_func_which_getservbyname_r=four
41217 else
41218   echo "$as_me: failed program was:" >&5
41219 sed 's/^/| /' conftest.$ac_ext >&5
41220
41221         ac_cv_func_which_getservbyname_r=no
41222
41223 fi
41224
41225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41226
41227
41228 fi
41229
41230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41231
41232
41233 fi
41234
41235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41236         ac_ext=c
41237 ac_cpp='$CPP $CPPFLAGS'
41238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41241
41242
41243
41244 fi
41245 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41246 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41247
41248 if test $ac_cv_func_which_getservbyname_r = six; then
41249   cat >>confdefs.h <<\_ACEOF
41250 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41251 _ACEOF
41252
41253 elif test $ac_cv_func_which_getservbyname_r = five; then
41254   cat >>confdefs.h <<\_ACEOF
41255 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41256 _ACEOF
41257
41258 elif test $ac_cv_func_which_getservbyname_r = four; then
41259   cat >>confdefs.h <<\_ACEOF
41260 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41261 _ACEOF
41262
41263 fi
41264
41265
41266       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41267               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41268
41269 for ac_func in getservbyname
41270 do
41271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41275   echo $ECHO_N "(cached) $ECHO_C" >&6
41276 else
41277   cat >conftest.$ac_ext <<_ACEOF
41278 /* confdefs.h.  */
41279 _ACEOF
41280 cat confdefs.h >>conftest.$ac_ext
41281 cat >>conftest.$ac_ext <<_ACEOF
41282 /* end confdefs.h.  */
41283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41285 #define $ac_func innocuous_$ac_func
41286
41287 /* System header to define __stub macros and hopefully few prototypes,
41288     which can conflict with char $ac_func (); below.
41289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41290     <limits.h> exists even on freestanding compilers.  */
41291
41292 #ifdef __STDC__
41293 # include <limits.h>
41294 #else
41295 # include <assert.h>
41296 #endif
41297
41298 #undef $ac_func
41299
41300 /* Override any GCC internal prototype to avoid an error.
41301    Use char because int might match the return type of a GCC
41302    builtin and then its argument prototype would still apply.  */
41303 #ifdef __cplusplus
41304 extern "C"
41305 #endif
41306 char $ac_func ();
41307 /* The GNU C library defines this for functions which it implements
41308     to always fail with ENOSYS.  Some functions are actually named
41309     something starting with __ and the normal name is an alias.  */
41310 #if defined __stub_$ac_func || defined __stub___$ac_func
41311 choke me
41312 #endif
41313
41314 int
41315 main ()
41316 {
41317 return $ac_func ();
41318   ;
41319   return 0;
41320 }
41321 _ACEOF
41322 rm -f conftest.$ac_objext conftest$ac_exeext
41323 if { (ac_try="$ac_link"
41324 case "(($ac_try" in
41325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41326   *) ac_try_echo=$ac_try;;
41327 esac
41328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41329   (eval "$ac_link") 2>conftest.er1
41330   ac_status=$?
41331   grep -v '^ *+' conftest.er1 >conftest.err
41332   rm -f conftest.er1
41333   cat conftest.err >&5
41334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41335   (exit $ac_status); } && {
41336          test -z "$ac_c_werror_flag" ||
41337          test ! -s conftest.err
41338        } && test -s conftest$ac_exeext &&
41339        $as_test_x conftest$ac_exeext; then
41340   eval "$as_ac_var=yes"
41341 else
41342   echo "$as_me: failed program was:" >&5
41343 sed 's/^/| /' conftest.$ac_ext >&5
41344
41345         eval "$as_ac_var=no"
41346 fi
41347
41348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41349       conftest$ac_exeext conftest.$ac_ext
41350 fi
41351 ac_res=`eval echo '${'$as_ac_var'}'`
41352                { echo "$as_me:$LINENO: result: $ac_res" >&5
41353 echo "${ECHO_T}$ac_res" >&6; }
41354 if test `eval echo '${'$as_ac_var'}'` = yes; then
41355   cat >>confdefs.h <<_ACEOF
41356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41357 _ACEOF
41358   cat >>confdefs.h <<\_ACEOF
41359 #define HAVE_GETSERVBYNAME 1
41360 _ACEOF
41361
41362 fi
41363 done
41364
41365       fi
41366
41367 if test "$wxUSE_THREADS" = "yes"; then
41368   cat >>confdefs.h <<\_ACEOF
41369 #define wxUSE_THREADS 1
41370 _ACEOF
41371
41372
41373   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41374 else
41375       if test "$wx_cv_func_strtok_r" = "yes"; then
41376     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41377 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41378     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41379         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41380         { echo "$as_me:$LINENO: result: yes" >&5
41381 echo "${ECHO_T}yes" >&6; }
41382     else
41383         { echo "$as_me:$LINENO: result: no" >&5
41384 echo "${ECHO_T}no" >&6; }
41385     fi
41386   fi
41387 fi
41388
41389 if test "$WXGTK2" = 1 ; then
41390   cat >>confdefs.h <<_ACEOF
41391 #define __WXGTK20__ $WXGTK2
41392 _ACEOF
41393
41394   WXGTK12=1
41395 fi
41396
41397 if test "$WXGTK12" = 1 ; then
41398   cat >>confdefs.h <<_ACEOF
41399 #define __WXGTK12__ $WXGTK12
41400 _ACEOF
41401
41402 fi
41403
41404 if test "$WXGTK127" = 1 ; then
41405   cat >>confdefs.h <<_ACEOF
41406 #define __WXGTK127__ $WXGTK127
41407 _ACEOF
41408
41409 fi
41410
41411 if test "$WXGPE" = 1 ; then
41412   cat >>confdefs.h <<_ACEOF
41413 #define __WXGPE__ $WXGPE
41414 _ACEOF
41415
41416 fi
41417
41418 DEBUG_CFLAGS=
41419 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
41420                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
41421 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
41422 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
41423     DEBUG_CFLAGS="-g"
41424 fi
41425
41426 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41427     wxUSE_DEBUG_INFO=yes
41428     if test "$GCC" = yes; then
41429         DEBUG_CFLAGS="-ggdb"
41430     fi
41431 fi
41432
41433 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41434     cat >>confdefs.h <<\_ACEOF
41435 #define WXDEBUG 1
41436 _ACEOF
41437
41438     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41439 else
41440     if test "$wxUSE_GTK" = 1 ; then
41441         if test "x$wxGTK_VERSION" = "x1" ; then
41442             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41443         fi
41444     fi
41445 fi
41446
41447 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41448     cat >>confdefs.h <<\_ACEOF
41449 #define wxUSE_MEMORY_TRACING 1
41450 _ACEOF
41451
41452     cat >>confdefs.h <<\_ACEOF
41453 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41454 _ACEOF
41455
41456     cat >>confdefs.h <<\_ACEOF
41457 #define wxUSE_DEBUG_NEW_ALWAYS 1
41458 _ACEOF
41459
41460     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41461 fi
41462
41463 if test "$wxUSE_DMALLOC" = "yes" ; then
41464     DMALLOC_LIBS="-ldmallocthcxx"
41465 fi
41466
41467 PROFILE_FLAGS=
41468 if test "$wxUSE_PROFILE" = "yes" ; then
41469     PROFILE_FLAGS=" -pg"
41470 fi
41471
41472 if test "$GCC" = "yes" ; then
41473     if test "$wxUSE_NO_RTTI" = "yes" ; then
41474         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41475     fi
41476     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41477         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41478     fi
41479     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41480         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41481     fi
41482
41483                                                 case "${host}" in
41484       powerpc*-*-aix* )
41485         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41486         ;;
41487       *-hppa* )
41488         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41489         ;;
41490     esac
41491 fi
41492
41493 OPTIMISE_CFLAGS=
41494 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
41495                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
41496 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
41497 else
41498     if test "$wxUSE_OPTIMISE" = "no" ; then
41499         if test "$GCC" = yes ; then
41500                                     OPTIMISE_CFLAGS="-O0"
41501         fi
41502     else
41503         if test "$GCC" = yes ; then
41504             case "${host}" in
41505                 *-pc-os2_emx | *-pc-os2-emx )
41506                                                             OPTIMISE_CFLAGS="-O2"
41507                 ;;
41508                 *)
41509                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41510                 ;;
41511             esac
41512         else
41513             OPTIMISE_CFLAGS="-O"
41514         fi
41515     fi
41516 fi
41517
41518
41519 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41520     cat >>confdefs.h <<\_ACEOF
41521 #define WXWIN_COMPATIBILITY_2_6 1
41522 _ACEOF
41523
41524
41525     WXWIN_COMPATIBILITY_2_8="yes"
41526 fi
41527
41528 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41529     cat >>confdefs.h <<\_ACEOF
41530 #define WXWIN_COMPATIBILITY_2_8 1
41531 _ACEOF
41532
41533 fi
41534
41535
41536 if test "$wxUSE_GUI" = "yes"; then
41537     cat >>confdefs.h <<\_ACEOF
41538 #define wxUSE_GUI 1
41539 _ACEOF
41540
41541
41542                                             fi
41543
41544
41545 if test "$wxUSE_UNIX" = "yes"; then
41546   cat >>confdefs.h <<\_ACEOF
41547 #define wxUSE_UNIX 1
41548 _ACEOF
41549
41550 fi
41551
41552
41553 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41554
41555     HAVE_DL_FUNCS=0
41556     HAVE_SHL_FUNCS=0
41557     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41558         if test "$USE_DOS" = 1; then
41559             HAVE_DL_FUNCS=0
41560         else
41561
41562 for ac_func in dlopen
41563 do
41564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41568   echo $ECHO_N "(cached) $ECHO_C" >&6
41569 else
41570   cat >conftest.$ac_ext <<_ACEOF
41571 /* confdefs.h.  */
41572 _ACEOF
41573 cat confdefs.h >>conftest.$ac_ext
41574 cat >>conftest.$ac_ext <<_ACEOF
41575 /* end confdefs.h.  */
41576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41578 #define $ac_func innocuous_$ac_func
41579
41580 /* System header to define __stub macros and hopefully few prototypes,
41581     which can conflict with char $ac_func (); below.
41582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41583     <limits.h> exists even on freestanding compilers.  */
41584
41585 #ifdef __STDC__
41586 # include <limits.h>
41587 #else
41588 # include <assert.h>
41589 #endif
41590
41591 #undef $ac_func
41592
41593 /* Override any GCC internal prototype to avoid an error.
41594    Use char because int might match the return type of a GCC
41595    builtin and then its argument prototype would still apply.  */
41596 #ifdef __cplusplus
41597 extern "C"
41598 #endif
41599 char $ac_func ();
41600 /* The GNU C library defines this for functions which it implements
41601     to always fail with ENOSYS.  Some functions are actually named
41602     something starting with __ and the normal name is an alias.  */
41603 #if defined __stub_$ac_func || defined __stub___$ac_func
41604 choke me
41605 #endif
41606
41607 int
41608 main ()
41609 {
41610 return $ac_func ();
41611   ;
41612   return 0;
41613 }
41614 _ACEOF
41615 rm -f conftest.$ac_objext conftest$ac_exeext
41616 if { (ac_try="$ac_link"
41617 case "(($ac_try" in
41618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41619   *) ac_try_echo=$ac_try;;
41620 esac
41621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41622   (eval "$ac_link") 2>conftest.er1
41623   ac_status=$?
41624   grep -v '^ *+' conftest.er1 >conftest.err
41625   rm -f conftest.er1
41626   cat conftest.err >&5
41627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628   (exit $ac_status); } && {
41629          test -z "$ac_c_werror_flag" ||
41630          test ! -s conftest.err
41631        } && test -s conftest$ac_exeext &&
41632        $as_test_x conftest$ac_exeext; then
41633   eval "$as_ac_var=yes"
41634 else
41635   echo "$as_me: failed program was:" >&5
41636 sed 's/^/| /' conftest.$ac_ext >&5
41637
41638         eval "$as_ac_var=no"
41639 fi
41640
41641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41642       conftest$ac_exeext conftest.$ac_ext
41643 fi
41644 ac_res=`eval echo '${'$as_ac_var'}'`
41645                { echo "$as_me:$LINENO: result: $ac_res" >&5
41646 echo "${ECHO_T}$ac_res" >&6; }
41647 if test `eval echo '${'$as_ac_var'}'` = yes; then
41648   cat >>confdefs.h <<_ACEOF
41649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41650 _ACEOF
41651
41652                 cat >>confdefs.h <<\_ACEOF
41653 #define HAVE_DLOPEN 1
41654 _ACEOF
41655
41656                 HAVE_DL_FUNCS=1
41657
41658 else
41659
41660                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41661 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41662 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41663   echo $ECHO_N "(cached) $ECHO_C" >&6
41664 else
41665   ac_check_lib_save_LIBS=$LIBS
41666 LIBS="-ldl  $LIBS"
41667 cat >conftest.$ac_ext <<_ACEOF
41668 /* confdefs.h.  */
41669 _ACEOF
41670 cat confdefs.h >>conftest.$ac_ext
41671 cat >>conftest.$ac_ext <<_ACEOF
41672 /* end confdefs.h.  */
41673
41674 /* Override any GCC internal prototype to avoid an error.
41675    Use char because int might match the return type of a GCC
41676    builtin and then its argument prototype would still apply.  */
41677 #ifdef __cplusplus
41678 extern "C"
41679 #endif
41680 char dlopen ();
41681 int
41682 main ()
41683 {
41684 return dlopen ();
41685   ;
41686   return 0;
41687 }
41688 _ACEOF
41689 rm -f conftest.$ac_objext conftest$ac_exeext
41690 if { (ac_try="$ac_link"
41691 case "(($ac_try" in
41692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41693   *) ac_try_echo=$ac_try;;
41694 esac
41695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41696   (eval "$ac_link") 2>conftest.er1
41697   ac_status=$?
41698   grep -v '^ *+' conftest.er1 >conftest.err
41699   rm -f conftest.er1
41700   cat conftest.err >&5
41701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); } && {
41703          test -z "$ac_c_werror_flag" ||
41704          test ! -s conftest.err
41705        } && test -s conftest$ac_exeext &&
41706        $as_test_x conftest$ac_exeext; then
41707   ac_cv_lib_dl_dlopen=yes
41708 else
41709   echo "$as_me: failed program was:" >&5
41710 sed 's/^/| /' conftest.$ac_ext >&5
41711
41712         ac_cv_lib_dl_dlopen=no
41713 fi
41714
41715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41716       conftest$ac_exeext conftest.$ac_ext
41717 LIBS=$ac_check_lib_save_LIBS
41718 fi
41719 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41721 if test $ac_cv_lib_dl_dlopen = yes; then
41722
41723                                 cat >>confdefs.h <<\_ACEOF
41724 #define HAVE_DLOPEN 1
41725 _ACEOF
41726
41727                                 HAVE_DL_FUNCS=1
41728                                 DL_LINK=" -ldl$DL_LINK"
41729
41730 else
41731
41732
41733 for ac_func in shl_load
41734 do
41735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41739   echo $ECHO_N "(cached) $ECHO_C" >&6
41740 else
41741   cat >conftest.$ac_ext <<_ACEOF
41742 /* confdefs.h.  */
41743 _ACEOF
41744 cat confdefs.h >>conftest.$ac_ext
41745 cat >>conftest.$ac_ext <<_ACEOF
41746 /* end confdefs.h.  */
41747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41749 #define $ac_func innocuous_$ac_func
41750
41751 /* System header to define __stub macros and hopefully few prototypes,
41752     which can conflict with char $ac_func (); below.
41753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41754     <limits.h> exists even on freestanding compilers.  */
41755
41756 #ifdef __STDC__
41757 # include <limits.h>
41758 #else
41759 # include <assert.h>
41760 #endif
41761
41762 #undef $ac_func
41763
41764 /* Override any GCC internal prototype to avoid an error.
41765    Use char because int might match the return type of a GCC
41766    builtin and then its argument prototype would still apply.  */
41767 #ifdef __cplusplus
41768 extern "C"
41769 #endif
41770 char $ac_func ();
41771 /* The GNU C library defines this for functions which it implements
41772     to always fail with ENOSYS.  Some functions are actually named
41773     something starting with __ and the normal name is an alias.  */
41774 #if defined __stub_$ac_func || defined __stub___$ac_func
41775 choke me
41776 #endif
41777
41778 int
41779 main ()
41780 {
41781 return $ac_func ();
41782   ;
41783   return 0;
41784 }
41785 _ACEOF
41786 rm -f conftest.$ac_objext conftest$ac_exeext
41787 if { (ac_try="$ac_link"
41788 case "(($ac_try" in
41789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41790   *) ac_try_echo=$ac_try;;
41791 esac
41792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41793   (eval "$ac_link") 2>conftest.er1
41794   ac_status=$?
41795   grep -v '^ *+' conftest.er1 >conftest.err
41796   rm -f conftest.er1
41797   cat conftest.err >&5
41798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41799   (exit $ac_status); } && {
41800          test -z "$ac_c_werror_flag" ||
41801          test ! -s conftest.err
41802        } && test -s conftest$ac_exeext &&
41803        $as_test_x conftest$ac_exeext; then
41804   eval "$as_ac_var=yes"
41805 else
41806   echo "$as_me: failed program was:" >&5
41807 sed 's/^/| /' conftest.$ac_ext >&5
41808
41809         eval "$as_ac_var=no"
41810 fi
41811
41812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41813       conftest$ac_exeext conftest.$ac_ext
41814 fi
41815 ac_res=`eval echo '${'$as_ac_var'}'`
41816                { echo "$as_me:$LINENO: result: $ac_res" >&5
41817 echo "${ECHO_T}$ac_res" >&6; }
41818 if test `eval echo '${'$as_ac_var'}'` = yes; then
41819   cat >>confdefs.h <<_ACEOF
41820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41821 _ACEOF
41822
41823                                                 cat >>confdefs.h <<\_ACEOF
41824 #define HAVE_SHL_LOAD 1
41825 _ACEOF
41826
41827                                                 HAVE_SHL_FUNCS=1
41828
41829 else
41830
41831                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41832 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41833 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41834   echo $ECHO_N "(cached) $ECHO_C" >&6
41835 else
41836   ac_check_lib_save_LIBS=$LIBS
41837 LIBS="-lshl_load  $LIBS"
41838 cat >conftest.$ac_ext <<_ACEOF
41839 /* confdefs.h.  */
41840 _ACEOF
41841 cat confdefs.h >>conftest.$ac_ext
41842 cat >>conftest.$ac_ext <<_ACEOF
41843 /* end confdefs.h.  */
41844
41845 /* Override any GCC internal prototype to avoid an error.
41846    Use char because int might match the return type of a GCC
41847    builtin and then its argument prototype would still apply.  */
41848 #ifdef __cplusplus
41849 extern "C"
41850 #endif
41851 char dld ();
41852 int
41853 main ()
41854 {
41855 return dld ();
41856   ;
41857   return 0;
41858 }
41859 _ACEOF
41860 rm -f conftest.$ac_objext conftest$ac_exeext
41861 if { (ac_try="$ac_link"
41862 case "(($ac_try" in
41863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41864   *) ac_try_echo=$ac_try;;
41865 esac
41866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41867   (eval "$ac_link") 2>conftest.er1
41868   ac_status=$?
41869   grep -v '^ *+' conftest.er1 >conftest.err
41870   rm -f conftest.er1
41871   cat conftest.err >&5
41872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41873   (exit $ac_status); } && {
41874          test -z "$ac_c_werror_flag" ||
41875          test ! -s conftest.err
41876        } && test -s conftest$ac_exeext &&
41877        $as_test_x conftest$ac_exeext; then
41878   ac_cv_lib_shl_load_dld=yes
41879 else
41880   echo "$as_me: failed program was:" >&5
41881 sed 's/^/| /' conftest.$ac_ext >&5
41882
41883         ac_cv_lib_shl_load_dld=no
41884 fi
41885
41886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41887       conftest$ac_exeext conftest.$ac_ext
41888 LIBS=$ac_check_lib_save_LIBS
41889 fi
41890 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41891 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41892 if test $ac_cv_lib_shl_load_dld = yes; then
41893
41894                                                                 HAVE_SHL_FUNCS=1
41895                                                                 DL_LINK=" -ldld$DL_LINK"
41896
41897 fi
41898
41899
41900 fi
41901 done
41902
41903
41904 fi
41905
41906
41907 fi
41908 done
41909
41910
41911                         if test "$HAVE_DL_FUNCS" = 1; then
41912
41913 for ac_func in dlerror
41914 do
41915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41919   echo $ECHO_N "(cached) $ECHO_C" >&6
41920 else
41921   cat >conftest.$ac_ext <<_ACEOF
41922 /* confdefs.h.  */
41923 _ACEOF
41924 cat confdefs.h >>conftest.$ac_ext
41925 cat >>conftest.$ac_ext <<_ACEOF
41926 /* end confdefs.h.  */
41927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41929 #define $ac_func innocuous_$ac_func
41930
41931 /* System header to define __stub macros and hopefully few prototypes,
41932     which can conflict with char $ac_func (); below.
41933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41934     <limits.h> exists even on freestanding compilers.  */
41935
41936 #ifdef __STDC__
41937 # include <limits.h>
41938 #else
41939 # include <assert.h>
41940 #endif
41941
41942 #undef $ac_func
41943
41944 /* Override any GCC internal prototype to avoid an error.
41945    Use char because int might match the return type of a GCC
41946    builtin and then its argument prototype would still apply.  */
41947 #ifdef __cplusplus
41948 extern "C"
41949 #endif
41950 char $ac_func ();
41951 /* The GNU C library defines this for functions which it implements
41952     to always fail with ENOSYS.  Some functions are actually named
41953     something starting with __ and the normal name is an alias.  */
41954 #if defined __stub_$ac_func || defined __stub___$ac_func
41955 choke me
41956 #endif
41957
41958 int
41959 main ()
41960 {
41961 return $ac_func ();
41962   ;
41963   return 0;
41964 }
41965 _ACEOF
41966 rm -f conftest.$ac_objext conftest$ac_exeext
41967 if { (ac_try="$ac_link"
41968 case "(($ac_try" in
41969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41970   *) ac_try_echo=$ac_try;;
41971 esac
41972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41973   (eval "$ac_link") 2>conftest.er1
41974   ac_status=$?
41975   grep -v '^ *+' conftest.er1 >conftest.err
41976   rm -f conftest.er1
41977   cat conftest.err >&5
41978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979   (exit $ac_status); } && {
41980          test -z "$ac_c_werror_flag" ||
41981          test ! -s conftest.err
41982        } && test -s conftest$ac_exeext &&
41983        $as_test_x conftest$ac_exeext; then
41984   eval "$as_ac_var=yes"
41985 else
41986   echo "$as_me: failed program was:" >&5
41987 sed 's/^/| /' conftest.$ac_ext >&5
41988
41989         eval "$as_ac_var=no"
41990 fi
41991
41992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41993       conftest$ac_exeext conftest.$ac_ext
41994 fi
41995 ac_res=`eval echo '${'$as_ac_var'}'`
41996                { echo "$as_me:$LINENO: result: $ac_res" >&5
41997 echo "${ECHO_T}$ac_res" >&6; }
41998 if test `eval echo '${'$as_ac_var'}'` = yes; then
41999   cat >>confdefs.h <<_ACEOF
42000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42001 _ACEOF
42002  cat >>confdefs.h <<\_ACEOF
42003 #define HAVE_DLERROR 1
42004 _ACEOF
42005
42006 else
42007
42008                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42009 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42010 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42011   echo $ECHO_N "(cached) $ECHO_C" >&6
42012 else
42013   ac_check_lib_save_LIBS=$LIBS
42014 LIBS="-ldl  $LIBS"
42015 cat >conftest.$ac_ext <<_ACEOF
42016 /* confdefs.h.  */
42017 _ACEOF
42018 cat confdefs.h >>conftest.$ac_ext
42019 cat >>conftest.$ac_ext <<_ACEOF
42020 /* end confdefs.h.  */
42021
42022 /* Override any GCC internal prototype to avoid an error.
42023    Use char because int might match the return type of a GCC
42024    builtin and then its argument prototype would still apply.  */
42025 #ifdef __cplusplus
42026 extern "C"
42027 #endif
42028 char dlerror ();
42029 int
42030 main ()
42031 {
42032 return dlerror ();
42033   ;
42034   return 0;
42035 }
42036 _ACEOF
42037 rm -f conftest.$ac_objext conftest$ac_exeext
42038 if { (ac_try="$ac_link"
42039 case "(($ac_try" in
42040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42041   *) ac_try_echo=$ac_try;;
42042 esac
42043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42044   (eval "$ac_link") 2>conftest.er1
42045   ac_status=$?
42046   grep -v '^ *+' conftest.er1 >conftest.err
42047   rm -f conftest.er1
42048   cat conftest.err >&5
42049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42050   (exit $ac_status); } && {
42051          test -z "$ac_c_werror_flag" ||
42052          test ! -s conftest.err
42053        } && test -s conftest$ac_exeext &&
42054        $as_test_x conftest$ac_exeext; then
42055   ac_cv_lib_dl_dlerror=yes
42056 else
42057   echo "$as_me: failed program was:" >&5
42058 sed 's/^/| /' conftest.$ac_ext >&5
42059
42060         ac_cv_lib_dl_dlerror=no
42061 fi
42062
42063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42064       conftest$ac_exeext conftest.$ac_ext
42065 LIBS=$ac_check_lib_save_LIBS
42066 fi
42067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42068 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42069 if test $ac_cv_lib_dl_dlerror = yes; then
42070   cat >>confdefs.h <<\_ACEOF
42071 #define HAVE_DLERROR 1
42072 _ACEOF
42073
42074 fi
42075
42076
42077
42078 fi
42079 done
42080
42081             fi
42082         fi
42083
42084                 if test "$USE_DARWIN" = 1; then
42085                         HAVE_DL_FUNCS=1
42086         fi
42087
42088         if test "$HAVE_DL_FUNCS" = 0; then
42089             if test "$HAVE_SHL_FUNCS" = 0; then
42090               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42091                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42092 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42093                   wxUSE_DYNAMIC_LOADER=no
42094                   wxUSE_DYNLIB_CLASS=no
42095               else
42096                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42097 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42098               fi
42099             fi
42100         fi
42101     fi
42102 fi
42103
42104 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42105     cat >>confdefs.h <<\_ACEOF
42106 #define wxUSE_DYNAMIC_LOADER 1
42107 _ACEOF
42108
42109 fi
42110 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42111     cat >>confdefs.h <<\_ACEOF
42112 #define wxUSE_DYNLIB_CLASS 1
42113 _ACEOF
42114
42115 fi
42116
42117
42118
42119 if test "$wxUSE_PLUGINS" = "yes" ; then
42120     if test "$wxUSE_SHARED" = "no" ; then
42121         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42122 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42123         wxUSE_PLUGINS=no
42124     fi
42125     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42126         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42127 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42128         wxUSE_PLUGINS=no
42129     fi
42130     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42131         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42132 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42133         wxUSE_PLUGINS=no
42134     fi
42135     if test "$wxUSE_PLUGINS" = "yes" ; then
42136         cat >>confdefs.h <<\_ACEOF
42137 #define wxUSE_PLUGINS 1
42138 _ACEOF
42139
42140     fi
42141 fi
42142
42143
42144 if test "$wxUSE_STL" = "yes"; then
42145   cat >>confdefs.h <<\_ACEOF
42146 #define wxUSE_STL 1
42147 _ACEOF
42148
42149 fi
42150
42151 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42152   cat >>confdefs.h <<\_ACEOF
42153 #define wxUSE_EXTENDED_RTTI 1
42154 _ACEOF
42155
42156 fi
42157
42158 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42159   cat >>confdefs.h <<\_ACEOF
42160 #define wxUSE_APPLE_IEEE 1
42161 _ACEOF
42162
42163 fi
42164
42165 if test "$wxUSE_TIMER" = "yes"; then
42166   cat >>confdefs.h <<\_ACEOF
42167 #define wxUSE_TIMER 1
42168 _ACEOF
42169
42170 fi
42171
42172 if test "$USE_UNIX" = 1 ; then
42173         if test "$wxUSE_MGL" != 1; then
42174                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42175 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42176 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42177   echo $ECHO_N "(cached) $ECHO_C" >&6
42178 else
42179
42180             cat >conftest.$ac_ext <<_ACEOF
42181 /* confdefs.h.  */
42182 _ACEOF
42183 cat confdefs.h >>conftest.$ac_ext
42184 cat >>conftest.$ac_ext <<_ACEOF
42185 /* end confdefs.h.  */
42186
42187                     #include <sys/ioctl.h>
42188                     #include <sys/soundcard.h>
42189
42190 int
42191 main ()
42192 {
42193
42194                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42195
42196   ;
42197   return 0;
42198 }
42199 _ACEOF
42200 rm -f conftest.$ac_objext conftest$ac_exeext
42201 if { (ac_try="$ac_link"
42202 case "(($ac_try" in
42203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42204   *) ac_try_echo=$ac_try;;
42205 esac
42206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42207   (eval "$ac_link") 2>conftest.er1
42208   ac_status=$?
42209   grep -v '^ *+' conftest.er1 >conftest.err
42210   rm -f conftest.er1
42211   cat conftest.err >&5
42212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42213   (exit $ac_status); } && {
42214          test -z "$ac_c_werror_flag" ||
42215          test ! -s conftest.err
42216        } && test -s conftest$ac_exeext &&
42217        $as_test_x conftest$ac_exeext; then
42218   ac_cv_header_sys_soundcard=yes
42219 else
42220   echo "$as_me: failed program was:" >&5
42221 sed 's/^/| /' conftest.$ac_ext >&5
42222
42223
42224                     saveLibs="$LIBS"
42225                     LIBS="$saveLibs -lossaudio"
42226                     cat >conftest.$ac_ext <<_ACEOF
42227 /* confdefs.h.  */
42228 _ACEOF
42229 cat confdefs.h >>conftest.$ac_ext
42230 cat >>conftest.$ac_ext <<_ACEOF
42231 /* end confdefs.h.  */
42232
42233                             #include <sys/ioctl.h>
42234                             #include <sys/soundcard.h>
42235
42236 int
42237 main ()
42238 {
42239
42240                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42241
42242   ;
42243   return 0;
42244 }
42245 _ACEOF
42246 rm -f conftest.$ac_objext conftest$ac_exeext
42247 if { (ac_try="$ac_link"
42248 case "(($ac_try" in
42249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42250   *) ac_try_echo=$ac_try;;
42251 esac
42252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42253   (eval "$ac_link") 2>conftest.er1
42254   ac_status=$?
42255   grep -v '^ *+' conftest.er1 >conftest.err
42256   rm -f conftest.er1
42257   cat conftest.err >&5
42258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42259   (exit $ac_status); } && {
42260          test -z "$ac_c_werror_flag" ||
42261          test ! -s conftest.err
42262        } && test -s conftest$ac_exeext &&
42263        $as_test_x conftest$ac_exeext; then
42264   ac_cv_header_sys_soundcard=yes
42265 else
42266   echo "$as_me: failed program was:" >&5
42267 sed 's/^/| /' conftest.$ac_ext >&5
42268
42269
42270                             LIBS="$saveLibs"
42271                             ac_cv_header_sys_soundcard=no
42272
42273
42274 fi
42275
42276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42277       conftest$ac_exeext conftest.$ac_ext
42278
42279
42280 fi
42281
42282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42283       conftest$ac_exeext conftest.$ac_ext
42284
42285 fi
42286 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42287 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42288     fi
42289
42290     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42291         cat >>confdefs.h <<\_ACEOF
42292 #define HAVE_SYS_SOUNDCARD_H 1
42293 _ACEOF
42294
42295     fi
42296 fi
42297
42298 WITH_PLUGIN_SDL=0
42299 if test "$wxUSE_SOUND" = "yes"; then
42300   if test "$USE_UNIX" = 1 ; then
42301     if test "$wxUSE_LIBSDL" != "no"; then
42302
42303 # Check whether --with-sdl-prefix was given.
42304 if test "${with_sdl_prefix+set}" = set; then
42305   withval=$with_sdl_prefix; sdl_prefix="$withval"
42306 else
42307   sdl_prefix=""
42308 fi
42309
42310
42311 # Check whether --with-sdl-exec-prefix was given.
42312 if test "${with_sdl_exec_prefix+set}" = set; then
42313   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42314 else
42315   sdl_exec_prefix=""
42316 fi
42317
42318 # Check whether --enable-sdltest was given.
42319 if test "${enable_sdltest+set}" = set; then
42320   enableval=$enable_sdltest;
42321 else
42322   enable_sdltest=yes
42323 fi
42324
42325
42326   if test x$sdl_exec_prefix != x ; then
42327     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42328     if test x${SDL_CONFIG+set} != xset ; then
42329       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42330     fi
42331   fi
42332   if test x$sdl_prefix != x ; then
42333     sdl_args="$sdl_args --prefix=$sdl_prefix"
42334     if test x${SDL_CONFIG+set} != xset ; then
42335       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42336     fi
42337   fi
42338
42339   if test "x$prefix" != xNONE; then
42340     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42341   fi
42342   # Extract the first word of "sdl-config", so it can be a program name with args.
42343 set dummy sdl-config; ac_word=$2
42344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42346 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42347   echo $ECHO_N "(cached) $ECHO_C" >&6
42348 else
42349   case $SDL_CONFIG in
42350   [\\/]* | ?:[\\/]*)
42351   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42352   ;;
42353   *)
42354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42355 for as_dir in $PATH
42356 do
42357   IFS=$as_save_IFS
42358   test -z "$as_dir" && as_dir=.
42359   for ac_exec_ext in '' $ac_executable_extensions; do
42360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42361     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42363     break 2
42364   fi
42365 done
42366 done
42367 IFS=$as_save_IFS
42368
42369   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42370   ;;
42371 esac
42372 fi
42373 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42374 if test -n "$SDL_CONFIG"; then
42375   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42376 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42377 else
42378   { echo "$as_me:$LINENO: result: no" >&5
42379 echo "${ECHO_T}no" >&6; }
42380 fi
42381
42382
42383   min_sdl_version=1.2.0
42384   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42385 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42386   no_sdl=""
42387   if test "$SDL_CONFIG" = "no" ; then
42388     no_sdl=yes
42389   else
42390     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42391     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42392
42393     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42394            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42395     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42396            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42397     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42398            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42399     if test "x$enable_sdltest" = "xyes" ; then
42400       ac_save_CFLAGS="$CFLAGS"
42401       ac_save_CXXFLAGS="$CXXFLAGS"
42402       ac_save_LIBS="$LIBS"
42403       CFLAGS="$CFLAGS $SDL_CFLAGS"
42404       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42405       LIBS="$LIBS $SDL_LIBS"
42406       rm -f conf.sdltest
42407       if test "$cross_compiling" = yes; then
42408   echo $ac_n "cross compiling; assumed OK... $ac_c"
42409 else
42410   cat >conftest.$ac_ext <<_ACEOF
42411 /* confdefs.h.  */
42412 _ACEOF
42413 cat confdefs.h >>conftest.$ac_ext
42414 cat >>conftest.$ac_ext <<_ACEOF
42415 /* end confdefs.h.  */
42416
42417 #include <stdio.h>
42418 #include <stdlib.h>
42419 #include <string.h>
42420 #include "SDL.h"
42421
42422 char*
42423 my_strdup (char *str)
42424 {
42425   char *new_str;
42426
42427   if (str)
42428     {
42429       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42430       strcpy (new_str, str);
42431     }
42432   else
42433     new_str = NULL;
42434
42435   return new_str;
42436 }
42437
42438 int main (int argc, char *argv[])
42439 {
42440   int major, minor, micro;
42441   char *tmp_version;
42442
42443   /* This hangs on some systems (?)
42444   system ("touch conf.sdltest");
42445   */
42446   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42447
42448   /* HP/UX 9 (%@#!) writes to sscanf strings */
42449   tmp_version = my_strdup("$min_sdl_version");
42450   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42451      printf("%s, bad version string\n", "$min_sdl_version");
42452      exit(1);
42453    }
42454
42455    if (($sdl_major_version > major) ||
42456       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42457       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42458     {
42459       return 0;
42460     }
42461   else
42462     {
42463       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42464       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42465       printf("*** best to upgrade to the required version.\n");
42466       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42467       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42468       printf("*** config.cache before re-running configure\n");
42469       return 1;
42470     }
42471 }
42472
42473
42474 _ACEOF
42475 rm -f conftest$ac_exeext
42476 if { (ac_try="$ac_link"
42477 case "(($ac_try" in
42478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42479   *) ac_try_echo=$ac_try;;
42480 esac
42481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42482   (eval "$ac_link") 2>&5
42483   ac_status=$?
42484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42486   { (case "(($ac_try" in
42487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42488   *) ac_try_echo=$ac_try;;
42489 esac
42490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42491   (eval "$ac_try") 2>&5
42492   ac_status=$?
42493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494   (exit $ac_status); }; }; then
42495   :
42496 else
42497   echo "$as_me: program exited with status $ac_status" >&5
42498 echo "$as_me: failed program was:" >&5
42499 sed 's/^/| /' conftest.$ac_ext >&5
42500
42501 ( exit $ac_status )
42502 no_sdl=yes
42503 fi
42504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42505 fi
42506
42507
42508        CFLAGS="$ac_save_CFLAGS"
42509        CXXFLAGS="$ac_save_CXXFLAGS"
42510        LIBS="$ac_save_LIBS"
42511      fi
42512   fi
42513   if test "x$no_sdl" = x ; then
42514      { echo "$as_me:$LINENO: result: yes" >&5
42515 echo "${ECHO_T}yes" >&6; }
42516
42517                     EXTRALIBS_SDL="$SDL_LIBS"
42518                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42519                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42520                     cat >>confdefs.h <<\_ACEOF
42521 #define wxUSE_LIBSDL 1
42522 _ACEOF
42523
42524
42525   else
42526      { echo "$as_me:$LINENO: result: no" >&5
42527 echo "${ECHO_T}no" >&6; }
42528      if test "$SDL_CONFIG" = "no" ; then
42529        echo "*** The sdl-config script installed by SDL could not be found"
42530        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42531        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42532        echo "*** full path to sdl-config."
42533      else
42534        if test -f conf.sdltest ; then
42535         :
42536        else
42537           echo "*** Could not run SDL test program, checking why..."
42538           CFLAGS="$CFLAGS $SDL_CFLAGS"
42539           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42540           LIBS="$LIBS $SDL_LIBS"
42541           cat >conftest.$ac_ext <<_ACEOF
42542 /* confdefs.h.  */
42543 _ACEOF
42544 cat confdefs.h >>conftest.$ac_ext
42545 cat >>conftest.$ac_ext <<_ACEOF
42546 /* end confdefs.h.  */
42547
42548 #include <stdio.h>
42549 #include "SDL.h"
42550
42551 int main(int argc, char *argv[])
42552 { return 0; }
42553 #undef  main
42554 #define main K_and_R_C_main
42555
42556 int
42557 main ()
42558 {
42559  return 0;
42560   ;
42561   return 0;
42562 }
42563 _ACEOF
42564 rm -f conftest.$ac_objext conftest$ac_exeext
42565 if { (ac_try="$ac_link"
42566 case "(($ac_try" in
42567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42568   *) ac_try_echo=$ac_try;;
42569 esac
42570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42571   (eval "$ac_link") 2>conftest.er1
42572   ac_status=$?
42573   grep -v '^ *+' conftest.er1 >conftest.err
42574   rm -f conftest.er1
42575   cat conftest.err >&5
42576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577   (exit $ac_status); } && {
42578          test -z "$ac_c_werror_flag" ||
42579          test ! -s conftest.err
42580        } && test -s conftest$ac_exeext &&
42581        $as_test_x conftest$ac_exeext; then
42582    echo "*** The test program compiled, but did not run. This usually means"
42583           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42584           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42585           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42586           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42587           echo "*** is required on your system"
42588           echo "***"
42589           echo "*** If you have an old version installed, it is best to remove it, although"
42590           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42591 else
42592   echo "$as_me: failed program was:" >&5
42593 sed 's/^/| /' conftest.$ac_ext >&5
42594
42595          echo "*** The test program failed to compile or link. See the file config.log for the"
42596           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42597           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42598           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42599 fi
42600
42601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42602       conftest$ac_exeext conftest.$ac_ext
42603           CFLAGS="$ac_save_CFLAGS"
42604           CXXFLAGS="$ac_save_CXXFLAGS"
42605           LIBS="$ac_save_LIBS"
42606        fi
42607      fi
42608      SDL_CFLAGS=""
42609      SDL_LIBS=""
42610      wxUSE_LIBSDL="no"
42611   fi
42612
42613
42614   rm -f conf.sdltest
42615
42616       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42617         WITH_PLUGIN_SDL=1
42618       fi
42619     fi
42620   else
42621         if test "$wxUSE_MGL" = 1; then
42622         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42623 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42624         wxUSE_SOUND="no"
42625     fi
42626   fi
42627 fi
42628
42629 if test "$wxUSE_SOUND" = "yes"; then
42630   cat >>confdefs.h <<\_ACEOF
42631 #define wxUSE_SOUND 1
42632 _ACEOF
42633
42634   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42635 fi
42636
42637 if test "$WXGTK2" = 1; then
42638
42639
42640 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42641         if test -n "$ac_tool_prefix"; then
42642   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42643 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42646 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42647   echo $ECHO_N "(cached) $ECHO_C" >&6
42648 else
42649   case $PKG_CONFIG in
42650   [\\/]* | ?:[\\/]*)
42651   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42652   ;;
42653   *)
42654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42655 for as_dir in $PATH
42656 do
42657   IFS=$as_save_IFS
42658   test -z "$as_dir" && as_dir=.
42659   for ac_exec_ext in '' $ac_executable_extensions; do
42660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42661     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42663     break 2
42664   fi
42665 done
42666 done
42667 IFS=$as_save_IFS
42668
42669   ;;
42670 esac
42671 fi
42672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42673 if test -n "$PKG_CONFIG"; then
42674   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42675 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42676 else
42677   { echo "$as_me:$LINENO: result: no" >&5
42678 echo "${ECHO_T}no" >&6; }
42679 fi
42680
42681
42682 fi
42683 if test -z "$ac_cv_path_PKG_CONFIG"; then
42684   ac_pt_PKG_CONFIG=$PKG_CONFIG
42685   # Extract the first word of "pkg-config", so it can be a program name with args.
42686 set dummy pkg-config; ac_word=$2
42687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42689 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42690   echo $ECHO_N "(cached) $ECHO_C" >&6
42691 else
42692   case $ac_pt_PKG_CONFIG in
42693   [\\/]* | ?:[\\/]*)
42694   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42695   ;;
42696   *)
42697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42698 for as_dir in $PATH
42699 do
42700   IFS=$as_save_IFS
42701   test -z "$as_dir" && as_dir=.
42702   for ac_exec_ext in '' $ac_executable_extensions; do
42703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42704     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42706     break 2
42707   fi
42708 done
42709 done
42710 IFS=$as_save_IFS
42711
42712   ;;
42713 esac
42714 fi
42715 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42716 if test -n "$ac_pt_PKG_CONFIG"; then
42717   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42718 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42719 else
42720   { echo "$as_me:$LINENO: result: no" >&5
42721 echo "${ECHO_T}no" >&6; }
42722 fi
42723
42724   if test "x$ac_pt_PKG_CONFIG" = x; then
42725     PKG_CONFIG=""
42726   else
42727     case $cross_compiling:$ac_tool_warned in
42728 yes:)
42729 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42730 whose name does not start with the host triplet.  If you think this
42731 configuration is useful to you, please write to autoconf@gnu.org." >&5
42732 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42733 whose name does not start with the host triplet.  If you think this
42734 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42735 ac_tool_warned=yes ;;
42736 esac
42737     PKG_CONFIG=$ac_pt_PKG_CONFIG
42738   fi
42739 else
42740   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42741 fi
42742
42743 fi
42744 if test -n "$PKG_CONFIG"; then
42745         _pkg_min_version=0.9.0
42746         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42747 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42748         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42749                 { echo "$as_me:$LINENO: result: yes" >&5
42750 echo "${ECHO_T}yes" >&6; }
42751         else
42752                 { echo "$as_me:$LINENO: result: no" >&5
42753 echo "${ECHO_T}no" >&6; }
42754                 PKG_CONFIG=""
42755         fi
42756
42757 fi
42758
42759     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42760
42761         if test "$wxUSE_GTKPRINT" = "yes" ; then
42762
42763
42764 pkg_failed=no
42765 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42766 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42767
42768 if test -n "$PKG_CONFIG"; then
42769     if test -n "$GTKPRINT_CFLAGS"; then
42770         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42771     else
42772         if test -n "$PKG_CONFIG" && \
42773     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42774   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42775   ac_status=$?
42776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42777   (exit $ac_status); }; then
42778   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42779 else
42780   pkg_failed=yes
42781 fi
42782     fi
42783 else
42784         pkg_failed=untried
42785 fi
42786 if test -n "$PKG_CONFIG"; then
42787     if test -n "$GTKPRINT_LIBS"; then
42788         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42789     else
42790         if test -n "$PKG_CONFIG" && \
42791     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42792   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42793   ac_status=$?
42794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42795   (exit $ac_status); }; then
42796   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42797 else
42798   pkg_failed=yes
42799 fi
42800     fi
42801 else
42802         pkg_failed=untried
42803 fi
42804
42805
42806
42807 if test $pkg_failed = yes; then
42808
42809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42810         _pkg_short_errors_supported=yes
42811 else
42812         _pkg_short_errors_supported=no
42813 fi
42814         if test $_pkg_short_errors_supported = yes; then
42815                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42816         else
42817                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42818         fi
42819         # Put the nasty error message in config.log where it belongs
42820         echo "$GTKPRINT_PKG_ERRORS" >&5
42821
42822
42823                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42824 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42825                         wxUSE_GTKPRINT="no"
42826
42827
42828 elif test $pkg_failed = untried; then
42829
42830                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42831 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42832                         wxUSE_GTKPRINT="no"
42833
42834
42835 else
42836         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42837         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42838         { echo "$as_me:$LINENO: result: yes" >&5
42839 echo "${ECHO_T}yes" >&6; }
42840
42841                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42842                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42843                         cat >>confdefs.h <<\_ACEOF
42844 #define wxUSE_GTKPRINT 1
42845 _ACEOF
42846
42847
42848 fi
42849         fi
42850
42851         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42852
42853
42854 pkg_failed=no
42855 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42856 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42857
42858 if test -n "$PKG_CONFIG"; then
42859     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42860         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42861     else
42862         if test -n "$PKG_CONFIG" && \
42863     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42864   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42865   ac_status=$?
42866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867   (exit $ac_status); }; then
42868   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42869 else
42870   pkg_failed=yes
42871 fi
42872     fi
42873 else
42874         pkg_failed=untried
42875 fi
42876 if test -n "$PKG_CONFIG"; then
42877     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42878         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42879     else
42880         if test -n "$PKG_CONFIG" && \
42881     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42882   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42883   ac_status=$?
42884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42885   (exit $ac_status); }; then
42886   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42887 else
42888   pkg_failed=yes
42889 fi
42890     fi
42891 else
42892         pkg_failed=untried
42893 fi
42894
42895
42896
42897 if test $pkg_failed = yes; then
42898
42899 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42900         _pkg_short_errors_supported=yes
42901 else
42902         _pkg_short_errors_supported=no
42903 fi
42904         if test $_pkg_short_errors_supported = yes; then
42905                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42906         else
42907                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42908         fi
42909         # Put the nasty error message in config.log where it belongs
42910         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42911
42912
42913                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42914 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42915                         wxUSE_LIBGNOMEPRINT="no"
42916
42917
42918 elif test $pkg_failed = untried; then
42919
42920                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42921 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42922                         wxUSE_LIBGNOMEPRINT="no"
42923
42924
42925 else
42926         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42927         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42928         { echo "$as_me:$LINENO: result: yes" >&5
42929 echo "${ECHO_T}yes" >&6; }
42930
42931                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42932                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42933                         cat >>confdefs.h <<\_ACEOF
42934 #define wxUSE_LIBGNOMEPRINT 1
42935 _ACEOF
42936
42937
42938 fi
42939         fi
42940     fi
42941
42942     if test "$wxUSE_MIMETYPE" = "yes" ; then
42943         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42944
42945
42946 pkg_failed=no
42947 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42948 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42949
42950 if test -n "$PKG_CONFIG"; then
42951     if test -n "$GNOMEVFS_CFLAGS"; then
42952         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42953     else
42954         if test -n "$PKG_CONFIG" && \
42955     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42956   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42957   ac_status=$?
42958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42959   (exit $ac_status); }; then
42960   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42961 else
42962   pkg_failed=yes
42963 fi
42964     fi
42965 else
42966         pkg_failed=untried
42967 fi
42968 if test -n "$PKG_CONFIG"; then
42969     if test -n "$GNOMEVFS_LIBS"; then
42970         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42971     else
42972         if test -n "$PKG_CONFIG" && \
42973     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42974   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42975   ac_status=$?
42976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42977   (exit $ac_status); }; then
42978   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42979 else
42980   pkg_failed=yes
42981 fi
42982     fi
42983 else
42984         pkg_failed=untried
42985 fi
42986
42987
42988
42989 if test $pkg_failed = yes; then
42990
42991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42992         _pkg_short_errors_supported=yes
42993 else
42994         _pkg_short_errors_supported=no
42995 fi
42996         if test $_pkg_short_errors_supported = yes; then
42997                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42998         else
42999                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43000         fi
43001         # Put the nasty error message in config.log where it belongs
43002         echo "$GNOMEVFS_PKG_ERRORS" >&5
43003
43004
43005                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43006 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43007                         wxUSE_LIBGNOMEVFS="no"
43008
43009
43010 elif test $pkg_failed = untried; then
43011
43012                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43013 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43014                         wxUSE_LIBGNOMEVFS="no"
43015
43016
43017 else
43018         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43019         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43020         { echo "$as_me:$LINENO: result: yes" >&5
43021 echo "${ECHO_T}yes" >&6; }
43022
43023                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43024                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43025                         cat >>confdefs.h <<\_ACEOF
43026 #define wxUSE_LIBGNOMEVFS 1
43027 _ACEOF
43028
43029
43030 fi
43031         fi
43032     fi
43033
43034     if test "$wxUSE_LIBHILDON" = "yes" ; then
43035
43036 pkg_failed=no
43037 { echo "$as_me:$LINENO: checking for HILDON" >&5
43038 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43039
43040 if test -n "$PKG_CONFIG"; then
43041     if test -n "$HILDON_CFLAGS"; then
43042         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43043     else
43044         if test -n "$PKG_CONFIG" && \
43045     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43046   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43047   ac_status=$?
43048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43049   (exit $ac_status); }; then
43050   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43051 else
43052   pkg_failed=yes
43053 fi
43054     fi
43055 else
43056         pkg_failed=untried
43057 fi
43058 if test -n "$PKG_CONFIG"; then
43059     if test -n "$HILDON_LIBS"; then
43060         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43061     else
43062         if test -n "$PKG_CONFIG" && \
43063     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43064   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43065   ac_status=$?
43066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067   (exit $ac_status); }; then
43068   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43069 else
43070   pkg_failed=yes
43071 fi
43072     fi
43073 else
43074         pkg_failed=untried
43075 fi
43076
43077
43078
43079 if test $pkg_failed = yes; then
43080
43081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43082         _pkg_short_errors_supported=yes
43083 else
43084         _pkg_short_errors_supported=no
43085 fi
43086         if test $_pkg_short_errors_supported = yes; then
43087                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43088         else
43089                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43090         fi
43091         # Put the nasty error message in config.log where it belongs
43092         echo "$HILDON_PKG_ERRORS" >&5
43093
43094
43095                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43096 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43097                         wxUSE_LIBHILDON="no"
43098
43099
43100 elif test $pkg_failed = untried; then
43101
43102                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43103 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43104                         wxUSE_LIBHILDON="no"
43105
43106
43107 else
43108         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43109         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43110         { echo "$as_me:$LINENO: result: yes" >&5
43111 echo "${ECHO_T}yes" >&6; }
43112
43113                 EXTRALIBS_HILDON="$HILDON_LIBS"
43114                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43115                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43116                 cat >>confdefs.h <<\_ACEOF
43117 #define wxUSE_LIBHILDON 1
43118 _ACEOF
43119
43120
43121 fi
43122     fi
43123 fi
43124
43125 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43126   cat >>confdefs.h <<\_ACEOF
43127 #define wxUSE_CMDLINE_PARSER 1
43128 _ACEOF
43129
43130 fi
43131
43132 if test "$wxUSE_STOPWATCH" = "yes"; then
43133   cat >>confdefs.h <<\_ACEOF
43134 #define wxUSE_STOPWATCH 1
43135 _ACEOF
43136
43137 fi
43138
43139 if test "$wxUSE_DATETIME" = "yes"; then
43140   cat >>confdefs.h <<\_ACEOF
43141 #define wxUSE_DATETIME 1
43142 _ACEOF
43143
43144 fi
43145
43146 if test "$wxUSE_FILE" = "yes"; then
43147   cat >>confdefs.h <<\_ACEOF
43148 #define wxUSE_FILE 1
43149 _ACEOF
43150
43151 fi
43152
43153 if test "$wxUSE_FFILE" = "yes"; then
43154   cat >>confdefs.h <<\_ACEOF
43155 #define wxUSE_FFILE 1
43156 _ACEOF
43157
43158 fi
43159
43160 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43161   if test "$wxUSE_STREAMS" != yes; then
43162     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43163 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43164     wxUSE_ARCHIVE_STREAMS=no
43165   else
43166     cat >>confdefs.h <<\_ACEOF
43167 #define wxUSE_ARCHIVE_STREAMS 1
43168 _ACEOF
43169
43170   fi
43171 fi
43172
43173 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43174   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43175     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43176 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43177   elif test "$wxUSE_ZLIB" = "no"; then
43178     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43179 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43180   else
43181     cat >>confdefs.h <<\_ACEOF
43182 #define wxUSE_ZIPSTREAM 1
43183 _ACEOF
43184
43185   fi
43186 fi
43187
43188 if test "$wxUSE_TARSTREAM" = "yes"; then
43189   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43190     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43191 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43192   else
43193     cat >>confdefs.h <<\_ACEOF
43194 #define wxUSE_TARSTREAM 1
43195 _ACEOF
43196
43197   fi
43198 fi
43199
43200 if test "$wxUSE_FILESYSTEM" = "yes"; then
43201   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43202     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43203 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43204     wxUSE_FILESYSTEM=no
43205   else
43206     cat >>confdefs.h <<\_ACEOF
43207 #define wxUSE_FILESYSTEM 1
43208 _ACEOF
43209
43210   fi
43211 fi
43212
43213 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43214   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43215     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43216 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43217   else
43218     cat >>confdefs.h <<\_ACEOF
43219 #define wxUSE_FS_ARCHIVE 1
43220 _ACEOF
43221
43222   fi
43223 fi
43224
43225 if test "$wxUSE_FS_ZIP" = "yes"; then
43226   if test "$wxUSE_FS_ARCHIVE" != yes; then
43227     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43228 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43229   else
43230     cat >>confdefs.h <<\_ACEOF
43231 #define wxUSE_FS_ZIP 1
43232 _ACEOF
43233
43234   fi
43235 fi
43236
43237 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43238   if test "$USE_UNIX" != 1; then
43239     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43240 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43241     wxUSE_ON_FATAL_EXCEPTION=no
43242   else
43243     cat >>confdefs.h <<\_ACEOF
43244 #define wxUSE_ON_FATAL_EXCEPTION 1
43245 _ACEOF
43246
43247   fi
43248 fi
43249
43250 if test "$wxUSE_STACKWALKER" = "yes"; then
43251     cat >>confdefs.h <<\_ACEOF
43252 #define wxUSE_STACKWALKER 1
43253 _ACEOF
43254
43255 fi
43256
43257 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43258     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43259         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43260 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43261         wxUSE_DEBUGREPORT=no
43262     else
43263         cat >>confdefs.h <<\_ACEOF
43264 #define wxUSE_DEBUGREPORT 1
43265 _ACEOF
43266
43267         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43268             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43269         fi
43270     fi
43271 fi
43272
43273 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43274   cat >>confdefs.h <<\_ACEOF
43275 #define wxUSE_SNGLINST_CHECKER 1
43276 _ACEOF
43277
43278 fi
43279
43280 if test "$wxUSE_BUSYINFO" = "yes"; then
43281   cat >>confdefs.h <<\_ACEOF
43282 #define wxUSE_BUSYINFO 1
43283 _ACEOF
43284
43285 fi
43286
43287 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43288   cat >>confdefs.h <<\_ACEOF
43289 #define wxUSE_STD_IOSTREAM 1
43290 _ACEOF
43291
43292 fi
43293
43294 if test "$wxUSE_STD_STRING" = "yes"; then
43295   cat >>confdefs.h <<\_ACEOF
43296 #define wxUSE_STD_STRING 1
43297 _ACEOF
43298
43299 fi
43300
43301 if test "$wxUSE_STDPATHS" = "yes"; then
43302   cat >>confdefs.h <<\_ACEOF
43303 #define wxUSE_STDPATHS 1
43304 _ACEOF
43305
43306 fi
43307
43308 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43309     cat >>confdefs.h <<\_ACEOF
43310 #define wxUSE_TEXTBUFFER 1
43311 _ACEOF
43312
43313 fi
43314
43315 if test "$wxUSE_TEXTFILE" = "yes"; then
43316   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43317     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43318 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43319   else
43320     cat >>confdefs.h <<\_ACEOF
43321 #define wxUSE_TEXTFILE 1
43322 _ACEOF
43323
43324   fi
43325 fi
43326
43327 if test "$wxUSE_CONFIG" = "yes" ; then
43328   if test "$wxUSE_TEXTFILE" != "yes"; then
43329     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43330 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43331   else
43332     cat >>confdefs.h <<\_ACEOF
43333 #define wxUSE_CONFIG 1
43334 _ACEOF
43335
43336     cat >>confdefs.h <<\_ACEOF
43337 #define wxUSE_CONFIG_NATIVE 1
43338 _ACEOF
43339
43340     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43341   fi
43342 fi
43343
43344 if test "$wxUSE_INTL" = "yes" ; then
43345   if test "$wxUSE_FILE" != "yes"; then
43346     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43347 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43348   else
43349     cat >>confdefs.h <<\_ACEOF
43350 #define wxUSE_INTL 1
43351 _ACEOF
43352
43353     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43354     GUIDIST="$GUIDIST INTL_DIST"
43355   fi
43356 fi
43357
43358 if test "$wxUSE_XLOCALE" = "yes" ; then
43359     cat >>confdefs.h <<\_ACEOF
43360 #define wxUSE_XLOCALE 1
43361 _ACEOF
43362
43363     { echo "$as_me:$LINENO: checking for locale_t" >&5
43364 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43365 if test "${ac_cv_type_locale_t+set}" = set; then
43366   echo $ECHO_N "(cached) $ECHO_C" >&6
43367 else
43368   cat >conftest.$ac_ext <<_ACEOF
43369 /* confdefs.h.  */
43370 _ACEOF
43371 cat confdefs.h >>conftest.$ac_ext
43372 cat >>conftest.$ac_ext <<_ACEOF
43373 /* end confdefs.h.  */
43374 #include <xlocale.h>
43375                     #include <locale.h>
43376
43377 typedef locale_t ac__type_new_;
43378 int
43379 main ()
43380 {
43381 if ((ac__type_new_ *) 0)
43382   return 0;
43383 if (sizeof (ac__type_new_))
43384   return 0;
43385   ;
43386   return 0;
43387 }
43388 _ACEOF
43389 rm -f conftest.$ac_objext
43390 if { (ac_try="$ac_compile"
43391 case "(($ac_try" in
43392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43393   *) ac_try_echo=$ac_try;;
43394 esac
43395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43396   (eval "$ac_compile") 2>conftest.er1
43397   ac_status=$?
43398   grep -v '^ *+' conftest.er1 >conftest.err
43399   rm -f conftest.er1
43400   cat conftest.err >&5
43401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402   (exit $ac_status); } && {
43403          test -z "$ac_c_werror_flag" ||
43404          test ! -s conftest.err
43405        } && test -s conftest.$ac_objext; then
43406   ac_cv_type_locale_t=yes
43407 else
43408   echo "$as_me: failed program was:" >&5
43409 sed 's/^/| /' conftest.$ac_ext >&5
43410
43411         ac_cv_type_locale_t=no
43412 fi
43413
43414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43415 fi
43416 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43417 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43418 if test $ac_cv_type_locale_t = yes; then
43419
43420 cat >>confdefs.h <<_ACEOF
43421 #define HAVE_LOCALE_T 1
43422 _ACEOF
43423
43424
43425 fi
43426
43427 fi
43428
43429 if test "$wxUSE_LOG" = "yes"; then
43430   cat >>confdefs.h <<\_ACEOF
43431 #define wxUSE_LOG 1
43432 _ACEOF
43433
43434
43435     if test "$wxUSE_LOGGUI" = "yes"; then
43436       cat >>confdefs.h <<\_ACEOF
43437 #define wxUSE_LOGGUI 1
43438 _ACEOF
43439
43440     fi
43441
43442     if test "$wxUSE_LOGWINDOW" = "yes"; then
43443       cat >>confdefs.h <<\_ACEOF
43444 #define wxUSE_LOGWINDOW 1
43445 _ACEOF
43446
43447     fi
43448
43449     if test "$wxUSE_LOGDIALOG" = "yes"; then
43450       cat >>confdefs.h <<\_ACEOF
43451 #define wxUSE_LOG_DIALOG 1
43452 _ACEOF
43453
43454     fi
43455
43456         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43457 fi
43458
43459 if test "$wxUSE_LONGLONG" = "yes"; then
43460   cat >>confdefs.h <<\_ACEOF
43461 #define wxUSE_LONGLONG 1
43462 _ACEOF
43463
43464 fi
43465
43466 if test "$wxUSE_GEOMETRY" = "yes"; then
43467   cat >>confdefs.h <<\_ACEOF
43468 #define wxUSE_GEOMETRY 1
43469 _ACEOF
43470
43471 fi
43472
43473 if test "$wxUSE_BASE64" = "yes"; then
43474   cat >>confdefs.h <<\_ACEOF
43475 #define wxUSE_BASE64 1
43476 _ACEOF
43477
43478 fi
43479
43480 if test "$wxUSE_STREAMS" = "yes" ; then
43481   cat >>confdefs.h <<\_ACEOF
43482 #define wxUSE_STREAMS 1
43483 _ACEOF
43484
43485 fi
43486
43487 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43488   cat >>confdefs.h <<\_ACEOF
43489 #define wxUSE_PRINTF_POS_PARAMS 1
43490 _ACEOF
43491
43492 fi
43493
43494 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43495   cat >>confdefs.h <<\_ACEOF
43496 #define wxUSE_OBJC_UNIQUIFYING 1
43497 _ACEOF
43498
43499 fi
43500
43501
43502 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43503     cat >>confdefs.h <<\_ACEOF
43504 #define wxUSE_CONSOLE_EVENTLOOP 1
43505 _ACEOF
43506
43507
43508     if test "$wxUSE_UNIX" = "yes"; then
43509         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43510             cat >>confdefs.h <<\_ACEOF
43511 #define wxUSE_SELECT_DISPATCHER 1
43512 _ACEOF
43513
43514         fi
43515
43516         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43517
43518 for ac_header in sys/epoll.h
43519 do
43520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43524   echo $ECHO_N "(cached) $ECHO_C" >&6
43525 else
43526   cat >conftest.$ac_ext <<_ACEOF
43527 /* confdefs.h.  */
43528 _ACEOF
43529 cat confdefs.h >>conftest.$ac_ext
43530 cat >>conftest.$ac_ext <<_ACEOF
43531 /* end confdefs.h.  */
43532 $ac_includes_default
43533
43534 #include <$ac_header>
43535 _ACEOF
43536 rm -f conftest.$ac_objext
43537 if { (ac_try="$ac_compile"
43538 case "(($ac_try" in
43539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43540   *) ac_try_echo=$ac_try;;
43541 esac
43542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43543   (eval "$ac_compile") 2>conftest.er1
43544   ac_status=$?
43545   grep -v '^ *+' conftest.er1 >conftest.err
43546   rm -f conftest.er1
43547   cat conftest.err >&5
43548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549   (exit $ac_status); } && {
43550          test -z "$ac_c_werror_flag" ||
43551          test ! -s conftest.err
43552        } && test -s conftest.$ac_objext; then
43553   eval "$as_ac_Header=yes"
43554 else
43555   echo "$as_me: failed program was:" >&5
43556 sed 's/^/| /' conftest.$ac_ext >&5
43557
43558         eval "$as_ac_Header=no"
43559 fi
43560
43561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43562 fi
43563 ac_res=`eval echo '${'$as_ac_Header'}'`
43564                { echo "$as_me:$LINENO: result: $ac_res" >&5
43565 echo "${ECHO_T}$ac_res" >&6; }
43566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43567   cat >>confdefs.h <<_ACEOF
43568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43569 _ACEOF
43570
43571 fi
43572
43573 done
43574
43575             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43576                 cat >>confdefs.h <<\_ACEOF
43577 #define wxUSE_EPOLL_DISPATCHER 1
43578 _ACEOF
43579
43580             else
43581                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43582 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43583             fi
43584         fi
43585     fi
43586 fi
43587
43588
43589
43590
43591 for ac_func in gettimeofday ftime
43592 do
43593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43597   echo $ECHO_N "(cached) $ECHO_C" >&6
43598 else
43599   cat >conftest.$ac_ext <<_ACEOF
43600 /* confdefs.h.  */
43601 _ACEOF
43602 cat confdefs.h >>conftest.$ac_ext
43603 cat >>conftest.$ac_ext <<_ACEOF
43604 /* end confdefs.h.  */
43605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43607 #define $ac_func innocuous_$ac_func
43608
43609 /* System header to define __stub macros and hopefully few prototypes,
43610     which can conflict with char $ac_func (); below.
43611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43612     <limits.h> exists even on freestanding compilers.  */
43613
43614 #ifdef __STDC__
43615 # include <limits.h>
43616 #else
43617 # include <assert.h>
43618 #endif
43619
43620 #undef $ac_func
43621
43622 /* Override any GCC internal prototype to avoid an error.
43623    Use char because int might match the return type of a GCC
43624    builtin and then its argument prototype would still apply.  */
43625 #ifdef __cplusplus
43626 extern "C"
43627 #endif
43628 char $ac_func ();
43629 /* The GNU C library defines this for functions which it implements
43630     to always fail with ENOSYS.  Some functions are actually named
43631     something starting with __ and the normal name is an alias.  */
43632 #if defined __stub_$ac_func || defined __stub___$ac_func
43633 choke me
43634 #endif
43635
43636 int
43637 main ()
43638 {
43639 return $ac_func ();
43640   ;
43641   return 0;
43642 }
43643 _ACEOF
43644 rm -f conftest.$ac_objext conftest$ac_exeext
43645 if { (ac_try="$ac_link"
43646 case "(($ac_try" in
43647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43648   *) ac_try_echo=$ac_try;;
43649 esac
43650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43651   (eval "$ac_link") 2>conftest.er1
43652   ac_status=$?
43653   grep -v '^ *+' conftest.er1 >conftest.err
43654   rm -f conftest.er1
43655   cat conftest.err >&5
43656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43657   (exit $ac_status); } && {
43658          test -z "$ac_c_werror_flag" ||
43659          test ! -s conftest.err
43660        } && test -s conftest$ac_exeext &&
43661        $as_test_x conftest$ac_exeext; then
43662   eval "$as_ac_var=yes"
43663 else
43664   echo "$as_me: failed program was:" >&5
43665 sed 's/^/| /' conftest.$ac_ext >&5
43666
43667         eval "$as_ac_var=no"
43668 fi
43669
43670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43671       conftest$ac_exeext conftest.$ac_ext
43672 fi
43673 ac_res=`eval echo '${'$as_ac_var'}'`
43674                { echo "$as_me:$LINENO: result: $ac_res" >&5
43675 echo "${ECHO_T}$ac_res" >&6; }
43676 if test `eval echo '${'$as_ac_var'}'` = yes; then
43677   cat >>confdefs.h <<_ACEOF
43678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43679 _ACEOF
43680  break
43681 fi
43682 done
43683
43684
43685 if test "$ac_cv_func_gettimeofday" = "yes"; then
43686     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43687 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43688 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43689   echo $ECHO_N "(cached) $ECHO_C" >&6
43690 else
43691
43692                 cat >conftest.$ac_ext <<_ACEOF
43693 /* confdefs.h.  */
43694 _ACEOF
43695 cat confdefs.h >>conftest.$ac_ext
43696 cat >>conftest.$ac_ext <<_ACEOF
43697 /* end confdefs.h.  */
43698
43699                 #include <sys/time.h>
43700                 #include <unistd.h>
43701
43702 int
43703 main ()
43704 {
43705
43706                 struct timeval tv;
43707                 gettimeofday(&tv, NULL);
43708
43709   ;
43710   return 0;
43711 }
43712 _ACEOF
43713 rm -f conftest.$ac_objext
43714 if { (ac_try="$ac_compile"
43715 case "(($ac_try" in
43716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43717   *) ac_try_echo=$ac_try;;
43718 esac
43719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43720   (eval "$ac_compile") 2>conftest.er1
43721   ac_status=$?
43722   grep -v '^ *+' conftest.er1 >conftest.err
43723   rm -f conftest.er1
43724   cat conftest.err >&5
43725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43726   (exit $ac_status); } && {
43727          test -z "$ac_c_werror_flag" ||
43728          test ! -s conftest.err
43729        } && test -s conftest.$ac_objext; then
43730   wx_cv_func_gettimeofday_has_2_args=yes
43731 else
43732   echo "$as_me: failed program was:" >&5
43733 sed 's/^/| /' conftest.$ac_ext >&5
43734
43735         cat >conftest.$ac_ext <<_ACEOF
43736 /* confdefs.h.  */
43737 _ACEOF
43738 cat confdefs.h >>conftest.$ac_ext
43739 cat >>conftest.$ac_ext <<_ACEOF
43740 /* end confdefs.h.  */
43741
43742                     #include <sys/time.h>
43743                     #include <unistd.h>
43744
43745 int
43746 main ()
43747 {
43748
43749                     struct timeval tv;
43750                     gettimeofday(&tv);
43751
43752   ;
43753   return 0;
43754 }
43755 _ACEOF
43756 rm -f conftest.$ac_objext
43757 if { (ac_try="$ac_compile"
43758 case "(($ac_try" in
43759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43760   *) ac_try_echo=$ac_try;;
43761 esac
43762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43763   (eval "$ac_compile") 2>conftest.er1
43764   ac_status=$?
43765   grep -v '^ *+' conftest.er1 >conftest.err
43766   rm -f conftest.er1
43767   cat conftest.err >&5
43768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43769   (exit $ac_status); } && {
43770          test -z "$ac_c_werror_flag" ||
43771          test ! -s conftest.err
43772        } && test -s conftest.$ac_objext; then
43773   wx_cv_func_gettimeofday_has_2_args=no
43774 else
43775   echo "$as_me: failed program was:" >&5
43776 sed 's/^/| /' conftest.$ac_ext >&5
43777
43778
43779                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43780 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43781                     wx_cv_func_gettimeofday_has_2_args=unknown
43782
43783
43784 fi
43785
43786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43787
43788 fi
43789
43790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43791
43792 fi
43793 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43794 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43795
43796     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43797         cat >>confdefs.h <<\_ACEOF
43798 #define WX_GETTIMEOFDAY_NO_TZ 1
43799 _ACEOF
43800
43801     fi
43802 fi
43803
43804 if test "$wxUSE_DATETIME" = "yes"; then
43805         { echo "$as_me:$LINENO: checking for strptime" >&5
43806 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43807 if test "${ac_cv_func_strptime+set}" = set; then
43808   echo $ECHO_N "(cached) $ECHO_C" >&6
43809 else
43810   cat >conftest.$ac_ext <<_ACEOF
43811 /* confdefs.h.  */
43812 _ACEOF
43813 cat confdefs.h >>conftest.$ac_ext
43814 cat >>conftest.$ac_ext <<_ACEOF
43815 /* end confdefs.h.  */
43816 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43818 #define strptime innocuous_strptime
43819
43820 /* System header to define __stub macros and hopefully few prototypes,
43821     which can conflict with char strptime (); below.
43822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43823     <limits.h> exists even on freestanding compilers.  */
43824
43825 #ifdef __STDC__
43826 # include <limits.h>
43827 #else
43828 # include <assert.h>
43829 #endif
43830
43831 #undef strptime
43832
43833 /* Override any GCC internal prototype to avoid an error.
43834    Use char because int might match the return type of a GCC
43835    builtin and then its argument prototype would still apply.  */
43836 #ifdef __cplusplus
43837 extern "C"
43838 #endif
43839 char strptime ();
43840 /* The GNU C library defines this for functions which it implements
43841     to always fail with ENOSYS.  Some functions are actually named
43842     something starting with __ and the normal name is an alias.  */
43843 #if defined __stub_strptime || defined __stub___strptime
43844 choke me
43845 #endif
43846
43847 int
43848 main ()
43849 {
43850 return strptime ();
43851   ;
43852   return 0;
43853 }
43854 _ACEOF
43855 rm -f conftest.$ac_objext conftest$ac_exeext
43856 if { (ac_try="$ac_link"
43857 case "(($ac_try" in
43858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43859   *) ac_try_echo=$ac_try;;
43860 esac
43861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43862   (eval "$ac_link") 2>conftest.er1
43863   ac_status=$?
43864   grep -v '^ *+' conftest.er1 >conftest.err
43865   rm -f conftest.er1
43866   cat conftest.err >&5
43867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43868   (exit $ac_status); } && {
43869          test -z "$ac_c_werror_flag" ||
43870          test ! -s conftest.err
43871        } && test -s conftest$ac_exeext &&
43872        $as_test_x conftest$ac_exeext; then
43873   ac_cv_func_strptime=yes
43874 else
43875   echo "$as_me: failed program was:" >&5
43876 sed 's/^/| /' conftest.$ac_ext >&5
43877
43878         ac_cv_func_strptime=no
43879 fi
43880
43881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43882       conftest$ac_exeext conftest.$ac_ext
43883 fi
43884 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43885 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43886
43887     if test "$ac_cv_func_strptime" = "yes"; then
43888         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43889 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43890 if test "${wx_cv_func_strptime_decl+set}" = set; then
43891   echo $ECHO_N "(cached) $ECHO_C" >&6
43892 else
43893
43894                 ac_ext=cpp
43895 ac_cpp='$CXXCPP $CPPFLAGS'
43896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43899
43900                 cat >conftest.$ac_ext <<_ACEOF
43901 /* confdefs.h.  */
43902 _ACEOF
43903 cat confdefs.h >>conftest.$ac_ext
43904 cat >>conftest.$ac_ext <<_ACEOF
43905 /* end confdefs.h.  */
43906
43907                         #include <time.h>
43908
43909 int
43910 main ()
43911 {
43912
43913                         struct tm t;
43914                         strptime("foo", "bar", &t);
43915
43916   ;
43917   return 0;
43918 }
43919 _ACEOF
43920 rm -f conftest.$ac_objext
43921 if { (ac_try="$ac_compile"
43922 case "(($ac_try" in
43923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43924   *) ac_try_echo=$ac_try;;
43925 esac
43926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43927   (eval "$ac_compile") 2>conftest.er1
43928   ac_status=$?
43929   grep -v '^ *+' conftest.er1 >conftest.err
43930   rm -f conftest.er1
43931   cat conftest.err >&5
43932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43933   (exit $ac_status); } && {
43934          test -z "$ac_cxx_werror_flag" ||
43935          test ! -s conftest.err
43936        } && test -s conftest.$ac_objext; then
43937   wx_cv_func_strptime_decl=yes
43938 else
43939   echo "$as_me: failed program was:" >&5
43940 sed 's/^/| /' conftest.$ac_ext >&5
43941
43942         wx_cv_func_strptime_decl=no
43943
43944 fi
43945
43946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43947                 ac_ext=c
43948 ac_cpp='$CPP $CPPFLAGS'
43949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43952
43953
43954
43955 fi
43956 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43957 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43958     fi
43959     if test "$wx_cv_func_strptime_decl" = "yes"; then
43960         cat >>confdefs.h <<\_ACEOF
43961 #define HAVE_STRPTIME_DECL 1
43962 _ACEOF
43963
43964     else
43965         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43966     fi
43967     if test "$ac_cv_func_strptime" = "yes"; then
43968                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43969 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43970 if test "${wx_cv_func_strptime_ok+set}" = set; then
43971   echo $ECHO_N "(cached) $ECHO_C" >&6
43972 else
43973   if test "$cross_compiling" = yes; then
43974                   wx_cv_func_strptime_ok=no
43975
43976 else
43977   cat >conftest.$ac_ext <<_ACEOF
43978
43979                     #include <stdlib.h>
43980                     #include <time.h>
43981                     #include "confdefs.h"
43982
43983                     $wx_strptime_decl
43984
43985                     int main()
43986                     {
43987                         struct tm t;
43988                         return !!strptime("", "%x", &t);
43989                     }
43990
43991 _ACEOF
43992 rm -f conftest$ac_exeext
43993 if { (ac_try="$ac_link"
43994 case "(($ac_try" in
43995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43996   *) ac_try_echo=$ac_try;;
43997 esac
43998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43999   (eval "$ac_link") 2>&5
44000   ac_status=$?
44001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44003   { (case "(($ac_try" in
44004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44005   *) ac_try_echo=$ac_try;;
44006 esac
44007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44008   (eval "$ac_try") 2>&5
44009   ac_status=$?
44010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011   (exit $ac_status); }; }; then
44012   wx_cv_func_strptime_ok=yes
44013 else
44014   echo "$as_me: program exited with status $ac_status" >&5
44015 echo "$as_me: failed program was:" >&5
44016 sed 's/^/| /' conftest.$ac_ext >&5
44017
44018 ( exit $ac_status )
44019 wx_cv_func_strptime_ok=no
44020 fi
44021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44022 fi
44023
44024
44025
44026 fi
44027 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
44028 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
44029
44030         if test "$wx_cv_func_strptime_ok" = "yes"; then
44031             cat >>confdefs.h <<\_ACEOF
44032 #define HAVE_STRPTIME 1
44033 _ACEOF
44034
44035         fi
44036     fi
44037
44038             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44039 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
44040 if test "${wx_cv_var_timezone+set}" = set; then
44041   echo $ECHO_N "(cached) $ECHO_C" >&6
44042 else
44043
44044                         ac_ext=cpp
44045 ac_cpp='$CXXCPP $CPPFLAGS'
44046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44049
44050                         cat >conftest.$ac_ext <<_ACEOF
44051 /* confdefs.h.  */
44052 _ACEOF
44053 cat confdefs.h >>conftest.$ac_ext
44054 cat >>conftest.$ac_ext <<_ACEOF
44055 /* end confdefs.h.  */
44056
44057                                 #include <time.h>
44058
44059 int
44060 main ()
44061 {
44062
44063                                 int tz;
44064                                 tz = timezone;
44065
44066   ;
44067   return 0;
44068 }
44069 _ACEOF
44070 rm -f conftest.$ac_objext
44071 if { (ac_try="$ac_compile"
44072 case "(($ac_try" in
44073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44074   *) ac_try_echo=$ac_try;;
44075 esac
44076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44077   (eval "$ac_compile") 2>conftest.er1
44078   ac_status=$?
44079   grep -v '^ *+' conftest.er1 >conftest.err
44080   rm -f conftest.er1
44081   cat conftest.err >&5
44082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083   (exit $ac_status); } && {
44084          test -z "$ac_cxx_werror_flag" ||
44085          test ! -s conftest.err
44086        } && test -s conftest.$ac_objext; then
44087
44088                                 wx_cv_var_timezone=timezone
44089
44090 else
44091   echo "$as_me: failed program was:" >&5
44092 sed 's/^/| /' conftest.$ac_ext >&5
44093
44094
44095                                 cat >conftest.$ac_ext <<_ACEOF
44096 /* confdefs.h.  */
44097 _ACEOF
44098 cat confdefs.h >>conftest.$ac_ext
44099 cat >>conftest.$ac_ext <<_ACEOF
44100 /* end confdefs.h.  */
44101
44102                                         #include <time.h>
44103
44104 int
44105 main ()
44106 {
44107
44108                                         int tz;
44109                                         tz = _timezone;
44110
44111   ;
44112   return 0;
44113 }
44114 _ACEOF
44115 rm -f conftest.$ac_objext
44116 if { (ac_try="$ac_compile"
44117 case "(($ac_try" in
44118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44119   *) ac_try_echo=$ac_try;;
44120 esac
44121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44122   (eval "$ac_compile") 2>conftest.er1
44123   ac_status=$?
44124   grep -v '^ *+' conftest.er1 >conftest.err
44125   rm -f conftest.er1
44126   cat conftest.err >&5
44127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44128   (exit $ac_status); } && {
44129          test -z "$ac_cxx_werror_flag" ||
44130          test ! -s conftest.err
44131        } && test -s conftest.$ac_objext; then
44132
44133                                         wx_cv_var_timezone=_timezone
44134
44135 else
44136   echo "$as_me: failed program was:" >&5
44137 sed 's/^/| /' conftest.$ac_ext >&5
44138
44139
44140                                         cat >conftest.$ac_ext <<_ACEOF
44141 /* confdefs.h.  */
44142 _ACEOF
44143 cat confdefs.h >>conftest.$ac_ext
44144 cat >>conftest.$ac_ext <<_ACEOF
44145 /* end confdefs.h.  */
44146
44147                                                 #include <time.h>
44148
44149 int
44150 main ()
44151 {
44152
44153                                                 int tz;
44154                                                 tz = __timezone;
44155
44156   ;
44157   return 0;
44158 }
44159 _ACEOF
44160 rm -f conftest.$ac_objext
44161 if { (ac_try="$ac_compile"
44162 case "(($ac_try" in
44163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44164   *) ac_try_echo=$ac_try;;
44165 esac
44166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44167   (eval "$ac_compile") 2>conftest.er1
44168   ac_status=$?
44169   grep -v '^ *+' conftest.er1 >conftest.err
44170   rm -f conftest.er1
44171   cat conftest.err >&5
44172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44173   (exit $ac_status); } && {
44174          test -z "$ac_cxx_werror_flag" ||
44175          test ! -s conftest.err
44176        } && test -s conftest.$ac_objext; then
44177
44178                                                 wx_cv_var_timezone=__timezone
44179
44180 else
44181   echo "$as_me: failed program was:" >&5
44182 sed 's/^/| /' conftest.$ac_ext >&5
44183
44184
44185                                                 if test "$USE_DOS" = 0 ; then
44186                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44187 echo "$as_me: WARNING: no timezone variable" >&2;}
44188                                                 fi
44189
44190
44191 fi
44192
44193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44194
44195
44196 fi
44197
44198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44199
44200
44201 fi
44202
44203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44204                         ac_ext=c
44205 ac_cpp='$CPP $CPPFLAGS'
44206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44209
44210
44211
44212 fi
44213 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44214 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44215
44216         if test "x$wx_cv_var_timezone" != x ; then
44217         cat >>confdefs.h <<_ACEOF
44218 #define WX_TIMEZONE $wx_cv_var_timezone
44219 _ACEOF
44220
44221     fi
44222
44223
44224 for ac_func in localtime
44225 do
44226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44230   echo $ECHO_N "(cached) $ECHO_C" >&6
44231 else
44232   cat >conftest.$ac_ext <<_ACEOF
44233 /* confdefs.h.  */
44234 _ACEOF
44235 cat confdefs.h >>conftest.$ac_ext
44236 cat >>conftest.$ac_ext <<_ACEOF
44237 /* end confdefs.h.  */
44238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44240 #define $ac_func innocuous_$ac_func
44241
44242 /* System header to define __stub macros and hopefully few prototypes,
44243     which can conflict with char $ac_func (); below.
44244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44245     <limits.h> exists even on freestanding compilers.  */
44246
44247 #ifdef __STDC__
44248 # include <limits.h>
44249 #else
44250 # include <assert.h>
44251 #endif
44252
44253 #undef $ac_func
44254
44255 /* Override any GCC internal prototype to avoid an error.
44256    Use char because int might match the return type of a GCC
44257    builtin and then its argument prototype would still apply.  */
44258 #ifdef __cplusplus
44259 extern "C"
44260 #endif
44261 char $ac_func ();
44262 /* The GNU C library defines this for functions which it implements
44263     to always fail with ENOSYS.  Some functions are actually named
44264     something starting with __ and the normal name is an alias.  */
44265 #if defined __stub_$ac_func || defined __stub___$ac_func
44266 choke me
44267 #endif
44268
44269 int
44270 main ()
44271 {
44272 return $ac_func ();
44273   ;
44274   return 0;
44275 }
44276 _ACEOF
44277 rm -f conftest.$ac_objext conftest$ac_exeext
44278 if { (ac_try="$ac_link"
44279 case "(($ac_try" in
44280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44281   *) ac_try_echo=$ac_try;;
44282 esac
44283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44284   (eval "$ac_link") 2>conftest.er1
44285   ac_status=$?
44286   grep -v '^ *+' conftest.er1 >conftest.err
44287   rm -f conftest.er1
44288   cat conftest.err >&5
44289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44290   (exit $ac_status); } && {
44291          test -z "$ac_c_werror_flag" ||
44292          test ! -s conftest.err
44293        } && test -s conftest$ac_exeext &&
44294        $as_test_x conftest$ac_exeext; then
44295   eval "$as_ac_var=yes"
44296 else
44297   echo "$as_me: failed program was:" >&5
44298 sed 's/^/| /' conftest.$ac_ext >&5
44299
44300         eval "$as_ac_var=no"
44301 fi
44302
44303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44304       conftest$ac_exeext conftest.$ac_ext
44305 fi
44306 ac_res=`eval echo '${'$as_ac_var'}'`
44307                { echo "$as_me:$LINENO: result: $ac_res" >&5
44308 echo "${ECHO_T}$ac_res" >&6; }
44309 if test `eval echo '${'$as_ac_var'}'` = yes; then
44310   cat >>confdefs.h <<_ACEOF
44311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44312 _ACEOF
44313
44314 fi
44315 done
44316
44317
44318     if test "$ac_cv_func_localtime" = "yes"; then
44319         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44320 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44321 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44322   echo $ECHO_N "(cached) $ECHO_C" >&6
44323 else
44324
44325             cat >conftest.$ac_ext <<_ACEOF
44326 /* confdefs.h.  */
44327 _ACEOF
44328 cat confdefs.h >>conftest.$ac_ext
44329 cat >>conftest.$ac_ext <<_ACEOF
44330 /* end confdefs.h.  */
44331
44332                     #include <time.h>
44333
44334 int
44335 main ()
44336 {
44337
44338                     struct tm tm;
44339                     tm.tm_gmtoff++;
44340
44341   ;
44342   return 0;
44343 }
44344 _ACEOF
44345 rm -f conftest.$ac_objext
44346 if { (ac_try="$ac_compile"
44347 case "(($ac_try" in
44348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44349   *) ac_try_echo=$ac_try;;
44350 esac
44351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44352   (eval "$ac_compile") 2>conftest.er1
44353   ac_status=$?
44354   grep -v '^ *+' conftest.er1 >conftest.err
44355   rm -f conftest.er1
44356   cat conftest.err >&5
44357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358   (exit $ac_status); } && {
44359          test -z "$ac_c_werror_flag" ||
44360          test ! -s conftest.err
44361        } && test -s conftest.$ac_objext; then
44362
44363                     wx_cv_struct_tm_has_gmtoff=yes
44364
44365 else
44366   echo "$as_me: failed program was:" >&5
44367 sed 's/^/| /' conftest.$ac_ext >&5
44368
44369         wx_cv_struct_tm_has_gmtoff=no
44370
44371 fi
44372
44373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44374
44375 fi
44376 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44377 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44378     fi
44379
44380     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44381         cat >>confdefs.h <<\_ACEOF
44382 #define WX_GMTOFF_IN_TM 1
44383 _ACEOF
44384
44385     fi
44386
44387     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44388 fi
44389
44390
44391 if test "$wxUSE_SOCKETS" = "yes"; then
44392     if test "$wxUSE_MGL" = 1; then
44393         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44394 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44395         wxUSE_SOCKETS="no"
44396     fi
44397 fi
44398
44399 if test "$wxUSE_SOCKETS" = "yes"; then
44400         if test "$TOOLKIT" != "MSW"; then
44401                 { echo "$as_me:$LINENO: checking for socket" >&5
44402 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44403 if test "${ac_cv_func_socket+set}" = set; then
44404   echo $ECHO_N "(cached) $ECHO_C" >&6
44405 else
44406   cat >conftest.$ac_ext <<_ACEOF
44407 /* confdefs.h.  */
44408 _ACEOF
44409 cat confdefs.h >>conftest.$ac_ext
44410 cat >>conftest.$ac_ext <<_ACEOF
44411 /* end confdefs.h.  */
44412 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44414 #define socket innocuous_socket
44415
44416 /* System header to define __stub macros and hopefully few prototypes,
44417     which can conflict with char socket (); below.
44418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44419     <limits.h> exists even on freestanding compilers.  */
44420
44421 #ifdef __STDC__
44422 # include <limits.h>
44423 #else
44424 # include <assert.h>
44425 #endif
44426
44427 #undef socket
44428
44429 /* Override any GCC internal prototype to avoid an error.
44430    Use char because int might match the return type of a GCC
44431    builtin and then its argument prototype would still apply.  */
44432 #ifdef __cplusplus
44433 extern "C"
44434 #endif
44435 char socket ();
44436 /* The GNU C library defines this for functions which it implements
44437     to always fail with ENOSYS.  Some functions are actually named
44438     something starting with __ and the normal name is an alias.  */
44439 #if defined __stub_socket || defined __stub___socket
44440 choke me
44441 #endif
44442
44443 int
44444 main ()
44445 {
44446 return socket ();
44447   ;
44448   return 0;
44449 }
44450 _ACEOF
44451 rm -f conftest.$ac_objext conftest$ac_exeext
44452 if { (ac_try="$ac_link"
44453 case "(($ac_try" in
44454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44455   *) ac_try_echo=$ac_try;;
44456 esac
44457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44458   (eval "$ac_link") 2>conftest.er1
44459   ac_status=$?
44460   grep -v '^ *+' conftest.er1 >conftest.err
44461   rm -f conftest.er1
44462   cat conftest.err >&5
44463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44464   (exit $ac_status); } && {
44465          test -z "$ac_c_werror_flag" ||
44466          test ! -s conftest.err
44467        } && test -s conftest$ac_exeext &&
44468        $as_test_x conftest$ac_exeext; then
44469   ac_cv_func_socket=yes
44470 else
44471   echo "$as_me: failed program was:" >&5
44472 sed 's/^/| /' conftest.$ac_ext >&5
44473
44474         ac_cv_func_socket=no
44475 fi
44476
44477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44478       conftest$ac_exeext conftest.$ac_ext
44479 fi
44480 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44481 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44482 if test $ac_cv_func_socket = yes; then
44483   :
44484 else
44485
44486                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44487 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44488 if test "${ac_cv_lib_socket_socket+set}" = set; then
44489   echo $ECHO_N "(cached) $ECHO_C" >&6
44490 else
44491   ac_check_lib_save_LIBS=$LIBS
44492 LIBS="-lsocket  $LIBS"
44493 cat >conftest.$ac_ext <<_ACEOF
44494 /* confdefs.h.  */
44495 _ACEOF
44496 cat confdefs.h >>conftest.$ac_ext
44497 cat >>conftest.$ac_ext <<_ACEOF
44498 /* end confdefs.h.  */
44499
44500 /* Override any GCC internal prototype to avoid an error.
44501    Use char because int might match the return type of a GCC
44502    builtin and then its argument prototype would still apply.  */
44503 #ifdef __cplusplus
44504 extern "C"
44505 #endif
44506 char socket ();
44507 int
44508 main ()
44509 {
44510 return socket ();
44511   ;
44512   return 0;
44513 }
44514 _ACEOF
44515 rm -f conftest.$ac_objext conftest$ac_exeext
44516 if { (ac_try="$ac_link"
44517 case "(($ac_try" in
44518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44519   *) ac_try_echo=$ac_try;;
44520 esac
44521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44522   (eval "$ac_link") 2>conftest.er1
44523   ac_status=$?
44524   grep -v '^ *+' conftest.er1 >conftest.err
44525   rm -f conftest.er1
44526   cat conftest.err >&5
44527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44528   (exit $ac_status); } && {
44529          test -z "$ac_c_werror_flag" ||
44530          test ! -s conftest.err
44531        } && test -s conftest$ac_exeext &&
44532        $as_test_x conftest$ac_exeext; then
44533   ac_cv_lib_socket_socket=yes
44534 else
44535   echo "$as_me: failed program was:" >&5
44536 sed 's/^/| /' conftest.$ac_ext >&5
44537
44538         ac_cv_lib_socket_socket=no
44539 fi
44540
44541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44542       conftest$ac_exeext conftest.$ac_ext
44543 LIBS=$ac_check_lib_save_LIBS
44544 fi
44545 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44546 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44547 if test $ac_cv_lib_socket_socket = yes; then
44548   if test "$INET_LINK" != " -lsocket"; then
44549                         INET_LINK="$INET_LINK -lsocket"
44550                     fi
44551 else
44552
44553                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44554 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44555                         wxUSE_SOCKETS=no
44556
44557
44558 fi
44559
44560
44561
44562 fi
44563
44564     fi
44565 fi
44566
44567 if test "$wxUSE_SOCKETS" = "yes" ; then
44568                 if test "$TOOLKIT" != "MSW"; then
44569                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44570 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44571 if test "${wx_cv_type_getsockname3+set}" = set; then
44572   echo $ECHO_N "(cached) $ECHO_C" >&6
44573 else
44574
44575                 ac_ext=cpp
44576 ac_cpp='$CXXCPP $CPPFLAGS'
44577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44580
44581                 cat >conftest.$ac_ext <<_ACEOF
44582 /* confdefs.h.  */
44583 _ACEOF
44584 cat confdefs.h >>conftest.$ac_ext
44585 cat >>conftest.$ac_ext <<_ACEOF
44586 /* end confdefs.h.  */
44587
44588                         #include <sys/types.h>
44589                         #include <sys/socket.h>
44590
44591 int
44592 main ()
44593 {
44594
44595                         socklen_t len;
44596                         getsockname(0, 0, &len);
44597
44598   ;
44599   return 0;
44600 }
44601 _ACEOF
44602 rm -f conftest.$ac_objext
44603 if { (ac_try="$ac_compile"
44604 case "(($ac_try" in
44605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44606   *) ac_try_echo=$ac_try;;
44607 esac
44608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44609   (eval "$ac_compile") 2>conftest.er1
44610   ac_status=$?
44611   grep -v '^ *+' conftest.er1 >conftest.err
44612   rm -f conftest.er1
44613   cat conftest.err >&5
44614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44615   (exit $ac_status); } && {
44616          test -z "$ac_cxx_werror_flag" ||
44617          test ! -s conftest.err
44618        } && test -s conftest.$ac_objext; then
44619   wx_cv_type_getsockname3=socklen_t
44620 else
44621   echo "$as_me: failed program was:" >&5
44622 sed 's/^/| /' conftest.$ac_ext >&5
44623
44624
44625                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44626                         if test "$GCC" = yes ; then
44627                             CFLAGS="-Werror $CFLAGS"
44628                         fi
44629
44630                         cat >conftest.$ac_ext <<_ACEOF
44631 /* confdefs.h.  */
44632 _ACEOF
44633 cat confdefs.h >>conftest.$ac_ext
44634 cat >>conftest.$ac_ext <<_ACEOF
44635 /* end confdefs.h.  */
44636
44637                                 #include <sys/types.h>
44638                                 #include <sys/socket.h>
44639
44640 int
44641 main ()
44642 {
44643
44644                                 size_t len;
44645                                 getsockname(0, 0, &len);
44646
44647   ;
44648   return 0;
44649 }
44650 _ACEOF
44651 rm -f conftest.$ac_objext
44652 if { (ac_try="$ac_compile"
44653 case "(($ac_try" in
44654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44655   *) ac_try_echo=$ac_try;;
44656 esac
44657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44658   (eval "$ac_compile") 2>conftest.er1
44659   ac_status=$?
44660   grep -v '^ *+' conftest.er1 >conftest.err
44661   rm -f conftest.er1
44662   cat conftest.err >&5
44663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44664   (exit $ac_status); } && {
44665          test -z "$ac_cxx_werror_flag" ||
44666          test ! -s conftest.err
44667        } && test -s conftest.$ac_objext; then
44668   wx_cv_type_getsockname3=size_t
44669 else
44670   echo "$as_me: failed program was:" >&5
44671 sed 's/^/| /' conftest.$ac_ext >&5
44672
44673         cat >conftest.$ac_ext <<_ACEOF
44674 /* confdefs.h.  */
44675 _ACEOF
44676 cat confdefs.h >>conftest.$ac_ext
44677 cat >>conftest.$ac_ext <<_ACEOF
44678 /* end confdefs.h.  */
44679
44680                                     #include <sys/types.h>
44681                                     #include <sys/socket.h>
44682
44683 int
44684 main ()
44685 {
44686
44687                                     int len;
44688                                     getsockname(0, 0, &len);
44689
44690   ;
44691   return 0;
44692 }
44693 _ACEOF
44694 rm -f conftest.$ac_objext
44695 if { (ac_try="$ac_compile"
44696 case "(($ac_try" in
44697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44698   *) ac_try_echo=$ac_try;;
44699 esac
44700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44701   (eval "$ac_compile") 2>conftest.er1
44702   ac_status=$?
44703   grep -v '^ *+' conftest.er1 >conftest.err
44704   rm -f conftest.er1
44705   cat conftest.err >&5
44706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44707   (exit $ac_status); } && {
44708          test -z "$ac_cxx_werror_flag" ||
44709          test ! -s conftest.err
44710        } && test -s conftest.$ac_objext; then
44711   wx_cv_type_getsockname3=int
44712 else
44713   echo "$as_me: failed program was:" >&5
44714 sed 's/^/| /' conftest.$ac_ext >&5
44715
44716         wx_cv_type_getsockname3=unknown
44717
44718 fi
44719
44720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44721
44722 fi
44723
44724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44725
44726                         CFLAGS="$CFLAGS_OLD"
44727
44728
44729 fi
44730
44731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44732                 ac_ext=c
44733 ac_cpp='$CPP $CPPFLAGS'
44734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44737
44738
44739 fi
44740 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44741 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44742
44743         if test "$wx_cv_type_getsockname3" = "unknown"; then
44744             wxUSE_SOCKETS=no
44745             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44746 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44747         else
44748             cat >>confdefs.h <<_ACEOF
44749 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44750 _ACEOF
44751
44752         fi
44753                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44754 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44755 if test "${wx_cv_type_getsockopt5+set}" = set; then
44756   echo $ECHO_N "(cached) $ECHO_C" >&6
44757 else
44758
44759                                                                                                 ac_ext=cpp
44760 ac_cpp='$CXXCPP $CPPFLAGS'
44761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44764
44765                 cat >conftest.$ac_ext <<_ACEOF
44766 /* confdefs.h.  */
44767 _ACEOF
44768 cat confdefs.h >>conftest.$ac_ext
44769 cat >>conftest.$ac_ext <<_ACEOF
44770 /* end confdefs.h.  */
44771
44772                         #include <sys/types.h>
44773                         #include <sys/socket.h>
44774
44775 int
44776 main ()
44777 {
44778
44779                         socklen_t len;
44780                         getsockopt(0, 0, 0, 0, &len);
44781
44782   ;
44783   return 0;
44784 }
44785 _ACEOF
44786 rm -f conftest.$ac_objext
44787 if { (ac_try="$ac_compile"
44788 case "(($ac_try" in
44789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44790   *) ac_try_echo=$ac_try;;
44791 esac
44792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44793   (eval "$ac_compile") 2>conftest.er1
44794   ac_status=$?
44795   grep -v '^ *+' conftest.er1 >conftest.err
44796   rm -f conftest.er1
44797   cat conftest.err >&5
44798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799   (exit $ac_status); } && {
44800          test -z "$ac_cxx_werror_flag" ||
44801          test ! -s conftest.err
44802        } && test -s conftest.$ac_objext; then
44803   wx_cv_type_getsockopt5=socklen_t
44804 else
44805   echo "$as_me: failed program was:" >&5
44806 sed 's/^/| /' conftest.$ac_ext >&5
44807
44808
44809                         cat >conftest.$ac_ext <<_ACEOF
44810 /* confdefs.h.  */
44811 _ACEOF
44812 cat confdefs.h >>conftest.$ac_ext
44813 cat >>conftest.$ac_ext <<_ACEOF
44814 /* end confdefs.h.  */
44815
44816                                 #include <sys/types.h>
44817                                 #include <sys/socket.h>
44818
44819 int
44820 main ()
44821 {
44822
44823                                 size_t len;
44824                                 getsockopt(0, 0, 0, 0, &len);
44825
44826   ;
44827   return 0;
44828 }
44829 _ACEOF
44830 rm -f conftest.$ac_objext
44831 if { (ac_try="$ac_compile"
44832 case "(($ac_try" in
44833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44834   *) ac_try_echo=$ac_try;;
44835 esac
44836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44837   (eval "$ac_compile") 2>conftest.er1
44838   ac_status=$?
44839   grep -v '^ *+' conftest.er1 >conftest.err
44840   rm -f conftest.er1
44841   cat conftest.err >&5
44842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44843   (exit $ac_status); } && {
44844          test -z "$ac_cxx_werror_flag" ||
44845          test ! -s conftest.err
44846        } && test -s conftest.$ac_objext; then
44847   wx_cv_type_getsockopt5=size_t
44848 else
44849   echo "$as_me: failed program was:" >&5
44850 sed 's/^/| /' conftest.$ac_ext >&5
44851
44852         cat >conftest.$ac_ext <<_ACEOF
44853 /* confdefs.h.  */
44854 _ACEOF
44855 cat confdefs.h >>conftest.$ac_ext
44856 cat >>conftest.$ac_ext <<_ACEOF
44857 /* end confdefs.h.  */
44858
44859                                     #include <sys/types.h>
44860                                     #include <sys/socket.h>
44861
44862 int
44863 main ()
44864 {
44865
44866                                     int len;
44867                                     getsockopt(0, 0, 0, 0, &len);
44868
44869   ;
44870   return 0;
44871 }
44872 _ACEOF
44873 rm -f conftest.$ac_objext
44874 if { (ac_try="$ac_compile"
44875 case "(($ac_try" in
44876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44877   *) ac_try_echo=$ac_try;;
44878 esac
44879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44880   (eval "$ac_compile") 2>conftest.er1
44881   ac_status=$?
44882   grep -v '^ *+' conftest.er1 >conftest.err
44883   rm -f conftest.er1
44884   cat conftest.err >&5
44885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44886   (exit $ac_status); } && {
44887          test -z "$ac_cxx_werror_flag" ||
44888          test ! -s conftest.err
44889        } && test -s conftest.$ac_objext; then
44890   wx_cv_type_getsockopt5=int
44891 else
44892   echo "$as_me: failed program was:" >&5
44893 sed 's/^/| /' conftest.$ac_ext >&5
44894
44895         wx_cv_type_getsockopt5=unknown
44896
44897 fi
44898
44899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44900
44901 fi
44902
44903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44904
44905
44906 fi
44907
44908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44909                 ac_ext=c
44910 ac_cpp='$CPP $CPPFLAGS'
44911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44914
44915
44916 fi
44917 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44918 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44919
44920         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44921             wxUSE_SOCKETS=no
44922             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44923 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44924         else
44925             cat >>confdefs.h <<_ACEOF
44926 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44927 _ACEOF
44928
44929         fi
44930     fi
44931 fi
44932
44933 if test "$wxUSE_SOCKETS" = "yes" ; then
44934     if test "$wxUSE_IPV6" = "yes"; then
44935         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44936 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44937 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44938   echo $ECHO_N "(cached) $ECHO_C" >&6
44939 else
44940
44941                 cat >conftest.$ac_ext <<_ACEOF
44942 /* confdefs.h.  */
44943 _ACEOF
44944 cat confdefs.h >>conftest.$ac_ext
44945 cat >>conftest.$ac_ext <<_ACEOF
44946 /* end confdefs.h.  */
44947
44948                         #include <sys/types.h>
44949                         #include <sys/socket.h>
44950                         #include <netinet/in.h>
44951
44952 int
44953 main ()
44954 {
44955
44956                         struct sockaddr_in6 sa6;
44957
44958   ;
44959   return 0;
44960 }
44961 _ACEOF
44962 rm -f conftest.$ac_objext
44963 if { (ac_try="$ac_compile"
44964 case "(($ac_try" in
44965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44966   *) ac_try_echo=$ac_try;;
44967 esac
44968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44969   (eval "$ac_compile") 2>conftest.er1
44970   ac_status=$?
44971   grep -v '^ *+' conftest.er1 >conftest.err
44972   rm -f conftest.er1
44973   cat conftest.err >&5
44974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44975   (exit $ac_status); } && {
44976          test -z "$ac_c_werror_flag" ||
44977          test ! -s conftest.err
44978        } && test -s conftest.$ac_objext; then
44979   wx_cv_type_sockaddr_in6=yes
44980 else
44981   echo "$as_me: failed program was:" >&5
44982 sed 's/^/| /' conftest.$ac_ext >&5
44983
44984         wx_cv_type_sockaddr_in6=no
44985
44986 fi
44987
44988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44989
44990
44991 fi
44992 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44993 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44994
44995         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44996             cat >>confdefs.h <<\_ACEOF
44997 #define wxUSE_IPV6 1
44998 _ACEOF
44999
45000         else
45001             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45002 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
45003         fi
45004     fi
45005
45006     cat >>confdefs.h <<\_ACEOF
45007 #define wxUSE_SOCKETS 1
45008 _ACEOF
45009
45010     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45011 fi
45012
45013 if test "$wxUSE_PROTOCOL" = "yes"; then
45014     if test "$wxUSE_SOCKETS" != "yes"; then
45015         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45016 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45017         wxUSE_PROTOCOL=no
45018     fi
45019 fi
45020
45021 if test "$wxUSE_PROTOCOL" = "yes"; then
45022     cat >>confdefs.h <<\_ACEOF
45023 #define wxUSE_PROTOCOL 1
45024 _ACEOF
45025
45026
45027     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45028         cat >>confdefs.h <<\_ACEOF
45029 #define wxUSE_PROTOCOL_HTTP 1
45030 _ACEOF
45031
45032     fi
45033     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45034         cat >>confdefs.h <<\_ACEOF
45035 #define wxUSE_PROTOCOL_FTP 1
45036 _ACEOF
45037
45038     fi
45039     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45040         cat >>confdefs.h <<\_ACEOF
45041 #define wxUSE_PROTOCOL_FILE 1
45042 _ACEOF
45043
45044     fi
45045 else
45046     if test "$wxUSE_FS_INET" = "yes"; then
45047         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45048 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45049         wxUSE_FS_INET="no"
45050     fi
45051 fi
45052
45053 if test "$wxUSE_URL" = "yes"; then
45054     if test "$wxUSE_PROTOCOL" != "yes"; then
45055         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45056 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45057         wxUSE_URL=no
45058     fi
45059     if test "$wxUSE_URL" = "yes"; then
45060         cat >>confdefs.h <<\_ACEOF
45061 #define wxUSE_URL 1
45062 _ACEOF
45063
45064     fi
45065 fi
45066
45067 if test "$wxUSE_VARIANT" = "yes"; then
45068     cat >>confdefs.h <<\_ACEOF
45069 #define wxUSE_VARIANT 1
45070 _ACEOF
45071
45072 fi
45073
45074 if test "$wxUSE_FS_INET" = "yes"; then
45075   cat >>confdefs.h <<\_ACEOF
45076 #define wxUSE_FS_INET 1
45077 _ACEOF
45078
45079 fi
45080
45081
45082 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45083     wxUSE_JOYSTICK=no
45084
45085         if test "$TOOLKIT" = "MSW"; then
45086         wxUSE_JOYSTICK=yes
45087
45088         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
45089         if test "$USE_DARWIN" = 1; then
45090                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45091 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
45092             ac_ext=cpp
45093 ac_cpp='$CXXCPP $CPPFLAGS'
45094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45097
45098             cat >conftest.$ac_ext <<_ACEOF
45099 /* confdefs.h.  */
45100 _ACEOF
45101 cat confdefs.h >>conftest.$ac_ext
45102 cat >>conftest.$ac_ext <<_ACEOF
45103 /* end confdefs.h.  */
45104  #include <IOKit/hid/IOHIDLib.h>
45105 int
45106 main ()
45107 {
45108  IOHIDQueueInterface *qi = NULL;
45109                               IOHIDCallbackFunction cb = NULL;
45110                               qi->setEventCallout(NULL, cb, NULL, NULL);
45111   ;
45112   return 0;
45113 }
45114 _ACEOF
45115 rm -f conftest.$ac_objext
45116 if { (ac_try="$ac_compile"
45117 case "(($ac_try" in
45118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45119   *) ac_try_echo=$ac_try;;
45120 esac
45121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45122   (eval "$ac_compile") 2>conftest.er1
45123   ac_status=$?
45124   grep -v '^ *+' conftest.er1 >conftest.err
45125   rm -f conftest.er1
45126   cat conftest.err >&5
45127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45128   (exit $ac_status); } && {
45129          test -z "$ac_cxx_werror_flag" ||
45130          test ! -s conftest.err
45131        } && test -s conftest.$ac_objext; then
45132    wxUSE_JOYSTICK=yes
45133
45134 else
45135   echo "$as_me: failed program was:" >&5
45136 sed 's/^/| /' conftest.$ac_ext >&5
45137
45138
45139 fi
45140
45141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45142             ac_ext=c
45143 ac_cpp='$CPP $CPPFLAGS'
45144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45147
45148             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45149 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
45150         fi
45151
45152         else
45153                 if test "$wxUSE_MGL" != 1; then
45154
45155 for ac_header in linux/joystick.h
45156 do
45157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45161   echo $ECHO_N "(cached) $ECHO_C" >&6
45162 else
45163   cat >conftest.$ac_ext <<_ACEOF
45164 /* confdefs.h.  */
45165 _ACEOF
45166 cat confdefs.h >>conftest.$ac_ext
45167 cat >>conftest.$ac_ext <<_ACEOF
45168 /* end confdefs.h.  */
45169 $ac_includes_default
45170
45171 #include <$ac_header>
45172 _ACEOF
45173 rm -f conftest.$ac_objext
45174 if { (ac_try="$ac_compile"
45175 case "(($ac_try" in
45176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45177   *) ac_try_echo=$ac_try;;
45178 esac
45179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45180   (eval "$ac_compile") 2>conftest.er1
45181   ac_status=$?
45182   grep -v '^ *+' conftest.er1 >conftest.err
45183   rm -f conftest.er1
45184   cat conftest.err >&5
45185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45186   (exit $ac_status); } && {
45187          test -z "$ac_c_werror_flag" ||
45188          test ! -s conftest.err
45189        } && test -s conftest.$ac_objext; then
45190   eval "$as_ac_Header=yes"
45191 else
45192   echo "$as_me: failed program was:" >&5
45193 sed 's/^/| /' conftest.$ac_ext >&5
45194
45195         eval "$as_ac_Header=no"
45196 fi
45197
45198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45199 fi
45200 ac_res=`eval echo '${'$as_ac_Header'}'`
45201                { echo "$as_me:$LINENO: result: $ac_res" >&5
45202 echo "${ECHO_T}$ac_res" >&6; }
45203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45204   cat >>confdefs.h <<_ACEOF
45205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45206 _ACEOF
45207  wxUSE_JOYSTICK=yes
45208 fi
45209
45210 done
45211
45212         fi
45213     fi
45214
45215     if test "$wxUSE_JOYSTICK" = "yes"; then
45216         cat >>confdefs.h <<\_ACEOF
45217 #define wxUSE_JOYSTICK 1
45218 _ACEOF
45219
45220         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45221     else
45222         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45223 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45224     fi
45225 fi
45226
45227
45228
45229 if test "$wxUSE_FONTENUM" = "yes" ; then
45230   cat >>confdefs.h <<\_ACEOF
45231 #define wxUSE_FONTENUM 1
45232 _ACEOF
45233
45234 fi
45235
45236 if test "$wxUSE_FONTMAP" = "yes" ; then
45237   cat >>confdefs.h <<\_ACEOF
45238 #define wxUSE_FONTMAP 1
45239 _ACEOF
45240
45241 fi
45242
45243 if test "$wxUSE_UNICODE" = "yes" ; then
45244   cat >>confdefs.h <<\_ACEOF
45245 #define wxUSE_UNICODE 1
45246 _ACEOF
45247
45248
45249   if test "$USE_WIN32" != 1; then
45250       wxUSE_UNICODE_MSLU=no
45251   fi
45252
45253   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45254         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45255 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45256 if test "${ac_cv_lib_unicows_main+set}" = set; then
45257   echo $ECHO_N "(cached) $ECHO_C" >&6
45258 else
45259   ac_check_lib_save_LIBS=$LIBS
45260 LIBS="-lunicows  $LIBS"
45261 cat >conftest.$ac_ext <<_ACEOF
45262 /* confdefs.h.  */
45263 _ACEOF
45264 cat confdefs.h >>conftest.$ac_ext
45265 cat >>conftest.$ac_ext <<_ACEOF
45266 /* end confdefs.h.  */
45267
45268
45269 int
45270 main ()
45271 {
45272 return main ();
45273   ;
45274   return 0;
45275 }
45276 _ACEOF
45277 rm -f conftest.$ac_objext conftest$ac_exeext
45278 if { (ac_try="$ac_link"
45279 case "(($ac_try" in
45280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45281   *) ac_try_echo=$ac_try;;
45282 esac
45283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45284   (eval "$ac_link") 2>conftest.er1
45285   ac_status=$?
45286   grep -v '^ *+' conftest.er1 >conftest.err
45287   rm -f conftest.er1
45288   cat conftest.err >&5
45289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45290   (exit $ac_status); } && {
45291          test -z "$ac_c_werror_flag" ||
45292          test ! -s conftest.err
45293        } && test -s conftest$ac_exeext &&
45294        $as_test_x conftest$ac_exeext; then
45295   ac_cv_lib_unicows_main=yes
45296 else
45297   echo "$as_me: failed program was:" >&5
45298 sed 's/^/| /' conftest.$ac_ext >&5
45299
45300         ac_cv_lib_unicows_main=no
45301 fi
45302
45303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45304       conftest$ac_exeext conftest.$ac_ext
45305 LIBS=$ac_check_lib_save_LIBS
45306 fi
45307 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45308 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45309 if test $ac_cv_lib_unicows_main = yes; then
45310
45311                 cat >>confdefs.h <<\_ACEOF
45312 #define wxUSE_UNICODE_MSLU 1
45313 _ACEOF
45314
45315
45316 else
45317
45318                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45319                              Applications will only run on Windows NT/2000/XP!" >&5
45320 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45321                              Applications will only run on Windows NT/2000/XP!" >&2;}
45322                 wxUSE_UNICODE_MSLU=no
45323
45324 fi
45325
45326     fi
45327 fi
45328
45329 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45330     cat >>confdefs.h <<\_ACEOF
45331 #define wxUSE_UNICODE_UTF8 1
45332 _ACEOF
45333
45334
45335     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45336         cat >>confdefs.h <<\_ACEOF
45337 #define wxUSE_UTF8_LOCALE_ONLY 1
45338 _ACEOF
45339
45340     fi
45341 fi
45342
45343
45344 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45345     cat >>confdefs.h <<\_ACEOF
45346 #define wxUSE_CONSTRAINTS 1
45347 _ACEOF
45348
45349     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45350 fi
45351
45352 if test "$wxUSE_MDI" = "yes"; then
45353     cat >>confdefs.h <<\_ACEOF
45354 #define wxUSE_MDI 1
45355 _ACEOF
45356
45357
45358     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45359         cat >>confdefs.h <<\_ACEOF
45360 #define wxUSE_MDI_ARCHITECTURE 1
45361 _ACEOF
45362
45363         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45364     fi
45365 fi
45366
45367 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45368     cat >>confdefs.h <<\_ACEOF
45369 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45370 _ACEOF
45371
45372     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45373 fi
45374
45375 if test "$wxUSE_HELP" = "yes"; then
45376     cat >>confdefs.h <<\_ACEOF
45377 #define wxUSE_HELP 1
45378 _ACEOF
45379
45380     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45381
45382     if test "$wxUSE_MSW" = 1; then
45383       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45384         cat >>confdefs.h <<\_ACEOF
45385 #define wxUSE_MS_HTML_HELP 1
45386 _ACEOF
45387
45388       fi
45389     fi
45390
45391     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45392       if test "$wxUSE_HTML" = "yes"; then
45393         cat >>confdefs.h <<\_ACEOF
45394 #define wxUSE_WXHTML_HELP 1
45395 _ACEOF
45396
45397       else
45398         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45399 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45400         wxUSE_WXHTML_HELP=no
45401       fi
45402     fi
45403 fi
45404
45405 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45406     cat >>confdefs.h <<\_ACEOF
45407 #define wxUSE_PRINTING_ARCHITECTURE 1
45408 _ACEOF
45409
45410     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45411 fi
45412
45413 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45414   cat >>confdefs.h <<\_ACEOF
45415 #define wxUSE_POSTSCRIPT 1
45416 _ACEOF
45417
45418 fi
45419
45420 cat >>confdefs.h <<\_ACEOF
45421 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45422 _ACEOF
45423
45424
45425 if test "$wxUSE_SVG" = "yes"; then
45426     cat >>confdefs.h <<\_ACEOF
45427 #define wxUSE_SVG 1
45428 _ACEOF
45429
45430 fi
45431
45432
45433 if test "$wxUSE_METAFILE" = "yes"; then
45434     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45435         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45436 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45437         wxUSE_METAFILE=no
45438     fi
45439 fi
45440
45441
45442 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45443                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45444                           -o "$wxUSE_OLE"     = "yes" \
45445                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45446     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45447 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45448 if test "${ac_cv_header_ole2_h+set}" = set; then
45449   echo $ECHO_N "(cached) $ECHO_C" >&6
45450 else
45451   cat >conftest.$ac_ext <<_ACEOF
45452 /* confdefs.h.  */
45453 _ACEOF
45454 cat confdefs.h >>conftest.$ac_ext
45455 cat >>conftest.$ac_ext <<_ACEOF
45456 /* end confdefs.h.  */
45457
45458
45459 #include <ole2.h>
45460 _ACEOF
45461 rm -f conftest.$ac_objext
45462 if { (ac_try="$ac_compile"
45463 case "(($ac_try" in
45464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45465   *) ac_try_echo=$ac_try;;
45466 esac
45467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45468   (eval "$ac_compile") 2>conftest.er1
45469   ac_status=$?
45470   grep -v '^ *+' conftest.er1 >conftest.err
45471   rm -f conftest.er1
45472   cat conftest.err >&5
45473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45474   (exit $ac_status); } && {
45475          test -z "$ac_c_werror_flag" ||
45476          test ! -s conftest.err
45477        } && test -s conftest.$ac_objext; then
45478   ac_cv_header_ole2_h=yes
45479 else
45480   echo "$as_me: failed program was:" >&5
45481 sed 's/^/| /' conftest.$ac_ext >&5
45482
45483         ac_cv_header_ole2_h=no
45484 fi
45485
45486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45487 fi
45488 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45489 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45490
45491
45492
45493     if test "$ac_cv_header_ole2_h" = "yes" ; then
45494         if test "$GCC" = yes ; then
45495             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45496 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45497             cat >conftest.$ac_ext <<_ACEOF
45498 /* confdefs.h.  */
45499 _ACEOF
45500 cat confdefs.h >>conftest.$ac_ext
45501 cat >>conftest.$ac_ext <<_ACEOF
45502 /* end confdefs.h.  */
45503 #include <windows.h>
45504                             #include <ole2.h>
45505 int
45506 main ()
45507 {
45508
45509   ;
45510   return 0;
45511 }
45512 _ACEOF
45513 rm -f conftest.$ac_objext
45514 if { (ac_try="$ac_compile"
45515 case "(($ac_try" in
45516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45517   *) ac_try_echo=$ac_try;;
45518 esac
45519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45520   (eval "$ac_compile") 2>conftest.er1
45521   ac_status=$?
45522   grep -v '^ *+' conftest.er1 >conftest.err
45523   rm -f conftest.er1
45524   cat conftest.err >&5
45525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45526   (exit $ac_status); } && {
45527          test -z "$ac_c_werror_flag" ||
45528          test ! -s conftest.err
45529        } && test -s conftest.$ac_objext; then
45530   { echo "$as_me:$LINENO: result: no" >&5
45531 echo "${ECHO_T}no" >&6; }
45532 else
45533   echo "$as_me: failed program was:" >&5
45534 sed 's/^/| /' conftest.$ac_ext >&5
45535
45536         { echo "$as_me:$LINENO: result: yes" >&5
45537 echo "${ECHO_T}yes" >&6; }
45538                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45539 fi
45540
45541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45542             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45543             if test "$wxUSE_OLE" = "yes" ; then
45544                 cat >>confdefs.h <<\_ACEOF
45545 #define wxUSE_OLE 1
45546 _ACEOF
45547
45548                 cat >>confdefs.h <<\_ACEOF
45549 #define wxUSE_OLE_AUTOMATION 1
45550 _ACEOF
45551
45552                 cat >>confdefs.h <<\_ACEOF
45553 #define wxUSE_ACTIVEX 1
45554 _ACEOF
45555
45556                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45557             fi
45558         fi
45559
45560                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45561             cat >>confdefs.h <<\_ACEOF
45562 #define wxUSE_DATAOBJ 1
45563 _ACEOF
45564
45565         fi
45566     else
45567         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45568 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45569
45570         wxUSE_CLIPBOARD=no
45571         wxUSE_DRAG_AND_DROP=no
45572         wxUSE_DATAOBJ=no
45573         wxUSE_OLE=no
45574     fi
45575
45576     if test "$wxUSE_METAFILE" = "yes"; then
45577         cat >>confdefs.h <<\_ACEOF
45578 #define wxUSE_METAFILE 1
45579 _ACEOF
45580
45581
45582                 cat >>confdefs.h <<\_ACEOF
45583 #define wxUSE_ENH_METAFILE 1
45584 _ACEOF
45585
45586     fi
45587 fi
45588
45589 if test "$wxUSE_IPC" = "yes"; then
45590     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45591         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45592 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45593         wxUSE_IPC=no
45594     fi
45595
45596     if test "$wxUSE_IPC" = "yes"; then
45597         cat >>confdefs.h <<\_ACEOF
45598 #define wxUSE_IPC 1
45599 _ACEOF
45600
45601         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45602     fi
45603 fi
45604
45605 if test "$wxUSE_DATAOBJ" = "yes"; then
45606     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45607         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45608 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45609         wxUSE_DATAOBJ=no
45610     else
45611         cat >>confdefs.h <<\_ACEOF
45612 #define wxUSE_DATAOBJ 1
45613 _ACEOF
45614
45615     fi
45616 else
45617     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45618 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45619     wxUSE_CLIPBOARD=no
45620     wxUSE_DRAG_AND_DROP=no
45621 fi
45622
45623 if test "$wxUSE_CLIPBOARD" = "yes"; then
45624     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45625         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45626 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45627         wxUSE_CLIPBOARD=no
45628     fi
45629
45630     if test "$wxUSE_CLIPBOARD" = "yes"; then
45631         cat >>confdefs.h <<\_ACEOF
45632 #define wxUSE_CLIPBOARD 1
45633 _ACEOF
45634
45635     fi
45636 fi
45637
45638 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45639     if test "$wxUSE_GTK" = 1; then
45640         if test "$WXGTK12" != 1; then
45641             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45642 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45643             wxUSE_DRAG_AND_DROP=no
45644         fi
45645     fi
45646
45647     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45648             "$wxUSE_DFB" = 1; then
45649         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45650 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45651         wxUSE_DRAG_AND_DROP=no
45652     fi
45653
45654     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45655         cat >>confdefs.h <<\_ACEOF
45656 #define wxUSE_DRAG_AND_DROP 1
45657 _ACEOF
45658
45659     fi
45660
45661 fi
45662
45663 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45664     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45665 fi
45666
45667 if test "$wxUSE_CLIPBOARD" = "yes"; then
45668     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
45669 fi
45670
45671 if test "$wxUSE_SPLINES" = "yes" ; then
45672   cat >>confdefs.h <<\_ACEOF
45673 #define wxUSE_SPLINES 1
45674 _ACEOF
45675
45676 fi
45677
45678 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45679   cat >>confdefs.h <<\_ACEOF
45680 #define wxUSE_MOUSEWHEEL 1
45681 _ACEOF
45682
45683 fi
45684
45685
45686 USES_CONTROLS=0
45687 if test "$wxUSE_CONTROLS" = "yes"; then
45688   USES_CONTROLS=1
45689 fi
45690
45691 if test "$wxUSE_ACCEL" = "yes"; then
45692   cat >>confdefs.h <<\_ACEOF
45693 #define wxUSE_ACCEL 1
45694 _ACEOF
45695
45696   USES_CONTROLS=1
45697 fi
45698
45699 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45700   cat >>confdefs.h <<\_ACEOF
45701 #define wxUSE_ANIMATIONCTRL 1
45702 _ACEOF
45703
45704   USES_CONTROLS=1
45705   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45706 fi
45707
45708 if test "$wxUSE_BUTTON" = "yes"; then
45709   cat >>confdefs.h <<\_ACEOF
45710 #define wxUSE_BUTTON 1
45711 _ACEOF
45712
45713   USES_CONTROLS=1
45714 fi
45715
45716 if test "$wxUSE_BMPBUTTON" = "yes"; then
45717   cat >>confdefs.h <<\_ACEOF
45718 #define wxUSE_BMPBUTTON 1
45719 _ACEOF
45720
45721   USES_CONTROLS=1
45722 fi
45723
45724 if test "$wxUSE_CALCTRL" = "yes"; then
45725   cat >>confdefs.h <<\_ACEOF
45726 #define wxUSE_CALENDARCTRL 1
45727 _ACEOF
45728
45729   USES_CONTROLS=1
45730   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45731 fi
45732
45733 if test "$wxUSE_CARET" = "yes"; then
45734   cat >>confdefs.h <<\_ACEOF
45735 #define wxUSE_CARET 1
45736 _ACEOF
45737
45738   USES_CONTROLS=1
45739   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45740 fi
45741
45742 if test "$wxUSE_COLLPANE" = "yes"; then
45743     cat >>confdefs.h <<\_ACEOF
45744 #define wxUSE_COLLPANE 1
45745 _ACEOF
45746
45747     USES_CONTROLS=1
45748     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45749 fi
45750
45751 if test "$wxUSE_COMBOBOX" = "yes"; then
45752   cat >>confdefs.h <<\_ACEOF
45753 #define wxUSE_COMBOBOX 1
45754 _ACEOF
45755
45756   USES_CONTROLS=1
45757 fi
45758
45759 if test "$wxUSE_COMBOCTRL" = "yes"; then
45760   cat >>confdefs.h <<\_ACEOF
45761 #define wxUSE_COMBOCTRL 1
45762 _ACEOF
45763
45764   USES_CONTROLS=1
45765 fi
45766
45767 if test "$wxUSE_CHOICE" = "yes"; then
45768   cat >>confdefs.h <<\_ACEOF
45769 #define wxUSE_CHOICE 1
45770 _ACEOF
45771
45772   USES_CONTROLS=1
45773 fi
45774
45775 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45776     cat >>confdefs.h <<\_ACEOF
45777 #define wxUSE_CHOICEBOOK 1
45778 _ACEOF
45779
45780     USES_CONTROLS=1
45781 fi
45782
45783 if test "$wxUSE_CHECKBOX" = "yes"; then
45784   cat >>confdefs.h <<\_ACEOF
45785 #define wxUSE_CHECKBOX 1
45786 _ACEOF
45787
45788   USES_CONTROLS=1
45789 fi
45790
45791 if test "$wxUSE_CHECKLST" = "yes"; then
45792   cat >>confdefs.h <<\_ACEOF
45793 #define wxUSE_CHECKLISTBOX 1
45794 _ACEOF
45795
45796   USES_CONTROLS=1
45797 fi
45798
45799 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45800   cat >>confdefs.h <<\_ACEOF
45801 #define wxUSE_COLOURPICKERCTRL 1
45802 _ACEOF
45803
45804   USES_CONTROLS=1
45805 fi
45806
45807 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45808   cat >>confdefs.h <<\_ACEOF
45809 #define wxUSE_DATEPICKCTRL 1
45810 _ACEOF
45811
45812   USES_CONTROLS=1
45813 fi
45814
45815 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45816   cat >>confdefs.h <<\_ACEOF
45817 #define wxUSE_DIRPICKERCTRL 1
45818 _ACEOF
45819
45820   USES_CONTROLS=1
45821 fi
45822
45823 if test "$wxUSE_FILECTRL" = "yes"; then
45824   cat >>confdefs.h <<\_ACEOF
45825 #define wxUSE_FILECTRL 1
45826 _ACEOF
45827
45828   USES_CONTROLS=1
45829 fi
45830
45831 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45832   cat >>confdefs.h <<\_ACEOF
45833 #define wxUSE_FILEPICKERCTRL 1
45834 _ACEOF
45835
45836   USES_CONTROLS=1
45837 fi
45838
45839 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45840   cat >>confdefs.h <<\_ACEOF
45841 #define wxUSE_FONTPICKERCTRL 1
45842 _ACEOF
45843
45844   USES_CONTROLS=1
45845 fi
45846
45847 if test "$wxUSE_DISPLAY" = "yes"; then
45848     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45849         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45850 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45851         wxUSE_DISPLAY=no
45852     else
45853         cat >>confdefs.h <<\_ACEOF
45854 #define wxUSE_DISPLAY 1
45855 _ACEOF
45856
45857         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45858     fi
45859 fi
45860
45861 if test "$wxUSE_DETECT_SM" = "yes"; then
45862     cat >>confdefs.h <<\_ACEOF
45863 #define wxUSE_DETECT_SM 1
45864 _ACEOF
45865
45866 fi
45867
45868 if test "$wxUSE_GAUGE" = "yes"; then
45869   cat >>confdefs.h <<\_ACEOF
45870 #define wxUSE_GAUGE 1
45871 _ACEOF
45872
45873   USES_CONTROLS=1
45874 fi
45875
45876 if test "$wxUSE_GRID" = "yes"; then
45877   cat >>confdefs.h <<\_ACEOF
45878 #define wxUSE_GRID 1
45879 _ACEOF
45880
45881   USES_CONTROLS=1
45882   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45883 fi
45884
45885 if test "$wxUSE_HEADERCTRL" = "yes"; then
45886   cat >>confdefs.h <<\_ACEOF
45887 #define wxUSE_HEADERCTRL 1
45888 _ACEOF
45889
45890   USES_CONTROLS=1
45891 fi
45892
45893 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45894   cat >>confdefs.h <<\_ACEOF
45895 #define wxUSE_HYPERLINKCTRL 1
45896 _ACEOF
45897
45898   USES_CONTROLS=1
45899 fi
45900
45901 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45902   cat >>confdefs.h <<\_ACEOF
45903 #define wxUSE_BITMAPCOMBOBOX 1
45904 _ACEOF
45905
45906   USES_CONTROLS=1
45907 fi
45908
45909 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45910   cat >>confdefs.h <<\_ACEOF
45911 #define wxUSE_DATAVIEWCTRL 1
45912 _ACEOF
45913
45914   USES_CONTROLS=1
45915   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45916 fi
45917
45918 if test "$wxUSE_IMAGLIST" = "yes"; then
45919     cat >>confdefs.h <<\_ACEOF
45920 #define wxUSE_IMAGLIST 1
45921 _ACEOF
45922
45923 fi
45924
45925 if test "$wxUSE_LISTBOOK" = "yes"; then
45926     cat >>confdefs.h <<\_ACEOF
45927 #define wxUSE_LISTBOOK 1
45928 _ACEOF
45929
45930     USES_CONTROLS=1
45931 fi
45932
45933 if test "$wxUSE_LISTBOX" = "yes"; then
45934     cat >>confdefs.h <<\_ACEOF
45935 #define wxUSE_LISTBOX 1
45936 _ACEOF
45937
45938     USES_CONTROLS=1
45939 fi
45940
45941 if test "$wxUSE_LISTCTRL" = "yes"; then
45942     if test "$wxUSE_IMAGLIST" = "yes"; then
45943         cat >>confdefs.h <<\_ACEOF
45944 #define wxUSE_LISTCTRL 1
45945 _ACEOF
45946
45947         USES_CONTROLS=1
45948         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45949     else
45950         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45951 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45952     fi
45953 fi
45954
45955 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45956     cat >>confdefs.h <<\_ACEOF
45957 #define wxUSE_EDITABLELISTBOX 1
45958 _ACEOF
45959
45960     USES_CONTROLS=1
45961 fi
45962
45963 if test "$wxUSE_NOTEBOOK" = "yes"; then
45964     cat >>confdefs.h <<\_ACEOF
45965 #define wxUSE_NOTEBOOK 1
45966 _ACEOF
45967
45968     USES_CONTROLS=1
45969     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45970 fi
45971
45972 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45973     cat >>confdefs.h <<\_ACEOF
45974 #define wxUSE_NOTIFICATION_MESSAGE 1
45975 _ACEOF
45976
45977 fi
45978
45979 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45980   cat >>confdefs.h <<\_ACEOF
45981 #define wxUSE_ODCOMBOBOX 1
45982 _ACEOF
45983
45984   USES_CONTROLS=1
45985   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45986 fi
45987
45988 if test "$wxUSE_RADIOBOX" = "yes"; then
45989     cat >>confdefs.h <<\_ACEOF
45990 #define wxUSE_RADIOBOX 1
45991 _ACEOF
45992
45993     USES_CONTROLS=1
45994 fi
45995
45996 if test "$wxUSE_RADIOBTN" = "yes"; then
45997     cat >>confdefs.h <<\_ACEOF
45998 #define wxUSE_RADIOBTN 1
45999 _ACEOF
46000
46001     USES_CONTROLS=1
46002 fi
46003
46004 if test "$wxUSE_REARRANGECTRL" = "yes"; then
46005     cat >>confdefs.h <<\_ACEOF
46006 #define wxUSE_REARRANGECTRL 1
46007 _ACEOF
46008
46009 fi
46010
46011 if test "$wxUSE_SASH" = "yes"; then
46012     cat >>confdefs.h <<\_ACEOF
46013 #define wxUSE_SASH 1
46014 _ACEOF
46015
46016     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46017 fi
46018
46019 if test "$wxUSE_SCROLLBAR" = "yes"; then
46020     cat >>confdefs.h <<\_ACEOF
46021 #define wxUSE_SCROLLBAR 1
46022 _ACEOF
46023
46024     USES_CONTROLS=1
46025     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
46026 fi
46027
46028 if test "$wxUSE_SEARCHCTRL" = "yes"; then
46029     cat >>confdefs.h <<\_ACEOF
46030 #define wxUSE_SEARCHCTRL 1
46031 _ACEOF
46032
46033     USES_CONTROLS=1
46034 fi
46035
46036 if test "$wxUSE_SLIDER" = "yes"; then
46037     cat >>confdefs.h <<\_ACEOF
46038 #define wxUSE_SLIDER 1
46039 _ACEOF
46040
46041     USES_CONTROLS=1
46042 fi
46043
46044 if test "$wxUSE_SPINBTN" = "yes"; then
46045     cat >>confdefs.h <<\_ACEOF
46046 #define wxUSE_SPINBTN 1
46047 _ACEOF
46048
46049     USES_CONTROLS=1
46050 fi
46051
46052 if test "$wxUSE_SPINCTRL" = "yes"; then
46053     cat >>confdefs.h <<\_ACEOF
46054 #define wxUSE_SPINCTRL 1
46055 _ACEOF
46056
46057     USES_CONTROLS=1
46058 fi
46059
46060 if test "$wxUSE_SPLITTER" = "yes"; then
46061     cat >>confdefs.h <<\_ACEOF
46062 #define wxUSE_SPLITTER 1
46063 _ACEOF
46064
46065     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46066 fi
46067
46068 if test "$wxUSE_STATBMP" = "yes"; then
46069     cat >>confdefs.h <<\_ACEOF
46070 #define wxUSE_STATBMP 1
46071 _ACEOF
46072
46073     USES_CONTROLS=1
46074 fi
46075
46076 if test "$wxUSE_STATBOX" = "yes"; then
46077     cat >>confdefs.h <<\_ACEOF
46078 #define wxUSE_STATBOX 1
46079 _ACEOF
46080
46081     USES_CONTROLS=1
46082 fi
46083
46084 if test "$wxUSE_STATTEXT" = "yes"; then
46085     cat >>confdefs.h <<\_ACEOF
46086 #define wxUSE_STATTEXT 1
46087 _ACEOF
46088
46089     USES_CONTROLS=1
46090 fi
46091
46092 if test "$wxUSE_STATLINE" = "yes"; then
46093     cat >>confdefs.h <<\_ACEOF
46094 #define wxUSE_STATLINE 1
46095 _ACEOF
46096
46097     USES_CONTROLS=1
46098 fi
46099
46100 if test "$wxUSE_STATUSBAR" = "yes"; then
46101         cat >>confdefs.h <<\_ACEOF
46102 #define wxUSE_NATIVE_STATUSBAR 1
46103 _ACEOF
46104
46105     cat >>confdefs.h <<\_ACEOF
46106 #define wxUSE_STATUSBAR 1
46107 _ACEOF
46108
46109     USES_CONTROLS=1
46110
46111     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46112 fi
46113
46114 if test "$wxUSE_TEXTCTRL" = "yes"; then
46115     cat >>confdefs.h <<\_ACEOF
46116 #define wxUSE_TEXTCTRL 1
46117 _ACEOF
46118
46119     USES_CONTROLS=1
46120     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46121
46122             cat >>confdefs.h <<\_ACEOF
46123 #define wxUSE_RICHEDIT 1
46124 _ACEOF
46125
46126     cat >>confdefs.h <<\_ACEOF
46127 #define wxUSE_RICHEDIT2 1
46128 _ACEOF
46129
46130 fi
46131
46132 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46133     if test "$wxUSE_COCOA" = 1 ; then
46134         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46135 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46136         wxUSE_TOGGLEBTN=no
46137     fi
46138
46139     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46140         cat >>confdefs.h <<\_ACEOF
46141 #define wxUSE_TOGGLEBTN 1
46142 _ACEOF
46143
46144         USES_CONTROLS=1
46145     fi
46146 fi
46147
46148 if test "$wxUSE_TOOLBAR" = "yes"; then
46149     cat >>confdefs.h <<\_ACEOF
46150 #define wxUSE_TOOLBAR 1
46151 _ACEOF
46152
46153     USES_CONTROLS=1
46154
46155     if test "$wxUSE_UNIVERSAL" = "yes"; then
46156         wxUSE_TOOLBAR_NATIVE="no"
46157     else
46158         wxUSE_TOOLBAR_NATIVE="yes"
46159         cat >>confdefs.h <<\_ACEOF
46160 #define wxUSE_TOOLBAR_NATIVE 1
46161 _ACEOF
46162
46163     fi
46164
46165     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46166 fi
46167
46168 if test "$wxUSE_TOOLTIPS" = "yes"; then
46169     if test "$wxUSE_MOTIF" = 1; then
46170         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46171 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46172     else
46173         if test "$wxUSE_UNIVERSAL" = "yes"; then
46174             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46175 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46176         else
46177             cat >>confdefs.h <<\_ACEOF
46178 #define wxUSE_TOOLTIPS 1
46179 _ACEOF
46180
46181         fi
46182     fi
46183 fi
46184
46185 if test "$wxUSE_TREEBOOK" = "yes"; then
46186     cat >>confdefs.h <<\_ACEOF
46187 #define wxUSE_TREEBOOK 1
46188 _ACEOF
46189
46190     USES_CONTROLS=1
46191 fi
46192
46193 if test "$wxUSE_TOOLBOOK" = "yes"; then
46194     cat >>confdefs.h <<\_ACEOF
46195 #define wxUSE_TOOLBOOK 1
46196 _ACEOF
46197
46198     USES_CONTROLS=1
46199 fi
46200
46201 if test "$wxUSE_TREECTRL" = "yes"; then
46202     if test "$wxUSE_IMAGLIST" = "yes"; then
46203         cat >>confdefs.h <<\_ACEOF
46204 #define wxUSE_TREECTRL 1
46205 _ACEOF
46206
46207         USES_CONTROLS=1
46208         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46209     else
46210         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46211 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46212     fi
46213 fi
46214
46215 if test "$wxUSE_POPUPWIN" = "yes"; then
46216     if test "$wxUSE_COCOA" = 1 ; then
46217         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46218 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46219     else
46220         if test "$wxUSE_PM" = 1; then
46221             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46222 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46223         else
46224             cat >>confdefs.h <<\_ACEOF
46225 #define wxUSE_POPUPWIN 1
46226 _ACEOF
46227
46228             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46229
46230             USES_CONTROLS=1
46231         fi
46232     fi
46233 fi
46234
46235 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46236     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46237         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46238 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46239     else
46240         cat >>confdefs.h <<\_ACEOF
46241 #define wxUSE_DIALUP_MANAGER 1
46242 _ACEOF
46243
46244         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46245     fi
46246 fi
46247
46248 if test "$wxUSE_TIPWINDOW" = "yes"; then
46249     if test "$wxUSE_PM" = 1; then
46250         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46251 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46252     else
46253         cat >>confdefs.h <<\_ACEOF
46254 #define wxUSE_TIPWINDOW 1
46255 _ACEOF
46256
46257     fi
46258 fi
46259
46260 if test "$USES_CONTROLS" = 1; then
46261     cat >>confdefs.h <<\_ACEOF
46262 #define wxUSE_CONTROLS 1
46263 _ACEOF
46264
46265 fi
46266
46267
46268 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46269     cat >>confdefs.h <<\_ACEOF
46270 #define wxUSE_ACCESSIBILITY 1
46271 _ACEOF
46272
46273     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46274 fi
46275
46276 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46277     cat >>confdefs.h <<\_ACEOF
46278 #define wxUSE_DRAGIMAGE 1
46279 _ACEOF
46280
46281     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46282 fi
46283
46284 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46285     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46286         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46287 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46288     else
46289         cat >>confdefs.h <<\_ACEOF
46290 #define wxUSE_EXCEPTIONS 1
46291 _ACEOF
46292
46293         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46294     fi
46295 fi
46296
46297 USE_HTML=0
46298 if test "$wxUSE_HTML" = "yes"; then
46299     cat >>confdefs.h <<\_ACEOF
46300 #define wxUSE_HTML 1
46301 _ACEOF
46302
46303     USE_HTML=1
46304     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46305 fi
46306 if test "$wxUSE_WEBKIT" = "yes"; then
46307     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46308         old_CPPFLAGS="$CPPFLAGS"
46309         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46310         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46311 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46312 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46313   echo $ECHO_N "(cached) $ECHO_C" >&6
46314 else
46315   cat >conftest.$ac_ext <<_ACEOF
46316 /* confdefs.h.  */
46317 _ACEOF
46318 cat confdefs.h >>conftest.$ac_ext
46319 cat >>conftest.$ac_ext <<_ACEOF
46320 /* end confdefs.h.  */
46321
46322                            #include <Carbon/Carbon.h>
46323                            #include <WebKit/WebKit.h>
46324
46325
46326 #include <WebKit/HIWebView.h>
46327 _ACEOF
46328 rm -f conftest.$ac_objext
46329 if { (ac_try="$ac_compile"
46330 case "(($ac_try" in
46331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46332   *) ac_try_echo=$ac_try;;
46333 esac
46334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46335   (eval "$ac_compile") 2>conftest.er1
46336   ac_status=$?
46337   grep -v '^ *+' conftest.er1 >conftest.err
46338   rm -f conftest.er1
46339   cat conftest.err >&5
46340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46341   (exit $ac_status); } && {
46342          test -z "$ac_c_werror_flag" ||
46343          test ! -s conftest.err
46344        } && test -s conftest.$ac_objext; then
46345   ac_cv_header_WebKit_HIWebView_h=yes
46346 else
46347   echo "$as_me: failed program was:" >&5
46348 sed 's/^/| /' conftest.$ac_ext >&5
46349
46350         ac_cv_header_WebKit_HIWebView_h=no
46351 fi
46352
46353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46354 fi
46355 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46356 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46357 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46358
46359                            cat >>confdefs.h <<\_ACEOF
46360 #define wxUSE_WEBKIT 1
46361 _ACEOF
46362
46363                            WEBKIT_LINK="-framework WebKit"
46364
46365 else
46366
46367                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46368 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46369                            wxUSE_WEBKIT=no
46370
46371 fi
46372
46373
46374         CPPFLAGS="$old_CPPFLAGS"
46375     elif test "$wxUSE_COCOA" = 1; then
46376         cat >>confdefs.h <<\_ACEOF
46377 #define wxUSE_WEBKIT 1
46378 _ACEOF
46379
46380     else
46381         wxUSE_WEBKIT=no
46382     fi
46383     if test "$wxUSE_WEBKIT" = "yes"; then
46384         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46385     fi
46386 fi
46387
46388 USE_XRC=0
46389 if test "$wxUSE_XRC" = "yes"; then
46390     if test "$wxUSE_XML" != "yes"; then
46391         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46392 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46393         wxUSE_XRC=no
46394     else
46395         cat >>confdefs.h <<\_ACEOF
46396 #define wxUSE_XRC 1
46397 _ACEOF
46398
46399         USE_XRC=1
46400         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46401     fi
46402 fi
46403
46404 USE_AUI=0
46405 if test "$wxUSE_AUI" = "yes"; then
46406    cat >>confdefs.h <<\_ACEOF
46407 #define wxUSE_AUI 1
46408 _ACEOF
46409
46410    USE_AUI=1
46411    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46412 fi
46413
46414 USE_PROPGRID=0
46415 if test "$wxUSE_PROPGRID" = "yes"; then
46416    cat >>confdefs.h <<\_ACEOF
46417 #define wxUSE_PROPGRID 1
46418 _ACEOF
46419
46420    USE_PROPGRID=1
46421    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46422 fi
46423
46424 USE_STC=0
46425 if test "$wxUSE_STC" = "yes"; then
46426    cat >>confdefs.h <<\_ACEOF
46427 #define wxUSE_STC 1
46428 _ACEOF
46429
46430    USE_STC=1
46431    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46432 fi
46433
46434 if test "$wxUSE_MENUS" = "yes"; then
46435     cat >>confdefs.h <<\_ACEOF
46436 #define wxUSE_MENUS 1
46437 _ACEOF
46438
46439     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46440 fi
46441
46442 if test "$wxUSE_METAFILE" = "yes"; then
46443     cat >>confdefs.h <<\_ACEOF
46444 #define wxUSE_METAFILE 1
46445 _ACEOF
46446
46447 fi
46448
46449 if test "$wxUSE_MIMETYPE" = "yes"; then
46450     cat >>confdefs.h <<\_ACEOF
46451 #define wxUSE_MIMETYPE 1
46452 _ACEOF
46453
46454 fi
46455
46456 if test "$wxUSE_MINIFRAME" = "yes"; then
46457     cat >>confdefs.h <<\_ACEOF
46458 #define wxUSE_MINIFRAME 1
46459 _ACEOF
46460
46461 fi
46462
46463 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46464     cat >>confdefs.h <<\_ACEOF
46465 #define wxUSE_SYSTEM_OPTIONS 1
46466 _ACEOF
46467
46468 fi
46469
46470 if test "$wxUSE_TASKBARICON" = "yes"; then
46471     cat >>confdefs.h <<\_ACEOF
46472 #define wxUSE_TASKBARICON 1
46473 _ACEOF
46474
46475     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46476 fi
46477
46478
46479 if test "$wxUSE_VALIDATORS" = "yes"; then
46480     cat >>confdefs.h <<\_ACEOF
46481 #define wxUSE_VALIDATORS 1
46482 _ACEOF
46483
46484     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46485 fi
46486
46487 if test "$wxUSE_PALETTE" = "yes" ; then
46488     if test "$wxUSE_DFB" = 1; then
46489         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46490 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46491         wxUSE_PALETTE=no
46492     else
46493         cat >>confdefs.h <<\_ACEOF
46494 #define wxUSE_PALETTE 1
46495 _ACEOF
46496
46497     fi
46498 fi
46499
46500 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46501     LIBS=" -lunicows $LIBS"
46502 fi
46503
46504 USE_RICHTEXT=0
46505 if test "$wxUSE_RICHTEXT" = "yes"; then
46506     cat >>confdefs.h <<\_ACEOF
46507 #define wxUSE_RICHTEXT 1
46508 _ACEOF
46509
46510     USE_RICHTEXT=1
46511     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46512 fi
46513
46514
46515 if test "$wxUSE_IMAGE" = "yes" ; then
46516     cat >>confdefs.h <<\_ACEOF
46517 #define wxUSE_IMAGE 1
46518 _ACEOF
46519
46520
46521     if test "$wxUSE_GIF" = "yes" ; then
46522       cat >>confdefs.h <<\_ACEOF
46523 #define wxUSE_GIF 1
46524 _ACEOF
46525
46526     fi
46527
46528     if test "$wxUSE_PCX" = "yes" ; then
46529       cat >>confdefs.h <<\_ACEOF
46530 #define wxUSE_PCX 1
46531 _ACEOF
46532
46533     fi
46534
46535     if test "$wxUSE_TGA" = "yes" ; then
46536       cat >>confdefs.h <<\_ACEOF
46537 #define wxUSE_TGA 1
46538 _ACEOF
46539
46540     fi
46541
46542     if test "$wxUSE_IFF" = "yes" ; then
46543       cat >>confdefs.h <<\_ACEOF
46544 #define wxUSE_IFF 1
46545 _ACEOF
46546
46547     fi
46548
46549     if test "$wxUSE_PNM" = "yes" ; then
46550       cat >>confdefs.h <<\_ACEOF
46551 #define wxUSE_PNM 1
46552 _ACEOF
46553
46554     fi
46555
46556     if test "$wxUSE_XPM" = "yes" ; then
46557       cat >>confdefs.h <<\_ACEOF
46558 #define wxUSE_XPM 1
46559 _ACEOF
46560
46561     fi
46562
46563     if test "$wxUSE_ICO_CUR" = "yes" ; then
46564       cat >>confdefs.h <<\_ACEOF
46565 #define wxUSE_ICO_CUR 1
46566 _ACEOF
46567
46568     fi
46569 fi
46570
46571
46572 if test "$wxUSE_ABOUTDLG" = "yes"; then
46573     cat >>confdefs.h <<\_ACEOF
46574 #define wxUSE_ABOUTDLG 1
46575 _ACEOF
46576
46577 fi
46578
46579 if test "$wxUSE_CHOICEDLG" = "yes"; then
46580     cat >>confdefs.h <<\_ACEOF
46581 #define wxUSE_CHOICEDLG 1
46582 _ACEOF
46583
46584 fi
46585
46586 if test "$wxUSE_COLOURDLG" = "yes"; then
46587     cat >>confdefs.h <<\_ACEOF
46588 #define wxUSE_COLOURDLG 1
46589 _ACEOF
46590
46591 fi
46592
46593 if test "$wxUSE_FILEDLG" = "yes"; then
46594     cat >>confdefs.h <<\_ACEOF
46595 #define wxUSE_FILEDLG 1
46596 _ACEOF
46597
46598 fi
46599
46600 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46601     cat >>confdefs.h <<\_ACEOF
46602 #define wxUSE_FINDREPLDLG 1
46603 _ACEOF
46604
46605 fi
46606
46607 if test "$wxUSE_FONTDLG" = "yes"; then
46608     cat >>confdefs.h <<\_ACEOF
46609 #define wxUSE_FONTDLG 1
46610 _ACEOF
46611
46612 fi
46613
46614 if test "$wxUSE_DIRDLG" = "yes"; then
46615     if test "$wxUSE_TREECTRL" != "yes"; then
46616         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46617 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46618     else
46619         cat >>confdefs.h <<\_ACEOF
46620 #define wxUSE_DIRDLG 1
46621 _ACEOF
46622
46623     fi
46624 fi
46625
46626 if test "$wxUSE_MSGDLG" = "yes"; then
46627     cat >>confdefs.h <<\_ACEOF
46628 #define wxUSE_MSGDLG 1
46629 _ACEOF
46630
46631 fi
46632
46633 if test "$wxUSE_NUMBERDLG" = "yes"; then
46634     cat >>confdefs.h <<\_ACEOF
46635 #define wxUSE_NUMBERDLG 1
46636 _ACEOF
46637
46638 fi
46639
46640 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46641     cat >>confdefs.h <<\_ACEOF
46642 #define wxUSE_PROGRESSDLG 1
46643 _ACEOF
46644
46645 fi
46646
46647 if test "$wxUSE_SPLASH" = "yes"; then
46648     cat >>confdefs.h <<\_ACEOF
46649 #define wxUSE_SPLASH 1
46650 _ACEOF
46651
46652     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46653 fi
46654
46655 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46656     cat >>confdefs.h <<\_ACEOF
46657 #define wxUSE_STARTUP_TIPS 1
46658 _ACEOF
46659
46660 fi
46661
46662 if test "$wxUSE_TEXTDLG" = "yes"; then
46663     cat >>confdefs.h <<\_ACEOF
46664 #define wxUSE_TEXTDLG 1
46665 _ACEOF
46666
46667 fi
46668
46669 if test "$wxUSE_WIZARDDLG" = "yes"; then
46670     cat >>confdefs.h <<\_ACEOF
46671 #define wxUSE_WIZARDDLG 1
46672 _ACEOF
46673
46674     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46675 fi
46676
46677
46678 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46679     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46680         cat >>confdefs.h <<\_ACEOF
46681 #define wxUSE_OWNER_DRAWN 1
46682 _ACEOF
46683
46684     fi
46685 fi
46686
46687
46688 if test "$wxUSE_MSW" = 1 ; then
46689
46690     if test "$wxUSE_DC_CACHEING" = "yes"; then
46691         cat >>confdefs.h <<\_ACEOF
46692 #define wxUSE_DC_CACHEING 1
46693 _ACEOF
46694
46695     fi
46696
46697     if test "$wxUSE_DIB" = "yes"; then
46698         cat >>confdefs.h <<\_ACEOF
46699 #define wxUSE_WXDIB 1
46700 _ACEOF
46701
46702     fi
46703
46704     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46705         cat >>confdefs.h <<\_ACEOF
46706 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46707 _ACEOF
46708
46709     fi
46710
46711     if test "$wxUSE_UXTHEME" = "yes"; then
46712         cat >>confdefs.h <<\_ACEOF
46713 #define wxUSE_UXTHEME 1
46714 _ACEOF
46715
46716     fi
46717
46718 fi
46719
46720 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46721     cat >>confdefs.h <<\_ACEOF
46722 #define wxUSE_AUTOID_MANAGEMENT 1
46723 _ACEOF
46724
46725 fi
46726
46727 if test "$USE_WIN32" = 1 ; then
46728     if test "$wxUSE_INICONF" = "yes"; then
46729         cat >>confdefs.h <<\_ACEOF
46730 #define wxUSE_INICONF 1
46731 _ACEOF
46732
46733     fi
46734
46735     if test "$wxUSE_REGKEY" = "yes"; then
46736         cat >>confdefs.h <<\_ACEOF
46737 #define wxUSE_REGKEY 1
46738 _ACEOF
46739
46740     fi
46741 fi
46742
46743
46744 if test "$wxUSE_MAC" = 1; then
46745         wxUSE_GRAPHICS_CONTEXT="yes"
46746 fi
46747
46748 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46749    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46750       cat >>confdefs.h <<\_ACEOF
46751 #define wxUSE_GRAPHICS_CONTEXT 1
46752 _ACEOF
46753
46754    elif test "$wxUSE_GTK" != 1; then
46755             cat >>confdefs.h <<\_ACEOF
46756 #define wxUSE_GRAPHICS_CONTEXT 1
46757 _ACEOF
46758
46759    else
46760
46761 pkg_failed=no
46762 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46763 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46764
46765 if test -n "$PKG_CONFIG"; then
46766     if test -n "$CAIRO_CFLAGS"; then
46767         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46768     else
46769         if test -n "$PKG_CONFIG" && \
46770     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46771   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46772   ac_status=$?
46773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46774   (exit $ac_status); }; then
46775   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46776 else
46777   pkg_failed=yes
46778 fi
46779     fi
46780 else
46781         pkg_failed=untried
46782 fi
46783 if test -n "$PKG_CONFIG"; then
46784     if test -n "$CAIRO_LIBS"; then
46785         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46786     else
46787         if test -n "$PKG_CONFIG" && \
46788     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46789   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46790   ac_status=$?
46791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46792   (exit $ac_status); }; then
46793   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46794 else
46795   pkg_failed=yes
46796 fi
46797     fi
46798 else
46799         pkg_failed=untried
46800 fi
46801
46802
46803
46804 if test $pkg_failed = yes; then
46805
46806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46807         _pkg_short_errors_supported=yes
46808 else
46809         _pkg_short_errors_supported=no
46810 fi
46811         if test $_pkg_short_errors_supported = yes; then
46812                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46813         else
46814                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46815         fi
46816         # Put the nasty error message in config.log where it belongs
46817         echo "$CAIRO_PKG_ERRORS" >&5
46818
46819         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46820 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46821
46822 elif test $pkg_failed = untried; then
46823         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46824 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46825
46826 else
46827         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46828         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46829         { echo "$as_me:$LINENO: result: yes" >&5
46830 echo "${ECHO_T}yes" >&6; }
46831         cat >>confdefs.h <<\_ACEOF
46832 #define wxUSE_GRAPHICS_CONTEXT 1
46833 _ACEOF
46834
46835 fi
46836    fi
46837 fi
46838
46839
46840 USE_MEDIA=0
46841
46842 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
46843     USE_MEDIA=1
46844
46845                 if test "$wxUSE_GTK" = 1; then
46846         wxUSE_GSTREAMER="no"
46847
46848                                                                 GST_VERSION_MAJOR=0
46849         GST_VERSION_MINOR=10
46850         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46851
46852         if test "$wxUSE_GSTREAMER8" = "no"; then
46853
46854 pkg_failed=no
46855 { echo "$as_me:$LINENO: checking for GST" >&5
46856 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46857
46858 if test -n "$PKG_CONFIG"; then
46859     if test -n "$GST_CFLAGS"; then
46860         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46861     else
46862         if test -n "$PKG_CONFIG" && \
46863     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46864   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46865   ac_status=$?
46866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46867   (exit $ac_status); }; then
46868   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46869 else
46870   pkg_failed=yes
46871 fi
46872     fi
46873 else
46874         pkg_failed=untried
46875 fi
46876 if test -n "$PKG_CONFIG"; then
46877     if test -n "$GST_LIBS"; then
46878         pkg_cv_GST_LIBS="$GST_LIBS"
46879     else
46880         if test -n "$PKG_CONFIG" && \
46881     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46882   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46883   ac_status=$?
46884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46885   (exit $ac_status); }; then
46886   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46887 else
46888   pkg_failed=yes
46889 fi
46890     fi
46891 else
46892         pkg_failed=untried
46893 fi
46894
46895
46896
46897 if test $pkg_failed = yes; then
46898
46899 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46900         _pkg_short_errors_supported=yes
46901 else
46902         _pkg_short_errors_supported=no
46903 fi
46904         if test $_pkg_short_errors_supported = yes; then
46905                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46906         else
46907                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46908         fi
46909         # Put the nasty error message in config.log where it belongs
46910         echo "$GST_PKG_ERRORS" >&5
46911
46912
46913                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46914 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46915                     GST_VERSION_MINOR=8
46916
46917
46918 elif test $pkg_failed = untried; then
46919
46920                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46921 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46922                     GST_VERSION_MINOR=8
46923
46924
46925 else
46926         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46927         GST_LIBS=$pkg_cv_GST_LIBS
46928         { echo "$as_me:$LINENO: result: yes" >&5
46929 echo "${ECHO_T}yes" >&6; }
46930
46931                     wxUSE_GSTREAMER="yes"
46932                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46933
46934 fi
46935         else
46936                         GST_VERSION_MINOR=8
46937         fi
46938
46939         if test $GST_VERSION_MINOR = "8"; then
46940             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46941
46942 pkg_failed=no
46943 { echo "$as_me:$LINENO: checking for GST" >&5
46944 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46945
46946 if test -n "$PKG_CONFIG"; then
46947     if test -n "$GST_CFLAGS"; then
46948         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46949     else
46950         if test -n "$PKG_CONFIG" && \
46951     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46952   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46953   ac_status=$?
46954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46955   (exit $ac_status); }; then
46956   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46957 else
46958   pkg_failed=yes
46959 fi
46960     fi
46961 else
46962         pkg_failed=untried
46963 fi
46964 if test -n "$PKG_CONFIG"; then
46965     if test -n "$GST_LIBS"; then
46966         pkg_cv_GST_LIBS="$GST_LIBS"
46967     else
46968         if test -n "$PKG_CONFIG" && \
46969     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46970   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46971   ac_status=$?
46972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46973   (exit $ac_status); }; then
46974   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46975 else
46976   pkg_failed=yes
46977 fi
46978     fi
46979 else
46980         pkg_failed=untried
46981 fi
46982
46983
46984
46985 if test $pkg_failed = yes; then
46986
46987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46988         _pkg_short_errors_supported=yes
46989 else
46990         _pkg_short_errors_supported=no
46991 fi
46992         if test $_pkg_short_errors_supported = yes; then
46993                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46994         else
46995                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46996         fi
46997         # Put the nasty error message in config.log where it belongs
46998         echo "$GST_PKG_ERRORS" >&5
46999
47000
47001                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47002 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47003
47004 elif test $pkg_failed = untried; then
47005
47006                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47007 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47008
47009 else
47010         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47011         GST_LIBS=$pkg_cv_GST_LIBS
47012         { echo "$as_me:$LINENO: result: yes" >&5
47013 echo "${ECHO_T}yes" >&6; }
47014         wxUSE_GSTREAMER="yes"
47015 fi
47016         fi
47017
47018
47019         if test "$wxUSE_GSTREAMER" = "yes"; then
47020             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47021             EXTRALIBS_MEDIA="$GST_LIBS"
47022
47023             cat >>confdefs.h <<\_ACEOF
47024 #define wxUSE_GSTREAMER 1
47025 _ACEOF
47026
47027         else
47028             USE_MEDIA=0
47029         fi
47030     fi
47031
47032     if test $USE_MEDIA = 1; then
47033         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47034         cat >>confdefs.h <<\_ACEOF
47035 #define wxUSE_MEDIACTRL 1
47036 _ACEOF
47037
47038     else
47039         if test "$wxUSE_MEDIACTRL" = "yes"; then
47040             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
47041 echo "$as_me: error: GStreamer not available" >&2;}
47042    { (exit 1); exit 1; }; }
47043         else
47044                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
47045 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
47046         fi
47047     fi
47048 fi
47049
47050
47051 if test "$cross_compiling" = "yes"; then
47052         OSINFO="\"$host\""
47053 else
47054         OSINFO=`uname -s -r -m`
47055     OSINFO="\"$OSINFO\""
47056 fi
47057
47058 cat >>confdefs.h <<_ACEOF
47059 #define WXWIN_OS_DESCRIPTION $OSINFO
47060 _ACEOF
47061
47062
47063
47064 if test "x$prefix" != "xNONE"; then
47065     wxPREFIX=$prefix
47066 else
47067     wxPREFIX=$ac_default_prefix
47068 fi
47069
47070 cat >>confdefs.h <<_ACEOF
47071 #define wxINSTALL_PREFIX "$wxPREFIX"
47072 _ACEOF
47073
47074
47075
47076
47077 STD_BASE_LIBS="base"
47078 STD_GUI_LIBS=""
47079 BUILT_WX_LIBS="base"
47080 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
47081
47082 if test "$wxUSE_SOCKETS" = "yes" ; then
47083     STD_BASE_LIBS="net $STD_BASE_LIBS"
47084     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
47085 fi
47086 if test "$wxUSE_XML" = "yes" ; then
47087     STD_BASE_LIBS="xml $STD_BASE_LIBS"
47088     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
47089 fi
47090
47091 if test "$wxUSE_GUI" = "yes"; then
47092     STD_GUI_LIBS="adv core"
47093     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
47094
47095     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47096         STD_GUI_LIBS="qa $STD_GUI_LIBS"
47097         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47098     fi
47099     if test "$wxUSE_HTML" = "yes" ; then
47100         STD_GUI_LIBS="html $STD_GUI_LIBS"
47101         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47102     fi
47103     if test "$wxUSE_MEDIACTRL" = "yes" ; then
47104         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47105     fi
47106     if test "$wxUSE_OPENGL" = "yes" ; then
47107         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47108     fi
47109     if test "$wxUSE_AUI" = "yes" ; then
47110         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47111     fi
47112     if test "$wxUSE_PROPGRID" = "yes" ; then
47113         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47114     fi
47115     if test "$wxUSE_RICHTEXT" = "yes" ; then
47116         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47117     fi
47118     if test "$wxUSE_STC" = "yes" ; then
47119         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47120     fi
47121     if test "$wxUSE_XRC" = "yes" ; then
47122         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
47123         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
47124     fi
47125 fi
47126
47127
47128
47129
47130
47131
47132
47133
47134 if test "$wxUSE_MAC" = 1 ; then
47135     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47136         if test "$USE_DARWIN" = 1; then
47137             LDFLAGS="$LDFLAGS -framework QuickTime"
47138         fi
47139     fi
47140     if test "$USE_DARWIN" = 1; then
47141         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47142     fi
47143 fi
47144 if test "$wxUSE_COCOA" = 1 ; then
47145     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47146     if test "$wxUSE_MEDIACTRL" = "yes"; then
47147         LDFLAGS="$LDFLAGS -framework QuickTime"
47148     fi
47149 fi
47150 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47151     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47152 fi
47153
47154 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47155
47156 if test "$wxUSE_GUI" = "yes"; then
47157
47158
47159         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47160                      erase event exec font image minimal render \
47161                      shaped svg taborder vscroll widgets wrapsizer"
47162
47163     if test "$wxUSE_MONOLITHIC" != "yes"; then
47164         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47165     fi
47166     if test "$TOOLKIT" = "MSW"; then
47167         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47168         if test "$wxUSE_UNIVERSAL" != "yes"; then
47169             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47170         fi
47171     fi
47172     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47173         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47174     fi
47175 else
47176     SAMPLES_SUBDIRS="console"
47177     if test "$wxUSE_SOCKETS" = "yes" ; then
47178         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47179     fi
47180     if test "$wxUSE_IPC" = "yes" ; then
47181         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47182     fi
47183 fi
47184
47185
47186 if test "x$INTELCC" = "xyes" ; then
47187                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
47188 elif test "$GCC" = yes ; then
47189     CWARNINGS="-Wall -Wundef"
47190 fi
47191
47192 if test "x$INTELCXX" = "xyes" ; then
47193                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
47194 elif test "$GXX" = yes ; then
47195     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47196     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
47197 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
47198 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
47199   echo $ECHO_N "(cached) $ECHO_C" >&6
47200 else
47201   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
47202
47203  ac_ext=cpp
47204 ac_cpp='$CXXCPP $CPPFLAGS'
47205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47208
47209  ac_save_CXXFLAGS="$CXXFLAGS"
47210 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
47211 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
47212    cat >conftest.$ac_ext <<_ACEOF
47213 /* confdefs.h.  */
47214 _ACEOF
47215 cat confdefs.h >>conftest.$ac_ext
47216 cat >>conftest.$ac_ext <<_ACEOF
47217 /* end confdefs.h.  */
47218
47219 int
47220 main ()
47221 {
47222 return 0;
47223   ;
47224   return 0;
47225 }
47226 _ACEOF
47227 rm -f conftest.$ac_objext
47228 if { (ac_try="$ac_compile"
47229 case "(($ac_try" in
47230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47231   *) ac_try_echo=$ac_try;;
47232 esac
47233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47234   (eval "$ac_compile") 2>conftest.er1
47235   ac_status=$?
47236   grep -v '^ *+' conftest.er1 >conftest.err
47237   rm -f conftest.er1
47238   cat conftest.err >&5
47239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47240   (exit $ac_status); } && {
47241          test -z "$ac_cxx_werror_flag" ||
47242          test ! -s conftest.err
47243        } && test -s conftest.$ac_objext; then
47244   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47245 else
47246   echo "$as_me: failed program was:" >&5
47247 sed 's/^/| /' conftest.$ac_ext >&5
47248
47249
47250 fi
47251
47252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47253 done
47254  CXXFLAGS="$ac_save_CXXFLAGS"
47255  ac_ext=c
47256 ac_cpp='$CPP $CPPFLAGS'
47257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47260
47261
47262 fi
47263 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47264 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47265 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47266      .ok|.ok,*)  ;;
47267    .|.no|.no,*)  ;;
47268    *)
47269    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47270    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47271   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47272   ac_status=$?
47273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47274   (exit $ac_status); }
47275    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47276   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47277   ac_status=$?
47278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279   (exit $ac_status); }
47280                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47281    fi
47282  ;;
47283 esac
47284
47285 fi
47286
47287
47288 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47289 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47290
47291
47292 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47293  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47294  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47295  $CPPFLAGS `
47296
47297 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47298 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47299 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47300 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47301 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47302
47303 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47304
47305
47306 if test "x$MWCC" = "xyes"; then
47307
47308             CC="$CC -cwd source -I-"
47309     CXX="$CXX -cwd source -I-"
47310 fi
47311
47312
47313 LIBS=`echo $LIBS`
47314 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47315 EXTRALIBS_XML="$EXPAT_LINK"
47316 EXTRALIBS_HTML="$MSPACK_LINK"
47317 EXTRALIBS_MEDIA="$GST_LIBS"
47318 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47319 if test "$wxUSE_GUI" = "yes"; then
47320     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47321 fi
47322 if test "$wxUSE_OPENGL" = "yes"; then
47323     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47324 fi
47325
47326 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47327
47328 WXCONFIG_LIBS="$LIBS"
47329
47330 if test "$wxUSE_REGEX" = "builtin" ; then
47331     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47332 fi
47333 if test "$wxUSE_EXPAT" = "builtin" ; then
47334     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47335 fi
47336 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47337     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47338 fi
47339 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47340     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47341 fi
47342 if test "$wxUSE_LIBPNG" = "builtin" ; then
47343     wxconfig_3rdparty="png $wxconfig_3rdparty"
47344 fi
47345 if test "$wxUSE_ZLIB" = "builtin" ; then
47346     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47347 fi
47348
47349 for i in $wxconfig_3rdparty ; do
47350     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47351 done
47352
47353
47354 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47355     WXUNIV=1
47356
47357     case "$wxUNIV_THEMES" in
47358         ''|all)
47359             cat >>confdefs.h <<\_ACEOF
47360 #define wxUSE_ALL_THEMES 1
47361 _ACEOF
47362
47363             ;;
47364
47365         *)
47366             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47367                 cat >>confdefs.h <<_ACEOF
47368 #define wxUSE_THEME_$t 1
47369 _ACEOF
47370
47371             done
47372     esac
47373 else
47374     WXUNIV=0
47375 fi
47376
47377
47378
47379
47380
47381
47382
47383
47384 if test $wxUSE_MONOLITHIC = "yes" ; then
47385     MONOLITHIC=1
47386 else
47387     MONOLITHIC=0
47388 fi
47389
47390 if test $wxUSE_PLUGINS = "yes" ; then
47391     USE_PLUGINS=1
47392 else
47393     USE_PLUGINS=0
47394 fi
47395
47396 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47397     USE_QA=1
47398 else
47399     USE_QA=0
47400 fi
47401
47402 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47403     OFFICIAL_BUILD=1
47404 else
47405     OFFICIAL_BUILD=0
47406 fi
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
47421
47422
47423
47424
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434
47435 TOOLKIT_LOWERCASE=xxx
47436 if test "$TOOLKIT" = "MAC"; then
47437     TOOLKIT_LOWERCASE=osx_carbon
47438 fi
47439 if test "$TOOLKIT" = "OSX_CARBON"; then
47440     TOOLKIT_LOWERCASE=osx_carbon
47441 fi
47442 if test "$TOOLKIT" = "OSX_COCOA"; then
47443     TOOLKIT_LOWERCASE=osx_cocoa
47444 fi
47445 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47446     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47447 fi
47448
47449
47450
47451
47452
47453
47454
47455
47456
47457 case "$TOOLKIT" in
47458     GTK)
47459         TOOLKIT_DESC="GTK+"
47460         if test "$WXGTK2" = 1; then
47461             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47462             if test "$wxUSE_GTKPRINT" = "yes" ; then
47463                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47464             fi
47465             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47466                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47467             fi
47468             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47469                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47470             fi
47471             if test "$wxUSE_LIBHILDON" = "yes"; then
47472                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47473             fi
47474
47475             if test "$TOOLKIT_EXTRA" != ""; then
47476                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47477             fi
47478         fi
47479         ;;
47480
47481     ?*)
47482         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47483         ;;
47484
47485     *)
47486         TOOLKIT_DESC="base only"
47487         ;;
47488 esac
47489
47490 if test "$wxUSE_WINE" = "yes"; then
47491     BAKEFILE_FORCE_PLATFORM=win32
47492 fi
47493
47494 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47495 then
47496     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47497 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47498 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47499   echo $ECHO_N "(cached) $ECHO_C" >&6
47500 else
47501
47502             echo '#include <stdio.h>
47503                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47504
47505             echo '#include "conftest.h"
47506                   int main()
47507                   {
47508                      printf("%ls", test_var);
47509                      return 0;
47510                   }' > conftest.cpp
47511
47512             wx_cv_gcc_pch_bug="pch not supported"
47513
47514             if $CXX conftest.h >/dev/null 2>&1
47515             then
47516                 wx_cv_gcc_pch_bug=
47517
47518                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47519                 then
47520                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47521                         grep awidetest >/dev/null
47522                     then
47523                         wx_cv_gcc_pch_bug=no
47524                     else
47525                         wx_cv_gcc_pch_bug=yes
47526                     fi
47527                 fi
47528             fi
47529
47530             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47531
47532 fi
47533 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47534 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47535
47536     if test "$wx_cv_gcc_pch_bug" = yes; then
47537                         bk_use_pch=no
47538     fi
47539 fi
47540
47541
47542
47543
47544
47545
47546
47547     if test "x$BAKEFILE_HOST" = "x"; then
47548                if test "x${host}" = "x" ; then
47549                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47550 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47551    { (exit 1); exit 1; }; }
47552                fi
47553
47554         BAKEFILE_HOST="${host}"
47555     fi
47556
47557     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47558
47559     if test -n "$ac_tool_prefix"; then
47560   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47561 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47564 if test "${ac_cv_prog_RANLIB+set}" = set; then
47565   echo $ECHO_N "(cached) $ECHO_C" >&6
47566 else
47567   if test -n "$RANLIB"; then
47568   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47569 else
47570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47571 for as_dir in $PATH
47572 do
47573   IFS=$as_save_IFS
47574   test -z "$as_dir" && as_dir=.
47575   for ac_exec_ext in '' $ac_executable_extensions; do
47576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47577     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47579     break 2
47580   fi
47581 done
47582 done
47583 IFS=$as_save_IFS
47584
47585 fi
47586 fi
47587 RANLIB=$ac_cv_prog_RANLIB
47588 if test -n "$RANLIB"; then
47589   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47590 echo "${ECHO_T}$RANLIB" >&6; }
47591 else
47592   { echo "$as_me:$LINENO: result: no" >&5
47593 echo "${ECHO_T}no" >&6; }
47594 fi
47595
47596
47597 fi
47598 if test -z "$ac_cv_prog_RANLIB"; then
47599   ac_ct_RANLIB=$RANLIB
47600   # Extract the first word of "ranlib", so it can be a program name with args.
47601 set dummy ranlib; ac_word=$2
47602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47604 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47605   echo $ECHO_N "(cached) $ECHO_C" >&6
47606 else
47607   if test -n "$ac_ct_RANLIB"; then
47608   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47609 else
47610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47611 for as_dir in $PATH
47612 do
47613   IFS=$as_save_IFS
47614   test -z "$as_dir" && as_dir=.
47615   for ac_exec_ext in '' $ac_executable_extensions; do
47616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47617     ac_cv_prog_ac_ct_RANLIB="ranlib"
47618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47619     break 2
47620   fi
47621 done
47622 done
47623 IFS=$as_save_IFS
47624
47625 fi
47626 fi
47627 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47628 if test -n "$ac_ct_RANLIB"; then
47629   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47630 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47631 else
47632   { echo "$as_me:$LINENO: result: no" >&5
47633 echo "${ECHO_T}no" >&6; }
47634 fi
47635
47636   if test "x$ac_ct_RANLIB" = x; then
47637     RANLIB=":"
47638   else
47639     case $cross_compiling:$ac_tool_warned in
47640 yes:)
47641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47642 whose name does not start with the host triplet.  If you think this
47643 configuration is useful to you, please write to autoconf@gnu.org." >&5
47644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47645 whose name does not start with the host triplet.  If you think this
47646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47647 ac_tool_warned=yes ;;
47648 esac
47649     RANLIB=$ac_ct_RANLIB
47650   fi
47651 else
47652   RANLIB="$ac_cv_prog_RANLIB"
47653 fi
47654
47655     # Find a good install program.  We prefer a C program (faster),
47656 # so one script is as good as another.  But avoid the broken or
47657 # incompatible versions:
47658 # SysV /etc/install, /usr/sbin/install
47659 # SunOS /usr/etc/install
47660 # IRIX /sbin/install
47661 # AIX /bin/install
47662 # AmigaOS /C/install, which installs bootblocks on floppy discs
47663 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47666 # OS/2's system install, which has a completely different semantic
47667 # ./install, which can be erroneously created by make from ./install.sh.
47668 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47669 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47670 if test -z "$INSTALL"; then
47671 if test "${ac_cv_path_install+set}" = set; then
47672   echo $ECHO_N "(cached) $ECHO_C" >&6
47673 else
47674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47675 for as_dir in $PATH
47676 do
47677   IFS=$as_save_IFS
47678   test -z "$as_dir" && as_dir=.
47679   # Account for people who put trailing slashes in PATH elements.
47680 case $as_dir/ in
47681   ./ | .// | /cC/* | \
47682   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47683   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47684   /usr/ucb/* ) ;;
47685   *)
47686     # OSF1 and SCO ODT 3.0 have their own names for install.
47687     # Don't use installbsd from OSF since it installs stuff as root
47688     # by default.
47689     for ac_prog in ginstall scoinst install; do
47690       for ac_exec_ext in '' $ac_executable_extensions; do
47691         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47692           if test $ac_prog = install &&
47693             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47694             # AIX install.  It has an incompatible calling convention.
47695             :
47696           elif test $ac_prog = install &&
47697             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47698             # program-specific install script used by HP pwplus--don't use.
47699             :
47700           else
47701             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47702             break 3
47703           fi
47704         fi
47705       done
47706     done
47707     ;;
47708 esac
47709 done
47710 IFS=$as_save_IFS
47711
47712
47713 fi
47714   if test "${ac_cv_path_install+set}" = set; then
47715     INSTALL=$ac_cv_path_install
47716   else
47717     # As a last resort, use the slow shell script.  Don't cache a
47718     # value for INSTALL within a source directory, because that will
47719     # break other packages using the cache if that directory is
47720     # removed, or if the value is a relative name.
47721     INSTALL=$ac_install_sh
47722   fi
47723 fi
47724 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47725 echo "${ECHO_T}$INSTALL" >&6; }
47726
47727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47728 # It thinks the first close brace ends the variable substitution.
47729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47730
47731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47732
47733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47734
47735     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47736 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47737 LN_S=$as_ln_s
47738 if test "$LN_S" = "ln -s"; then
47739   { echo "$as_me:$LINENO: result: yes" >&5
47740 echo "${ECHO_T}yes" >&6; }
47741 else
47742   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47743 echo "${ECHO_T}no, using $LN_S" >&6; }
47744 fi
47745
47746
47747     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47749 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47750 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47751   echo $ECHO_N "(cached) $ECHO_C" >&6
47752 else
47753   cat >conftest.make <<\_ACEOF
47754 SHELL = /bin/sh
47755 all:
47756         @echo '@@@%%%=$(MAKE)=@@@%%%'
47757 _ACEOF
47758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47759 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47760   *@@@%%%=?*=@@@%%%*)
47761     eval ac_cv_prog_make_${ac_make}_set=yes;;
47762   *)
47763     eval ac_cv_prog_make_${ac_make}_set=no;;
47764 esac
47765 rm -f conftest.make
47766 fi
47767 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47768   { echo "$as_me:$LINENO: result: yes" >&5
47769 echo "${ECHO_T}yes" >&6; }
47770   SET_MAKE=
47771 else
47772   { echo "$as_me:$LINENO: result: no" >&5
47773 echo "${ECHO_T}no" >&6; }
47774   SET_MAKE="MAKE=${MAKE-make}"
47775 fi
47776
47777
47778
47779     if test "x$SUNCXX" = "xyes"; then
47780                                 AR=$CXX
47781         AROPTIONS="-xar -o"
47782
47783     elif test "x$SGICC" = "xyes"; then
47784                 AR=$CXX
47785         AROPTIONS="-ar -o"
47786
47787     else
47788         if test -n "$ac_tool_prefix"; then
47789   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47790 set dummy ${ac_tool_prefix}ar; ac_word=$2
47791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47793 if test "${ac_cv_prog_AR+set}" = set; then
47794   echo $ECHO_N "(cached) $ECHO_C" >&6
47795 else
47796   if test -n "$AR"; then
47797   ac_cv_prog_AR="$AR" # Let the user override the test.
47798 else
47799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47800 for as_dir in $PATH
47801 do
47802   IFS=$as_save_IFS
47803   test -z "$as_dir" && as_dir=.
47804   for ac_exec_ext in '' $ac_executable_extensions; do
47805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47806     ac_cv_prog_AR="${ac_tool_prefix}ar"
47807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47808     break 2
47809   fi
47810 done
47811 done
47812 IFS=$as_save_IFS
47813
47814 fi
47815 fi
47816 AR=$ac_cv_prog_AR
47817 if test -n "$AR"; then
47818   { echo "$as_me:$LINENO: result: $AR" >&5
47819 echo "${ECHO_T}$AR" >&6; }
47820 else
47821   { echo "$as_me:$LINENO: result: no" >&5
47822 echo "${ECHO_T}no" >&6; }
47823 fi
47824
47825
47826 fi
47827 if test -z "$ac_cv_prog_AR"; then
47828   ac_ct_AR=$AR
47829   # Extract the first word of "ar", so it can be a program name with args.
47830 set dummy ar; ac_word=$2
47831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47833 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47834   echo $ECHO_N "(cached) $ECHO_C" >&6
47835 else
47836   if test -n "$ac_ct_AR"; then
47837   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47838 else
47839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47840 for as_dir in $PATH
47841 do
47842   IFS=$as_save_IFS
47843   test -z "$as_dir" && as_dir=.
47844   for ac_exec_ext in '' $ac_executable_extensions; do
47845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47846     ac_cv_prog_ac_ct_AR="ar"
47847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47848     break 2
47849   fi
47850 done
47851 done
47852 IFS=$as_save_IFS
47853
47854 fi
47855 fi
47856 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47857 if test -n "$ac_ct_AR"; then
47858   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47859 echo "${ECHO_T}$ac_ct_AR" >&6; }
47860 else
47861   { echo "$as_me:$LINENO: result: no" >&5
47862 echo "${ECHO_T}no" >&6; }
47863 fi
47864
47865   if test "x$ac_ct_AR" = x; then
47866     AR="ar"
47867   else
47868     case $cross_compiling:$ac_tool_warned in
47869 yes:)
47870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47871 whose name does not start with the host triplet.  If you think this
47872 configuration is useful to you, please write to autoconf@gnu.org." >&5
47873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47874 whose name does not start with the host triplet.  If you think this
47875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47876 ac_tool_warned=yes ;;
47877 esac
47878     AR=$ac_ct_AR
47879   fi
47880 else
47881   AR="$ac_cv_prog_AR"
47882 fi
47883
47884         AROPTIONS=rcu
47885     fi
47886
47887
47888     if test -n "$ac_tool_prefix"; then
47889   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47890 set dummy ${ac_tool_prefix}strip; ac_word=$2
47891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47893 if test "${ac_cv_prog_STRIP+set}" = set; then
47894   echo $ECHO_N "(cached) $ECHO_C" >&6
47895 else
47896   if test -n "$STRIP"; then
47897   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47898 else
47899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47900 for as_dir in $PATH
47901 do
47902   IFS=$as_save_IFS
47903   test -z "$as_dir" && as_dir=.
47904   for ac_exec_ext in '' $ac_executable_extensions; do
47905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47906     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47908     break 2
47909   fi
47910 done
47911 done
47912 IFS=$as_save_IFS
47913
47914 fi
47915 fi
47916 STRIP=$ac_cv_prog_STRIP
47917 if test -n "$STRIP"; then
47918   { echo "$as_me:$LINENO: result: $STRIP" >&5
47919 echo "${ECHO_T}$STRIP" >&6; }
47920 else
47921   { echo "$as_me:$LINENO: result: no" >&5
47922 echo "${ECHO_T}no" >&6; }
47923 fi
47924
47925
47926 fi
47927 if test -z "$ac_cv_prog_STRIP"; then
47928   ac_ct_STRIP=$STRIP
47929   # Extract the first word of "strip", so it can be a program name with args.
47930 set dummy strip; ac_word=$2
47931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47934   echo $ECHO_N "(cached) $ECHO_C" >&6
47935 else
47936   if test -n "$ac_ct_STRIP"; then
47937   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47938 else
47939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47940 for as_dir in $PATH
47941 do
47942   IFS=$as_save_IFS
47943   test -z "$as_dir" && as_dir=.
47944   for ac_exec_ext in '' $ac_executable_extensions; do
47945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47946     ac_cv_prog_ac_ct_STRIP="strip"
47947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47948     break 2
47949   fi
47950 done
47951 done
47952 IFS=$as_save_IFS
47953
47954 fi
47955 fi
47956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47957 if test -n "$ac_ct_STRIP"; then
47958   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47959 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47960 else
47961   { echo "$as_me:$LINENO: result: no" >&5
47962 echo "${ECHO_T}no" >&6; }
47963 fi
47964
47965   if test "x$ac_ct_STRIP" = x; then
47966     STRIP=":"
47967   else
47968     case $cross_compiling:$ac_tool_warned in
47969 yes:)
47970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47971 whose name does not start with the host triplet.  If you think this
47972 configuration is useful to you, please write to autoconf@gnu.org." >&5
47973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47974 whose name does not start with the host triplet.  If you think this
47975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47976 ac_tool_warned=yes ;;
47977 esac
47978     STRIP=$ac_ct_STRIP
47979   fi
47980 else
47981   STRIP="$ac_cv_prog_STRIP"
47982 fi
47983
47984     if test -n "$ac_tool_prefix"; then
47985   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47986 set dummy ${ac_tool_prefix}nm; ac_word=$2
47987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47989 if test "${ac_cv_prog_NM+set}" = set; then
47990   echo $ECHO_N "(cached) $ECHO_C" >&6
47991 else
47992   if test -n "$NM"; then
47993   ac_cv_prog_NM="$NM" # Let the user override the test.
47994 else
47995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47996 for as_dir in $PATH
47997 do
47998   IFS=$as_save_IFS
47999   test -z "$as_dir" && as_dir=.
48000   for ac_exec_ext in '' $ac_executable_extensions; do
48001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48002     ac_cv_prog_NM="${ac_tool_prefix}nm"
48003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48004     break 2
48005   fi
48006 done
48007 done
48008 IFS=$as_save_IFS
48009
48010 fi
48011 fi
48012 NM=$ac_cv_prog_NM
48013 if test -n "$NM"; then
48014   { echo "$as_me:$LINENO: result: $NM" >&5
48015 echo "${ECHO_T}$NM" >&6; }
48016 else
48017   { echo "$as_me:$LINENO: result: no" >&5
48018 echo "${ECHO_T}no" >&6; }
48019 fi
48020
48021
48022 fi
48023 if test -z "$ac_cv_prog_NM"; then
48024   ac_ct_NM=$NM
48025   # Extract the first word of "nm", so it can be a program name with args.
48026 set dummy nm; ac_word=$2
48027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48029 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48030   echo $ECHO_N "(cached) $ECHO_C" >&6
48031 else
48032   if test -n "$ac_ct_NM"; then
48033   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48034 else
48035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48036 for as_dir in $PATH
48037 do
48038   IFS=$as_save_IFS
48039   test -z "$as_dir" && as_dir=.
48040   for ac_exec_ext in '' $ac_executable_extensions; do
48041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48042     ac_cv_prog_ac_ct_NM="nm"
48043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48044     break 2
48045   fi
48046 done
48047 done
48048 IFS=$as_save_IFS
48049
48050 fi
48051 fi
48052 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48053 if test -n "$ac_ct_NM"; then
48054   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48055 echo "${ECHO_T}$ac_ct_NM" >&6; }
48056 else
48057   { echo "$as_me:$LINENO: result: no" >&5
48058 echo "${ECHO_T}no" >&6; }
48059 fi
48060
48061   if test "x$ac_ct_NM" = x; then
48062     NM=":"
48063   else
48064     case $cross_compiling:$ac_tool_warned in
48065 yes:)
48066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48067 whose name does not start with the host triplet.  If you think this
48068 configuration is useful to you, please write to autoconf@gnu.org." >&5
48069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48070 whose name does not start with the host triplet.  If you think this
48071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48072 ac_tool_warned=yes ;;
48073 esac
48074     NM=$ac_ct_NM
48075   fi
48076 else
48077   NM="$ac_cv_prog_NM"
48078 fi
48079
48080
48081             { echo "$as_me:$LINENO: checking for command to install directories" >&5
48082 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
48083     INSTALL_TEST_DIR=acbftest$$
48084     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48085     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48086         rmdir $INSTALL_TEST_DIR
48087                         INSTALL_DIR='$(INSTALL) -d'
48088         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48089 echo "${ECHO_T}$INSTALL -d" >&6; }
48090     else
48091         INSTALL_DIR="mkdir -p"
48092         { echo "$as_me:$LINENO: result: mkdir -p" >&5
48093 echo "${ECHO_T}mkdir -p" >&6; }
48094     fi
48095
48096
48097     LDFLAGS_GUI=
48098     case ${BAKEFILE_HOST} in
48099         *-*-cygwin* | *-*-mingw32* )
48100         LDFLAGS_GUI="-mwindows"
48101     esac
48102
48103
48104     fi
48105
48106         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
48107 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
48108 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48109   echo $ECHO_N "(cached) $ECHO_C" >&6
48110 else
48111
48112         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48113                 egrep -s GNU > /dev/null); then
48114             bakefile_cv_prog_makeisgnu="yes"
48115         else
48116             bakefile_cv_prog_makeisgnu="no"
48117         fi
48118
48119 fi
48120 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48121 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
48122
48123     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48124         IF_GNU_MAKE=""
48125     else
48126         IF_GNU_MAKE="#"
48127     fi
48128
48129
48130
48131     PLATFORM_UNIX=0
48132     PLATFORM_WIN32=0
48133     PLATFORM_MSDOS=0
48134     PLATFORM_MAC=0
48135     PLATFORM_MACOS=0
48136     PLATFORM_MACOSX=0
48137     PLATFORM_OS2=0
48138     PLATFORM_BEOS=0
48139
48140     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48141         case "${BAKEFILE_HOST}" in
48142             *-*-mingw32* )
48143                 PLATFORM_WIN32=1
48144             ;;
48145             *-pc-msdosdjgpp )
48146                 PLATFORM_MSDOS=1
48147             ;;
48148             *-pc-os2_emx | *-pc-os2-emx )
48149                 PLATFORM_OS2=1
48150             ;;
48151             *-*-darwin* )
48152                 PLATFORM_MAC=1
48153                 PLATFORM_MACOSX=1
48154             ;;
48155             *-*-beos* )
48156                 PLATFORM_BEOS=1
48157             ;;
48158             powerpc-apple-macos* )
48159                 PLATFORM_MAC=1
48160                 PLATFORM_MACOS=1
48161             ;;
48162             * )
48163                 PLATFORM_UNIX=1
48164             ;;
48165         esac
48166     else
48167         case "$BAKEFILE_FORCE_PLATFORM" in
48168             win32 )
48169                 PLATFORM_WIN32=1
48170             ;;
48171             msdos )
48172                 PLATFORM_MSDOS=1
48173             ;;
48174             os2 )
48175                 PLATFORM_OS2=1
48176             ;;
48177             darwin )
48178                 PLATFORM_MAC=1
48179                 PLATFORM_MACOSX=1
48180             ;;
48181             unix )
48182                 PLATFORM_UNIX=1
48183             ;;
48184             beos )
48185                 PLATFORM_BEOS=1
48186             ;;
48187             * )
48188                                             ;;
48189         esac
48190     fi
48191
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202     # Check whether --enable-omf was given.
48203 if test "${enable_omf+set}" = set; then
48204   enableval=$enable_omf; bk_os2_use_omf="$enableval"
48205 fi
48206
48207
48208     case "${BAKEFILE_HOST}" in
48209       *-*-darwin* )
48210                         if test "x$GCC" = "xyes"; then
48211             CFLAGS="$CFLAGS -fno-common"
48212             CXXFLAGS="$CXXFLAGS -fno-common"
48213         fi
48214         if test "x$XLCC" = "xyes"; then
48215             CFLAGS="$CFLAGS -qnocommon"
48216             CXXFLAGS="$CXXFLAGS -qnocommon"
48217         fi
48218         ;;
48219
48220       *-pc-os2_emx | *-pc-os2-emx )
48221         if test "x$bk_os2_use_omf" = "xyes" ; then
48222             AR=emxomfar
48223             RANLIB=:
48224             LDFLAGS="-Zomf $LDFLAGS"
48225             CFLAGS="-Zomf $CFLAGS"
48226             CXXFLAGS="-Zomf $CXXFLAGS"
48227             OS2_LIBEXT="lib"
48228         else
48229             OS2_LIBEXT="a"
48230         fi
48231         ;;
48232
48233       i*86-*-beos* )
48234         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48235         ;;
48236     esac
48237
48238
48239     SO_SUFFIX="so"
48240     SO_SUFFIX_MODULE="so"
48241     EXEEXT=""
48242     LIBPREFIX="lib"
48243     LIBEXT=".a"
48244     DLLPREFIX="lib"
48245     DLLPREFIX_MODULE=""
48246     DLLIMP_SUFFIX=""
48247     dlldir="$libdir"
48248
48249     case "${BAKEFILE_HOST}" in
48250                         ia64-hp-hpux* )
48251         ;;
48252         *-hp-hpux* )
48253             SO_SUFFIX="sl"
48254             SO_SUFFIX_MODULE="sl"
48255         ;;
48256         *-*-aix* )
48257                                                                         SO_SUFFIX="a"
48258             SO_SUFFIX_MODULE="a"
48259         ;;
48260         *-*-cygwin* )
48261             SO_SUFFIX="dll"
48262             SO_SUFFIX_MODULE="dll"
48263             DLLIMP_SUFFIX="dll.a"
48264             EXEEXT=".exe"
48265             DLLPREFIX="cyg"
48266             dlldir="$bindir"
48267         ;;
48268         *-*-mingw32* )
48269             SO_SUFFIX="dll"
48270             SO_SUFFIX_MODULE="dll"
48271             DLLIMP_SUFFIX="dll.a"
48272             EXEEXT=".exe"
48273             DLLPREFIX=""
48274             dlldir="$bindir"
48275         ;;
48276         *-pc-msdosdjgpp )
48277             EXEEXT=".exe"
48278             DLLPREFIX=""
48279             dlldir="$bindir"
48280         ;;
48281         *-pc-os2_emx | *-pc-os2-emx )
48282             SO_SUFFIX="dll"
48283             SO_SUFFIX_MODULE="dll"
48284             DLLIMP_SUFFIX=$OS2_LIBEXT
48285             EXEEXT=".exe"
48286             DLLPREFIX=""
48287             LIBPREFIX=""
48288             LIBEXT=".$OS2_LIBEXT"
48289             dlldir="$bindir"
48290         ;;
48291         *-*-darwin* )
48292             SO_SUFFIX="dylib"
48293             SO_SUFFIX_MODULE="bundle"
48294         ;;
48295     esac
48296
48297     if test "x$DLLIMP_SUFFIX" = "x" ; then
48298         DLLIMP_SUFFIX="$SO_SUFFIX"
48299     fi
48300
48301
48302
48303
48304
48305
48306
48307
48308
48309
48310
48311
48312         PIC_FLAG=""
48313     if test "x$GCC" = "xyes"; then
48314                 PIC_FLAG="-fPIC"
48315     fi
48316
48317         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48318     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48319     WINDOWS_IMPLIB=0
48320
48321     case "${BAKEFILE_HOST}" in
48322       *-hp-hpux* )
48323                 if test "x$GCC" != "xyes"; then
48324                         LDFLAGS="$LDFLAGS -L/usr/lib"
48325
48326             SHARED_LD_CC="${CC} -b -o"
48327             SHARED_LD_CXX="${CXX} -b -o"
48328             PIC_FLAG="+Z"
48329         fi
48330       ;;
48331
48332       *-*-linux* )
48333                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48334             PIC_FLAG="-KPIC"
48335         elif test "x$SUNCXX" = "xyes"; then
48336             SHARED_LD_CC="${CC} -G -o"
48337             SHARED_LD_CXX="${CXX} -G -o"
48338             PIC_FLAG="-KPIC"
48339         fi
48340       ;;
48341
48342       *-*-solaris2* )
48343         if test "x$SUNCXX" = xyes ; then
48344             SHARED_LD_CC="${CC} -G -o"
48345             SHARED_LD_CXX="${CXX} -G -o"
48346             PIC_FLAG="-KPIC"
48347         fi
48348       ;;
48349
48350       *-*-darwin* )
48351
48352 D='$'
48353 cat <<EOF >shared-ld-sh
48354 #!/bin/sh
48355 #-----------------------------------------------------------------------------
48356 #-- Name:        distrib/mac/shared-ld-sh
48357 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48358 #-- Author:      Gilles Depeyrot
48359 #-- Copyright:   (c) 2002 Gilles Depeyrot
48360 #-- Licence:     any use permitted
48361 #-----------------------------------------------------------------------------
48362
48363 verbose=0
48364 args=""
48365 objects=""
48366 linking_flag="-dynamiclib"
48367 ldargs="-r -keep_private_externs -nostdlib"
48368
48369 if test "x${D}CXX" = "x"; then
48370     CXX="c++"
48371 fi
48372
48373 while test ${D}# -gt 0; do
48374     case ${D}1 in
48375
48376        -v)
48377         verbose=1
48378         ;;
48379
48380        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48381         # collect these options and values
48382         args="${D}{args} ${D}1 ${D}2"
48383         shift
48384         ;;
48385
48386        -arch|-isysroot)
48387         # collect these options and values
48388         ldargs="${D}{ldargs} ${D}1 ${D}2"
48389         shift
48390         ;;
48391
48392        -s|-Wl,*)
48393         # collect these load args
48394         ldargs="${D}{ldargs} ${D}1"
48395         ;;
48396
48397        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48398         # collect these options
48399         args="${D}{args} ${D}1"
48400         ;;
48401
48402        -dynamiclib|-bundle)
48403         linking_flag="${D}1"
48404         ;;
48405
48406        -*)
48407         echo "shared-ld: unhandled option '${D}1'"
48408         exit 1
48409         ;;
48410
48411         *.o | *.a | *.dylib)
48412         # collect object files
48413         objects="${D}{objects} ${D}1"
48414         ;;
48415
48416         *)
48417         echo "shared-ld: unhandled argument '${D}1'"
48418         exit 1
48419         ;;
48420
48421     esac
48422     shift
48423 done
48424
48425 status=0
48426
48427 #
48428 # Link one module containing all the others
48429 #
48430 if test ${D}{verbose} = 1; then
48431     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48432 fi
48433 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48434 status=${D}?
48435
48436 #
48437 # Link the shared library from the single module created, but only if the
48438 # previous command didn't fail:
48439 #
48440 if test ${D}{status} = 0; then
48441     if test ${D}{verbose} = 1; then
48442         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48443     fi
48444     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48445     status=${D}?
48446 fi
48447
48448 #
48449 # Remove intermediate module
48450 #
48451 rm -f master.${D}${D}.o
48452
48453 exit ${D}status
48454 EOF
48455
48456         chmod +x shared-ld-sh
48457
48458         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48459         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48460
48461
48462                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48463 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48464 if test "${bakefile_cv_gcc31+set}" = set; then
48465   echo $ECHO_N "(cached) $ECHO_C" >&6
48466 else
48467
48468            cat >conftest.$ac_ext <<_ACEOF
48469 /* confdefs.h.  */
48470 _ACEOF
48471 cat confdefs.h >>conftest.$ac_ext
48472 cat >>conftest.$ac_ext <<_ACEOF
48473 /* end confdefs.h.  */
48474
48475 int
48476 main ()
48477 {
48478
48479                    #if (__GNUC__ < 3) || \
48480                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48481                        This is old gcc
48482                    #endif
48483
48484   ;
48485   return 0;
48486 }
48487 _ACEOF
48488 rm -f conftest.$ac_objext
48489 if { (ac_try="$ac_compile"
48490 case "(($ac_try" in
48491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48492   *) ac_try_echo=$ac_try;;
48493 esac
48494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48495   (eval "$ac_compile") 2>conftest.er1
48496   ac_status=$?
48497   grep -v '^ *+' conftest.er1 >conftest.err
48498   rm -f conftest.er1
48499   cat conftest.err >&5
48500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48501   (exit $ac_status); } && {
48502          test -z "$ac_c_werror_flag" ||
48503          test ! -s conftest.err
48504        } && test -s conftest.$ac_objext; then
48505
48506                    bakefile_cv_gcc31=yes
48507
48508 else
48509   echo "$as_me: failed program was:" >&5
48510 sed 's/^/| /' conftest.$ac_ext >&5
48511
48512
48513                    bakefile_cv_gcc31=no
48514
48515
48516 fi
48517
48518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48519
48520 fi
48521 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48522 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48523         if test "$bakefile_cv_gcc31" = "no"; then
48524                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48525             SHARED_LD_CXX="$SHARED_LD_CC"
48526         else
48527                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48528             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48529         fi
48530
48531         if test "x$GCC" == "xyes"; then
48532             PIC_FLAG="-dynamic -fPIC"
48533         fi
48534         if test "x$XLCC" = "xyes"; then
48535             PIC_FLAG="-dynamic -DPIC"
48536         fi
48537       ;;
48538
48539       *-*-aix* )
48540         if test "x$GCC" = "xyes"; then
48541                                                             PIC_FLAG=""
48542
48543                                                                                     case "${BAKEFILE_HOST}" in
48544                 *-*-aix5* )
48545                     LD_EXPFULL="-Wl,-bexpfull"
48546                     ;;
48547             esac
48548
48549             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48550             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48551         else
48552                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48553 set dummy makeC++SharedLib; ac_word=$2
48554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48556 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48557   echo $ECHO_N "(cached) $ECHO_C" >&6
48558 else
48559   if test -n "$AIX_CXX_LD"; then
48560   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48561 else
48562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48563 for as_dir in $PATH
48564 do
48565   IFS=$as_save_IFS
48566   test -z "$as_dir" && as_dir=.
48567   for ac_exec_ext in '' $ac_executable_extensions; do
48568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48569     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48571     break 2
48572   fi
48573 done
48574 done
48575 IFS=$as_save_IFS
48576
48577   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48578 fi
48579 fi
48580 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48581 if test -n "$AIX_CXX_LD"; then
48582   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48583 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48584 else
48585   { echo "$as_me:$LINENO: result: no" >&5
48586 echo "${ECHO_T}no" >&6; }
48587 fi
48588
48589
48590             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48591             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48592         fi
48593       ;;
48594
48595       *-*-beos* )
48596                         SHARED_LD_CC="${LD} -nostart -o"
48597         SHARED_LD_CXX="${LD} -nostart -o"
48598       ;;
48599
48600       *-*-irix* )
48601                 if test "x$GCC" != "xyes"; then
48602             PIC_FLAG="-KPIC"
48603         fi
48604       ;;
48605
48606       *-*-cygwin* | *-*-mingw32* )
48607         PIC_FLAG=""
48608         SHARED_LD_CC="\$(CC) -shared -o"
48609         SHARED_LD_CXX="\$(CXX) -shared -o"
48610         WINDOWS_IMPLIB=1
48611       ;;
48612
48613       *-pc-os2_emx | *-pc-os2-emx )
48614         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48615         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48616         PIC_FLAG=""
48617
48618 D='$'
48619 cat <<EOF >dllar.sh
48620 #!/bin/sh
48621 #
48622 # dllar - a tool to build both a .dll and an .a file
48623 # from a set of object (.o) files for EMX/OS2.
48624 #
48625 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48626 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48627 #
48628 #  This script will accept a set of files on the command line.
48629 #  All the public symbols from the .o files will be exported into
48630 #  a .DEF file, then linker will be run (through gcc) against them to
48631 #  build a shared library consisting of all given .o files. All libraries
48632 #  (.a) will be first decompressed into component .o files then act as
48633 #  described above. You can optionally give a description (-d "description")
48634 #  which will be put into .DLL. To see the list of accepted options (as well
48635 #  as command-line format) simply run this program without options. The .DLL
48636 #  is built to be imported by name (there is no guarantee that new versions
48637 #  of the library you build will have same ordinals for same symbols).
48638 #
48639 #  dllar is free software; you can redistribute it and/or modify
48640 #  it under the terms of the GNU General Public License as published by
48641 #  the Free Software Foundation; either version 2, or (at your option)
48642 #  any later version.
48643 #
48644 #  dllar is distributed in the hope that it will be useful,
48645 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48646 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48647 #  GNU General Public License for more details.
48648 #
48649 #  You should have received a copy of the GNU General Public License
48650 #  along with dllar; see the file COPYING.  If not, write to the Free
48651 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48652 #  02111-1307, USA.
48653
48654 # To successfuly run this program you will need:
48655 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48656 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48657 #  - gcc
48658 #    (used to build the .dll)
48659 #  - emxexp
48660 #    (used to create .def file from .o files)
48661 #  - emximp
48662 #    (used to create .a file from .def file)
48663 #  - GNU text utilites (cat, sort, uniq)
48664 #    used to process emxexp output
48665 #  - GNU file utilities (mv, rm)
48666 #  - GNU sed
48667 #  - lxlite (optional, see flag below)
48668 #    (used for general .dll cleanup)
48669 #
48670
48671 flag_USE_LXLITE=1;
48672
48673 #
48674 # helper functions
48675 # basnam, variant of basename, which does _not_ remove the path, _iff_
48676 #                              second argument (suffix to remove) is given
48677 basnam(){
48678     case ${D}# in
48679     1)
48680         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48681         ;;
48682     2)
48683         echo ${D}1 | sed 's/'${D}2'${D}//'
48684         ;;
48685     *)
48686         echo "error in basnam ${D}*"
48687         exit 8
48688         ;;
48689     esac
48690 }
48691
48692 # Cleanup temporary files and output
48693 CleanUp() {
48694     cd ${D}curDir
48695     for i in ${D}inputFiles ; do
48696         case ${D}i in
48697         *!)
48698             rm -rf \`basnam ${D}i !\`
48699             ;;
48700         *)
48701             ;;
48702         esac
48703     done
48704
48705     # Kill result in case of failure as there is just to many stupid make/nmake
48706     # things out there which doesn't do this.
48707     if [ ${D}# -eq 0 ]; then
48708         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48709     fi
48710 }
48711
48712 # Print usage and exit script with rc=1.
48713 PrintHelp() {
48714  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48715  echo '       [-name-mangler-script script.sh]'
48716  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48717  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48718  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48719  echo '       [*.o] [*.a]'
48720  echo '*> "output_file" should have no extension.'
48721  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48722  echo '   The import library name is derived from this and is set to "name".a,'
48723  echo '   unless overridden by -import'
48724  echo '*> "importlib_name" should have no extension.'
48725  echo '   If it has the .o, or .a extension, it is automatically removed.'
48726  echo '   This name is used as the import library name and may be longer and'
48727  echo '   more descriptive than the DLL name which has to follow the old '
48728  echo '   8.3 convention of FAT.'
48729  echo '*> "script.sh may be given to override the output_file name by a'
48730  echo '   different name. It is mainly useful if the regular make process'
48731  echo '   of some package does not take into account OS/2 restriction of'
48732  echo '   DLL name lengths. It takes the importlib name as input and is'
48733  echo '   supposed to procude a shorter name as output. The script should'
48734  echo '   expect to get importlib_name without extension and should produce'
48735  echo '   a (max.) 8 letter name without extension.'
48736  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48737  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48738  echo '   These flags will be put at the start of GCC command line.'
48739  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48740  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48741  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48742  echo '   If the last character of a symbol is "*", all symbols beginning'
48743  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48744  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48745  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48746  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48747  echo '   C runtime DLLs.'
48748  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48749  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48750  echo '   unchanged to GCC at the end of command line.'
48751  echo '*> If you create a DLL from a library and you do not specify -o,'
48752  echo '   the basename for DLL and import library will be set to library name,'
48753  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48754  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48755  echo '   library will be renamed into gcc_s.a.'
48756  echo '--------'
48757  echo 'Example:'
48758  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48759  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48760  CleanUp
48761  exit 1
48762 }
48763
48764 # Execute a command.
48765 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48766 # @Uses    Whatever CleanUp() uses.
48767 doCommand() {
48768     echo "${D}*"
48769     eval ${D}*
48770     rcCmd=${D}?
48771
48772     if [ ${D}rcCmd -ne 0 ]; then
48773         echo "command failed, exit code="${D}rcCmd
48774         CleanUp
48775         exit ${D}rcCmd
48776     fi
48777 }
48778
48779 # main routine
48780 # setup globals
48781 cmdLine=${D}*
48782 outFile=""
48783 outimpFile=""
48784 inputFiles=""
48785 renameScript=""
48786 description=""
48787 CC=gcc.exe
48788 CFLAGS="-s -Zcrtdll"
48789 EXTRA_CFLAGS=""
48790 EXPORT_BY_ORDINALS=0
48791 exclude_symbols=""
48792 library_flags=""
48793 curDir=\`pwd\`
48794 curDirS=curDir
48795 case ${D}curDirS in
48796 */)
48797   ;;
48798 *)
48799   curDirS=${D}{curDirS}"/"
48800   ;;
48801 esac
48802 # Parse commandline
48803 libsToLink=0
48804 omfLinking=0
48805 while [ ${D}1 ]; do
48806     case ${D}1 in
48807     -ord*)
48808         EXPORT_BY_ORDINALS=1;
48809         ;;
48810     -o*)
48811         shift
48812         outFile=${D}1
48813         ;;
48814     -i*)
48815         shift
48816         outimpFile=${D}1
48817         ;;
48818     -name-mangler-script)
48819         shift
48820         renameScript=${D}1
48821         ;;
48822     -d*)
48823         shift
48824         description=${D}1
48825         ;;
48826     -f*)
48827         shift
48828         CFLAGS=${D}1
48829         ;;
48830     -c*)
48831         shift
48832         CC=${D}1
48833         ;;
48834     -h*)
48835         PrintHelp
48836         ;;
48837     -ex*)
48838         shift
48839         exclude_symbols=${D}{exclude_symbols}${D}1" "
48840         ;;
48841     -libf*)
48842         shift
48843         library_flags=${D}{library_flags}${D}1" "
48844         ;;
48845     -nocrt*)
48846         CFLAGS="-s"
48847         ;;
48848     -nolxl*)
48849         flag_USE_LXLITE=0
48850         ;;
48851     -* | /*)
48852         case ${D}1 in
48853         -L* | -l*)
48854             libsToLink=1
48855             ;;
48856         -Zomf)
48857             omfLinking=1
48858             ;;
48859         *)
48860             ;;
48861         esac
48862         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48863         ;;
48864     *.dll)
48865         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48866         if [ ${D}omfLinking -eq 1 ]; then
48867             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48868         else
48869             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48870         fi
48871         ;;
48872     *)
48873         found=0;
48874         if [ ${D}libsToLink -ne 0 ]; then
48875             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48876         else
48877             for file in ${D}1 ; do
48878                 if [ -f ${D}file ]; then
48879                     inputFiles="${D}{inputFiles} ${D}file"
48880                     found=1
48881                 fi
48882             done
48883             if [ ${D}found -eq 0 ]; then
48884                 echo "ERROR: No file(s) found: "${D}1
48885                 exit 8
48886             fi
48887         fi
48888       ;;
48889     esac
48890     shift
48891 done # iterate cmdline words
48892
48893 #
48894 if [ -z "${D}inputFiles" ]; then
48895     echo "dllar: no input files"
48896     PrintHelp
48897 fi
48898
48899 # Now extract all .o files from .a files
48900 newInputFiles=""
48901 for file in ${D}inputFiles ; do
48902     case ${D}file in
48903     *.a | *.lib)
48904         case ${D}file in
48905         *.a)
48906             suffix=".a"
48907             AR="ar"
48908             ;;
48909         *.lib)
48910             suffix=".lib"
48911             AR="emxomfar"
48912             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48913             ;;
48914         *)
48915             ;;
48916         esac
48917         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48918         mkdir ${D}dirname
48919         if [ ${D}? -ne 0 ]; then
48920             echo "Failed to create subdirectory ./${D}dirname"
48921             CleanUp
48922             exit 8;
48923         fi
48924         # Append '!' to indicate archive
48925         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48926         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48927         cd ${D}curDir
48928         found=0;
48929         for subfile in ${D}dirname/*.o* ; do
48930             if [ -f ${D}subfile ]; then
48931                 found=1
48932                 if [ -s ${D}subfile ]; then
48933                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48934                     newInputFiles="${D}newInputFiles ${D}subfile"
48935                 fi
48936             fi
48937         done
48938         if [ ${D}found -eq 0 ]; then
48939             echo "WARNING: there are no files in archive \\'${D}file\\'"
48940         fi
48941         ;;
48942     *)
48943         newInputFiles="${D}{newInputFiles} ${D}file"
48944         ;;
48945     esac
48946 done
48947 inputFiles="${D}newInputFiles"
48948
48949 # Output filename(s).
48950 do_backup=0;
48951 if [ -z ${D}outFile ]; then
48952     do_backup=1;
48953     set outFile ${D}inputFiles; outFile=${D}2
48954 fi
48955
48956 # If it is an archive, remove the '!' and the '_%' suffixes
48957 case ${D}outFile in
48958 *_%!)
48959     outFile=\`basnam ${D}outFile _%!\`
48960     ;;
48961 *)
48962     ;;
48963 esac
48964 case ${D}outFile in
48965 *.dll)
48966     outFile=\`basnam ${D}outFile .dll\`
48967     ;;
48968 *.DLL)
48969     outFile=\`basnam ${D}outFile .DLL\`
48970     ;;
48971 *.o)
48972     outFile=\`basnam ${D}outFile .o\`
48973     ;;
48974 *.obj)
48975     outFile=\`basnam ${D}outFile .obj\`
48976     ;;
48977 *.a)
48978     outFile=\`basnam ${D}outFile .a\`
48979     ;;
48980 *.lib)
48981     outFile=\`basnam ${D}outFile .lib\`
48982     ;;
48983 *)
48984     ;;
48985 esac
48986 case ${D}outimpFile in
48987 *.a)
48988     outimpFile=\`basnam ${D}outimpFile .a\`
48989     ;;
48990 *.lib)
48991     outimpFile=\`basnam ${D}outimpFile .lib\`
48992     ;;
48993 *)
48994     ;;
48995 esac
48996 if [ -z ${D}outimpFile ]; then
48997     outimpFile=${D}outFile
48998 fi
48999 defFile="${D}{outFile}.def"
49000 arcFile="${D}{outimpFile}.a"
49001 arcFile2="${D}{outimpFile}.lib"
49002
49003 #create ${D}dllFile as something matching 8.3 restrictions,
49004 if [ -z ${D}renameScript ] ; then
49005     dllFile="${D}outFile"
49006 else
49007     dllFile=\`${D}renameScript ${D}outimpFile\`
49008 fi
49009
49010 if [ ${D}do_backup -ne 0 ] ; then
49011     if [ -f ${D}arcFile ] ; then
49012         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49013     fi
49014     if [ -f ${D}arcFile2 ] ; then
49015         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49016     fi
49017 fi
49018
49019 # Extract public symbols from all the object files.
49020 tmpdefFile=${D}{defFile}_%
49021 rm -f ${D}tmpdefFile
49022 for file in ${D}inputFiles ; do
49023     case ${D}file in
49024     *!)
49025         ;;
49026     *)
49027         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49028         ;;
49029     esac
49030 done
49031
49032 # Create the def file.
49033 rm -f ${D}defFile
49034 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49035 dllFile="${D}{dllFile}.dll"
49036 if [ ! -z ${D}description ]; then
49037     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49038 fi
49039 echo "EXPORTS" >> ${D}defFile
49040
49041 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49042 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49043
49044 # Checks if the export is ok or not.
49045 for word in ${D}exclude_symbols; do
49046     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49047     mv ${D}{tmpdefFile}% ${D}tmpdefFile
49048 done
49049
49050
49051 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49052     sed "=" < ${D}tmpdefFile | \\
49053     sed '
49054       N
49055       : loop
49056       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49057       t loop
49058     ' > ${D}{tmpdefFile}%
49059     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49060 else
49061     rm -f ${D}{tmpdefFile}%
49062 fi
49063 cat ${D}tmpdefFile >> ${D}defFile
49064 rm -f ${D}tmpdefFile
49065
49066 # Do linking, create implib, and apply lxlite.
49067 gccCmdl="";
49068 for file in ${D}inputFiles ; do
49069     case ${D}file in
49070     *!)
49071         ;;
49072     *)
49073         gccCmdl="${D}gccCmdl ${D}file"
49074         ;;
49075     esac
49076 done
49077 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49078 touch "${D}{outFile}.dll"
49079
49080 doCommand "emximp -o ${D}arcFile ${D}defFile"
49081 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49082     add_flags="";
49083     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49084         add_flags="-ynd"
49085     fi
49086     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49087 fi
49088 doCommand "emxomf -s -l ${D}arcFile"
49089
49090 # Successful exit.
49091 CleanUp 1
49092 exit 0
49093 EOF
49094
49095         chmod +x dllar.sh
49096       ;;
49097
49098       powerpc-apple-macos* | \
49099       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49100       *-*-mirbsd* | \
49101       *-*-sunos4* | \
49102       *-*-osf* | \
49103       *-*-dgux5* | \
49104       *-*-sysv5* | \
49105       *-pc-msdosdjgpp )
49106               ;;
49107
49108       *)
49109         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49110 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49111    { (exit 1); exit 1; }; }
49112     esac
49113
49114     if test "x$PIC_FLAG" != "x" ; then
49115         PIC_FLAG="$PIC_FLAG -DPIC"
49116     fi
49117
49118     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49119         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49120     fi
49121     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49122         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49123     fi
49124
49125
49126
49127
49128
49129
49130
49131
49132
49133     USE_SOVERSION=0
49134     USE_SOVERLINUX=0
49135     USE_SOVERSOLARIS=0
49136     USE_SOVERCYGWIN=0
49137     USE_SOSYMLINKS=0
49138     USE_MACVERSION=0
49139     SONAME_FLAG=
49140
49141     case "${BAKEFILE_HOST}" in
49142       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49143       *-*-k*bsd*-gnu | *-*-mirbsd* )
49144         if test "x$SUNCXX" = "xyes"; then
49145             SONAME_FLAG="-h "
49146         else
49147             SONAME_FLAG="-Wl,-soname,"
49148         fi
49149         USE_SOVERSION=1
49150         USE_SOVERLINUX=1
49151         USE_SOSYMLINKS=1
49152       ;;
49153
49154       *-*-solaris2* )
49155         SONAME_FLAG="-h "
49156         USE_SOVERSION=1
49157         USE_SOVERSOLARIS=1
49158         USE_SOSYMLINKS=1
49159       ;;
49160
49161       *-*-darwin* )
49162         USE_MACVERSION=1
49163         USE_SOVERSION=1
49164         USE_SOSYMLINKS=1
49165       ;;
49166
49167       *-*-cygwin* )
49168         USE_SOVERSION=1
49169         USE_SOVERCYGWIN=1
49170       ;;
49171     esac
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182     # Check whether --enable-dependency-tracking was given.
49183 if test "${enable_dependency_tracking+set}" = set; then
49184   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
49185 fi
49186
49187
49188     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49189 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
49190
49191     BK_DEPS=""
49192     if test "x$bk_use_trackdeps" = "xno" ; then
49193         DEPS_TRACKING=0
49194         { echo "$as_me:$LINENO: result: disabled" >&5
49195 echo "${ECHO_T}disabled" >&6; }
49196     else
49197         DEPS_TRACKING=1
49198
49199         if test "x$GCC" = "xyes"; then
49200             DEPSMODE=gcc
49201             case "${BAKEFILE_HOST}" in
49202                 *-*-darwin* )
49203                                                             DEPSFLAG="-no-cpp-precomp -MMD"
49204                 ;;
49205                 * )
49206                     DEPSFLAG="-MMD"
49207                 ;;
49208             esac
49209             { echo "$as_me:$LINENO: result: gcc" >&5
49210 echo "${ECHO_T}gcc" >&6; }
49211         elif test "x$MWCC" = "xyes"; then
49212             DEPSMODE=mwcc
49213             DEPSFLAG="-MM"
49214             { echo "$as_me:$LINENO: result: mwcc" >&5
49215 echo "${ECHO_T}mwcc" >&6; }
49216         elif test "x$SUNCC" = "xyes"; then
49217             DEPSMODE=unixcc
49218             DEPSFLAG="-xM1"
49219             { echo "$as_me:$LINENO: result: Sun cc" >&5
49220 echo "${ECHO_T}Sun cc" >&6; }
49221         elif test "x$SGICC" = "xyes"; then
49222             DEPSMODE=unixcc
49223             DEPSFLAG="-M"
49224             { echo "$as_me:$LINENO: result: SGI cc" >&5
49225 echo "${ECHO_T}SGI cc" >&6; }
49226         elif test "x$HPCC" = "xyes"; then
49227             DEPSMODE=unixcc
49228             DEPSFLAG="+make"
49229             { echo "$as_me:$LINENO: result: HP cc" >&5
49230 echo "${ECHO_T}HP cc" >&6; }
49231         elif test "x$COMPAQCC" = "xyes"; then
49232             DEPSMODE=gcc
49233             DEPSFLAG="-MD"
49234             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49235 echo "${ECHO_T}Compaq cc" >&6; }
49236         else
49237             DEPS_TRACKING=0
49238             { echo "$as_me:$LINENO: result: none" >&5
49239 echo "${ECHO_T}none" >&6; }
49240         fi
49241
49242         if test $DEPS_TRACKING = 1 ; then
49243
49244 D='$'
49245 cat <<EOF >bk-deps
49246 #!/bin/sh
49247
49248 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49249 # script. It is used to track C/C++ files dependencies in portable way.
49250 #
49251 # Permission is given to use this file in any way.
49252
49253 DEPSMODE=${DEPSMODE}
49254 DEPSFLAG="${DEPSFLAG}"
49255 DEPSDIRBASE=.deps
49256
49257 if test ${D}DEPSMODE = gcc ; then
49258     ${D}* ${D}{DEPSFLAG}
49259     status=${D}?
49260
49261     # determine location of created files:
49262     while test ${D}# -gt 0; do
49263         case "${D}1" in
49264             -o )
49265                 shift
49266                 objfile=${D}1
49267             ;;
49268             -* )
49269             ;;
49270             * )
49271                 srcfile=${D}1
49272             ;;
49273         esac
49274         shift
49275     done
49276     objfilebase=\`basename ${D}objfile\`
49277     builddir=\`dirname ${D}objfile\`
49278     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49279     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49280     depsdir=${D}builddir/${D}DEPSDIRBASE
49281     mkdir -p ${D}depsdir
49282
49283     # if the compiler failed, we're done:
49284     if test ${D}{status} != 0 ; then
49285         rm -f ${D}depfile
49286         exit ${D}{status}
49287     fi
49288
49289     # move created file to the location we want it in:
49290     if test -f ${D}depfile ; then
49291         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49292         rm -f ${D}depfile
49293     else
49294         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49295         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49296         if test ! -f ${D}depfile ; then
49297             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49298             depfile="${D}objfile.d"
49299         fi
49300         if test -f ${D}depfile ; then
49301             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49302             rm -f ${D}depfile
49303         fi
49304     fi
49305     exit 0
49306
49307 elif test ${D}DEPSMODE = mwcc ; then
49308     ${D}* || exit ${D}?
49309     # Run mwcc again with -MM and redirect into the dep file we want
49310     # NOTE: We can't use shift here because we need ${D}* to be valid
49311     prevarg=
49312     for arg in ${D}* ; do
49313         if test "${D}prevarg" = "-o"; then
49314             objfile=${D}arg
49315         else
49316             case "${D}arg" in
49317                 -* )
49318                 ;;
49319                 * )
49320                     srcfile=${D}arg
49321                 ;;
49322             esac
49323         fi
49324         prevarg="${D}arg"
49325     done
49326
49327     objfilebase=\`basename ${D}objfile\`
49328     builddir=\`dirname ${D}objfile\`
49329     depsdir=${D}builddir/${D}DEPSDIRBASE
49330     mkdir -p ${D}depsdir
49331
49332     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49333     exit 0
49334
49335 elif test ${D}DEPSMODE = unixcc; then
49336     ${D}* || exit ${D}?
49337     # Run compiler again with deps flag and redirect into the dep file.
49338     # It doesn't work if the '-o FILE' option is used, but without it the
49339     # dependency file will contain the wrong name for the object. So it is
49340     # removed from the command line, and the dep file is fixed with sed.
49341     cmd=""
49342     while test ${D}# -gt 0; do
49343         case "${D}1" in
49344             -o )
49345                 shift
49346                 objfile=${D}1
49347             ;;
49348             * )
49349                 eval arg${D}#=\\${D}1
49350                 cmd="${D}cmd \\${D}arg${D}#"
49351             ;;
49352         esac
49353         shift
49354     done
49355
49356     objfilebase=\`basename ${D}objfile\`
49357     builddir=\`dirname ${D}objfile\`
49358     depsdir=${D}builddir/${D}DEPSDIRBASE
49359     mkdir -p ${D}depsdir
49360
49361     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49362     exit 0
49363
49364 else
49365     ${D}*
49366     exit ${D}?
49367 fi
49368 EOF
49369
49370             chmod +x bk-deps
49371                                     BK_DEPS="`pwd`/bk-deps"
49372         fi
49373     fi
49374
49375
49376
49377
49378
49379     case ${BAKEFILE_HOST} in
49380         *-*-cygwin* | *-*-mingw32* )
49381                         if test -n "$ac_tool_prefix"; then
49382   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49383 set dummy ${ac_tool_prefix}windres; ac_word=$2
49384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49386 if test "${ac_cv_prog_WINDRES+set}" = set; then
49387   echo $ECHO_N "(cached) $ECHO_C" >&6
49388 else
49389   if test -n "$WINDRES"; then
49390   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49391 else
49392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49393 for as_dir in $PATH
49394 do
49395   IFS=$as_save_IFS
49396   test -z "$as_dir" && as_dir=.
49397   for ac_exec_ext in '' $ac_executable_extensions; do
49398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49399     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49401     break 2
49402   fi
49403 done
49404 done
49405 IFS=$as_save_IFS
49406
49407 fi
49408 fi
49409 WINDRES=$ac_cv_prog_WINDRES
49410 if test -n "$WINDRES"; then
49411   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49412 echo "${ECHO_T}$WINDRES" >&6; }
49413 else
49414   { echo "$as_me:$LINENO: result: no" >&5
49415 echo "${ECHO_T}no" >&6; }
49416 fi
49417
49418
49419 fi
49420 if test -z "$ac_cv_prog_WINDRES"; then
49421   ac_ct_WINDRES=$WINDRES
49422   # Extract the first word of "windres", so it can be a program name with args.
49423 set dummy windres; ac_word=$2
49424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49426 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49427   echo $ECHO_N "(cached) $ECHO_C" >&6
49428 else
49429   if test -n "$ac_ct_WINDRES"; then
49430   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49431 else
49432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49433 for as_dir in $PATH
49434 do
49435   IFS=$as_save_IFS
49436   test -z "$as_dir" && as_dir=.
49437   for ac_exec_ext in '' $ac_executable_extensions; do
49438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49439     ac_cv_prog_ac_ct_WINDRES="windres"
49440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49441     break 2
49442   fi
49443 done
49444 done
49445 IFS=$as_save_IFS
49446
49447 fi
49448 fi
49449 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49450 if test -n "$ac_ct_WINDRES"; then
49451   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49452 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49453 else
49454   { echo "$as_me:$LINENO: result: no" >&5
49455 echo "${ECHO_T}no" >&6; }
49456 fi
49457
49458   if test "x$ac_ct_WINDRES" = x; then
49459     WINDRES=""
49460   else
49461     case $cross_compiling:$ac_tool_warned in
49462 yes:)
49463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49464 whose name does not start with the host triplet.  If you think this
49465 configuration is useful to you, please write to autoconf@gnu.org." >&5
49466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49467 whose name does not start with the host triplet.  If you think this
49468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49469 ac_tool_warned=yes ;;
49470 esac
49471     WINDRES=$ac_ct_WINDRES
49472   fi
49473 else
49474   WINDRES="$ac_cv_prog_WINDRES"
49475 fi
49476
49477          ;;
49478
49479       *-*-darwin* | powerpc-apple-macos* )
49480             # Extract the first word of "Rez", so it can be a program name with args.
49481 set dummy Rez; ac_word=$2
49482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49484 if test "${ac_cv_prog_REZ+set}" = set; then
49485   echo $ECHO_N "(cached) $ECHO_C" >&6
49486 else
49487   if test -n "$REZ"; then
49488   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49489 else
49490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49491 for as_dir in $PATH
49492 do
49493   IFS=$as_save_IFS
49494   test -z "$as_dir" && as_dir=.
49495   for ac_exec_ext in '' $ac_executable_extensions; do
49496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49497     ac_cv_prog_REZ="Rez"
49498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49499     break 2
49500   fi
49501 done
49502 done
49503 IFS=$as_save_IFS
49504
49505   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49506 fi
49507 fi
49508 REZ=$ac_cv_prog_REZ
49509 if test -n "$REZ"; then
49510   { echo "$as_me:$LINENO: result: $REZ" >&5
49511 echo "${ECHO_T}$REZ" >&6; }
49512 else
49513   { echo "$as_me:$LINENO: result: no" >&5
49514 echo "${ECHO_T}no" >&6; }
49515 fi
49516
49517
49518             # Extract the first word of "SetFile", so it can be a program name with args.
49519 set dummy SetFile; ac_word=$2
49520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49522 if test "${ac_cv_prog_SETFILE+set}" = set; then
49523   echo $ECHO_N "(cached) $ECHO_C" >&6
49524 else
49525   if test -n "$SETFILE"; then
49526   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49527 else
49528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49529 for as_dir in $PATH
49530 do
49531   IFS=$as_save_IFS
49532   test -z "$as_dir" && as_dir=.
49533   for ac_exec_ext in '' $ac_executable_extensions; do
49534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49535     ac_cv_prog_SETFILE="SetFile"
49536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49537     break 2
49538   fi
49539 done
49540 done
49541 IFS=$as_save_IFS
49542
49543   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49544 fi
49545 fi
49546 SETFILE=$ac_cv_prog_SETFILE
49547 if test -n "$SETFILE"; then
49548   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49549 echo "${ECHO_T}$SETFILE" >&6; }
49550 else
49551   { echo "$as_me:$LINENO: result: no" >&5
49552 echo "${ECHO_T}no" >&6; }
49553 fi
49554
49555
49556         ;;
49557     esac
49558
49559
49560
49561
49562
49563
49564
49565
49566
49567     BAKEFILE_BAKEFILE_M4_VERSION="0.2.5"
49568
49569
49570 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.5"
49571
49572
49573
49574     # Check whether --enable-precomp-headers was given.
49575 if test "${enable_precomp_headers+set}" = set; then
49576   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49577 fi
49578
49579
49580     GCC_PCH=0
49581     ICC_PCH=0
49582     USE_PCH=0
49583     BK_MAKE_PCH=""
49584
49585     case ${BAKEFILE_HOST} in
49586         *-*-cygwin* )
49587                                                 bk_use_pch="no"
49588             ;;
49589     esac
49590
49591     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49592         if test "x$GCC" = "xyes"; then
49593                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49594 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49595             cat >conftest.$ac_ext <<_ACEOF
49596 /* confdefs.h.  */
49597 _ACEOF
49598 cat confdefs.h >>conftest.$ac_ext
49599 cat >>conftest.$ac_ext <<_ACEOF
49600 /* end confdefs.h.  */
49601
49602 int
49603 main ()
49604 {
49605
49606                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49607                         There is no PCH support
49608                     #endif
49609                     #if (__GNUC__ < 3)
49610                         There is no PCH support
49611                     #endif
49612                     #if (__GNUC__ == 3) && \
49613                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49614                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49615                        ( defined(__INTEL_COMPILER) )
49616                         There is no PCH support
49617                     #endif
49618
49619   ;
49620   return 0;
49621 }
49622 _ACEOF
49623 rm -f conftest.$ac_objext
49624 if { (ac_try="$ac_compile"
49625 case "(($ac_try" in
49626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49627   *) ac_try_echo=$ac_try;;
49628 esac
49629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49630   (eval "$ac_compile") 2>conftest.er1
49631   ac_status=$?
49632   grep -v '^ *+' conftest.er1 >conftest.err
49633   rm -f conftest.er1
49634   cat conftest.err >&5
49635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49636   (exit $ac_status); } && {
49637          test -z "$ac_c_werror_flag" ||
49638          test ! -s conftest.err
49639        } && test -s conftest.$ac_objext; then
49640
49641                     { echo "$as_me:$LINENO: result: yes" >&5
49642 echo "${ECHO_T}yes" >&6; }
49643                     GCC_PCH=1
49644
49645 else
49646   echo "$as_me: failed program was:" >&5
49647 sed 's/^/| /' conftest.$ac_ext >&5
49648
49649
49650                     if test "$INTELCXX8" = "yes"; then
49651                         { echo "$as_me:$LINENO: result: yes" >&5
49652 echo "${ECHO_T}yes" >&6; }
49653                         ICC_PCH=1
49654                         if test "$INTELCXX10" = "yes"; then
49655                             ICC_PCH_CREATE_SWITCH="-pch-create"
49656                             ICC_PCH_USE_SWITCH="-pch-use"
49657                         else
49658                             ICC_PCH_CREATE_SWITCH="-create-pch"
49659                             ICC_PCH_USE_SWITCH="-use-pch"
49660                         fi
49661                     else
49662                         { echo "$as_me:$LINENO: result: no" >&5
49663 echo "${ECHO_T}no" >&6; }
49664                     fi
49665
49666 fi
49667
49668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49669             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49670                 USE_PCH=1
49671
49672 D='$'
49673 cat <<EOF >bk-make-pch
49674 #!/bin/sh
49675
49676 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49677 # script. It is used to generated precompiled headers.
49678 #
49679 # Permission is given to use this file in any way.
49680
49681 outfile="${D}{1}"
49682 header="${D}{2}"
49683 shift
49684 shift
49685
49686 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49687
49688 compiler=""
49689 headerfile=""
49690
49691 while test ${D}{#} -gt 0; do
49692     add_to_cmdline=1
49693     case "${D}{1}" in
49694         -I* )
49695             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49696             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49697                 headerfile="${D}{incdir}/${D}{header}"
49698             fi
49699         ;;
49700         -use-pch|-use_pch|-pch-use )
49701             shift
49702             add_to_cmdline=0
49703         ;;
49704     esac
49705     if test ${D}add_to_cmdline = 1 ; then
49706         compiler="${D}{compiler} ${D}{1}"
49707     fi
49708     shift
49709 done
49710
49711 if test "x${D}{headerfile}" = "x" ; then
49712     echo "error: can't find header ${D}{header} in include paths" >&2
49713 else
49714     if test -f ${D}{outfile} ; then
49715         rm -f ${D}{outfile}
49716     else
49717         mkdir -p \`dirname ${D}{outfile}\`
49718     fi
49719     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49720     mkdir -p ${D}{builddir}/.deps
49721     if test "x${GCC_PCH}" = "x1" ; then
49722         # can do this because gcc is >= 3.4:
49723         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49724     elif test "x${ICC_PCH}" = "x1" ; then
49725         filename=pch_gen-${D}${D}
49726         file=${D}{filename}.c
49727         dfile=${D}{filename}.d
49728         cat > ${D}file <<EOT
49729 #include "${D}header"
49730 EOT
49731         # using -MF icc complains about differing command lines in creation/use
49732         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49733           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49734           rm -f ${D}file ${D}dfile ${D}{filename}.o
49735     fi
49736     exit ${D}{?}
49737 fi
49738 EOF
49739
49740                 chmod +x bk-make-pch
49741                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49742             fi
49743         fi
49744     fi
49745
49746
49747
49748
49749
49750
49751
49752     COND_BUILD_DEBUG="#"
49753     if test "x$BUILD" = "xdebug" ; then
49754         COND_BUILD_DEBUG=""
49755     fi
49756
49757     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49758     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49759         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49760     fi
49761
49762     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49763     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49764         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49765     fi
49766
49767     COND_BUILD_DEBUG_UNICODE_0="#"
49768     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49769         COND_BUILD_DEBUG_UNICODE_0=""
49770     fi
49771
49772     COND_BUILD_DEBUG_UNICODE_1="#"
49773     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49774         COND_BUILD_DEBUG_UNICODE_1=""
49775     fi
49776
49777     COND_BUILD_RELEASE="#"
49778     if test "x$BUILD" = "xrelease" ; then
49779         COND_BUILD_RELEASE=""
49780     fi
49781
49782     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49783     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49784         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49785     fi
49786
49787     COND_BUILD_RELEASE_UNICODE_0="#"
49788     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49789         COND_BUILD_RELEASE_UNICODE_0=""
49790     fi
49791
49792     COND_BUILD_RELEASE_UNICODE_1="#"
49793     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49794         COND_BUILD_RELEASE_UNICODE_1=""
49795     fi
49796
49797     COND_BUILD_debug="#"
49798     if test "x$BUILD" = "xdebug" ; then
49799         COND_BUILD_debug=""
49800     fi
49801
49802     COND_BUILD_debug_DEBUG_FLAG_default="#"
49803     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49804         COND_BUILD_debug_DEBUG_FLAG_default=""
49805     fi
49806
49807     COND_BUILD_debug_DEBUG_INFO_default="#"
49808     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49809         COND_BUILD_debug_DEBUG_INFO_default=""
49810     fi
49811
49812     COND_BUILD_debug_UNICODE_0="#"
49813     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49814         COND_BUILD_debug_UNICODE_0=""
49815     fi
49816
49817     COND_BUILD_debug_UNICODE_1="#"
49818     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49819         COND_BUILD_debug_UNICODE_1=""
49820     fi
49821
49822     COND_BUILD_release="#"
49823     if test "x$BUILD" = "xrelease" ; then
49824         COND_BUILD_release=""
49825     fi
49826
49827     COND_BUILD_release_DEBUG_INFO_default="#"
49828     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49829         COND_BUILD_release_DEBUG_INFO_default=""
49830     fi
49831
49832     COND_BUILD_release_UNICODE_0="#"
49833     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49834         COND_BUILD_release_UNICODE_0=""
49835     fi
49836
49837     COND_BUILD_release_UNICODE_1="#"
49838     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49839         COND_BUILD_release_UNICODE_1=""
49840     fi
49841
49842     COND_DEBUG_FLAG_1="#"
49843     if test "x$DEBUG_FLAG" = "x1" ; then
49844         COND_DEBUG_FLAG_1=""
49845     fi
49846
49847     COND_DEBUG_INFO_0="#"
49848     if test "x$DEBUG_INFO" = "x0" ; then
49849         COND_DEBUG_INFO_0=""
49850     fi
49851
49852     COND_DEBUG_INFO_1="#"
49853     if test "x$DEBUG_INFO" = "x1" ; then
49854         COND_DEBUG_INFO_1=""
49855     fi
49856
49857     COND_DEPS_TRACKING_0="#"
49858     if test "x$DEPS_TRACKING" = "x0" ; then
49859         COND_DEPS_TRACKING_0=""
49860     fi
49861
49862     COND_DEPS_TRACKING_1="#"
49863     if test "x$DEPS_TRACKING" = "x1" ; then
49864         COND_DEPS_TRACKING_1=""
49865     fi
49866
49867     COND_GCC_PCH_1="#"
49868     if test "x$GCC_PCH" = "x1" ; then
49869         COND_GCC_PCH_1=""
49870     fi
49871
49872     COND_ICC_PCH_1="#"
49873     if test "x$ICC_PCH" = "x1" ; then
49874         COND_ICC_PCH_1=""
49875     fi
49876
49877     COND_MONOLITHIC_0="#"
49878     if test "x$MONOLITHIC" = "x0" ; then
49879         COND_MONOLITHIC_0=""
49880     fi
49881
49882     COND_MONOLITHIC_0_SHARED_0="#"
49883     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49884         COND_MONOLITHIC_0_SHARED_0=""
49885     fi
49886
49887     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49888     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49889         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49890     fi
49891
49892     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49893     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49894         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49895     fi
49896
49897     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49898     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49899         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49900     fi
49901
49902     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49903     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49904         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49905     fi
49906
49907     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49908     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49909         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49910     fi
49911
49912     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49913     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49914         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49915     fi
49916
49917     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49918     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49919         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49920     fi
49921
49922     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49923     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49924         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49925     fi
49926
49927     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49928     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49929         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49930     fi
49931
49932     COND_MONOLITHIC_0_SHARED_1="#"
49933     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49934         COND_MONOLITHIC_0_SHARED_1=""
49935     fi
49936
49937     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49938     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49939         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49940     fi
49941
49942     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49943     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49944         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49945     fi
49946
49947     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49948     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49949         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49950     fi
49951
49952     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49953     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49954         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49955     fi
49956
49957     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49958     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49959         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49960     fi
49961
49962     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49963     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49964         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49965     fi
49966
49967     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49968     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49969         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49970     fi
49971
49972     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49973     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49974         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49975     fi
49976
49977     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49978     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49979         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49980     fi
49981
49982     COND_MONOLITHIC_0_USE_AUI_1="#"
49983     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49984         COND_MONOLITHIC_0_USE_AUI_1=""
49985     fi
49986
49987     COND_MONOLITHIC_0_USE_GUI_1="#"
49988     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49989         COND_MONOLITHIC_0_USE_GUI_1=""
49990     fi
49991
49992     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49993     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49994         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49995     fi
49996
49997     COND_MONOLITHIC_0_USE_HTML_1="#"
49998     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49999         COND_MONOLITHIC_0_USE_HTML_1=""
50000     fi
50001
50002     COND_MONOLITHIC_0_USE_MEDIA_1="#"
50003     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50004         COND_MONOLITHIC_0_USE_MEDIA_1=""
50005     fi
50006
50007     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50008     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50009         COND_MONOLITHIC_0_USE_PROPGRID_1=""
50010     fi
50011
50012     COND_MONOLITHIC_0_USE_QA_1="#"
50013     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50014         COND_MONOLITHIC_0_USE_QA_1=""
50015     fi
50016
50017     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50018     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50019         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50020     fi
50021
50022     COND_MONOLITHIC_0_USE_STC_1="#"
50023     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50024         COND_MONOLITHIC_0_USE_STC_1=""
50025     fi
50026
50027     COND_MONOLITHIC_0_USE_XRC_1="#"
50028     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50029         COND_MONOLITHIC_0_USE_XRC_1=""
50030     fi
50031
50032     COND_MONOLITHIC_1="#"
50033     if test "x$MONOLITHIC" = "x1" ; then
50034         COND_MONOLITHIC_1=""
50035     fi
50036
50037     COND_MONOLITHIC_1_SHARED_0="#"
50038     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50039         COND_MONOLITHIC_1_SHARED_0=""
50040     fi
50041
50042     COND_MONOLITHIC_1_SHARED_1="#"
50043     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50044         COND_MONOLITHIC_1_SHARED_1=""
50045     fi
50046
50047     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50048     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50049         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50050     fi
50051
50052     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50053     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50054         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50055     fi
50056
50057     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50058     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50059         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50060     fi
50061
50062     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50063     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50064         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50065     fi
50066
50067     COND_PLATFORM_MACOSX_1="#"
50068     if test "x$PLATFORM_MACOSX" = "x1" ; then
50069         COND_PLATFORM_MACOSX_1=""
50070     fi
50071
50072     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50073     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50074         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50075     fi
50076
50077     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50078     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50079         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50080     fi
50081
50082     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50083     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50084         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50085     fi
50086
50087     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50088     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50089         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50090     fi
50091
50092     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50093     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50094         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50095     fi
50096
50097     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50098     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50099         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50100     fi
50101
50102     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
50103     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50104         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
50105     fi
50106
50107     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50108     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50109         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50110     fi
50111
50112     COND_PLATFORM_MACOS_1="#"
50113     if test "x$PLATFORM_MACOS" = "x1" ; then
50114         COND_PLATFORM_MACOS_1=""
50115     fi
50116
50117     COND_PLATFORM_MAC_0="#"
50118     if test "x$PLATFORM_MAC" = "x0" ; then
50119         COND_PLATFORM_MAC_0=""
50120     fi
50121
50122     COND_PLATFORM_MAC_1="#"
50123     if test "x$PLATFORM_MAC" = "x1" ; then
50124         COND_PLATFORM_MAC_1=""
50125     fi
50126
50127     COND_PLATFORM_MSDOS_0="#"
50128     if test "x$PLATFORM_MSDOS" = "x0" ; then
50129         COND_PLATFORM_MSDOS_0=""
50130     fi
50131
50132     COND_PLATFORM_MSDOS_1="#"
50133     if test "x$PLATFORM_MSDOS" = "x1" ; then
50134         COND_PLATFORM_MSDOS_1=""
50135     fi
50136
50137     COND_PLATFORM_OS2_1="#"
50138     if test "x$PLATFORM_OS2" = "x1" ; then
50139         COND_PLATFORM_OS2_1=""
50140     fi
50141
50142     COND_PLATFORM_UNIX_0="#"
50143     if test "x$PLATFORM_UNIX" = "x0" ; then
50144         COND_PLATFORM_UNIX_0=""
50145     fi
50146
50147     COND_PLATFORM_UNIX_1="#"
50148     if test "x$PLATFORM_UNIX" = "x1" ; then
50149         COND_PLATFORM_UNIX_1=""
50150     fi
50151
50152     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50153     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50154         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50155     fi
50156
50157     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50158     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50159         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50160     fi
50161
50162     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50163     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50164         COND_PLATFORM_UNIX_1_USE_GUI_1=""
50165     fi
50166
50167     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50168     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50169         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50170     fi
50171
50172     COND_PLATFORM_WIN32_0="#"
50173     if test "x$PLATFORM_WIN32" = "x0" ; then
50174         COND_PLATFORM_WIN32_0=""
50175     fi
50176
50177     COND_PLATFORM_WIN32_1="#"
50178     if test "x$PLATFORM_WIN32" = "x1" ; then
50179         COND_PLATFORM_WIN32_1=""
50180     fi
50181
50182     COND_SHARED_0="#"
50183     if test "x$SHARED" = "x0" ; then
50184         COND_SHARED_0=""
50185     fi
50186
50187     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50188     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50189         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50190     fi
50191
50192     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50193     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50194         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50195     fi
50196
50197     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50198     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50199         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50200     fi
50201
50202     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50203     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50204         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50205     fi
50206
50207     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50208     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50209         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50210     fi
50211
50212     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50213     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50214         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50215     fi
50216
50217     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50218     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50219         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50220     fi
50221
50222     COND_SHARED_0_USE_STC_1="#"
50223     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50224         COND_SHARED_0_USE_STC_1=""
50225     fi
50226
50227     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50228     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50229         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50230     fi
50231
50232     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50233     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50234         COND_SHARED_0_wxUSE_REGEX_builtin=""
50235     fi
50236
50237     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50238     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50239         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50240     fi
50241
50242     COND_SHARED_1="#"
50243     if test "x$SHARED" = "x1" ; then
50244         COND_SHARED_1=""
50245     fi
50246
50247     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50248     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50249         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50250     fi
50251
50252     COND_TOOLKIT_="#"
50253     if test "x$TOOLKIT" = "x" ; then
50254         COND_TOOLKIT_=""
50255     fi
50256
50257     COND_TOOLKIT_COCOA="#"
50258     if test "x$TOOLKIT" = "xCOCOA" ; then
50259         COND_TOOLKIT_COCOA=""
50260     fi
50261
50262     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50263     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50264         COND_TOOLKIT_COCOA_USE_GUI_1=""
50265     fi
50266
50267     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50268     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50269         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50270     fi
50271
50272     COND_TOOLKIT_DFB="#"
50273     if test "x$TOOLKIT" = "xDFB" ; then
50274         COND_TOOLKIT_DFB=""
50275     fi
50276
50277     COND_TOOLKIT_DFB_USE_GUI_1="#"
50278     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50279         COND_TOOLKIT_DFB_USE_GUI_1=""
50280     fi
50281
50282     COND_TOOLKIT_GTK="#"
50283     if test "x$TOOLKIT" = "xGTK" ; then
50284         COND_TOOLKIT_GTK=""
50285     fi
50286
50287     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50288     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50289         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50290     fi
50291
50292     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50293     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50294         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50295     fi
50296
50297     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50298     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50299         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50300     fi
50301
50302     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50303     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50304         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50305     fi
50306
50307     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50308     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50309         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50310     fi
50311
50312     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50313     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50314         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50315     fi
50316
50317     COND_TOOLKIT_GTK_USE_GUI_1="#"
50318     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50319         COND_TOOLKIT_GTK_USE_GUI_1=""
50320     fi
50321
50322     COND_TOOLKIT_MAC="#"
50323     if test "x$TOOLKIT" = "xMAC" ; then
50324         COND_TOOLKIT_MAC=""
50325     fi
50326
50327     COND_TOOLKIT_MGL="#"
50328     if test "x$TOOLKIT" = "xMGL" ; then
50329         COND_TOOLKIT_MGL=""
50330     fi
50331
50332     COND_TOOLKIT_MGL_USE_GUI_1="#"
50333     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50334         COND_TOOLKIT_MGL_USE_GUI_1=""
50335     fi
50336
50337     COND_TOOLKIT_MOTIF="#"
50338     if test "x$TOOLKIT" = "xMOTIF" ; then
50339         COND_TOOLKIT_MOTIF=""
50340     fi
50341
50342     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50343     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50344         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50345     fi
50346
50347     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50348     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50349         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50350     fi
50351
50352     COND_TOOLKIT_MSW="#"
50353     if test "x$TOOLKIT" = "xMSW" ; then
50354         COND_TOOLKIT_MSW=""
50355     fi
50356
50357     COND_TOOLKIT_MSW_USE_GUI_1="#"
50358     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50359         COND_TOOLKIT_MSW_USE_GUI_1=""
50360     fi
50361
50362     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50363     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50364         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50365     fi
50366
50367     COND_TOOLKIT_MSW_WXUNIV_0="#"
50368     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50369         COND_TOOLKIT_MSW_WXUNIV_0=""
50370     fi
50371
50372     COND_TOOLKIT_OSX_CARBON="#"
50373     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50374         COND_TOOLKIT_OSX_CARBON=""
50375     fi
50376
50377     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50378     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50379         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50380     fi
50381
50382     COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50383     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50384         COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50385     fi
50386
50387     COND_TOOLKIT_OSX_COCOA="#"
50388     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50389         COND_TOOLKIT_OSX_COCOA=""
50390     fi
50391
50392     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50393     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50394         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50395     fi
50396
50397     COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50398     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50399         COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50400     fi
50401
50402     COND_TOOLKIT_OSX_IPHONE="#"
50403     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50404         COND_TOOLKIT_OSX_IPHONE=""
50405     fi
50406
50407     COND_TOOLKIT_PM="#"
50408     if test "x$TOOLKIT" = "xPM" ; then
50409         COND_TOOLKIT_PM=""
50410     fi
50411
50412     COND_TOOLKIT_PM_USE_GUI_1="#"
50413     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50414         COND_TOOLKIT_PM_USE_GUI_1=""
50415     fi
50416
50417     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50418     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50419         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50420     fi
50421
50422     COND_TOOLKIT_WINCE="#"
50423     if test "x$TOOLKIT" = "xWINCE" ; then
50424         COND_TOOLKIT_WINCE=""
50425     fi
50426
50427     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50428     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50429         COND_TOOLKIT_WINCE_USE_GUI_1=""
50430     fi
50431
50432     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50433     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50434         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50435     fi
50436
50437     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50438     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50439         COND_TOOLKIT_WINCE_WXUNIV_0=""
50440     fi
50441
50442     COND_TOOLKIT_X11="#"
50443     if test "x$TOOLKIT" = "xX11" ; then
50444         COND_TOOLKIT_X11=""
50445     fi
50446
50447     COND_TOOLKIT_X11_USE_GUI_1="#"
50448     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50449         COND_TOOLKIT_X11_USE_GUI_1=""
50450     fi
50451
50452     COND_UNICODE_1="#"
50453     if test "x$UNICODE" = "x1" ; then
50454         COND_UNICODE_1=""
50455     fi
50456
50457     COND_USE_EXCEPTIONS_0="#"
50458     if test "x$USE_EXCEPTIONS" = "x0" ; then
50459         COND_USE_EXCEPTIONS_0=""
50460     fi
50461
50462     COND_USE_EXCEPTIONS_1="#"
50463     if test "x$USE_EXCEPTIONS" = "x1" ; then
50464         COND_USE_EXCEPTIONS_1=""
50465     fi
50466
50467     COND_USE_GUI_0="#"
50468     if test "x$USE_GUI" = "x0" ; then
50469         COND_USE_GUI_0=""
50470     fi
50471
50472     COND_USE_GUI_1="#"
50473     if test "x$USE_GUI" = "x1" ; then
50474         COND_USE_GUI_1=""
50475     fi
50476
50477     COND_USE_GUI_1_USE_OPENGL_1="#"
50478     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50479         COND_USE_GUI_1_USE_OPENGL_1=""
50480     fi
50481
50482     COND_USE_GUI_1_WXUNIV_0="#"
50483     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50484         COND_USE_GUI_1_WXUNIV_0=""
50485     fi
50486
50487     COND_USE_GUI_1_WXUNIV_1="#"
50488     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50489         COND_USE_GUI_1_WXUNIV_1=""
50490     fi
50491
50492     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50493     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50494         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50495     fi
50496
50497     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50498     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50499         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50500     fi
50501
50502     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50503     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50504         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50505     fi
50506
50507     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50508     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50509         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50510     fi
50511
50512     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50513     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50514         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50515     fi
50516
50517     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50518     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50519         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50520     fi
50521
50522     COND_USE_OPENGL_1="#"
50523     if test "x$USE_OPENGL" = "x1" ; then
50524         COND_USE_OPENGL_1=""
50525     fi
50526
50527     COND_USE_PCH_1="#"
50528     if test "x$USE_PCH" = "x1" ; then
50529         COND_USE_PCH_1=""
50530     fi
50531
50532     COND_USE_PLUGINS_0="#"
50533     if test "x$USE_PLUGINS" = "x0" ; then
50534         COND_USE_PLUGINS_0=""
50535     fi
50536
50537     COND_USE_RTTI_0="#"
50538     if test "x$USE_RTTI" = "x0" ; then
50539         COND_USE_RTTI_0=""
50540     fi
50541
50542     COND_USE_RTTI_1="#"
50543     if test "x$USE_RTTI" = "x1" ; then
50544         COND_USE_RTTI_1=""
50545     fi
50546
50547     COND_USE_SOSYMLINKS_1="#"
50548     if test "x$USE_SOSYMLINKS" = "x1" ; then
50549         COND_USE_SOSYMLINKS_1=""
50550     fi
50551
50552     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50553     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50554         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50555     fi
50556
50557     COND_USE_SOVERLINUX_1="#"
50558     if test "x$USE_SOVERLINUX" = "x1" ; then
50559         COND_USE_SOVERLINUX_1=""
50560     fi
50561
50562     COND_USE_SOVERSION_0="#"
50563     if test "x$USE_SOVERSION" = "x0" ; then
50564         COND_USE_SOVERSION_0=""
50565     fi
50566
50567     COND_USE_SOVERSOLARIS_1="#"
50568     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50569         COND_USE_SOVERSOLARIS_1=""
50570     fi
50571
50572     COND_USE_STC_1="#"
50573     if test "x$USE_STC" = "x1" ; then
50574         COND_USE_STC_1=""
50575     fi
50576
50577     COND_USE_THREADS_0="#"
50578     if test "x$USE_THREADS" = "x0" ; then
50579         COND_USE_THREADS_0=""
50580     fi
50581
50582     COND_USE_THREADS_1="#"
50583     if test "x$USE_THREADS" = "x1" ; then
50584         COND_USE_THREADS_1=""
50585     fi
50586
50587     COND_USE_XRC_1="#"
50588     if test "x$USE_XRC" = "x1" ; then
50589         COND_USE_XRC_1=""
50590     fi
50591
50592     COND_WINDOWS_IMPLIB_1="#"
50593     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50594         COND_WINDOWS_IMPLIB_1=""
50595     fi
50596
50597     COND_WITH_PLUGIN_SDL_1="#"
50598     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50599         COND_WITH_PLUGIN_SDL_1=""
50600     fi
50601
50602     COND_WXUNIV_0="#"
50603     if test "x$WXUNIV" = "x0" ; then
50604         COND_WXUNIV_0=""
50605     fi
50606
50607     COND_WXUNIV_1="#"
50608     if test "x$WXUNIV" = "x1" ; then
50609         COND_WXUNIV_1=""
50610     fi
50611
50612     COND_WXUSE_EXPAT_BUILTIN="#"
50613     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50614         COND_WXUSE_EXPAT_BUILTIN=""
50615     fi
50616
50617     COND_WXUSE_LIBJPEG_BUILTIN="#"
50618     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50619         COND_WXUSE_LIBJPEG_BUILTIN=""
50620     fi
50621
50622     COND_WXUSE_LIBPNG_BUILTIN="#"
50623     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50624         COND_WXUSE_LIBPNG_BUILTIN=""
50625     fi
50626
50627     COND_WXUSE_LIBTIFF_BUILTIN="#"
50628     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50629         COND_WXUSE_LIBTIFF_BUILTIN=""
50630     fi
50631
50632     COND_WXUSE_REGEX_BUILTIN="#"
50633     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50634         COND_WXUSE_REGEX_BUILTIN=""
50635     fi
50636
50637     COND_WXUSE_ZLIB_BUILTIN="#"
50638     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50639         COND_WXUSE_ZLIB_BUILTIN=""
50640     fi
50641
50642     COND_wxUSE_EXPAT_builtin="#"
50643     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50644         COND_wxUSE_EXPAT_builtin=""
50645     fi
50646
50647     COND_wxUSE_LIBJPEG_builtin="#"
50648     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50649         COND_wxUSE_LIBJPEG_builtin=""
50650     fi
50651
50652     COND_wxUSE_LIBPNG_builtin="#"
50653     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50654         COND_wxUSE_LIBPNG_builtin=""
50655     fi
50656
50657     COND_wxUSE_LIBTIFF_builtin="#"
50658     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50659         COND_wxUSE_LIBTIFF_builtin=""
50660     fi
50661
50662     COND_wxUSE_REGEX_builtin="#"
50663     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50664         COND_wxUSE_REGEX_builtin=""
50665     fi
50666
50667     COND_wxUSE_ZLIB_builtin="#"
50668     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50669         COND_wxUSE_ZLIB_builtin=""
50670     fi
50671
50672
50673
50674     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50675         { { 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
50676 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;}
50677    { (exit 1); exit 1; }; }
50678     fi
50679
50680     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50681         { { 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
50682 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;}
50683    { (exit 1); exit 1; }; }
50684     fi
50685
50686
50687 case ${INSTALL} in
50688   /* ) # Absolute
50689      ;;
50690   ?:* ) # Drive letter, considered as absolute.
50691      ;;
50692   *)
50693      INSTALL=`pwd`/${INSTALL} ;;
50694 esac
50695
50696 if test "$wxUSE_GUI" = "yes"; then
50697
50698 if test "$wxUSE_MSW" = 1 ; then
50699     if test "x$WINDRES" = "x"; then
50700         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50701 echo "$as_me: error: Required windres program not found" >&2;}
50702    { (exit 1); exit 1; }; }
50703     fi
50704
50705     RESCOMP="$WINDRES"
50706 fi
50707
50708 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50709             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50710     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50711
50712         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50713
50714     # Extract the first word of "DeRez", so it can be a program name with args.
50715 set dummy DeRez; ac_word=$2
50716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50718 if test "${ac_cv_prog_DEREZ+set}" = set; then
50719   echo $ECHO_N "(cached) $ECHO_C" >&6
50720 else
50721   if test -n "$DEREZ"; then
50722   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50723 else
50724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50725 for as_dir in $PATH
50726 do
50727   IFS=$as_save_IFS
50728   test -z "$as_dir" && as_dir=.
50729   for ac_exec_ext in '' $ac_executable_extensions; do
50730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50731     ac_cv_prog_DEREZ="DeRez"
50732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50733     break 2
50734   fi
50735 done
50736 done
50737 IFS=$as_save_IFS
50738
50739   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50740 fi
50741 fi
50742 DEREZ=$ac_cv_prog_DEREZ
50743 if test -n "$DEREZ"; then
50744   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50745 echo "${ECHO_T}$DEREZ" >&6; }
50746 else
50747   { echo "$as_me:$LINENO: result: no" >&5
50748 echo "${ECHO_T}no" >&6; }
50749 fi
50750
50751
50752
50753     MACSETFILE="\$(SETFILE)"
50754
50755             if test "$wxUSE_OSX_CARBON" = 1; then
50756         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50757         RESCOMP="$REZ"
50758         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50759     else
50760         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50761         RESCOMP="cat /dev/null \| $REZ"
50762         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50763     fi
50764
50765 else
50766         MACSETFILE="@true"
50767
50768     if test "$wxUSE_PM" = 1; then
50769         RESCOMP="emxbind"
50770         WXCONFIG_RESFLAGS="-ep"
50771
50772                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50773     else
50774         POSTLINK_COMMAND="@true"
50775     fi
50776 fi
50777
50778 fi
50779
50780
50781 if test $GCC_PCH = 1
50782 then
50783     if test "$wx_cv_gcc_pch_bug" = yes; then
50784         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50785 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50786         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50787 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50788         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50789 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50790     fi
50791
50792     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50793     # the headers that benefit from precompilation are mostly C++ headers.
50794     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50795     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50796     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50797 fi
50798
50799
50800 if test "$wxUSE_MAC" = 1 ; then
50801     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50802         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50803         mv temp bk-deps
50804         chmod +x bk-deps
50805     fi
50806 fi
50807
50808 if test "$wxUSE_SHARED" = "yes"; then
50809                 case "${host}" in
50810       *-pc-os2_emx | *-pc-os2-emx )
50811         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50812         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50813         cp -p ${srcdir}/src/os2/dllnames.sh .
50814         cp -p ${srcdir}/src/os2/dllar.sh .
50815       ;;
50816     esac
50817 fi
50818 if test "$wxUSE_OMF" = "yes"; then
50819     case "${host}" in
50820       *-pc-os2_emx | *-pc-os2-emx )
50821         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50822         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50823         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50824       ;;
50825     esac
50826 fi
50827
50828 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50829
50830
50831 case "${host}" in
50832     *-*-solaris2* )
50833                         if test "$GCC" = yes; then
50834             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50835             LIBS=`echo $LIBS | sed 's/-mt//'`
50836             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50837         fi
50838         ;;
50839
50840     *-*-linux* )
50841                         if test "x$SUNCXX" = xyes; then
50842             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50843             LIBS=`echo $LIBS | sed 's/-pthread//'`
50844             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50845         fi
50846         ;;
50847 esac
50848
50849 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50850 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50851 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50852 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50853
50854 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50855
50856
50857
50858
50859
50860
50861
50862
50863
50864
50865
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897
50898
50899
50900
50901
50902
50903
50904
50905
50906
50907
50908
50909
50910
50911
50912
50913
50914
50915 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50917 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50918 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50919   echo $ECHO_N "(cached) $ECHO_C" >&6
50920 else
50921   cat >conftest.make <<\_ACEOF
50922 SHELL = /bin/sh
50923 all:
50924         @echo '@@@%%%=$(MAKE)=@@@%%%'
50925 _ACEOF
50926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50927 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50928   *@@@%%%=?*=@@@%%%*)
50929     eval ac_cv_prog_make_${ac_make}_set=yes;;
50930   *)
50931     eval ac_cv_prog_make_${ac_make}_set=no;;
50932 esac
50933 rm -f conftest.make
50934 fi
50935 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50936   { echo "$as_me:$LINENO: result: yes" >&5
50937 echo "${ECHO_T}yes" >&6; }
50938   SET_MAKE=
50939 else
50940   { echo "$as_me:$LINENO: result: no" >&5
50941 echo "${ECHO_T}no" >&6; }
50942   SET_MAKE="MAKE=${MAKE-make}"
50943 fi
50944
50945
50946
50947 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50948
50949
50950 if test "$USE_WIN32" = 1; then
50951     ac_config_commands="$ac_config_commands
50952             rcdefs.h
50953         "
50954
50955 fi
50956
50957 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50958
50959
50960 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50961
50962
50963 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50964
50965
50966 if test "$wx_cv_version_script" = "yes"; then
50967     ac_config_files="$ac_config_files version-script"
50968
50969 fi
50970 ac_config_files="$ac_config_files Makefile"
50971
50972
50973 ac_config_commands="$ac_config_commands wx-config"
50974
50975
50976
50977 if test "$wxWITH_SUBDIRS" != "no"; then
50978 if test "$wxUSE_GUI" = "yes"; then
50979     SUBDIRS="samples demos utils"
50980 else
50981             SUBDIRS="samples utils"
50982 fi
50983
50984
50985
50986 # Check whether --with-cppunit-prefix was given.
50987 if test "${with_cppunit_prefix+set}" = set; then
50988   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50989 else
50990   cppunit_config_prefix=""
50991 fi
50992
50993
50994 # Check whether --with-cppunit-exec-prefix was given.
50995 if test "${with_cppunit_exec_prefix+set}" = set; then
50996   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50997 else
50998   cppunit_config_exec_prefix=""
50999 fi
51000
51001
51002   if test x$cppunit_config_exec_prefix != x ; then
51003      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51004      if test x${CPPUNIT_CONFIG+set} != xset ; then
51005         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51006      fi
51007   fi
51008   if test x$cppunit_config_prefix != x ; then
51009      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51010      if test x${CPPUNIT_CONFIG+set} != xset ; then
51011         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51012      fi
51013   fi
51014
51015   # Extract the first word of "cppunit-config", so it can be a program name with args.
51016 set dummy cppunit-config; ac_word=$2
51017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51019 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51020   echo $ECHO_N "(cached) $ECHO_C" >&6
51021 else
51022   case $CPPUNIT_CONFIG in
51023   [\\/]* | ?:[\\/]*)
51024   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51025   ;;
51026   *)
51027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51028 for as_dir in $PATH
51029 do
51030   IFS=$as_save_IFS
51031   test -z "$as_dir" && as_dir=.
51032   for ac_exec_ext in '' $ac_executable_extensions; do
51033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51034     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51036     break 2
51037   fi
51038 done
51039 done
51040 IFS=$as_save_IFS
51041
51042   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51043   ;;
51044 esac
51045 fi
51046 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51047 if test -n "$CPPUNIT_CONFIG"; then
51048   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51049 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
51050 else
51051   { echo "$as_me:$LINENO: result: no" >&5
51052 echo "${ECHO_T}no" >&6; }
51053 fi
51054
51055
51056   cppunit_version_min=1.8.0
51057
51058   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51059 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
51060   no_cppunit=""
51061   if test "$CPPUNIT_CONFIG" = "no" ; then
51062     { echo "$as_me:$LINENO: result: no" >&5
51063 echo "${ECHO_T}no" >&6; }
51064     no_cppunit=yes
51065   else
51066     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51067     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51068     cppunit_version=`$CPPUNIT_CONFIG --version`
51069
51070     cppunit_major_version=`echo $cppunit_version | \
51071            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51072     cppunit_minor_version=`echo $cppunit_version | \
51073            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51074     cppunit_micro_version=`echo $cppunit_version | \
51075            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51076
51077     cppunit_major_min=`echo $cppunit_version_min | \
51078            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51079     cppunit_minor_min=`echo $cppunit_version_min | \
51080            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51081     cppunit_micro_min=`echo $cppunit_version_min | \
51082            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51083
51084     cppunit_version_proper=`expr \
51085         $cppunit_major_version \> $cppunit_major_min \| \
51086         $cppunit_major_version \= $cppunit_major_min \& \
51087         $cppunit_minor_version \> $cppunit_minor_min \| \
51088         $cppunit_major_version \= $cppunit_major_min \& \
51089         $cppunit_minor_version \= $cppunit_minor_min \& \
51090         $cppunit_micro_version \>= $cppunit_micro_min `
51091
51092     if test "$cppunit_version_proper" = "1" ; then
51093       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51094 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
51095     else
51096       { echo "$as_me:$LINENO: result: no" >&5
51097 echo "${ECHO_T}no" >&6; }
51098       no_cppunit=yes
51099     fi
51100   fi
51101
51102   if test "x$no_cppunit" = x ; then
51103      SUBDIRS="$SUBDIRS tests"
51104   else
51105      CPPUNIT_CFLAGS=""
51106      CPPUNIT_LIBS=""
51107      :
51108   fi
51109
51110
51111
51112
51113
51114 for subdir in $SUBDIRS; do
51115     if test -d ${srcdir}/${subdir} ; then
51116         if test "$wxUSE_GUI" = "yes"; then
51117             if test ${subdir} = "samples"; then
51118                                                 makefiles="samples/Makefile.in $makefiles"
51119                 for sample in $SAMPLES_SUBDIRS; do
51120                     if test -d $srcdir/samples/$sample; then
51121                         makefiles="samples/$sample/Makefile.in $makefiles"
51122                     fi
51123                 done
51124             else
51125                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
51126                 eval "disabled=\$$disabled_var"
51127                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51128                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51129             fi
51130         else
51131                                     if test ${subdir} = "samples"; then
51132                                                 makefiles="samples/Makefile.in $makefiles"
51133                 for sample in `echo $SAMPLES_SUBDIRS`; do
51134                     if test -d $srcdir/samples/$sample; then
51135                         makefiles="samples/$sample/Makefile.in $makefiles"
51136                     fi
51137                 done
51138             elif test ${subdir} = "utils"; then
51139                 makefiles=""
51140                 for util in ifacecheck ; do
51141                     if test -d $srcdir/utils/$util ; then
51142                         makefiles="utils/$util/src/Makefile.in \
51143                                    $makefiles"
51144                     fi
51145                 done
51146             else
51147                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51148             fi
51149         fi
51150
51151         for mkin in $makefiles ; do
51152             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51153             ac_config_files="$ac_config_files $mk"
51154
51155         done
51156     fi
51157 done
51158 fi
51159 cat >confcache <<\_ACEOF
51160 # This file is a shell script that caches the results of configure
51161 # tests run on this system so they can be shared between configure
51162 # scripts and configure runs, see configure's option --config-cache.
51163 # It is not useful on other systems.  If it contains results you don't
51164 # want to keep, you may remove or edit it.
51165 #
51166 # config.status only pays attention to the cache file if you give it
51167 # the --recheck option to rerun configure.
51168 #
51169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51171 # following values.
51172
51173 _ACEOF
51174
51175 # The following way of writing the cache mishandles newlines in values,
51176 # but we know of no workaround that is simple, portable, and efficient.
51177 # So, we kill variables containing newlines.
51178 # Ultrix sh set writes to stderr and can't be redirected directly,
51179 # and sets the high bit in the cache file unless we assign to the vars.
51180 (
51181   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51182     eval ac_val=\$$ac_var
51183     case $ac_val in #(
51184     *${as_nl}*)
51185       case $ac_var in #(
51186       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
51187 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
51188       esac
51189       case $ac_var in #(
51190       _ | IFS | as_nl) ;; #(
51191       *) $as_unset $ac_var ;;
51192       esac ;;
51193     esac
51194   done
51195
51196   (set) 2>&1 |
51197     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51198     *${as_nl}ac_space=\ *)
51199       # `set' does not quote correctly, so add quotes (double-quote
51200       # substitution turns \\\\ into \\, and sed turns \\ into \).
51201       sed -n \
51202         "s/'/'\\\\''/g;
51203           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51204       ;; #(
51205     *)
51206       # `set' quotes correctly as required by POSIX, so do not add quotes.
51207       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51208       ;;
51209     esac |
51210     sort
51211 ) |
51212   sed '
51213      /^ac_cv_env_/b end
51214      t clear
51215      :clear
51216      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51217      t end
51218      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51219      :end' >>confcache
51220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51221   if test -w "$cache_file"; then
51222     test "x$cache_file" != "x/dev/null" &&
51223       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51224 echo "$as_me: updating cache $cache_file" >&6;}
51225     cat confcache >$cache_file
51226   else
51227     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51228 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51229   fi
51230 fi
51231 rm -f confcache
51232
51233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51234 # Let make expand exec_prefix.
51235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51236
51237 DEFS=-DHAVE_CONFIG_H
51238
51239 ac_libobjs=
51240 ac_ltlibobjs=
51241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51242   # 1. Remove the extension, and $U if already installed.
51243   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51244   ac_i=`echo "$ac_i" | sed "$ac_script"`
51245   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51246   #    will be set to the directory where LIBOBJS objects are built.
51247   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51248   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51249 done
51250 LIBOBJS=$ac_libobjs
51251
51252 LTLIBOBJS=$ac_ltlibobjs
51253
51254
51255
51256 : ${CONFIG_STATUS=./config.status}
51257 ac_clean_files_save=$ac_clean_files
51258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51261 cat >$CONFIG_STATUS <<_ACEOF
51262 #! $SHELL
51263 # Generated by $as_me.
51264 # Run this file to recreate the current configuration.
51265 # Compiler output produced by configure, useful for debugging
51266 # configure, is in config.log if it exists.
51267
51268 debug=false
51269 ac_cs_recheck=false
51270 ac_cs_silent=false
51271 SHELL=\${CONFIG_SHELL-$SHELL}
51272 _ACEOF
51273
51274 cat >>$CONFIG_STATUS <<\_ACEOF
51275 ## --------------------- ##
51276 ## M4sh Initialization.  ##
51277 ## --------------------- ##
51278
51279 # Be more Bourne compatible
51280 DUALCASE=1; export DUALCASE # for MKS sh
51281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51282   emulate sh
51283   NULLCMD=:
51284   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51285   # is contrary to our usage.  Disable this feature.
51286   alias -g '${1+"$@"}'='"$@"'
51287   setopt NO_GLOB_SUBST
51288 else
51289   case `(set -o) 2>/dev/null` in
51290   *posix*) set -o posix ;;
51291 esac
51292
51293 fi
51294
51295
51296
51297
51298 # PATH needs CR
51299 # Avoid depending upon Character Ranges.
51300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51303 as_cr_digits='0123456789'
51304 as_cr_alnum=$as_cr_Letters$as_cr_digits
51305
51306 # The user is always right.
51307 if test "${PATH_SEPARATOR+set}" != set; then
51308   echo "#! /bin/sh" >conf$$.sh
51309   echo  "exit 0"   >>conf$$.sh
51310   chmod +x conf$$.sh
51311   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51312     PATH_SEPARATOR=';'
51313   else
51314     PATH_SEPARATOR=:
51315   fi
51316   rm -f conf$$.sh
51317 fi
51318
51319 # Support unset when possible.
51320 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51321   as_unset=unset
51322 else
51323   as_unset=false
51324 fi
51325
51326
51327 # IFS
51328 # We need space, tab and new line, in precisely that order.  Quoting is
51329 # there to prevent editors from complaining about space-tab.
51330 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51331 # splitting by setting IFS to empty value.)
51332 as_nl='
51333 '
51334 IFS=" ""        $as_nl"
51335
51336 # Find who we are.  Look in the path if we contain no directory separator.
51337 case $0 in
51338   *[\\/]* ) as_myself=$0 ;;
51339   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51340 for as_dir in $PATH
51341 do
51342   IFS=$as_save_IFS
51343   test -z "$as_dir" && as_dir=.
51344   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51345 done
51346 IFS=$as_save_IFS
51347
51348      ;;
51349 esac
51350 # We did not find ourselves, most probably we were run as `sh COMMAND'
51351 # in which case we are not to be found in the path.
51352 if test "x$as_myself" = x; then
51353   as_myself=$0
51354 fi
51355 if test ! -f "$as_myself"; then
51356   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51357   { (exit 1); exit 1; }
51358 fi
51359
51360 # Work around bugs in pre-3.0 UWIN ksh.
51361 for as_var in ENV MAIL MAILPATH
51362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51363 done
51364 PS1='$ '
51365 PS2='> '
51366 PS4='+ '
51367
51368 # NLS nuisances.
51369 for as_var in \
51370   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51371   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51372   LC_TELEPHONE LC_TIME
51373 do
51374   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51375     eval $as_var=C; export $as_var
51376   else
51377     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51378   fi
51379 done
51380
51381 # Required to use basename.
51382 if expr a : '\(a\)' >/dev/null 2>&1 &&
51383    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51384   as_expr=expr
51385 else
51386   as_expr=false
51387 fi
51388
51389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51390   as_basename=basename
51391 else
51392   as_basename=false
51393 fi
51394
51395
51396 # Name of the executable.
51397 as_me=`$as_basename -- "$0" ||
51398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51399          X"$0" : 'X\(//\)$' \| \
51400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51401 echo X/"$0" |
51402     sed '/^.*\/\([^/][^/]*\)\/*$/{
51403             s//\1/
51404             q
51405           }
51406           /^X\/\(\/\/\)$/{
51407             s//\1/
51408             q
51409           }
51410           /^X\/\(\/\).*/{
51411             s//\1/
51412             q
51413           }
51414           s/.*/./; q'`
51415
51416 # CDPATH.
51417 $as_unset CDPATH
51418
51419
51420
51421   as_lineno_1=$LINENO
51422   as_lineno_2=$LINENO
51423   test "x$as_lineno_1" != "x$as_lineno_2" &&
51424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51425
51426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51427   # uniformly replaced by the line number.  The first 'sed' inserts a
51428   # line-number line after each line using $LINENO; the second 'sed'
51429   # does the real work.  The second script uses 'N' to pair each
51430   # line-number line with the line containing $LINENO, and appends
51431   # trailing '-' during substitution so that $LINENO is not a special
51432   # case at line end.
51433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51435   # E. McMahon (1931-1989) for sed's syntax.  :-)
51436   sed -n '
51437     p
51438     /[$]LINENO/=
51439   ' <$as_myself |
51440     sed '
51441       s/[$]LINENO.*/&-/
51442       t lineno
51443       b
51444       :lineno
51445       N
51446       :loop
51447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51448       t loop
51449       s/-\n.*//
51450     ' >$as_me.lineno &&
51451   chmod +x "$as_me.lineno" ||
51452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51453    { (exit 1); exit 1; }; }
51454
51455   # Don't try to exec as it changes $[0], causing all sort of problems
51456   # (the dirname of $[0] is not the place where we might find the
51457   # original and so on.  Autoconf is especially sensitive to this).
51458   . "./$as_me.lineno"
51459   # Exit status is that of the last command.
51460   exit
51461 }
51462
51463
51464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51465   as_dirname=dirname
51466 else
51467   as_dirname=false
51468 fi
51469
51470 ECHO_C= ECHO_N= ECHO_T=
51471 case `echo -n x` in
51472 -n*)
51473   case `echo 'x\c'` in
51474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51475   *)   ECHO_C='\c';;
51476   esac;;
51477 *)
51478   ECHO_N='-n';;
51479 esac
51480
51481 if expr a : '\(a\)' >/dev/null 2>&1 &&
51482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51483   as_expr=expr
51484 else
51485   as_expr=false
51486 fi
51487
51488 rm -f conf$$ conf$$.exe conf$$.file
51489 if test -d conf$$.dir; then
51490   rm -f conf$$.dir/conf$$.file
51491 else
51492   rm -f conf$$.dir
51493   mkdir conf$$.dir
51494 fi
51495 echo >conf$$.file
51496 if ln -s conf$$.file conf$$ 2>/dev/null; then
51497   as_ln_s='ln -s'
51498   # ... but there are two gotchas:
51499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51501   # In both cases, we have to default to `cp -p'.
51502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51503     as_ln_s='cp -p'
51504 elif ln conf$$.file conf$$ 2>/dev/null; then
51505   as_ln_s=ln
51506 else
51507   as_ln_s='cp -p'
51508 fi
51509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51510 rmdir conf$$.dir 2>/dev/null
51511
51512 if mkdir -p . 2>/dev/null; then
51513   as_mkdir_p=:
51514 else
51515   test -d ./-p && rmdir ./-p
51516   as_mkdir_p=false
51517 fi
51518
51519 if test -x / >/dev/null 2>&1; then
51520   as_test_x='test -x'
51521 else
51522   if ls -dL / >/dev/null 2>&1; then
51523     as_ls_L_option=L
51524   else
51525     as_ls_L_option=
51526   fi
51527   as_test_x='
51528     eval sh -c '\''
51529       if test -d "$1"; then
51530         test -d "$1/.";
51531       else
51532         case $1 in
51533         -*)set "./$1";;
51534         esac;
51535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51536         ???[sx]*):;;*)false;;esac;fi
51537     '\'' sh
51538   '
51539 fi
51540 as_executable_p=$as_test_x
51541
51542 # Sed expression to map a string onto a valid CPP name.
51543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51544
51545 # Sed expression to map a string onto a valid variable name.
51546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51547
51548
51549 exec 6>&1
51550
51551 # Save the log message, to keep $[0] and so on meaningful, and to
51552 # report actual input values of CONFIG_FILES etc. instead of their
51553 # values after options handling.
51554 ac_log="
51555 This file was extended by wxWidgets $as_me 2.9.0, which was
51556 generated by GNU Autoconf 2.61.  Invocation command line was
51557
51558   CONFIG_FILES    = $CONFIG_FILES
51559   CONFIG_HEADERS  = $CONFIG_HEADERS
51560   CONFIG_LINKS    = $CONFIG_LINKS
51561   CONFIG_COMMANDS = $CONFIG_COMMANDS
51562   $ $0 $@
51563
51564 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51565 "
51566
51567 _ACEOF
51568
51569 cat >>$CONFIG_STATUS <<_ACEOF
51570 # Files that config.status was made for.
51571 config_files="$ac_config_files"
51572 config_headers="$ac_config_headers"
51573 config_commands="$ac_config_commands"
51574
51575 _ACEOF
51576
51577 cat >>$CONFIG_STATUS <<\_ACEOF
51578 ac_cs_usage="\
51579 \`$as_me' instantiates files from templates according to the
51580 current configuration.
51581
51582 Usage: $0 [OPTIONS] [FILE]...
51583
51584   -h, --help       print this help, then exit
51585   -V, --version    print version number and configuration settings, then exit
51586   -q, --quiet      do not print progress messages
51587   -d, --debug      don't remove temporary files
51588       --recheck    update $as_me by reconfiguring in the same conditions
51589   --file=FILE[:TEMPLATE]
51590                    instantiate the configuration file FILE
51591   --header=FILE[:TEMPLATE]
51592                    instantiate the configuration header FILE
51593
51594 Configuration files:
51595 $config_files
51596
51597 Configuration headers:
51598 $config_headers
51599
51600 Configuration commands:
51601 $config_commands
51602
51603 Report bugs to <bug-autoconf@gnu.org>."
51604
51605 _ACEOF
51606 cat >>$CONFIG_STATUS <<_ACEOF
51607 ac_cs_version="\\
51608 wxWidgets config.status 2.9.0
51609 configured by $0, generated by GNU Autoconf 2.61,
51610   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51611
51612 Copyright (C) 2006 Free Software Foundation, Inc.
51613 This config.status script is free software; the Free Software Foundation
51614 gives unlimited permission to copy, distribute and modify it."
51615
51616 ac_pwd='$ac_pwd'
51617 srcdir='$srcdir'
51618 INSTALL='$INSTALL'
51619 _ACEOF
51620
51621 cat >>$CONFIG_STATUS <<\_ACEOF
51622 # If no file are specified by the user, then we need to provide default
51623 # value.  By we need to know if files were specified by the user.
51624 ac_need_defaults=:
51625 while test $# != 0
51626 do
51627   case $1 in
51628   --*=*)
51629     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51630     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51631     ac_shift=:
51632     ;;
51633   *)
51634     ac_option=$1
51635     ac_optarg=$2
51636     ac_shift=shift
51637     ;;
51638   esac
51639
51640   case $ac_option in
51641   # Handling of the options.
51642   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51643     ac_cs_recheck=: ;;
51644   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51645     echo "$ac_cs_version"; exit ;;
51646   --debug | --debu | --deb | --de | --d | -d )
51647     debug=: ;;
51648   --file | --fil | --fi | --f )
51649     $ac_shift
51650     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51651     ac_need_defaults=false;;
51652   --header | --heade | --head | --hea )
51653     $ac_shift
51654     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51655     ac_need_defaults=false;;
51656   --he | --h)
51657     # Conflict between --help and --header
51658     { echo "$as_me: error: ambiguous option: $1
51659 Try \`$0 --help' for more information." >&2
51660    { (exit 1); exit 1; }; };;
51661   --help | --hel | -h )
51662     echo "$ac_cs_usage"; exit ;;
51663   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51664   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51665     ac_cs_silent=: ;;
51666
51667   # This is an error.
51668   -*) { echo "$as_me: error: unrecognized option: $1
51669 Try \`$0 --help' for more information." >&2
51670    { (exit 1); exit 1; }; } ;;
51671
51672   *) ac_config_targets="$ac_config_targets $1"
51673      ac_need_defaults=false ;;
51674
51675   esac
51676   shift
51677 done
51678
51679 ac_configure_extra_args=
51680
51681 if $ac_cs_silent; then
51682   exec 6>/dev/null
51683   ac_configure_extra_args="$ac_configure_extra_args --silent"
51684 fi
51685
51686 _ACEOF
51687 cat >>$CONFIG_STATUS <<_ACEOF
51688 if \$ac_cs_recheck; then
51689   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51690   CONFIG_SHELL=$SHELL
51691   export CONFIG_SHELL
51692   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51693 fi
51694
51695 _ACEOF
51696 cat >>$CONFIG_STATUS <<\_ACEOF
51697 exec 5>>config.log
51698 {
51699   echo
51700   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51701 ## Running $as_me. ##
51702 _ASBOX
51703   echo "$ac_log"
51704 } >&5
51705
51706 _ACEOF
51707 cat >>$CONFIG_STATUS <<_ACEOF
51708 #
51709 # INIT-COMMANDS
51710 #
51711
51712             CPP="$CPP"
51713             infile="$srcdir/include/wx/msw/genrcdefs.h"
51714             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51715
51716
51717  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51718  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51719  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51720                      LN_S="${LN_S}"
51721
51722
51723 _ACEOF
51724
51725 cat >>$CONFIG_STATUS <<\_ACEOF
51726
51727 # Handling of arguments.
51728 for ac_config_target in $ac_config_targets
51729 do
51730   case $ac_config_target in
51731     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51732     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51733     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51734     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51735     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51736     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51737     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51738     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51739     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51740
51741   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51742 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51743    { (exit 1); exit 1; }; };;
51744   esac
51745 done
51746
51747
51748 # If the user did not use the arguments to specify the items to instantiate,
51749 # then the envvar interface is used.  Set only those that are not.
51750 # We use the long form for the default assignment because of an extremely
51751 # bizarre bug on SunOS 4.1.3.
51752 if $ac_need_defaults; then
51753   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51754   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51755   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51756 fi
51757
51758 # Have a temporary directory for convenience.  Make it in the build tree
51759 # simply because there is no reason against having it here, and in addition,
51760 # creating and moving files from /tmp can sometimes cause problems.
51761 # Hook for its removal unless debugging.
51762 # Note that there is a small window in which the directory will not be cleaned:
51763 # after its creation but before its name has been assigned to `$tmp'.
51764 $debug ||
51765 {
51766   tmp=
51767   trap 'exit_status=$?
51768   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51769 ' 0
51770   trap '{ (exit 1); exit 1; }' 1 2 13 15
51771 }
51772 # Create a (secure) tmp directory for tmp files.
51773
51774 {
51775   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51776   test -n "$tmp" && test -d "$tmp"
51777 }  ||
51778 {
51779   tmp=./conf$$-$RANDOM
51780   (umask 077 && mkdir "$tmp")
51781 } ||
51782 {
51783    echo "$me: cannot create a temporary directory in ." >&2
51784    { (exit 1); exit 1; }
51785 }
51786
51787 #
51788 # Set up the sed scripts for CONFIG_FILES section.
51789 #
51790
51791 # No need to generate the scripts if there are no CONFIG_FILES.
51792 # This happens for instance when ./config.status config.h
51793 if test -n "$CONFIG_FILES"; then
51794
51795 _ACEOF
51796
51797
51798
51799 ac_delim='%!_!# '
51800 for ac_last_try in false false false false false :; do
51801   cat >conf$$subs.sed <<_ACEOF
51802 SHELL!$SHELL$ac_delim
51803 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51804 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51805 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51806 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51807 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51808 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51809 exec_prefix!$exec_prefix$ac_delim
51810 prefix!$prefix$ac_delim
51811 program_transform_name!$program_transform_name$ac_delim
51812 bindir!$bindir$ac_delim
51813 sbindir!$sbindir$ac_delim
51814 libexecdir!$libexecdir$ac_delim
51815 datarootdir!$datarootdir$ac_delim
51816 datadir!$datadir$ac_delim
51817 sysconfdir!$sysconfdir$ac_delim
51818 sharedstatedir!$sharedstatedir$ac_delim
51819 localstatedir!$localstatedir$ac_delim
51820 includedir!$includedir$ac_delim
51821 oldincludedir!$oldincludedir$ac_delim
51822 docdir!$docdir$ac_delim
51823 infodir!$infodir$ac_delim
51824 htmldir!$htmldir$ac_delim
51825 dvidir!$dvidir$ac_delim
51826 pdfdir!$pdfdir$ac_delim
51827 psdir!$psdir$ac_delim
51828 libdir!$libdir$ac_delim
51829 localedir!$localedir$ac_delim
51830 mandir!$mandir$ac_delim
51831 DEFS!$DEFS$ac_delim
51832 ECHO_C!$ECHO_C$ac_delim
51833 ECHO_N!$ECHO_N$ac_delim
51834 ECHO_T!$ECHO_T$ac_delim
51835 LIBS!$LIBS$ac_delim
51836 build_alias!$build_alias$ac_delim
51837 host_alias!$host_alias$ac_delim
51838 target_alias!$target_alias$ac_delim
51839 build!$build$ac_delim
51840 build_cpu!$build_cpu$ac_delim
51841 build_vendor!$build_vendor$ac_delim
51842 build_os!$build_os$ac_delim
51843 host!$host$ac_delim
51844 host_cpu!$host_cpu$ac_delim
51845 host_vendor!$host_vendor$ac_delim
51846 host_os!$host_os$ac_delim
51847 wx_top_builddir!$wx_top_builddir$ac_delim
51848 CC!$CC$ac_delim
51849 CFLAGS!$CFLAGS$ac_delim
51850 LDFLAGS!$LDFLAGS$ac_delim
51851 CPPFLAGS!$CPPFLAGS$ac_delim
51852 ac_ct_CC!$ac_ct_CC$ac_delim
51853 EXEEXT!$EXEEXT$ac_delim
51854 OBJEXT!$OBJEXT$ac_delim
51855 CPP!$CPP$ac_delim
51856 GREP!$GREP$ac_delim
51857 EGREP!$EGREP$ac_delim
51858 CXX!$CXX$ac_delim
51859 CXXFLAGS!$CXXFLAGS$ac_delim
51860 ac_ct_CXX!$ac_ct_CXX$ac_delim
51861 AR!$AR$ac_delim
51862 subdirs!$subdirs$ac_delim
51863 PKG_CONFIG!$PKG_CONFIG$ac_delim
51864 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51865 GTK_LIBS!$GTK_LIBS$ac_delim
51866 GTK_CONFIG!$GTK_CONFIG$ac_delim
51867 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51868 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51869 XMKMF!$XMKMF$ac_delim
51870 X_CFLAGS!$X_CFLAGS$ac_delim
51871 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51872 X_LIBS!$X_LIBS$ac_delim
51873 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51874 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51875 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51876 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51877 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51878 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51879 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51880 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51881 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51882 LIBICONV!$LIBICONV$ac_delim
51883 GXX_VERSION!$GXX_VERSION$ac_delim
51884 SDL_CONFIG!$SDL_CONFIG$ac_delim
51885 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51886 SDL_LIBS!$SDL_LIBS$ac_delim
51887 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51888 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51889 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51890 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51891 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51892 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51893 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51894 HILDON_LIBS!$HILDON_LIBS$ac_delim
51895 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51896 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51897 GST_CFLAGS!$GST_CFLAGS$ac_delim
51898 GST_LIBS!$GST_LIBS$ac_delim
51899 _ACEOF
51900
51901   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51902     break
51903   elif $ac_last_try; then
51904     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51905 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51906    { (exit 1); exit 1; }; }
51907   else
51908     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51909   fi
51910 done
51911
51912 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51913 if test -n "$ac_eof"; then
51914   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51915   ac_eof=`expr $ac_eof + 1`
51916 fi
51917
51918 cat >>$CONFIG_STATUS <<_ACEOF
51919 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51921 _ACEOF
51922 sed '
51923 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51924 s/^/s,@/; s/!/@,|#_!!_#|/
51925 :n
51926 t n
51927 s/'"$ac_delim"'$/,g/; t
51928 s/$/\\/; p
51929 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51930 ' >>$CONFIG_STATUS <conf$$subs.sed
51931 rm -f conf$$subs.sed
51932 cat >>$CONFIG_STATUS <<_ACEOF
51933 CEOF$ac_eof
51934 _ACEOF
51935
51936
51937 ac_delim='%!_!# '
51938 for ac_last_try in false false false false false :; do
51939   cat >conf$$subs.sed <<_ACEOF
51940 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51941 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51942 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51943 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51944 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51945 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51946 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51947 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51948 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51949 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51950 VENDOR!$VENDOR$ac_delim
51951 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51952 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51953 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51954 WXUNIV!$WXUNIV$ac_delim
51955 MONOLITHIC!$MONOLITHIC$ac_delim
51956 USE_PLUGINS!$USE_PLUGINS$ac_delim
51957 CXXWARNINGS!$CXXWARNINGS$ac_delim
51958 EXTRALIBS!$EXTRALIBS$ac_delim
51959 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51960 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51961 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51962 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51963 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51964 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51965 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51966 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51967 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51968 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51969 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51970 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51971 UNICODE!$UNICODE$ac_delim
51972 BUILD!$BUILD$ac_delim
51973 DEBUG_INFO!$DEBUG_INFO$ac_delim
51974 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51975 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51976 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51977 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51978 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
51979 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
51980 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51981 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51982 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51983 RANLIB!$RANLIB$ac_delim
51984 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51985 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51986 INSTALL_DATA!$INSTALL_DATA$ac_delim
51987 LN_S!$LN_S$ac_delim
51988 SET_MAKE!$SET_MAKE$ac_delim
51989 MAKE_SET!$MAKE_SET$ac_delim
51990 AROPTIONS!$AROPTIONS$ac_delim
51991 STRIP!$STRIP$ac_delim
51992 NM!$NM$ac_delim
51993 INSTALL_DIR!$INSTALL_DIR$ac_delim
51994 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51995 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51996 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51997 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51998 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51999 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
52000 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
52001 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
52002 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
52003 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
52004 SO_SUFFIX!$SO_SUFFIX$ac_delim
52005 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
52006 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
52007 LIBPREFIX!$LIBPREFIX$ac_delim
52008 LIBEXT!$LIBEXT$ac_delim
52009 DLLPREFIX!$DLLPREFIX$ac_delim
52010 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
52011 dlldir!$dlldir$ac_delim
52012 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
52013 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
52014 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
52015 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
52016 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
52017 PIC_FLAG!$PIC_FLAG$ac_delim
52018 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
52019 USE_SOVERSION!$USE_SOVERSION$ac_delim
52020 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
52021 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
52022 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
52023 USE_MACVERSION!$USE_MACVERSION$ac_delim
52024 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
52025 SONAME_FLAG!$SONAME_FLAG$ac_delim
52026 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
52027 BK_DEPS!$BK_DEPS$ac_delim
52028 WINDRES!$WINDRES$ac_delim
52029 REZ!$REZ$ac_delim
52030 SETFILE!$SETFILE$ac_delim
52031 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
52032 GCC_PCH!$GCC_PCH$ac_delim
52033 ICC_PCH!$ICC_PCH$ac_delim
52034 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
52035 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
52036 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
52037 _ACEOF
52038
52039   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52040     break
52041   elif $ac_last_try; then
52042     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52043 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52044    { (exit 1); exit 1; }; }
52045   else
52046     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52047   fi
52048 done
52049
52050 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52051 if test -n "$ac_eof"; then
52052   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52053   ac_eof=`expr $ac_eof + 1`
52054 fi
52055
52056 cat >>$CONFIG_STATUS <<_ACEOF
52057 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52059 _ACEOF
52060 sed '
52061 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52062 s/^/s,@/; s/!/@,|#_!!_#|/
52063 :n
52064 t n
52065 s/'"$ac_delim"'$/,g/; t
52066 s/$/\\/; p
52067 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52068 ' >>$CONFIG_STATUS <conf$$subs.sed
52069 rm -f conf$$subs.sed
52070 cat >>$CONFIG_STATUS <<_ACEOF
52071 CEOF$ac_eof
52072 _ACEOF
52073
52074
52075 ac_delim='%!_!# '
52076 for ac_last_try in false false false false false :; do
52077   cat >conf$$subs.sed <<_ACEOF
52078 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
52079 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
52080 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
52081 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
52082 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
52083 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
52084 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
52085 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
52086 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
52087 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
52088 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
52089 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
52090 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
52091 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
52092 COND_BUILD_release!$COND_BUILD_release$ac_delim
52093 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
52094 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
52095 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
52096 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
52097 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
52098 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
52099 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
52100 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
52101 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
52102 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
52103 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
52104 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
52105 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
52106 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
52107 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
52108 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52109 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
52110 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
52111 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
52112 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
52113 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
52114 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
52115 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
52116 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
52117 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
52118 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
52119 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
52120 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
52121 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
52122 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
52123 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
52124 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
52125 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
52126 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52127 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
52128 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
52129 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
52130 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
52131 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
52132 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
52133 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
52134 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
52135 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
52136 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
52137 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
52138 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
52139 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
52140 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
52141 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
52142 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
52143 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52144 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52145 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52146 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52147 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
52148 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
52149 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
52150 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
52151 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
52152 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
52153 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
52154 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
52155 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
52156 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
52157 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
52158 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
52159 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
52160 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
52161 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
52162 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
52163 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
52164 COND_SHARED_0!$COND_SHARED_0$ac_delim
52165 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
52166 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
52167 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
52168 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
52169 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52170 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52171 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52172 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
52173 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
52174 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
52175 _ACEOF
52176
52177   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52178     break
52179   elif $ac_last_try; then
52180     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52182    { (exit 1); exit 1; }; }
52183   else
52184     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52185   fi
52186 done
52187
52188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52189 if test -n "$ac_eof"; then
52190   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52191   ac_eof=`expr $ac_eof + 1`
52192 fi
52193
52194 cat >>$CONFIG_STATUS <<_ACEOF
52195 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52197 _ACEOF
52198 sed '
52199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52200 s/^/s,@/; s/!/@,|#_!!_#|/
52201 :n
52202 t n
52203 s/'"$ac_delim"'$/,g/; t
52204 s/$/\\/; p
52205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52206 ' >>$CONFIG_STATUS <conf$$subs.sed
52207 rm -f conf$$subs.sed
52208 cat >>$CONFIG_STATUS <<_ACEOF
52209 CEOF$ac_eof
52210 _ACEOF
52211
52212
52213 ac_delim='%!_!# '
52214 for ac_last_try in false false false false false :; do
52215   cat >conf$$subs.sed <<_ACEOF
52216 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52217 COND_SHARED_1!$COND_SHARED_1$ac_delim
52218 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52219 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52220 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52221 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52222 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52223 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52224 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52225 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52226 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52227 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52228 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52229 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52230 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52231 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52232 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52233 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52234 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52235 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52236 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52237 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52238 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52239 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52240 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52241 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52242 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52243 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52244 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52245 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52246 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52247 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52248 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52249 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52250 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52251 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52252 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52253 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52254 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52255 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52256 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52257 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52258 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52259 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52260 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52261 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52262 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52263 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52264 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52265 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52266 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52267 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52268 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52269 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52270 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52271 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52272 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52273 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52274 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52275 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52276 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52277 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52278 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52279 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52280 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52281 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52282 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52283 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52284 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52285 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52286 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52287 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52288 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52289 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52290 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52291 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52292 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52293 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52294 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52295 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52296 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52297 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52298 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52299 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52300 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52301 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52302 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52303 DEREZ!$DEREZ$ac_delim
52304 SHARED!$SHARED$ac_delim
52305 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52306 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52307 USE_GUI!$USE_GUI$ac_delim
52308 AFMINSTALL!$AFMINSTALL$ac_delim
52309 WIN32INSTALL!$WIN32INSTALL$ac_delim
52310 TOOLKIT!$TOOLKIT$ac_delim
52311 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52312 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52313 _ACEOF
52314
52315   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52316     break
52317   elif $ac_last_try; then
52318     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52320    { (exit 1); exit 1; }; }
52321   else
52322     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52323   fi
52324 done
52325
52326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52327 if test -n "$ac_eof"; then
52328   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52329   ac_eof=`expr $ac_eof + 1`
52330 fi
52331
52332 cat >>$CONFIG_STATUS <<_ACEOF
52333 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52335 _ACEOF
52336 sed '
52337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52338 s/^/s,@/; s/!/@,|#_!!_#|/
52339 :n
52340 t n
52341 s/'"$ac_delim"'$/,g/; t
52342 s/$/\\/; p
52343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52344 ' >>$CONFIG_STATUS <conf$$subs.sed
52345 rm -f conf$$subs.sed
52346 cat >>$CONFIG_STATUS <<_ACEOF
52347 CEOF$ac_eof
52348 _ACEOF
52349
52350
52351 ac_delim='%!_!# '
52352 for ac_last_try in false false false false false :; do
52353   cat >conf$$subs.sed <<_ACEOF
52354 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52355 cross_compiling!$cross_compiling$ac_delim
52356 WIDGET_SET!$WIDGET_SET$ac_delim
52357 WX_RELEASE!$WX_RELEASE$ac_delim
52358 WX_VERSION!$WX_VERSION$ac_delim
52359 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52360 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52361 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
52362 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52363 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52364 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52365 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52366 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52367 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52368 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52369 GUIDIST!$GUIDIST$ac_delim
52370 DISTDIR!$DISTDIR$ac_delim
52371 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52372 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52373 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52374 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52375 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52376 RESCOMP!$RESCOMP$ac_delim
52377 RESFLAGS!$RESFLAGS$ac_delim
52378 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52379 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52380 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52381 LIBWXMACRES!$LIBWXMACRES$ac_delim
52382 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52383 MACSETFILE!$MACSETFILE$ac_delim
52384 GCC!$GCC$ac_delim
52385 DLLTOOL!$DLLTOOL$ac_delim
52386 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52387 LIBOBJS!$LIBOBJS$ac_delim
52388 LTLIBOBJS!$LTLIBOBJS$ac_delim
52389 _ACEOF
52390
52391   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
52392     break
52393   elif $ac_last_try; then
52394     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52395 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52396    { (exit 1); exit 1; }; }
52397   else
52398     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52399   fi
52400 done
52401
52402 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52403 if test -n "$ac_eof"; then
52404   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52405   ac_eof=`expr $ac_eof + 1`
52406 fi
52407
52408 cat >>$CONFIG_STATUS <<_ACEOF
52409 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52411 _ACEOF
52412 sed '
52413 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52414 s/^/s,@/; s/!/@,|#_!!_#|/
52415 :n
52416 t n
52417 s/'"$ac_delim"'$/,g/; t
52418 s/$/\\/; p
52419 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52420 ' >>$CONFIG_STATUS <conf$$subs.sed
52421 rm -f conf$$subs.sed
52422 cat >>$CONFIG_STATUS <<_ACEOF
52423 :end
52424 s/|#_!!_#|//g
52425 CEOF$ac_eof
52426 _ACEOF
52427
52428
52429 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52430 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52431 # trailing colons and then remove the whole line if VPATH becomes empty
52432 # (actually we leave an empty line to preserve line numbers).
52433 if test "x$srcdir" = x.; then
52434   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52435 s/:*\$(srcdir):*/:/
52436 s/:*\${srcdir}:*/:/
52437 s/:*@srcdir@:*/:/
52438 s/^\([^=]*=[     ]*\):*/\1/
52439 s/:*$//
52440 s/^[^=]*=[       ]*$//
52441 }'
52442 fi
52443
52444 cat >>$CONFIG_STATUS <<\_ACEOF
52445 fi # test -n "$CONFIG_FILES"
52446
52447
52448 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52449 do
52450   case $ac_tag in
52451   :[FHLC]) ac_mode=$ac_tag; continue;;
52452   esac
52453   case $ac_mode$ac_tag in
52454   :[FHL]*:*);;
52455   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52456 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52457    { (exit 1); exit 1; }; };;
52458   :[FH]-) ac_tag=-:-;;
52459   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52460   esac
52461   ac_save_IFS=$IFS
52462   IFS=:
52463   set x $ac_tag
52464   IFS=$ac_save_IFS
52465   shift
52466   ac_file=$1
52467   shift
52468
52469   case $ac_mode in
52470   :L) ac_source=$1;;
52471   :[FH])
52472     ac_file_inputs=
52473     for ac_f
52474     do
52475       case $ac_f in
52476       -) ac_f="$tmp/stdin";;
52477       *) # Look for the file first in the build tree, then in the source tree
52478          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52479          # because $ac_f cannot contain `:'.
52480          test -f "$ac_f" ||
52481            case $ac_f in
52482            [\\/$]*) false;;
52483            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52484            esac ||
52485            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52486 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52487    { (exit 1); exit 1; }; };;
52488       esac
52489       ac_file_inputs="$ac_file_inputs $ac_f"
52490     done
52491
52492     # Let's still pretend it is `configure' which instantiates (i.e., don't
52493     # use $as_me), people would be surprised to read:
52494     #    /* config.h.  Generated by config.status.  */
52495     configure_input="Generated from "`IFS=:
52496           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52497     if test x"$ac_file" != x-; then
52498       configure_input="$ac_file.  $configure_input"
52499       { echo "$as_me:$LINENO: creating $ac_file" >&5
52500 echo "$as_me: creating $ac_file" >&6;}
52501     fi
52502
52503     case $ac_tag in
52504     *:-:* | *:-) cat >"$tmp/stdin";;
52505     esac
52506     ;;
52507   esac
52508
52509   ac_dir=`$as_dirname -- "$ac_file" ||
52510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52511          X"$ac_file" : 'X\(//\)[^/]' \| \
52512          X"$ac_file" : 'X\(//\)$' \| \
52513          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52514 echo X"$ac_file" |
52515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52516             s//\1/
52517             q
52518           }
52519           /^X\(\/\/\)[^/].*/{
52520             s//\1/
52521             q
52522           }
52523           /^X\(\/\/\)$/{
52524             s//\1/
52525             q
52526           }
52527           /^X\(\/\).*/{
52528             s//\1/
52529             q
52530           }
52531           s/.*/./; q'`
52532   { as_dir="$ac_dir"
52533   case $as_dir in #(
52534   -*) as_dir=./$as_dir;;
52535   esac
52536   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52537     as_dirs=
52538     while :; do
52539       case $as_dir in #(
52540       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52541       *) as_qdir=$as_dir;;
52542       esac
52543       as_dirs="'$as_qdir' $as_dirs"
52544       as_dir=`$as_dirname -- "$as_dir" ||
52545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52546          X"$as_dir" : 'X\(//\)[^/]' \| \
52547          X"$as_dir" : 'X\(//\)$' \| \
52548          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52549 echo X"$as_dir" |
52550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52551             s//\1/
52552             q
52553           }
52554           /^X\(\/\/\)[^/].*/{
52555             s//\1/
52556             q
52557           }
52558           /^X\(\/\/\)$/{
52559             s//\1/
52560             q
52561           }
52562           /^X\(\/\).*/{
52563             s//\1/
52564             q
52565           }
52566           s/.*/./; q'`
52567       test -d "$as_dir" && break
52568     done
52569     test -z "$as_dirs" || eval "mkdir $as_dirs"
52570   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52571 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52572    { (exit 1); exit 1; }; }; }
52573   ac_builddir=.
52574
52575 case "$ac_dir" in
52576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52577 *)
52578   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52579   # A ".." for each directory in $ac_dir_suffix.
52580   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52581   case $ac_top_builddir_sub in
52582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52584   esac ;;
52585 esac
52586 ac_abs_top_builddir=$ac_pwd
52587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52588 # for backward compatibility:
52589 ac_top_builddir=$ac_top_build_prefix
52590
52591 case $srcdir in
52592   .)  # We are building in place.
52593     ac_srcdir=.
52594     ac_top_srcdir=$ac_top_builddir_sub
52595     ac_abs_top_srcdir=$ac_pwd ;;
52596   [\\/]* | ?:[\\/]* )  # Absolute name.
52597     ac_srcdir=$srcdir$ac_dir_suffix;
52598     ac_top_srcdir=$srcdir
52599     ac_abs_top_srcdir=$srcdir ;;
52600   *) # Relative name.
52601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52602     ac_top_srcdir=$ac_top_build_prefix$srcdir
52603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52604 esac
52605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52606
52607
52608   case $ac_mode in
52609   :F)
52610   #
52611   # CONFIG_FILE
52612   #
52613
52614   case $INSTALL in
52615   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52616   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52617   esac
52618 _ACEOF
52619
52620 cat >>$CONFIG_STATUS <<\_ACEOF
52621 # If the template does not know about datarootdir, expand it.
52622 # FIXME: This hack should be removed a few years after 2.60.
52623 ac_datarootdir_hack=; ac_datarootdir_seen=
52624
52625 case `sed -n '/datarootdir/ {
52626   p
52627   q
52628 }
52629 /@datadir@/p
52630 /@docdir@/p
52631 /@infodir@/p
52632 /@localedir@/p
52633 /@mandir@/p
52634 ' $ac_file_inputs` in
52635 *datarootdir*) ac_datarootdir_seen=yes;;
52636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52637   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52638 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52639 _ACEOF
52640 cat >>$CONFIG_STATUS <<_ACEOF
52641   ac_datarootdir_hack='
52642   s&@datadir@&$datadir&g
52643   s&@docdir@&$docdir&g
52644   s&@infodir@&$infodir&g
52645   s&@localedir@&$localedir&g
52646   s&@mandir@&$mandir&g
52647     s&\\\${datarootdir}&$datarootdir&g' ;;
52648 esac
52649 _ACEOF
52650
52651 # Neutralize VPATH when `$srcdir' = `.'.
52652 # Shell code in configure.ac might set extrasub.
52653 # FIXME: do we really want to maintain this feature?
52654 cat >>$CONFIG_STATUS <<_ACEOF
52655   sed "$ac_vpsub
52656 $extrasub
52657 _ACEOF
52658 cat >>$CONFIG_STATUS <<\_ACEOF
52659 :t
52660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52661 s&@configure_input@&$configure_input&;t t
52662 s&@top_builddir@&$ac_top_builddir_sub&;t t
52663 s&@srcdir@&$ac_srcdir&;t t
52664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52665 s&@top_srcdir@&$ac_top_srcdir&;t t
52666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52667 s&@builddir@&$ac_builddir&;t t
52668 s&@abs_builddir@&$ac_abs_builddir&;t t
52669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52670 s&@INSTALL@&$ac_INSTALL&;t t
52671 $ac_datarootdir_hack
52672 " $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
52673
52674 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52675   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52676   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52677   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52678 which seems to be undefined.  Please make sure it is defined." >&5
52679 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52680 which seems to be undefined.  Please make sure it is defined." >&2;}
52681
52682   rm -f "$tmp/stdin"
52683   case $ac_file in
52684   -) cat "$tmp/out"; rm -f "$tmp/out";;
52685   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52686   esac
52687  ;;
52688   :H)
52689   #
52690   # CONFIG_HEADER
52691   #
52692 _ACEOF
52693
52694 # Transform confdefs.h into a sed script `conftest.defines', that
52695 # substitutes the proper values into config.h.in to produce config.h.
52696 rm -f conftest.defines conftest.tail
52697 # First, append a space to every undef/define line, to ease matching.
52698 echo 's/$/ /' >conftest.defines
52699 # Then, protect against being on the right side of a sed subst, or in
52700 # an unquoted here document, in config.status.  If some macros were
52701 # called several times there might be several #defines for the same
52702 # symbol, which is useless.  But do not sort them, since the last
52703 # AC_DEFINE must be honored.
52704 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52705 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52706 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52707 # PARAMS is the parameter list in the macro definition--in most cases, it's
52708 # just an empty string.
52709 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52710 ac_dB='\\)[      (].*,\\1define\\2'
52711 ac_dC=' '
52712 ac_dD=' ,'
52713
52714 uniq confdefs.h |
52715   sed -n '
52716         t rset
52717         :rset
52718         s/^[     ]*#[    ]*define[       ][      ]*//
52719         t ok
52720         d
52721         :ok
52722         s/[\\&,]/\\&/g
52723         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52724         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52725   ' >>conftest.defines
52726
52727 # Remove the space that was appended to ease matching.
52728 # Then replace #undef with comments.  This is necessary, for
52729 # example, in the case of _POSIX_SOURCE, which is predefined and required
52730 # on some systems where configure will not decide to define it.
52731 # (The regexp can be short, since the line contains either #define or #undef.)
52732 echo 's/ $//
52733 s,^[     #]*u.*,/* & */,' >>conftest.defines
52734
52735 # Break up conftest.defines:
52736 ac_max_sed_lines=50
52737
52738 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52739 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52740 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52741 # et cetera.
52742 ac_in='$ac_file_inputs'
52743 ac_out='"$tmp/out1"'
52744 ac_nxt='"$tmp/out2"'
52745
52746 while :
52747 do
52748   # Write a here document:
52749     cat >>$CONFIG_STATUS <<_ACEOF
52750     # First, check the format of the line:
52751     cat >"\$tmp/defines.sed" <<\\CEOF
52752 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52753 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52754 b
52755 :def
52756 _ACEOF
52757   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52758   echo 'CEOF
52759     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52760   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52761   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52762   grep . conftest.tail >/dev/null || break
52763   rm -f conftest.defines
52764   mv conftest.tail conftest.defines
52765 done
52766 rm -f conftest.defines conftest.tail
52767
52768 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52769 cat >>$CONFIG_STATUS <<\_ACEOF
52770   if test x"$ac_file" != x-; then
52771     echo "/* $configure_input  */" >"$tmp/config.h"
52772     cat "$ac_result" >>"$tmp/config.h"
52773     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52774       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52775 echo "$as_me: $ac_file is unchanged" >&6;}
52776     else
52777       rm -f $ac_file
52778       mv "$tmp/config.h" $ac_file
52779     fi
52780   else
52781     echo "/* $configure_input  */"
52782     cat "$ac_result"
52783   fi
52784   rm -f "$tmp/out12"
52785  ;;
52786
52787   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52788 echo "$as_me: executing $ac_file commands" >&6;}
52789  ;;
52790   esac
52791
52792
52793   case $ac_file$ac_mode in
52794     "rcdefs.h":C)
52795             mkdir -p $outdir &&
52796             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52797          ;;
52798     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52799     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52800     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52801     "wx-config":C)  rm -f wx-config
52802                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52803                     ;;
52804
52805   esac
52806 done # for ac_tag
52807
52808
52809 { (exit 0); exit 0; }
52810 _ACEOF
52811 chmod +x $CONFIG_STATUS
52812 ac_clean_files=$ac_clean_files_save
52813
52814
52815 # configure is writing to config.log, and then calls config.status.
52816 # config.status does its own redirection, appending to config.log.
52817 # Unfortunately, on DOS this fails, as config.log is still kept open
52818 # by configure, so config.status won't be able to write to it; its
52819 # output is simply discarded.  So we exec the FD to /dev/null,
52820 # effectively closing config.log, so it can be properly (re)opened and
52821 # appended to by config.status.  When coming back to configure, we
52822 # need to make the FD available again.
52823 if test "$no_create" != yes; then
52824   ac_cs_success=:
52825   ac_config_status_args=
52826   test "$silent" = yes &&
52827     ac_config_status_args="$ac_config_status_args --quiet"
52828   exec 5>/dev/null
52829   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52830   exec 5>>config.log
52831   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52832   # would make configure fail if this is the last instruction.
52833   $ac_cs_success || { (exit 1); exit 1; }
52834 fi
52835
52836 #
52837 # CONFIG_SUBDIRS section.
52838 #
52839 if test "$no_recursion" != yes; then
52840
52841   # Remove --cache-file and --srcdir arguments so they do not pile up.
52842   ac_sub_configure_args=
52843   ac_prev=
52844   eval "set x $ac_configure_args"
52845   shift
52846   for ac_arg
52847   do
52848     if test -n "$ac_prev"; then
52849       ac_prev=
52850       continue
52851     fi
52852     case $ac_arg in
52853     -cache-file | --cache-file | --cache-fil | --cache-fi \
52854     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52855       ac_prev=cache_file ;;
52856     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52857     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52858     | --c=*)
52859       ;;
52860     --config-cache | -C)
52861       ;;
52862     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52863       ac_prev=srcdir ;;
52864     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52865       ;;
52866     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52867       ac_prev=prefix ;;
52868     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52869       ;;
52870     *)
52871       case $ac_arg in
52872       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52873       esac
52874       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52875     esac
52876   done
52877
52878   # Always prepend --prefix to ensure using the same prefix
52879   # in subdir configurations.
52880   ac_arg="--prefix=$prefix"
52881   case $ac_arg in
52882   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52883   esac
52884   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52885
52886   # Pass --silent
52887   if test "$silent" = yes; then
52888     ac_sub_configure_args="--silent $ac_sub_configure_args"
52889   fi
52890
52891   ac_popdir=`pwd`
52892   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52893
52894     # Do not complain, so a configure script can configure whichever
52895     # parts of a large source tree are present.
52896     test -d "$srcdir/$ac_dir" || continue
52897
52898     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52899     echo "$as_me:$LINENO: $ac_msg" >&5
52900     echo "$ac_msg" >&6
52901     { as_dir="$ac_dir"
52902   case $as_dir in #(
52903   -*) as_dir=./$as_dir;;
52904   esac
52905   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52906     as_dirs=
52907     while :; do
52908       case $as_dir in #(
52909       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52910       *) as_qdir=$as_dir;;
52911       esac
52912       as_dirs="'$as_qdir' $as_dirs"
52913       as_dir=`$as_dirname -- "$as_dir" ||
52914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52915          X"$as_dir" : 'X\(//\)[^/]' \| \
52916          X"$as_dir" : 'X\(//\)$' \| \
52917          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52918 echo X"$as_dir" |
52919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52920             s//\1/
52921             q
52922           }
52923           /^X\(\/\/\)[^/].*/{
52924             s//\1/
52925             q
52926           }
52927           /^X\(\/\/\)$/{
52928             s//\1/
52929             q
52930           }
52931           /^X\(\/\).*/{
52932             s//\1/
52933             q
52934           }
52935           s/.*/./; q'`
52936       test -d "$as_dir" && break
52937     done
52938     test -z "$as_dirs" || eval "mkdir $as_dirs"
52939   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52940 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52941    { (exit 1); exit 1; }; }; }
52942     ac_builddir=.
52943
52944 case "$ac_dir" in
52945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52946 *)
52947   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52948   # A ".." for each directory in $ac_dir_suffix.
52949   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52950   case $ac_top_builddir_sub in
52951   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52952   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52953   esac ;;
52954 esac
52955 ac_abs_top_builddir=$ac_pwd
52956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52957 # for backward compatibility:
52958 ac_top_builddir=$ac_top_build_prefix
52959
52960 case $srcdir in
52961   .)  # We are building in place.
52962     ac_srcdir=.
52963     ac_top_srcdir=$ac_top_builddir_sub
52964     ac_abs_top_srcdir=$ac_pwd ;;
52965   [\\/]* | ?:[\\/]* )  # Absolute name.
52966     ac_srcdir=$srcdir$ac_dir_suffix;
52967     ac_top_srcdir=$srcdir
52968     ac_abs_top_srcdir=$srcdir ;;
52969   *) # Relative name.
52970     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52971     ac_top_srcdir=$ac_top_build_prefix$srcdir
52972     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52973 esac
52974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52975
52976
52977     cd "$ac_dir"
52978
52979     # Check for guested configure; otherwise get Cygnus style configure.
52980     if test -f "$ac_srcdir/configure.gnu"; then
52981       ac_sub_configure=$ac_srcdir/configure.gnu
52982     elif test -f "$ac_srcdir/configure"; then
52983       ac_sub_configure=$ac_srcdir/configure
52984     elif test -f "$ac_srcdir/configure.in"; then
52985       # This should be Cygnus configure.
52986       ac_sub_configure=$ac_aux_dir/configure
52987     else
52988       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52990       ac_sub_configure=
52991     fi
52992
52993     # The recursion is here.
52994     if test -n "$ac_sub_configure"; then
52995       # Make the cache file name correct relative to the subdirectory.
52996       case $cache_file in
52997       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52998       *) # Relative name.
52999         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
53000       esac
53001
53002       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53003 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53004       # The eval makes quoting arguments work.
53005       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53006            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
53007         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53008 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53009    { (exit 1); exit 1; }; }
53010     fi
53011
53012     cd "$ac_popdir"
53013   done
53014 fi
53015
53016
53017 echo
53018 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53019 echo ""
53020 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
53021 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
53022
53023 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
53024 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
53025 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
53026 if test "$wxUSE_UNICODE" = "yes"; then
53027     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53028         echo " (using UTF-8)"
53029     else
53030         echo " (using wchar_t)"
53031     fi
53032 else
53033     echo
53034 fi
53035
53036 echo "  What level of wxWidgets compatibility should be enabled?"
53037 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
53038 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
53039
53040 echo "  Which libraries should wxWidgets use?"
53041 echo "                                       STL                ${wxUSE_STL}"
53042 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
53043 echo "                                       png                ${wxUSE_LIBPNG-none}"
53044 echo "                                       regex              ${wxUSE_REGEX}"
53045 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
53046 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53047 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
53048 fi
53049 echo "                                       zlib               ${wxUSE_ZLIB}"
53050 echo "                                       expat              ${wxUSE_EXPAT}"
53051 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
53052 echo "                                       sdl                ${wxUSE_LIBSDL}"
53053
53054 echo ""
53055