Fixes for archive tests on Windows.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 59905 2009-03-28 19:10:05Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 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 DYLIB_RPATH_INSTALL
754 DYLIB_RPATH_POSTLINK
755 SAMPLES_RPATH_FLAG
756 HEADER_PAD_OPTION
757 HOST_SUFFIX
758 CPPUNIT_CFLAGS
759 CPPUNIT_LIBS
760 RANLIB
761 INSTALL_PROGRAM
762 INSTALL_SCRIPT
763 INSTALL_DATA
764 LN_S
765 SET_MAKE
766 MAKE_SET
767 AROPTIONS
768 STRIP
769 NM
770 INSTALL_DIR
771 LDFLAGS_GUI
772 IF_GNU_MAKE
773 PLATFORM_UNIX
774 PLATFORM_WIN32
775 PLATFORM_MSDOS
776 PLATFORM_MAC
777 PLATFORM_MACOS
778 PLATFORM_MACOSX
779 PLATFORM_OS2
780 PLATFORM_BEOS
781 SO_SUFFIX
782 SO_SUFFIX_MODULE
783 DLLIMP_SUFFIX
784 LIBPREFIX
785 LIBEXT
786 DLLPREFIX
787 DLLPREFIX_MODULE
788 dlldir
789 AIX_CXX_LD
790 SHARED_LD_CC
791 SHARED_LD_CXX
792 SHARED_LD_MODULE_CC
793 SHARED_LD_MODULE_CXX
794 PIC_FLAG
795 WINDOWS_IMPLIB
796 USE_SOVERSION
797 USE_SOVERLINUX
798 USE_SOVERSOLARIS
799 USE_SOVERCYGWIN
800 USE_MACVERSION
801 USE_SOSYMLINKS
802 SONAME_FLAG
803 DEPS_TRACKING
804 BK_DEPS
805 WINDRES
806 REZ
807 SETFILE
808 OBJCXXFLAGS
809 GCC_PCH
810 ICC_PCH
811 ICC_PCH_CREATE_SWITCH
812 ICC_PCH_USE_SWITCH
813 BK_MAKE_PCH
814 COND_BUILD_DEBUG
815 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
816 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
817 COND_BUILD_DEBUG_UNICODE_0
818 COND_BUILD_DEBUG_UNICODE_1
819 COND_BUILD_RELEASE
820 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
821 COND_BUILD_RELEASE_UNICODE_0
822 COND_BUILD_RELEASE_UNICODE_1
823 COND_BUILD_debug
824 COND_BUILD_debug_DEBUG_FLAG_default
825 COND_BUILD_debug_DEBUG_INFO_default
826 COND_BUILD_debug_UNICODE_0
827 COND_BUILD_debug_UNICODE_1
828 COND_BUILD_release
829 COND_BUILD_release_DEBUG_INFO_default
830 COND_BUILD_release_UNICODE_0
831 COND_BUILD_release_UNICODE_1
832 COND_DEBUG_FLAG_1
833 COND_DEBUG_INFO_0
834 COND_DEBUG_INFO_1
835 COND_DEPS_TRACKING_0
836 COND_DEPS_TRACKING_1
837 COND_GCC_PCH_1
838 COND_ICC_PCH_1
839 COND_MONOLITHIC_0
840 COND_MONOLITHIC_0_SHARED_0
841 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
842 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
843 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
845 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
846 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
847 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
848 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
849 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
850 COND_MONOLITHIC_0_SHARED_1
851 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
852 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
853 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
855 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
856 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
857 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
858 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
859 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
860 COND_MONOLITHIC_0_USE_AUI_1
861 COND_MONOLITHIC_0_USE_GUI_1
862 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
863 COND_MONOLITHIC_0_USE_HTML_1
864 COND_MONOLITHIC_0_USE_MEDIA_1
865 COND_MONOLITHIC_0_USE_PROPGRID_1
866 COND_MONOLITHIC_0_USE_QA_1
867 COND_MONOLITHIC_0_USE_RICHTEXT_1
868 COND_MONOLITHIC_0_USE_STC_1
869 COND_MONOLITHIC_0_USE_XRC_1
870 COND_MONOLITHIC_1
871 COND_MONOLITHIC_1_SHARED_0
872 COND_MONOLITHIC_1_SHARED_1
873 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
874 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
875 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
876 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
877 COND_PLATFORM_MACOSX_1
878 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
879 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
880 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
881 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
882 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
883 COND_PLATFORM_MACOSX_1_USE_GUI_1
884 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
885 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
886 COND_PLATFORM_MACOS_1
887 COND_PLATFORM_MAC_0
888 COND_PLATFORM_MAC_1
889 COND_PLATFORM_MSDOS_0
890 COND_PLATFORM_MSDOS_1
891 COND_PLATFORM_OS2_1
892 COND_PLATFORM_UNIX_0
893 COND_PLATFORM_UNIX_1
894 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
895 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
896 COND_PLATFORM_UNIX_1_USE_GUI_1
897 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
898 COND_PLATFORM_WIN32_0
899 COND_PLATFORM_WIN32_1
900 COND_SHARED_0
901 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
902 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
903 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
904 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
905 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
906 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
907 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
908 COND_SHARED_0_USE_STC_1
909 COND_SHARED_0_wxUSE_EXPAT_builtin
910 COND_SHARED_0_wxUSE_REGEX_builtin
911 COND_SHARED_0_wxUSE_ZLIB_builtin
912 COND_SHARED_1
913 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
914 COND_TOOLKIT_
915 COND_TOOLKIT_COCOA
916 COND_TOOLKIT_COCOA_USE_GUI_1
917 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
918 COND_TOOLKIT_DFB
919 COND_TOOLKIT_DFB_USE_GUI_1
920 COND_TOOLKIT_GTK
921 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
922 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
923 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
924 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
926 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
927 COND_TOOLKIT_GTK_USE_GUI_1
928 COND_TOOLKIT_MAC
929 COND_TOOLKIT_MGL
930 COND_TOOLKIT_MGL_USE_GUI_1
931 COND_TOOLKIT_MOTIF
932 COND_TOOLKIT_MOTIF_USE_GUI_1
933 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_MSW
935 COND_TOOLKIT_MSW_USE_GUI_1
936 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_MSW_WXUNIV_0
938 COND_TOOLKIT_OSX_CARBON
939 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
940 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_OSX_COCOA
942 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
943 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
944 COND_TOOLKIT_OSX_IPHONE
945 COND_TOOLKIT_PM
946 COND_TOOLKIT_PM_USE_GUI_1
947 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
948 COND_TOOLKIT_WINCE
949 COND_TOOLKIT_WINCE_USE_GUI_1
950 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
951 COND_TOOLKIT_WINCE_WXUNIV_0
952 COND_TOOLKIT_X11
953 COND_TOOLKIT_X11_USE_GUI_1
954 COND_UNICODE_1
955 COND_USE_EXCEPTIONS_0
956 COND_USE_EXCEPTIONS_1
957 COND_USE_GUI_0
958 COND_USE_GUI_1
959 COND_USE_GUI_1_USE_OPENGL_1
960 COND_USE_GUI_1_WXUNIV_0
961 COND_USE_GUI_1_WXUNIV_1
962 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
963 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
964 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
965 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
966 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
967 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
968 COND_USE_OPENGL_1
969 COND_USE_PCH_1
970 COND_USE_PLUGINS_0
971 COND_USE_RTTI_0
972 COND_USE_RTTI_1
973 COND_USE_SOSYMLINKS_1
974 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
975 COND_USE_SOVERLINUX_1
976 COND_USE_SOVERSION_0
977 COND_USE_SOVERSOLARIS_1
978 COND_USE_STC_1
979 COND_USE_THREADS_0
980 COND_USE_THREADS_1
981 COND_USE_XRC_1
982 COND_WINDOWS_IMPLIB_1
983 COND_WITH_PLUGIN_SDL_1
984 COND_WXUNIV_0
985 COND_WXUNIV_1
986 COND_WXUSE_EXPAT_BUILTIN
987 COND_WXUSE_LIBJPEG_BUILTIN
988 COND_WXUSE_LIBPNG_BUILTIN
989 COND_WXUSE_LIBTIFF_BUILTIN
990 COND_WXUSE_REGEX_BUILTIN
991 COND_WXUSE_ZLIB_BUILTIN
992 COND_wxUSE_EXPAT_builtin
993 COND_wxUSE_LIBJPEG_builtin
994 COND_wxUSE_LIBPNG_builtin
995 COND_wxUSE_LIBTIFF_builtin
996 COND_wxUSE_REGEX_builtin
997 COND_wxUSE_ZLIB_builtin
998 DEREZ
999 SHARED
1000 WX_LIBRARY_BASENAME_NOGUI
1001 WX_LIBRARY_BASENAME_GUI
1002 USE_GUI
1003 AFMINSTALL
1004 WIN32INSTALL
1005 TOOLKIT
1006 TOOLKIT_DIR
1007 TOOLCHAIN_NAME
1008 TOOLCHAIN_FULLNAME
1009 cross_compiling
1010 WIDGET_SET
1011 WX_RELEASE
1012 WX_VERSION
1013 WX_SUBVERSION
1014 WX_CHARTYPE
1015 WX_DEBUGTYPE
1016 WXCONFIG_CPPFLAGS
1017 WXCONFIG_CFLAGS
1018 WXCONFIG_CXXFLAGS
1019 WXCONFIG_LIBS
1020 WXCONFIG_RPATH
1021 WXCONFIG_LDFLAGS_GUI
1022 WXCONFIG_RESFLAGS
1023 GUIDIST
1024 DISTDIR
1025 SAMPLES_SUBDIRS
1026 LDFLAGS_GL
1027 OPENGL_LIBS
1028 DMALLOC_LIBS
1029 WX_VERSION_TAG
1030 RESCOMP
1031 RESFLAGS
1032 RESPROGRAMOBJ
1033 WX_RESOURCES_MACOSX_ASCII
1034 WX_RESOURCES_MACOSX_DATA
1035 LIBWXMACRES
1036 POSTLINK_COMMAND
1037 MACSETFILE
1038 GCC
1039 DLLTOOL
1040 CPPUNIT_CONFIG
1041 LIBOBJS
1042 LTLIBOBJS'
1043 ac_subst_files=''
1044       ac_precious_vars='build_alias
1045 host_alias
1046 target_alias
1047 CC
1048 CFLAGS
1049 LDFLAGS
1050 LIBS
1051 CPPFLAGS
1052 CPP
1053 CXX
1054 CXXFLAGS
1055 CCC
1056 PKG_CONFIG
1057 DIRECTFB_CFLAGS
1058 DIRECTFB_LIBS
1059 XMKMF
1060 PANGOX_CFLAGS
1061 PANGOX_LIBS
1062 PANGOFT2_CFLAGS
1063 PANGOFT2_LIBS
1064 PANGOXFT_CFLAGS
1065 PANGOXFT_LIBS
1066 GTKPRINT_CFLAGS
1067 GTKPRINT_LIBS
1068 LIBGNOMEPRINTUI_CFLAGS
1069 LIBGNOMEPRINTUI_LIBS
1070 GNOMEVFS_CFLAGS
1071 GNOMEVFS_LIBS
1072 HILDON_CFLAGS
1073 HILDON_LIBS
1074 CAIRO_CFLAGS
1075 CAIRO_LIBS
1076 GST_CFLAGS
1077 GST_LIBS'
1078 ac_subdirs_all='src/tiff
1079 src/expat'
1080
1081 # Initialize some variables set by options.
1082 ac_init_help=
1083 ac_init_version=false
1084 # The variables have the same names as the options, with
1085 # dashes changed to underlines.
1086 cache_file=/dev/null
1087 exec_prefix=NONE
1088 no_create=
1089 no_recursion=
1090 prefix=NONE
1091 program_prefix=NONE
1092 program_suffix=NONE
1093 program_transform_name=s,x,x,
1094 silent=
1095 site=
1096 srcdir=
1097 verbose=
1098 x_includes=NONE
1099 x_libraries=NONE
1100
1101 # Installation directory options.
1102 # These are left unexpanded so users can "make install exec_prefix=/foo"
1103 # and all the variables that are supposed to be based on exec_prefix
1104 # by default will actually change.
1105 # Use braces instead of parens because sh, perl, etc. also accept them.
1106 # (The list follows the same order as the GNU Coding Standards.)
1107 bindir='${exec_prefix}/bin'
1108 sbindir='${exec_prefix}/sbin'
1109 libexecdir='${exec_prefix}/libexec'
1110 datarootdir='${prefix}/share'
1111 datadir='${datarootdir}'
1112 sysconfdir='${prefix}/etc'
1113 sharedstatedir='${prefix}/com'
1114 localstatedir='${prefix}/var'
1115 includedir='${prefix}/include'
1116 oldincludedir='/usr/include'
1117 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1118 infodir='${datarootdir}/info'
1119 htmldir='${docdir}'
1120 dvidir='${docdir}'
1121 pdfdir='${docdir}'
1122 psdir='${docdir}'
1123 libdir='${exec_prefix}/lib'
1124 localedir='${datarootdir}/locale'
1125 mandir='${datarootdir}/man'
1126
1127 ac_prev=
1128 ac_dashdash=
1129 for ac_option
1130 do
1131   # If the previous option needs an argument, assign it.
1132   if test -n "$ac_prev"; then
1133     eval $ac_prev=\$ac_option
1134     ac_prev=
1135     continue
1136   fi
1137
1138   case $ac_option in
1139   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1140   *)    ac_optarg=yes ;;
1141   esac
1142
1143   # Accept the important Cygnus configure options, so we can diagnose typos.
1144
1145   case $ac_dashdash$ac_option in
1146   --)
1147     ac_dashdash=yes ;;
1148
1149   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1150     ac_prev=bindir ;;
1151   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1152     bindir=$ac_optarg ;;
1153
1154   -build | --build | --buil | --bui | --bu)
1155     ac_prev=build_alias ;;
1156   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1157     build_alias=$ac_optarg ;;
1158
1159   -cache-file | --cache-file | --cache-fil | --cache-fi \
1160   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1161     ac_prev=cache_file ;;
1162   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1163   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1164     cache_file=$ac_optarg ;;
1165
1166   --config-cache | -C)
1167     cache_file=config.cache ;;
1168
1169   -datadir | --datadir | --datadi | --datad)
1170     ac_prev=datadir ;;
1171   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1172     datadir=$ac_optarg ;;
1173
1174   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1175   | --dataroo | --dataro | --datar)
1176     ac_prev=datarootdir ;;
1177   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1178   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1179     datarootdir=$ac_optarg ;;
1180
1181   -disable-* | --disable-*)
1182     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1186    { (exit 1); exit 1; }; }
1187     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1188     eval enable_$ac_feature=no ;;
1189
1190   -docdir | --docdir | --docdi | --doc | --do)
1191     ac_prev=docdir ;;
1192   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193     docdir=$ac_optarg ;;
1194
1195   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196     ac_prev=dvidir ;;
1197   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198     dvidir=$ac_optarg ;;
1199
1200   -enable-* | --enable-*)
1201     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1205    { (exit 1); exit 1; }; }
1206     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1207     eval enable_$ac_feature=\$ac_optarg ;;
1208
1209   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1210   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1211   | --exec | --exe | --ex)
1212     ac_prev=exec_prefix ;;
1213   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1214   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1215   | --exec=* | --exe=* | --ex=*)
1216     exec_prefix=$ac_optarg ;;
1217
1218   -gas | --gas | --ga | --g)
1219     # Obsolete; use --with-gas.
1220     with_gas=yes ;;
1221
1222   -help | --help | --hel | --he | -h)
1223     ac_init_help=long ;;
1224   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1225     ac_init_help=recursive ;;
1226   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1227     ac_init_help=short ;;
1228
1229   -host | --host | --hos | --ho)
1230     ac_prev=host_alias ;;
1231   -host=* | --host=* | --hos=* | --ho=*)
1232     host_alias=$ac_optarg ;;
1233
1234   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1235     ac_prev=htmldir ;;
1236   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1237   | --ht=*)
1238     htmldir=$ac_optarg ;;
1239
1240   -includedir | --includedir | --includedi | --included | --include \
1241   | --includ | --inclu | --incl | --inc)
1242     ac_prev=includedir ;;
1243   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1244   | --includ=* | --inclu=* | --incl=* | --inc=*)
1245     includedir=$ac_optarg ;;
1246
1247   -infodir | --infodir | --infodi | --infod | --info | --inf)
1248     ac_prev=infodir ;;
1249   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1250     infodir=$ac_optarg ;;
1251
1252   -libdir | --libdir | --libdi | --libd)
1253     ac_prev=libdir ;;
1254   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1255     libdir=$ac_optarg ;;
1256
1257   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1258   | --libexe | --libex | --libe)
1259     ac_prev=libexecdir ;;
1260   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1261   | --libexe=* | --libex=* | --libe=*)
1262     libexecdir=$ac_optarg ;;
1263
1264   -localedir | --localedir | --localedi | --localed | --locale)
1265     ac_prev=localedir ;;
1266   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1267     localedir=$ac_optarg ;;
1268
1269   -localstatedir | --localstatedir | --localstatedi | --localstated \
1270   | --localstate | --localstat | --localsta | --localst | --locals)
1271     ac_prev=localstatedir ;;
1272   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1273   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1274     localstatedir=$ac_optarg ;;
1275
1276   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1277     ac_prev=mandir ;;
1278   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1279     mandir=$ac_optarg ;;
1280
1281   -nfp | --nfp | --nf)
1282     # Obsolete; use --without-fp.
1283     with_fp=no ;;
1284
1285   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1286   | --no-cr | --no-c | -n)
1287     no_create=yes ;;
1288
1289   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1290   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1291     no_recursion=yes ;;
1292
1293   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1294   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1295   | --oldin | --oldi | --old | --ol | --o)
1296     ac_prev=oldincludedir ;;
1297   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1298   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1299   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1300     oldincludedir=$ac_optarg ;;
1301
1302   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1303     ac_prev=prefix ;;
1304   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1305     prefix=$ac_optarg ;;
1306
1307   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1308   | --program-pre | --program-pr | --program-p)
1309     ac_prev=program_prefix ;;
1310   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1311   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1312     program_prefix=$ac_optarg ;;
1313
1314   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1315   | --program-suf | --program-su | --program-s)
1316     ac_prev=program_suffix ;;
1317   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1318   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1319     program_suffix=$ac_optarg ;;
1320
1321   -program-transform-name | --program-transform-name \
1322   | --program-transform-nam | --program-transform-na \
1323   | --program-transform-n | --program-transform- \
1324   | --program-transform | --program-transfor \
1325   | --program-transfo | --program-transf \
1326   | --program-trans | --program-tran \
1327   | --progr-tra | --program-tr | --program-t)
1328     ac_prev=program_transform_name ;;
1329   -program-transform-name=* | --program-transform-name=* \
1330   | --program-transform-nam=* | --program-transform-na=* \
1331   | --program-transform-n=* | --program-transform-=* \
1332   | --program-transform=* | --program-transfor=* \
1333   | --program-transfo=* | --program-transf=* \
1334   | --program-trans=* | --program-tran=* \
1335   | --progr-tra=* | --program-tr=* | --program-t=*)
1336     program_transform_name=$ac_optarg ;;
1337
1338   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1339     ac_prev=pdfdir ;;
1340   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1341     pdfdir=$ac_optarg ;;
1342
1343   -psdir | --psdir | --psdi | --psd | --ps)
1344     ac_prev=psdir ;;
1345   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1346     psdir=$ac_optarg ;;
1347
1348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1349   | -silent | --silent | --silen | --sile | --sil)
1350     silent=yes ;;
1351
1352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1353     ac_prev=sbindir ;;
1354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1355   | --sbi=* | --sb=*)
1356     sbindir=$ac_optarg ;;
1357
1358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1360   | --sharedst | --shareds | --shared | --share | --shar \
1361   | --sha | --sh)
1362     ac_prev=sharedstatedir ;;
1363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1366   | --sha=* | --sh=*)
1367     sharedstatedir=$ac_optarg ;;
1368
1369   -site | --site | --sit)
1370     ac_prev=site ;;
1371   -site=* | --site=* | --sit=*)
1372     site=$ac_optarg ;;
1373
1374   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1375     ac_prev=srcdir ;;
1376   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1377     srcdir=$ac_optarg ;;
1378
1379   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1380   | --syscon | --sysco | --sysc | --sys | --sy)
1381     ac_prev=sysconfdir ;;
1382   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1383   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1384     sysconfdir=$ac_optarg ;;
1385
1386   -target | --target | --targe | --targ | --tar | --ta | --t)
1387     ac_prev=target_alias ;;
1388   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1389     target_alias=$ac_optarg ;;
1390
1391   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1392     verbose=yes ;;
1393
1394   -version | --version | --versio | --versi | --vers | -V)
1395     ac_init_version=: ;;
1396
1397   -with-* | --with-*)
1398     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401       { echo "$as_me: error: invalid package name: $ac_package" >&2
1402    { (exit 1); exit 1; }; }
1403     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1404     eval with_$ac_package=\$ac_optarg ;;
1405
1406   -without-* | --without-*)
1407     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1408     # Reject names that are not valid shell variable names.
1409     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410       { echo "$as_me: error: invalid package name: $ac_package" >&2
1411    { (exit 1); exit 1; }; }
1412     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1413     eval with_$ac_package=no ;;
1414
1415   --x)
1416     # Obsolete; use --with-x.
1417     with_x=yes ;;
1418
1419   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1420   | --x-incl | --x-inc | --x-in | --x-i)
1421     ac_prev=x_includes ;;
1422   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1423   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1424     x_includes=$ac_optarg ;;
1425
1426   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1427   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1428     ac_prev=x_libraries ;;
1429   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1430   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1431     x_libraries=$ac_optarg ;;
1432
1433   -*) { echo "$as_me: error: unrecognized option: $ac_option
1434 Try \`$0 --help' for more information." >&2
1435    { (exit 1); exit 1; }; }
1436     ;;
1437
1438   *=*)
1439     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440     # Reject names that are not valid shell variable names.
1441     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1442       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1443    { (exit 1); exit 1; }; }
1444     eval $ac_envvar=\$ac_optarg
1445     export $ac_envvar ;;
1446
1447   *)
1448     # FIXME: should be removed in autoconf 3.0.
1449     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1450     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1451       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1452     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1453     ;;
1454
1455   esac
1456 done
1457
1458 if test -n "$ac_prev"; then
1459   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1460   { echo "$as_me: error: missing argument to $ac_option" >&2
1461    { (exit 1); exit 1; }; }
1462 fi
1463
1464 # Be sure to have absolute directory names.
1465 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466                 datadir sysconfdir sharedstatedir localstatedir includedir \
1467                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468                 libdir localedir mandir
1469 do
1470   eval ac_val=\$$ac_var
1471   case $ac_val in
1472     [\\/$]* | ?:[\\/]* )  continue;;
1473     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1474   esac
1475   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1476    { (exit 1); exit 1; }; }
1477 done
1478
1479 # There might be people who depend on the old broken behavior: `$host'
1480 # used to hold the argument of --host etc.
1481 # FIXME: To remove some day.
1482 build=$build_alias
1483 host=$host_alias
1484 target=$target_alias
1485
1486 # FIXME: To remove some day.
1487 if test "x$host_alias" != x; then
1488   if test "x$build_alias" = x; then
1489     cross_compiling=maybe
1490     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1491     If a cross compiler is detected then cross compile mode will be used." >&2
1492   elif test "x$build_alias" != "x$host_alias"; then
1493     cross_compiling=yes
1494   fi
1495 fi
1496
1497 ac_tool_prefix=
1498 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1499
1500 test "$silent" = yes && exec 6>/dev/null
1501
1502
1503 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1504 ac_ls_di=`ls -di .` &&
1505 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1506   { echo "$as_me: error: Working directory cannot be determined" >&2
1507    { (exit 1); exit 1; }; }
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509   { echo "$as_me: error: pwd does not report name of working directory" >&2
1510    { (exit 1); exit 1; }; }
1511
1512
1513 # Find the source files, if location was not specified.
1514 if test -z "$srcdir"; then
1515   ac_srcdir_defaulted=yes
1516   # Try the directory containing this script, then the parent directory.
1517   ac_confdir=`$as_dirname -- "$0" ||
1518 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1519          X"$0" : 'X\(//\)[^/]' \| \
1520          X"$0" : 'X\(//\)$' \| \
1521          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1522 echo X"$0" |
1523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524             s//\1/
1525             q
1526           }
1527           /^X\(\/\/\)[^/].*/{
1528             s//\1/
1529             q
1530           }
1531           /^X\(\/\/\)$/{
1532             s//\1/
1533             q
1534           }
1535           /^X\(\/\).*/{
1536             s//\1/
1537             q
1538           }
1539           s/.*/./; q'`
1540   srcdir=$ac_confdir
1541   if test ! -r "$srcdir/$ac_unique_file"; then
1542     srcdir=..
1543   fi
1544 else
1545   ac_srcdir_defaulted=no
1546 fi
1547 if test ! -r "$srcdir/$ac_unique_file"; then
1548   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1549   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 ac_abs_confdir=`(
1554         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1555    { (exit 1); exit 1; }; }
1556         pwd)`
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559   srcdir=.
1560 fi
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1564 case $srcdir in
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566 esac
1567 for ac_var in $ac_precious_vars; do
1568   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569   eval ac_env_${ac_var}_value=\$${ac_var}
1570   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572 done
1573
1574 #
1575 # Report the --help message.
1576 #
1577 if test "$ac_init_help" = "long"; then
1578   # Omit some internal or obsolete options to make the list less imposing.
1579   # This message is too long to be a string in the A/UX 3.1 sh.
1580   cat <<_ACEOF
1581 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1582
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1584
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE.  See below for descriptions of some of the useful variables.
1587
1588 Defaults for the options are specified in brackets.
1589
1590 Configuration:
1591   -h, --help              display this help and exit
1592       --help=short        display options specific to this package
1593       --help=recursive    display the short help of all the included packages
1594   -V, --version           display version information and exit
1595   -q, --quiet, --silent   do not print \`checking...' messages
1596       --cache-file=FILE   cache test results in FILE [disabled]
1597   -C, --config-cache      alias for \`--cache-file=config.cache'
1598   -n, --no-create         do not create output files
1599       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1600
1601 Installation directories:
1602   --prefix=PREFIX         install architecture-independent files in PREFIX
1603                           [$ac_default_prefix]
1604   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1605                           [PREFIX]
1606
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1611
1612 For better control, use the options below.
1613
1614 Fine tuning of the installation directories:
1615   --bindir=DIR           user executables [EPREFIX/bin]
1616   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1617   --libexecdir=DIR       program executables [EPREFIX/libexec]
1618   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1619   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1620   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1621   --libdir=DIR           object code libraries [EPREFIX/lib]
1622   --includedir=DIR       C header files [PREFIX/include]
1623   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1624   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1625   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1626   --infodir=DIR          info documentation [DATAROOTDIR/info]
1627   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1628   --mandir=DIR           man documentation [DATAROOTDIR/man]
1629   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1630   --htmldir=DIR          html documentation [DOCDIR]
1631   --dvidir=DIR           dvi documentation [DOCDIR]
1632   --pdfdir=DIR           pdf documentation [DOCDIR]
1633   --psdir=DIR            ps documentation [DOCDIR]
1634 _ACEOF
1635
1636   cat <<\_ACEOF
1637
1638 X features:
1639   --x-includes=DIR    X include files are in DIR
1640   --x-libraries=DIR   X library files are in DIR
1641
1642 System types:
1643   --build=BUILD     configure for building on BUILD [guessed]
1644   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1645 _ACEOF
1646 fi
1647
1648 if test -n "$ac_init_help"; then
1649   case $ac_init_help in
1650      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1651    esac
1652   cat <<\_ACEOF
1653
1654 Optional Features:
1655   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1656   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1657   --disable-gui           don't build GUI parts of the library
1658   --enable-monolithic     build wxWidgets as single library
1659   --enable-plugins        build parts of wxWidgets as loadable components
1660   --enable-official_build official build of wxWidgets (win32 DLL only)
1661   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1662   --disable-all-features  disable all optional features to build minimal library
1663   --enable-universal      use wxWidgets GUI controls instead of native ones
1664   --enable-nanox          use NanoX
1665   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1666   --enable-gpe            use GNOME PDA Environment features if possible
1667   --disable-shared        create static library instead of shared
1668   --enable-debug          same as debug_flag and debug_info
1669   --enable-stl            use STL for containers
1670   --enable-std_iostreams  use standard C++ stream classes
1671   --enable-std_string     use standard C++ string classes
1672   --disable-unicode       compile without Unicode support
1673   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1674   --enable-utf8           use UTF-8 representation for strings (Unix only)
1675   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1676   --enable-extended_rtti  use extended RTTI (XTI)
1677   --enable-omf            use OMF object format
1678   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1679   --enable-debug_info     create code with debugging information
1680   --disable-optimise      compile without optimisations
1681   --enable-debug_gdb      create code with extra GDB debugging information
1682   --enable-debug_cntxt    use wxDebugContext
1683   --enable-mem_tracing    create code with memory tracing
1684   --enable-profile        create code with profiling information
1685   --enable-no_rtti        create code without RTTI information
1686   --enable-no_exceptions  create code without C++ exceptions handling
1687   --enable-permissive     compile code disregarding strict ANSI
1688   --enable-no_deps        create code without dependency information
1689   --disable-vararg_macros don't use vararg macros, even if they are supported
1690   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1691   --enable-compat26       enable wxWidgets 2.6 compatibility
1692   --disable-compat28      disable wxWidgets 2.8 compatibility
1693   --disable-rpath         disable use of rpath for uninstalled builds
1694   --enable-objc_uniquifying enable Objective-C class name uniquifying
1695   --disable-visibility    disable use of ELF symbols visibility even if supported
1696   --enable-intl           use internationalization system
1697   --enable-xlocale        use x-locale support (requires wxLocale)
1698   --enable-config         use wxConfig (and derived) classes
1699   --enable-protocols      use wxProtocol and derived classes
1700   --enable-ftp            use wxFTP (requires wxProtocol
1701   --enable-http           use wxHTTP (requires wxProtocol
1702   --enable-fileproto      use wxFileProto class (requires wxProtocol
1703   --enable-sockets        use socket/network classes
1704   --enable-ipv6           enable IPv6 support in wxSocket
1705   --enable-ole            use OLE classes (Win32 only)
1706   --enable-dataobj        use data object classes
1707   --enable-ipc            use interprocess communication (wxSocket etc.)
1708   --enable-baseevtloop    use event loop in console programs too
1709   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1710   --enable-selectloop     use wxSelectDispatcher class
1711   --enable-apple_ieee     use the Apple IEEE codec
1712   --enable-arcstream      use wxArchive streams
1713   --enable-base64         use base64 encoding/decoding functions
1714   --enable-backtrace      use wxStackWalker class for getting backtraces
1715   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1716   --enable-cmdline        use wxCmdLineParser class
1717   --enable-datetime       use wxDateTime class
1718   --enable-debugreport    use wxDebugReport class
1719   --enable-dialupman      use dialup network classes
1720   --enable-dynlib         use wxLibrary class for DLL loading
1721   --enable-dynamicloader  use (new) wxDynamicLibrary class
1722   --enable-exceptions     build exception-safe library
1723   --enable-ffile          use wxFFile class
1724   --enable-file           use wxFile class
1725   --enable-filesystem     use virtual file systems classes
1726   --enable-fontenum       use wxFontEnumerator class
1727   --enable-fontmap        use font encodings conversion classes
1728   --enable-fs_archive     use virtual archive filesystems
1729   --enable-fs_inet        use virtual HTTP/FTP filesystems
1730   --enable-fs_zip         now replaced by fs_archive
1731   --enable-geometry       use geometry class
1732   --enable-log            use logging system
1733   --enable-longlong       use wxLongLong class
1734   --enable-mimetype       use wxMimeTypesManager
1735   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1736   --enable-snglinst       use wxSingleInstanceChecker class
1737   --enable-sound          use wxSound class
1738   --enable-stdpaths       use wxStandardPaths class
1739   --enable-stopwatch      use wxStopWatch class
1740   --enable-streams        use wxStream etc classes
1741   --enable-sysoptions     use wxSystemOptions
1742   --enable-tarstream      use wxTar streams
1743   --enable-textbuf        use wxTextBuffer class
1744   --enable-textfile       use wxTextFile class
1745   --enable-timer          use wxTimer class
1746   --enable-variant        use wxVariant class
1747   --enable-zipstream      use wxZip streams
1748   --enable-url            use wxURL class
1749   --enable-protocol       use wxProtocol class
1750   --enable-protocol-http  HTTP support in wxProtocol
1751   --enable-protocol-ftp   FTP support in wxProtocol
1752   --enable-protocol-file  FILE support in wxProtocol
1753   --enable-threads        use threads
1754   --enable-iniconf        use wxIniConfig (Win32 only)
1755   --enable-regkey         use wxRegKey class (Win32 only)
1756   --enable-docview        use document view architecture
1757   --enable-help           use help subsystem
1758   --enable-mshtmlhelp     use MS HTML Help (win32)
1759   --enable-html           use wxHTML sub-library
1760   --enable-htmlhelp       use wxHTML-based help
1761   --enable-xrc            use XRC resources sub-library
1762   --enable-aui            use AUI docking library
1763   --enable-propgrid       use wxPropertyGrid library
1764   --enable-stc            use wxStyledTextCtrl library
1765   --enable-constraints    use layout-constraints system
1766   --enable-loggui         use standard GUI logger
1767   --enable-logwin         use wxLogWindow
1768   --enable-logdialog      use wxLogDialog
1769   --enable-mdi            use multiple document interface architecture
1770   --enable-mdidoc         use docview architecture with MDI
1771   --enable-mediactrl      use wxMediaCtrl class
1772   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1773   --enable-webkit         use wxWebKitCtrl (Mac)
1774   --enable-richtext       use wxRichTextCtrl
1775   --enable-graphics_ctx   use graphics context 2D drawing API
1776   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1777   --enable-printarch      use printing architecture
1778   --enable-svg            use wxSVGFileDC device context
1779   --enable-clipboard      use wxClipboard class
1780   --enable-dnd            use Drag'n'Drop classes
1781   --enable-metafile       use win32 metafiles
1782   --disable-controls      disable compilation of all standard controls
1783   --enable-accel          use accelerators
1784   --enable-animatectrl    use wxAnimationCtrl class
1785   --enable-bmpbutton      use wxBitmapButton class
1786   --enable-bmpcombobox    use wxBitmapComboBox class
1787   --enable-button         use wxButton class
1788   --enable-calendar       use wxCalendarCtrl class
1789   --enable-caret          use wxCaret class
1790   --enable-checkbox       use wxCheckBox class
1791   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1792   --enable-choice         use wxChoice class
1793   --enable-choicebook     use wxChoicebook class
1794   --enable-collpane       use wxCollapsiblePane class
1795   --enable-colourpicker   use wxColourPickerCtrl class
1796   --enable-combobox       use wxComboBox class
1797   --enable-comboctrl      use wxComboCtrl class
1798   --enable-dataviewctrl   use wxDataViewCtrl class
1799   --enable-datepick       use wxDatePickerCtrl class
1800   --enable-detect_sm      use code to detect X11 session manager
1801   --enable-dirpicker      use wxDirPickerCtrl class
1802   --enable-display        use wxDisplay class
1803   --enable-editablebox    use wxEditableListBox class
1804   --enable-filectrl       use wxFileCtrl class
1805   --enable-filepicker     use wxFilePickerCtrl class
1806   --enable-fontpicker     use wxFontPickerCtrl class
1807   --enable-gauge          use wxGauge class
1808   --enable-grid           use wxGrid class
1809   --enable-headerctrl     use wxHeaderCtrl class
1810   --enable-hyperlink      use wxHyperlinkCtrl class
1811   --enable-imaglist       use wxImageList class
1812   --enable-listbook       use wxListbook class
1813   --enable-listbox        use wxListBox class
1814   --enable-listctrl       use wxListCtrl class
1815   --enable-notebook       use wxNotebook class
1816   --enable-notifmsg       use wxNotificationMessage class
1817   --enable-odcombobox     use wxOwnerDrawnComboBox class
1818   --enable-popupwin       use wxPopUpWindow class
1819   --enable-radiobox       use wxRadioBox class
1820   --enable-radiobtn       use wxRadioButton class
1821   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1822   --enable-sash           use wxSashWindow class
1823   --enable-scrollbar      use wxScrollBar class and scrollable windows
1824   --enable-searchctrl     use wxSearchCtrl class
1825   --enable-slider         use wxSlider class
1826   --enable-spinbtn        use wxSpinButton class
1827   --enable-spinctrl       use wxSpinCtrl class
1828   --enable-splitter       use wxSplitterWindow class
1829   --enable-statbmp        use wxStaticBitmap class
1830   --enable-statbox        use wxStaticBox class
1831   --enable-statline       use wxStaticLine class
1832   --enable-stattext       use wxStaticText class
1833   --enable-statusbar      use wxStatusBar class
1834   --enable-taskbaricon    use wxTaskBarIcon class
1835   --enable-tbarnative     use native wxToolBar class
1836   --enable-textctrl       use wxTextCtrl class
1837   --enable-tipwindow      use wxTipWindow class
1838   --enable-togglebtn      use wxToggleButton class
1839   --enable-toolbar        use wxToolBar class
1840   --enable-toolbook       use wxToolbook class
1841   --enable-treebook       use wxTreebook class
1842   --enable-treectrl       use wxTreeCtrl class
1843   --enable-commondlg      use all common dialogs
1844   --enable-aboutdlg       use wxAboutBox
1845   --enable-choicedlg      use wxChoiceDialog
1846   --enable-coldlg         use wxColourDialog
1847   --enable-filedlg        use wxFileDialog
1848   --enable-finddlg        use wxFindReplaceDialog
1849   --enable-fontdlg        use wxFontDialog
1850   --enable-dirdlg         use wxDirDialog
1851   --enable-msgdlg         use wxMessageDialog
1852   --enable-numberdlg      use wxNumberEntryDialog
1853   --enable-splash         use wxSplashScreen
1854   --enable-textdlg        use wxTextDialog
1855   --enable-tipdlg         use startup tips
1856   --enable-progressdlg    use wxProgressDialog
1857   --enable-wizarddlg      use wxWizard
1858   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1859   --enable-miniframe      use wxMiniFrame class
1860   --enable-tooltips       use wxToolTip class
1861   --enable-splines        use spline drawing code
1862   --enable-mousewheel     use mousewheel
1863   --enable-validators     use wxValidator and derived classes
1864   --enable-busyinfo       use wxBusyInfo
1865   --enable-joystick       use wxJoystick
1866   --enable-metafiles      use wxMetaFile (Win32 only)
1867   --enable-dragimage      use wxDragImage
1868   --enable-accessibility  enable accessibility support
1869   --enable-palette        use wxPalette class
1870   --enable-image          use wxImage class
1871   --enable-gif            use gif images (GIF file format)
1872   --enable-pcx            use pcx images (PCX file format)
1873   --enable-tga            use tga images (TGA file format)
1874   --enable-iff            use iff images (IFF file format)
1875   --enable-pnm            use pnm images (PNM file format)
1876   --enable-xpm            use xpm images (XPM file format)
1877   --enable-ico_cur        use Windows ICO and CUR formats
1878   --enable-dccache        cache temporary wxDC objects (Win32 only)
1879   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1880   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1881   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1882   --enable-wxdib          use wxDIB class (Win32 only)
1883   --enable-autoidman      use automatic ids management
1884   --disable-largefile     omit support for large files
1885   --disable-gtktest       do not try to compile and run a test GTK+ program
1886   --disable-gtktest       Do not try to compile and run a test GTK program
1887   --disable-sdltest       Do not try to compile and run a test SDL program
1888   --enable-omf            use OMF object format (OS/2)
1889   --disable-dependency-tracking
1890                           don't use dependency tracking even if the compiler
1891                           can
1892   --disable-precomp-headers
1893                           don't use precompiled headers even if compiler can
1894
1895 Optional Packages:
1896   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1897   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1898   --without-subdirs       don't generate makefiles for samples/demos/...
1899   --with-flavour=NAME     specify a name to identify this build
1900   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1901   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1902   --with-motif            use Motif/Lesstif
1903   --with-osx_carbon       use Mac OS X (Carbon)
1904   --with-osx_cocoa        use Mac OS X (Cocoa)
1905   --with-mac              use Mac OS X (Default)
1906   --with-cocoa            use Cocoa
1907   --with-wine             use Wine
1908   --with-msw              use MS-Windows
1909   --with-pm               use OS/2 Presentation Manager
1910   --with-mgl              use SciTech MGL
1911   --with-directfb         use DirectFB
1912   --with-microwin         use MicroWindows
1913   --with-x11              use X11
1914   --with-libpng           use libpng (PNG image format)
1915   --with-libjpeg          use libjpeg (JPEG file format)
1916   --with-libtiff          use libtiff (TIFF file format)
1917   --with-libxpm           use libxpm (XPM file format)
1918   --with-libiconv         use libiconv (character conversion)
1919   --with-libmspack        use libmspack (CHM help files loading)
1920   --without-gtkprint      don't use GTK printing support
1921   --without-gnomeprint    don't use GNOME printing libraries
1922   --with-gnomevfs         use GNOME VFS for associating MIME types
1923   --with-hildon           use Hildon framework for Nokia 770
1924   --with-opengl           use OpenGL (or Mesa)
1925   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1926   --with-sdl              use SDL for audio on Unix
1927   --with-regex            enable support for wxRegEx class
1928   --with-zlib             use zlib for LZW compression
1929   --with-expat            enable XML support using expat parser
1930   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1931   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1932   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1933   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1934   --with-x                use the X Window System
1935   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1936   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1937   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1938   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1939   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1940
1941 Some influential environment variables:
1942   CC          C compiler command
1943   CFLAGS      C compiler flags
1944   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1945               nonstandard directory <lib dir>
1946   LIBS        libraries to pass to the linker, e.g. -l<library>
1947   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1948               you have headers in a nonstandard directory <include dir>
1949   CPP         C preprocessor
1950   CXX         C++ compiler command
1951   CXXFLAGS    C++ compiler flags
1952   PKG_CONFIG  path to pkg-config utility
1953   DIRECTFB_CFLAGS
1954               C compiler flags for DIRECTFB, overriding pkg-config
1955   DIRECTFB_LIBS
1956               linker flags for DIRECTFB, overriding pkg-config
1957   XMKMF       Path to xmkmf, Makefile generator for X Window System
1958   PANGOX_CFLAGS
1959               C compiler flags for PANGOX, overriding pkg-config
1960   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1961   PANGOFT2_CFLAGS
1962               C compiler flags for PANGOFT2, overriding pkg-config
1963   PANGOFT2_LIBS
1964               linker flags for PANGOFT2, overriding pkg-config
1965   PANGOXFT_CFLAGS
1966               C compiler flags for PANGOXFT, overriding pkg-config
1967   PANGOXFT_LIBS
1968               linker flags for PANGOXFT, overriding pkg-config
1969   GTKPRINT_CFLAGS
1970               C compiler flags for GTKPRINT, overriding pkg-config
1971   GTKPRINT_LIBS
1972               linker flags for GTKPRINT, overriding pkg-config
1973   LIBGNOMEPRINTUI_CFLAGS
1974               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1975   LIBGNOMEPRINTUI_LIBS
1976               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1977   GNOMEVFS_CFLAGS
1978               C compiler flags for GNOMEVFS, overriding pkg-config
1979   GNOMEVFS_LIBS
1980               linker flags for GNOMEVFS, overriding pkg-config
1981   HILDON_CFLAGS
1982               C compiler flags for HILDON, overriding pkg-config
1983   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1984   CAIRO_CFLAGS
1985               C compiler flags for CAIRO, overriding pkg-config
1986   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1987   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1988   GST_LIBS    linker flags for GST, overriding pkg-config
1989
1990 Use these variables to override the choices made by `configure' or to help
1991 it to find libraries and programs with nonstandard names/locations.
1992
1993 Report bugs to <wx-dev@lists.wxwidgets.org>.
1994 _ACEOF
1995 ac_status=$?
1996 fi
1997
1998 if test "$ac_init_help" = "recursive"; then
1999   # If there are subdirs, report their specific --help.
2000   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2001     test -d "$ac_dir" || continue
2002     ac_builddir=.
2003
2004 case "$ac_dir" in
2005 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2006 *)
2007   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2008   # A ".." for each directory in $ac_dir_suffix.
2009   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2010   case $ac_top_builddir_sub in
2011   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2012   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2013   esac ;;
2014 esac
2015 ac_abs_top_builddir=$ac_pwd
2016 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2017 # for backward compatibility:
2018 ac_top_builddir=$ac_top_build_prefix
2019
2020 case $srcdir in
2021   .)  # We are building in place.
2022     ac_srcdir=.
2023     ac_top_srcdir=$ac_top_builddir_sub
2024     ac_abs_top_srcdir=$ac_pwd ;;
2025   [\\/]* | ?:[\\/]* )  # Absolute name.
2026     ac_srcdir=$srcdir$ac_dir_suffix;
2027     ac_top_srcdir=$srcdir
2028     ac_abs_top_srcdir=$srcdir ;;
2029   *) # Relative name.
2030     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2031     ac_top_srcdir=$ac_top_build_prefix$srcdir
2032     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2033 esac
2034 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2035
2036     cd "$ac_dir" || { ac_status=$?; continue; }
2037     # Check for guested configure.
2038     if test -f "$ac_srcdir/configure.gnu"; then
2039       echo &&
2040       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2041     elif test -f "$ac_srcdir/configure"; then
2042       echo &&
2043       $SHELL "$ac_srcdir/configure" --help=recursive
2044     else
2045       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2046     fi || ac_status=$?
2047     cd "$ac_pwd" || { ac_status=$?; break; }
2048   done
2049 fi
2050
2051 test -n "$ac_init_help" && exit $ac_status
2052 if $ac_init_version; then
2053   cat <<\_ACEOF
2054 wxWidgets configure 2.9.0
2055 generated by GNU Autoconf 2.61
2056
2057 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2058 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2059 This configure script is free software; the Free Software Foundation
2060 gives unlimited permission to copy, distribute and modify it.
2061 _ACEOF
2062   exit
2063 fi
2064 cat >config.log <<_ACEOF
2065 This file contains any messages produced by compilers while
2066 running configure, to aid debugging if configure makes a mistake.
2067
2068 It was created by wxWidgets $as_me 2.9.0, which was
2069 generated by GNU Autoconf 2.61.  Invocation command line was
2070
2071   $ $0 $@
2072
2073 _ACEOF
2074 exec 5>>config.log
2075 {
2076 cat <<_ASUNAME
2077 ## --------- ##
2078 ## Platform. ##
2079 ## --------- ##
2080
2081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2089
2090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2097
2098 _ASUNAME
2099
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   echo "PATH: $as_dir"
2106 done
2107 IFS=$as_save_IFS
2108
2109 } >&5
2110
2111 cat >&5 <<_ACEOF
2112
2113
2114 ## ----------- ##
2115 ## Core tests. ##
2116 ## ----------- ##
2117
2118 _ACEOF
2119
2120
2121 # Keep a trace of the command line.
2122 # Strip out --no-create and --no-recursion so they do not pile up.
2123 # Strip out --silent because we don't want to record it for future runs.
2124 # Also quote any args containing shell meta-characters.
2125 # Make two passes to allow for proper duplicate-argument suppression.
2126 ac_configure_args=
2127 ac_configure_args0=
2128 ac_configure_args1=
2129 ac_must_keep_next=false
2130 for ac_pass in 1 2
2131 do
2132   for ac_arg
2133   do
2134     case $ac_arg in
2135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137     | -silent | --silent | --silen | --sile | --sil)
2138       continue ;;
2139     *\'*)
2140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141     esac
2142     case $ac_pass in
2143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2144     2)
2145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2146       if test $ac_must_keep_next = true; then
2147         ac_must_keep_next=false # Got value, back to normal.
2148       else
2149         case $ac_arg in
2150           *=* | --config-cache | -C | -disable-* | --disable-* \
2151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153           | -with-* | --with-* | -without-* | --without-* | --x)
2154             case "$ac_configure_args0 " in
2155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156             esac
2157             ;;
2158           -* ) ac_must_keep_next=true ;;
2159         esac
2160       fi
2161       ac_configure_args="$ac_configure_args '$ac_arg'"
2162       ;;
2163     esac
2164   done
2165 done
2166 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2167 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2168
2169 # When interrupted or exit'd, cleanup temporary files, and complete
2170 # config.log.  We remove comments because anyway the quotes in there
2171 # would cause problems or look ugly.
2172 # WARNING: Use '\'' to represent an apostrophe within the trap.
2173 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174 trap 'exit_status=$?
2175   # Save into config.log some information that might help in debugging.
2176   {
2177     echo
2178
2179     cat <<\_ASBOX
2180 ## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##
2183 _ASBOX
2184     echo
2185     # The following way of writing the cache mishandles newlines in values,
2186 (
2187   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188     eval ac_val=\$$ac_var
2189     case $ac_val in #(
2190     *${as_nl}*)
2191       case $ac_var in #(
2192       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2193 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2194       esac
2195       case $ac_var in #(
2196       _ | IFS | as_nl) ;; #(
2197       *) $as_unset $ac_var ;;
2198       esac ;;
2199     esac
2200   done
2201   (set) 2>&1 |
2202     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203     *${as_nl}ac_space=\ *)
2204       sed -n \
2205         "s/'\''/'\''\\\\'\'''\''/g;
2206           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207       ;; #(
2208     *)
2209       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210       ;;
2211     esac |
2212     sort
2213 )
2214     echo
2215
2216     cat <<\_ASBOX
2217 ## ----------------- ##
2218 ## Output variables. ##
2219 ## ----------------- ##
2220 _ASBOX
2221     echo
2222     for ac_var in $ac_subst_vars
2223     do
2224       eval ac_val=\$$ac_var
2225       case $ac_val in
2226       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227       esac
2228       echo "$ac_var='\''$ac_val'\''"
2229     done | sort
2230     echo
2231
2232     if test -n "$ac_subst_files"; then
2233       cat <<\_ASBOX
2234 ## ------------------- ##
2235 ## File substitutions. ##
2236 ## ------------------- ##
2237 _ASBOX
2238       echo
2239       for ac_var in $ac_subst_files
2240       do
2241         eval ac_val=\$$ac_var
2242         case $ac_val in
2243         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244         esac
2245         echo "$ac_var='\''$ac_val'\''"
2246       done | sort
2247       echo
2248     fi
2249
2250     if test -s confdefs.h; then
2251       cat <<\_ASBOX
2252 ## ----------- ##
2253 ## confdefs.h. ##
2254 ## ----------- ##
2255 _ASBOX
2256       echo
2257       cat confdefs.h
2258       echo
2259     fi
2260     test "$ac_signal" != 0 &&
2261       echo "$as_me: caught signal $ac_signal"
2262     echo "$as_me: exit $exit_status"
2263   } >&5
2264   rm -f core *.core core.conftest.* &&
2265     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2266     exit $exit_status
2267 ' 0
2268 for ac_signal in 1 2 13 15; do
2269   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2270 done
2271 ac_signal=0
2272
2273 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2274 rm -f -r conftest* confdefs.h
2275
2276 # Predefined preprocessor variables.
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_NAME "$PACKAGE_NAME"
2280 _ACEOF
2281
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285 _ACEOF
2286
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2290 _ACEOF
2291
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_STRING "$PACKAGE_STRING"
2295 _ACEOF
2296
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2300 _ACEOF
2301
2302
2303 # Let the site file select an alternate cache file if it wants to.
2304 # Prefer explicitly selected file to automatically selected ones.
2305 if test -n "$CONFIG_SITE"; then
2306   set x "$CONFIG_SITE"
2307 elif test "x$prefix" != xNONE; then
2308   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2309 else
2310   set x "$ac_default_prefix/share/config.site" \
2311         "$ac_default_prefix/etc/config.site"
2312 fi
2313 shift
2314 for ac_site_file
2315 do
2316   if test -r "$ac_site_file"; then
2317     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2318 echo "$as_me: loading site script $ac_site_file" >&6;}
2319     sed 's/^/| /' "$ac_site_file" >&5
2320     . "$ac_site_file"
2321   fi
2322 done
2323
2324 if test -r "$cache_file"; then
2325   # Some versions of bash will fail to source /dev/null (special
2326   # files actually), so we avoid doing that.
2327   if test -f "$cache_file"; then
2328     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2329 echo "$as_me: loading cache $cache_file" >&6;}
2330     case $cache_file in
2331       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332       *)                      . "./$cache_file";;
2333     esac
2334   fi
2335 else
2336   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2337 echo "$as_me: creating cache $cache_file" >&6;}
2338   >$cache_file
2339 fi
2340
2341 # Check that the precious variables saved in the cache have kept the same
2342 # value.
2343 ac_cache_corrupted=false
2344 for ac_var in $ac_precious_vars; do
2345   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2346   eval ac_new_set=\$ac_env_${ac_var}_set
2347   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2348   eval ac_new_val=\$ac_env_${ac_var}_value
2349   case $ac_old_set,$ac_new_set in
2350     set,)
2351       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2352 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2353       ac_cache_corrupted=: ;;
2354     ,set)
2355       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2356 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2357       ac_cache_corrupted=: ;;
2358     ,);;
2359     *)
2360       if test "x$ac_old_val" != "x$ac_new_val"; then
2361         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2362 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2363         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2364 echo "$as_me:   former value:  $ac_old_val" >&2;}
2365         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2366 echo "$as_me:   current value: $ac_new_val" >&2;}
2367         ac_cache_corrupted=:
2368       fi;;
2369   esac
2370   # Pass precious variables to config.status.
2371   if test "$ac_new_set" = set; then
2372     case $ac_new_val in
2373     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2374     *) ac_arg=$ac_var=$ac_new_val ;;
2375     esac
2376     case " $ac_configure_args " in
2377       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2378       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2379     esac
2380   fi
2381 done
2382 if $ac_cache_corrupted; then
2383   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2384 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2385   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2386 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2387    { (exit 1); exit 1; }; }
2388 fi
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
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419
2420
2421
2422
2423
2424 ac_aux_dir=
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426   if test -f "$ac_dir/install-sh"; then
2427     ac_aux_dir=$ac_dir
2428     ac_install_sh="$ac_aux_dir/install-sh -c"
2429     break
2430   elif test -f "$ac_dir/install.sh"; then
2431     ac_aux_dir=$ac_dir
2432     ac_install_sh="$ac_aux_dir/install.sh -c"
2433     break
2434   elif test -f "$ac_dir/shtool"; then
2435     ac_aux_dir=$ac_dir
2436     ac_install_sh="$ac_aux_dir/shtool install -c"
2437     break
2438   fi
2439 done
2440 if test -z "$ac_aux_dir"; then
2441   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2442 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2443    { (exit 1); exit 1; }; }
2444 fi
2445
2446 # These three variables are undocumented and unsupported,
2447 # and are intended to be withdrawn in a future Autoconf release.
2448 # They can cause serious problems if a builder's source tree is in a directory
2449 # whose full name contains unusual characters.
2450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2452 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2453
2454
2455 # Make sure we can run config.sub.
2456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2457   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2458 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2459    { (exit 1); exit 1; }; }
2460
2461 { echo "$as_me:$LINENO: checking build system type" >&5
2462 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2463 if test "${ac_cv_build+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   ac_build_alias=$build_alias
2467 test "x$ac_build_alias" = x &&
2468   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2469 test "x$ac_build_alias" = x &&
2470   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2471 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2472    { (exit 1); exit 1; }; }
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2476    { (exit 1); exit 1; }; }
2477
2478 fi
2479 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2480 echo "${ECHO_T}$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2482 *-*-*) ;;
2483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2484 echo "$as_me: error: invalid value of canonical build" >&2;}
2485    { (exit 1); exit 1; }; };;
2486 esac
2487 build=$ac_cv_build
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_build
2490 shift
2491 build_cpu=$1
2492 build_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 build_os=$*
2497 IFS=$ac_save_IFS
2498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 { echo "$as_me:$LINENO: checking host system type" >&5
2502 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2503 if test "${ac_cv_host+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test "x$host_alias" = x; then
2507   ac_cv_host=$ac_cv_build
2508 else
2509   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2510     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 fi
2516 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2517 echo "${ECHO_T}$ac_cv_host" >&6; }
2518 case $ac_cv_host in
2519 *-*-*) ;;
2520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2521 echo "$as_me: error: invalid value of canonical host" >&2;}
2522    { (exit 1); exit 1; }; };;
2523 esac
2524 host=$ac_cv_host
2525 ac_save_IFS=$IFS; IFS='-'
2526 set x $ac_cv_host
2527 shift
2528 host_cpu=$1
2529 host_vendor=$2
2530 shift; shift
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2533 host_os=$*
2534 IFS=$ac_save_IFS
2535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2536
2537
2538
2539 if test "$cross_compiling" != "no"; then
2540     HOST_PREFIX="${host_alias}-"
2541     HOST_SUFFIX="-$host_alias"
2542 else
2543     HOST_PREFIX=
2544     HOST_SUFFIX=
2545 fi
2546
2547
2548 wx_major_version_number=2
2549 wx_minor_version_number=9
2550 wx_release_number=0
2551 wx_subrelease_number=0
2552
2553 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2554 WX_VERSION=$WX_RELEASE.$wx_release_number
2555 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2556
2557 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2558
2559
2560 wx_top_builddir="`pwd`"
2561
2562
2563
2564
2565 USE_UNIX=1
2566 USE_OS2=0
2567 USE_WIN32=0
2568 USE_DOS=0
2569 USE_BEOS=0
2570 USE_MAC=0
2571
2572 USE_AIX=
2573 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2574 USE_GNU=                            USE_HPUX=
2575 USE_LINUX=
2576 USE_NETBSD=
2577 USE_OPENBSD=
2578 USE_OSF=                            USE_SGI=
2579 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2580 USE_ULTRIX=
2581 USE_UNIXWARE=
2582
2583 USE_ALPHA=
2584
2585 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2586
2587 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2588
2589 DEFAULT_wxUSE_COCOA=0
2590 DEFAULT_wxUSE_GTK=0
2591 DEFAULT_wxUSE_OSX_CARBON=0
2592 DEFAULT_wxUSE_OSX_COCOA=0
2593 DEFAULT_wxUSE_MGL=0
2594 DEFAULT_wxUSE_MICROWIN=0
2595 DEFAULT_wxUSE_MOTIF=0
2596 DEFAULT_wxUSE_MSW=0
2597 DEFAULT_wxUSE_PM=0
2598 DEFAULT_wxUSE_X11=0
2599 DEFAULT_wxUSE_DFB=0
2600
2601 DEFAULT_DEFAULT_wxUSE_COCOA=0
2602 DEFAULT_DEFAULT_wxUSE_GTK=0
2603 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2604 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2605 DEFAULT_DEFAULT_wxUSE_MGL=0
2606 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2607 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2608 DEFAULT_DEFAULT_wxUSE_MSW=0
2609 DEFAULT_DEFAULT_wxUSE_PM=0
2610 DEFAULT_DEFAULT_wxUSE_X11=0
2611 DEFAULT_DEFAULT_wxUSE_DFB=0
2612
2613 PROGRAM_EXT=
2614 SAMPLES_RPATH_FLAG=
2615 DYLIB_RPATH_INSTALL=
2616 DYLIB_RPATH_POSTLINK=
2617
2618 DEFAULT_STD_FLAG=yes
2619
2620 case "${host}" in
2621   *-hp-hpux* )
2622     USE_HPUX=1
2623     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2624     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __HPUX__ 1
2627 _ACEOF
2628
2629
2630             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2631   ;;
2632   *-*-linux* )
2633     USE_LINUX=1
2634     cat >>confdefs.h <<\_ACEOF
2635 #define __LINUX__ 1
2636 _ACEOF
2637
2638     TMP=`uname -m`
2639     if test "x$TMP" = "xalpha"; then
2640       USE_ALPHA=1
2641       cat >>confdefs.h <<\_ACEOF
2642 #define __ALPHA__ 1
2643 _ACEOF
2644
2645     fi
2646     DEFAULT_DEFAULT_wxUSE_GTK=1
2647   ;;
2648   *-*-gnu* | *-*-k*bsd*-gnu )
2649     USE_GNU=1
2650     TMP=`uname -m`
2651     if test "x$TMP" = "xalpha"; then
2652       USE_ALPHA=1
2653       cat >>confdefs.h <<\_ACEOF
2654 #define __ALPHA__ 1
2655 _ACEOF
2656
2657     fi
2658     DEFAULT_DEFAULT_wxUSE_GTK=1
2659   ;;
2660   *-*-irix5* | *-*-irix6* )
2661     USE_SGI=1
2662     USE_SVR4=1
2663     cat >>confdefs.h <<\_ACEOF
2664 #define __SGI__ 1
2665 _ACEOF
2666
2667     cat >>confdefs.h <<\_ACEOF
2668 #define __SVR4__ 1
2669 _ACEOF
2670
2671     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2672   ;;
2673   *-*-solaris2* )
2674     USE_SUN=1
2675     USE_SOLARIS=1
2676     USE_SVR4=1
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __SUN__ 1
2679 _ACEOF
2680
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __SOLARIS__ 1
2683 _ACEOF
2684
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SVR4__ 1
2687 _ACEOF
2688
2689     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2690     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2691   ;;
2692   *-*-sunos4* )
2693     USE_SUN=1
2694     USE_SUNOS=1
2695     USE_BSD=1
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __SUN__ 1
2698 _ACEOF
2699
2700     cat >>confdefs.h <<\_ACEOF
2701 #define __SUNOS__ 1
2702 _ACEOF
2703
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __BSD__ 1
2706 _ACEOF
2707
2708     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2709   ;;
2710   *-*-freebsd*)
2711     USE_BSD=1
2712     USE_FREEBSD=1
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __FREEBSD__ 1
2715 _ACEOF
2716
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __BSD__ 1
2719 _ACEOF
2720
2721     DEFAULT_DEFAULT_wxUSE_GTK=1
2722   ;;
2723   *-*-openbsd*|*-*-mirbsd*)
2724     USE_BSD=1
2725     USE_OPENBSD=1
2726     cat >>confdefs.h <<\_ACEOF
2727 #define __OPENBSD__ 1
2728 _ACEOF
2729
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __BSD__ 1
2732 _ACEOF
2733
2734     DEFAULT_DEFAULT_wxUSE_GTK=1
2735   ;;
2736   *-*-netbsd*)
2737     USE_BSD=1
2738     USE_NETBSD=1
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __NETBSD__ 1
2741 _ACEOF
2742
2743     cat >>confdefs.h <<\_ACEOF
2744 #define __BSD__ 1
2745 _ACEOF
2746
2747     DEFAULT_DEFAULT_wxUSE_GTK=1
2748     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2749
2750             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2751   ;;
2752   *-*-osf* )
2753     USE_ALPHA=1
2754     USE_OSF=1
2755     cat >>confdefs.h <<\_ACEOF
2756 #define __ALPHA__ 1
2757 _ACEOF
2758
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __OSF__ 1
2761 _ACEOF
2762
2763     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2764     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2765   ;;
2766   *-*-dgux5* )
2767     USE_ALPHA=1
2768     USE_SVR4=1
2769     cat >>confdefs.h <<\_ACEOF
2770 #define __ALPHA__ 1
2771 _ACEOF
2772
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __SVR4__ 1
2775 _ACEOF
2776
2777     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2778   ;;
2779   *-*-sysv5* )
2780     USE_SYSV=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __SYSV__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SVR4__ 1
2788 _ACEOF
2789
2790     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2791   ;;
2792   *-*-aix* )
2793     USE_AIX=1
2794     USE_SYSV=1
2795     USE_SVR4=1
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __AIX__ 1
2798 _ACEOF
2799
2800     cat >>confdefs.h <<\_ACEOF
2801 #define __SYSV__ 1
2802 _ACEOF
2803
2804     cat >>confdefs.h <<\_ACEOF
2805 #define __SVR4__ 1
2806 _ACEOF
2807
2808     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2809   ;;
2810
2811   *-*-*UnixWare*)
2812     USE_SYSV=1
2813     USE_SVR4=1
2814     USE_UNIXWARE=1
2815     cat >>confdefs.h <<\_ACEOF
2816 #define __UNIXWARE__ 1
2817 _ACEOF
2818
2819   ;;
2820
2821   *-*-cygwin* | *-*-mingw32* )
2822                 PROGRAM_EXT=".exe"
2823     DEFAULT_DEFAULT_wxUSE_MSW=1
2824   ;;
2825
2826   *-pc-msdosdjgpp )
2827     USE_UNIX=0
2828     USE_DOS=1
2829     cat >>confdefs.h <<\_ACEOF
2830 #define __DOS__ 1
2831 _ACEOF
2832
2833     PROGRAM_EXT=".exe"
2834     DEFAULT_DEFAULT_wxUSE_MGL=1
2835   ;;
2836
2837   *-pc-os2_emx | *-pc-os2-emx )
2838     cat >>confdefs.h <<\_ACEOF
2839 #define __EMX__ 1
2840 _ACEOF
2841
2842     USE_OS2=1
2843     cat >>confdefs.h <<\_ACEOF
2844 #define __OS2__ 1
2845 _ACEOF
2846
2847     PROGRAM_EXT=".exe"
2848     DEFAULT_DEFAULT_wxUSE_PM=1
2849         CXX=gcc
2850     LDFLAGS="$LDFLAGS -Zcrtdll"
2851                         ac_executable_extensions=".exe"
2852     export ac_executable_extensions
2853             ac_save_IFS="$IFS"
2854     IFS='\\'
2855     ac_TEMP_PATH=
2856     for ac_dir in $PATH; do
2857       IFS=$ac_save_IFS
2858       if test -z "$ac_TEMP_PATH"; then
2859         ac_TEMP_PATH="$ac_dir"
2860       else
2861         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2862       fi
2863     done
2864     export PATH="$ac_TEMP_PATH"
2865     unset ac_TEMP_PATH
2866     DEFAULT_STD_FLAG=no
2867   ;;
2868
2869   *-*-darwin* )
2870         USE_BSD=1
2871     USE_DARWIN=1
2872     cat >>confdefs.h <<\_ACEOF
2873 #define __BSD__ 1
2874 _ACEOF
2875
2876     cat >>confdefs.h <<\_ACEOF
2877 #define __DARWIN__ 1
2878 _ACEOF
2879
2880     cat >>confdefs.h <<\_ACEOF
2881 #define TARGET_CARBON 1
2882 _ACEOF
2883
2884     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2885     DEFAULT_STD_FLAG=no
2886   ;;
2887   powerpc-apple-macos* )
2888         USE_UNIX=0
2889             ac_cv_c_bigendian=yes
2890             DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2891     DEFAULT_STD_FLAG=no
2892   ;;
2893
2894   *-*-beos* )
2895         USE_BEOS=1
2896     cat >>confdefs.h <<\_ACEOF
2897 #define __BEOS__ 1
2898 _ACEOF
2899
2900   ;;
2901
2902   *)
2903     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2904 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2905     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2906 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2907
2908     DEFAULT_DEFAULT_wxUSE_X11=1
2909     DEFAULT_wxUSE_SHARED=no
2910 esac
2911
2912
2913
2914 DEFAULT_wxUSE_ALL_FEATURES=yes
2915
2916 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2917 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2918
2919 DEFAULT_wxUSE_DMALLOC=no
2920 DEFAULT_wxUSE_LIBGNOMEVFS=no
2921 DEFAULT_wxUSE_LIBHILDON=no
2922 DEFAULT_wxUSE_LIBMSPACK=no
2923 DEFAULT_wxUSE_LIBSDL=no
2924
2925 DEFAULT_wxUSE_ACCESSIBILITY=no
2926 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2927 DEFAULT_wxUSE_IPV6=no
2928 DEFAULT_wxUSE_GSTREAMER8=no
2929
2930 DEFAULT_wxUSE_UNICODE_UTF8=auto
2931 DEFAULT_wxUSE_OPENGL=auto
2932 DEFAULT_wxUSE_MEDIACTRL=auto
2933
2934 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2935
2936 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2937
2938 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2939
2940 DEFAULT_wxUSE_GTK2=yes
2941
2942 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2943
2944
2945
2946
2947
2948           enablestring=disable
2949           defaultval=
2950           if test -z "$defaultval"; then
2951               if test x"$enablestring" = xdisable; then
2952                   defaultval=yes
2953               else
2954                   defaultval=no
2955               fi
2956           fi
2957
2958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2959 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2960           # Check whether --enable-gui was given.
2961 if test "${enable_gui+set}" = set; then
2962   enableval=$enable_gui;
2963                           if test "$enableval" = yes; then
2964                             wx_cv_use_gui='wxUSE_GUI=yes'
2965                           else
2966                             wx_cv_use_gui='wxUSE_GUI=no'
2967                           fi
2968
2969 else
2970
2971                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2972
2973 fi
2974
2975
2976           eval "$wx_cv_use_gui"
2977
2978           if test x"$enablestring" = xdisable; then
2979             if test $wxUSE_GUI = yes; then
2980               result=no
2981             else
2982               result=yes
2983             fi
2984           else
2985             result=$wxUSE_GUI
2986           fi
2987
2988           { echo "$as_me:$LINENO: result: $result" >&5
2989 echo "${ECHO_T}$result" >&6; }
2990
2991
2992           enablestring=
2993           defaultval=
2994           if test -z "$defaultval"; then
2995               if test x"$enablestring" = xdisable; then
2996                   defaultval=yes
2997               else
2998                   defaultval=no
2999               fi
3000           fi
3001
3002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3003 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3004           # Check whether --enable-monolithic was given.
3005 if test "${enable_monolithic+set}" = set; then
3006   enableval=$enable_monolithic;
3007                           if test "$enableval" = yes; then
3008                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3009                           else
3010                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3011                           fi
3012
3013 else
3014
3015                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3016
3017 fi
3018
3019
3020           eval "$wx_cv_use_monolithic"
3021
3022           if test x"$enablestring" = xdisable; then
3023             if test $wxUSE_MONOLITHIC = yes; then
3024               result=no
3025             else
3026               result=yes
3027             fi
3028           else
3029             result=$wxUSE_MONOLITHIC
3030           fi
3031
3032           { echo "$as_me:$LINENO: result: $result" >&5
3033 echo "${ECHO_T}$result" >&6; }
3034
3035
3036           enablestring=
3037           defaultval=
3038           if test -z "$defaultval"; then
3039               if test x"$enablestring" = xdisable; then
3040                   defaultval=yes
3041               else
3042                   defaultval=no
3043               fi
3044           fi
3045
3046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3047 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3048           # Check whether --enable-plugins was given.
3049 if test "${enable_plugins+set}" = set; then
3050   enableval=$enable_plugins;
3051                           if test "$enableval" = yes; then
3052                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3053                           else
3054                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3055                           fi
3056
3057 else
3058
3059                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3060
3061 fi
3062
3063
3064           eval "$wx_cv_use_plugins"
3065
3066           if test x"$enablestring" = xdisable; then
3067             if test $wxUSE_PLUGINS = yes; then
3068               result=no
3069             else
3070               result=yes
3071             fi
3072           else
3073             result=$wxUSE_PLUGINS
3074           fi
3075
3076           { echo "$as_me:$LINENO: result: $result" >&5
3077 echo "${ECHO_T}$result" >&6; }
3078
3079
3080           withstring=without
3081           defaultval=$wxUSE_ALL_FEATURES
3082           if test -z "$defaultval"; then
3083               if test x"$withstring" = xwithout; then
3084                   defaultval=yes
3085               else
3086                   defaultval=no
3087               fi
3088           fi
3089           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3090 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3091
3092 # Check whether --with-subdirs was given.
3093 if test "${with_subdirs+set}" = set; then
3094   withval=$with_subdirs;
3095                         if test "$withval" = yes; then
3096                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3097                         else
3098                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3099                         fi
3100
3101 else
3102
3103                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3104
3105 fi
3106
3107
3108           eval "$wx_cv_use_subdirs"
3109
3110           if test x"$withstring" = xwithout; then
3111             if test $wxWITH_SUBDIRS = yes; then
3112               result=no
3113             else
3114               result=yes
3115             fi
3116           else
3117             result=$wxWITH_SUBDIRS
3118           fi
3119
3120           { echo "$as_me:$LINENO: result: $result" >&5
3121 echo "${ECHO_T}$result" >&6; }
3122
3123
3124 # Check whether --with-flavour was given.
3125 if test "${with_flavour+set}" = set; then
3126   withval=$with_flavour; WX_FLAVOUR="$withval"
3127 fi
3128
3129
3130           enablestring=
3131           defaultval=
3132           if test -z "$defaultval"; then
3133               if test x"$enablestring" = xdisable; then
3134                   defaultval=yes
3135               else
3136                   defaultval=no
3137               fi
3138           fi
3139
3140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3141 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3142           # Check whether --enable-official_build was given.
3143 if test "${enable_official_build+set}" = set; then
3144   enableval=$enable_official_build;
3145                           if test "$enableval" = yes; then
3146                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3147                           else
3148                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3149                           fi
3150
3151 else
3152
3153                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3154
3155 fi
3156
3157
3158           eval "$wx_cv_use_official_build"
3159
3160           if test x"$enablestring" = xdisable; then
3161             if test $wxUSE_OFFICIAL_BUILD = yes; then
3162               result=no
3163             else
3164               result=yes
3165             fi
3166           else
3167             result=$wxUSE_OFFICIAL_BUILD
3168           fi
3169
3170           { echo "$as_me:$LINENO: result: $result" >&5
3171 echo "${ECHO_T}$result" >&6; }
3172
3173 # Check whether --enable-vendor was given.
3174 if test "${enable_vendor+set}" = set; then
3175   enableval=$enable_vendor; VENDOR="$enableval"
3176 fi
3177
3178 if test "x$VENDOR" = "x"; then
3179     VENDOR="custom"
3180 fi
3181
3182
3183           enablestring=disable
3184           defaultval=
3185           if test -z "$defaultval"; then
3186               if test x"$enablestring" = xdisable; then
3187                   defaultval=yes
3188               else
3189                   defaultval=no
3190               fi
3191           fi
3192
3193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3194 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3195           # Check whether --enable-all-features was given.
3196 if test "${enable_all_features+set}" = set; then
3197   enableval=$enable_all_features;
3198                           if test "$enableval" = yes; then
3199                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3200                           else
3201                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3202                           fi
3203
3204 else
3205
3206                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3207
3208 fi
3209
3210
3211           eval "$wx_cv_use_all_features"
3212
3213           if test x"$enablestring" = xdisable; then
3214             if test $wxUSE_ALL_FEATURES = yes; then
3215               result=no
3216             else
3217               result=yes
3218             fi
3219           else
3220             result=$wxUSE_ALL_FEATURES
3221           fi
3222
3223           { echo "$as_me:$LINENO: result: $result" >&5
3224 echo "${ECHO_T}$result" >&6; }
3225
3226
3227 if test "$wxUSE_ALL_FEATURES" = "no"; then
3228                     DEFAULT_wxUSE_MEDIACTRL=no
3229 fi
3230
3231
3232 if test "$wxUSE_GUI" = "yes"; then
3233
3234
3235           enablestring=
3236           defaultval=
3237           if test -z "$defaultval"; then
3238               if test x"$enablestring" = xdisable; then
3239                   defaultval=yes
3240               else
3241                   defaultval=no
3242               fi
3243           fi
3244
3245           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3246 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3247           # Check whether --enable-universal was given.
3248 if test "${enable_universal+set}" = set; then
3249   enableval=$enable_universal;
3250                           if test "$enableval" = yes; then
3251                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3252                           else
3253                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3254                           fi
3255
3256 else
3257
3258                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3259
3260 fi
3261
3262
3263           eval "$wx_cv_use_universal"
3264
3265           if test x"$enablestring" = xdisable; then
3266             if test $wxUSE_UNIVERSAL = yes; then
3267               result=no
3268             else
3269               result=yes
3270             fi
3271           else
3272             result=$wxUSE_UNIVERSAL
3273           fi
3274
3275           { echo "$as_me:$LINENO: result: $result" >&5
3276 echo "${ECHO_T}$result" >&6; }
3277
3278 if test "$wxUSE_UNIVERSAL" = "yes"; then
3279
3280 # Check whether --with-themes was given.
3281 if test "${with_themes+set}" = set; then
3282   withval=$with_themes; wxUNIV_THEMES="$withval"
3283 fi
3284
3285 fi
3286
3287
3288 # Check whether --with-gtk was given.
3289 if test "${with_gtk+set}" = set; then
3290   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3291 fi
3292
3293
3294 # Check whether --with-motif was given.
3295 if test "${with_motif+set}" = set; then
3296   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3297 fi
3298
3299
3300 # Check whether --with-osx_carbon was given.
3301 if test "${with_osx_carbon+set}" = set; then
3302   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3303 fi
3304
3305
3306 # Check whether --with-osx_cocoa was given.
3307 if test "${with_osx_cocoa+set}" = set; then
3308   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3309 fi
3310
3311
3312 # Check whether --with-mac was given.
3313 if test "${with_mac+set}" = set; then
3314   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3315 fi
3316
3317
3318 # Check whether --with-cocoa was given.
3319 if test "${with_cocoa+set}" = set; then
3320   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3321 fi
3322
3323
3324 # Check whether --with-wine was given.
3325 if test "${with_wine+set}" = set; then
3326   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3327 fi
3328
3329
3330 # Check whether --with-msw was given.
3331 if test "${with_msw+set}" = set; then
3332   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3333 fi
3334
3335
3336 # Check whether --with-pm was given.
3337 if test "${with_pm+set}" = set; then
3338   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3339 fi
3340
3341
3342 # Check whether --with-mgl was given.
3343 if test "${with_mgl+set}" = set; then
3344   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3345 fi
3346
3347
3348 # Check whether --with-directfb was given.
3349 if test "${with_directfb+set}" = set; then
3350   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3351 fi
3352
3353
3354 # Check whether --with-microwin was given.
3355 if test "${with_microwin+set}" = set; then
3356   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3357 fi
3358
3359
3360 # Check whether --with-x11 was given.
3361 if test "${with_x11+set}" = set; then
3362   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3363 fi
3364
3365
3366           enablestring=
3367           defaultval=
3368           if test -z "$defaultval"; then
3369               if test x"$enablestring" = xdisable; then
3370                   defaultval=yes
3371               else
3372                   defaultval=no
3373               fi
3374           fi
3375
3376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3377 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3378           # Check whether --enable-nanox was given.
3379 if test "${enable_nanox+set}" = set; then
3380   enableval=$enable_nanox;
3381                           if test "$enableval" = yes; then
3382                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3383                           else
3384                             wx_cv_use_nanox='wxUSE_NANOX=no'
3385                           fi
3386
3387 else
3388
3389                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3390
3391 fi
3392
3393
3394           eval "$wx_cv_use_nanox"
3395
3396           if test x"$enablestring" = xdisable; then
3397             if test $wxUSE_NANOX = yes; then
3398               result=no
3399             else
3400               result=yes
3401             fi
3402           else
3403             result=$wxUSE_NANOX
3404           fi
3405
3406           { echo "$as_me:$LINENO: result: $result" >&5
3407 echo "${ECHO_T}$result" >&6; }
3408
3409
3410 # Check whether --enable-gtk2 was given.
3411 if test "${enable_gtk2+set}" = set; then
3412   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3413 fi
3414
3415
3416           enablestring=
3417           defaultval=
3418           if test -z "$defaultval"; then
3419               if test x"$enablestring" = xdisable; then
3420                   defaultval=yes
3421               else
3422                   defaultval=no
3423               fi
3424           fi
3425
3426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3427 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3428           # Check whether --enable-gpe was given.
3429 if test "${enable_gpe+set}" = set; then
3430   enableval=$enable_gpe;
3431                           if test "$enableval" = yes; then
3432                             wx_cv_use_gpe='wxUSE_GPE=yes'
3433                           else
3434                             wx_cv_use_gpe='wxUSE_GPE=no'
3435                           fi
3436
3437 else
3438
3439                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3440
3441 fi
3442
3443
3444           eval "$wx_cv_use_gpe"
3445
3446           if test x"$enablestring" = xdisable; then
3447             if test $wxUSE_GPE = yes; then
3448               result=no
3449             else
3450               result=yes
3451             fi
3452           else
3453             result=$wxUSE_GPE
3454           fi
3455
3456           { echo "$as_me:$LINENO: result: $result" >&5
3457 echo "${ECHO_T}$result" >&6; }
3458
3459
3460
3461 { echo "$as_me:$LINENO: checking for toolkit" >&5
3462 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3463
3464
3465
3466 # In Wine, we need to default to MSW, not GTK or MOTIF
3467 if test "$wxUSE_WINE" = "yes"; then
3468     DEFAULT_DEFAULT_wxUSE_GTK=0
3469     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3470     DEFAULT_DEFAULT_wxUSE_MSW=1
3471     wxUSE_SHARED=no
3472     CC=${CC:-winegcc}
3473     CXX=${CXX:-wineg++}
3474 fi
3475
3476
3477 if test "$wxUSE_GUI" = "yes"; then
3478
3479     if test "$USE_BEOS" = 1; then
3480         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3481 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3482    { (exit 1); exit 1; }; }
3483     fi
3484
3485     if test "$TOOLKIT_GIVEN" = 1; then
3486             for toolkit in $ALL_TOOLKITS; do
3487         var=wxUSE_$toolkit
3488         eval "value=\$${var}"
3489         if test "x$value" = "xno"; then
3490           eval "$var=0"
3491         elif test "x$value" != "x"; then
3492           eval "$var=1"
3493         fi
3494
3495         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3496           eval "wx${toolkit}_VERSION=$value"
3497         fi
3498       done
3499     else
3500             for toolkit in $ALL_TOOLKITS; do
3501         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3502         eval "wxUSE_$toolkit=\$${var}"
3503       done
3504     fi
3505
3506             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3507                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3508                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3509
3510         case "${host}" in
3511       *-pc-os2_emx | *-pc-os2-emx )
3512         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3513     esac
3514
3515     case "$NUM_TOOLKITS" in
3516       1)
3517       ;;
3518       0)
3519         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3520 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3521    { (exit 1); exit 1; }; }
3522       ;;
3523       *)
3524         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3525 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3526    { (exit 1); exit 1; }; }
3527     esac
3528
3529     # to be removed when --disable-gtk2 isn't needed
3530     if test "x$wxUSE_GTK2" = "xyes"; then
3531         wxGTK_VERSION=2
3532     elif test "x$wxUSE_GTK2" = "xno"; then
3533         wxGTK_VERSION=1
3534     fi
3535
3536     for toolkit in $ALL_TOOLKITS; do
3537         var=wxUSE_$toolkit
3538         eval "value=\$${var}"
3539         if test "$value" = 1; then
3540           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3541           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3542 echo "${ECHO_T}$toolkit_echo" >&6; }
3543         fi
3544     done
3545 else
3546     if test "x$host_alias" != "x"; then
3547         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3548 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3549     else
3550         { echo "$as_me:$LINENO: result: base only" >&5
3551 echo "${ECHO_T}base only" >&6; }
3552     fi
3553 fi
3554
3555 wxUSE_MAC=0
3556 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3557     wxUSE_MAC=1
3558 fi
3559
3560
3561
3562           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3563 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3564
3565 # Check whether --with-libpng was given.
3566 if test "${with_libpng+set}" = set; then
3567   withval=$with_libpng;
3568                         if test "$withval" = yes; then
3569                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3570                         elif test "$withval" = no; then
3571                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3572                         elif test "$withval" = sys; then
3573                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3574                         elif test "$withval" = builtin; then
3575                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3576                         else
3577                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3578 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3579    { (exit 1); exit 1; }; }
3580                         fi
3581
3582 else
3583
3584                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3585
3586 fi
3587
3588
3589           eval "$wx_cv_use_libpng"
3590
3591           if test "$wxUSE_LIBPNG" = yes; then
3592             { echo "$as_me:$LINENO: result: yes" >&5
3593 echo "${ECHO_T}yes" >&6; }
3594           elif test "$wxUSE_LIBPNG" = no; then
3595             { echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6; }
3597           elif test "$wxUSE_LIBPNG" = sys; then
3598             { echo "$as_me:$LINENO: result: system version" >&5
3599 echo "${ECHO_T}system version" >&6; }
3600           elif test "$wxUSE_LIBPNG" = builtin; then
3601             { echo "$as_me:$LINENO: result: builtin version" >&5
3602 echo "${ECHO_T}builtin version" >&6; }
3603           else
3604             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3605 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3606    { (exit 1); exit 1; }; }
3607           fi
3608
3609
3610           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3611 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3612
3613 # Check whether --with-libjpeg was given.
3614 if test "${with_libjpeg+set}" = set; then
3615   withval=$with_libjpeg;
3616                         if test "$withval" = yes; then
3617                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3618                         elif test "$withval" = no; then
3619                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3620                         elif test "$withval" = sys; then
3621                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3622                         elif test "$withval" = builtin; then
3623                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3624                         else
3625                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3626 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3627    { (exit 1); exit 1; }; }
3628                         fi
3629
3630 else
3631
3632                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3633
3634 fi
3635
3636
3637           eval "$wx_cv_use_libjpeg"
3638
3639           if test "$wxUSE_LIBJPEG" = yes; then
3640             { echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6; }
3642           elif test "$wxUSE_LIBJPEG" = no; then
3643             { echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6; }
3645           elif test "$wxUSE_LIBJPEG" = sys; then
3646             { echo "$as_me:$LINENO: result: system version" >&5
3647 echo "${ECHO_T}system version" >&6; }
3648           elif test "$wxUSE_LIBJPEG" = builtin; then
3649             { echo "$as_me:$LINENO: result: builtin version" >&5
3650 echo "${ECHO_T}builtin version" >&6; }
3651           else
3652             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3653 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3654    { (exit 1); exit 1; }; }
3655           fi
3656
3657
3658           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3659 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3660
3661 # Check whether --with-libtiff was given.
3662 if test "${with_libtiff+set}" = set; then
3663   withval=$with_libtiff;
3664                         if test "$withval" = yes; then
3665                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3666                         elif test "$withval" = no; then
3667                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3668                         elif test "$withval" = sys; then
3669                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3670                         elif test "$withval" = builtin; then
3671                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3672                         else
3673                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3674 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3675    { (exit 1); exit 1; }; }
3676                         fi
3677
3678 else
3679
3680                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3681
3682 fi
3683
3684
3685           eval "$wx_cv_use_libtiff"
3686
3687           if test "$wxUSE_LIBTIFF" = yes; then
3688             { echo "$as_me:$LINENO: result: yes" >&5
3689 echo "${ECHO_T}yes" >&6; }
3690           elif test "$wxUSE_LIBTIFF" = no; then
3691             { echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6; }
3693           elif test "$wxUSE_LIBTIFF" = sys; then
3694             { echo "$as_me:$LINENO: result: system version" >&5
3695 echo "${ECHO_T}system version" >&6; }
3696           elif test "$wxUSE_LIBTIFF" = builtin; then
3697             { echo "$as_me:$LINENO: result: builtin version" >&5
3698 echo "${ECHO_T}builtin version" >&6; }
3699           else
3700             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3701 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3702    { (exit 1); exit 1; }; }
3703           fi
3704
3705
3706           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3707 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3708
3709 # Check whether --with-libxpm was given.
3710 if test "${with_libxpm+set}" = set; then
3711   withval=$with_libxpm;
3712                         if test "$withval" = yes; then
3713                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3714                         elif test "$withval" = no; then
3715                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3716                         elif test "$withval" = sys; then
3717                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3718                         elif test "$withval" = builtin; then
3719                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3720                         else
3721                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3722 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3723    { (exit 1); exit 1; }; }
3724                         fi
3725
3726 else
3727
3728                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3729
3730 fi
3731
3732
3733           eval "$wx_cv_use_libxpm"
3734
3735           if test "$wxUSE_LIBXPM" = yes; then
3736             { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3738           elif test "$wxUSE_LIBXPM" = no; then
3739             { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3741           elif test "$wxUSE_LIBXPM" = sys; then
3742             { echo "$as_me:$LINENO: result: system version" >&5
3743 echo "${ECHO_T}system version" >&6; }
3744           elif test "$wxUSE_LIBXPM" = builtin; then
3745             { echo "$as_me:$LINENO: result: builtin version" >&5
3746 echo "${ECHO_T}builtin version" >&6; }
3747           else
3748             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3749 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3750    { (exit 1); exit 1; }; }
3751           fi
3752
3753
3754           withstring=
3755           defaultval=$wxUSE_ALL_FEATURES
3756           if test -z "$defaultval"; then
3757               if test x"$withstring" = xwithout; then
3758                   defaultval=yes
3759               else
3760                   defaultval=no
3761               fi
3762           fi
3763           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3764 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3765
3766 # Check whether --with-libiconv was given.
3767 if test "${with_libiconv+set}" = set; then
3768   withval=$with_libiconv;
3769                         if test "$withval" = yes; then
3770                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3771                         else
3772                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3773                         fi
3774
3775 else
3776
3777                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3778
3779 fi
3780
3781
3782           eval "$wx_cv_use_libiconv"
3783
3784           if test x"$withstring" = xwithout; then
3785             if test $wxUSE_LIBICONV = yes; then
3786               result=no
3787             else
3788               result=yes
3789             fi
3790           else
3791             result=$wxUSE_LIBICONV
3792           fi
3793
3794           { echo "$as_me:$LINENO: result: $result" >&5
3795 echo "${ECHO_T}$result" >&6; }
3796
3797
3798           withstring=
3799           defaultval=$wxUSE_ALL_FEATURES
3800           if test -z "$defaultval"; then
3801               if test x"$withstring" = xwithout; then
3802                   defaultval=yes
3803               else
3804                   defaultval=no
3805               fi
3806           fi
3807           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3808 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3809
3810 # Check whether --with-libmspack was given.
3811 if test "${with_libmspack+set}" = set; then
3812   withval=$with_libmspack;
3813                         if test "$withval" = yes; then
3814                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3815                         else
3816                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3817                         fi
3818
3819 else
3820
3821                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3822
3823 fi
3824
3825
3826           eval "$wx_cv_use_libmspack"
3827
3828           if test x"$withstring" = xwithout; then
3829             if test $wxUSE_LIBMSPACK = yes; then
3830               result=no
3831             else
3832               result=yes
3833             fi
3834           else
3835             result=$wxUSE_LIBMSPACK
3836           fi
3837
3838           { echo "$as_me:$LINENO: result: $result" >&5
3839 echo "${ECHO_T}$result" >&6; }
3840
3841
3842           withstring=without
3843           defaultval=$wxUSE_ALL_FEATURES
3844           if test -z "$defaultval"; then
3845               if test x"$withstring" = xwithout; then
3846                   defaultval=yes
3847               else
3848                   defaultval=no
3849               fi
3850           fi
3851           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3852 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3853
3854 # Check whether --with-gtkprint was given.
3855 if test "${with_gtkprint+set}" = set; then
3856   withval=$with_gtkprint;
3857                         if test "$withval" = yes; then
3858                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3859                         else
3860                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3861                         fi
3862
3863 else
3864
3865                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3866
3867 fi
3868
3869
3870           eval "$wx_cv_use_gtkprint"
3871
3872           if test x"$withstring" = xwithout; then
3873             if test $wxUSE_GTKPRINT = yes; then
3874               result=no
3875             else
3876               result=yes
3877             fi
3878           else
3879             result=$wxUSE_GTKPRINT
3880           fi
3881
3882           { echo "$as_me:$LINENO: result: $result" >&5
3883 echo "${ECHO_T}$result" >&6; }
3884
3885
3886           withstring=without
3887           defaultval=$wxUSE_ALL_FEATURES
3888           if test -z "$defaultval"; then
3889               if test x"$withstring" = xwithout; then
3890                   defaultval=yes
3891               else
3892                   defaultval=no
3893               fi
3894           fi
3895           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3896 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3897
3898 # Check whether --with-gnomeprint was given.
3899 if test "${with_gnomeprint+set}" = set; then
3900   withval=$with_gnomeprint;
3901                         if test "$withval" = yes; then
3902                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3903                         else
3904                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3905                         fi
3906
3907 else
3908
3909                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3910
3911 fi
3912
3913
3914           eval "$wx_cv_use_gnomeprint"
3915
3916           if test x"$withstring" = xwithout; then
3917             if test $wxUSE_LIBGNOMEPRINT = yes; then
3918               result=no
3919             else
3920               result=yes
3921             fi
3922           else
3923             result=$wxUSE_LIBGNOMEPRINT
3924           fi
3925
3926           { echo "$as_me:$LINENO: result: $result" >&5
3927 echo "${ECHO_T}$result" >&6; }
3928
3929
3930           withstring=
3931           defaultval=$wxUSE_ALL_FEATURES
3932           if test -z "$defaultval"; then
3933               if test x"$withstring" = xwithout; then
3934                   defaultval=yes
3935               else
3936                   defaultval=no
3937               fi
3938           fi
3939           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3940 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3941
3942 # Check whether --with-gnomevfs was given.
3943 if test "${with_gnomevfs+set}" = set; then
3944   withval=$with_gnomevfs;
3945                         if test "$withval" = yes; then
3946                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3947                         else
3948                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3949                         fi
3950
3951 else
3952
3953                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3954
3955 fi
3956
3957
3958           eval "$wx_cv_use_gnomevfs"
3959
3960           if test x"$withstring" = xwithout; then
3961             if test $wxUSE_LIBGNOMEVFS = yes; then
3962               result=no
3963             else
3964               result=yes
3965             fi
3966           else
3967             result=$wxUSE_LIBGNOMEVFS
3968           fi
3969
3970           { echo "$as_me:$LINENO: result: $result" >&5
3971 echo "${ECHO_T}$result" >&6; }
3972
3973
3974           withstring=
3975           defaultval=$wxUSE_ALL_FEATURES
3976           if test -z "$defaultval"; then
3977               if test x"$withstring" = xwithout; then
3978                   defaultval=yes
3979               else
3980                   defaultval=no
3981               fi
3982           fi
3983           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3984 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3985
3986 # Check whether --with-hildon was given.
3987 if test "${with_hildon+set}" = set; then
3988   withval=$with_hildon;
3989                         if test "$withval" = yes; then
3990                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3991                         else
3992                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3993                         fi
3994
3995 else
3996
3997                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3998
3999 fi
4000
4001
4002           eval "$wx_cv_use_hildon"
4003
4004           if test x"$withstring" = xwithout; then
4005             if test $wxUSE_LIBHILDON = yes; then
4006               result=no
4007             else
4008               result=yes
4009             fi
4010           else
4011             result=$wxUSE_LIBHILDON
4012           fi
4013
4014           { echo "$as_me:$LINENO: result: $result" >&5
4015 echo "${ECHO_T}$result" >&6; }
4016
4017
4018           withstring=
4019           defaultval=$wxUSE_ALL_FEATURES
4020           if test -z "$defaultval"; then
4021               if test x"$withstring" = xwithout; then
4022                   defaultval=yes
4023               else
4024                   defaultval=no
4025               fi
4026           fi
4027           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4028 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4029
4030 # Check whether --with-opengl was given.
4031 if test "${with_opengl+set}" = set; then
4032   withval=$with_opengl;
4033                         if test "$withval" = yes; then
4034                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4035                         else
4036                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4037                         fi
4038
4039 else
4040
4041                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4042
4043 fi
4044
4045
4046           eval "$wx_cv_use_opengl"
4047
4048           if test x"$withstring" = xwithout; then
4049             if test $wxUSE_OPENGL = yes; then
4050               result=no
4051             else
4052               result=yes
4053             fi
4054           else
4055             result=$wxUSE_OPENGL
4056           fi
4057
4058           { echo "$as_me:$LINENO: result: $result" >&5
4059 echo "${ECHO_T}$result" >&6; }
4060
4061
4062 fi
4063
4064
4065           withstring=
4066           defaultval=$wxUSE_ALL_FEATURES
4067           if test -z "$defaultval"; then
4068               if test x"$withstring" = xwithout; then
4069                   defaultval=yes
4070               else
4071                   defaultval=no
4072               fi
4073           fi
4074           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4075 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4076
4077 # Check whether --with-dmalloc was given.
4078 if test "${with_dmalloc+set}" = set; then
4079   withval=$with_dmalloc;
4080                         if test "$withval" = yes; then
4081                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4082                         else
4083                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4084                         fi
4085
4086 else
4087
4088                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4089
4090 fi
4091
4092
4093           eval "$wx_cv_use_dmalloc"
4094
4095           if test x"$withstring" = xwithout; then
4096             if test $wxUSE_DMALLOC = yes; then
4097               result=no
4098             else
4099               result=yes
4100             fi
4101           else
4102             result=$wxUSE_DMALLOC
4103           fi
4104
4105           { echo "$as_me:$LINENO: result: $result" >&5
4106 echo "${ECHO_T}$result" >&6; }
4107
4108
4109           withstring=
4110           defaultval=$wxUSE_ALL_FEATURES
4111           if test -z "$defaultval"; then
4112               if test x"$withstring" = xwithout; then
4113                   defaultval=yes
4114               else
4115                   defaultval=no
4116               fi
4117           fi
4118           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4119 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4120
4121 # Check whether --with-sdl was given.
4122 if test "${with_sdl+set}" = set; then
4123   withval=$with_sdl;
4124                         if test "$withval" = yes; then
4125                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4126                         else
4127                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4128                         fi
4129
4130 else
4131
4132                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4133
4134 fi
4135
4136
4137           eval "$wx_cv_use_sdl"
4138
4139           if test x"$withstring" = xwithout; then
4140             if test $wxUSE_LIBSDL = yes; then
4141               result=no
4142             else
4143               result=yes
4144             fi
4145           else
4146             result=$wxUSE_LIBSDL
4147           fi
4148
4149           { echo "$as_me:$LINENO: result: $result" >&5
4150 echo "${ECHO_T}$result" >&6; }
4151
4152
4153           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4154 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4155
4156 # Check whether --with-regex was given.
4157 if test "${with_regex+set}" = set; then
4158   withval=$with_regex;
4159                         if test "$withval" = yes; then
4160                           wx_cv_use_regex='wxUSE_REGEX=yes'
4161                         elif test "$withval" = no; then
4162                           wx_cv_use_regex='wxUSE_REGEX=no'
4163                         elif test "$withval" = sys; then
4164                           wx_cv_use_regex='wxUSE_REGEX=sys'
4165                         elif test "$withval" = builtin; then
4166                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4167                         else
4168                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4169 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4170    { (exit 1); exit 1; }; }
4171                         fi
4172
4173 else
4174
4175                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4176
4177 fi
4178
4179
4180           eval "$wx_cv_use_regex"
4181
4182           if test "$wxUSE_REGEX" = yes; then
4183             { echo "$as_me:$LINENO: result: yes" >&5
4184 echo "${ECHO_T}yes" >&6; }
4185           elif test "$wxUSE_REGEX" = no; then
4186             { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4188           elif test "$wxUSE_REGEX" = sys; then
4189             { echo "$as_me:$LINENO: result: system version" >&5
4190 echo "${ECHO_T}system version" >&6; }
4191           elif test "$wxUSE_REGEX" = builtin; then
4192             { echo "$as_me:$LINENO: result: builtin version" >&5
4193 echo "${ECHO_T}builtin version" >&6; }
4194           else
4195             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4196 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4197    { (exit 1); exit 1; }; }
4198           fi
4199
4200
4201           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4202 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4203
4204 # Check whether --with-zlib was given.
4205 if test "${with_zlib+set}" = set; then
4206   withval=$with_zlib;
4207                         if test "$withval" = yes; then
4208                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4209                         elif test "$withval" = no; then
4210                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4211                         elif test "$withval" = sys; then
4212                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4213                         elif test "$withval" = builtin; then
4214                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4215                         else
4216                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4217 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4218    { (exit 1); exit 1; }; }
4219                         fi
4220
4221 else
4222
4223                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4224
4225 fi
4226
4227
4228           eval "$wx_cv_use_zlib"
4229
4230           if test "$wxUSE_ZLIB" = yes; then
4231             { echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6; }
4233           elif test "$wxUSE_ZLIB" = no; then
4234             { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236           elif test "$wxUSE_ZLIB" = sys; then
4237             { echo "$as_me:$LINENO: result: system version" >&5
4238 echo "${ECHO_T}system version" >&6; }
4239           elif test "$wxUSE_ZLIB" = builtin; then
4240             { echo "$as_me:$LINENO: result: builtin version" >&5
4241 echo "${ECHO_T}builtin version" >&6; }
4242           else
4243             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4244 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4245    { (exit 1); exit 1; }; }
4246           fi
4247
4248
4249           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4250 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4251
4252 # Check whether --with-expat was given.
4253 if test "${with_expat+set}" = set; then
4254   withval=$with_expat;
4255                         if test "$withval" = yes; then
4256                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4257                         elif test "$withval" = no; then
4258                           wx_cv_use_expat='wxUSE_EXPAT=no'
4259                         elif test "$withval" = sys; then
4260                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4261                         elif test "$withval" = builtin; then
4262                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4263                         else
4264                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4265 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4266    { (exit 1); exit 1; }; }
4267                         fi
4268
4269 else
4270
4271                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4272
4273 fi
4274
4275
4276           eval "$wx_cv_use_expat"
4277
4278           if test "$wxUSE_EXPAT" = yes; then
4279             { echo "$as_me:$LINENO: result: yes" >&5
4280 echo "${ECHO_T}yes" >&6; }
4281           elif test "$wxUSE_EXPAT" = no; then
4282             { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4284           elif test "$wxUSE_EXPAT" = sys; then
4285             { echo "$as_me:$LINENO: result: system version" >&5
4286 echo "${ECHO_T}system version" >&6; }
4287           elif test "$wxUSE_EXPAT" = builtin; then
4288             { echo "$as_me:$LINENO: result: builtin version" >&5
4289 echo "${ECHO_T}builtin version" >&6; }
4290           else
4291             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4292 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4293    { (exit 1); exit 1; }; }
4294           fi
4295
4296
4297 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4298 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4299
4300 # Check whether --with-macosx-sdk was given.
4301 if test "${with_macosx_sdk+set}" = set; then
4302   withval=$with_macosx_sdk;
4303         wxUSE_MACOSX_SDK=$withval
4304         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4305
4306 fi
4307
4308 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4309 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4310
4311 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4312 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4313
4314 # Check whether --with-macosx-version-min was given.
4315 if test "${with_macosx_version_min+set}" = set; then
4316   withval=$with_macosx_version_min;
4317         wxUSE_MACOSX_VERSION_MIN=$withval
4318         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4319
4320 fi
4321
4322 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4323 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4324
4325
4326
4327           enablestring=disable
4328           defaultval=
4329           if test -z "$defaultval"; then
4330               if test x"$enablestring" = xdisable; then
4331                   defaultval=yes
4332               else
4333                   defaultval=no
4334               fi
4335           fi
4336
4337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4338 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4339           # Check whether --enable-shared was given.
4340 if test "${enable_shared+set}" = set; then
4341   enableval=$enable_shared;
4342                           if test "$enableval" = yes; then
4343                             wx_cv_use_shared='wxUSE_SHARED=yes'
4344                           else
4345                             wx_cv_use_shared='wxUSE_SHARED=no'
4346                           fi
4347
4348 else
4349
4350                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4351
4352 fi
4353
4354
4355           eval "$wx_cv_use_shared"
4356
4357           if test x"$enablestring" = xdisable; then
4358             if test $wxUSE_SHARED = yes; then
4359               result=no
4360             else
4361               result=yes
4362             fi
4363           else
4364             result=$wxUSE_SHARED
4365           fi
4366
4367           { echo "$as_me:$LINENO: result: $result" >&5
4368 echo "${ECHO_T}$result" >&6; }
4369
4370
4371           enablestring=
4372           defaultval=
4373           if test -z "$defaultval"; then
4374               if test x"$enablestring" = xdisable; then
4375                   defaultval=yes
4376               else
4377                   defaultval=no
4378               fi
4379           fi
4380
4381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4382 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4383           # Check whether --enable-debug was given.
4384 if test "${enable_debug+set}" = set; then
4385   enableval=$enable_debug;
4386                           if test "$enableval" = yes; then
4387                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4388                           else
4389                             wx_cv_use_debug='wxUSE_DEBUG=no'
4390                           fi
4391
4392 else
4393
4394                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4395
4396 fi
4397
4398
4399           eval "$wx_cv_use_debug"
4400
4401           if test x"$enablestring" = xdisable; then
4402             if test $wxUSE_DEBUG = yes; then
4403               result=no
4404             else
4405               result=yes
4406             fi
4407           else
4408             result=$wxUSE_DEBUG
4409           fi
4410
4411           { echo "$as_me:$LINENO: result: $result" >&5
4412 echo "${ECHO_T}$result" >&6; }
4413
4414
4415           enablestring=
4416           defaultval=
4417           if test -z "$defaultval"; then
4418               if test x"$enablestring" = xdisable; then
4419                   defaultval=yes
4420               else
4421                   defaultval=no
4422               fi
4423           fi
4424
4425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4426 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4427           # Check whether --enable-stl was given.
4428 if test "${enable_stl+set}" = set; then
4429   enableval=$enable_stl;
4430                           if test "$enableval" = yes; then
4431                             wx_cv_use_stl='wxUSE_STL=yes'
4432                           else
4433                             wx_cv_use_stl='wxUSE_STL=no'
4434                           fi
4435
4436 else
4437
4438                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4439
4440 fi
4441
4442
4443           eval "$wx_cv_use_stl"
4444
4445           if test x"$enablestring" = xdisable; then
4446             if test $wxUSE_STL = yes; then
4447               result=no
4448             else
4449               result=yes
4450             fi
4451           else
4452             result=$wxUSE_STL
4453           fi
4454
4455           { echo "$as_me:$LINENO: result: $result" >&5
4456 echo "${ECHO_T}$result" >&6; }
4457
4458
4459           enablestring=
4460           defaultval=
4461           if test -z "$defaultval"; then
4462               if test x"$enablestring" = xdisable; then
4463                   defaultval=yes
4464               else
4465                   defaultval=no
4466               fi
4467           fi
4468
4469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4470 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4471           # Check whether --enable-std_iostreams was given.
4472 if test "${enable_std_iostreams+set}" = set; then
4473   enableval=$enable_std_iostreams;
4474                           if test "$enableval" = yes; then
4475                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4476                           else
4477                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4478                           fi
4479
4480 else
4481
4482                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4483
4484 fi
4485
4486
4487           eval "$wx_cv_use_std_iostreams"
4488
4489           if test x"$enablestring" = xdisable; then
4490             if test $wxUSE_STD_IOSTREAM = yes; then
4491               result=no
4492             else
4493               result=yes
4494             fi
4495           else
4496             result=$wxUSE_STD_IOSTREAM
4497           fi
4498
4499           { echo "$as_me:$LINENO: result: $result" >&5
4500 echo "${ECHO_T}$result" >&6; }
4501
4502
4503           enablestring=
4504           defaultval=
4505           if test -z "$defaultval"; then
4506               if test x"$enablestring" = xdisable; then
4507                   defaultval=yes
4508               else
4509                   defaultval=no
4510               fi
4511           fi
4512
4513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4514 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4515           # Check whether --enable-std_string was given.
4516 if test "${enable_std_string+set}" = set; then
4517   enableval=$enable_std_string;
4518                           if test "$enableval" = yes; then
4519                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4520                           else
4521                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4522                           fi
4523
4524 else
4525
4526                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4527
4528 fi
4529
4530
4531           eval "$wx_cv_use_std_string"
4532
4533           if test x"$enablestring" = xdisable; then
4534             if test $wxUSE_STD_STRING = yes; then
4535               result=no
4536             else
4537               result=yes
4538             fi
4539           else
4540             result=$wxUSE_STD_STRING
4541           fi
4542
4543           { echo "$as_me:$LINENO: result: $result" >&5
4544 echo "${ECHO_T}$result" >&6; }
4545
4546
4547           enablestring=disable
4548           defaultval=
4549           if test -z "$defaultval"; then
4550               if test x"$enablestring" = xdisable; then
4551                   defaultval=yes
4552               else
4553                   defaultval=no
4554               fi
4555           fi
4556
4557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4558 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4559           # Check whether --enable-unicode was given.
4560 if test "${enable_unicode+set}" = set; then
4561   enableval=$enable_unicode;
4562                           if test "$enableval" = yes; then
4563                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4564                           else
4565                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4566                           fi
4567
4568 else
4569
4570                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4571
4572 fi
4573
4574
4575           eval "$wx_cv_use_unicode"
4576
4577           if test x"$enablestring" = xdisable; then
4578             if test $wxUSE_UNICODE = yes; then
4579               result=no
4580             else
4581               result=yes
4582             fi
4583           else
4584             result=$wxUSE_UNICODE
4585           fi
4586
4587           { echo "$as_me:$LINENO: result: $result" >&5
4588 echo "${ECHO_T}$result" >&6; }
4589
4590
4591           enablestring=
4592           defaultval=
4593           if test -z "$defaultval"; then
4594               if test x"$enablestring" = xdisable; then
4595                   defaultval=yes
4596               else
4597                   defaultval=no
4598               fi
4599           fi
4600
4601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4602 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4603           # Check whether --enable-mslu was given.
4604 if test "${enable_mslu+set}" = set; then
4605   enableval=$enable_mslu;
4606                           if test "$enableval" = yes; then
4607                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4608                           else
4609                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4610                           fi
4611
4612 else
4613
4614                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4615
4616 fi
4617
4618
4619           eval "$wx_cv_use_mslu"
4620
4621           if test x"$enablestring" = xdisable; then
4622             if test $wxUSE_UNICODE_MSLU = yes; then
4623               result=no
4624             else
4625               result=yes
4626             fi
4627           else
4628             result=$wxUSE_UNICODE_MSLU
4629           fi
4630
4631           { echo "$as_me:$LINENO: result: $result" >&5
4632 echo "${ECHO_T}$result" >&6; }
4633
4634
4635           enablestring=
4636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4637 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4638           # Check whether --enable-utf8 was given.
4639 if test "${enable_utf8+set}" = set; then
4640   enableval=$enable_utf8;
4641                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4642
4643 else
4644
4645                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4646
4647 fi
4648
4649
4650           eval "$wx_cv_use_utf8"
4651
4652           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4653 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4654
4655
4656           enablestring=
4657           defaultval=
4658           if test -z "$defaultval"; then
4659               if test x"$enablestring" = xdisable; then
4660                   defaultval=yes
4661               else
4662                   defaultval=no
4663               fi
4664           fi
4665
4666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4667 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4668           # Check whether --enable-utf8only was given.
4669 if test "${enable_utf8only+set}" = set; then
4670   enableval=$enable_utf8only;
4671                           if test "$enableval" = yes; then
4672                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4673                           else
4674                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4675                           fi
4676
4677 else
4678
4679                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4680
4681 fi
4682
4683
4684           eval "$wx_cv_use_utf8only"
4685
4686           if test x"$enablestring" = xdisable; then
4687             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4688               result=no
4689             else
4690               result=yes
4691             fi
4692           else
4693             result=$wxUSE_UNICODE_UTF8_LOCALE
4694           fi
4695
4696           { echo "$as_me:$LINENO: result: $result" >&5
4697 echo "${ECHO_T}$result" >&6; }
4698
4699
4700           enablestring=
4701           defaultval=
4702           if test -z "$defaultval"; then
4703               if test x"$enablestring" = xdisable; then
4704                   defaultval=yes
4705               else
4706                   defaultval=no
4707               fi
4708           fi
4709
4710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4711 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4712           # Check whether --enable-extended_rtti was given.
4713 if test "${enable_extended_rtti+set}" = set; then
4714   enableval=$enable_extended_rtti;
4715                           if test "$enableval" = yes; then
4716                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4717                           else
4718                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4719                           fi
4720
4721 else
4722
4723                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4724
4725 fi
4726
4727
4728           eval "$wx_cv_use_extended_rtti"
4729
4730           if test x"$enablestring" = xdisable; then
4731             if test $wxUSE_EXTENDED_RTTI = yes; then
4732               result=no
4733             else
4734               result=yes
4735             fi
4736           else
4737             result=$wxUSE_EXTENDED_RTTI
4738           fi
4739
4740           { echo "$as_me:$LINENO: result: $result" >&5
4741 echo "${ECHO_T}$result" >&6; }
4742
4743 if test "$USE_OS2" = 1; then
4744     DEFAULT_wxUSE_OMF=no
4745
4746           enablestring=
4747           defaultval=
4748           if test -z "$defaultval"; then
4749               if test x"$enablestring" = xdisable; then
4750                   defaultval=yes
4751               else
4752                   defaultval=no
4753               fi
4754           fi
4755
4756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4757 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4758           # Check whether --enable-omf was given.
4759 if test "${enable_omf+set}" = set; then
4760   enableval=$enable_omf;
4761                           if test "$enableval" = yes; then
4762                             wx_cv_use_omf='wxUSE_OMF=yes'
4763                           else
4764                             wx_cv_use_omf='wxUSE_OMF=no'
4765                           fi
4766
4767 else
4768
4769                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4770
4771 fi
4772
4773
4774           eval "$wx_cv_use_omf"
4775
4776           if test x"$enablestring" = xdisable; then
4777             if test $wxUSE_OMF = yes; then
4778               result=no
4779             else
4780               result=yes
4781             fi
4782           else
4783             result=$wxUSE_OMF
4784           fi
4785
4786           { echo "$as_me:$LINENO: result: $result" >&5
4787 echo "${ECHO_T}$result" >&6; }
4788
4789 fi
4790
4791 if test "$wxUSE_DEBUG" = "yes"; then
4792     DEFAULT_wxUSE_DEBUG_FLAG=yes
4793     DEFAULT_wxUSE_DEBUG_INFO=yes
4794     BUILD=debug
4795 elif test "$wxUSE_DEBUG" = "no"; then
4796     DEFAULT_wxUSE_DEBUG_FLAG=no
4797     DEFAULT_wxUSE_DEBUG_INFO=no
4798     BUILD=release
4799 fi
4800
4801
4802           enablestring=
4803           defaultval=
4804           if test -z "$defaultval"; then
4805               if test x"$enablestring" = xdisable; then
4806                   defaultval=yes
4807               else
4808                   defaultval=no
4809               fi
4810           fi
4811
4812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4813 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4814           # Check whether --enable-debug_flag was given.
4815 if test "${enable_debug_flag+set}" = set; then
4816   enableval=$enable_debug_flag;
4817                           if test "$enableval" = yes; then
4818                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4819                           else
4820                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4821                           fi
4822
4823 else
4824
4825                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4826
4827 fi
4828
4829
4830           eval "$wx_cv_use_debug_flag"
4831
4832           if test x"$enablestring" = xdisable; then
4833             if test $wxUSE_DEBUG_FLAG = yes; then
4834               result=no
4835             else
4836               result=yes
4837             fi
4838           else
4839             result=$wxUSE_DEBUG_FLAG
4840           fi
4841
4842           { echo "$as_me:$LINENO: result: $result" >&5
4843 echo "${ECHO_T}$result" >&6; }
4844
4845
4846           enablestring=
4847           defaultval=
4848           if test -z "$defaultval"; then
4849               if test x"$enablestring" = xdisable; then
4850                   defaultval=yes
4851               else
4852                   defaultval=no
4853               fi
4854           fi
4855
4856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4857 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4858           # Check whether --enable-debug_info was given.
4859 if test "${enable_debug_info+set}" = set; then
4860   enableval=$enable_debug_info;
4861                           if test "$enableval" = yes; then
4862                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4863                           else
4864                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4865                           fi
4866
4867 else
4868
4869                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4870
4871 fi
4872
4873
4874           eval "$wx_cv_use_debug_info"
4875
4876           if test x"$enablestring" = xdisable; then
4877             if test $wxUSE_DEBUG_INFO = yes; then
4878               result=no
4879             else
4880               result=yes
4881             fi
4882           else
4883             result=$wxUSE_DEBUG_INFO
4884           fi
4885
4886           { echo "$as_me:$LINENO: result: $result" >&5
4887 echo "${ECHO_T}$result" >&6; }
4888
4889
4890 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4891     wxUSE_DEBUG=yes
4892     BUILD=debug
4893 fi
4894
4895 if test "$wxUSE_DEBUG" = "yes"; then
4896     DEFAULT_wxUSE_OPTIMISE=no
4897 fi
4898
4899
4900           enablestring=disable
4901           defaultval=
4902           if test -z "$defaultval"; then
4903               if test x"$enablestring" = xdisable; then
4904                   defaultval=yes
4905               else
4906                   defaultval=no
4907               fi
4908           fi
4909
4910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4911 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4912           # Check whether --enable-optimise was given.
4913 if test "${enable_optimise+set}" = set; then
4914   enableval=$enable_optimise;
4915                           if test "$enableval" = yes; then
4916                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4917                           else
4918                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4919                           fi
4920
4921 else
4922
4923                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4924
4925 fi
4926
4927
4928           eval "$wx_cv_use_optimise"
4929
4930           if test x"$enablestring" = xdisable; then
4931             if test $wxUSE_OPTIMISE = yes; then
4932               result=no
4933             else
4934               result=yes
4935             fi
4936           else
4937             result=$wxUSE_OPTIMISE
4938           fi
4939
4940           { echo "$as_me:$LINENO: result: $result" >&5
4941 echo "${ECHO_T}$result" >&6; }
4942
4943
4944
4945           enablestring=
4946           defaultval=
4947           if test -z "$defaultval"; then
4948               if test x"$enablestring" = xdisable; then
4949                   defaultval=yes
4950               else
4951                   defaultval=no
4952               fi
4953           fi
4954
4955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4956 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4957           # Check whether --enable-debug_gdb was given.
4958 if test "${enable_debug_gdb+set}" = set; then
4959   enableval=$enable_debug_gdb;
4960                           if test "$enableval" = yes; then
4961                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4962                           else
4963                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4964                           fi
4965
4966 else
4967
4968                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4969
4970 fi
4971
4972
4973           eval "$wx_cv_use_debug_gdb"
4974
4975           if test x"$enablestring" = xdisable; then
4976             if test $wxUSE_DEBUG_GDB = yes; then
4977               result=no
4978             else
4979               result=yes
4980             fi
4981           else
4982             result=$wxUSE_DEBUG_GDB
4983           fi
4984
4985           { echo "$as_me:$LINENO: result: $result" >&5
4986 echo "${ECHO_T}$result" >&6; }
4987
4988
4989           enablestring=
4990           defaultval=
4991           if test -z "$defaultval"; then
4992               if test x"$enablestring" = xdisable; then
4993                   defaultval=yes
4994               else
4995                   defaultval=no
4996               fi
4997           fi
4998
4999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5000 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5001           # Check whether --enable-debug_cntxt was given.
5002 if test "${enable_debug_cntxt+set}" = set; then
5003   enableval=$enable_debug_cntxt;
5004                           if test "$enableval" = yes; then
5005                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5006                           else
5007                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5008                           fi
5009
5010 else
5011
5012                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5013
5014 fi
5015
5016
5017           eval "$wx_cv_use_debug_cntxt"
5018
5019           if test x"$enablestring" = xdisable; then
5020             if test $wxUSE_DEBUG_CONTEXT = yes; then
5021               result=no
5022             else
5023               result=yes
5024             fi
5025           else
5026             result=$wxUSE_DEBUG_CONTEXT
5027           fi
5028
5029           { echo "$as_me:$LINENO: result: $result" >&5
5030 echo "${ECHO_T}$result" >&6; }
5031
5032
5033           enablestring=
5034           defaultval=
5035           if test -z "$defaultval"; then
5036               if test x"$enablestring" = xdisable; then
5037                   defaultval=yes
5038               else
5039                   defaultval=no
5040               fi
5041           fi
5042
5043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5044 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5045           # Check whether --enable-mem_tracing was given.
5046 if test "${enable_mem_tracing+set}" = set; then
5047   enableval=$enable_mem_tracing;
5048                           if test "$enableval" = yes; then
5049                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5050                           else
5051                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5052                           fi
5053
5054 else
5055
5056                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5057
5058 fi
5059
5060
5061           eval "$wx_cv_use_mem_tracing"
5062
5063           if test x"$enablestring" = xdisable; then
5064             if test $wxUSE_MEM_TRACING = yes; then
5065               result=no
5066             else
5067               result=yes
5068             fi
5069           else
5070             result=$wxUSE_MEM_TRACING
5071           fi
5072
5073           { echo "$as_me:$LINENO: result: $result" >&5
5074 echo "${ECHO_T}$result" >&6; }
5075
5076
5077           enablestring=
5078           defaultval=
5079           if test -z "$defaultval"; then
5080               if test x"$enablestring" = xdisable; then
5081                   defaultval=yes
5082               else
5083                   defaultval=no
5084               fi
5085           fi
5086
5087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5088 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5089           # Check whether --enable-profile was given.
5090 if test "${enable_profile+set}" = set; then
5091   enableval=$enable_profile;
5092                           if test "$enableval" = yes; then
5093                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5094                           else
5095                             wx_cv_use_profile='wxUSE_PROFILE=no'
5096                           fi
5097
5098 else
5099
5100                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5101
5102 fi
5103
5104
5105           eval "$wx_cv_use_profile"
5106
5107           if test x"$enablestring" = xdisable; then
5108             if test $wxUSE_PROFILE = yes; then
5109               result=no
5110             else
5111               result=yes
5112             fi
5113           else
5114             result=$wxUSE_PROFILE
5115           fi
5116
5117           { echo "$as_me:$LINENO: result: $result" >&5
5118 echo "${ECHO_T}$result" >&6; }
5119
5120
5121           enablestring=
5122           defaultval=
5123           if test -z "$defaultval"; then
5124               if test x"$enablestring" = xdisable; then
5125                   defaultval=yes
5126               else
5127                   defaultval=no
5128               fi
5129           fi
5130
5131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5132 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5133           # Check whether --enable-no_rtti was given.
5134 if test "${enable_no_rtti+set}" = set; then
5135   enableval=$enable_no_rtti;
5136                           if test "$enableval" = yes; then
5137                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5138                           else
5139                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5140                           fi
5141
5142 else
5143
5144                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5145
5146 fi
5147
5148
5149           eval "$wx_cv_use_no_rtti"
5150
5151           if test x"$enablestring" = xdisable; then
5152             if test $wxUSE_NO_RTTI = yes; then
5153               result=no
5154             else
5155               result=yes
5156             fi
5157           else
5158             result=$wxUSE_NO_RTTI
5159           fi
5160
5161           { echo "$as_me:$LINENO: result: $result" >&5
5162 echo "${ECHO_T}$result" >&6; }
5163
5164
5165           enablestring=
5166           defaultval=
5167           if test -z "$defaultval"; then
5168               if test x"$enablestring" = xdisable; then
5169                   defaultval=yes
5170               else
5171                   defaultval=no
5172               fi
5173           fi
5174
5175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5176 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5177           # Check whether --enable-no_exceptions was given.
5178 if test "${enable_no_exceptions+set}" = set; then
5179   enableval=$enable_no_exceptions;
5180                           if test "$enableval" = yes; then
5181                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5182                           else
5183                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5184                           fi
5185
5186 else
5187
5188                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5189
5190 fi
5191
5192
5193           eval "$wx_cv_use_no_exceptions"
5194
5195           if test x"$enablestring" = xdisable; then
5196             if test $wxUSE_NO_EXCEPTIONS = yes; then
5197               result=no
5198             else
5199               result=yes
5200             fi
5201           else
5202             result=$wxUSE_NO_EXCEPTIONS
5203           fi
5204
5205           { echo "$as_me:$LINENO: result: $result" >&5
5206 echo "${ECHO_T}$result" >&6; }
5207
5208
5209           enablestring=
5210           defaultval=
5211           if test -z "$defaultval"; then
5212               if test x"$enablestring" = xdisable; then
5213                   defaultval=yes
5214               else
5215                   defaultval=no
5216               fi
5217           fi
5218
5219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5220 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5221           # Check whether --enable-permissive was given.
5222 if test "${enable_permissive+set}" = set; then
5223   enableval=$enable_permissive;
5224                           if test "$enableval" = yes; then
5225                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5226                           else
5227                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5228                           fi
5229
5230 else
5231
5232                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5233
5234 fi
5235
5236
5237           eval "$wx_cv_use_permissive"
5238
5239           if test x"$enablestring" = xdisable; then
5240             if test $wxUSE_PERMISSIVE = yes; then
5241               result=no
5242             else
5243               result=yes
5244             fi
5245           else
5246             result=$wxUSE_PERMISSIVE
5247           fi
5248
5249           { echo "$as_me:$LINENO: result: $result" >&5
5250 echo "${ECHO_T}$result" >&6; }
5251
5252
5253           enablestring=
5254           defaultval=
5255           if test -z "$defaultval"; then
5256               if test x"$enablestring" = xdisable; then
5257                   defaultval=yes
5258               else
5259                   defaultval=no
5260               fi
5261           fi
5262
5263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5264 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5265           # Check whether --enable-no_deps was given.
5266 if test "${enable_no_deps+set}" = set; then
5267   enableval=$enable_no_deps;
5268                           if test "$enableval" = yes; then
5269                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5270                           else
5271                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5272                           fi
5273
5274 else
5275
5276                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5277
5278 fi
5279
5280
5281           eval "$wx_cv_use_no_deps"
5282
5283           if test x"$enablestring" = xdisable; then
5284             if test $wxUSE_NO_DEPS = yes; then
5285               result=no
5286             else
5287               result=yes
5288             fi
5289           else
5290             result=$wxUSE_NO_DEPS
5291           fi
5292
5293           { echo "$as_me:$LINENO: result: $result" >&5
5294 echo "${ECHO_T}$result" >&6; }
5295
5296
5297           enablestring=disable
5298           defaultval=
5299           if test -z "$defaultval"; then
5300               if test x"$enablestring" = xdisable; then
5301                   defaultval=yes
5302               else
5303                   defaultval=no
5304               fi
5305           fi
5306
5307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5308 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5309           # Check whether --enable-vararg_macros was given.
5310 if test "${enable_vararg_macros+set}" = set; then
5311   enableval=$enable_vararg_macros;
5312                           if test "$enableval" = yes; then
5313                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5314                           else
5315                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5316                           fi
5317
5318 else
5319
5320                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5321
5322 fi
5323
5324
5325           eval "$wx_cv_use_vararg_macros"
5326
5327           if test x"$enablestring" = xdisable; then
5328             if test $wxUSE_VARARG_MACROS = yes; then
5329               result=no
5330             else
5331               result=yes
5332             fi
5333           else
5334             result=$wxUSE_VARARG_MACROS
5335           fi
5336
5337           { echo "$as_me:$LINENO: result: $result" >&5
5338 echo "${ECHO_T}$result" >&6; }
5339
5340
5341           enablestring=
5342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5343 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5344           # Check whether --enable-universal_binary was given.
5345 if test "${enable_universal_binary+set}" = set; then
5346   enableval=$enable_universal_binary;
5347                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5348
5349 else
5350
5351                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5352
5353 fi
5354
5355
5356           eval "$wx_cv_use_universal_binary"
5357
5358           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5359 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5360
5361
5362
5363           enablestring=
5364           defaultval=
5365           if test -z "$defaultval"; then
5366               if test x"$enablestring" = xdisable; then
5367                   defaultval=yes
5368               else
5369                   defaultval=no
5370               fi
5371           fi
5372
5373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5374 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5375           # Check whether --enable-compat26 was given.
5376 if test "${enable_compat26+set}" = set; then
5377   enableval=$enable_compat26;
5378                           if test "$enableval" = yes; then
5379                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5380                           else
5381                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5382                           fi
5383
5384 else
5385
5386                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5387
5388 fi
5389
5390
5391           eval "$wx_cv_use_compat26"
5392
5393           if test x"$enablestring" = xdisable; then
5394             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5395               result=no
5396             else
5397               result=yes
5398             fi
5399           else
5400             result=$WXWIN_COMPATIBILITY_2_6
5401           fi
5402
5403           { echo "$as_me:$LINENO: result: $result" >&5
5404 echo "${ECHO_T}$result" >&6; }
5405
5406
5407           enablestring=disable
5408           defaultval=
5409           if test -z "$defaultval"; then
5410               if test x"$enablestring" = xdisable; then
5411                   defaultval=yes
5412               else
5413                   defaultval=no
5414               fi
5415           fi
5416
5417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5418 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5419           # Check whether --enable-compat28 was given.
5420 if test "${enable_compat28+set}" = set; then
5421   enableval=$enable_compat28;
5422                           if test "$enableval" = yes; then
5423                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5424                           else
5425                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5426                           fi
5427
5428 else
5429
5430                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5431
5432 fi
5433
5434
5435           eval "$wx_cv_use_compat28"
5436
5437           if test x"$enablestring" = xdisable; then
5438             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5439               result=no
5440             else
5441               result=yes
5442             fi
5443           else
5444             result=$WXWIN_COMPATIBILITY_2_8
5445           fi
5446
5447           { echo "$as_me:$LINENO: result: $result" >&5
5448 echo "${ECHO_T}$result" >&6; }
5449
5450
5451 cat >>confdefs.h <<\_ACEOF
5452 #define wxEVENTS_COMPATIBILITY_2_8 0
5453 _ACEOF
5454
5455
5456
5457           enablestring=disable
5458           defaultval=
5459           if test -z "$defaultval"; then
5460               if test x"$enablestring" = xdisable; then
5461                   defaultval=yes
5462               else
5463                   defaultval=no
5464               fi
5465           fi
5466
5467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5468 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5469           # Check whether --enable-rpath was given.
5470 if test "${enable_rpath+set}" = set; then
5471   enableval=$enable_rpath;
5472                           if test "$enableval" = yes; then
5473                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5474                           else
5475                             wx_cv_use_rpath='wxUSE_RPATH=no'
5476                           fi
5477
5478 else
5479
5480                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5481
5482 fi
5483
5484
5485           eval "$wx_cv_use_rpath"
5486
5487           if test x"$enablestring" = xdisable; then
5488             if test $wxUSE_RPATH = yes; then
5489               result=no
5490             else
5491               result=yes
5492             fi
5493           else
5494             result=$wxUSE_RPATH
5495           fi
5496
5497           { echo "$as_me:$LINENO: result: $result" >&5
5498 echo "${ECHO_T}$result" >&6; }
5499
5500
5501
5502           enablestring=
5503           defaultval=
5504           if test -z "$defaultval"; then
5505               if test x"$enablestring" = xdisable; then
5506                   defaultval=yes
5507               else
5508                   defaultval=no
5509               fi
5510           fi
5511
5512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5513 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5514           # Check whether --enable-objc_uniquifying was given.
5515 if test "${enable_objc_uniquifying+set}" = set; then
5516   enableval=$enable_objc_uniquifying;
5517                           if test "$enableval" = yes; then
5518                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5519                           else
5520                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5521                           fi
5522
5523 else
5524
5525                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5526
5527 fi
5528
5529
5530           eval "$wx_cv_use_objc_uniquifying"
5531
5532           if test x"$enablestring" = xdisable; then
5533             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5534               result=no
5535             else
5536               result=yes
5537             fi
5538           else
5539             result=$wxUSE_OBJC_UNIQUIFYING
5540           fi
5541
5542           { echo "$as_me:$LINENO: result: $result" >&5
5543 echo "${ECHO_T}$result" >&6; }
5544
5545
5546
5547           enablestring=disable
5548           defaultval=
5549           if test -z "$defaultval"; then
5550               if test x"$enablestring" = xdisable; then
5551                   defaultval=yes
5552               else
5553                   defaultval=no
5554               fi
5555           fi
5556
5557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5558 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5559           # Check whether --enable-visibility was given.
5560 if test "${enable_visibility+set}" = set; then
5561   enableval=$enable_visibility;
5562                           if test "$enableval" = yes; then
5563                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5564                           else
5565                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5566                           fi
5567
5568 else
5569
5570                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5571
5572 fi
5573
5574
5575           eval "$wx_cv_use_visibility"
5576
5577           if test x"$enablestring" = xdisable; then
5578             if test $wxUSE_VISIBILITY = yes; then
5579               result=no
5580             else
5581               result=yes
5582             fi
5583           else
5584             result=$wxUSE_VISIBILITY
5585           fi
5586
5587           { echo "$as_me:$LINENO: result: $result" >&5
5588 echo "${ECHO_T}$result" >&6; }
5589
5590
5591
5592
5593           enablestring=
5594           defaultval=$wxUSE_ALL_FEATURES
5595           if test -z "$defaultval"; then
5596               if test x"$enablestring" = xdisable; then
5597                   defaultval=yes
5598               else
5599                   defaultval=no
5600               fi
5601           fi
5602
5603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5604 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5605           # Check whether --enable-intl was given.
5606 if test "${enable_intl+set}" = set; then
5607   enableval=$enable_intl;
5608                           if test "$enableval" = yes; then
5609                             wx_cv_use_intl='wxUSE_INTL=yes'
5610                           else
5611                             wx_cv_use_intl='wxUSE_INTL=no'
5612                           fi
5613
5614 else
5615
5616                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5617
5618 fi
5619
5620
5621           eval "$wx_cv_use_intl"
5622
5623           if test x"$enablestring" = xdisable; then
5624             if test $wxUSE_INTL = yes; then
5625               result=no
5626             else
5627               result=yes
5628             fi
5629           else
5630             result=$wxUSE_INTL
5631           fi
5632
5633           { echo "$as_me:$LINENO: result: $result" >&5
5634 echo "${ECHO_T}$result" >&6; }
5635
5636
5637           enablestring=
5638           defaultval=$wxUSE_ALL_FEATURES
5639           if test -z "$defaultval"; then
5640               if test x"$enablestring" = xdisable; then
5641                   defaultval=yes
5642               else
5643                   defaultval=no
5644               fi
5645           fi
5646
5647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5648 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5649           # Check whether --enable-xlocale was given.
5650 if test "${enable_xlocale+set}" = set; then
5651   enableval=$enable_xlocale;
5652                           if test "$enableval" = yes; then
5653                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5654                           else
5655                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5656                           fi
5657
5658 else
5659
5660                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5661
5662 fi
5663
5664
5665           eval "$wx_cv_use_xlocale"
5666
5667           if test x"$enablestring" = xdisable; then
5668             if test $wxUSE_XLOCALE = yes; then
5669               result=no
5670             else
5671               result=yes
5672             fi
5673           else
5674             result=$wxUSE_XLOCALE
5675           fi
5676
5677           { echo "$as_me:$LINENO: result: $result" >&5
5678 echo "${ECHO_T}$result" >&6; }
5679
5680
5681           enablestring=
5682           defaultval=$wxUSE_ALL_FEATURES
5683           if test -z "$defaultval"; then
5684               if test x"$enablestring" = xdisable; then
5685                   defaultval=yes
5686               else
5687                   defaultval=no
5688               fi
5689           fi
5690
5691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5692 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5693           # Check whether --enable-config was given.
5694 if test "${enable_config+set}" = set; then
5695   enableval=$enable_config;
5696                           if test "$enableval" = yes; then
5697                             wx_cv_use_config='wxUSE_CONFIG=yes'
5698                           else
5699                             wx_cv_use_config='wxUSE_CONFIG=no'
5700                           fi
5701
5702 else
5703
5704                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5705
5706 fi
5707
5708
5709           eval "$wx_cv_use_config"
5710
5711           if test x"$enablestring" = xdisable; then
5712             if test $wxUSE_CONFIG = yes; then
5713               result=no
5714             else
5715               result=yes
5716             fi
5717           else
5718             result=$wxUSE_CONFIG
5719           fi
5720
5721           { echo "$as_me:$LINENO: result: $result" >&5
5722 echo "${ECHO_T}$result" >&6; }
5723
5724
5725
5726           enablestring=
5727           defaultval=$wxUSE_ALL_FEATURES
5728           if test -z "$defaultval"; then
5729               if test x"$enablestring" = xdisable; then
5730                   defaultval=yes
5731               else
5732                   defaultval=no
5733               fi
5734           fi
5735
5736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5737 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5738           # Check whether --enable-protocols was given.
5739 if test "${enable_protocols+set}" = set; then
5740   enableval=$enable_protocols;
5741                           if test "$enableval" = yes; then
5742                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5743                           else
5744                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5745                           fi
5746
5747 else
5748
5749                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5750
5751 fi
5752
5753
5754           eval "$wx_cv_use_protocols"
5755
5756           if test x"$enablestring" = xdisable; then
5757             if test $wxUSE_PROTOCOL = yes; then
5758               result=no
5759             else
5760               result=yes
5761             fi
5762           else
5763             result=$wxUSE_PROTOCOL
5764           fi
5765
5766           { echo "$as_me:$LINENO: result: $result" >&5
5767 echo "${ECHO_T}$result" >&6; }
5768
5769
5770           enablestring=
5771           defaultval=$wxUSE_ALL_FEATURES
5772           if test -z "$defaultval"; then
5773               if test x"$enablestring" = xdisable; then
5774                   defaultval=yes
5775               else
5776                   defaultval=no
5777               fi
5778           fi
5779
5780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5781 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5782           # Check whether --enable-ftp was given.
5783 if test "${enable_ftp+set}" = set; then
5784   enableval=$enable_ftp;
5785                           if test "$enableval" = yes; then
5786                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5787                           else
5788                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5789                           fi
5790
5791 else
5792
5793                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5794
5795 fi
5796
5797
5798           eval "$wx_cv_use_ftp"
5799
5800           if test x"$enablestring" = xdisable; then
5801             if test $wxUSE_PROTOCOL_FTP = yes; then
5802               result=no
5803             else
5804               result=yes
5805             fi
5806           else
5807             result=$wxUSE_PROTOCOL_FTP
5808           fi
5809
5810           { echo "$as_me:$LINENO: result: $result" >&5
5811 echo "${ECHO_T}$result" >&6; }
5812
5813
5814           enablestring=
5815           defaultval=$wxUSE_ALL_FEATURES
5816           if test -z "$defaultval"; then
5817               if test x"$enablestring" = xdisable; then
5818                   defaultval=yes
5819               else
5820                   defaultval=no
5821               fi
5822           fi
5823
5824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5825 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5826           # Check whether --enable-http was given.
5827 if test "${enable_http+set}" = set; then
5828   enableval=$enable_http;
5829                           if test "$enableval" = yes; then
5830                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5831                           else
5832                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5833                           fi
5834
5835 else
5836
5837                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5838
5839 fi
5840
5841
5842           eval "$wx_cv_use_http"
5843
5844           if test x"$enablestring" = xdisable; then
5845             if test $wxUSE_PROTOCOL_HTTP = yes; then
5846               result=no
5847             else
5848               result=yes
5849             fi
5850           else
5851             result=$wxUSE_PROTOCOL_HTTP
5852           fi
5853
5854           { echo "$as_me:$LINENO: result: $result" >&5
5855 echo "${ECHO_T}$result" >&6; }
5856
5857
5858           enablestring=
5859           defaultval=$wxUSE_ALL_FEATURES
5860           if test -z "$defaultval"; then
5861               if test x"$enablestring" = xdisable; then
5862                   defaultval=yes
5863               else
5864                   defaultval=no
5865               fi
5866           fi
5867
5868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5869 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5870           # Check whether --enable-fileproto was given.
5871 if test "${enable_fileproto+set}" = set; then
5872   enableval=$enable_fileproto;
5873                           if test "$enableval" = yes; then
5874                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5875                           else
5876                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5877                           fi
5878
5879 else
5880
5881                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5882
5883 fi
5884
5885
5886           eval "$wx_cv_use_fileproto"
5887
5888           if test x"$enablestring" = xdisable; then
5889             if test $wxUSE_PROTOCOL_FILE = yes; then
5890               result=no
5891             else
5892               result=yes
5893             fi
5894           else
5895             result=$wxUSE_PROTOCOL_FILE
5896           fi
5897
5898           { echo "$as_me:$LINENO: result: $result" >&5
5899 echo "${ECHO_T}$result" >&6; }
5900
5901
5902           enablestring=
5903           defaultval=$wxUSE_ALL_FEATURES
5904           if test -z "$defaultval"; then
5905               if test x"$enablestring" = xdisable; then
5906                   defaultval=yes
5907               else
5908                   defaultval=no
5909               fi
5910           fi
5911
5912           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5913 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5914           # Check whether --enable-sockets was given.
5915 if test "${enable_sockets+set}" = set; then
5916   enableval=$enable_sockets;
5917                           if test "$enableval" = yes; then
5918                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5919                           else
5920                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5921                           fi
5922
5923 else
5924
5925                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5926
5927 fi
5928
5929
5930           eval "$wx_cv_use_sockets"
5931
5932           if test x"$enablestring" = xdisable; then
5933             if test $wxUSE_SOCKETS = yes; then
5934               result=no
5935             else
5936               result=yes
5937             fi
5938           else
5939             result=$wxUSE_SOCKETS
5940           fi
5941
5942           { echo "$as_me:$LINENO: result: $result" >&5
5943 echo "${ECHO_T}$result" >&6; }
5944
5945
5946           enablestring=
5947           defaultval=$wxUSE_ALL_FEATURES
5948           if test -z "$defaultval"; then
5949               if test x"$enablestring" = xdisable; then
5950                   defaultval=yes
5951               else
5952                   defaultval=no
5953               fi
5954           fi
5955
5956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5957 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5958           # Check whether --enable-ipv6 was given.
5959 if test "${enable_ipv6+set}" = set; then
5960   enableval=$enable_ipv6;
5961                           if test "$enableval" = yes; then
5962                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5963                           else
5964                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5965                           fi
5966
5967 else
5968
5969                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5970
5971 fi
5972
5973
5974           eval "$wx_cv_use_ipv6"
5975
5976           if test x"$enablestring" = xdisable; then
5977             if test $wxUSE_IPV6 = yes; then
5978               result=no
5979             else
5980               result=yes
5981             fi
5982           else
5983             result=$wxUSE_IPV6
5984           fi
5985
5986           { echo "$as_me:$LINENO: result: $result" >&5
5987 echo "${ECHO_T}$result" >&6; }
5988
5989
5990           enablestring=
5991           defaultval=$wxUSE_ALL_FEATURES
5992           if test -z "$defaultval"; then
5993               if test x"$enablestring" = xdisable; then
5994                   defaultval=yes
5995               else
5996                   defaultval=no
5997               fi
5998           fi
5999
6000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6001 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6002           # Check whether --enable-ole was given.
6003 if test "${enable_ole+set}" = set; then
6004   enableval=$enable_ole;
6005                           if test "$enableval" = yes; then
6006                             wx_cv_use_ole='wxUSE_OLE=yes'
6007                           else
6008                             wx_cv_use_ole='wxUSE_OLE=no'
6009                           fi
6010
6011 else
6012
6013                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6014
6015 fi
6016
6017
6018           eval "$wx_cv_use_ole"
6019
6020           if test x"$enablestring" = xdisable; then
6021             if test $wxUSE_OLE = yes; then
6022               result=no
6023             else
6024               result=yes
6025             fi
6026           else
6027             result=$wxUSE_OLE
6028           fi
6029
6030           { echo "$as_me:$LINENO: result: $result" >&5
6031 echo "${ECHO_T}$result" >&6; }
6032
6033
6034           enablestring=
6035           defaultval=$wxUSE_ALL_FEATURES
6036           if test -z "$defaultval"; then
6037               if test x"$enablestring" = xdisable; then
6038                   defaultval=yes
6039               else
6040                   defaultval=no
6041               fi
6042           fi
6043
6044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6045 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6046           # Check whether --enable-dataobj was given.
6047 if test "${enable_dataobj+set}" = set; then
6048   enableval=$enable_dataobj;
6049                           if test "$enableval" = yes; then
6050                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6051                           else
6052                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6053                           fi
6054
6055 else
6056
6057                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6058
6059 fi
6060
6061
6062           eval "$wx_cv_use_dataobj"
6063
6064           if test x"$enablestring" = xdisable; then
6065             if test $wxUSE_DATAOBJ = yes; then
6066               result=no
6067             else
6068               result=yes
6069             fi
6070           else
6071             result=$wxUSE_DATAOBJ
6072           fi
6073
6074           { echo "$as_me:$LINENO: result: $result" >&5
6075 echo "${ECHO_T}$result" >&6; }
6076
6077
6078
6079           enablestring=
6080           defaultval=$wxUSE_ALL_FEATURES
6081           if test -z "$defaultval"; then
6082               if test x"$enablestring" = xdisable; then
6083                   defaultval=yes
6084               else
6085                   defaultval=no
6086               fi
6087           fi
6088
6089           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6090 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6091           # Check whether --enable-ipc was given.
6092 if test "${enable_ipc+set}" = set; then
6093   enableval=$enable_ipc;
6094                           if test "$enableval" = yes; then
6095                             wx_cv_use_ipc='wxUSE_IPC=yes'
6096                           else
6097                             wx_cv_use_ipc='wxUSE_IPC=no'
6098                           fi
6099
6100 else
6101
6102                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6103
6104 fi
6105
6106
6107           eval "$wx_cv_use_ipc"
6108
6109           if test x"$enablestring" = xdisable; then
6110             if test $wxUSE_IPC = yes; then
6111               result=no
6112             else
6113               result=yes
6114             fi
6115           else
6116             result=$wxUSE_IPC
6117           fi
6118
6119           { echo "$as_me:$LINENO: result: $result" >&5
6120 echo "${ECHO_T}$result" >&6; }
6121
6122
6123
6124           enablestring=
6125           defaultval=$wxUSE_ALL_FEATURES
6126           if test -z "$defaultval"; then
6127               if test x"$enablestring" = xdisable; then
6128                   defaultval=yes
6129               else
6130                   defaultval=no
6131               fi
6132           fi
6133
6134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6135 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6136           # Check whether --enable-baseevtloop was given.
6137 if test "${enable_baseevtloop+set}" = set; then
6138   enableval=$enable_baseevtloop;
6139                           if test "$enableval" = yes; then
6140                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6141                           else
6142                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6143                           fi
6144
6145 else
6146
6147                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6148
6149 fi
6150
6151
6152           eval "$wx_cv_use_baseevtloop"
6153
6154           if test x"$enablestring" = xdisable; then
6155             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6156               result=no
6157             else
6158               result=yes
6159             fi
6160           else
6161             result=$wxUSE_CONSOLE_EVENTLOOP
6162           fi
6163
6164           { echo "$as_me:$LINENO: result: $result" >&5
6165 echo "${ECHO_T}$result" >&6; }
6166
6167
6168           enablestring=
6169           defaultval=$wxUSE_ALL_FEATURES
6170           if test -z "$defaultval"; then
6171               if test x"$enablestring" = xdisable; then
6172                   defaultval=yes
6173               else
6174                   defaultval=no
6175               fi
6176           fi
6177
6178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6179 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6180           # Check whether --enable-epollloop was given.
6181 if test "${enable_epollloop+set}" = set; then
6182   enableval=$enable_epollloop;
6183                           if test "$enableval" = yes; then
6184                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6185                           else
6186                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6187                           fi
6188
6189 else
6190
6191                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6192
6193 fi
6194
6195
6196           eval "$wx_cv_use_epollloop"
6197
6198           if test x"$enablestring" = xdisable; then
6199             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6200               result=no
6201             else
6202               result=yes
6203             fi
6204           else
6205             result=$wxUSE_EPOLL_DISPATCHER
6206           fi
6207
6208           { echo "$as_me:$LINENO: result: $result" >&5
6209 echo "${ECHO_T}$result" >&6; }
6210
6211
6212           enablestring=
6213           defaultval=$wxUSE_ALL_FEATURES
6214           if test -z "$defaultval"; then
6215               if test x"$enablestring" = xdisable; then
6216                   defaultval=yes
6217               else
6218                   defaultval=no
6219               fi
6220           fi
6221
6222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6223 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6224           # Check whether --enable-selectloop was given.
6225 if test "${enable_selectloop+set}" = set; then
6226   enableval=$enable_selectloop;
6227                           if test "$enableval" = yes; then
6228                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6229                           else
6230                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6231                           fi
6232
6233 else
6234
6235                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6236
6237 fi
6238
6239
6240           eval "$wx_cv_use_selectloop"
6241
6242           if test x"$enablestring" = xdisable; then
6243             if test $wxUSE_SELECT_DISPATCHER = yes; then
6244               result=no
6245             else
6246               result=yes
6247             fi
6248           else
6249             result=$wxUSE_SELECT_DISPATCHER
6250           fi
6251
6252           { echo "$as_me:$LINENO: result: $result" >&5
6253 echo "${ECHO_T}$result" >&6; }
6254
6255
6256
6257           enablestring=
6258           defaultval=$wxUSE_ALL_FEATURES
6259           if test -z "$defaultval"; then
6260               if test x"$enablestring" = xdisable; then
6261                   defaultval=yes
6262               else
6263                   defaultval=no
6264               fi
6265           fi
6266
6267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6268 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6269           # Check whether --enable-apple_ieee was given.
6270 if test "${enable_apple_ieee+set}" = set; then
6271   enableval=$enable_apple_ieee;
6272                           if test "$enableval" = yes; then
6273                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6274                           else
6275                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6276                           fi
6277
6278 else
6279
6280                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6281
6282 fi
6283
6284
6285           eval "$wx_cv_use_apple_ieee"
6286
6287           if test x"$enablestring" = xdisable; then
6288             if test $wxUSE_APPLE_IEEE = yes; then
6289               result=no
6290             else
6291               result=yes
6292             fi
6293           else
6294             result=$wxUSE_APPLE_IEEE
6295           fi
6296
6297           { echo "$as_me:$LINENO: result: $result" >&5
6298 echo "${ECHO_T}$result" >&6; }
6299
6300
6301           enablestring=
6302           defaultval=$wxUSE_ALL_FEATURES
6303           if test -z "$defaultval"; then
6304               if test x"$enablestring" = xdisable; then
6305                   defaultval=yes
6306               else
6307                   defaultval=no
6308               fi
6309           fi
6310
6311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6312 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6313           # Check whether --enable-arcstream was given.
6314 if test "${enable_arcstream+set}" = set; then
6315   enableval=$enable_arcstream;
6316                           if test "$enableval" = yes; then
6317                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6318                           else
6319                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6320                           fi
6321
6322 else
6323
6324                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6325
6326 fi
6327
6328
6329           eval "$wx_cv_use_arcstream"
6330
6331           if test x"$enablestring" = xdisable; then
6332             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6333               result=no
6334             else
6335               result=yes
6336             fi
6337           else
6338             result=$wxUSE_ARCHIVE_STREAMS
6339           fi
6340
6341           { echo "$as_me:$LINENO: result: $result" >&5
6342 echo "${ECHO_T}$result" >&6; }
6343
6344
6345           enablestring=
6346           defaultval=$wxUSE_ALL_FEATURES
6347           if test -z "$defaultval"; then
6348               if test x"$enablestring" = xdisable; then
6349                   defaultval=yes
6350               else
6351                   defaultval=no
6352               fi
6353           fi
6354
6355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6356 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6357           # Check whether --enable-base64 was given.
6358 if test "${enable_base64+set}" = set; then
6359   enableval=$enable_base64;
6360                           if test "$enableval" = yes; then
6361                             wx_cv_use_base64='wxUSE_BASE64=yes'
6362                           else
6363                             wx_cv_use_base64='wxUSE_BASE64=no'
6364                           fi
6365
6366 else
6367
6368                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6369
6370 fi
6371
6372
6373           eval "$wx_cv_use_base64"
6374
6375           if test x"$enablestring" = xdisable; then
6376             if test $wxUSE_BASE64 = yes; then
6377               result=no
6378             else
6379               result=yes
6380             fi
6381           else
6382             result=$wxUSE_BASE64
6383           fi
6384
6385           { echo "$as_me:$LINENO: result: $result" >&5
6386 echo "${ECHO_T}$result" >&6; }
6387
6388
6389           enablestring=
6390           defaultval=$wxUSE_ALL_FEATURES
6391           if test -z "$defaultval"; then
6392               if test x"$enablestring" = xdisable; then
6393                   defaultval=yes
6394               else
6395                   defaultval=no
6396               fi
6397           fi
6398
6399           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6400 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6401           # Check whether --enable-backtrace was given.
6402 if test "${enable_backtrace+set}" = set; then
6403   enableval=$enable_backtrace;
6404                           if test "$enableval" = yes; then
6405                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6406                           else
6407                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6408                           fi
6409
6410 else
6411
6412                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6413
6414 fi
6415
6416
6417           eval "$wx_cv_use_backtrace"
6418
6419           if test x"$enablestring" = xdisable; then
6420             if test $wxUSE_STACKWALKER = yes; then
6421               result=no
6422             else
6423               result=yes
6424             fi
6425           else
6426             result=$wxUSE_STACKWALKER
6427           fi
6428
6429           { echo "$as_me:$LINENO: result: $result" >&5
6430 echo "${ECHO_T}$result" >&6; }
6431
6432
6433           enablestring=
6434           defaultval=$wxUSE_ALL_FEATURES
6435           if test -z "$defaultval"; then
6436               if test x"$enablestring" = xdisable; then
6437                   defaultval=yes
6438               else
6439                   defaultval=no
6440               fi
6441           fi
6442
6443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6444 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6445           # Check whether --enable-catch_segvs was given.
6446 if test "${enable_catch_segvs+set}" = set; then
6447   enableval=$enable_catch_segvs;
6448                           if test "$enableval" = yes; then
6449                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6450                           else
6451                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6452                           fi
6453
6454 else
6455
6456                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6457
6458 fi
6459
6460
6461           eval "$wx_cv_use_catch_segvs"
6462
6463           if test x"$enablestring" = xdisable; then
6464             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6465               result=no
6466             else
6467               result=yes
6468             fi
6469           else
6470             result=$wxUSE_ON_FATAL_EXCEPTION
6471           fi
6472
6473           { echo "$as_me:$LINENO: result: $result" >&5
6474 echo "${ECHO_T}$result" >&6; }
6475
6476
6477           enablestring=
6478           defaultval=$wxUSE_ALL_FEATURES
6479           if test -z "$defaultval"; then
6480               if test x"$enablestring" = xdisable; then
6481                   defaultval=yes
6482               else
6483                   defaultval=no
6484               fi
6485           fi
6486
6487           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6488 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6489           # Check whether --enable-cmdline was given.
6490 if test "${enable_cmdline+set}" = set; then
6491   enableval=$enable_cmdline;
6492                           if test "$enableval" = yes; then
6493                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6494                           else
6495                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6496                           fi
6497
6498 else
6499
6500                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6501
6502 fi
6503
6504
6505           eval "$wx_cv_use_cmdline"
6506
6507           if test x"$enablestring" = xdisable; then
6508             if test $wxUSE_CMDLINE_PARSER = yes; then
6509               result=no
6510             else
6511               result=yes
6512             fi
6513           else
6514             result=$wxUSE_CMDLINE_PARSER
6515           fi
6516
6517           { echo "$as_me:$LINENO: result: $result" >&5
6518 echo "${ECHO_T}$result" >&6; }
6519
6520
6521           enablestring=
6522           defaultval=$wxUSE_ALL_FEATURES
6523           if test -z "$defaultval"; then
6524               if test x"$enablestring" = xdisable; then
6525                   defaultval=yes
6526               else
6527                   defaultval=no
6528               fi
6529           fi
6530
6531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6532 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6533           # Check whether --enable-datetime was given.
6534 if test "${enable_datetime+set}" = set; then
6535   enableval=$enable_datetime;
6536                           if test "$enableval" = yes; then
6537                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6538                           else
6539                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6540                           fi
6541
6542 else
6543
6544                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6545
6546 fi
6547
6548
6549           eval "$wx_cv_use_datetime"
6550
6551           if test x"$enablestring" = xdisable; then
6552             if test $wxUSE_DATETIME = yes; then
6553               result=no
6554             else
6555               result=yes
6556             fi
6557           else
6558             result=$wxUSE_DATETIME
6559           fi
6560
6561           { echo "$as_me:$LINENO: result: $result" >&5
6562 echo "${ECHO_T}$result" >&6; }
6563
6564
6565           enablestring=
6566           defaultval=$wxUSE_ALL_FEATURES
6567           if test -z "$defaultval"; then
6568               if test x"$enablestring" = xdisable; then
6569                   defaultval=yes
6570               else
6571                   defaultval=no
6572               fi
6573           fi
6574
6575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6576 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6577           # Check whether --enable-debugreport was given.
6578 if test "${enable_debugreport+set}" = set; then
6579   enableval=$enable_debugreport;
6580                           if test "$enableval" = yes; then
6581                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6582                           else
6583                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6584                           fi
6585
6586 else
6587
6588                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6589
6590 fi
6591
6592
6593           eval "$wx_cv_use_debugreport"
6594
6595           if test x"$enablestring" = xdisable; then
6596             if test $wxUSE_DEBUGREPORT = yes; then
6597               result=no
6598             else
6599               result=yes
6600             fi
6601           else
6602             result=$wxUSE_DEBUGREPORT
6603           fi
6604
6605           { echo "$as_me:$LINENO: result: $result" >&5
6606 echo "${ECHO_T}$result" >&6; }
6607
6608
6609           enablestring=
6610           defaultval=$wxUSE_ALL_FEATURES
6611           if test -z "$defaultval"; then
6612               if test x"$enablestring" = xdisable; then
6613                   defaultval=yes
6614               else
6615                   defaultval=no
6616               fi
6617           fi
6618
6619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6620 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6621           # Check whether --enable-dialupman was given.
6622 if test "${enable_dialupman+set}" = set; then
6623   enableval=$enable_dialupman;
6624                           if test "$enableval" = yes; then
6625                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6626                           else
6627                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6628                           fi
6629
6630 else
6631
6632                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6633
6634 fi
6635
6636
6637           eval "$wx_cv_use_dialupman"
6638
6639           if test x"$enablestring" = xdisable; then
6640             if test $wxUSE_DIALUP_MANAGER = yes; then
6641               result=no
6642             else
6643               result=yes
6644             fi
6645           else
6646             result=$wxUSE_DIALUP_MANAGER
6647           fi
6648
6649           { echo "$as_me:$LINENO: result: $result" >&5
6650 echo "${ECHO_T}$result" >&6; }
6651
6652
6653           enablestring=
6654           defaultval=$wxUSE_ALL_FEATURES
6655           if test -z "$defaultval"; then
6656               if test x"$enablestring" = xdisable; then
6657                   defaultval=yes
6658               else
6659                   defaultval=no
6660               fi
6661           fi
6662
6663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6664 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6665           # Check whether --enable-dynlib was given.
6666 if test "${enable_dynlib+set}" = set; then
6667   enableval=$enable_dynlib;
6668                           if test "$enableval" = yes; then
6669                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6670                           else
6671                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6672                           fi
6673
6674 else
6675
6676                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6677
6678 fi
6679
6680
6681           eval "$wx_cv_use_dynlib"
6682
6683           if test x"$enablestring" = xdisable; then
6684             if test $wxUSE_DYNLIB_CLASS = yes; then
6685               result=no
6686             else
6687               result=yes
6688             fi
6689           else
6690             result=$wxUSE_DYNLIB_CLASS
6691           fi
6692
6693           { echo "$as_me:$LINENO: result: $result" >&5
6694 echo "${ECHO_T}$result" >&6; }
6695
6696
6697           enablestring=
6698           defaultval=$wxUSE_ALL_FEATURES
6699           if test -z "$defaultval"; then
6700               if test x"$enablestring" = xdisable; then
6701                   defaultval=yes
6702               else
6703                   defaultval=no
6704               fi
6705           fi
6706
6707           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6708 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6709           # Check whether --enable-dynamicloader was given.
6710 if test "${enable_dynamicloader+set}" = set; then
6711   enableval=$enable_dynamicloader;
6712                           if test "$enableval" = yes; then
6713                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6714                           else
6715                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6716                           fi
6717
6718 else
6719
6720                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6721
6722 fi
6723
6724
6725           eval "$wx_cv_use_dynamicloader"
6726
6727           if test x"$enablestring" = xdisable; then
6728             if test $wxUSE_DYNAMIC_LOADER = yes; then
6729               result=no
6730             else
6731               result=yes
6732             fi
6733           else
6734             result=$wxUSE_DYNAMIC_LOADER
6735           fi
6736
6737           { echo "$as_me:$LINENO: result: $result" >&5
6738 echo "${ECHO_T}$result" >&6; }
6739
6740
6741           enablestring=
6742           defaultval=$wxUSE_ALL_FEATURES
6743           if test -z "$defaultval"; then
6744               if test x"$enablestring" = xdisable; then
6745                   defaultval=yes
6746               else
6747                   defaultval=no
6748               fi
6749           fi
6750
6751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6752 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6753           # Check whether --enable-exceptions was given.
6754 if test "${enable_exceptions+set}" = set; then
6755   enableval=$enable_exceptions;
6756                           if test "$enableval" = yes; then
6757                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6758                           else
6759                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6760                           fi
6761
6762 else
6763
6764                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6765
6766 fi
6767
6768
6769           eval "$wx_cv_use_exceptions"
6770
6771           if test x"$enablestring" = xdisable; then
6772             if test $wxUSE_EXCEPTIONS = yes; then
6773               result=no
6774             else
6775               result=yes
6776             fi
6777           else
6778             result=$wxUSE_EXCEPTIONS
6779           fi
6780
6781           { echo "$as_me:$LINENO: result: $result" >&5
6782 echo "${ECHO_T}$result" >&6; }
6783
6784
6785           enablestring=
6786           defaultval=$wxUSE_ALL_FEATURES
6787           if test -z "$defaultval"; then
6788               if test x"$enablestring" = xdisable; then
6789                   defaultval=yes
6790               else
6791                   defaultval=no
6792               fi
6793           fi
6794
6795           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6796 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6797           # Check whether --enable-ffile was given.
6798 if test "${enable_ffile+set}" = set; then
6799   enableval=$enable_ffile;
6800                           if test "$enableval" = yes; then
6801                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6802                           else
6803                             wx_cv_use_ffile='wxUSE_FFILE=no'
6804                           fi
6805
6806 else
6807
6808                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6809
6810 fi
6811
6812
6813           eval "$wx_cv_use_ffile"
6814
6815           if test x"$enablestring" = xdisable; then
6816             if test $wxUSE_FFILE = yes; then
6817               result=no
6818             else
6819               result=yes
6820             fi
6821           else
6822             result=$wxUSE_FFILE
6823           fi
6824
6825           { echo "$as_me:$LINENO: result: $result" >&5
6826 echo "${ECHO_T}$result" >&6; }
6827
6828
6829           enablestring=
6830           defaultval=$wxUSE_ALL_FEATURES
6831           if test -z "$defaultval"; then
6832               if test x"$enablestring" = xdisable; then
6833                   defaultval=yes
6834               else
6835                   defaultval=no
6836               fi
6837           fi
6838
6839           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6840 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6841           # Check whether --enable-file was given.
6842 if test "${enable_file+set}" = set; then
6843   enableval=$enable_file;
6844                           if test "$enableval" = yes; then
6845                             wx_cv_use_file='wxUSE_FILE=yes'
6846                           else
6847                             wx_cv_use_file='wxUSE_FILE=no'
6848                           fi
6849
6850 else
6851
6852                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6853
6854 fi
6855
6856
6857           eval "$wx_cv_use_file"
6858
6859           if test x"$enablestring" = xdisable; then
6860             if test $wxUSE_FILE = yes; then
6861               result=no
6862             else
6863               result=yes
6864             fi
6865           else
6866             result=$wxUSE_FILE
6867           fi
6868
6869           { echo "$as_me:$LINENO: result: $result" >&5
6870 echo "${ECHO_T}$result" >&6; }
6871
6872
6873           enablestring=
6874           defaultval=$wxUSE_ALL_FEATURES
6875           if test -z "$defaultval"; then
6876               if test x"$enablestring" = xdisable; then
6877                   defaultval=yes
6878               else
6879                   defaultval=no
6880               fi
6881           fi
6882
6883           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6884 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6885           # Check whether --enable-filesystem was given.
6886 if test "${enable_filesystem+set}" = set; then
6887   enableval=$enable_filesystem;
6888                           if test "$enableval" = yes; then
6889                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6890                           else
6891                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6892                           fi
6893
6894 else
6895
6896                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6897
6898 fi
6899
6900
6901           eval "$wx_cv_use_filesystem"
6902
6903           if test x"$enablestring" = xdisable; then
6904             if test $wxUSE_FILESYSTEM = yes; then
6905               result=no
6906             else
6907               result=yes
6908             fi
6909           else
6910             result=$wxUSE_FILESYSTEM
6911           fi
6912
6913           { echo "$as_me:$LINENO: result: $result" >&5
6914 echo "${ECHO_T}$result" >&6; }
6915
6916
6917           enablestring=
6918           defaultval=$wxUSE_ALL_FEATURES
6919           if test -z "$defaultval"; then
6920               if test x"$enablestring" = xdisable; then
6921                   defaultval=yes
6922               else
6923                   defaultval=no
6924               fi
6925           fi
6926
6927           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6928 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6929           # Check whether --enable-fontenum was given.
6930 if test "${enable_fontenum+set}" = set; then
6931   enableval=$enable_fontenum;
6932                           if test "$enableval" = yes; then
6933                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6934                           else
6935                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6936                           fi
6937
6938 else
6939
6940                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6941
6942 fi
6943
6944
6945           eval "$wx_cv_use_fontenum"
6946
6947           if test x"$enablestring" = xdisable; then
6948             if test $wxUSE_FONTENUM = yes; then
6949               result=no
6950             else
6951               result=yes
6952             fi
6953           else
6954             result=$wxUSE_FONTENUM
6955           fi
6956
6957           { echo "$as_me:$LINENO: result: $result" >&5
6958 echo "${ECHO_T}$result" >&6; }
6959
6960
6961           enablestring=
6962           defaultval=$wxUSE_ALL_FEATURES
6963           if test -z "$defaultval"; then
6964               if test x"$enablestring" = xdisable; then
6965                   defaultval=yes
6966               else
6967                   defaultval=no
6968               fi
6969           fi
6970
6971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6972 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6973           # Check whether --enable-fontmap was given.
6974 if test "${enable_fontmap+set}" = set; then
6975   enableval=$enable_fontmap;
6976                           if test "$enableval" = yes; then
6977                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6978                           else
6979                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6980                           fi
6981
6982 else
6983
6984                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6985
6986 fi
6987
6988
6989           eval "$wx_cv_use_fontmap"
6990
6991           if test x"$enablestring" = xdisable; then
6992             if test $wxUSE_FONTMAP = yes; then
6993               result=no
6994             else
6995               result=yes
6996             fi
6997           else
6998             result=$wxUSE_FONTMAP
6999           fi
7000
7001           { echo "$as_me:$LINENO: result: $result" >&5
7002 echo "${ECHO_T}$result" >&6; }
7003
7004
7005           enablestring=
7006           defaultval=$wxUSE_ALL_FEATURES
7007           if test -z "$defaultval"; then
7008               if test x"$enablestring" = xdisable; then
7009                   defaultval=yes
7010               else
7011                   defaultval=no
7012               fi
7013           fi
7014
7015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7016 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7017           # Check whether --enable-fs_archive was given.
7018 if test "${enable_fs_archive+set}" = set; then
7019   enableval=$enable_fs_archive;
7020                           if test "$enableval" = yes; then
7021                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7022                           else
7023                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7024                           fi
7025
7026 else
7027
7028                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7029
7030 fi
7031
7032
7033           eval "$wx_cv_use_fs_archive"
7034
7035           if test x"$enablestring" = xdisable; then
7036             if test $wxUSE_FS_ARCHIVE = yes; then
7037               result=no
7038             else
7039               result=yes
7040             fi
7041           else
7042             result=$wxUSE_FS_ARCHIVE
7043           fi
7044
7045           { echo "$as_me:$LINENO: result: $result" >&5
7046 echo "${ECHO_T}$result" >&6; }
7047
7048
7049           enablestring=
7050           defaultval=$wxUSE_ALL_FEATURES
7051           if test -z "$defaultval"; then
7052               if test x"$enablestring" = xdisable; then
7053                   defaultval=yes
7054               else
7055                   defaultval=no
7056               fi
7057           fi
7058
7059           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7060 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7061           # Check whether --enable-fs_inet was given.
7062 if test "${enable_fs_inet+set}" = set; then
7063   enableval=$enable_fs_inet;
7064                           if test "$enableval" = yes; then
7065                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7066                           else
7067                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7068                           fi
7069
7070 else
7071
7072                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7073
7074 fi
7075
7076
7077           eval "$wx_cv_use_fs_inet"
7078
7079           if test x"$enablestring" = xdisable; then
7080             if test $wxUSE_FS_INET = yes; then
7081               result=no
7082             else
7083               result=yes
7084             fi
7085           else
7086             result=$wxUSE_FS_INET
7087           fi
7088
7089           { echo "$as_me:$LINENO: result: $result" >&5
7090 echo "${ECHO_T}$result" >&6; }
7091
7092
7093           enablestring=
7094           defaultval=$wxUSE_ALL_FEATURES
7095           if test -z "$defaultval"; then
7096               if test x"$enablestring" = xdisable; then
7097                   defaultval=yes
7098               else
7099                   defaultval=no
7100               fi
7101           fi
7102
7103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7104 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7105           # Check whether --enable-fs_zip was given.
7106 if test "${enable_fs_zip+set}" = set; then
7107   enableval=$enable_fs_zip;
7108                           if test "$enableval" = yes; then
7109                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7110                           else
7111                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7112                           fi
7113
7114 else
7115
7116                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7117
7118 fi
7119
7120
7121           eval "$wx_cv_use_fs_zip"
7122
7123           if test x"$enablestring" = xdisable; then
7124             if test $wxUSE_FS_ZIP = yes; then
7125               result=no
7126             else
7127               result=yes
7128             fi
7129           else
7130             result=$wxUSE_FS_ZIP
7131           fi
7132
7133           { echo "$as_me:$LINENO: result: $result" >&5
7134 echo "${ECHO_T}$result" >&6; }
7135
7136
7137           enablestring=
7138           defaultval=$wxUSE_ALL_FEATURES
7139           if test -z "$defaultval"; then
7140               if test x"$enablestring" = xdisable; then
7141                   defaultval=yes
7142               else
7143                   defaultval=no
7144               fi
7145           fi
7146
7147           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7148 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7149           # Check whether --enable-geometry was given.
7150 if test "${enable_geometry+set}" = set; then
7151   enableval=$enable_geometry;
7152                           if test "$enableval" = yes; then
7153                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7154                           else
7155                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7156                           fi
7157
7158 else
7159
7160                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7161
7162 fi
7163
7164
7165           eval "$wx_cv_use_geometry"
7166
7167           if test x"$enablestring" = xdisable; then
7168             if test $wxUSE_GEOMETRY = yes; then
7169               result=no
7170             else
7171               result=yes
7172             fi
7173           else
7174             result=$wxUSE_GEOMETRY
7175           fi
7176
7177           { echo "$as_me:$LINENO: result: $result" >&5
7178 echo "${ECHO_T}$result" >&6; }
7179
7180
7181           enablestring=
7182           defaultval=$wxUSE_ALL_FEATURES
7183           if test -z "$defaultval"; then
7184               if test x"$enablestring" = xdisable; then
7185                   defaultval=yes
7186               else
7187                   defaultval=no
7188               fi
7189           fi
7190
7191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7192 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7193           # Check whether --enable-log was given.
7194 if test "${enable_log+set}" = set; then
7195   enableval=$enable_log;
7196                           if test "$enableval" = yes; then
7197                             wx_cv_use_log='wxUSE_LOG=yes'
7198                           else
7199                             wx_cv_use_log='wxUSE_LOG=no'
7200                           fi
7201
7202 else
7203
7204                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7205
7206 fi
7207
7208
7209           eval "$wx_cv_use_log"
7210
7211           if test x"$enablestring" = xdisable; then
7212             if test $wxUSE_LOG = yes; then
7213               result=no
7214             else
7215               result=yes
7216             fi
7217           else
7218             result=$wxUSE_LOG
7219           fi
7220
7221           { echo "$as_me:$LINENO: result: $result" >&5
7222 echo "${ECHO_T}$result" >&6; }
7223
7224
7225           enablestring=
7226           defaultval=$wxUSE_ALL_FEATURES
7227           if test -z "$defaultval"; then
7228               if test x"$enablestring" = xdisable; then
7229                   defaultval=yes
7230               else
7231                   defaultval=no
7232               fi
7233           fi
7234
7235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7236 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7237           # Check whether --enable-longlong was given.
7238 if test "${enable_longlong+set}" = set; then
7239   enableval=$enable_longlong;
7240                           if test "$enableval" = yes; then
7241                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7242                           else
7243                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7244                           fi
7245
7246 else
7247
7248                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7249
7250 fi
7251
7252
7253           eval "$wx_cv_use_longlong"
7254
7255           if test x"$enablestring" = xdisable; then
7256             if test $wxUSE_LONGLONG = yes; then
7257               result=no
7258             else
7259               result=yes
7260             fi
7261           else
7262             result=$wxUSE_LONGLONG
7263           fi
7264
7265           { echo "$as_me:$LINENO: result: $result" >&5
7266 echo "${ECHO_T}$result" >&6; }
7267
7268
7269           enablestring=
7270           defaultval=$wxUSE_ALL_FEATURES
7271           if test -z "$defaultval"; then
7272               if test x"$enablestring" = xdisable; then
7273                   defaultval=yes
7274               else
7275                   defaultval=no
7276               fi
7277           fi
7278
7279           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7280 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7281           # Check whether --enable-mimetype was given.
7282 if test "${enable_mimetype+set}" = set; then
7283   enableval=$enable_mimetype;
7284                           if test "$enableval" = yes; then
7285                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7286                           else
7287                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7288                           fi
7289
7290 else
7291
7292                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7293
7294 fi
7295
7296
7297           eval "$wx_cv_use_mimetype"
7298
7299           if test x"$enablestring" = xdisable; then
7300             if test $wxUSE_MIMETYPE = yes; then
7301               result=no
7302             else
7303               result=yes
7304             fi
7305           else
7306             result=$wxUSE_MIMETYPE
7307           fi
7308
7309           { echo "$as_me:$LINENO: result: $result" >&5
7310 echo "${ECHO_T}$result" >&6; }
7311
7312
7313           enablestring=
7314           defaultval=$wxUSE_ALL_FEATURES
7315           if test -z "$defaultval"; then
7316               if test x"$enablestring" = xdisable; then
7317                   defaultval=yes
7318               else
7319                   defaultval=no
7320               fi
7321           fi
7322
7323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7324 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7325           # Check whether --enable-printfposparam was given.
7326 if test "${enable_printfposparam+set}" = set; then
7327   enableval=$enable_printfposparam;
7328                           if test "$enableval" = yes; then
7329                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7330                           else
7331                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7332                           fi
7333
7334 else
7335
7336                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7337
7338 fi
7339
7340
7341           eval "$wx_cv_use_printfposparam"
7342
7343           if test x"$enablestring" = xdisable; then
7344             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7345               result=no
7346             else
7347               result=yes
7348             fi
7349           else
7350             result=$wxUSE_PRINTF_POS_PARAMS
7351           fi
7352
7353           { echo "$as_me:$LINENO: result: $result" >&5
7354 echo "${ECHO_T}$result" >&6; }
7355
7356
7357           enablestring=
7358           defaultval=$wxUSE_ALL_FEATURES
7359           if test -z "$defaultval"; then
7360               if test x"$enablestring" = xdisable; then
7361                   defaultval=yes
7362               else
7363                   defaultval=no
7364               fi
7365           fi
7366
7367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7368 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7369           # Check whether --enable-snglinst was given.
7370 if test "${enable_snglinst+set}" = set; then
7371   enableval=$enable_snglinst;
7372                           if test "$enableval" = yes; then
7373                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7374                           else
7375                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7376                           fi
7377
7378 else
7379
7380                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7381
7382 fi
7383
7384
7385           eval "$wx_cv_use_snglinst"
7386
7387           if test x"$enablestring" = xdisable; then
7388             if test $wxUSE_SNGLINST_CHECKER = yes; then
7389               result=no
7390             else
7391               result=yes
7392             fi
7393           else
7394             result=$wxUSE_SNGLINST_CHECKER
7395           fi
7396
7397           { echo "$as_me:$LINENO: result: $result" >&5
7398 echo "${ECHO_T}$result" >&6; }
7399
7400
7401           enablestring=
7402           defaultval=$wxUSE_ALL_FEATURES
7403           if test -z "$defaultval"; then
7404               if test x"$enablestring" = xdisable; then
7405                   defaultval=yes
7406               else
7407                   defaultval=no
7408               fi
7409           fi
7410
7411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7412 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7413           # Check whether --enable-sound was given.
7414 if test "${enable_sound+set}" = set; then
7415   enableval=$enable_sound;
7416                           if test "$enableval" = yes; then
7417                             wx_cv_use_sound='wxUSE_SOUND=yes'
7418                           else
7419                             wx_cv_use_sound='wxUSE_SOUND=no'
7420                           fi
7421
7422 else
7423
7424                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7425
7426 fi
7427
7428
7429           eval "$wx_cv_use_sound"
7430
7431           if test x"$enablestring" = xdisable; then
7432             if test $wxUSE_SOUND = yes; then
7433               result=no
7434             else
7435               result=yes
7436             fi
7437           else
7438             result=$wxUSE_SOUND
7439           fi
7440
7441           { echo "$as_me:$LINENO: result: $result" >&5
7442 echo "${ECHO_T}$result" >&6; }
7443
7444
7445           enablestring=
7446           defaultval=$wxUSE_ALL_FEATURES
7447           if test -z "$defaultval"; then
7448               if test x"$enablestring" = xdisable; then
7449                   defaultval=yes
7450               else
7451                   defaultval=no
7452               fi
7453           fi
7454
7455           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7456 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7457           # Check whether --enable-stdpaths was given.
7458 if test "${enable_stdpaths+set}" = set; then
7459   enableval=$enable_stdpaths;
7460                           if test "$enableval" = yes; then
7461                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7462                           else
7463                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7464                           fi
7465
7466 else
7467
7468                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7469
7470 fi
7471
7472
7473           eval "$wx_cv_use_stdpaths"
7474
7475           if test x"$enablestring" = xdisable; then
7476             if test $wxUSE_STDPATHS = yes; then
7477               result=no
7478             else
7479               result=yes
7480             fi
7481           else
7482             result=$wxUSE_STDPATHS
7483           fi
7484
7485           { echo "$as_me:$LINENO: result: $result" >&5
7486 echo "${ECHO_T}$result" >&6; }
7487
7488
7489           enablestring=
7490           defaultval=$wxUSE_ALL_FEATURES
7491           if test -z "$defaultval"; then
7492               if test x"$enablestring" = xdisable; then
7493                   defaultval=yes
7494               else
7495                   defaultval=no
7496               fi
7497           fi
7498
7499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7500 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7501           # Check whether --enable-stopwatch was given.
7502 if test "${enable_stopwatch+set}" = set; then
7503   enableval=$enable_stopwatch;
7504                           if test "$enableval" = yes; then
7505                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7506                           else
7507                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7508                           fi
7509
7510 else
7511
7512                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7513
7514 fi
7515
7516
7517           eval "$wx_cv_use_stopwatch"
7518
7519           if test x"$enablestring" = xdisable; then
7520             if test $wxUSE_STOPWATCH = yes; then
7521               result=no
7522             else
7523               result=yes
7524             fi
7525           else
7526             result=$wxUSE_STOPWATCH
7527           fi
7528
7529           { echo "$as_me:$LINENO: result: $result" >&5
7530 echo "${ECHO_T}$result" >&6; }
7531
7532
7533           enablestring=
7534           defaultval=$wxUSE_ALL_FEATURES
7535           if test -z "$defaultval"; then
7536               if test x"$enablestring" = xdisable; then
7537                   defaultval=yes
7538               else
7539                   defaultval=no
7540               fi
7541           fi
7542
7543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7544 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7545           # Check whether --enable-streams was given.
7546 if test "${enable_streams+set}" = set; then
7547   enableval=$enable_streams;
7548                           if test "$enableval" = yes; then
7549                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7550                           else
7551                             wx_cv_use_streams='wxUSE_STREAMS=no'
7552                           fi
7553
7554 else
7555
7556                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7557
7558 fi
7559
7560
7561           eval "$wx_cv_use_streams"
7562
7563           if test x"$enablestring" = xdisable; then
7564             if test $wxUSE_STREAMS = yes; then
7565               result=no
7566             else
7567               result=yes
7568             fi
7569           else
7570             result=$wxUSE_STREAMS
7571           fi
7572
7573           { echo "$as_me:$LINENO: result: $result" >&5
7574 echo "${ECHO_T}$result" >&6; }
7575
7576
7577           enablestring=
7578           defaultval=$wxUSE_ALL_FEATURES
7579           if test -z "$defaultval"; then
7580               if test x"$enablestring" = xdisable; then
7581                   defaultval=yes
7582               else
7583                   defaultval=no
7584               fi
7585           fi
7586
7587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7588 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7589           # Check whether --enable-system_options was given.
7590 if test "${enable_system_options+set}" = set; then
7591   enableval=$enable_system_options;
7592                           if test "$enableval" = yes; then
7593                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7594                           else
7595                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7596                           fi
7597
7598 else
7599
7600                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7601
7602 fi
7603
7604
7605           eval "$wx_cv_use_system_options"
7606
7607           if test x"$enablestring" = xdisable; then
7608             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7609               result=no
7610             else
7611               result=yes
7612             fi
7613           else
7614             result=$wxUSE_SYSTEM_OPTIONS
7615           fi
7616
7617           { echo "$as_me:$LINENO: result: $result" >&5
7618 echo "${ECHO_T}$result" >&6; }
7619
7620
7621           enablestring=
7622           defaultval=$wxUSE_ALL_FEATURES
7623           if test -z "$defaultval"; then
7624               if test x"$enablestring" = xdisable; then
7625                   defaultval=yes
7626               else
7627                   defaultval=no
7628               fi
7629           fi
7630
7631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7632 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7633           # Check whether --enable-tarstream was given.
7634 if test "${enable_tarstream+set}" = set; then
7635   enableval=$enable_tarstream;
7636                           if test "$enableval" = yes; then
7637                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7638                           else
7639                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7640                           fi
7641
7642 else
7643
7644                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7645
7646 fi
7647
7648
7649           eval "$wx_cv_use_tarstream"
7650
7651           if test x"$enablestring" = xdisable; then
7652             if test $wxUSE_TARSTREAM = yes; then
7653               result=no
7654             else
7655               result=yes
7656             fi
7657           else
7658             result=$wxUSE_TARSTREAM
7659           fi
7660
7661           { echo "$as_me:$LINENO: result: $result" >&5
7662 echo "${ECHO_T}$result" >&6; }
7663
7664
7665           enablestring=
7666           defaultval=$wxUSE_ALL_FEATURES
7667           if test -z "$defaultval"; then
7668               if test x"$enablestring" = xdisable; then
7669                   defaultval=yes
7670               else
7671                   defaultval=no
7672               fi
7673           fi
7674
7675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7676 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7677           # Check whether --enable-textbuf was given.
7678 if test "${enable_textbuf+set}" = set; then
7679   enableval=$enable_textbuf;
7680                           if test "$enableval" = yes; then
7681                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7682                           else
7683                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7684                           fi
7685
7686 else
7687
7688                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7689
7690 fi
7691
7692
7693           eval "$wx_cv_use_textbuf"
7694
7695           if test x"$enablestring" = xdisable; then
7696             if test $wxUSE_TEXTBUFFER = yes; then
7697               result=no
7698             else
7699               result=yes
7700             fi
7701           else
7702             result=$wxUSE_TEXTBUFFER
7703           fi
7704
7705           { echo "$as_me:$LINENO: result: $result" >&5
7706 echo "${ECHO_T}$result" >&6; }
7707
7708
7709           enablestring=
7710           defaultval=$wxUSE_ALL_FEATURES
7711           if test -z "$defaultval"; then
7712               if test x"$enablestring" = xdisable; then
7713                   defaultval=yes
7714               else
7715                   defaultval=no
7716               fi
7717           fi
7718
7719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7720 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7721           # Check whether --enable-textfile was given.
7722 if test "${enable_textfile+set}" = set; then
7723   enableval=$enable_textfile;
7724                           if test "$enableval" = yes; then
7725                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7726                           else
7727                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7728                           fi
7729
7730 else
7731
7732                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7733
7734 fi
7735
7736
7737           eval "$wx_cv_use_textfile"
7738
7739           if test x"$enablestring" = xdisable; then
7740             if test $wxUSE_TEXTFILE = yes; then
7741               result=no
7742             else
7743               result=yes
7744             fi
7745           else
7746             result=$wxUSE_TEXTFILE
7747           fi
7748
7749           { echo "$as_me:$LINENO: result: $result" >&5
7750 echo "${ECHO_T}$result" >&6; }
7751
7752
7753           enablestring=
7754           defaultval=$wxUSE_ALL_FEATURES
7755           if test -z "$defaultval"; then
7756               if test x"$enablestring" = xdisable; then
7757                   defaultval=yes
7758               else
7759                   defaultval=no
7760               fi
7761           fi
7762
7763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7764 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7765           # Check whether --enable-timer was given.
7766 if test "${enable_timer+set}" = set; then
7767   enableval=$enable_timer;
7768                           if test "$enableval" = yes; then
7769                             wx_cv_use_timer='wxUSE_TIMER=yes'
7770                           else
7771                             wx_cv_use_timer='wxUSE_TIMER=no'
7772                           fi
7773
7774 else
7775
7776                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7777
7778 fi
7779
7780
7781           eval "$wx_cv_use_timer"
7782
7783           if test x"$enablestring" = xdisable; then
7784             if test $wxUSE_TIMER = yes; then
7785               result=no
7786             else
7787               result=yes
7788             fi
7789           else
7790             result=$wxUSE_TIMER
7791           fi
7792
7793           { echo "$as_me:$LINENO: result: $result" >&5
7794 echo "${ECHO_T}$result" >&6; }
7795
7796
7797           enablestring=
7798           defaultval=$wxUSE_ALL_FEATURES
7799           if test -z "$defaultval"; then
7800               if test x"$enablestring" = xdisable; then
7801                   defaultval=yes
7802               else
7803                   defaultval=no
7804               fi
7805           fi
7806
7807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7808 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7809           # Check whether --enable-variant was given.
7810 if test "${enable_variant+set}" = set; then
7811   enableval=$enable_variant;
7812                           if test "$enableval" = yes; then
7813                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7814                           else
7815                             wx_cv_use_variant='wxUSE_VARIANT=no'
7816                           fi
7817
7818 else
7819
7820                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7821
7822 fi
7823
7824
7825           eval "$wx_cv_use_variant"
7826
7827           if test x"$enablestring" = xdisable; then
7828             if test $wxUSE_VARIANT = yes; then
7829               result=no
7830             else
7831               result=yes
7832             fi
7833           else
7834             result=$wxUSE_VARIANT
7835           fi
7836
7837           { echo "$as_me:$LINENO: result: $result" >&5
7838 echo "${ECHO_T}$result" >&6; }
7839
7840
7841           enablestring=
7842           defaultval=$wxUSE_ALL_FEATURES
7843           if test -z "$defaultval"; then
7844               if test x"$enablestring" = xdisable; then
7845                   defaultval=yes
7846               else
7847                   defaultval=no
7848               fi
7849           fi
7850
7851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7852 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7853           # Check whether --enable-zipstream was given.
7854 if test "${enable_zipstream+set}" = set; then
7855   enableval=$enable_zipstream;
7856                           if test "$enableval" = yes; then
7857                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7858                           else
7859                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7860                           fi
7861
7862 else
7863
7864                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7865
7866 fi
7867
7868
7869           eval "$wx_cv_use_zipstream"
7870
7871           if test x"$enablestring" = xdisable; then
7872             if test $wxUSE_ZIPSTREAM = yes; then
7873               result=no
7874             else
7875               result=yes
7876             fi
7877           else
7878             result=$wxUSE_ZIPSTREAM
7879           fi
7880
7881           { echo "$as_me:$LINENO: result: $result" >&5
7882 echo "${ECHO_T}$result" >&6; }
7883
7884
7885
7886           enablestring=
7887           defaultval=$wxUSE_ALL_FEATURES
7888           if test -z "$defaultval"; then
7889               if test x"$enablestring" = xdisable; then
7890                   defaultval=yes
7891               else
7892                   defaultval=no
7893               fi
7894           fi
7895
7896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7897 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7898           # Check whether --enable-url was given.
7899 if test "${enable_url+set}" = set; then
7900   enableval=$enable_url;
7901                           if test "$enableval" = yes; then
7902                             wx_cv_use_url='wxUSE_URL=yes'
7903                           else
7904                             wx_cv_use_url='wxUSE_URL=no'
7905                           fi
7906
7907 else
7908
7909                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7910
7911 fi
7912
7913
7914           eval "$wx_cv_use_url"
7915
7916           if test x"$enablestring" = xdisable; then
7917             if test $wxUSE_URL = yes; then
7918               result=no
7919             else
7920               result=yes
7921             fi
7922           else
7923             result=$wxUSE_URL
7924           fi
7925
7926           { echo "$as_me:$LINENO: result: $result" >&5
7927 echo "${ECHO_T}$result" >&6; }
7928
7929
7930           enablestring=
7931           defaultval=$wxUSE_ALL_FEATURES
7932           if test -z "$defaultval"; then
7933               if test x"$enablestring" = xdisable; then
7934                   defaultval=yes
7935               else
7936                   defaultval=no
7937               fi
7938           fi
7939
7940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7941 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7942           # Check whether --enable-protocol was given.
7943 if test "${enable_protocol+set}" = set; then
7944   enableval=$enable_protocol;
7945                           if test "$enableval" = yes; then
7946                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7947                           else
7948                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7949                           fi
7950
7951 else
7952
7953                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7954
7955 fi
7956
7957
7958           eval "$wx_cv_use_protocol"
7959
7960           if test x"$enablestring" = xdisable; then
7961             if test $wxUSE_PROTOCOL = yes; then
7962               result=no
7963             else
7964               result=yes
7965             fi
7966           else
7967             result=$wxUSE_PROTOCOL
7968           fi
7969
7970           { echo "$as_me:$LINENO: result: $result" >&5
7971 echo "${ECHO_T}$result" >&6; }
7972
7973
7974           enablestring=
7975           defaultval=$wxUSE_ALL_FEATURES
7976           if test -z "$defaultval"; then
7977               if test x"$enablestring" = xdisable; then
7978                   defaultval=yes
7979               else
7980                   defaultval=no
7981               fi
7982           fi
7983
7984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7985 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7986           # Check whether --enable-protocol_http was given.
7987 if test "${enable_protocol_http+set}" = set; then
7988   enableval=$enable_protocol_http;
7989                           if test "$enableval" = yes; then
7990                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7991                           else
7992                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7993                           fi
7994
7995 else
7996
7997                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7998
7999 fi
8000
8001
8002           eval "$wx_cv_use_protocol_http"
8003
8004           if test x"$enablestring" = xdisable; then
8005             if test $wxUSE_PROTOCOL_HTTP = yes; then
8006               result=no
8007             else
8008               result=yes
8009             fi
8010           else
8011             result=$wxUSE_PROTOCOL_HTTP
8012           fi
8013
8014           { echo "$as_me:$LINENO: result: $result" >&5
8015 echo "${ECHO_T}$result" >&6; }
8016
8017
8018           enablestring=
8019           defaultval=$wxUSE_ALL_FEATURES
8020           if test -z "$defaultval"; then
8021               if test x"$enablestring" = xdisable; then
8022                   defaultval=yes
8023               else
8024                   defaultval=no
8025               fi
8026           fi
8027
8028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8029 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8030           # Check whether --enable-protocol_ftp was given.
8031 if test "${enable_protocol_ftp+set}" = set; then
8032   enableval=$enable_protocol_ftp;
8033                           if test "$enableval" = yes; then
8034                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8035                           else
8036                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8037                           fi
8038
8039 else
8040
8041                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8042
8043 fi
8044
8045
8046           eval "$wx_cv_use_protocol_ftp"
8047
8048           if test x"$enablestring" = xdisable; then
8049             if test $wxUSE_PROTOCOL_FTP = yes; then
8050               result=no
8051             else
8052               result=yes
8053             fi
8054           else
8055             result=$wxUSE_PROTOCOL_FTP
8056           fi
8057
8058           { echo "$as_me:$LINENO: result: $result" >&5
8059 echo "${ECHO_T}$result" >&6; }
8060
8061
8062           enablestring=
8063           defaultval=$wxUSE_ALL_FEATURES
8064           if test -z "$defaultval"; then
8065               if test x"$enablestring" = xdisable; then
8066                   defaultval=yes
8067               else
8068                   defaultval=no
8069               fi
8070           fi
8071
8072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8073 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8074           # Check whether --enable-protocol_file was given.
8075 if test "${enable_protocol_file+set}" = set; then
8076   enableval=$enable_protocol_file;
8077                           if test "$enableval" = yes; then
8078                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8079                           else
8080                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8081                           fi
8082
8083 else
8084
8085                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8086
8087 fi
8088
8089
8090           eval "$wx_cv_use_protocol_file"
8091
8092           if test x"$enablestring" = xdisable; then
8093             if test $wxUSE_PROTOCOL_FILE = yes; then
8094               result=no
8095             else
8096               result=yes
8097             fi
8098           else
8099             result=$wxUSE_PROTOCOL_FILE
8100           fi
8101
8102           { echo "$as_me:$LINENO: result: $result" >&5
8103 echo "${ECHO_T}$result" >&6; }
8104
8105
8106
8107           enablestring=
8108           defaultval=$wxUSE_ALL_FEATURES
8109           if test -z "$defaultval"; then
8110               if test x"$enablestring" = xdisable; then
8111                   defaultval=yes
8112               else
8113                   defaultval=no
8114               fi
8115           fi
8116
8117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8118 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8119           # Check whether --enable-threads was given.
8120 if test "${enable_threads+set}" = set; then
8121   enableval=$enable_threads;
8122                           if test "$enableval" = yes; then
8123                             wx_cv_use_threads='wxUSE_THREADS=yes'
8124                           else
8125                             wx_cv_use_threads='wxUSE_THREADS=no'
8126                           fi
8127
8128 else
8129
8130                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8131
8132 fi
8133
8134
8135           eval "$wx_cv_use_threads"
8136
8137           if test x"$enablestring" = xdisable; then
8138             if test $wxUSE_THREADS = yes; then
8139               result=no
8140             else
8141               result=yes
8142             fi
8143           else
8144             result=$wxUSE_THREADS
8145           fi
8146
8147           { echo "$as_me:$LINENO: result: $result" >&5
8148 echo "${ECHO_T}$result" >&6; }
8149
8150
8151
8152           enablestring=
8153           defaultval=
8154           if test -z "$defaultval"; then
8155               if test x"$enablestring" = xdisable; then
8156                   defaultval=yes
8157               else
8158                   defaultval=no
8159               fi
8160           fi
8161
8162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8163 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8164           # Check whether --enable-iniconf was given.
8165 if test "${enable_iniconf+set}" = set; then
8166   enableval=$enable_iniconf;
8167                           if test "$enableval" = yes; then
8168                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8169                           else
8170                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8171                           fi
8172
8173 else
8174
8175                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8176
8177 fi
8178
8179
8180           eval "$wx_cv_use_iniconf"
8181
8182           if test x"$enablestring" = xdisable; then
8183             if test $wxUSE_INICONF = yes; then
8184               result=no
8185             else
8186               result=yes
8187             fi
8188           else
8189             result=$wxUSE_INICONF
8190           fi
8191
8192           { echo "$as_me:$LINENO: result: $result" >&5
8193 echo "${ECHO_T}$result" >&6; }
8194
8195
8196           enablestring=
8197           defaultval=$wxUSE_ALL_FEATURES
8198           if test -z "$defaultval"; then
8199               if test x"$enablestring" = xdisable; then
8200                   defaultval=yes
8201               else
8202                   defaultval=no
8203               fi
8204           fi
8205
8206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8207 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8208           # Check whether --enable-regkey was given.
8209 if test "${enable_regkey+set}" = set; then
8210   enableval=$enable_regkey;
8211                           if test "$enableval" = yes; then
8212                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8213                           else
8214                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8215                           fi
8216
8217 else
8218
8219                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8220
8221 fi
8222
8223
8224           eval "$wx_cv_use_regkey"
8225
8226           if test x"$enablestring" = xdisable; then
8227             if test $wxUSE_REGKEY = yes; then
8228               result=no
8229             else
8230               result=yes
8231             fi
8232           else
8233             result=$wxUSE_REGKEY
8234           fi
8235
8236           { echo "$as_me:$LINENO: result: $result" >&5
8237 echo "${ECHO_T}$result" >&6; }
8238
8239
8240 if test "$wxUSE_GUI" = "yes"; then
8241
8242
8243
8244           enablestring=
8245           defaultval=$wxUSE_ALL_FEATURES
8246           if test -z "$defaultval"; then
8247               if test x"$enablestring" = xdisable; then
8248                   defaultval=yes
8249               else
8250                   defaultval=no
8251               fi
8252           fi
8253
8254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8255 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8256           # Check whether --enable-docview was given.
8257 if test "${enable_docview+set}" = set; then
8258   enableval=$enable_docview;
8259                           if test "$enableval" = yes; then
8260                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8261                           else
8262                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8263                           fi
8264
8265 else
8266
8267                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8268
8269 fi
8270
8271
8272           eval "$wx_cv_use_docview"
8273
8274           if test x"$enablestring" = xdisable; then
8275             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8276               result=no
8277             else
8278               result=yes
8279             fi
8280           else
8281             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8282           fi
8283
8284           { echo "$as_me:$LINENO: result: $result" >&5
8285 echo "${ECHO_T}$result" >&6; }
8286
8287
8288           enablestring=
8289           defaultval=$wxUSE_ALL_FEATURES
8290           if test -z "$defaultval"; then
8291               if test x"$enablestring" = xdisable; then
8292                   defaultval=yes
8293               else
8294                   defaultval=no
8295               fi
8296           fi
8297
8298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8299 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8300           # Check whether --enable-help was given.
8301 if test "${enable_help+set}" = set; then
8302   enableval=$enable_help;
8303                           if test "$enableval" = yes; then
8304                             wx_cv_use_help='wxUSE_HELP=yes'
8305                           else
8306                             wx_cv_use_help='wxUSE_HELP=no'
8307                           fi
8308
8309 else
8310
8311                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8312
8313 fi
8314
8315
8316           eval "$wx_cv_use_help"
8317
8318           if test x"$enablestring" = xdisable; then
8319             if test $wxUSE_HELP = yes; then
8320               result=no
8321             else
8322               result=yes
8323             fi
8324           else
8325             result=$wxUSE_HELP
8326           fi
8327
8328           { echo "$as_me:$LINENO: result: $result" >&5
8329 echo "${ECHO_T}$result" >&6; }
8330
8331
8332           enablestring=
8333           defaultval=$wxUSE_ALL_FEATURES
8334           if test -z "$defaultval"; then
8335               if test x"$enablestring" = xdisable; then
8336                   defaultval=yes
8337               else
8338                   defaultval=no
8339               fi
8340           fi
8341
8342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8343 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8344           # Check whether --enable-mshtmlhelp was given.
8345 if test "${enable_mshtmlhelp+set}" = set; then
8346   enableval=$enable_mshtmlhelp;
8347                           if test "$enableval" = yes; then
8348                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8349                           else
8350                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8351                           fi
8352
8353 else
8354
8355                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8356
8357 fi
8358
8359
8360           eval "$wx_cv_use_mshtmlhelp"
8361
8362           if test x"$enablestring" = xdisable; then
8363             if test $wxUSE_MS_HTML_HELP = yes; then
8364               result=no
8365             else
8366               result=yes
8367             fi
8368           else
8369             result=$wxUSE_MS_HTML_HELP
8370           fi
8371
8372           { echo "$as_me:$LINENO: result: $result" >&5
8373 echo "${ECHO_T}$result" >&6; }
8374
8375
8376           enablestring=
8377           defaultval=$wxUSE_ALL_FEATURES
8378           if test -z "$defaultval"; then
8379               if test x"$enablestring" = xdisable; then
8380                   defaultval=yes
8381               else
8382                   defaultval=no
8383               fi
8384           fi
8385
8386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8387 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8388           # Check whether --enable-html was given.
8389 if test "${enable_html+set}" = set; then
8390   enableval=$enable_html;
8391                           if test "$enableval" = yes; then
8392                             wx_cv_use_html='wxUSE_HTML=yes'
8393                           else
8394                             wx_cv_use_html='wxUSE_HTML=no'
8395                           fi
8396
8397 else
8398
8399                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8400
8401 fi
8402
8403
8404           eval "$wx_cv_use_html"
8405
8406           if test x"$enablestring" = xdisable; then
8407             if test $wxUSE_HTML = yes; then
8408               result=no
8409             else
8410               result=yes
8411             fi
8412           else
8413             result=$wxUSE_HTML
8414           fi
8415
8416           { echo "$as_me:$LINENO: result: $result" >&5
8417 echo "${ECHO_T}$result" >&6; }
8418
8419
8420           enablestring=
8421           defaultval=$wxUSE_ALL_FEATURES
8422           if test -z "$defaultval"; then
8423               if test x"$enablestring" = xdisable; then
8424                   defaultval=yes
8425               else
8426                   defaultval=no
8427               fi
8428           fi
8429
8430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8431 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8432           # Check whether --enable-htmlhelp was given.
8433 if test "${enable_htmlhelp+set}" = set; then
8434   enableval=$enable_htmlhelp;
8435                           if test "$enableval" = yes; then
8436                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8437                           else
8438                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8439                           fi
8440
8441 else
8442
8443                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8444
8445 fi
8446
8447
8448           eval "$wx_cv_use_htmlhelp"
8449
8450           if test x"$enablestring" = xdisable; then
8451             if test $wxUSE_WXHTML_HELP = yes; then
8452               result=no
8453             else
8454               result=yes
8455             fi
8456           else
8457             result=$wxUSE_WXHTML_HELP
8458           fi
8459
8460           { echo "$as_me:$LINENO: result: $result" >&5
8461 echo "${ECHO_T}$result" >&6; }
8462
8463
8464           enablestring=
8465           defaultval=$wxUSE_ALL_FEATURES
8466           if test -z "$defaultval"; then
8467               if test x"$enablestring" = xdisable; then
8468                   defaultval=yes
8469               else
8470                   defaultval=no
8471               fi
8472           fi
8473
8474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8475 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8476           # Check whether --enable-xrc was given.
8477 if test "${enable_xrc+set}" = set; then
8478   enableval=$enable_xrc;
8479                           if test "$enableval" = yes; then
8480                             wx_cv_use_xrc='wxUSE_XRC=yes'
8481                           else
8482                             wx_cv_use_xrc='wxUSE_XRC=no'
8483                           fi
8484
8485 else
8486
8487                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8488
8489 fi
8490
8491
8492           eval "$wx_cv_use_xrc"
8493
8494           if test x"$enablestring" = xdisable; then
8495             if test $wxUSE_XRC = yes; then
8496               result=no
8497             else
8498               result=yes
8499             fi
8500           else
8501             result=$wxUSE_XRC
8502           fi
8503
8504           { echo "$as_me:$LINENO: result: $result" >&5
8505 echo "${ECHO_T}$result" >&6; }
8506
8507
8508           enablestring=
8509           defaultval=$wxUSE_ALL_FEATURES
8510           if test -z "$defaultval"; then
8511               if test x"$enablestring" = xdisable; then
8512                   defaultval=yes
8513               else
8514                   defaultval=no
8515               fi
8516           fi
8517
8518           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8519 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8520           # Check whether --enable-aui was given.
8521 if test "${enable_aui+set}" = set; then
8522   enableval=$enable_aui;
8523                           if test "$enableval" = yes; then
8524                             wx_cv_use_aui='wxUSE_AUI=yes'
8525                           else
8526                             wx_cv_use_aui='wxUSE_AUI=no'
8527                           fi
8528
8529 else
8530
8531                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8532
8533 fi
8534
8535
8536           eval "$wx_cv_use_aui"
8537
8538           if test x"$enablestring" = xdisable; then
8539             if test $wxUSE_AUI = yes; then
8540               result=no
8541             else
8542               result=yes
8543             fi
8544           else
8545             result=$wxUSE_AUI
8546           fi
8547
8548           { echo "$as_me:$LINENO: result: $result" >&5
8549 echo "${ECHO_T}$result" >&6; }
8550
8551
8552           enablestring=
8553           defaultval=$wxUSE_ALL_FEATURES
8554           if test -z "$defaultval"; then
8555               if test x"$enablestring" = xdisable; then
8556                   defaultval=yes
8557               else
8558                   defaultval=no
8559               fi
8560           fi
8561
8562           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8563 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8564           # Check whether --enable-propgrid was given.
8565 if test "${enable_propgrid+set}" = set; then
8566   enableval=$enable_propgrid;
8567                           if test "$enableval" = yes; then
8568                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8569                           else
8570                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8571                           fi
8572
8573 else
8574
8575                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8576
8577 fi
8578
8579
8580           eval "$wx_cv_use_propgrid"
8581
8582           if test x"$enablestring" = xdisable; then
8583             if test $wxUSE_PROPGRID = yes; then
8584               result=no
8585             else
8586               result=yes
8587             fi
8588           else
8589             result=$wxUSE_PROPGRID
8590           fi
8591
8592           { echo "$as_me:$LINENO: result: $result" >&5
8593 echo "${ECHO_T}$result" >&6; }
8594
8595
8596           enablestring=
8597           defaultval=$wxUSE_ALL_FEATURES
8598           if test -z "$defaultval"; then
8599               if test x"$enablestring" = xdisable; then
8600                   defaultval=yes
8601               else
8602                   defaultval=no
8603               fi
8604           fi
8605
8606           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8607 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8608           # Check whether --enable-stc was given.
8609 if test "${enable_stc+set}" = set; then
8610   enableval=$enable_stc;
8611                           if test "$enableval" = yes; then
8612                             wx_cv_use_stc='wxUSE_STC=yes'
8613                           else
8614                             wx_cv_use_stc='wxUSE_STC=no'
8615                           fi
8616
8617 else
8618
8619                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8620
8621 fi
8622
8623
8624           eval "$wx_cv_use_stc"
8625
8626           if test x"$enablestring" = xdisable; then
8627             if test $wxUSE_STC = yes; then
8628               result=no
8629             else
8630               result=yes
8631             fi
8632           else
8633             result=$wxUSE_STC
8634           fi
8635
8636           { echo "$as_me:$LINENO: result: $result" >&5
8637 echo "${ECHO_T}$result" >&6; }
8638
8639
8640           enablestring=
8641           defaultval=$wxUSE_ALL_FEATURES
8642           if test -z "$defaultval"; then
8643               if test x"$enablestring" = xdisable; then
8644                   defaultval=yes
8645               else
8646                   defaultval=no
8647               fi
8648           fi
8649
8650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8651 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8652           # Check whether --enable-constraints was given.
8653 if test "${enable_constraints+set}" = set; then
8654   enableval=$enable_constraints;
8655                           if test "$enableval" = yes; then
8656                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8657                           else
8658                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8659                           fi
8660
8661 else
8662
8663                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8664
8665 fi
8666
8667
8668           eval "$wx_cv_use_constraints"
8669
8670           if test x"$enablestring" = xdisable; then
8671             if test $wxUSE_CONSTRAINTS = yes; then
8672               result=no
8673             else
8674               result=yes
8675             fi
8676           else
8677             result=$wxUSE_CONSTRAINTS
8678           fi
8679
8680           { echo "$as_me:$LINENO: result: $result" >&5
8681 echo "${ECHO_T}$result" >&6; }
8682
8683
8684           enablestring=
8685           defaultval=$wxUSE_ALL_FEATURES
8686           if test -z "$defaultval"; then
8687               if test x"$enablestring" = xdisable; then
8688                   defaultval=yes
8689               else
8690                   defaultval=no
8691               fi
8692           fi
8693
8694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8695 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8696           # Check whether --enable-loggui was given.
8697 if test "${enable_loggui+set}" = set; then
8698   enableval=$enable_loggui;
8699                           if test "$enableval" = yes; then
8700                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8701                           else
8702                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8703                           fi
8704
8705 else
8706
8707                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8708
8709 fi
8710
8711
8712           eval "$wx_cv_use_loggui"
8713
8714           if test x"$enablestring" = xdisable; then
8715             if test $wxUSE_LOGGUI = yes; then
8716               result=no
8717             else
8718               result=yes
8719             fi
8720           else
8721             result=$wxUSE_LOGGUI
8722           fi
8723
8724           { echo "$as_me:$LINENO: result: $result" >&5
8725 echo "${ECHO_T}$result" >&6; }
8726
8727
8728           enablestring=
8729           defaultval=$wxUSE_ALL_FEATURES
8730           if test -z "$defaultval"; then
8731               if test x"$enablestring" = xdisable; then
8732                   defaultval=yes
8733               else
8734                   defaultval=no
8735               fi
8736           fi
8737
8738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8739 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8740           # Check whether --enable-logwin was given.
8741 if test "${enable_logwin+set}" = set; then
8742   enableval=$enable_logwin;
8743                           if test "$enableval" = yes; then
8744                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8745                           else
8746                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8747                           fi
8748
8749 else
8750
8751                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8752
8753 fi
8754
8755
8756           eval "$wx_cv_use_logwin"
8757
8758           if test x"$enablestring" = xdisable; then
8759             if test $wxUSE_LOGWINDOW = yes; then
8760               result=no
8761             else
8762               result=yes
8763             fi
8764           else
8765             result=$wxUSE_LOGWINDOW
8766           fi
8767
8768           { echo "$as_me:$LINENO: result: $result" >&5
8769 echo "${ECHO_T}$result" >&6; }
8770
8771
8772           enablestring=
8773           defaultval=$wxUSE_ALL_FEATURES
8774           if test -z "$defaultval"; then
8775               if test x"$enablestring" = xdisable; then
8776                   defaultval=yes
8777               else
8778                   defaultval=no
8779               fi
8780           fi
8781
8782           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8783 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8784           # Check whether --enable-logdialog was given.
8785 if test "${enable_logdialog+set}" = set; then
8786   enableval=$enable_logdialog;
8787                           if test "$enableval" = yes; then
8788                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8789                           else
8790                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8791                           fi
8792
8793 else
8794
8795                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8796
8797 fi
8798
8799
8800           eval "$wx_cv_use_logdialog"
8801
8802           if test x"$enablestring" = xdisable; then
8803             if test $wxUSE_LOGDIALOG = yes; then
8804               result=no
8805             else
8806               result=yes
8807             fi
8808           else
8809             result=$wxUSE_LOGDIALOG
8810           fi
8811
8812           { echo "$as_me:$LINENO: result: $result" >&5
8813 echo "${ECHO_T}$result" >&6; }
8814
8815
8816           enablestring=
8817           defaultval=$wxUSE_ALL_FEATURES
8818           if test -z "$defaultval"; then
8819               if test x"$enablestring" = xdisable; then
8820                   defaultval=yes
8821               else
8822                   defaultval=no
8823               fi
8824           fi
8825
8826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8827 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8828           # Check whether --enable-mdi was given.
8829 if test "${enable_mdi+set}" = set; then
8830   enableval=$enable_mdi;
8831                           if test "$enableval" = yes; then
8832                             wx_cv_use_mdi='wxUSE_MDI=yes'
8833                           else
8834                             wx_cv_use_mdi='wxUSE_MDI=no'
8835                           fi
8836
8837 else
8838
8839                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8840
8841 fi
8842
8843
8844           eval "$wx_cv_use_mdi"
8845
8846           if test x"$enablestring" = xdisable; then
8847             if test $wxUSE_MDI = yes; then
8848               result=no
8849             else
8850               result=yes
8851             fi
8852           else
8853             result=$wxUSE_MDI
8854           fi
8855
8856           { echo "$as_me:$LINENO: result: $result" >&5
8857 echo "${ECHO_T}$result" >&6; }
8858
8859
8860           enablestring=
8861           defaultval=$wxUSE_ALL_FEATURES
8862           if test -z "$defaultval"; then
8863               if test x"$enablestring" = xdisable; then
8864                   defaultval=yes
8865               else
8866                   defaultval=no
8867               fi
8868           fi
8869
8870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8871 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8872           # Check whether --enable-mdidoc was given.
8873 if test "${enable_mdidoc+set}" = set; then
8874   enableval=$enable_mdidoc;
8875                           if test "$enableval" = yes; then
8876                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8877                           else
8878                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8879                           fi
8880
8881 else
8882
8883                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8884
8885 fi
8886
8887
8888           eval "$wx_cv_use_mdidoc"
8889
8890           if test x"$enablestring" = xdisable; then
8891             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8892               result=no
8893             else
8894               result=yes
8895             fi
8896           else
8897             result=$wxUSE_MDI_ARCHITECTURE
8898           fi
8899
8900           { echo "$as_me:$LINENO: result: $result" >&5
8901 echo "${ECHO_T}$result" >&6; }
8902
8903
8904           enablestring=
8905           defaultval=$wxUSE_ALL_FEATURES
8906           if test -z "$defaultval"; then
8907               if test x"$enablestring" = xdisable; then
8908                   defaultval=yes
8909               else
8910                   defaultval=no
8911               fi
8912           fi
8913
8914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8915 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8916           # Check whether --enable-mediactrl was given.
8917 if test "${enable_mediactrl+set}" = set; then
8918   enableval=$enable_mediactrl;
8919                           if test "$enableval" = yes; then
8920                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8921                           else
8922                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8923                           fi
8924
8925 else
8926
8927                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8928
8929 fi
8930
8931
8932           eval "$wx_cv_use_mediactrl"
8933
8934           if test x"$enablestring" = xdisable; then
8935             if test $wxUSE_MEDIACTRL = yes; then
8936               result=no
8937             else
8938               result=yes
8939             fi
8940           else
8941             result=$wxUSE_MEDIACTRL
8942           fi
8943
8944           { echo "$as_me:$LINENO: result: $result" >&5
8945 echo "${ECHO_T}$result" >&6; }
8946
8947
8948           enablestring=
8949           defaultval=$wxUSE_ALL_FEATURES
8950           if test -z "$defaultval"; then
8951               if test x"$enablestring" = xdisable; then
8952                   defaultval=yes
8953               else
8954                   defaultval=no
8955               fi
8956           fi
8957
8958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8959 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8960           # Check whether --enable-gstreamer8 was given.
8961 if test "${enable_gstreamer8+set}" = set; then
8962   enableval=$enable_gstreamer8;
8963                           if test "$enableval" = yes; then
8964                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8965                           else
8966                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8967                           fi
8968
8969 else
8970
8971                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8972
8973 fi
8974
8975
8976           eval "$wx_cv_use_gstreamer8"
8977
8978           if test x"$enablestring" = xdisable; then
8979             if test $wxUSE_GSTREAMER8 = yes; then
8980               result=no
8981             else
8982               result=yes
8983             fi
8984           else
8985             result=$wxUSE_GSTREAMER8
8986           fi
8987
8988           { echo "$as_me:$LINENO: result: $result" >&5
8989 echo "${ECHO_T}$result" >&6; }
8990
8991
8992           enablestring=
8993           defaultval=$wxUSE_ALL_FEATURES
8994           if test -z "$defaultval"; then
8995               if test x"$enablestring" = xdisable; then
8996                   defaultval=yes
8997               else
8998                   defaultval=no
8999               fi
9000           fi
9001
9002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9003 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9004           # Check whether --enable-webkit was given.
9005 if test "${enable_webkit+set}" = set; then
9006   enableval=$enable_webkit;
9007                           if test "$enableval" = yes; then
9008                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9009                           else
9010                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9011                           fi
9012
9013 else
9014
9015                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9016
9017 fi
9018
9019
9020           eval "$wx_cv_use_webkit"
9021
9022           if test x"$enablestring" = xdisable; then
9023             if test $wxUSE_WEBKIT = yes; then
9024               result=no
9025             else
9026               result=yes
9027             fi
9028           else
9029             result=$wxUSE_WEBKIT
9030           fi
9031
9032           { echo "$as_me:$LINENO: result: $result" >&5
9033 echo "${ECHO_T}$result" >&6; }
9034
9035
9036           enablestring=
9037           defaultval=$wxUSE_ALL_FEATURES
9038           if test -z "$defaultval"; then
9039               if test x"$enablestring" = xdisable; then
9040                   defaultval=yes
9041               else
9042                   defaultval=no
9043               fi
9044           fi
9045
9046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9047 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9048           # Check whether --enable-richtext was given.
9049 if test "${enable_richtext+set}" = set; then
9050   enableval=$enable_richtext;
9051                           if test "$enableval" = yes; then
9052                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9053                           else
9054                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9055                           fi
9056
9057 else
9058
9059                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9060
9061 fi
9062
9063
9064           eval "$wx_cv_use_richtext"
9065
9066           if test x"$enablestring" = xdisable; then
9067             if test $wxUSE_RICHTEXT = yes; then
9068               result=no
9069             else
9070               result=yes
9071             fi
9072           else
9073             result=$wxUSE_RICHTEXT
9074           fi
9075
9076           { echo "$as_me:$LINENO: result: $result" >&5
9077 echo "${ECHO_T}$result" >&6; }
9078
9079
9080           enablestring=
9081           defaultval=$wxUSE_ALL_FEATURES
9082           if test -z "$defaultval"; then
9083               if test x"$enablestring" = xdisable; then
9084                   defaultval=yes
9085               else
9086                   defaultval=no
9087               fi
9088           fi
9089
9090           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9091 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9092           # Check whether --enable-graphics_ctx was given.
9093 if test "${enable_graphics_ctx+set}" = set; then
9094   enableval=$enable_graphics_ctx;
9095                           if test "$enableval" = yes; then
9096                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9097                           else
9098                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9099                           fi
9100
9101 else
9102
9103                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9104
9105 fi
9106
9107
9108           eval "$wx_cv_use_graphics_ctx"
9109
9110           if test x"$enablestring" = xdisable; then
9111             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9112               result=no
9113             else
9114               result=yes
9115             fi
9116           else
9117             result=$wxUSE_GRAPHICS_CONTEXT
9118           fi
9119
9120           { echo "$as_me:$LINENO: result: $result" >&5
9121 echo "${ECHO_T}$result" >&6; }
9122
9123
9124           enablestring=
9125           defaultval=$wxUSE_ALL_FEATURES
9126           if test -z "$defaultval"; then
9127               if test x"$enablestring" = xdisable; then
9128                   defaultval=yes
9129               else
9130                   defaultval=no
9131               fi
9132           fi
9133
9134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9135 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9136           # Check whether --enable-postscript was given.
9137 if test "${enable_postscript+set}" = set; then
9138   enableval=$enable_postscript;
9139                           if test "$enableval" = yes; then
9140                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9141                           else
9142                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9143                           fi
9144
9145 else
9146
9147                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9148
9149 fi
9150
9151
9152           eval "$wx_cv_use_postscript"
9153
9154           if test x"$enablestring" = xdisable; then
9155             if test $wxUSE_POSTSCRIPT = yes; then
9156               result=no
9157             else
9158               result=yes
9159             fi
9160           else
9161             result=$wxUSE_POSTSCRIPT
9162           fi
9163
9164           { echo "$as_me:$LINENO: result: $result" >&5
9165 echo "${ECHO_T}$result" >&6; }
9166
9167
9168           enablestring=
9169           defaultval=$wxUSE_ALL_FEATURES
9170           if test -z "$defaultval"; then
9171               if test x"$enablestring" = xdisable; then
9172                   defaultval=yes
9173               else
9174                   defaultval=no
9175               fi
9176           fi
9177
9178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9179 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9180           # Check whether --enable-printarch was given.
9181 if test "${enable_printarch+set}" = set; then
9182   enableval=$enable_printarch;
9183                           if test "$enableval" = yes; then
9184                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9185                           else
9186                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9187                           fi
9188
9189 else
9190
9191                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9192
9193 fi
9194
9195
9196           eval "$wx_cv_use_printarch"
9197
9198           if test x"$enablestring" = xdisable; then
9199             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9200               result=no
9201             else
9202               result=yes
9203             fi
9204           else
9205             result=$wxUSE_PRINTING_ARCHITECTURE
9206           fi
9207
9208           { echo "$as_me:$LINENO: result: $result" >&5
9209 echo "${ECHO_T}$result" >&6; }
9210
9211
9212           enablestring=
9213           defaultval=$wxUSE_ALL_FEATURES
9214           if test -z "$defaultval"; then
9215               if test x"$enablestring" = xdisable; then
9216                   defaultval=yes
9217               else
9218                   defaultval=no
9219               fi
9220           fi
9221
9222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9223 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9224           # Check whether --enable-svg was given.
9225 if test "${enable_svg+set}" = set; then
9226   enableval=$enable_svg;
9227                           if test "$enableval" = yes; then
9228                             wx_cv_use_svg='wxUSE_SVG=yes'
9229                           else
9230                             wx_cv_use_svg='wxUSE_SVG=no'
9231                           fi
9232
9233 else
9234
9235                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9236
9237 fi
9238
9239
9240           eval "$wx_cv_use_svg"
9241
9242           if test x"$enablestring" = xdisable; then
9243             if test $wxUSE_SVG = yes; then
9244               result=no
9245             else
9246               result=yes
9247             fi
9248           else
9249             result=$wxUSE_SVG
9250           fi
9251
9252           { echo "$as_me:$LINENO: result: $result" >&5
9253 echo "${ECHO_T}$result" >&6; }
9254
9255
9256
9257
9258           enablestring=
9259           defaultval=$wxUSE_ALL_FEATURES
9260           if test -z "$defaultval"; then
9261               if test x"$enablestring" = xdisable; then
9262                   defaultval=yes
9263               else
9264                   defaultval=no
9265               fi
9266           fi
9267
9268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9269 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9270           # Check whether --enable-clipboard was given.
9271 if test "${enable_clipboard+set}" = set; then
9272   enableval=$enable_clipboard;
9273                           if test "$enableval" = yes; then
9274                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9275                           else
9276                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9277                           fi
9278
9279 else
9280
9281                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9282
9283 fi
9284
9285
9286           eval "$wx_cv_use_clipboard"
9287
9288           if test x"$enablestring" = xdisable; then
9289             if test $wxUSE_CLIPBOARD = yes; then
9290               result=no
9291             else
9292               result=yes
9293             fi
9294           else
9295             result=$wxUSE_CLIPBOARD
9296           fi
9297
9298           { echo "$as_me:$LINENO: result: $result" >&5
9299 echo "${ECHO_T}$result" >&6; }
9300
9301
9302           enablestring=
9303           defaultval=$wxUSE_ALL_FEATURES
9304           if test -z "$defaultval"; then
9305               if test x"$enablestring" = xdisable; then
9306                   defaultval=yes
9307               else
9308                   defaultval=no
9309               fi
9310           fi
9311
9312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9313 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9314           # Check whether --enable-dnd was given.
9315 if test "${enable_dnd+set}" = set; then
9316   enableval=$enable_dnd;
9317                           if test "$enableval" = yes; then
9318                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9319                           else
9320                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9321                           fi
9322
9323 else
9324
9325                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9326
9327 fi
9328
9329
9330           eval "$wx_cv_use_dnd"
9331
9332           if test x"$enablestring" = xdisable; then
9333             if test $wxUSE_DRAG_AND_DROP = yes; then
9334               result=no
9335             else
9336               result=yes
9337             fi
9338           else
9339             result=$wxUSE_DRAG_AND_DROP
9340           fi
9341
9342           { echo "$as_me:$LINENO: result: $result" >&5
9343 echo "${ECHO_T}$result" >&6; }
9344
9345
9346           enablestring=
9347           defaultval=$wxUSE_ALL_FEATURES
9348           if test -z "$defaultval"; then
9349               if test x"$enablestring" = xdisable; then
9350                   defaultval=yes
9351               else
9352                   defaultval=no
9353               fi
9354           fi
9355
9356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9357 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9358           # Check whether --enable-metafile was given.
9359 if test "${enable_metafile+set}" = set; then
9360   enableval=$enable_metafile;
9361                           if test "$enableval" = yes; then
9362                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9363                           else
9364                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9365                           fi
9366
9367 else
9368
9369                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9370
9371 fi
9372
9373
9374           eval "$wx_cv_use_metafile"
9375
9376           if test x"$enablestring" = xdisable; then
9377             if test $wxUSE_METAFILE = yes; then
9378               result=no
9379             else
9380               result=yes
9381             fi
9382           else
9383             result=$wxUSE_METAFILE
9384           fi
9385
9386           { echo "$as_me:$LINENO: result: $result" >&5
9387 echo "${ECHO_T}$result" >&6; }
9388
9389
9390
9391 DEFAULT_wxUSE_CONTROLS=none
9392
9393           enablestring=disable
9394           defaultval=
9395           if test -z "$defaultval"; then
9396               if test x"$enablestring" = xdisable; then
9397                   defaultval=yes
9398               else
9399                   defaultval=no
9400               fi
9401           fi
9402
9403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9404 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9405           # Check whether --enable-controls was given.
9406 if test "${enable_controls+set}" = set; then
9407   enableval=$enable_controls;
9408                           if test "$enableval" = yes; then
9409                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9410                           else
9411                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9412                           fi
9413
9414 else
9415
9416                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9417
9418 fi
9419
9420
9421           eval "$wx_cv_use_controls"
9422
9423           if test x"$enablestring" = xdisable; then
9424             if test $wxUSE_CONTROLS = yes; then
9425               result=no
9426             else
9427               result=yes
9428             fi
9429           else
9430             result=$wxUSE_CONTROLS
9431           fi
9432
9433           { echo "$as_me:$LINENO: result: $result" >&5
9434 echo "${ECHO_T}$result" >&6; }
9435
9436
9437 if test "$wxUSE_CONTROLS" = "no"; then
9438     DEFAULT_wxUSE_ACCEL=no
9439     DEFAULT_wxUSE_ANIMATIONCTRL=no
9440     DEFAULT_wxUSE_BMPBUTTON=no
9441     DEFAULT_wxUSE_BUTTON=no
9442     DEFAULT_wxUSE_CALCTRL=no
9443     DEFAULT_wxUSE_CARET=no
9444     DEFAULT_wxUSE_CHECKBOX=no
9445     DEFAULT_wxUSE_CHECKLISTBOX=no
9446     DEFAULT_wxUSE_CHOICE=no
9447     DEFAULT_wxUSE_CHOICEBOOK=no
9448     DEFAULT_wxUSE_COLLPANE=no
9449     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9450     DEFAULT_wxUSE_COMBOBOX=no
9451     DEFAULT_wxUSE_COMBOBOX=no
9452     DEFAULT_wxUSE_DATAVIEWCTRL=no
9453     DEFAULT_wxUSE_DATEPICKCTRL=no
9454     DEFAULT_wxUSE_DETECT_SM=no
9455     DEFAULT_wxUSE_DIRPICKERCTRL=no
9456     DEFAULT_wxUSE_DISPLAY=no
9457     DEFAULT_wxUSE_FILECTRL=no
9458     DEFAULT_wxUSE_FILEPICKERCTRL=no
9459     DEFAULT_wxUSE_FONTPICKERCTRL=no
9460     DEFAULT_wxUSE_GAUGE=no
9461     DEFAULT_wxUSE_GRID=no
9462     DEFAULT_wxUSE_HEADERCTRL=no
9463     DEFAULT_wxUSE_HYPERLINKCTRL=no
9464     DEFAULT_wxUSE_IMAGLIST=no
9465     DEFAULT_wxUSE_LISTBOOK=no
9466     DEFAULT_wxUSE_LISTBOX=no
9467     DEFAULT_wxUSE_LISTCTRL=no
9468     DEFAULT_wxUSE_NOTEBOOK=no
9469     DEFAULT_wxUSE_POPUPWIN=no
9470     DEFAULT_wxUSE_RADIOBOX=no
9471     DEFAULT_wxUSE_RADIOBTN=no
9472     DEFAULT_wxUSE_REARRANGECTRL=no
9473     DEFAULT_wxUSE_SASH=no
9474     DEFAULT_wxUSE_SCROLLBAR=no
9475     DEFAULT_wxUSE_SEARCHCTRL=no
9476     DEFAULT_wxUSE_SLIDER=no
9477     DEFAULT_wxUSE_SPINBTN=no
9478     DEFAULT_wxUSE_SPINCTRL=no
9479     DEFAULT_wxUSE_SPLITTER=no
9480     DEFAULT_wxUSE_STATBMP=no
9481     DEFAULT_wxUSE_STATBOX=no
9482     DEFAULT_wxUSE_STATLINE=no
9483     DEFAULT_wxUSE_STATUSBAR=no
9484     DEFAULT_wxUSE_TIPWINDOW=no
9485     DEFAULT_wxUSE_TOGGLEBTN=no
9486     DEFAULT_wxUSE_TOOLBAR=no
9487     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9488     DEFAULT_wxUSE_TOOLBOOK=no
9489     DEFAULT_wxUSE_TOOLTIPS=no
9490     DEFAULT_wxUSE_TREEBOOK=no
9491     DEFAULT_wxUSE_TREECTRL=no
9492 fi
9493
9494
9495           enablestring=
9496           defaultval=$wxUSE_ALL_FEATURES
9497           if test -z "$defaultval"; then
9498               if test x"$enablestring" = xdisable; then
9499                   defaultval=yes
9500               else
9501                   defaultval=no
9502               fi
9503           fi
9504
9505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9506 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9507           # Check whether --enable-accel was given.
9508 if test "${enable_accel+set}" = set; then
9509   enableval=$enable_accel;
9510                           if test "$enableval" = yes; then
9511                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9512                           else
9513                             wx_cv_use_accel='wxUSE_ACCEL=no'
9514                           fi
9515
9516 else
9517
9518                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9519
9520 fi
9521
9522
9523           eval "$wx_cv_use_accel"
9524
9525           if test x"$enablestring" = xdisable; then
9526             if test $wxUSE_ACCEL = yes; then
9527               result=no
9528             else
9529               result=yes
9530             fi
9531           else
9532             result=$wxUSE_ACCEL
9533           fi
9534
9535           { echo "$as_me:$LINENO: result: $result" >&5
9536 echo "${ECHO_T}$result" >&6; }
9537
9538
9539           enablestring=
9540           defaultval=$wxUSE_ALL_FEATURES
9541           if test -z "$defaultval"; then
9542               if test x"$enablestring" = xdisable; then
9543                   defaultval=yes
9544               else
9545                   defaultval=no
9546               fi
9547           fi
9548
9549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9550 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9551           # Check whether --enable-animatectrl was given.
9552 if test "${enable_animatectrl+set}" = set; then
9553   enableval=$enable_animatectrl;
9554                           if test "$enableval" = yes; then
9555                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9556                           else
9557                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9558                           fi
9559
9560 else
9561
9562                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9563
9564 fi
9565
9566
9567           eval "$wx_cv_use_animatectrl"
9568
9569           if test x"$enablestring" = xdisable; then
9570             if test $wxUSE_ANIMATIONCTRL = yes; then
9571               result=no
9572             else
9573               result=yes
9574             fi
9575           else
9576             result=$wxUSE_ANIMATIONCTRL
9577           fi
9578
9579           { echo "$as_me:$LINENO: result: $result" >&5
9580 echo "${ECHO_T}$result" >&6; }
9581
9582
9583           enablestring=
9584           defaultval=$wxUSE_ALL_FEATURES
9585           if test -z "$defaultval"; then
9586               if test x"$enablestring" = xdisable; then
9587                   defaultval=yes
9588               else
9589                   defaultval=no
9590               fi
9591           fi
9592
9593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9594 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9595           # Check whether --enable-bmpbutton was given.
9596 if test "${enable_bmpbutton+set}" = set; then
9597   enableval=$enable_bmpbutton;
9598                           if test "$enableval" = yes; then
9599                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9600                           else
9601                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9602                           fi
9603
9604 else
9605
9606                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9607
9608 fi
9609
9610
9611           eval "$wx_cv_use_bmpbutton"
9612
9613           if test x"$enablestring" = xdisable; then
9614             if test $wxUSE_BMPBUTTON = yes; then
9615               result=no
9616             else
9617               result=yes
9618             fi
9619           else
9620             result=$wxUSE_BMPBUTTON
9621           fi
9622
9623           { echo "$as_me:$LINENO: result: $result" >&5
9624 echo "${ECHO_T}$result" >&6; }
9625
9626
9627           enablestring=
9628           defaultval=$wxUSE_ALL_FEATURES
9629           if test -z "$defaultval"; then
9630               if test x"$enablestring" = xdisable; then
9631                   defaultval=yes
9632               else
9633                   defaultval=no
9634               fi
9635           fi
9636
9637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9638 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9639           # Check whether --enable-bmpcombobox was given.
9640 if test "${enable_bmpcombobox+set}" = set; then
9641   enableval=$enable_bmpcombobox;
9642                           if test "$enableval" = yes; then
9643                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9644                           else
9645                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9646                           fi
9647
9648 else
9649
9650                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9651
9652 fi
9653
9654
9655           eval "$wx_cv_use_bmpcombobox"
9656
9657           if test x"$enablestring" = xdisable; then
9658             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9659               result=no
9660             else
9661               result=yes
9662             fi
9663           else
9664             result=$wxUSE_BITMAPCOMBOBOX
9665           fi
9666
9667           { echo "$as_me:$LINENO: result: $result" >&5
9668 echo "${ECHO_T}$result" >&6; }
9669
9670
9671           enablestring=
9672           defaultval=$wxUSE_ALL_FEATURES
9673           if test -z "$defaultval"; then
9674               if test x"$enablestring" = xdisable; then
9675                   defaultval=yes
9676               else
9677                   defaultval=no
9678               fi
9679           fi
9680
9681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9682 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9683           # Check whether --enable-button was given.
9684 if test "${enable_button+set}" = set; then
9685   enableval=$enable_button;
9686                           if test "$enableval" = yes; then
9687                             wx_cv_use_button='wxUSE_BUTTON=yes'
9688                           else
9689                             wx_cv_use_button='wxUSE_BUTTON=no'
9690                           fi
9691
9692 else
9693
9694                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9695
9696 fi
9697
9698
9699           eval "$wx_cv_use_button"
9700
9701           if test x"$enablestring" = xdisable; then
9702             if test $wxUSE_BUTTON = yes; then
9703               result=no
9704             else
9705               result=yes
9706             fi
9707           else
9708             result=$wxUSE_BUTTON
9709           fi
9710
9711           { echo "$as_me:$LINENO: result: $result" >&5
9712 echo "${ECHO_T}$result" >&6; }
9713
9714
9715           enablestring=
9716           defaultval=$wxUSE_ALL_FEATURES
9717           if test -z "$defaultval"; then
9718               if test x"$enablestring" = xdisable; then
9719                   defaultval=yes
9720               else
9721                   defaultval=no
9722               fi
9723           fi
9724
9725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9726 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9727           # Check whether --enable-calendar was given.
9728 if test "${enable_calendar+set}" = set; then
9729   enableval=$enable_calendar;
9730                           if test "$enableval" = yes; then
9731                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9732                           else
9733                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9734                           fi
9735
9736 else
9737
9738                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9739
9740 fi
9741
9742
9743           eval "$wx_cv_use_calendar"
9744
9745           if test x"$enablestring" = xdisable; then
9746             if test $wxUSE_CALCTRL = yes; then
9747               result=no
9748             else
9749               result=yes
9750             fi
9751           else
9752             result=$wxUSE_CALCTRL
9753           fi
9754
9755           { echo "$as_me:$LINENO: result: $result" >&5
9756 echo "${ECHO_T}$result" >&6; }
9757
9758
9759           enablestring=
9760           defaultval=$wxUSE_ALL_FEATURES
9761           if test -z "$defaultval"; then
9762               if test x"$enablestring" = xdisable; then
9763                   defaultval=yes
9764               else
9765                   defaultval=no
9766               fi
9767           fi
9768
9769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9770 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9771           # Check whether --enable-caret was given.
9772 if test "${enable_caret+set}" = set; then
9773   enableval=$enable_caret;
9774                           if test "$enableval" = yes; then
9775                             wx_cv_use_caret='wxUSE_CARET=yes'
9776                           else
9777                             wx_cv_use_caret='wxUSE_CARET=no'
9778                           fi
9779
9780 else
9781
9782                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9783
9784 fi
9785
9786
9787           eval "$wx_cv_use_caret"
9788
9789           if test x"$enablestring" = xdisable; then
9790             if test $wxUSE_CARET = yes; then
9791               result=no
9792             else
9793               result=yes
9794             fi
9795           else
9796             result=$wxUSE_CARET
9797           fi
9798
9799           { echo "$as_me:$LINENO: result: $result" >&5
9800 echo "${ECHO_T}$result" >&6; }
9801
9802
9803           enablestring=
9804           defaultval=$wxUSE_ALL_FEATURES
9805           if test -z "$defaultval"; then
9806               if test x"$enablestring" = xdisable; then
9807                   defaultval=yes
9808               else
9809                   defaultval=no
9810               fi
9811           fi
9812
9813           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9814 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9815           # Check whether --enable-checkbox was given.
9816 if test "${enable_checkbox+set}" = set; then
9817   enableval=$enable_checkbox;
9818                           if test "$enableval" = yes; then
9819                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9820                           else
9821                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9822                           fi
9823
9824 else
9825
9826                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9827
9828 fi
9829
9830
9831           eval "$wx_cv_use_checkbox"
9832
9833           if test x"$enablestring" = xdisable; then
9834             if test $wxUSE_CHECKBOX = yes; then
9835               result=no
9836             else
9837               result=yes
9838             fi
9839           else
9840             result=$wxUSE_CHECKBOX
9841           fi
9842
9843           { echo "$as_me:$LINENO: result: $result" >&5
9844 echo "${ECHO_T}$result" >&6; }
9845
9846
9847           enablestring=
9848           defaultval=$wxUSE_ALL_FEATURES
9849           if test -z "$defaultval"; then
9850               if test x"$enablestring" = xdisable; then
9851                   defaultval=yes
9852               else
9853                   defaultval=no
9854               fi
9855           fi
9856
9857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9858 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9859           # Check whether --enable-checklst was given.
9860 if test "${enable_checklst+set}" = set; then
9861   enableval=$enable_checklst;
9862                           if test "$enableval" = yes; then
9863                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9864                           else
9865                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9866                           fi
9867
9868 else
9869
9870                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9871
9872 fi
9873
9874
9875           eval "$wx_cv_use_checklst"
9876
9877           if test x"$enablestring" = xdisable; then
9878             if test $wxUSE_CHECKLST = yes; then
9879               result=no
9880             else
9881               result=yes
9882             fi
9883           else
9884             result=$wxUSE_CHECKLST
9885           fi
9886
9887           { echo "$as_me:$LINENO: result: $result" >&5
9888 echo "${ECHO_T}$result" >&6; }
9889
9890
9891           enablestring=
9892           defaultval=$wxUSE_ALL_FEATURES
9893           if test -z "$defaultval"; then
9894               if test x"$enablestring" = xdisable; then
9895                   defaultval=yes
9896               else
9897                   defaultval=no
9898               fi
9899           fi
9900
9901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9902 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9903           # Check whether --enable-choice was given.
9904 if test "${enable_choice+set}" = set; then
9905   enableval=$enable_choice;
9906                           if test "$enableval" = yes; then
9907                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9908                           else
9909                             wx_cv_use_choice='wxUSE_CHOICE=no'
9910                           fi
9911
9912 else
9913
9914                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9915
9916 fi
9917
9918
9919           eval "$wx_cv_use_choice"
9920
9921           if test x"$enablestring" = xdisable; then
9922             if test $wxUSE_CHOICE = yes; then
9923               result=no
9924             else
9925               result=yes
9926             fi
9927           else
9928             result=$wxUSE_CHOICE
9929           fi
9930
9931           { echo "$as_me:$LINENO: result: $result" >&5
9932 echo "${ECHO_T}$result" >&6; }
9933
9934
9935           enablestring=
9936           defaultval=$wxUSE_ALL_FEATURES
9937           if test -z "$defaultval"; then
9938               if test x"$enablestring" = xdisable; then
9939                   defaultval=yes
9940               else
9941                   defaultval=no
9942               fi
9943           fi
9944
9945           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9946 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9947           # Check whether --enable-choicebook was given.
9948 if test "${enable_choicebook+set}" = set; then
9949   enableval=$enable_choicebook;
9950                           if test "$enableval" = yes; then
9951                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9952                           else
9953                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9954                           fi
9955
9956 else
9957
9958                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9959
9960 fi
9961
9962
9963           eval "$wx_cv_use_choicebook"
9964
9965           if test x"$enablestring" = xdisable; then
9966             if test $wxUSE_CHOICEBOOK = yes; then
9967               result=no
9968             else
9969               result=yes
9970             fi
9971           else
9972             result=$wxUSE_CHOICEBOOK
9973           fi
9974
9975           { echo "$as_me:$LINENO: result: $result" >&5
9976 echo "${ECHO_T}$result" >&6; }
9977
9978
9979           enablestring=
9980           defaultval=$wxUSE_ALL_FEATURES
9981           if test -z "$defaultval"; then
9982               if test x"$enablestring" = xdisable; then
9983                   defaultval=yes
9984               else
9985                   defaultval=no
9986               fi
9987           fi
9988
9989           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9990 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9991           # Check whether --enable-collpane was given.
9992 if test "${enable_collpane+set}" = set; then
9993   enableval=$enable_collpane;
9994                           if test "$enableval" = yes; then
9995                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9996                           else
9997                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9998                           fi
9999
10000 else
10001
10002                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10003
10004 fi
10005
10006
10007           eval "$wx_cv_use_collpane"
10008
10009           if test x"$enablestring" = xdisable; then
10010             if test $wxUSE_COLLPANE = yes; then
10011               result=no
10012             else
10013               result=yes
10014             fi
10015           else
10016             result=$wxUSE_COLLPANE
10017           fi
10018
10019           { echo "$as_me:$LINENO: result: $result" >&5
10020 echo "${ECHO_T}$result" >&6; }
10021
10022
10023           enablestring=
10024           defaultval=$wxUSE_ALL_FEATURES
10025           if test -z "$defaultval"; then
10026               if test x"$enablestring" = xdisable; then
10027                   defaultval=yes
10028               else
10029                   defaultval=no
10030               fi
10031           fi
10032
10033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10034 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10035           # Check whether --enable-colourpicker was given.
10036 if test "${enable_colourpicker+set}" = set; then
10037   enableval=$enable_colourpicker;
10038                           if test "$enableval" = yes; then
10039                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10040                           else
10041                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10042                           fi
10043
10044 else
10045
10046                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10047
10048 fi
10049
10050
10051           eval "$wx_cv_use_colourpicker"
10052
10053           if test x"$enablestring" = xdisable; then
10054             if test $wxUSE_COLOURPICKERCTRL = yes; then
10055               result=no
10056             else
10057               result=yes
10058             fi
10059           else
10060             result=$wxUSE_COLOURPICKERCTRL
10061           fi
10062
10063           { echo "$as_me:$LINENO: result: $result" >&5
10064 echo "${ECHO_T}$result" >&6; }
10065
10066
10067           enablestring=
10068           defaultval=$wxUSE_ALL_FEATURES
10069           if test -z "$defaultval"; then
10070               if test x"$enablestring" = xdisable; then
10071                   defaultval=yes
10072               else
10073                   defaultval=no
10074               fi
10075           fi
10076
10077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10078 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10079           # Check whether --enable-combobox was given.
10080 if test "${enable_combobox+set}" = set; then
10081   enableval=$enable_combobox;
10082                           if test "$enableval" = yes; then
10083                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10084                           else
10085                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10086                           fi
10087
10088 else
10089
10090                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10091
10092 fi
10093
10094
10095           eval "$wx_cv_use_combobox"
10096
10097           if test x"$enablestring" = xdisable; then
10098             if test $wxUSE_COMBOBOX = yes; then
10099               result=no
10100             else
10101               result=yes
10102             fi
10103           else
10104             result=$wxUSE_COMBOBOX
10105           fi
10106
10107           { echo "$as_me:$LINENO: result: $result" >&5
10108 echo "${ECHO_T}$result" >&6; }
10109
10110
10111           enablestring=
10112           defaultval=$wxUSE_ALL_FEATURES
10113           if test -z "$defaultval"; then
10114               if test x"$enablestring" = xdisable; then
10115                   defaultval=yes
10116               else
10117                   defaultval=no
10118               fi
10119           fi
10120
10121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10122 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10123           # Check whether --enable-comboctrl was given.
10124 if test "${enable_comboctrl+set}" = set; then
10125   enableval=$enable_comboctrl;
10126                           if test "$enableval" = yes; then
10127                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10128                           else
10129                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10130                           fi
10131
10132 else
10133
10134                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10135
10136 fi
10137
10138
10139           eval "$wx_cv_use_comboctrl"
10140
10141           if test x"$enablestring" = xdisable; then
10142             if test $wxUSE_COMBOCTRL = yes; then
10143               result=no
10144             else
10145               result=yes
10146             fi
10147           else
10148             result=$wxUSE_COMBOCTRL
10149           fi
10150
10151           { echo "$as_me:$LINENO: result: $result" >&5
10152 echo "${ECHO_T}$result" >&6; }
10153
10154
10155           enablestring=
10156           defaultval=$wxUSE_ALL_FEATURES
10157           if test -z "$defaultval"; then
10158               if test x"$enablestring" = xdisable; then
10159                   defaultval=yes
10160               else
10161                   defaultval=no
10162               fi
10163           fi
10164
10165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10166 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10167           # Check whether --enable-dataviewctrl was given.
10168 if test "${enable_dataviewctrl+set}" = set; then
10169   enableval=$enable_dataviewctrl;
10170                           if test "$enableval" = yes; then
10171                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10172                           else
10173                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10174                           fi
10175
10176 else
10177
10178                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10179
10180 fi
10181
10182
10183           eval "$wx_cv_use_dataviewctrl"
10184
10185           if test x"$enablestring" = xdisable; then
10186             if test $wxUSE_DATAVIEWCTRL = yes; then
10187               result=no
10188             else
10189               result=yes
10190             fi
10191           else
10192             result=$wxUSE_DATAVIEWCTRL
10193           fi
10194
10195           { echo "$as_me:$LINENO: result: $result" >&5
10196 echo "${ECHO_T}$result" >&6; }
10197
10198
10199           enablestring=
10200           defaultval=$wxUSE_ALL_FEATURES
10201           if test -z "$defaultval"; then
10202               if test x"$enablestring" = xdisable; then
10203                   defaultval=yes
10204               else
10205                   defaultval=no
10206               fi
10207           fi
10208
10209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10210 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10211           # Check whether --enable-datepick was given.
10212 if test "${enable_datepick+set}" = set; then
10213   enableval=$enable_datepick;
10214                           if test "$enableval" = yes; then
10215                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10216                           else
10217                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10218                           fi
10219
10220 else
10221
10222                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10223
10224 fi
10225
10226
10227           eval "$wx_cv_use_datepick"
10228
10229           if test x"$enablestring" = xdisable; then
10230             if test $wxUSE_DATEPICKCTRL = yes; then
10231               result=no
10232             else
10233               result=yes
10234             fi
10235           else
10236             result=$wxUSE_DATEPICKCTRL
10237           fi
10238
10239           { echo "$as_me:$LINENO: result: $result" >&5
10240 echo "${ECHO_T}$result" >&6; }
10241
10242
10243           enablestring=
10244           defaultval=$wxUSE_ALL_FEATURES
10245           if test -z "$defaultval"; then
10246               if test x"$enablestring" = xdisable; then
10247                   defaultval=yes
10248               else
10249                   defaultval=no
10250               fi
10251           fi
10252
10253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10254 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10255           # Check whether --enable-detect_sm was given.
10256 if test "${enable_detect_sm+set}" = set; then
10257   enableval=$enable_detect_sm;
10258                           if test "$enableval" = yes; then
10259                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10260                           else
10261                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10262                           fi
10263
10264 else
10265
10266                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10267
10268 fi
10269
10270
10271           eval "$wx_cv_use_detect_sm"
10272
10273           if test x"$enablestring" = xdisable; then
10274             if test $wxUSE_DETECT_SM = yes; then
10275               result=no
10276             else
10277               result=yes
10278             fi
10279           else
10280             result=$wxUSE_DETECT_SM
10281           fi
10282
10283           { echo "$as_me:$LINENO: result: $result" >&5
10284 echo "${ECHO_T}$result" >&6; }
10285
10286
10287           enablestring=
10288           defaultval=$wxUSE_ALL_FEATURES
10289           if test -z "$defaultval"; then
10290               if test x"$enablestring" = xdisable; then
10291                   defaultval=yes
10292               else
10293                   defaultval=no
10294               fi
10295           fi
10296
10297           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10298 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10299           # Check whether --enable-dirpicker was given.
10300 if test "${enable_dirpicker+set}" = set; then
10301   enableval=$enable_dirpicker;
10302                           if test "$enableval" = yes; then
10303                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10304                           else
10305                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10306                           fi
10307
10308 else
10309
10310                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10311
10312 fi
10313
10314
10315           eval "$wx_cv_use_dirpicker"
10316
10317           if test x"$enablestring" = xdisable; then
10318             if test $wxUSE_DIRPICKERCTRL = yes; then
10319               result=no
10320             else
10321               result=yes
10322             fi
10323           else
10324             result=$wxUSE_DIRPICKERCTRL
10325           fi
10326
10327           { echo "$as_me:$LINENO: result: $result" >&5
10328 echo "${ECHO_T}$result" >&6; }
10329
10330
10331           enablestring=
10332           defaultval=$wxUSE_ALL_FEATURES
10333           if test -z "$defaultval"; then
10334               if test x"$enablestring" = xdisable; then
10335                   defaultval=yes
10336               else
10337                   defaultval=no
10338               fi
10339           fi
10340
10341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10342 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10343           # Check whether --enable-display was given.
10344 if test "${enable_display+set}" = set; then
10345   enableval=$enable_display;
10346                           if test "$enableval" = yes; then
10347                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10348                           else
10349                             wx_cv_use_display='wxUSE_DISPLAY=no'
10350                           fi
10351
10352 else
10353
10354                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10355
10356 fi
10357
10358
10359           eval "$wx_cv_use_display"
10360
10361           if test x"$enablestring" = xdisable; then
10362             if test $wxUSE_DISPLAY = yes; then
10363               result=no
10364             else
10365               result=yes
10366             fi
10367           else
10368             result=$wxUSE_DISPLAY
10369           fi
10370
10371           { echo "$as_me:$LINENO: result: $result" >&5
10372 echo "${ECHO_T}$result" >&6; }
10373
10374
10375           enablestring=
10376           defaultval=$wxUSE_ALL_FEATURES
10377           if test -z "$defaultval"; then
10378               if test x"$enablestring" = xdisable; then
10379                   defaultval=yes
10380               else
10381                   defaultval=no
10382               fi
10383           fi
10384
10385           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10386 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10387           # Check whether --enable-editablebox was given.
10388 if test "${enable_editablebox+set}" = set; then
10389   enableval=$enable_editablebox;
10390                           if test "$enableval" = yes; then
10391                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10392                           else
10393                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10394                           fi
10395
10396 else
10397
10398                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10399
10400 fi
10401
10402
10403           eval "$wx_cv_use_editablebox"
10404
10405           if test x"$enablestring" = xdisable; then
10406             if test $wxUSE_EDITABLELISTBOX = yes; then
10407               result=no
10408             else
10409               result=yes
10410             fi
10411           else
10412             result=$wxUSE_EDITABLELISTBOX
10413           fi
10414
10415           { echo "$as_me:$LINENO: result: $result" >&5
10416 echo "${ECHO_T}$result" >&6; }
10417
10418
10419           enablestring=
10420           defaultval=$wxUSE_ALL_FEATURES
10421           if test -z "$defaultval"; then
10422               if test x"$enablestring" = xdisable; then
10423                   defaultval=yes
10424               else
10425                   defaultval=no
10426               fi
10427           fi
10428
10429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10430 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10431           # Check whether --enable-filectrl was given.
10432 if test "${enable_filectrl+set}" = set; then
10433   enableval=$enable_filectrl;
10434                           if test "$enableval" = yes; then
10435                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10436                           else
10437                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10438                           fi
10439
10440 else
10441
10442                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10443
10444 fi
10445
10446
10447           eval "$wx_cv_use_filectrl"
10448
10449           if test x"$enablestring" = xdisable; then
10450             if test $wxUSE_FILECTRL = yes; then
10451               result=no
10452             else
10453               result=yes
10454             fi
10455           else
10456             result=$wxUSE_FILECTRL
10457           fi
10458
10459           { echo "$as_me:$LINENO: result: $result" >&5
10460 echo "${ECHO_T}$result" >&6; }
10461
10462
10463           enablestring=
10464           defaultval=$wxUSE_ALL_FEATURES
10465           if test -z "$defaultval"; then
10466               if test x"$enablestring" = xdisable; then
10467                   defaultval=yes
10468               else
10469                   defaultval=no
10470               fi
10471           fi
10472
10473           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10474 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10475           # Check whether --enable-filepicker was given.
10476 if test "${enable_filepicker+set}" = set; then
10477   enableval=$enable_filepicker;
10478                           if test "$enableval" = yes; then
10479                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10480                           else
10481                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10482                           fi
10483
10484 else
10485
10486                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10487
10488 fi
10489
10490
10491           eval "$wx_cv_use_filepicker"
10492
10493           if test x"$enablestring" = xdisable; then
10494             if test $wxUSE_FILEPICKERCTRL = yes; then
10495               result=no
10496             else
10497               result=yes
10498             fi
10499           else
10500             result=$wxUSE_FILEPICKERCTRL
10501           fi
10502
10503           { echo "$as_me:$LINENO: result: $result" >&5
10504 echo "${ECHO_T}$result" >&6; }
10505
10506
10507           enablestring=
10508           defaultval=$wxUSE_ALL_FEATURES
10509           if test -z "$defaultval"; then
10510               if test x"$enablestring" = xdisable; then
10511                   defaultval=yes
10512               else
10513                   defaultval=no
10514               fi
10515           fi
10516
10517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10518 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10519           # Check whether --enable-fontpicker was given.
10520 if test "${enable_fontpicker+set}" = set; then
10521   enableval=$enable_fontpicker;
10522                           if test "$enableval" = yes; then
10523                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10524                           else
10525                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10526                           fi
10527
10528 else
10529
10530                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10531
10532 fi
10533
10534
10535           eval "$wx_cv_use_fontpicker"
10536
10537           if test x"$enablestring" = xdisable; then
10538             if test $wxUSE_FONTPICKERCTRL = yes; then
10539               result=no
10540             else
10541               result=yes
10542             fi
10543           else
10544             result=$wxUSE_FONTPICKERCTRL
10545           fi
10546
10547           { echo "$as_me:$LINENO: result: $result" >&5
10548 echo "${ECHO_T}$result" >&6; }
10549
10550
10551           enablestring=
10552           defaultval=$wxUSE_ALL_FEATURES
10553           if test -z "$defaultval"; then
10554               if test x"$enablestring" = xdisable; then
10555                   defaultval=yes
10556               else
10557                   defaultval=no
10558               fi
10559           fi
10560
10561           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10562 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10563           # Check whether --enable-gauge was given.
10564 if test "${enable_gauge+set}" = set; then
10565   enableval=$enable_gauge;
10566                           if test "$enableval" = yes; then
10567                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10568                           else
10569                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10570                           fi
10571
10572 else
10573
10574                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10575
10576 fi
10577
10578
10579           eval "$wx_cv_use_gauge"
10580
10581           if test x"$enablestring" = xdisable; then
10582             if test $wxUSE_GAUGE = yes; then
10583               result=no
10584             else
10585               result=yes
10586             fi
10587           else
10588             result=$wxUSE_GAUGE
10589           fi
10590
10591           { echo "$as_me:$LINENO: result: $result" >&5
10592 echo "${ECHO_T}$result" >&6; }
10593
10594
10595           enablestring=
10596           defaultval=$wxUSE_ALL_FEATURES
10597           if test -z "$defaultval"; then
10598               if test x"$enablestring" = xdisable; then
10599                   defaultval=yes
10600               else
10601                   defaultval=no
10602               fi
10603           fi
10604
10605           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10606 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10607           # Check whether --enable-grid was given.
10608 if test "${enable_grid+set}" = set; then
10609   enableval=$enable_grid;
10610                           if test "$enableval" = yes; then
10611                             wx_cv_use_grid='wxUSE_GRID=yes'
10612                           else
10613                             wx_cv_use_grid='wxUSE_GRID=no'
10614                           fi
10615
10616 else
10617
10618                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10619
10620 fi
10621
10622
10623           eval "$wx_cv_use_grid"
10624
10625           if test x"$enablestring" = xdisable; then
10626             if test $wxUSE_GRID = yes; then
10627               result=no
10628             else
10629               result=yes
10630             fi
10631           else
10632             result=$wxUSE_GRID
10633           fi
10634
10635           { echo "$as_me:$LINENO: result: $result" >&5
10636 echo "${ECHO_T}$result" >&6; }
10637
10638
10639           enablestring=
10640           defaultval=$wxUSE_ALL_FEATURES
10641           if test -z "$defaultval"; then
10642               if test x"$enablestring" = xdisable; then
10643                   defaultval=yes
10644               else
10645                   defaultval=no
10646               fi
10647           fi
10648
10649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10650 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10651           # Check whether --enable-headerctrl was given.
10652 if test "${enable_headerctrl+set}" = set; then
10653   enableval=$enable_headerctrl;
10654                           if test "$enableval" = yes; then
10655                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10656                           else
10657                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10658                           fi
10659
10660 else
10661
10662                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10663
10664 fi
10665
10666
10667           eval "$wx_cv_use_headerctrl"
10668
10669           if test x"$enablestring" = xdisable; then
10670             if test $wxUSE_HEADERCTRL = yes; then
10671               result=no
10672             else
10673               result=yes
10674             fi
10675           else
10676             result=$wxUSE_HEADERCTRL
10677           fi
10678
10679           { echo "$as_me:$LINENO: result: $result" >&5
10680 echo "${ECHO_T}$result" >&6; }
10681
10682
10683           enablestring=
10684           defaultval=$wxUSE_ALL_FEATURES
10685           if test -z "$defaultval"; then
10686               if test x"$enablestring" = xdisable; then
10687                   defaultval=yes
10688               else
10689                   defaultval=no
10690               fi
10691           fi
10692
10693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10694 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10695           # Check whether --enable-hyperlink was given.
10696 if test "${enable_hyperlink+set}" = set; then
10697   enableval=$enable_hyperlink;
10698                           if test "$enableval" = yes; then
10699                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10700                           else
10701                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10702                           fi
10703
10704 else
10705
10706                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10707
10708 fi
10709
10710
10711           eval "$wx_cv_use_hyperlink"
10712
10713           if test x"$enablestring" = xdisable; then
10714             if test $wxUSE_HYPERLINKCTRL = yes; then
10715               result=no
10716             else
10717               result=yes
10718             fi
10719           else
10720             result=$wxUSE_HYPERLINKCTRL
10721           fi
10722
10723           { echo "$as_me:$LINENO: result: $result" >&5
10724 echo "${ECHO_T}$result" >&6; }
10725
10726
10727           enablestring=
10728           defaultval=$wxUSE_ALL_FEATURES
10729           if test -z "$defaultval"; then
10730               if test x"$enablestring" = xdisable; then
10731                   defaultval=yes
10732               else
10733                   defaultval=no
10734               fi
10735           fi
10736
10737           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10738 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10739           # Check whether --enable-imaglist was given.
10740 if test "${enable_imaglist+set}" = set; then
10741   enableval=$enable_imaglist;
10742                           if test "$enableval" = yes; then
10743                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10744                           else
10745                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10746                           fi
10747
10748 else
10749
10750                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10751
10752 fi
10753
10754
10755           eval "$wx_cv_use_imaglist"
10756
10757           if test x"$enablestring" = xdisable; then
10758             if test $wxUSE_IMAGLIST = yes; then
10759               result=no
10760             else
10761               result=yes
10762             fi
10763           else
10764             result=$wxUSE_IMAGLIST
10765           fi
10766
10767           { echo "$as_me:$LINENO: result: $result" >&5
10768 echo "${ECHO_T}$result" >&6; }
10769
10770
10771           enablestring=
10772           defaultval=$wxUSE_ALL_FEATURES
10773           if test -z "$defaultval"; then
10774               if test x"$enablestring" = xdisable; then
10775                   defaultval=yes
10776               else
10777                   defaultval=no
10778               fi
10779           fi
10780
10781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10782 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10783           # Check whether --enable-listbook was given.
10784 if test "${enable_listbook+set}" = set; then
10785   enableval=$enable_listbook;
10786                           if test "$enableval" = yes; then
10787                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10788                           else
10789                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10790                           fi
10791
10792 else
10793
10794                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10795
10796 fi
10797
10798
10799           eval "$wx_cv_use_listbook"
10800
10801           if test x"$enablestring" = xdisable; then
10802             if test $wxUSE_LISTBOOK = yes; then
10803               result=no
10804             else
10805               result=yes
10806             fi
10807           else
10808             result=$wxUSE_LISTBOOK
10809           fi
10810
10811           { echo "$as_me:$LINENO: result: $result" >&5
10812 echo "${ECHO_T}$result" >&6; }
10813
10814
10815           enablestring=
10816           defaultval=$wxUSE_ALL_FEATURES
10817           if test -z "$defaultval"; then
10818               if test x"$enablestring" = xdisable; then
10819                   defaultval=yes
10820               else
10821                   defaultval=no
10822               fi
10823           fi
10824
10825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10826 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10827           # Check whether --enable-listbox was given.
10828 if test "${enable_listbox+set}" = set; then
10829   enableval=$enable_listbox;
10830                           if test "$enableval" = yes; then
10831                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10832                           else
10833                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10834                           fi
10835
10836 else
10837
10838                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10839
10840 fi
10841
10842
10843           eval "$wx_cv_use_listbox"
10844
10845           if test x"$enablestring" = xdisable; then
10846             if test $wxUSE_LISTBOX = yes; then
10847               result=no
10848             else
10849               result=yes
10850             fi
10851           else
10852             result=$wxUSE_LISTBOX
10853           fi
10854
10855           { echo "$as_me:$LINENO: result: $result" >&5
10856 echo "${ECHO_T}$result" >&6; }
10857
10858
10859           enablestring=
10860           defaultval=$wxUSE_ALL_FEATURES
10861           if test -z "$defaultval"; then
10862               if test x"$enablestring" = xdisable; then
10863                   defaultval=yes
10864               else
10865                   defaultval=no
10866               fi
10867           fi
10868
10869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10870 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10871           # Check whether --enable-listctrl was given.
10872 if test "${enable_listctrl+set}" = set; then
10873   enableval=$enable_listctrl;
10874                           if test "$enableval" = yes; then
10875                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10876                           else
10877                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10878                           fi
10879
10880 else
10881
10882                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10883
10884 fi
10885
10886
10887           eval "$wx_cv_use_listctrl"
10888
10889           if test x"$enablestring" = xdisable; then
10890             if test $wxUSE_LISTCTRL = yes; then
10891               result=no
10892             else
10893               result=yes
10894             fi
10895           else
10896             result=$wxUSE_LISTCTRL
10897           fi
10898
10899           { echo "$as_me:$LINENO: result: $result" >&5
10900 echo "${ECHO_T}$result" >&6; }
10901
10902
10903           enablestring=
10904           defaultval=$wxUSE_ALL_FEATURES
10905           if test -z "$defaultval"; then
10906               if test x"$enablestring" = xdisable; then
10907                   defaultval=yes
10908               else
10909                   defaultval=no
10910               fi
10911           fi
10912
10913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10914 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10915           # Check whether --enable-notebook was given.
10916 if test "${enable_notebook+set}" = set; then
10917   enableval=$enable_notebook;
10918                           if test "$enableval" = yes; then
10919                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10920                           else
10921                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10922                           fi
10923
10924 else
10925
10926                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10927
10928 fi
10929
10930
10931           eval "$wx_cv_use_notebook"
10932
10933           if test x"$enablestring" = xdisable; then
10934             if test $wxUSE_NOTEBOOK = yes; then
10935               result=no
10936             else
10937               result=yes
10938             fi
10939           else
10940             result=$wxUSE_NOTEBOOK
10941           fi
10942
10943           { echo "$as_me:$LINENO: result: $result" >&5
10944 echo "${ECHO_T}$result" >&6; }
10945
10946
10947           enablestring=
10948           defaultval=$wxUSE_ALL_FEATURES
10949           if test -z "$defaultval"; then
10950               if test x"$enablestring" = xdisable; then
10951                   defaultval=yes
10952               else
10953                   defaultval=no
10954               fi
10955           fi
10956
10957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10958 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10959           # Check whether --enable-notifmsg was given.
10960 if test "${enable_notifmsg+set}" = set; then
10961   enableval=$enable_notifmsg;
10962                           if test "$enableval" = yes; then
10963                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10964                           else
10965                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10966                           fi
10967
10968 else
10969
10970                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10971
10972 fi
10973
10974
10975           eval "$wx_cv_use_notifmsg"
10976
10977           if test x"$enablestring" = xdisable; then
10978             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10979               result=no
10980             else
10981               result=yes
10982             fi
10983           else
10984             result=$wxUSE_NOTIFICATION_MESSAGE
10985           fi
10986
10987           { echo "$as_me:$LINENO: result: $result" >&5
10988 echo "${ECHO_T}$result" >&6; }
10989
10990
10991           enablestring=
10992           defaultval=$wxUSE_ALL_FEATURES
10993           if test -z "$defaultval"; then
10994               if test x"$enablestring" = xdisable; then
10995                   defaultval=yes
10996               else
10997                   defaultval=no
10998               fi
10999           fi
11000
11001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11002 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11003           # Check whether --enable-odcombobox was given.
11004 if test "${enable_odcombobox+set}" = set; then
11005   enableval=$enable_odcombobox;
11006                           if test "$enableval" = yes; then
11007                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11008                           else
11009                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11010                           fi
11011
11012 else
11013
11014                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11015
11016 fi
11017
11018
11019           eval "$wx_cv_use_odcombobox"
11020
11021           if test x"$enablestring" = xdisable; then
11022             if test $wxUSE_ODCOMBOBOX = yes; then
11023               result=no
11024             else
11025               result=yes
11026             fi
11027           else
11028             result=$wxUSE_ODCOMBOBOX
11029           fi
11030
11031           { echo "$as_me:$LINENO: result: $result" >&5
11032 echo "${ECHO_T}$result" >&6; }
11033
11034
11035           enablestring=
11036           defaultval=$wxUSE_ALL_FEATURES
11037           if test -z "$defaultval"; then
11038               if test x"$enablestring" = xdisable; then
11039                   defaultval=yes
11040               else
11041                   defaultval=no
11042               fi
11043           fi
11044
11045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11046 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11047           # Check whether --enable-popupwin was given.
11048 if test "${enable_popupwin+set}" = set; then
11049   enableval=$enable_popupwin;
11050                           if test "$enableval" = yes; then
11051                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11052                           else
11053                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11054                           fi
11055
11056 else
11057
11058                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11059
11060 fi
11061
11062
11063           eval "$wx_cv_use_popupwin"
11064
11065           if test x"$enablestring" = xdisable; then
11066             if test $wxUSE_POPUPWIN = yes; then
11067               result=no
11068             else
11069               result=yes
11070             fi
11071           else
11072             result=$wxUSE_POPUPWIN
11073           fi
11074
11075           { echo "$as_me:$LINENO: result: $result" >&5
11076 echo "${ECHO_T}$result" >&6; }
11077
11078
11079           enablestring=
11080           defaultval=$wxUSE_ALL_FEATURES
11081           if test -z "$defaultval"; then
11082               if test x"$enablestring" = xdisable; then
11083                   defaultval=yes
11084               else
11085                   defaultval=no
11086               fi
11087           fi
11088
11089           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11090 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11091           # Check whether --enable-radiobox was given.
11092 if test "${enable_radiobox+set}" = set; then
11093   enableval=$enable_radiobox;
11094                           if test "$enableval" = yes; then
11095                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11096                           else
11097                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11098                           fi
11099
11100 else
11101
11102                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11103
11104 fi
11105
11106
11107           eval "$wx_cv_use_radiobox"
11108
11109           if test x"$enablestring" = xdisable; then
11110             if test $wxUSE_RADIOBOX = yes; then
11111               result=no
11112             else
11113               result=yes
11114             fi
11115           else
11116             result=$wxUSE_RADIOBOX
11117           fi
11118
11119           { echo "$as_me:$LINENO: result: $result" >&5
11120 echo "${ECHO_T}$result" >&6; }
11121
11122
11123           enablestring=
11124           defaultval=$wxUSE_ALL_FEATURES
11125           if test -z "$defaultval"; then
11126               if test x"$enablestring" = xdisable; then
11127                   defaultval=yes
11128               else
11129                   defaultval=no
11130               fi
11131           fi
11132
11133           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11134 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11135           # Check whether --enable-radiobtn was given.
11136 if test "${enable_radiobtn+set}" = set; then
11137   enableval=$enable_radiobtn;
11138                           if test "$enableval" = yes; then
11139                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11140                           else
11141                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11142                           fi
11143
11144 else
11145
11146                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11147
11148 fi
11149
11150
11151           eval "$wx_cv_use_radiobtn"
11152
11153           if test x"$enablestring" = xdisable; then
11154             if test $wxUSE_RADIOBTN = yes; then
11155               result=no
11156             else
11157               result=yes
11158             fi
11159           else
11160             result=$wxUSE_RADIOBTN
11161           fi
11162
11163           { echo "$as_me:$LINENO: result: $result" >&5
11164 echo "${ECHO_T}$result" >&6; }
11165
11166
11167           enablestring=
11168           defaultval=$wxUSE_ALL_FEATURES
11169           if test -z "$defaultval"; then
11170               if test x"$enablestring" = xdisable; then
11171                   defaultval=yes
11172               else
11173                   defaultval=no
11174               fi
11175           fi
11176
11177           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11178 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11179           # Check whether --enable-rearrangectrl was given.
11180 if test "${enable_rearrangectrl+set}" = set; then
11181   enableval=$enable_rearrangectrl;
11182                           if test "$enableval" = yes; then
11183                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11184                           else
11185                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11186                           fi
11187
11188 else
11189
11190                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11191
11192 fi
11193
11194
11195           eval "$wx_cv_use_rearrangectrl"
11196
11197           if test x"$enablestring" = xdisable; then
11198             if test $wxUSE_REARRANGECTRL = yes; then
11199               result=no
11200             else
11201               result=yes
11202             fi
11203           else
11204             result=$wxUSE_REARRANGECTRL
11205           fi
11206
11207           { echo "$as_me:$LINENO: result: $result" >&5
11208 echo "${ECHO_T}$result" >&6; }
11209
11210
11211           enablestring=
11212           defaultval=$wxUSE_ALL_FEATURES
11213           if test -z "$defaultval"; then
11214               if test x"$enablestring" = xdisable; then
11215                   defaultval=yes
11216               else
11217                   defaultval=no
11218               fi
11219           fi
11220
11221           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11222 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11223           # Check whether --enable-sash was given.
11224 if test "${enable_sash+set}" = set; then
11225   enableval=$enable_sash;
11226                           if test "$enableval" = yes; then
11227                             wx_cv_use_sash='wxUSE_SASH=yes'
11228                           else
11229                             wx_cv_use_sash='wxUSE_SASH=no'
11230                           fi
11231
11232 else
11233
11234                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11235
11236 fi
11237
11238
11239           eval "$wx_cv_use_sash"
11240
11241           if test x"$enablestring" = xdisable; then
11242             if test $wxUSE_SASH = yes; then
11243               result=no
11244             else
11245               result=yes
11246             fi
11247           else
11248             result=$wxUSE_SASH
11249           fi
11250
11251           { echo "$as_me:$LINENO: result: $result" >&5
11252 echo "${ECHO_T}$result" >&6; }
11253
11254
11255           enablestring=
11256           defaultval=$wxUSE_ALL_FEATURES
11257           if test -z "$defaultval"; then
11258               if test x"$enablestring" = xdisable; then
11259                   defaultval=yes
11260               else
11261                   defaultval=no
11262               fi
11263           fi
11264
11265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11266 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11267           # Check whether --enable-scrollbar was given.
11268 if test "${enable_scrollbar+set}" = set; then
11269   enableval=$enable_scrollbar;
11270                           if test "$enableval" = yes; then
11271                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11272                           else
11273                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11274                           fi
11275
11276 else
11277
11278                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11279
11280 fi
11281
11282
11283           eval "$wx_cv_use_scrollbar"
11284
11285           if test x"$enablestring" = xdisable; then
11286             if test $wxUSE_SCROLLBAR = yes; then
11287               result=no
11288             else
11289               result=yes
11290             fi
11291           else
11292             result=$wxUSE_SCROLLBAR
11293           fi
11294
11295           { echo "$as_me:$LINENO: result: $result" >&5
11296 echo "${ECHO_T}$result" >&6; }
11297
11298
11299           enablestring=
11300           defaultval=$wxUSE_ALL_FEATURES
11301           if test -z "$defaultval"; then
11302               if test x"$enablestring" = xdisable; then
11303                   defaultval=yes
11304               else
11305                   defaultval=no
11306               fi
11307           fi
11308
11309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11310 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11311           # Check whether --enable-searchctrl was given.
11312 if test "${enable_searchctrl+set}" = set; then
11313   enableval=$enable_searchctrl;
11314                           if test "$enableval" = yes; then
11315                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11316                           else
11317                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11318                           fi
11319
11320 else
11321
11322                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11323
11324 fi
11325
11326
11327           eval "$wx_cv_use_searchctrl"
11328
11329           if test x"$enablestring" = xdisable; then
11330             if test $wxUSE_SEARCHCTRL = yes; then
11331               result=no
11332             else
11333               result=yes
11334             fi
11335           else
11336             result=$wxUSE_SEARCHCTRL
11337           fi
11338
11339           { echo "$as_me:$LINENO: result: $result" >&5
11340 echo "${ECHO_T}$result" >&6; }
11341
11342
11343           enablestring=
11344           defaultval=$wxUSE_ALL_FEATURES
11345           if test -z "$defaultval"; then
11346               if test x"$enablestring" = xdisable; then
11347                   defaultval=yes
11348               else
11349                   defaultval=no
11350               fi
11351           fi
11352
11353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11354 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11355           # Check whether --enable-slider was given.
11356 if test "${enable_slider+set}" = set; then
11357   enableval=$enable_slider;
11358                           if test "$enableval" = yes; then
11359                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11360                           else
11361                             wx_cv_use_slider='wxUSE_SLIDER=no'
11362                           fi
11363
11364 else
11365
11366                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11367
11368 fi
11369
11370
11371           eval "$wx_cv_use_slider"
11372
11373           if test x"$enablestring" = xdisable; then
11374             if test $wxUSE_SLIDER = yes; then
11375               result=no
11376             else
11377               result=yes
11378             fi
11379           else
11380             result=$wxUSE_SLIDER
11381           fi
11382
11383           { echo "$as_me:$LINENO: result: $result" >&5
11384 echo "${ECHO_T}$result" >&6; }
11385
11386
11387           enablestring=
11388           defaultval=$wxUSE_ALL_FEATURES
11389           if test -z "$defaultval"; then
11390               if test x"$enablestring" = xdisable; then
11391                   defaultval=yes
11392               else
11393                   defaultval=no
11394               fi
11395           fi
11396
11397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11398 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11399           # Check whether --enable-spinbtn was given.
11400 if test "${enable_spinbtn+set}" = set; then
11401   enableval=$enable_spinbtn;
11402                           if test "$enableval" = yes; then
11403                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11404                           else
11405                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11406                           fi
11407
11408 else
11409
11410                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11411
11412 fi
11413
11414
11415           eval "$wx_cv_use_spinbtn"
11416
11417           if test x"$enablestring" = xdisable; then
11418             if test $wxUSE_SPINBTN = yes; then
11419               result=no
11420             else
11421               result=yes
11422             fi
11423           else
11424             result=$wxUSE_SPINBTN
11425           fi
11426
11427           { echo "$as_me:$LINENO: result: $result" >&5
11428 echo "${ECHO_T}$result" >&6; }
11429
11430
11431           enablestring=
11432           defaultval=$wxUSE_ALL_FEATURES
11433           if test -z "$defaultval"; then
11434               if test x"$enablestring" = xdisable; then
11435                   defaultval=yes
11436               else
11437                   defaultval=no
11438               fi
11439           fi
11440
11441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11442 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11443           # Check whether --enable-spinctrl was given.
11444 if test "${enable_spinctrl+set}" = set; then
11445   enableval=$enable_spinctrl;
11446                           if test "$enableval" = yes; then
11447                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11448                           else
11449                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11450                           fi
11451
11452 else
11453
11454                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11455
11456 fi
11457
11458
11459           eval "$wx_cv_use_spinctrl"
11460
11461           if test x"$enablestring" = xdisable; then
11462             if test $wxUSE_SPINCTRL = yes; then
11463               result=no
11464             else
11465               result=yes
11466             fi
11467           else
11468             result=$wxUSE_SPINCTRL
11469           fi
11470
11471           { echo "$as_me:$LINENO: result: $result" >&5
11472 echo "${ECHO_T}$result" >&6; }
11473
11474
11475           enablestring=
11476           defaultval=$wxUSE_ALL_FEATURES
11477           if test -z "$defaultval"; then
11478               if test x"$enablestring" = xdisable; then
11479                   defaultval=yes
11480               else
11481                   defaultval=no
11482               fi
11483           fi
11484
11485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11486 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11487           # Check whether --enable-splitter was given.
11488 if test "${enable_splitter+set}" = set; then
11489   enableval=$enable_splitter;
11490                           if test "$enableval" = yes; then
11491                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11492                           else
11493                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11494                           fi
11495
11496 else
11497
11498                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11499
11500 fi
11501
11502
11503           eval "$wx_cv_use_splitter"
11504
11505           if test x"$enablestring" = xdisable; then
11506             if test $wxUSE_SPLITTER = yes; then
11507               result=no
11508             else
11509               result=yes
11510             fi
11511           else
11512             result=$wxUSE_SPLITTER
11513           fi
11514
11515           { echo "$as_me:$LINENO: result: $result" >&5
11516 echo "${ECHO_T}$result" >&6; }
11517
11518
11519           enablestring=
11520           defaultval=$wxUSE_ALL_FEATURES
11521           if test -z "$defaultval"; then
11522               if test x"$enablestring" = xdisable; then
11523                   defaultval=yes
11524               else
11525                   defaultval=no
11526               fi
11527           fi
11528
11529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11530 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11531           # Check whether --enable-statbmp was given.
11532 if test "${enable_statbmp+set}" = set; then
11533   enableval=$enable_statbmp;
11534                           if test "$enableval" = yes; then
11535                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11536                           else
11537                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11538                           fi
11539
11540 else
11541
11542                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11543
11544 fi
11545
11546
11547           eval "$wx_cv_use_statbmp"
11548
11549           if test x"$enablestring" = xdisable; then
11550             if test $wxUSE_STATBMP = yes; then
11551               result=no
11552             else
11553               result=yes
11554             fi
11555           else
11556             result=$wxUSE_STATBMP
11557           fi
11558
11559           { echo "$as_me:$LINENO: result: $result" >&5
11560 echo "${ECHO_T}$result" >&6; }
11561
11562
11563           enablestring=
11564           defaultval=$wxUSE_ALL_FEATURES
11565           if test -z "$defaultval"; then
11566               if test x"$enablestring" = xdisable; then
11567                   defaultval=yes
11568               else
11569                   defaultval=no
11570               fi
11571           fi
11572
11573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11574 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11575           # Check whether --enable-statbox was given.
11576 if test "${enable_statbox+set}" = set; then
11577   enableval=$enable_statbox;
11578                           if test "$enableval" = yes; then
11579                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11580                           else
11581                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11582                           fi
11583
11584 else
11585
11586                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11587
11588 fi
11589
11590
11591           eval "$wx_cv_use_statbox"
11592
11593           if test x"$enablestring" = xdisable; then
11594             if test $wxUSE_STATBOX = yes; then
11595               result=no
11596             else
11597               result=yes
11598             fi
11599           else
11600             result=$wxUSE_STATBOX
11601           fi
11602
11603           { echo "$as_me:$LINENO: result: $result" >&5
11604 echo "${ECHO_T}$result" >&6; }
11605
11606
11607           enablestring=
11608           defaultval=$wxUSE_ALL_FEATURES
11609           if test -z "$defaultval"; then
11610               if test x"$enablestring" = xdisable; then
11611                   defaultval=yes
11612               else
11613                   defaultval=no
11614               fi
11615           fi
11616
11617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11618 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11619           # Check whether --enable-statline was given.
11620 if test "${enable_statline+set}" = set; then
11621   enableval=$enable_statline;
11622                           if test "$enableval" = yes; then
11623                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11624                           else
11625                             wx_cv_use_statline='wxUSE_STATLINE=no'
11626                           fi
11627
11628 else
11629
11630                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11631
11632 fi
11633
11634
11635           eval "$wx_cv_use_statline"
11636
11637           if test x"$enablestring" = xdisable; then
11638             if test $wxUSE_STATLINE = yes; then
11639               result=no
11640             else
11641               result=yes
11642             fi
11643           else
11644             result=$wxUSE_STATLINE
11645           fi
11646
11647           { echo "$as_me:$LINENO: result: $result" >&5
11648 echo "${ECHO_T}$result" >&6; }
11649
11650
11651           enablestring=
11652           defaultval=$wxUSE_ALL_FEATURES
11653           if test -z "$defaultval"; then
11654               if test x"$enablestring" = xdisable; then
11655                   defaultval=yes
11656               else
11657                   defaultval=no
11658               fi
11659           fi
11660
11661           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11662 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11663           # Check whether --enable-stattext was given.
11664 if test "${enable_stattext+set}" = set; then
11665   enableval=$enable_stattext;
11666                           if test "$enableval" = yes; then
11667                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11668                           else
11669                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11670                           fi
11671
11672 else
11673
11674                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11675
11676 fi
11677
11678
11679           eval "$wx_cv_use_stattext"
11680
11681           if test x"$enablestring" = xdisable; then
11682             if test $wxUSE_STATTEXT = yes; then
11683               result=no
11684             else
11685               result=yes
11686             fi
11687           else
11688             result=$wxUSE_STATTEXT
11689           fi
11690
11691           { echo "$as_me:$LINENO: result: $result" >&5
11692 echo "${ECHO_T}$result" >&6; }
11693
11694
11695           enablestring=
11696           defaultval=$wxUSE_ALL_FEATURES
11697           if test -z "$defaultval"; then
11698               if test x"$enablestring" = xdisable; then
11699                   defaultval=yes
11700               else
11701                   defaultval=no
11702               fi
11703           fi
11704
11705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11706 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11707           # Check whether --enable-statusbar was given.
11708 if test "${enable_statusbar+set}" = set; then
11709   enableval=$enable_statusbar;
11710                           if test "$enableval" = yes; then
11711                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11712                           else
11713                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11714                           fi
11715
11716 else
11717
11718                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11719
11720 fi
11721
11722
11723           eval "$wx_cv_use_statusbar"
11724
11725           if test x"$enablestring" = xdisable; then
11726             if test $wxUSE_STATUSBAR = yes; then
11727               result=no
11728             else
11729               result=yes
11730             fi
11731           else
11732             result=$wxUSE_STATUSBAR
11733           fi
11734
11735           { echo "$as_me:$LINENO: result: $result" >&5
11736 echo "${ECHO_T}$result" >&6; }
11737
11738
11739           enablestring=
11740           defaultval=$wxUSE_ALL_FEATURES
11741           if test -z "$defaultval"; then
11742               if test x"$enablestring" = xdisable; then
11743                   defaultval=yes
11744               else
11745                   defaultval=no
11746               fi
11747           fi
11748
11749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11750 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11751           # Check whether --enable-taskbaricon was given.
11752 if test "${enable_taskbaricon+set}" = set; then
11753   enableval=$enable_taskbaricon;
11754                           if test "$enableval" = yes; then
11755                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11756                           else
11757                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11758                           fi
11759
11760 else
11761
11762                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11763
11764 fi
11765
11766
11767           eval "$wx_cv_use_taskbaricon"
11768
11769           if test x"$enablestring" = xdisable; then
11770             if test $wxUSE_TASKBARICON = yes; then
11771               result=no
11772             else
11773               result=yes
11774             fi
11775           else
11776             result=$wxUSE_TASKBARICON
11777           fi
11778
11779           { echo "$as_me:$LINENO: result: $result" >&5
11780 echo "${ECHO_T}$result" >&6; }
11781
11782
11783           enablestring=
11784           defaultval=$wxUSE_ALL_FEATURES
11785           if test -z "$defaultval"; then
11786               if test x"$enablestring" = xdisable; then
11787                   defaultval=yes
11788               else
11789                   defaultval=no
11790               fi
11791           fi
11792
11793           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11794 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11795           # Check whether --enable-tbarnative was given.
11796 if test "${enable_tbarnative+set}" = set; then
11797   enableval=$enable_tbarnative;
11798                           if test "$enableval" = yes; then
11799                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11800                           else
11801                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11802                           fi
11803
11804 else
11805
11806                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11807
11808 fi
11809
11810
11811           eval "$wx_cv_use_tbarnative"
11812
11813           if test x"$enablestring" = xdisable; then
11814             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11815               result=no
11816             else
11817               result=yes
11818             fi
11819           else
11820             result=$wxUSE_TOOLBAR_NATIVE
11821           fi
11822
11823           { echo "$as_me:$LINENO: result: $result" >&5
11824 echo "${ECHO_T}$result" >&6; }
11825
11826
11827           enablestring=
11828           defaultval=$wxUSE_ALL_FEATURES
11829           if test -z "$defaultval"; then
11830               if test x"$enablestring" = xdisable; then
11831                   defaultval=yes
11832               else
11833                   defaultval=no
11834               fi
11835           fi
11836
11837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11838 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11839           # Check whether --enable-textctrl was given.
11840 if test "${enable_textctrl+set}" = set; then
11841   enableval=$enable_textctrl;
11842                           if test "$enableval" = yes; then
11843                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11844                           else
11845                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11846                           fi
11847
11848 else
11849
11850                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11851
11852 fi
11853
11854
11855           eval "$wx_cv_use_textctrl"
11856
11857           if test x"$enablestring" = xdisable; then
11858             if test $wxUSE_TEXTCTRL = yes; then
11859               result=no
11860             else
11861               result=yes
11862             fi
11863           else
11864             result=$wxUSE_TEXTCTRL
11865           fi
11866
11867           { echo "$as_me:$LINENO: result: $result" >&5
11868 echo "${ECHO_T}$result" >&6; }
11869
11870
11871           enablestring=
11872           defaultval=$wxUSE_ALL_FEATURES
11873           if test -z "$defaultval"; then
11874               if test x"$enablestring" = xdisable; then
11875                   defaultval=yes
11876               else
11877                   defaultval=no
11878               fi
11879           fi
11880
11881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11882 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11883           # Check whether --enable-tipwindow was given.
11884 if test "${enable_tipwindow+set}" = set; then
11885   enableval=$enable_tipwindow;
11886                           if test "$enableval" = yes; then
11887                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11888                           else
11889                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11890                           fi
11891
11892 else
11893
11894                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11895
11896 fi
11897
11898
11899           eval "$wx_cv_use_tipwindow"
11900
11901           if test x"$enablestring" = xdisable; then
11902             if test $wxUSE_TIPWINDOW = yes; then
11903               result=no
11904             else
11905               result=yes
11906             fi
11907           else
11908             result=$wxUSE_TIPWINDOW
11909           fi
11910
11911           { echo "$as_me:$LINENO: result: $result" >&5
11912 echo "${ECHO_T}$result" >&6; }
11913
11914
11915           enablestring=
11916           defaultval=$wxUSE_ALL_FEATURES
11917           if test -z "$defaultval"; then
11918               if test x"$enablestring" = xdisable; then
11919                   defaultval=yes
11920               else
11921                   defaultval=no
11922               fi
11923           fi
11924
11925           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11926 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11927           # Check whether --enable-togglebtn was given.
11928 if test "${enable_togglebtn+set}" = set; then
11929   enableval=$enable_togglebtn;
11930                           if test "$enableval" = yes; then
11931                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11932                           else
11933                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11934                           fi
11935
11936 else
11937
11938                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11939
11940 fi
11941
11942
11943           eval "$wx_cv_use_togglebtn"
11944
11945           if test x"$enablestring" = xdisable; then
11946             if test $wxUSE_TOGGLEBTN = yes; then
11947               result=no
11948             else
11949               result=yes
11950             fi
11951           else
11952             result=$wxUSE_TOGGLEBTN
11953           fi
11954
11955           { echo "$as_me:$LINENO: result: $result" >&5
11956 echo "${ECHO_T}$result" >&6; }
11957
11958
11959           enablestring=
11960           defaultval=$wxUSE_ALL_FEATURES
11961           if test -z "$defaultval"; then
11962               if test x"$enablestring" = xdisable; then
11963                   defaultval=yes
11964               else
11965                   defaultval=no
11966               fi
11967           fi
11968
11969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11970 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11971           # Check whether --enable-toolbar was given.
11972 if test "${enable_toolbar+set}" = set; then
11973   enableval=$enable_toolbar;
11974                           if test "$enableval" = yes; then
11975                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11976                           else
11977                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11978                           fi
11979
11980 else
11981
11982                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11983
11984 fi
11985
11986
11987           eval "$wx_cv_use_toolbar"
11988
11989           if test x"$enablestring" = xdisable; then
11990             if test $wxUSE_TOOLBAR = yes; then
11991               result=no
11992             else
11993               result=yes
11994             fi
11995           else
11996             result=$wxUSE_TOOLBAR
11997           fi
11998
11999           { echo "$as_me:$LINENO: result: $result" >&5
12000 echo "${ECHO_T}$result" >&6; }
12001
12002
12003           enablestring=
12004           defaultval=$wxUSE_ALL_FEATURES
12005           if test -z "$defaultval"; then
12006               if test x"$enablestring" = xdisable; then
12007                   defaultval=yes
12008               else
12009                   defaultval=no
12010               fi
12011           fi
12012
12013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12014 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12015           # Check whether --enable-toolbook was given.
12016 if test "${enable_toolbook+set}" = set; then
12017   enableval=$enable_toolbook;
12018                           if test "$enableval" = yes; then
12019                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12020                           else
12021                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12022                           fi
12023
12024 else
12025
12026                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12027
12028 fi
12029
12030
12031           eval "$wx_cv_use_toolbook"
12032
12033           if test x"$enablestring" = xdisable; then
12034             if test $wxUSE_TOOLBOOK = yes; then
12035               result=no
12036             else
12037               result=yes
12038             fi
12039           else
12040             result=$wxUSE_TOOLBOOK
12041           fi
12042
12043           { echo "$as_me:$LINENO: result: $result" >&5
12044 echo "${ECHO_T}$result" >&6; }
12045
12046
12047           enablestring=
12048           defaultval=$wxUSE_ALL_FEATURES
12049           if test -z "$defaultval"; then
12050               if test x"$enablestring" = xdisable; then
12051                   defaultval=yes
12052               else
12053                   defaultval=no
12054               fi
12055           fi
12056
12057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12058 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12059           # Check whether --enable-treebook was given.
12060 if test "${enable_treebook+set}" = set; then
12061   enableval=$enable_treebook;
12062                           if test "$enableval" = yes; then
12063                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12064                           else
12065                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12066                           fi
12067
12068 else
12069
12070                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12071
12072 fi
12073
12074
12075           eval "$wx_cv_use_treebook"
12076
12077           if test x"$enablestring" = xdisable; then
12078             if test $wxUSE_TREEBOOK = yes; then
12079               result=no
12080             else
12081               result=yes
12082             fi
12083           else
12084             result=$wxUSE_TREEBOOK
12085           fi
12086
12087           { echo "$as_me:$LINENO: result: $result" >&5
12088 echo "${ECHO_T}$result" >&6; }
12089
12090
12091           enablestring=
12092           defaultval=$wxUSE_ALL_FEATURES
12093           if test -z "$defaultval"; then
12094               if test x"$enablestring" = xdisable; then
12095                   defaultval=yes
12096               else
12097                   defaultval=no
12098               fi
12099           fi
12100
12101           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12102 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12103           # Check whether --enable-treectrl was given.
12104 if test "${enable_treectrl+set}" = set; then
12105   enableval=$enable_treectrl;
12106                           if test "$enableval" = yes; then
12107                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12108                           else
12109                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12110                           fi
12111
12112 else
12113
12114                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12115
12116 fi
12117
12118
12119           eval "$wx_cv_use_treectrl"
12120
12121           if test x"$enablestring" = xdisable; then
12122             if test $wxUSE_TREECTRL = yes; then
12123               result=no
12124             else
12125               result=yes
12126             fi
12127           else
12128             result=$wxUSE_TREECTRL
12129           fi
12130
12131           { echo "$as_me:$LINENO: result: $result" >&5
12132 echo "${ECHO_T}$result" >&6; }
12133
12134
12135
12136
12137           enablestring=
12138           defaultval=$wxUSE_ALL_FEATURES
12139           if test -z "$defaultval"; then
12140               if test x"$enablestring" = xdisable; then
12141                   defaultval=yes
12142               else
12143                   defaultval=no
12144               fi
12145           fi
12146
12147           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12148 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12149           # Check whether --enable-commondlg was given.
12150 if test "${enable_commondlg+set}" = set; then
12151   enableval=$enable_commondlg;
12152                           if test "$enableval" = yes; then
12153                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12154                           else
12155                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12156                           fi
12157
12158 else
12159
12160                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12161
12162 fi
12163
12164
12165           eval "$wx_cv_use_commondlg"
12166
12167           if test x"$enablestring" = xdisable; then
12168             if test $wxUSE_COMMONDLGS = yes; then
12169               result=no
12170             else
12171               result=yes
12172             fi
12173           else
12174             result=$wxUSE_COMMONDLGS
12175           fi
12176
12177           { echo "$as_me:$LINENO: result: $result" >&5
12178 echo "${ECHO_T}$result" >&6; }
12179
12180
12181           enablestring=
12182           defaultval=$wxUSE_ALL_FEATURES
12183           if test -z "$defaultval"; then
12184               if test x"$enablestring" = xdisable; then
12185                   defaultval=yes
12186               else
12187                   defaultval=no
12188               fi
12189           fi
12190
12191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12192 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12193           # Check whether --enable-aboutdlg was given.
12194 if test "${enable_aboutdlg+set}" = set; then
12195   enableval=$enable_aboutdlg;
12196                           if test "$enableval" = yes; then
12197                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12198                           else
12199                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12200                           fi
12201
12202 else
12203
12204                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12205
12206 fi
12207
12208
12209           eval "$wx_cv_use_aboutdlg"
12210
12211           if test x"$enablestring" = xdisable; then
12212             if test $wxUSE_ABOUTDLG = yes; then
12213               result=no
12214             else
12215               result=yes
12216             fi
12217           else
12218             result=$wxUSE_ABOUTDLG
12219           fi
12220
12221           { echo "$as_me:$LINENO: result: $result" >&5
12222 echo "${ECHO_T}$result" >&6; }
12223
12224
12225           enablestring=
12226           defaultval=$wxUSE_ALL_FEATURES
12227           if test -z "$defaultval"; then
12228               if test x"$enablestring" = xdisable; then
12229                   defaultval=yes
12230               else
12231                   defaultval=no
12232               fi
12233           fi
12234
12235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12236 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12237           # Check whether --enable-choicedlg was given.
12238 if test "${enable_choicedlg+set}" = set; then
12239   enableval=$enable_choicedlg;
12240                           if test "$enableval" = yes; then
12241                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12242                           else
12243                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12244                           fi
12245
12246 else
12247
12248                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12249
12250 fi
12251
12252
12253           eval "$wx_cv_use_choicedlg"
12254
12255           if test x"$enablestring" = xdisable; then
12256             if test $wxUSE_CHOICEDLG = yes; then
12257               result=no
12258             else
12259               result=yes
12260             fi
12261           else
12262             result=$wxUSE_CHOICEDLG
12263           fi
12264
12265           { echo "$as_me:$LINENO: result: $result" >&5
12266 echo "${ECHO_T}$result" >&6; }
12267
12268
12269           enablestring=
12270           defaultval=$wxUSE_ALL_FEATURES
12271           if test -z "$defaultval"; then
12272               if test x"$enablestring" = xdisable; then
12273                   defaultval=yes
12274               else
12275                   defaultval=no
12276               fi
12277           fi
12278
12279           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12280 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12281           # Check whether --enable-coldlg was given.
12282 if test "${enable_coldlg+set}" = set; then
12283   enableval=$enable_coldlg;
12284                           if test "$enableval" = yes; then
12285                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12286                           else
12287                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12288                           fi
12289
12290 else
12291
12292                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12293
12294 fi
12295
12296
12297           eval "$wx_cv_use_coldlg"
12298
12299           if test x"$enablestring" = xdisable; then
12300             if test $wxUSE_COLOURDLG = yes; then
12301               result=no
12302             else
12303               result=yes
12304             fi
12305           else
12306             result=$wxUSE_COLOURDLG
12307           fi
12308
12309           { echo "$as_me:$LINENO: result: $result" >&5
12310 echo "${ECHO_T}$result" >&6; }
12311
12312
12313           enablestring=
12314           defaultval=$wxUSE_ALL_FEATURES
12315           if test -z "$defaultval"; then
12316               if test x"$enablestring" = xdisable; then
12317                   defaultval=yes
12318               else
12319                   defaultval=no
12320               fi
12321           fi
12322
12323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12324 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12325           # Check whether --enable-filedlg was given.
12326 if test "${enable_filedlg+set}" = set; then
12327   enableval=$enable_filedlg;
12328                           if test "$enableval" = yes; then
12329                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12330                           else
12331                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12332                           fi
12333
12334 else
12335
12336                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12337
12338 fi
12339
12340
12341           eval "$wx_cv_use_filedlg"
12342
12343           if test x"$enablestring" = xdisable; then
12344             if test $wxUSE_FILEDLG = yes; then
12345               result=no
12346             else
12347               result=yes
12348             fi
12349           else
12350             result=$wxUSE_FILEDLG
12351           fi
12352
12353           { echo "$as_me:$LINENO: result: $result" >&5
12354 echo "${ECHO_T}$result" >&6; }
12355
12356
12357           enablestring=
12358           defaultval=$wxUSE_ALL_FEATURES
12359           if test -z "$defaultval"; then
12360               if test x"$enablestring" = xdisable; then
12361                   defaultval=yes
12362               else
12363                   defaultval=no
12364               fi
12365           fi
12366
12367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12368 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12369           # Check whether --enable-finddlg was given.
12370 if test "${enable_finddlg+set}" = set; then
12371   enableval=$enable_finddlg;
12372                           if test "$enableval" = yes; then
12373                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12374                           else
12375                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12376                           fi
12377
12378 else
12379
12380                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12381
12382 fi
12383
12384
12385           eval "$wx_cv_use_finddlg"
12386
12387           if test x"$enablestring" = xdisable; then
12388             if test $wxUSE_FINDREPLDLG = yes; then
12389               result=no
12390             else
12391               result=yes
12392             fi
12393           else
12394             result=$wxUSE_FINDREPLDLG
12395           fi
12396
12397           { echo "$as_me:$LINENO: result: $result" >&5
12398 echo "${ECHO_T}$result" >&6; }
12399
12400
12401           enablestring=
12402           defaultval=$wxUSE_ALL_FEATURES
12403           if test -z "$defaultval"; then
12404               if test x"$enablestring" = xdisable; then
12405                   defaultval=yes
12406               else
12407                   defaultval=no
12408               fi
12409           fi
12410
12411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12412 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12413           # Check whether --enable-fontdlg was given.
12414 if test "${enable_fontdlg+set}" = set; then
12415   enableval=$enable_fontdlg;
12416                           if test "$enableval" = yes; then
12417                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12418                           else
12419                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12420                           fi
12421
12422 else
12423
12424                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12425
12426 fi
12427
12428
12429           eval "$wx_cv_use_fontdlg"
12430
12431           if test x"$enablestring" = xdisable; then
12432             if test $wxUSE_FONTDLG = yes; then
12433               result=no
12434             else
12435               result=yes
12436             fi
12437           else
12438             result=$wxUSE_FONTDLG
12439           fi
12440
12441           { echo "$as_me:$LINENO: result: $result" >&5
12442 echo "${ECHO_T}$result" >&6; }
12443
12444
12445           enablestring=
12446           defaultval=$wxUSE_ALL_FEATURES
12447           if test -z "$defaultval"; then
12448               if test x"$enablestring" = xdisable; then
12449                   defaultval=yes
12450               else
12451                   defaultval=no
12452               fi
12453           fi
12454
12455           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12456 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12457           # Check whether --enable-dirdlg was given.
12458 if test "${enable_dirdlg+set}" = set; then
12459   enableval=$enable_dirdlg;
12460                           if test "$enableval" = yes; then
12461                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12462                           else
12463                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12464                           fi
12465
12466 else
12467
12468                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12469
12470 fi
12471
12472
12473           eval "$wx_cv_use_dirdlg"
12474
12475           if test x"$enablestring" = xdisable; then
12476             if test $wxUSE_DIRDLG = yes; then
12477               result=no
12478             else
12479               result=yes
12480             fi
12481           else
12482             result=$wxUSE_DIRDLG
12483           fi
12484
12485           { echo "$as_me:$LINENO: result: $result" >&5
12486 echo "${ECHO_T}$result" >&6; }
12487
12488
12489           enablestring=
12490           defaultval=$wxUSE_ALL_FEATURES
12491           if test -z "$defaultval"; then
12492               if test x"$enablestring" = xdisable; then
12493                   defaultval=yes
12494               else
12495                   defaultval=no
12496               fi
12497           fi
12498
12499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12500 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12501           # Check whether --enable-msgdlg was given.
12502 if test "${enable_msgdlg+set}" = set; then
12503   enableval=$enable_msgdlg;
12504                           if test "$enableval" = yes; then
12505                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12506                           else
12507                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12508                           fi
12509
12510 else
12511
12512                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12513
12514 fi
12515
12516
12517           eval "$wx_cv_use_msgdlg"
12518
12519           if test x"$enablestring" = xdisable; then
12520             if test $wxUSE_MSGDLG = yes; then
12521               result=no
12522             else
12523               result=yes
12524             fi
12525           else
12526             result=$wxUSE_MSGDLG
12527           fi
12528
12529           { echo "$as_me:$LINENO: result: $result" >&5
12530 echo "${ECHO_T}$result" >&6; }
12531
12532
12533           enablestring=
12534           defaultval=$wxUSE_ALL_FEATURES
12535           if test -z "$defaultval"; then
12536               if test x"$enablestring" = xdisable; then
12537                   defaultval=yes
12538               else
12539                   defaultval=no
12540               fi
12541           fi
12542
12543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12544 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12545           # Check whether --enable-numberdlg was given.
12546 if test "${enable_numberdlg+set}" = set; then
12547   enableval=$enable_numberdlg;
12548                           if test "$enableval" = yes; then
12549                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12550                           else
12551                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12552                           fi
12553
12554 else
12555
12556                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12557
12558 fi
12559
12560
12561           eval "$wx_cv_use_numberdlg"
12562
12563           if test x"$enablestring" = xdisable; then
12564             if test $wxUSE_NUMBERDLG = yes; then
12565               result=no
12566             else
12567               result=yes
12568             fi
12569           else
12570             result=$wxUSE_NUMBERDLG
12571           fi
12572
12573           { echo "$as_me:$LINENO: result: $result" >&5
12574 echo "${ECHO_T}$result" >&6; }
12575
12576
12577           enablestring=
12578           defaultval=$wxUSE_ALL_FEATURES
12579           if test -z "$defaultval"; then
12580               if test x"$enablestring" = xdisable; then
12581                   defaultval=yes
12582               else
12583                   defaultval=no
12584               fi
12585           fi
12586
12587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12588 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12589           # Check whether --enable-splash was given.
12590 if test "${enable_splash+set}" = set; then
12591   enableval=$enable_splash;
12592                           if test "$enableval" = yes; then
12593                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12594                           else
12595                             wx_cv_use_splash='wxUSE_SPLASH=no'
12596                           fi
12597
12598 else
12599
12600                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12601
12602 fi
12603
12604
12605           eval "$wx_cv_use_splash"
12606
12607           if test x"$enablestring" = xdisable; then
12608             if test $wxUSE_SPLASH = yes; then
12609               result=no
12610             else
12611               result=yes
12612             fi
12613           else
12614             result=$wxUSE_SPLASH
12615           fi
12616
12617           { echo "$as_me:$LINENO: result: $result" >&5
12618 echo "${ECHO_T}$result" >&6; }
12619
12620
12621           enablestring=
12622           defaultval=$wxUSE_ALL_FEATURES
12623           if test -z "$defaultval"; then
12624               if test x"$enablestring" = xdisable; then
12625                   defaultval=yes
12626               else
12627                   defaultval=no
12628               fi
12629           fi
12630
12631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12632 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12633           # Check whether --enable-textdlg was given.
12634 if test "${enable_textdlg+set}" = set; then
12635   enableval=$enable_textdlg;
12636                           if test "$enableval" = yes; then
12637                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12638                           else
12639                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12640                           fi
12641
12642 else
12643
12644                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12645
12646 fi
12647
12648
12649           eval "$wx_cv_use_textdlg"
12650
12651           if test x"$enablestring" = xdisable; then
12652             if test $wxUSE_TEXTDLG = yes; then
12653               result=no
12654             else
12655               result=yes
12656             fi
12657           else
12658             result=$wxUSE_TEXTDLG
12659           fi
12660
12661           { echo "$as_me:$LINENO: result: $result" >&5
12662 echo "${ECHO_T}$result" >&6; }
12663
12664
12665           enablestring=
12666           defaultval=$wxUSE_ALL_FEATURES
12667           if test -z "$defaultval"; then
12668               if test x"$enablestring" = xdisable; then
12669                   defaultval=yes
12670               else
12671                   defaultval=no
12672               fi
12673           fi
12674
12675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12676 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12677           # Check whether --enable-tipdlg was given.
12678 if test "${enable_tipdlg+set}" = set; then
12679   enableval=$enable_tipdlg;
12680                           if test "$enableval" = yes; then
12681                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12682                           else
12683                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12684                           fi
12685
12686 else
12687
12688                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12689
12690 fi
12691
12692
12693           eval "$wx_cv_use_tipdlg"
12694
12695           if test x"$enablestring" = xdisable; then
12696             if test $wxUSE_STARTUP_TIPS = yes; then
12697               result=no
12698             else
12699               result=yes
12700             fi
12701           else
12702             result=$wxUSE_STARTUP_TIPS
12703           fi
12704
12705           { echo "$as_me:$LINENO: result: $result" >&5
12706 echo "${ECHO_T}$result" >&6; }
12707
12708
12709           enablestring=
12710           defaultval=$wxUSE_ALL_FEATURES
12711           if test -z "$defaultval"; then
12712               if test x"$enablestring" = xdisable; then
12713                   defaultval=yes
12714               else
12715                   defaultval=no
12716               fi
12717           fi
12718
12719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12720 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12721           # Check whether --enable-progressdlg was given.
12722 if test "${enable_progressdlg+set}" = set; then
12723   enableval=$enable_progressdlg;
12724                           if test "$enableval" = yes; then
12725                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12726                           else
12727                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12728                           fi
12729
12730 else
12731
12732                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12733
12734 fi
12735
12736
12737           eval "$wx_cv_use_progressdlg"
12738
12739           if test x"$enablestring" = xdisable; then
12740             if test $wxUSE_PROGRESSDLG = yes; then
12741               result=no
12742             else
12743               result=yes
12744             fi
12745           else
12746             result=$wxUSE_PROGRESSDLG
12747           fi
12748
12749           { echo "$as_me:$LINENO: result: $result" >&5
12750 echo "${ECHO_T}$result" >&6; }
12751
12752
12753           enablestring=
12754           defaultval=$wxUSE_ALL_FEATURES
12755           if test -z "$defaultval"; then
12756               if test x"$enablestring" = xdisable; then
12757                   defaultval=yes
12758               else
12759                   defaultval=no
12760               fi
12761           fi
12762
12763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12764 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12765           # Check whether --enable-wizarddlg was given.
12766 if test "${enable_wizarddlg+set}" = set; then
12767   enableval=$enable_wizarddlg;
12768                           if test "$enableval" = yes; then
12769                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12770                           else
12771                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12772                           fi
12773
12774 else
12775
12776                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12777
12778 fi
12779
12780
12781           eval "$wx_cv_use_wizarddlg"
12782
12783           if test x"$enablestring" = xdisable; then
12784             if test $wxUSE_WIZARDDLG = yes; then
12785               result=no
12786             else
12787               result=yes
12788             fi
12789           else
12790             result=$wxUSE_WIZARDDLG
12791           fi
12792
12793           { echo "$as_me:$LINENO: result: $result" >&5
12794 echo "${ECHO_T}$result" >&6; }
12795
12796
12797
12798
12799           enablestring=
12800           defaultval=$wxUSE_ALL_FEATURES
12801           if test -z "$defaultval"; then
12802               if test x"$enablestring" = xdisable; then
12803                   defaultval=yes
12804               else
12805                   defaultval=no
12806               fi
12807           fi
12808
12809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12810 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12811           # Check whether --enable-menus was given.
12812 if test "${enable_menus+set}" = set; then
12813   enableval=$enable_menus;
12814                           if test "$enableval" = yes; then
12815                             wx_cv_use_menus='wxUSE_MENUS=yes'
12816                           else
12817                             wx_cv_use_menus='wxUSE_MENUS=no'
12818                           fi
12819
12820 else
12821
12822                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12823
12824 fi
12825
12826
12827           eval "$wx_cv_use_menus"
12828
12829           if test x"$enablestring" = xdisable; then
12830             if test $wxUSE_MENUS = yes; then
12831               result=no
12832             else
12833               result=yes
12834             fi
12835           else
12836             result=$wxUSE_MENUS
12837           fi
12838
12839           { echo "$as_me:$LINENO: result: $result" >&5
12840 echo "${ECHO_T}$result" >&6; }
12841
12842
12843           enablestring=
12844           defaultval=$wxUSE_ALL_FEATURES
12845           if test -z "$defaultval"; then
12846               if test x"$enablestring" = xdisable; then
12847                   defaultval=yes
12848               else
12849                   defaultval=no
12850               fi
12851           fi
12852
12853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12854 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12855           # Check whether --enable-miniframe was given.
12856 if test "${enable_miniframe+set}" = set; then
12857   enableval=$enable_miniframe;
12858                           if test "$enableval" = yes; then
12859                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12860                           else
12861                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12862                           fi
12863
12864 else
12865
12866                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12867
12868 fi
12869
12870
12871           eval "$wx_cv_use_miniframe"
12872
12873           if test x"$enablestring" = xdisable; then
12874             if test $wxUSE_MINIFRAME = yes; then
12875               result=no
12876             else
12877               result=yes
12878             fi
12879           else
12880             result=$wxUSE_MINIFRAME
12881           fi
12882
12883           { echo "$as_me:$LINENO: result: $result" >&5
12884 echo "${ECHO_T}$result" >&6; }
12885
12886
12887           enablestring=
12888           defaultval=$wxUSE_ALL_FEATURES
12889           if test -z "$defaultval"; then
12890               if test x"$enablestring" = xdisable; then
12891                   defaultval=yes
12892               else
12893                   defaultval=no
12894               fi
12895           fi
12896
12897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12898 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12899           # Check whether --enable-tooltips was given.
12900 if test "${enable_tooltips+set}" = set; then
12901   enableval=$enable_tooltips;
12902                           if test "$enableval" = yes; then
12903                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12904                           else
12905                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12906                           fi
12907
12908 else
12909
12910                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12911
12912 fi
12913
12914
12915           eval "$wx_cv_use_tooltips"
12916
12917           if test x"$enablestring" = xdisable; then
12918             if test $wxUSE_TOOLTIPS = yes; then
12919               result=no
12920             else
12921               result=yes
12922             fi
12923           else
12924             result=$wxUSE_TOOLTIPS
12925           fi
12926
12927           { echo "$as_me:$LINENO: result: $result" >&5
12928 echo "${ECHO_T}$result" >&6; }
12929
12930
12931           enablestring=
12932           defaultval=$wxUSE_ALL_FEATURES
12933           if test -z "$defaultval"; then
12934               if test x"$enablestring" = xdisable; then
12935                   defaultval=yes
12936               else
12937                   defaultval=no
12938               fi
12939           fi
12940
12941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12942 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12943           # Check whether --enable-splines was given.
12944 if test "${enable_splines+set}" = set; then
12945   enableval=$enable_splines;
12946                           if test "$enableval" = yes; then
12947                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12948                           else
12949                             wx_cv_use_splines='wxUSE_SPLINES=no'
12950                           fi
12951
12952 else
12953
12954                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12955
12956 fi
12957
12958
12959           eval "$wx_cv_use_splines"
12960
12961           if test x"$enablestring" = xdisable; then
12962             if test $wxUSE_SPLINES = yes; then
12963               result=no
12964             else
12965               result=yes
12966             fi
12967           else
12968             result=$wxUSE_SPLINES
12969           fi
12970
12971           { echo "$as_me:$LINENO: result: $result" >&5
12972 echo "${ECHO_T}$result" >&6; }
12973
12974
12975           enablestring=
12976           defaultval=$wxUSE_ALL_FEATURES
12977           if test -z "$defaultval"; then
12978               if test x"$enablestring" = xdisable; then
12979                   defaultval=yes
12980               else
12981                   defaultval=no
12982               fi
12983           fi
12984
12985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12986 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12987           # Check whether --enable-mousewheel was given.
12988 if test "${enable_mousewheel+set}" = set; then
12989   enableval=$enable_mousewheel;
12990                           if test "$enableval" = yes; then
12991                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12992                           else
12993                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12994                           fi
12995
12996 else
12997
12998                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12999
13000 fi
13001
13002
13003           eval "$wx_cv_use_mousewheel"
13004
13005           if test x"$enablestring" = xdisable; then
13006             if test $wxUSE_MOUSEWHEEL = yes; then
13007               result=no
13008             else
13009               result=yes
13010             fi
13011           else
13012             result=$wxUSE_MOUSEWHEEL
13013           fi
13014
13015           { echo "$as_me:$LINENO: result: $result" >&5
13016 echo "${ECHO_T}$result" >&6; }
13017
13018
13019           enablestring=
13020           defaultval=$wxUSE_ALL_FEATURES
13021           if test -z "$defaultval"; then
13022               if test x"$enablestring" = xdisable; then
13023                   defaultval=yes
13024               else
13025                   defaultval=no
13026               fi
13027           fi
13028
13029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13030 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13031           # Check whether --enable-validators was given.
13032 if test "${enable_validators+set}" = set; then
13033   enableval=$enable_validators;
13034                           if test "$enableval" = yes; then
13035                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13036                           else
13037                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13038                           fi
13039
13040 else
13041
13042                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13043
13044 fi
13045
13046
13047           eval "$wx_cv_use_validators"
13048
13049           if test x"$enablestring" = xdisable; then
13050             if test $wxUSE_VALIDATORS = yes; then
13051               result=no
13052             else
13053               result=yes
13054             fi
13055           else
13056             result=$wxUSE_VALIDATORS
13057           fi
13058
13059           { echo "$as_me:$LINENO: result: $result" >&5
13060 echo "${ECHO_T}$result" >&6; }
13061
13062
13063           enablestring=
13064           defaultval=$wxUSE_ALL_FEATURES
13065           if test -z "$defaultval"; then
13066               if test x"$enablestring" = xdisable; then
13067                   defaultval=yes
13068               else
13069                   defaultval=no
13070               fi
13071           fi
13072
13073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13074 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13075           # Check whether --enable-busyinfo was given.
13076 if test "${enable_busyinfo+set}" = set; then
13077   enableval=$enable_busyinfo;
13078                           if test "$enableval" = yes; then
13079                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13080                           else
13081                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13082                           fi
13083
13084 else
13085
13086                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13087
13088 fi
13089
13090
13091           eval "$wx_cv_use_busyinfo"
13092
13093           if test x"$enablestring" = xdisable; then
13094             if test $wxUSE_BUSYINFO = yes; then
13095               result=no
13096             else
13097               result=yes
13098             fi
13099           else
13100             result=$wxUSE_BUSYINFO
13101           fi
13102
13103           { echo "$as_me:$LINENO: result: $result" >&5
13104 echo "${ECHO_T}$result" >&6; }
13105
13106
13107           enablestring=
13108           defaultval=$wxUSE_ALL_FEATURES
13109           if test -z "$defaultval"; then
13110               if test x"$enablestring" = xdisable; then
13111                   defaultval=yes
13112               else
13113                   defaultval=no
13114               fi
13115           fi
13116
13117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13118 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13119           # Check whether --enable-joystick was given.
13120 if test "${enable_joystick+set}" = set; then
13121   enableval=$enable_joystick;
13122                           if test "$enableval" = yes; then
13123                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13124                           else
13125                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13126                           fi
13127
13128 else
13129
13130                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13131
13132 fi
13133
13134
13135           eval "$wx_cv_use_joystick"
13136
13137           if test x"$enablestring" = xdisable; then
13138             if test $wxUSE_JOYSTICK = yes; then
13139               result=no
13140             else
13141               result=yes
13142             fi
13143           else
13144             result=$wxUSE_JOYSTICK
13145           fi
13146
13147           { echo "$as_me:$LINENO: result: $result" >&5
13148 echo "${ECHO_T}$result" >&6; }
13149
13150
13151           enablestring=
13152           defaultval=$wxUSE_ALL_FEATURES
13153           if test -z "$defaultval"; then
13154               if test x"$enablestring" = xdisable; then
13155                   defaultval=yes
13156               else
13157                   defaultval=no
13158               fi
13159           fi
13160
13161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13162 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13163           # Check whether --enable-metafile was given.
13164 if test "${enable_metafile+set}" = set; then
13165   enableval=$enable_metafile;
13166                           if test "$enableval" = yes; then
13167                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13168                           else
13169                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13170                           fi
13171
13172 else
13173
13174                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13175
13176 fi
13177
13178
13179           eval "$wx_cv_use_metafile"
13180
13181           if test x"$enablestring" = xdisable; then
13182             if test $wxUSE_METAFILE = yes; then
13183               result=no
13184             else
13185               result=yes
13186             fi
13187           else
13188             result=$wxUSE_METAFILE
13189           fi
13190
13191           { echo "$as_me:$LINENO: result: $result" >&5
13192 echo "${ECHO_T}$result" >&6; }
13193
13194
13195           enablestring=
13196           defaultval=$wxUSE_ALL_FEATURES
13197           if test -z "$defaultval"; then
13198               if test x"$enablestring" = xdisable; then
13199                   defaultval=yes
13200               else
13201                   defaultval=no
13202               fi
13203           fi
13204
13205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13206 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13207           # Check whether --enable-dragimage was given.
13208 if test "${enable_dragimage+set}" = set; then
13209   enableval=$enable_dragimage;
13210                           if test "$enableval" = yes; then
13211                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13212                           else
13213                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13214                           fi
13215
13216 else
13217
13218                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13219
13220 fi
13221
13222
13223           eval "$wx_cv_use_dragimage"
13224
13225           if test x"$enablestring" = xdisable; then
13226             if test $wxUSE_DRAGIMAGE = yes; then
13227               result=no
13228             else
13229               result=yes
13230             fi
13231           else
13232             result=$wxUSE_DRAGIMAGE
13233           fi
13234
13235           { echo "$as_me:$LINENO: result: $result" >&5
13236 echo "${ECHO_T}$result" >&6; }
13237
13238
13239           enablestring=
13240           defaultval=$wxUSE_ALL_FEATURES
13241           if test -z "$defaultval"; then
13242               if test x"$enablestring" = xdisable; then
13243                   defaultval=yes
13244               else
13245                   defaultval=no
13246               fi
13247           fi
13248
13249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13250 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13251           # Check whether --enable-accessibility was given.
13252 if test "${enable_accessibility+set}" = set; then
13253   enableval=$enable_accessibility;
13254                           if test "$enableval" = yes; then
13255                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13256                           else
13257                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13258                           fi
13259
13260 else
13261
13262                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13263
13264 fi
13265
13266
13267           eval "$wx_cv_use_accessibility"
13268
13269           if test x"$enablestring" = xdisable; then
13270             if test $wxUSE_ACCESSIBILITY = yes; then
13271               result=no
13272             else
13273               result=yes
13274             fi
13275           else
13276             result=$wxUSE_ACCESSIBILITY
13277           fi
13278
13279           { echo "$as_me:$LINENO: result: $result" >&5
13280 echo "${ECHO_T}$result" >&6; }
13281
13282
13283
13284
13285           enablestring=
13286           defaultval=$wxUSE_ALL_FEATURES
13287           if test -z "$defaultval"; then
13288               if test x"$enablestring" = xdisable; then
13289                   defaultval=yes
13290               else
13291                   defaultval=no
13292               fi
13293           fi
13294
13295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13296 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13297           # Check whether --enable-palette was given.
13298 if test "${enable_palette+set}" = set; then
13299   enableval=$enable_palette;
13300                           if test "$enableval" = yes; then
13301                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13302                           else
13303                             wx_cv_use_palette='wxUSE_PALETTE=no'
13304                           fi
13305
13306 else
13307
13308                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13309
13310 fi
13311
13312
13313           eval "$wx_cv_use_palette"
13314
13315           if test x"$enablestring" = xdisable; then
13316             if test $wxUSE_PALETTE = yes; then
13317               result=no
13318             else
13319               result=yes
13320             fi
13321           else
13322             result=$wxUSE_PALETTE
13323           fi
13324
13325           { echo "$as_me:$LINENO: result: $result" >&5
13326 echo "${ECHO_T}$result" >&6; }
13327
13328
13329           enablestring=
13330           defaultval=$wxUSE_ALL_FEATURES
13331           if test -z "$defaultval"; then
13332               if test x"$enablestring" = xdisable; then
13333                   defaultval=yes
13334               else
13335                   defaultval=no
13336               fi
13337           fi
13338
13339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13340 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13341           # Check whether --enable-image was given.
13342 if test "${enable_image+set}" = set; then
13343   enableval=$enable_image;
13344                           if test "$enableval" = yes; then
13345                             wx_cv_use_image='wxUSE_IMAGE=yes'
13346                           else
13347                             wx_cv_use_image='wxUSE_IMAGE=no'
13348                           fi
13349
13350 else
13351
13352                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13353
13354 fi
13355
13356
13357           eval "$wx_cv_use_image"
13358
13359           if test x"$enablestring" = xdisable; then
13360             if test $wxUSE_IMAGE = yes; then
13361               result=no
13362             else
13363               result=yes
13364             fi
13365           else
13366             result=$wxUSE_IMAGE
13367           fi
13368
13369           { echo "$as_me:$LINENO: result: $result" >&5
13370 echo "${ECHO_T}$result" >&6; }
13371
13372
13373           enablestring=
13374           defaultval=$wxUSE_ALL_FEATURES
13375           if test -z "$defaultval"; then
13376               if test x"$enablestring" = xdisable; then
13377                   defaultval=yes
13378               else
13379                   defaultval=no
13380               fi
13381           fi
13382
13383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13384 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13385           # Check whether --enable-gif was given.
13386 if test "${enable_gif+set}" = set; then
13387   enableval=$enable_gif;
13388                           if test "$enableval" = yes; then
13389                             wx_cv_use_gif='wxUSE_GIF=yes'
13390                           else
13391                             wx_cv_use_gif='wxUSE_GIF=no'
13392                           fi
13393
13394 else
13395
13396                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13397
13398 fi
13399
13400
13401           eval "$wx_cv_use_gif"
13402
13403           if test x"$enablestring" = xdisable; then
13404             if test $wxUSE_GIF = yes; then
13405               result=no
13406             else
13407               result=yes
13408             fi
13409           else
13410             result=$wxUSE_GIF
13411           fi
13412
13413           { echo "$as_me:$LINENO: result: $result" >&5
13414 echo "${ECHO_T}$result" >&6; }
13415
13416
13417           enablestring=
13418           defaultval=$wxUSE_ALL_FEATURES
13419           if test -z "$defaultval"; then
13420               if test x"$enablestring" = xdisable; then
13421                   defaultval=yes
13422               else
13423                   defaultval=no
13424               fi
13425           fi
13426
13427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13428 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13429           # Check whether --enable-pcx was given.
13430 if test "${enable_pcx+set}" = set; then
13431   enableval=$enable_pcx;
13432                           if test "$enableval" = yes; then
13433                             wx_cv_use_pcx='wxUSE_PCX=yes'
13434                           else
13435                             wx_cv_use_pcx='wxUSE_PCX=no'
13436                           fi
13437
13438 else
13439
13440                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13441
13442 fi
13443
13444
13445           eval "$wx_cv_use_pcx"
13446
13447           if test x"$enablestring" = xdisable; then
13448             if test $wxUSE_PCX = yes; then
13449               result=no
13450             else
13451               result=yes
13452             fi
13453           else
13454             result=$wxUSE_PCX
13455           fi
13456
13457           { echo "$as_me:$LINENO: result: $result" >&5
13458 echo "${ECHO_T}$result" >&6; }
13459
13460
13461           enablestring=
13462           defaultval=$wxUSE_ALL_FEATURES
13463           if test -z "$defaultval"; then
13464               if test x"$enablestring" = xdisable; then
13465                   defaultval=yes
13466               else
13467                   defaultval=no
13468               fi
13469           fi
13470
13471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13472 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13473           # Check whether --enable-tga was given.
13474 if test "${enable_tga+set}" = set; then
13475   enableval=$enable_tga;
13476                           if test "$enableval" = yes; then
13477                             wx_cv_use_tga='wxUSE_TGA=yes'
13478                           else
13479                             wx_cv_use_tga='wxUSE_TGA=no'
13480                           fi
13481
13482 else
13483
13484                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13485
13486 fi
13487
13488
13489           eval "$wx_cv_use_tga"
13490
13491           if test x"$enablestring" = xdisable; then
13492             if test $wxUSE_TGA = yes; then
13493               result=no
13494             else
13495               result=yes
13496             fi
13497           else
13498             result=$wxUSE_TGA
13499           fi
13500
13501           { echo "$as_me:$LINENO: result: $result" >&5
13502 echo "${ECHO_T}$result" >&6; }
13503
13504
13505           enablestring=
13506           defaultval=$wxUSE_ALL_FEATURES
13507           if test -z "$defaultval"; then
13508               if test x"$enablestring" = xdisable; then
13509                   defaultval=yes
13510               else
13511                   defaultval=no
13512               fi
13513           fi
13514
13515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13516 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13517           # Check whether --enable-iff was given.
13518 if test "${enable_iff+set}" = set; then
13519   enableval=$enable_iff;
13520                           if test "$enableval" = yes; then
13521                             wx_cv_use_iff='wxUSE_IFF=yes'
13522                           else
13523                             wx_cv_use_iff='wxUSE_IFF=no'
13524                           fi
13525
13526 else
13527
13528                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13529
13530 fi
13531
13532
13533           eval "$wx_cv_use_iff"
13534
13535           if test x"$enablestring" = xdisable; then
13536             if test $wxUSE_IFF = yes; then
13537               result=no
13538             else
13539               result=yes
13540             fi
13541           else
13542             result=$wxUSE_IFF
13543           fi
13544
13545           { echo "$as_me:$LINENO: result: $result" >&5
13546 echo "${ECHO_T}$result" >&6; }
13547
13548
13549           enablestring=
13550           defaultval=$wxUSE_ALL_FEATURES
13551           if test -z "$defaultval"; then
13552               if test x"$enablestring" = xdisable; then
13553                   defaultval=yes
13554               else
13555                   defaultval=no
13556               fi
13557           fi
13558
13559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13560 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13561           # Check whether --enable-pnm was given.
13562 if test "${enable_pnm+set}" = set; then
13563   enableval=$enable_pnm;
13564                           if test "$enableval" = yes; then
13565                             wx_cv_use_pnm='wxUSE_PNM=yes'
13566                           else
13567                             wx_cv_use_pnm='wxUSE_PNM=no'
13568                           fi
13569
13570 else
13571
13572                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13573
13574 fi
13575
13576
13577           eval "$wx_cv_use_pnm"
13578
13579           if test x"$enablestring" = xdisable; then
13580             if test $wxUSE_PNM = yes; then
13581               result=no
13582             else
13583               result=yes
13584             fi
13585           else
13586             result=$wxUSE_PNM
13587           fi
13588
13589           { echo "$as_me:$LINENO: result: $result" >&5
13590 echo "${ECHO_T}$result" >&6; }
13591
13592
13593           enablestring=
13594           defaultval=$wxUSE_ALL_FEATURES
13595           if test -z "$defaultval"; then
13596               if test x"$enablestring" = xdisable; then
13597                   defaultval=yes
13598               else
13599                   defaultval=no
13600               fi
13601           fi
13602
13603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13604 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13605           # Check whether --enable-xpm was given.
13606 if test "${enable_xpm+set}" = set; then
13607   enableval=$enable_xpm;
13608                           if test "$enableval" = yes; then
13609                             wx_cv_use_xpm='wxUSE_XPM=yes'
13610                           else
13611                             wx_cv_use_xpm='wxUSE_XPM=no'
13612                           fi
13613
13614 else
13615
13616                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13617
13618 fi
13619
13620
13621           eval "$wx_cv_use_xpm"
13622
13623           if test x"$enablestring" = xdisable; then
13624             if test $wxUSE_XPM = yes; then
13625               result=no
13626             else
13627               result=yes
13628             fi
13629           else
13630             result=$wxUSE_XPM
13631           fi
13632
13633           { echo "$as_me:$LINENO: result: $result" >&5
13634 echo "${ECHO_T}$result" >&6; }
13635
13636
13637           enablestring=
13638           defaultval=$wxUSE_ALL_FEATURES
13639           if test -z "$defaultval"; then
13640               if test x"$enablestring" = xdisable; then
13641                   defaultval=yes
13642               else
13643                   defaultval=no
13644               fi
13645           fi
13646
13647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13648 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13649           # Check whether --enable-ico_cur was given.
13650 if test "${enable_ico_cur+set}" = set; then
13651   enableval=$enable_ico_cur;
13652                           if test "$enableval" = yes; then
13653                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13654                           else
13655                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13656                           fi
13657
13658 else
13659
13660                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13661
13662 fi
13663
13664
13665           eval "$wx_cv_use_ico_cur"
13666
13667           if test x"$enablestring" = xdisable; then
13668             if test $wxUSE_ICO_CUR = yes; then
13669               result=no
13670             else
13671               result=yes
13672             fi
13673           else
13674             result=$wxUSE_ICO_CUR
13675           fi
13676
13677           { echo "$as_me:$LINENO: result: $result" >&5
13678 echo "${ECHO_T}$result" >&6; }
13679
13680
13681
13682
13683           enablestring=
13684           defaultval=$wxUSE_ALL_FEATURES
13685           if test -z "$defaultval"; then
13686               if test x"$enablestring" = xdisable; then
13687                   defaultval=yes
13688               else
13689                   defaultval=no
13690               fi
13691           fi
13692
13693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13694 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13695           # Check whether --enable-dccache was given.
13696 if test "${enable_dccache+set}" = set; then
13697   enableval=$enable_dccache;
13698                           if test "$enableval" = yes; then
13699                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13700                           else
13701                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13702                           fi
13703
13704 else
13705
13706                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13707
13708 fi
13709
13710
13711           eval "$wx_cv_use_dccache"
13712
13713           if test x"$enablestring" = xdisable; then
13714             if test $wxUSE_DC_CACHEING = yes; then
13715               result=no
13716             else
13717               result=yes
13718             fi
13719           else
13720             result=$wxUSE_DC_CACHEING
13721           fi
13722
13723           { echo "$as_me:$LINENO: result: $result" >&5
13724 echo "${ECHO_T}$result" >&6; }
13725
13726
13727           enablestring=
13728           defaultval=$wxUSE_ALL_FEATURES
13729           if test -z "$defaultval"; then
13730               if test x"$enablestring" = xdisable; then
13731                   defaultval=yes
13732               else
13733                   defaultval=no
13734               fi
13735           fi
13736
13737           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13738 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13739           # Check whether --enable-ps-in-msw was given.
13740 if test "${enable_ps_in_msw+set}" = set; then
13741   enableval=$enable_ps_in_msw;
13742                           if test "$enableval" = yes; then
13743                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13744                           else
13745                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13746                           fi
13747
13748 else
13749
13750                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13751
13752 fi
13753
13754
13755           eval "$wx_cv_use_ps_in_msw"
13756
13757           if test x"$enablestring" = xdisable; then
13758             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13759               result=no
13760             else
13761               result=yes
13762             fi
13763           else
13764             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13765           fi
13766
13767           { echo "$as_me:$LINENO: result: $result" >&5
13768 echo "${ECHO_T}$result" >&6; }
13769
13770
13771           enablestring=
13772           defaultval=$wxUSE_ALL_FEATURES
13773           if test -z "$defaultval"; then
13774               if test x"$enablestring" = xdisable; then
13775                   defaultval=yes
13776               else
13777                   defaultval=no
13778               fi
13779           fi
13780
13781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13782 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13783           # Check whether --enable-ownerdrawn was given.
13784 if test "${enable_ownerdrawn+set}" = set; then
13785   enableval=$enable_ownerdrawn;
13786                           if test "$enableval" = yes; then
13787                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13788                           else
13789                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13790                           fi
13791
13792 else
13793
13794                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13795
13796 fi
13797
13798
13799           eval "$wx_cv_use_ownerdrawn"
13800
13801           if test x"$enablestring" = xdisable; then
13802             if test $wxUSE_OWNER_DRAWN = yes; then
13803               result=no
13804             else
13805               result=yes
13806             fi
13807           else
13808             result=$wxUSE_OWNER_DRAWN
13809           fi
13810
13811           { echo "$as_me:$LINENO: result: $result" >&5
13812 echo "${ECHO_T}$result" >&6; }
13813
13814
13815           enablestring=
13816           defaultval=$wxUSE_ALL_FEATURES
13817           if test -z "$defaultval"; then
13818               if test x"$enablestring" = xdisable; then
13819                   defaultval=yes
13820               else
13821                   defaultval=no
13822               fi
13823           fi
13824
13825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13826 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13827           # Check whether --enable-uxtheme was given.
13828 if test "${enable_uxtheme+set}" = set; then
13829   enableval=$enable_uxtheme;
13830                           if test "$enableval" = yes; then
13831                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13832                           else
13833                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13834                           fi
13835
13836 else
13837
13838                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13839
13840 fi
13841
13842
13843           eval "$wx_cv_use_uxtheme"
13844
13845           if test x"$enablestring" = xdisable; then
13846             if test $wxUSE_UXTHEME = yes; then
13847               result=no
13848             else
13849               result=yes
13850             fi
13851           else
13852             result=$wxUSE_UXTHEME
13853           fi
13854
13855           { echo "$as_me:$LINENO: result: $result" >&5
13856 echo "${ECHO_T}$result" >&6; }
13857
13858
13859           enablestring=
13860           defaultval=$wxUSE_ALL_FEATURES
13861           if test -z "$defaultval"; then
13862               if test x"$enablestring" = xdisable; then
13863                   defaultval=yes
13864               else
13865                   defaultval=no
13866               fi
13867           fi
13868
13869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13870 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13871           # Check whether --enable-wxdib was given.
13872 if test "${enable_wxdib+set}" = set; then
13873   enableval=$enable_wxdib;
13874                           if test "$enableval" = yes; then
13875                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13876                           else
13877                             wx_cv_use_wxdib='wxUSE_DIB=no'
13878                           fi
13879
13880 else
13881
13882                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13883
13884 fi
13885
13886
13887           eval "$wx_cv_use_wxdib"
13888
13889           if test x"$enablestring" = xdisable; then
13890             if test $wxUSE_DIB = yes; then
13891               result=no
13892             else
13893               result=yes
13894             fi
13895           else
13896             result=$wxUSE_DIB
13897           fi
13898
13899           { echo "$as_me:$LINENO: result: $result" >&5
13900 echo "${ECHO_T}$result" >&6; }
13901
13902
13903 if test "$wxUSE_MSW" != 1; then
13904     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13905 fi
13906
13907
13908           enablestring=
13909           defaultval=$wxUSE_ALL_FEATURES
13910           if test -z "$defaultval"; then
13911               if test x"$enablestring" = xdisable; then
13912                   defaultval=yes
13913               else
13914                   defaultval=no
13915               fi
13916           fi
13917
13918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13919 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13920           # Check whether --enable-autoidman was given.
13921 if test "${enable_autoidman+set}" = set; then
13922   enableval=$enable_autoidman;
13923                           if test "$enableval" = yes; then
13924                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13925                           else
13926                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13927                           fi
13928
13929 else
13930
13931                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13932
13933 fi
13934
13935
13936           eval "$wx_cv_use_autoidman"
13937
13938           if test x"$enablestring" = xdisable; then
13939             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13940               result=no
13941             else
13942               result=yes
13943             fi
13944           else
13945             result=$wxUSE_AUTOID_MANAGEMENT
13946           fi
13947
13948           { echo "$as_me:$LINENO: result: $result" >&5
13949 echo "${ECHO_T}$result" >&6; }
13950
13951
13952 fi
13953
13954
13955 cat >confcache <<\_ACEOF
13956 # This file is a shell script that caches the results of configure
13957 # tests run on this system so they can be shared between configure
13958 # scripts and configure runs, see configure's option --config-cache.
13959 # It is not useful on other systems.  If it contains results you don't
13960 # want to keep, you may remove or edit it.
13961 #
13962 # config.status only pays attention to the cache file if you give it
13963 # the --recheck option to rerun configure.
13964 #
13965 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13967 # following values.
13968
13969 _ACEOF
13970
13971 # The following way of writing the cache mishandles newlines in values,
13972 # but we know of no workaround that is simple, portable, and efficient.
13973 # So, we kill variables containing newlines.
13974 # Ultrix sh set writes to stderr and can't be redirected directly,
13975 # and sets the high bit in the cache file unless we assign to the vars.
13976 (
13977   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13978     eval ac_val=\$$ac_var
13979     case $ac_val in #(
13980     *${as_nl}*)
13981       case $ac_var in #(
13982       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13983 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13984       esac
13985       case $ac_var in #(
13986       _ | IFS | as_nl) ;; #(
13987       *) $as_unset $ac_var ;;
13988       esac ;;
13989     esac
13990   done
13991
13992   (set) 2>&1 |
13993     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13994     *${as_nl}ac_space=\ *)
13995       # `set' does not quote correctly, so add quotes (double-quote
13996       # substitution turns \\\\ into \\, and sed turns \\ into \).
13997       sed -n \
13998         "s/'/'\\\\''/g;
13999           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14000       ;; #(
14001     *)
14002       # `set' quotes correctly as required by POSIX, so do not add quotes.
14003       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14004       ;;
14005     esac |
14006     sort
14007 ) |
14008   sed '
14009      /^ac_cv_env_/b end
14010      t clear
14011      :clear
14012      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14013      t end
14014      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14015      :end' >>confcache
14016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14017   if test -w "$cache_file"; then
14018     test "x$cache_file" != "x/dev/null" &&
14019       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14020 echo "$as_me: updating cache $cache_file" >&6;}
14021     cat confcache >$cache_file
14022   else
14023     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14024 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14025   fi
14026 fi
14027 rm -f confcache
14028
14029 CFLAGS=${CFLAGS:=}
14030
14031
14032
14033     ac_ext=c
14034 ac_cpp='$CPP $CPPFLAGS'
14035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14038 if test -n "$ac_tool_prefix"; then
14039   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14040 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14043 if test "${ac_cv_prog_CC+set}" = set; then
14044   echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046   if test -n "$CC"; then
14047   ac_cv_prog_CC="$CC" # Let the user override the test.
14048 else
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14051 do
14052   IFS=$as_save_IFS
14053   test -z "$as_dir" && as_dir=.
14054   for ac_exec_ext in '' $ac_executable_extensions; do
14055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14056     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14058     break 2
14059   fi
14060 done
14061 done
14062 IFS=$as_save_IFS
14063
14064 fi
14065 fi
14066 CC=$ac_cv_prog_CC
14067 if test -n "$CC"; then
14068   { echo "$as_me:$LINENO: result: $CC" >&5
14069 echo "${ECHO_T}$CC" >&6; }
14070 else
14071   { echo "$as_me:$LINENO: result: no" >&5
14072 echo "${ECHO_T}no" >&6; }
14073 fi
14074
14075
14076 fi
14077 if test -z "$ac_cv_prog_CC"; then
14078   ac_ct_CC=$CC
14079   # Extract the first word of "gcc", so it can be a program name with args.
14080 set dummy gcc; ac_word=$2
14081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14084   echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086   if test -n "$ac_ct_CC"; then
14087   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14088 else
14089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14090 for as_dir in $PATH
14091 do
14092   IFS=$as_save_IFS
14093   test -z "$as_dir" && as_dir=.
14094   for ac_exec_ext in '' $ac_executable_extensions; do
14095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14096     ac_cv_prog_ac_ct_CC="gcc"
14097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14098     break 2
14099   fi
14100 done
14101 done
14102 IFS=$as_save_IFS
14103
14104 fi
14105 fi
14106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14107 if test -n "$ac_ct_CC"; then
14108   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14109 echo "${ECHO_T}$ac_ct_CC" >&6; }
14110 else
14111   { echo "$as_me:$LINENO: result: no" >&5
14112 echo "${ECHO_T}no" >&6; }
14113 fi
14114
14115   if test "x$ac_ct_CC" = x; then
14116     CC=""
14117   else
14118     case $cross_compiling:$ac_tool_warned in
14119 yes:)
14120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14121 whose name does not start with the host triplet.  If you think this
14122 configuration is useful to you, please write to autoconf@gnu.org." >&5
14123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14124 whose name does not start with the host triplet.  If you think this
14125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14126 ac_tool_warned=yes ;;
14127 esac
14128     CC=$ac_ct_CC
14129   fi
14130 else
14131   CC="$ac_cv_prog_CC"
14132 fi
14133
14134 if test -z "$CC"; then
14135           if test -n "$ac_tool_prefix"; then
14136     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14137 set dummy ${ac_tool_prefix}cc; ac_word=$2
14138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14140 if test "${ac_cv_prog_CC+set}" = set; then
14141   echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143   if test -n "$CC"; then
14144   ac_cv_prog_CC="$CC" # Let the user override the test.
14145 else
14146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14148 do
14149   IFS=$as_save_IFS
14150   test -z "$as_dir" && as_dir=.
14151   for ac_exec_ext in '' $ac_executable_extensions; do
14152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14153     ac_cv_prog_CC="${ac_tool_prefix}cc"
14154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14155     break 2
14156   fi
14157 done
14158 done
14159 IFS=$as_save_IFS
14160
14161 fi
14162 fi
14163 CC=$ac_cv_prog_CC
14164 if test -n "$CC"; then
14165   { echo "$as_me:$LINENO: result: $CC" >&5
14166 echo "${ECHO_T}$CC" >&6; }
14167 else
14168   { echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6; }
14170 fi
14171
14172
14173   fi
14174 fi
14175 if test -z "$CC"; then
14176   # Extract the first word of "cc", so it can be a program name with args.
14177 set dummy cc; ac_word=$2
14178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14180 if test "${ac_cv_prog_CC+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   if test -n "$CC"; then
14184   ac_cv_prog_CC="$CC" # Let the user override the test.
14185 else
14186   ac_prog_rejected=no
14187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14189 do
14190   IFS=$as_save_IFS
14191   test -z "$as_dir" && as_dir=.
14192   for ac_exec_ext in '' $ac_executable_extensions; do
14193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14194     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14195        ac_prog_rejected=yes
14196        continue
14197      fi
14198     ac_cv_prog_CC="cc"
14199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14200     break 2
14201   fi
14202 done
14203 done
14204 IFS=$as_save_IFS
14205
14206 if test $ac_prog_rejected = yes; then
14207   # We found a bogon in the path, so make sure we never use it.
14208   set dummy $ac_cv_prog_CC
14209   shift
14210   if test $# != 0; then
14211     # We chose a different compiler from the bogus one.
14212     # However, it has the same basename, so the bogon will be chosen
14213     # first if we set CC to just the basename; use the full file name.
14214     shift
14215     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14216   fi
14217 fi
14218 fi
14219 fi
14220 CC=$ac_cv_prog_CC
14221 if test -n "$CC"; then
14222   { echo "$as_me:$LINENO: result: $CC" >&5
14223 echo "${ECHO_T}$CC" >&6; }
14224 else
14225   { echo "$as_me:$LINENO: result: no" >&5
14226 echo "${ECHO_T}no" >&6; }
14227 fi
14228
14229
14230 fi
14231 if test -z "$CC"; then
14232   if test -n "$ac_tool_prefix"; then
14233   for ac_prog in cl.exe
14234   do
14235     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14239 if test "${ac_cv_prog_CC+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   if test -n "$CC"; then
14243   ac_cv_prog_CC="$CC" # Let the user override the test.
14244 else
14245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14246 for as_dir in $PATH
14247 do
14248   IFS=$as_save_IFS
14249   test -z "$as_dir" && as_dir=.
14250   for ac_exec_ext in '' $ac_executable_extensions; do
14251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14252     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14254     break 2
14255   fi
14256 done
14257 done
14258 IFS=$as_save_IFS
14259
14260 fi
14261 fi
14262 CC=$ac_cv_prog_CC
14263 if test -n "$CC"; then
14264   { echo "$as_me:$LINENO: result: $CC" >&5
14265 echo "${ECHO_T}$CC" >&6; }
14266 else
14267   { echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6; }
14269 fi
14270
14271
14272     test -n "$CC" && break
14273   done
14274 fi
14275 if test -z "$CC"; then
14276   ac_ct_CC=$CC
14277   for ac_prog in cl.exe
14278 do
14279   # Extract the first word of "$ac_prog", so it can be a program name with args.
14280 set dummy $ac_prog; ac_word=$2
14281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286   if test -n "$ac_ct_CC"; then
14287   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14291 do
14292   IFS=$as_save_IFS
14293   test -z "$as_dir" && as_dir=.
14294   for ac_exec_ext in '' $ac_executable_extensions; do
14295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296     ac_cv_prog_ac_ct_CC="$ac_prog"
14297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14298     break 2
14299   fi
14300 done
14301 done
14302 IFS=$as_save_IFS
14303
14304 fi
14305 fi
14306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14307 if test -n "$ac_ct_CC"; then
14308   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14309 echo "${ECHO_T}$ac_ct_CC" >&6; }
14310 else
14311   { echo "$as_me:$LINENO: result: no" >&5
14312 echo "${ECHO_T}no" >&6; }
14313 fi
14314
14315
14316   test -n "$ac_ct_CC" && break
14317 done
14318
14319   if test "x$ac_ct_CC" = x; then
14320     CC=""
14321   else
14322     case $cross_compiling:$ac_tool_warned in
14323 yes:)
14324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14325 whose name does not start with the host triplet.  If you think this
14326 configuration is useful to you, please write to autoconf@gnu.org." >&5
14327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14328 whose name does not start with the host triplet.  If you think this
14329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14330 ac_tool_warned=yes ;;
14331 esac
14332     CC=$ac_ct_CC
14333   fi
14334 fi
14335
14336 fi
14337
14338
14339 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14340 See \`config.log' for more details." >&5
14341 echo "$as_me: error: no acceptable C compiler found in \$PATH
14342 See \`config.log' for more details." >&2;}
14343    { (exit 1); exit 1; }; }
14344
14345 # Provide some information about the compiler.
14346 echo "$as_me:$LINENO: checking for C compiler version" >&5
14347 ac_compiler=`set X $ac_compile; echo $2`
14348 { (ac_try="$ac_compiler --version >&5"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_compiler --version >&5") 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }
14358 { (ac_try="$ac_compiler -v >&5"
14359 case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_compiler -v >&5") 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }
14368 { (ac_try="$ac_compiler -V >&5"
14369 case "(($ac_try" in
14370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371   *) ac_try_echo=$ac_try;;
14372 esac
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374   (eval "$ac_compiler -V >&5") 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }
14378
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385
14386 int
14387 main ()
14388 {
14389
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394 ac_clean_files_save=$ac_clean_files
14395 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14396 # Try to create an executable without -o first, disregard a.out.
14397 # It will help us diagnose broken compilers, and finding out an intuition
14398 # of exeext.
14399 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14400 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14401 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14402 #
14403 # List of possible output files, starting from the most likely.
14404 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14405 # only as a last resort.  b.out is created by i960 compilers.
14406 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14407 #
14408 # The IRIX 6 linker writes into existing files which may not be
14409 # executable, retaining their permissions.  Remove them first so a
14410 # subsequent execution test works.
14411 ac_rmfiles=
14412 for ac_file in $ac_files
14413 do
14414   case $ac_file in
14415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14416     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14417   esac
14418 done
14419 rm -f $ac_rmfiles
14420
14421 if { (ac_try="$ac_link_default"
14422 case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427   (eval "$ac_link_default") 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; then
14431   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14433 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14434 # so that the user can short-circuit this test for compilers unknown to
14435 # Autoconf.
14436 for ac_file in $ac_files ''
14437 do
14438   test -f "$ac_file" || continue
14439   case $ac_file in
14440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14441         ;;
14442     [ab].out )
14443         # We found the default executable, but exeext='' is most
14444         # certainly right.
14445         break;;
14446     *.* )
14447         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14448         then :; else
14449            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14450         fi
14451         # We set ac_cv_exeext here because the later test for it is not
14452         # safe: cross compilers may not add the suffix if given an `-o'
14453         # argument, so we may need to know it at that point already.
14454         # Even if this section looks crufty: it has the advantage of
14455         # actually working.
14456         break;;
14457     * )
14458         break;;
14459   esac
14460 done
14461 test "$ac_cv_exeext" = no && ac_cv_exeext=
14462
14463 else
14464   ac_file=''
14465 fi
14466
14467 { echo "$as_me:$LINENO: result: $ac_file" >&5
14468 echo "${ECHO_T}$ac_file" >&6; }
14469 if test -z "$ac_file"; then
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14474 See \`config.log' for more details." >&5
14475 echo "$as_me: error: C compiler cannot create executables
14476 See \`config.log' for more details." >&2;}
14477    { (exit 77); exit 77; }; }
14478 fi
14479
14480 ac_exeext=$ac_cv_exeext
14481
14482 # Check that the compiler produces executables we can run.  If not, either
14483 # the compiler is broken, or we cross compile.
14484 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14485 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14486 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14487 # If not cross compiling, check that we can run a simple program.
14488 if test "$cross_compiling" != yes; then
14489   if { ac_try='./$ac_file'
14490   { (case "(($ac_try" in
14491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492   *) ac_try_echo=$ac_try;;
14493 esac
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495   (eval "$ac_try") 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499     cross_compiling=no
14500   else
14501     if test "$cross_compiling" = maybe; then
14502         cross_compiling=yes
14503     else
14504         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14505 If you meant to cross compile, use \`--host'.
14506 See \`config.log' for more details." >&5
14507 echo "$as_me: error: cannot run C compiled programs.
14508 If you meant to cross compile, use \`--host'.
14509 See \`config.log' for more details." >&2;}
14510    { (exit 1); exit 1; }; }
14511     fi
14512   fi
14513 fi
14514 { echo "$as_me:$LINENO: result: yes" >&5
14515 echo "${ECHO_T}yes" >&6; }
14516
14517 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14518 ac_clean_files=$ac_clean_files_save
14519 # Check that the compiler produces executables we can run.  If not, either
14520 # the compiler is broken, or we cross compile.
14521 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14522 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14523 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14524 echo "${ECHO_T}$cross_compiling" >&6; }
14525
14526 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14527 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_link") 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; then
14538   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14539 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14540 # work properly (i.e., refer to `conftest.exe'), while it won't with
14541 # `rm'.
14542 for ac_file in conftest.exe conftest conftest.*; do
14543   test -f "$ac_file" || continue
14544   case $ac_file in
14545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14546     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14547           break;;
14548     * ) break;;
14549   esac
14550 done
14551 else
14552   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14553 See \`config.log' for more details." >&5
14554 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14555 See \`config.log' for more details." >&2;}
14556    { (exit 1); exit 1; }; }
14557 fi
14558
14559 rm -f conftest$ac_cv_exeext
14560 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14561 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14562
14563 rm -f conftest.$ac_ext
14564 EXEEXT=$ac_cv_exeext
14565 ac_exeext=$EXEEXT
14566 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14567 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14568 if test "${ac_cv_objext+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h.  */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h.  */
14577
14578 int
14579 main ()
14580 {
14581
14582   ;
14583   return 0;
14584 }
14585 _ACEOF
14586 rm -f conftest.o conftest.obj
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_compile") 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; then
14597   for ac_file in conftest.o conftest.obj conftest.*; do
14598   test -f "$ac_file" || continue;
14599   case $ac_file in
14600     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14601     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14602        break;;
14603   esac
14604 done
14605 else
14606   echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14608
14609 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14610 See \`config.log' for more details." >&5
14611 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14612 See \`config.log' for more details." >&2;}
14613    { (exit 1); exit 1; }; }
14614 fi
14615
14616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14617 fi
14618 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14619 echo "${ECHO_T}$ac_cv_objext" >&6; }
14620 OBJEXT=$ac_cv_objext
14621 ac_objext=$OBJEXT
14622 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14623 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633
14634 int
14635 main ()
14636 {
14637 #ifndef __GNUC__
14638        choke me
14639 #endif
14640
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 rm -f conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_compile") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } && {
14659          test -z "$ac_c_werror_flag" ||
14660          test ! -s conftest.err
14661        } && test -s conftest.$ac_objext; then
14662   ac_compiler_gnu=yes
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667         ac_compiler_gnu=no
14668 fi
14669
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14672
14673 fi
14674 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14676 GCC=`test $ac_compiler_gnu = yes && echo yes`
14677 ac_test_CFLAGS=${CFLAGS+set}
14678 ac_save_CFLAGS=$CFLAGS
14679 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14680 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14681 if test "${ac_cv_prog_cc_g+set}" = set; then
14682   echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684   ac_save_c_werror_flag=$ac_c_werror_flag
14685    ac_c_werror_flag=yes
14686    ac_cv_prog_cc_g=no
14687    CFLAGS="-g"
14688    cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694
14695 int
14696 main ()
14697 {
14698
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext
14704 if { (ac_try="$ac_compile"
14705 case "(($ac_try" in
14706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707   *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710   (eval "$ac_compile") 2>conftest.er1
14711   ac_status=$?
14712   grep -v '^ *+' conftest.er1 >conftest.err
14713   rm -f conftest.er1
14714   cat conftest.err >&5
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); } && {
14717          test -z "$ac_c_werror_flag" ||
14718          test ! -s conftest.err
14719        } && test -s conftest.$ac_objext; then
14720   ac_cv_prog_cc_g=yes
14721 else
14722   echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14724
14725         CFLAGS=""
14726       cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732
14733 int
14734 main ()
14735 {
14736
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest.$ac_objext
14742 if { (ac_try="$ac_compile"
14743 case "(($ac_try" in
14744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745   *) ac_try_echo=$ac_try;;
14746 esac
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748   (eval "$ac_compile") 2>conftest.er1
14749   ac_status=$?
14750   grep -v '^ *+' conftest.er1 >conftest.err
14751   rm -f conftest.er1
14752   cat conftest.err >&5
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } && {
14755          test -z "$ac_c_werror_flag" ||
14756          test ! -s conftest.err
14757        } && test -s conftest.$ac_objext; then
14758   :
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763         ac_c_werror_flag=$ac_save_c_werror_flag
14764          CFLAGS="-g"
14765          cat >conftest.$ac_ext <<_ACEOF
14766 /* confdefs.h.  */
14767 _ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h.  */
14771
14772 int
14773 main ()
14774 {
14775
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (ac_try="$ac_compile"
14782 case "(($ac_try" in
14783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784   *) ac_try_echo=$ac_try;;
14785 esac
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787   (eval "$ac_compile") 2>conftest.er1
14788   ac_status=$?
14789   grep -v '^ *+' conftest.er1 >conftest.err
14790   rm -f conftest.er1
14791   cat conftest.err >&5
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); } && {
14794          test -z "$ac_c_werror_flag" ||
14795          test ! -s conftest.err
14796        } && test -s conftest.$ac_objext; then
14797   ac_cv_prog_cc_g=yes
14798 else
14799   echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802
14803 fi
14804
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 fi
14807
14808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14809 fi
14810
14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812    ac_c_werror_flag=$ac_save_c_werror_flag
14813 fi
14814 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14816 if test "$ac_test_CFLAGS" = set; then
14817   CFLAGS=$ac_save_CFLAGS
14818 elif test $ac_cv_prog_cc_g = yes; then
14819   if test "$GCC" = yes; then
14820     CFLAGS="-g -O2"
14821   else
14822     CFLAGS="-g"
14823   fi
14824 else
14825   if test "$GCC" = yes; then
14826     CFLAGS="-O2"
14827   else
14828     CFLAGS=
14829   fi
14830 fi
14831 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14832 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14833 if test "${ac_cv_prog_cc_c89+set}" = set; then
14834   echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836   ac_cv_prog_cc_c89=no
14837 ac_save_CC=$CC
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h.  */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h.  */
14844 #include <stdarg.h>
14845 #include <stdio.h>
14846 #include <sys/types.h>
14847 #include <sys/stat.h>
14848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14849 struct buf { int x; };
14850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14851 static char *e (p, i)
14852      char **p;
14853      int i;
14854 {
14855   return p[i];
14856 }
14857 static char *f (char * (*g) (char **, int), char **p, ...)
14858 {
14859   char *s;
14860   va_list v;
14861   va_start (v,p);
14862   s = g (p, va_arg (v,int));
14863   va_end (v);
14864   return s;
14865 }
14866
14867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14868    function prototypes and stuff, but not '\xHH' hex character constants.
14869    These don't provoke an error unfortunately, instead are silently treated
14870    as 'x'.  The following induces an error, until -std is added to get
14871    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14872    array size at least.  It's necessary to write '\x00'==0 to get something
14873    that's true only with -std.  */
14874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14875
14876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14877    inside strings and character constants.  */
14878 #define FOO(x) 'x'
14879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14880
14881 int test (int i, double x);
14882 struct s1 {int (*f) (int a);};
14883 struct s2 {int (*f) (double a);};
14884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14885 int argc;
14886 char **argv;
14887 int
14888 main ()
14889 {
14890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14891   ;
14892   return 0;
14893 }
14894 _ACEOF
14895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14896         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14897 do
14898   CC="$ac_save_CC $ac_arg"
14899   rm -f conftest.$ac_objext
14900 if { (ac_try="$ac_compile"
14901 case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906   (eval "$ac_compile") 2>conftest.er1
14907   ac_status=$?
14908   grep -v '^ *+' conftest.er1 >conftest.err
14909   rm -f conftest.er1
14910   cat conftest.err >&5
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } && {
14913          test -z "$ac_c_werror_flag" ||
14914          test ! -s conftest.err
14915        } && test -s conftest.$ac_objext; then
14916   ac_cv_prog_cc_c89=$ac_arg
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921
14922 fi
14923
14924 rm -f core conftest.err conftest.$ac_objext
14925   test "x$ac_cv_prog_cc_c89" != "xno" && break
14926 done
14927 rm -f conftest.$ac_ext
14928 CC=$ac_save_CC
14929
14930 fi
14931 # AC_CACHE_VAL
14932 case "x$ac_cv_prog_cc_c89" in
14933   x)
14934     { echo "$as_me:$LINENO: result: none needed" >&5
14935 echo "${ECHO_T}none needed" >&6; } ;;
14936   xno)
14937     { echo "$as_me:$LINENO: result: unsupported" >&5
14938 echo "${ECHO_T}unsupported" >&6; } ;;
14939   *)
14940     CC="$CC $ac_cv_prog_cc_c89"
14941     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14942 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14943 esac
14944
14945
14946 ac_ext=c
14947 ac_cpp='$CPP $CPPFLAGS'
14948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14951
14952
14953
14954
14955     ac_ext=c
14956 ac_cpp='$CPP $CPPFLAGS'
14957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14960
14961     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14962 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14963 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966   cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972
14973 int
14974 main ()
14975 {
14976
14977              #ifndef __INTEL_COMPILER
14978                 choke me
14979              #endif
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_compile") 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } && {
14999          test -z "$ac_c_werror_flag" ||
15000          test ! -s conftest.err
15001        } && test -s conftest.$ac_objext; then
15002   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15003 else
15004   echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007         bakefile_cv_c_compiler___INTEL_COMPILER=no
15008
15009 fi
15010
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012
15013
15014 fi
15015 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15016 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15017     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15018         :; INTELCC=yes
15019     else
15020         :;
15021     fi
15022     ac_ext=c
15023 ac_cpp='$CPP $CPPFLAGS'
15024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15027
15028
15029
15030
15031         if test "$INTELCC" = "yes"; then
15032
15033
15034     ac_ext=c
15035 ac_cpp='$CPP $CPPFLAGS'
15036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15039
15040     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15041 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15042 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045   cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051
15052 int
15053 main ()
15054 {
15055
15056              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15057                 choke me
15058              #endif
15059
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext
15065 if { (ac_try="$ac_compile"
15066 case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_compile") 2>conftest.er1
15072   ac_status=$?
15073   grep -v '^ *+' conftest.er1 >conftest.err
15074   rm -f conftest.er1
15075   cat conftest.err >&5
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); } && {
15078          test -z "$ac_c_werror_flag" ||
15079          test ! -s conftest.err
15080        } && test -s conftest.$ac_objext; then
15081   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15087
15088 fi
15089
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091
15092
15093 fi
15094 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15095 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15096     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15097         :; INTELCC8=yes
15098     else
15099         :;
15100     fi
15101     ac_ext=c
15102 ac_cpp='$CPP $CPPFLAGS'
15103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15106
15107
15108
15109
15110
15111     ac_ext=c
15112 ac_cpp='$CPP $CPPFLAGS'
15113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15116
15117     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15118 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15119 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15120   echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122   cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h.  */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h.  */
15128
15129 int
15130 main ()
15131 {
15132
15133              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15134                 choke me
15135              #endif
15136
15137   ;
15138   return 0;
15139 }
15140 _ACEOF
15141 rm -f conftest.$ac_objext
15142 if { (ac_try="$ac_compile"
15143 case "(($ac_try" in
15144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145   *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148   (eval "$ac_compile") 2>conftest.er1
15149   ac_status=$?
15150   grep -v '^ *+' conftest.er1 >conftest.err
15151   rm -f conftest.er1
15152   cat conftest.err >&5
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); } && {
15155          test -z "$ac_c_werror_flag" ||
15156          test ! -s conftest.err
15157        } && test -s conftest.$ac_objext; then
15158   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15164
15165 fi
15166
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168
15169
15170 fi
15171 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15172 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15173     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15174         :; INTELCC10=yes
15175     else
15176         :;
15177     fi
15178     ac_ext=c
15179 ac_cpp='$CPP $CPPFLAGS'
15180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15183
15184
15185
15186     fi
15187
15188         if test "x$GCC" != "xyes"; then
15189         if test "xCC" = "xC"; then
15190             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15191 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15192 if test "${bakefile_cv_c_exto+set}" = set; then
15193   echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195   cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201
15202 int
15203 main ()
15204 {
15205
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext conftest.$ac_ext.o
15211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212   (eval $ac_compile) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; then
15216   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15217     case $ac_file in
15218         conftest.$ac_ext.o)
15219             bakefile_cv_c_exto="-ext o"
15220             ;;
15221         *)
15222             ;;
15223     esac
15224 done
15225 else
15226   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15227 See \`config.log' for more details." >&5
15228 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15229 See \`config.log' for more details." >&2;}
15230    { (exit 1); exit 1; }; }
15231
15232 fi
15233
15234 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15235
15236 fi
15237 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15238 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15239 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15240     if test "c" = "c"; then
15241         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15242     fi
15243     if test "c" = "cxx"; then
15244         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15245     fi
15246 fi
15247
15248             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15249                 unset ac_cv_prog_cc_g
15250                 ac_test_CFLAGS=${CFLAGS+set}
15251 ac_save_CFLAGS=$CFLAGS
15252 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15253 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15254 if test "${ac_cv_prog_cc_g+set}" = set; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   ac_save_c_werror_flag=$ac_c_werror_flag
15258    ac_c_werror_flag=yes
15259    ac_cv_prog_cc_g=no
15260    CFLAGS="-g"
15261    cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h.  */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h.  */
15267
15268 int
15269 main ()
15270 {
15271
15272   ;
15273   return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext
15277 if { (ac_try="$ac_compile"
15278 case "(($ac_try" in
15279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280   *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283   (eval "$ac_compile") 2>conftest.er1
15284   ac_status=$?
15285   grep -v '^ *+' conftest.er1 >conftest.err
15286   rm -f conftest.er1
15287   cat conftest.err >&5
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); } && {
15290          test -z "$ac_c_werror_flag" ||
15291          test ! -s conftest.err
15292        } && test -s conftest.$ac_objext; then
15293   ac_cv_prog_cc_g=yes
15294 else
15295   echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298         CFLAGS=""
15299       cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h.  */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h.  */
15305
15306 int
15307 main ()
15308 {
15309
15310   ;
15311   return 0;
15312 }
15313 _ACEOF
15314 rm -f conftest.$ac_objext
15315 if { (ac_try="$ac_compile"
15316 case "(($ac_try" in
15317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318   *) ac_try_echo=$ac_try;;
15319 esac
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321   (eval "$ac_compile") 2>conftest.er1
15322   ac_status=$?
15323   grep -v '^ *+' conftest.er1 >conftest.err
15324   rm -f conftest.er1
15325   cat conftest.err >&5
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } && {
15328          test -z "$ac_c_werror_flag" ||
15329          test ! -s conftest.err
15330        } && test -s conftest.$ac_objext; then
15331   :
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336         ac_c_werror_flag=$ac_save_c_werror_flag
15337          CFLAGS="-g"
15338          cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h.  */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h.  */
15344
15345 int
15346 main ()
15347 {
15348
15349   ;
15350   return 0;
15351 }
15352 _ACEOF
15353 rm -f conftest.$ac_objext
15354 if { (ac_try="$ac_compile"
15355 case "(($ac_try" in
15356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357   *) ac_try_echo=$ac_try;;
15358 esac
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360   (eval "$ac_compile") 2>conftest.er1
15361   ac_status=$?
15362   grep -v '^ *+' conftest.er1 >conftest.err
15363   rm -f conftest.er1
15364   cat conftest.err >&5
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); } && {
15367          test -z "$ac_c_werror_flag" ||
15368          test ! -s conftest.err
15369        } && test -s conftest.$ac_objext; then
15370   ac_cv_prog_cc_g=yes
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375
15376 fi
15377
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 fi
15380
15381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 fi
15383
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385    ac_c_werror_flag=$ac_save_c_werror_flag
15386 fi
15387 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15388 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15389 if test "$ac_test_CFLAGS" = set; then
15390   CFLAGS=$ac_save_CFLAGS
15391 elif test $ac_cv_prog_cc_g = yes; then
15392   if test "$GCC" = yes; then
15393     CFLAGS="-g -O2"
15394   else
15395     CFLAGS="-g"
15396   fi
15397 else
15398   if test "$GCC" = yes; then
15399     CFLAGS="-O2"
15400   else
15401     CFLAGS=
15402   fi
15403 fi
15404             fi
15405         fi
15406
15407                         case `uname -s` in
15408             AIX*)
15409
15410
15411     ac_ext=c
15412 ac_cpp='$CPP $CPPFLAGS'
15413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15416
15417     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15418 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15419 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428
15429 int
15430 main ()
15431 {
15432
15433              #ifndef __xlC__
15434                 choke me
15435              #endif
15436
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (ac_try="$ac_compile"
15443 case "(($ac_try" in
15444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445   *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448   (eval "$ac_compile") 2>conftest.er1
15449   ac_status=$?
15450   grep -v '^ *+' conftest.er1 >conftest.err
15451   rm -f conftest.er1
15452   cat conftest.err >&5
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } && {
15455          test -z "$ac_c_werror_flag" ||
15456          test ! -s conftest.err
15457        } && test -s conftest.$ac_objext; then
15458   bakefile_cv_c_compiler___xlC__=yes
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463         bakefile_cv_c_compiler___xlC__=no
15464
15465 fi
15466
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468
15469
15470 fi
15471 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15472 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15473     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15474         :; XLCC=yes
15475     else
15476         :;
15477     fi
15478     ac_ext=c
15479 ac_cpp='$CPP $CPPFLAGS'
15480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15483
15484
15485
15486                 ;;
15487
15488             Darwin)
15489
15490
15491     ac_ext=c
15492 ac_cpp='$CPP $CPPFLAGS'
15493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15496
15497     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15498 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15499 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508
15509 int
15510 main ()
15511 {
15512
15513              #ifndef __MWERKS__
15514                 choke me
15515              #endif
15516
15517   ;
15518   return 0;
15519 }
15520 _ACEOF
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525   *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528   (eval "$ac_compile") 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } && {
15535          test -z "$ac_c_werror_flag" ||
15536          test ! -s conftest.err
15537        } && test -s conftest.$ac_objext; then
15538   bakefile_cv_c_compiler___MWERKS__=yes
15539 else
15540   echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543         bakefile_cv_c_compiler___MWERKS__=no
15544
15545 fi
15546
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15548
15549
15550 fi
15551 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15552 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15553     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15554         :; MWCC=yes
15555     else
15556         :;
15557     fi
15558     ac_ext=c
15559 ac_cpp='$CPP $CPPFLAGS'
15560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15563
15564
15565
15566                 if test "$MWCC" != "yes"; then
15567
15568
15569     ac_ext=c
15570 ac_cpp='$CPP $CPPFLAGS'
15571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15574
15575     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15576 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15577 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15578   echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580   cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586
15587 int
15588 main ()
15589 {
15590
15591              #ifndef __xlC__
15592                 choke me
15593              #endif
15594
15595   ;
15596   return 0;
15597 }
15598 _ACEOF
15599 rm -f conftest.$ac_objext
15600 if { (ac_try="$ac_compile"
15601 case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_compile") 2>conftest.er1
15607   ac_status=$?
15608   grep -v '^ *+' conftest.er1 >conftest.err
15609   rm -f conftest.er1
15610   cat conftest.err >&5
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); } && {
15613          test -z "$ac_c_werror_flag" ||
15614          test ! -s conftest.err
15615        } && test -s conftest.$ac_objext; then
15616   bakefile_cv_c_compiler___xlC__=yes
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621         bakefile_cv_c_compiler___xlC__=no
15622
15623 fi
15624
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626
15627
15628 fi
15629 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15630 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15631     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15632         :; XLCC=yes
15633     else
15634         :;
15635     fi
15636     ac_ext=c
15637 ac_cpp='$CPP $CPPFLAGS'
15638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15641
15642
15643
15644                 fi
15645                 ;;
15646
15647             IRIX*)
15648
15649
15650     ac_ext=c
15651 ac_cpp='$CPP $CPPFLAGS'
15652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15655
15656     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15657 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15658 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15659   echo $ECHO_N "(cached) $ECHO_C" >&6
15660 else
15661   cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667
15668 int
15669 main ()
15670 {
15671
15672              #ifndef _SGI_COMPILER_VERSION
15673                 choke me
15674              #endif
15675
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext
15681 if { (ac_try="$ac_compile"
15682 case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_compile") 2>conftest.er1
15688   ac_status=$?
15689   grep -v '^ *+' conftest.er1 >conftest.err
15690   rm -f conftest.er1
15691   cat conftest.err >&5
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } && {
15694          test -z "$ac_c_werror_flag" ||
15695          test ! -s conftest.err
15696        } && test -s conftest.$ac_objext; then
15697   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15703
15704 fi
15705
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707
15708
15709 fi
15710 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15711 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15712     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15713         :; SGICC=yes
15714     else
15715         :;
15716     fi
15717     ac_ext=c
15718 ac_cpp='$CPP $CPPFLAGS'
15719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15722
15723
15724
15725                 ;;
15726
15727             Linux*)
15728                                                 if test "$INTELCC" != "yes"; then
15729
15730
15731     ac_ext=c
15732 ac_cpp='$CPP $CPPFLAGS'
15733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15736
15737     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15738 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15739 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742   cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h.  */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h.  */
15748
15749 int
15750 main ()
15751 {
15752
15753              #ifndef __SUNPRO_C
15754                 choke me
15755              #endif
15756
15757   ;
15758   return 0;
15759 }
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765   *) ac_try_echo=$ac_try;;
15766 esac
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768   (eval "$ac_compile") 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } && {
15775          test -z "$ac_c_werror_flag" ||
15776          test ! -s conftest.err
15777        } && test -s conftest.$ac_objext; then
15778   bakefile_cv_c_compiler___SUNPRO_C=yes
15779 else
15780   echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783         bakefile_cv_c_compiler___SUNPRO_C=no
15784
15785 fi
15786
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788
15789
15790 fi
15791 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15792 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15793     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15794         :; SUNCC=yes
15795     else
15796         :;
15797     fi
15798     ac_ext=c
15799 ac_cpp='$CPP $CPPFLAGS'
15800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15803
15804
15805
15806                 fi
15807                 ;;
15808
15809             HP-UX*)
15810
15811
15812     ac_ext=c
15813 ac_cpp='$CPP $CPPFLAGS'
15814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15817
15818     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15819 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15820 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15821   echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823   cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829
15830 int
15831 main ()
15832 {
15833
15834              #ifndef __HP_cc
15835                 choke me
15836              #endif
15837
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext
15843 if { (ac_try="$ac_compile"
15844 case "(($ac_try" in
15845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846   *) ac_try_echo=$ac_try;;
15847 esac
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849   (eval "$ac_compile") 2>conftest.er1
15850   ac_status=$?
15851   grep -v '^ *+' conftest.er1 >conftest.err
15852   rm -f conftest.er1
15853   cat conftest.err >&5
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } && {
15856          test -z "$ac_c_werror_flag" ||
15857          test ! -s conftest.err
15858        } && test -s conftest.$ac_objext; then
15859   bakefile_cv_c_compiler___HP_cc=yes
15860 else
15861   echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864         bakefile_cv_c_compiler___HP_cc=no
15865
15866 fi
15867
15868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869
15870
15871 fi
15872 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15873 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15874     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15875         :; HPCC=yes
15876     else
15877         :;
15878     fi
15879     ac_ext=c
15880 ac_cpp='$CPP $CPPFLAGS'
15881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15884
15885
15886
15887                 ;;
15888
15889             OSF1)
15890
15891
15892     ac_ext=c
15893 ac_cpp='$CPP $CPPFLAGS'
15894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15897
15898     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15899 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15900 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909
15910 int
15911 main ()
15912 {
15913
15914              #ifndef __DECC
15915                 choke me
15916              #endif
15917
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929   (eval "$ac_compile") 2>conftest.er1
15930   ac_status=$?
15931   grep -v '^ *+' conftest.er1 >conftest.err
15932   rm -f conftest.er1
15933   cat conftest.err >&5
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); } && {
15936          test -z "$ac_c_werror_flag" ||
15937          test ! -s conftest.err
15938        } && test -s conftest.$ac_objext; then
15939   bakefile_cv_c_compiler___DECC=yes
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944         bakefile_cv_c_compiler___DECC=no
15945
15946 fi
15947
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949
15950
15951 fi
15952 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15953 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15954     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15955         :; COMPAQCC=yes
15956     else
15957         :;
15958     fi
15959     ac_ext=c
15960 ac_cpp='$CPP $CPPFLAGS'
15961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15964
15965
15966
15967                 ;;
15968
15969             SunOS)
15970
15971
15972     ac_ext=c
15973 ac_cpp='$CPP $CPPFLAGS'
15974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15977
15978     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15979 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15980 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989
15990 int
15991 main ()
15992 {
15993
15994              #ifndef __SUNPRO_C
15995                 choke me
15996              #endif
15997
15998   ;
15999   return 0;
16000 }
16001 _ACEOF
16002 rm -f conftest.$ac_objext
16003 if { (ac_try="$ac_compile"
16004 case "(($ac_try" in
16005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006   *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009   (eval "$ac_compile") 2>conftest.er1
16010   ac_status=$?
16011   grep -v '^ *+' conftest.er1 >conftest.err
16012   rm -f conftest.er1
16013   cat conftest.err >&5
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); } && {
16016          test -z "$ac_c_werror_flag" ||
16017          test ! -s conftest.err
16018        } && test -s conftest.$ac_objext; then
16019   bakefile_cv_c_compiler___SUNPRO_C=yes
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024         bakefile_cv_c_compiler___SUNPRO_C=no
16025
16026 fi
16027
16028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029
16030
16031 fi
16032 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16033 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16034     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16035         :; SUNCC=yes
16036     else
16037         :;
16038     fi
16039     ac_ext=c
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16044
16045
16046
16047                 ;;
16048         esac
16049     fi
16050
16051
16052
16053 ac_ext=c
16054 ac_cpp='$CPP $CPPFLAGS'
16055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16058 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16059 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16060 # On Suns, sometimes $CPP names a directory.
16061 if test -n "$CPP" && test -d "$CPP"; then
16062   CPP=
16063 fi
16064 if test -z "$CPP"; then
16065   if test "${ac_cv_prog_CPP+set}" = set; then
16066   echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068       # Double quotes because CPP needs to be expanded
16069     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16070     do
16071       ac_preproc_ok=false
16072 for ac_c_preproc_warn_flag in '' yes
16073 do
16074   # Use a header file that comes with gcc, so configuring glibc
16075   # with a fresh cross-compiler works.
16076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077   # <limits.h> exists even on freestanding compilers.
16078   # On the NeXT, cc -E runs the code through the compiler's parser,
16079   # not just through cpp. "Syntax error" is here to catch this case.
16080   cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 #ifdef __STDC__
16087 # include <limits.h>
16088 #else
16089 # include <assert.h>
16090 #endif
16091                      Syntax error
16092 _ACEOF
16093 if { (ac_try="$ac_cpp conftest.$ac_ext"
16094 case "(($ac_try" in
16095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096   *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16100   ac_status=$?
16101   grep -v '^ *+' conftest.er1 >conftest.err
16102   rm -f conftest.er1
16103   cat conftest.err >&5
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } >/dev/null && {
16106          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16107          test ! -s conftest.err
16108        }; then
16109   :
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114   # Broken: fails on valid input.
16115 continue
16116 fi
16117
16118 rm -f conftest.err conftest.$ac_ext
16119
16120   # OK, works on sane cases.  Now check whether nonexistent headers
16121   # can be detected and how.
16122   cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h.  */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h.  */
16128 #include <ac_nonexistent.h>
16129 _ACEOF
16130 if { (ac_try="$ac_cpp conftest.$ac_ext"
16131 case "(($ac_try" in
16132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133   *) ac_try_echo=$ac_try;;
16134 esac
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16137   ac_status=$?
16138   grep -v '^ *+' conftest.er1 >conftest.err
16139   rm -f conftest.er1
16140   cat conftest.err >&5
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } >/dev/null && {
16143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16144          test ! -s conftest.err
16145        }; then
16146   # Broken: success on invalid input.
16147 continue
16148 else
16149   echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16151
16152   # Passes both tests.
16153 ac_preproc_ok=:
16154 break
16155 fi
16156
16157 rm -f conftest.err conftest.$ac_ext
16158
16159 done
16160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16161 rm -f conftest.err conftest.$ac_ext
16162 if $ac_preproc_ok; then
16163   break
16164 fi
16165
16166     done
16167     ac_cv_prog_CPP=$CPP
16168
16169 fi
16170   CPP=$ac_cv_prog_CPP
16171 else
16172   ac_cv_prog_CPP=$CPP
16173 fi
16174 { echo "$as_me:$LINENO: result: $CPP" >&5
16175 echo "${ECHO_T}$CPP" >&6; }
16176 ac_preproc_ok=false
16177 for ac_c_preproc_warn_flag in '' yes
16178 do
16179   # Use a header file that comes with gcc, so configuring glibc
16180   # with a fresh cross-compiler works.
16181   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16182   # <limits.h> exists even on freestanding compilers.
16183   # On the NeXT, cc -E runs the code through the compiler's parser,
16184   # not just through cpp. "Syntax error" is here to catch this case.
16185   cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 #ifdef __STDC__
16192 # include <limits.h>
16193 #else
16194 # include <assert.h>
16195 #endif
16196                      Syntax error
16197 _ACEOF
16198 if { (ac_try="$ac_cpp conftest.$ac_ext"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } >/dev/null && {
16211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16212          test ! -s conftest.err
16213        }; then
16214   :
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219   # Broken: fails on valid input.
16220 continue
16221 fi
16222
16223 rm -f conftest.err conftest.$ac_ext
16224
16225   # OK, works on sane cases.  Now check whether nonexistent headers
16226   # can be detected and how.
16227   cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16233 #include <ac_nonexistent.h>
16234 _ACEOF
16235 if { (ac_try="$ac_cpp conftest.$ac_ext"
16236 case "(($ac_try" in
16237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238   *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16242   ac_status=$?
16243   grep -v '^ *+' conftest.er1 >conftest.err
16244   rm -f conftest.er1
16245   cat conftest.err >&5
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); } >/dev/null && {
16248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16249          test ! -s conftest.err
16250        }; then
16251   # Broken: success on invalid input.
16252 continue
16253 else
16254   echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257   # Passes both tests.
16258 ac_preproc_ok=:
16259 break
16260 fi
16261
16262 rm -f conftest.err conftest.$ac_ext
16263
16264 done
16265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16266 rm -f conftest.err conftest.$ac_ext
16267 if $ac_preproc_ok; then
16268   :
16269 else
16270   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16271 See \`config.log' for more details." >&5
16272 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16273 See \`config.log' for more details." >&2;}
16274    { (exit 1); exit 1; }; }
16275 fi
16276
16277 ac_ext=c
16278 ac_cpp='$CPP $CPPFLAGS'
16279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16282
16283
16284 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16285 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16286 if test "${ac_cv_path_GREP+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   # Extract the first word of "grep ggrep" to use in msg output
16290 if test -z "$GREP"; then
16291 set dummy grep ggrep; ac_prog_name=$2
16292 if test "${ac_cv_path_GREP+set}" = set; then
16293   echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295   ac_path_GREP_found=false
16296 # Loop through the user's path and test for each of PROGNAME-LIST
16297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16299 do
16300   IFS=$as_save_IFS
16301   test -z "$as_dir" && as_dir=.
16302   for ac_prog in grep ggrep; do
16303   for ac_exec_ext in '' $ac_executable_extensions; do
16304     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16305     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16306     # Check for GNU ac_path_GREP and select it if it is found.
16307   # Check for GNU $ac_path_GREP
16308 case `"$ac_path_GREP" --version 2>&1` in
16309 *GNU*)
16310   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16311 *)
16312   ac_count=0
16313   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16314   while :
16315   do
16316     cat "conftest.in" "conftest.in" >"conftest.tmp"
16317     mv "conftest.tmp" "conftest.in"
16318     cp "conftest.in" "conftest.nl"
16319     echo 'GREP' >> "conftest.nl"
16320     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16321     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16322     ac_count=`expr $ac_count + 1`
16323     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16324       # Best one so far, save it but keep looking for a better one
16325       ac_cv_path_GREP="$ac_path_GREP"
16326       ac_path_GREP_max=$ac_count
16327     fi
16328     # 10*(2^10) chars as input seems more than enough
16329     test $ac_count -gt 10 && break
16330   done
16331   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16332 esac
16333
16334
16335     $ac_path_GREP_found && break 3
16336   done
16337 done
16338
16339 done
16340 IFS=$as_save_IFS
16341
16342
16343 fi
16344
16345 GREP="$ac_cv_path_GREP"
16346 if test -z "$GREP"; then
16347   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16348 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16349    { (exit 1); exit 1; }; }
16350 fi
16351
16352 else
16353   ac_cv_path_GREP=$GREP
16354 fi
16355
16356
16357 fi
16358 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16359 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16360  GREP="$ac_cv_path_GREP"
16361
16362
16363 { echo "$as_me:$LINENO: checking for egrep" >&5
16364 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16365 if test "${ac_cv_path_EGREP+set}" = set; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16369    then ac_cv_path_EGREP="$GREP -E"
16370    else
16371      # Extract the first word of "egrep" to use in msg output
16372 if test -z "$EGREP"; then
16373 set dummy egrep; ac_prog_name=$2
16374 if test "${ac_cv_path_EGREP+set}" = set; then
16375   echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377   ac_path_EGREP_found=false
16378 # Loop through the user's path and test for each of PROGNAME-LIST
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16381 do
16382   IFS=$as_save_IFS
16383   test -z "$as_dir" && as_dir=.
16384   for ac_prog in egrep; do
16385   for ac_exec_ext in '' $ac_executable_extensions; do
16386     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16387     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16388     # Check for GNU ac_path_EGREP and select it if it is found.
16389   # Check for GNU $ac_path_EGREP
16390 case `"$ac_path_EGREP" --version 2>&1` in
16391 *GNU*)
16392   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16393 *)
16394   ac_count=0
16395   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16396   while :
16397   do
16398     cat "conftest.in" "conftest.in" >"conftest.tmp"
16399     mv "conftest.tmp" "conftest.in"
16400     cp "conftest.in" "conftest.nl"
16401     echo 'EGREP' >> "conftest.nl"
16402     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16403     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16404     ac_count=`expr $ac_count + 1`
16405     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16406       # Best one so far, save it but keep looking for a better one
16407       ac_cv_path_EGREP="$ac_path_EGREP"
16408       ac_path_EGREP_max=$ac_count
16409     fi
16410     # 10*(2^10) chars as input seems more than enough
16411     test $ac_count -gt 10 && break
16412   done
16413   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16414 esac
16415
16416
16417     $ac_path_EGREP_found && break 3
16418   done
16419 done
16420
16421 done
16422 IFS=$as_save_IFS
16423
16424
16425 fi
16426
16427 EGREP="$ac_cv_path_EGREP"
16428 if test -z "$EGREP"; then
16429   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16430 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16431    { (exit 1); exit 1; }; }
16432 fi
16433
16434 else
16435   ac_cv_path_EGREP=$EGREP
16436 fi
16437
16438
16439    fi
16440 fi
16441 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16442 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16443  EGREP="$ac_cv_path_EGREP"
16444
16445
16446 if test $ac_cv_c_compiler_gnu = yes; then
16447     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16448 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16449 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16450   echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452     ac_pattern="Autoconf.*'x'"
16453   cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 #include <sgtty.h>
16460 Autoconf TIOCGETP
16461 _ACEOF
16462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16463   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16464   ac_cv_prog_gcc_traditional=yes
16465 else
16466   ac_cv_prog_gcc_traditional=no
16467 fi
16468 rm -f conftest*
16469
16470
16471   if test $ac_cv_prog_gcc_traditional = no; then
16472     cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h.  */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h.  */
16478 #include <termio.h>
16479 Autoconf TCGETA
16480 _ACEOF
16481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16482   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16483   ac_cv_prog_gcc_traditional=yes
16484 fi
16485 rm -f conftest*
16486
16487   fi
16488 fi
16489 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16490 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16491   if test $ac_cv_prog_gcc_traditional = yes; then
16492     CC="$CC -traditional"
16493   fi
16494 fi
16495
16496
16497 CXXFLAGS=${CXXFLAGS:=}
16498
16499
16500
16501     ac_ext=cpp
16502 ac_cpp='$CXXCPP $CPPFLAGS'
16503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16506 if test -z "$CXX"; then
16507   if test -n "$CCC"; then
16508     CXX=$CCC
16509   else
16510     if test -n "$ac_tool_prefix"; then
16511   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16512   do
16513     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16517 if test "${ac_cv_prog_CXX+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   if test -n "$CXX"; then
16521   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16522 else
16523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524 for as_dir in $PATH
16525 do
16526   IFS=$as_save_IFS
16527   test -z "$as_dir" && as_dir=.
16528   for ac_exec_ext in '' $ac_executable_extensions; do
16529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16530     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16532     break 2
16533   fi
16534 done
16535 done
16536 IFS=$as_save_IFS
16537
16538 fi
16539 fi
16540 CXX=$ac_cv_prog_CXX
16541 if test -n "$CXX"; then
16542   { echo "$as_me:$LINENO: result: $CXX" >&5
16543 echo "${ECHO_T}$CXX" >&6; }
16544 else
16545   { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16547 fi
16548
16549
16550     test -n "$CXX" && break
16551   done
16552 fi
16553 if test -z "$CXX"; then
16554   ac_ct_CXX=$CXX
16555   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16556 do
16557   # Extract the first word of "$ac_prog", so it can be a program name with args.
16558 set dummy $ac_prog; ac_word=$2
16559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16561 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564   if test -n "$ac_ct_CXX"; then
16565   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16566 else
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16569 do
16570   IFS=$as_save_IFS
16571   test -z "$as_dir" && as_dir=.
16572   for ac_exec_ext in '' $ac_executable_extensions; do
16573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16574     ac_cv_prog_ac_ct_CXX="$ac_prog"
16575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16576     break 2
16577   fi
16578 done
16579 done
16580 IFS=$as_save_IFS
16581
16582 fi
16583 fi
16584 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16585 if test -n "$ac_ct_CXX"; then
16586   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16587 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16588 else
16589   { echo "$as_me:$LINENO: result: no" >&5
16590 echo "${ECHO_T}no" >&6; }
16591 fi
16592
16593
16594   test -n "$ac_ct_CXX" && break
16595 done
16596
16597   if test "x$ac_ct_CXX" = x; then
16598     CXX="g++"
16599   else
16600     case $cross_compiling:$ac_tool_warned in
16601 yes:)
16602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16603 whose name does not start with the host triplet.  If you think this
16604 configuration is useful to you, please write to autoconf@gnu.org." >&5
16605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16606 whose name does not start with the host triplet.  If you think this
16607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16608 ac_tool_warned=yes ;;
16609 esac
16610     CXX=$ac_ct_CXX
16611   fi
16612 fi
16613
16614   fi
16615 fi
16616 # Provide some information about the compiler.
16617 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16618 ac_compiler=`set X $ac_compile; echo $2`
16619 { (ac_try="$ac_compiler --version >&5"
16620 case "(($ac_try" in
16621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622   *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625   (eval "$ac_compiler --version >&5") 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }
16629 { (ac_try="$ac_compiler -v >&5"
16630 case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_compiler -v >&5") 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }
16639 { (ac_try="$ac_compiler -V >&5"
16640 case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_compiler -V >&5") 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }
16649
16650 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16651 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16653   echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655   cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h.  */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h.  */
16661
16662 int
16663 main ()
16664 {
16665 #ifndef __GNUC__
16666        choke me
16667 #endif
16668
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_compile") 2>conftest.er1
16681   ac_status=$?
16682   grep -v '^ *+' conftest.er1 >conftest.err
16683   rm -f conftest.er1
16684   cat conftest.err >&5
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); } && {
16687          test -z "$ac_cxx_werror_flag" ||
16688          test ! -s conftest.err
16689        } && test -s conftest.$ac_objext; then
16690   ac_compiler_gnu=yes
16691 else
16692   echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695         ac_compiler_gnu=no
16696 fi
16697
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16700
16701 fi
16702 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16703 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16704 GXX=`test $ac_compiler_gnu = yes && echo yes`
16705 ac_test_CXXFLAGS=${CXXFLAGS+set}
16706 ac_save_CXXFLAGS=$CXXFLAGS
16707 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16708 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16709 if test "${ac_cv_prog_cxx_g+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16713    ac_cxx_werror_flag=yes
16714    ac_cv_prog_cxx_g=no
16715    CXXFLAGS="-g"
16716    cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722
16723 int
16724 main ()
16725 {
16726
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_compile") 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } && {
16745          test -z "$ac_cxx_werror_flag" ||
16746          test ! -s conftest.err
16747        } && test -s conftest.$ac_objext; then
16748   ac_cv_prog_cxx_g=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         CXXFLAGS=""
16754       cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h.  */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h.  */
16760
16761 int
16762 main ()
16763 {
16764
16765   ;
16766   return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext
16770 if { (ac_try="$ac_compile"
16771 case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_compile") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } && {
16783          test -z "$ac_cxx_werror_flag" ||
16784          test ! -s conftest.err
16785        } && test -s conftest.$ac_objext; then
16786   :
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16792          CXXFLAGS="-g"
16793          cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799
16800 int
16801 main ()
16802 {
16803
16804   ;
16805   return 0;
16806 }
16807 _ACEOF
16808 rm -f conftest.$ac_objext
16809 if { (ac_try="$ac_compile"
16810 case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815   (eval "$ac_compile") 2>conftest.er1
16816   ac_status=$?
16817   grep -v '^ *+' conftest.er1 >conftest.err
16818   rm -f conftest.er1
16819   cat conftest.err >&5
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); } && {
16822          test -z "$ac_cxx_werror_flag" ||
16823          test ! -s conftest.err
16824        } && test -s conftest.$ac_objext; then
16825   ac_cv_prog_cxx_g=yes
16826 else
16827   echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16829
16830
16831 fi
16832
16833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834 fi
16835
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837 fi
16838
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16841 fi
16842 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16843 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16844 if test "$ac_test_CXXFLAGS" = set; then
16845   CXXFLAGS=$ac_save_CXXFLAGS
16846 elif test $ac_cv_prog_cxx_g = yes; then
16847   if test "$GXX" = yes; then
16848     CXXFLAGS="-g -O2"
16849   else
16850     CXXFLAGS="-g"
16851   fi
16852 else
16853   if test "$GXX" = yes; then
16854     CXXFLAGS="-O2"
16855   else
16856     CXXFLAGS=
16857   fi
16858 fi
16859 ac_ext=c
16860 ac_cpp='$CPP $CPPFLAGS'
16861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16864
16865
16866
16867
16868     ac_ext=cpp
16869 ac_cpp='$CXXCPP $CPPFLAGS'
16870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16873
16874     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16875 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16876 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16877   echo $ECHO_N "(cached) $ECHO_C" >&6
16878 else
16879   cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h.  */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h.  */
16885
16886 int
16887 main ()
16888 {
16889
16890              #ifndef __INTEL_COMPILER
16891                 choke me
16892              #endif
16893
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 rm -f conftest.$ac_objext
16899 if { (ac_try="$ac_compile"
16900 case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_compile") 2>conftest.er1
16906   ac_status=$?
16907   grep -v '^ *+' conftest.er1 >conftest.err
16908   rm -f conftest.er1
16909   cat conftest.err >&5
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } && {
16912          test -z "$ac_cxx_werror_flag" ||
16913          test ! -s conftest.err
16914        } && test -s conftest.$ac_objext; then
16915   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16921
16922 fi
16923
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925
16926
16927 fi
16928 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16929 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16930     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16931         :; INTELCXX=yes
16932     else
16933         :;
16934     fi
16935     ac_ext=c
16936 ac_cpp='$CPP $CPPFLAGS'
16937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16940
16941
16942
16943
16944         if test "$INTELCXX" = "yes"; then
16945
16946
16947     ac_ext=cpp
16948 ac_cpp='$CXXCPP $CPPFLAGS'
16949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16952
16953     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
16954 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
16955 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958   cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h.  */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h.  */
16964
16965 int
16966 main ()
16967 {
16968
16969              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16970                 choke me
16971              #endif
16972
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984   (eval "$ac_compile") 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } && {
16991          test -z "$ac_cxx_werror_flag" ||
16992          test ! -s conftest.err
16993        } && test -s conftest.$ac_objext; then
16994   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
16995 else
16996   echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17000
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004
17005
17006 fi
17007 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17008 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17009     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17010         :; INTELCXX8=yes
17011     else
17012         :;
17013     fi
17014     ac_ext=c
17015 ac_cpp='$CPP $CPPFLAGS'
17016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17019
17020
17021
17022
17023
17024     ac_ext=cpp
17025 ac_cpp='$CXXCPP $CPPFLAGS'
17026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17029
17030     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17031 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17032 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041
17042 int
17043 main ()
17044 {
17045
17046              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17047                 choke me
17048              #endif
17049
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_compile") 2>conftest.er1
17062   ac_status=$?
17063   grep -v '^ *+' conftest.er1 >conftest.err
17064   rm -f conftest.er1
17065   cat conftest.err >&5
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } && {
17068          test -z "$ac_cxx_werror_flag" ||
17069          test ! -s conftest.err
17070        } && test -s conftest.$ac_objext; then
17071   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17077
17078 fi
17079
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081
17082
17083 fi
17084 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17085 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17086     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17087         :; INTELCXX10=yes
17088     else
17089         :;
17090     fi
17091     ac_ext=c
17092 ac_cpp='$CPP $CPPFLAGS'
17093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17096
17097
17098
17099     fi
17100
17101         if test "x$GCXX" != "xyes"; then
17102         if test "xCXX" = "xC"; then
17103             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17104 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17105 if test "${bakefile_cv_c_exto+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h.  */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h.  */
17114
17115 int
17116 main ()
17117 {
17118
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext conftest.$ac_ext.o
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125   (eval $ac_compile) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; then
17129   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17130     case $ac_file in
17131         conftest.$ac_ext.o)
17132             bakefile_cv_c_exto="-ext o"
17133             ;;
17134         *)
17135             ;;
17136     esac
17137 done
17138 else
17139   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17140 See \`config.log' for more details." >&5
17141 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17142 See \`config.log' for more details." >&2;}
17143    { (exit 1); exit 1; }; }
17144
17145 fi
17146
17147 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17148
17149 fi
17150 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17151 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17152 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17153     if test "c" = "c"; then
17154         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17155     fi
17156     if test "c" = "cxx"; then
17157         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17158     fi
17159 fi
17160
17161             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17162                 unset ac_cv_prog_cc_g
17163                 ac_test_CFLAGS=${CFLAGS+set}
17164 ac_save_CFLAGS=$CFLAGS
17165 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17166 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17167 if test "${ac_cv_prog_cc_g+set}" = set; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170   ac_save_c_werror_flag=$ac_c_werror_flag
17171    ac_c_werror_flag=yes
17172    ac_cv_prog_cc_g=no
17173    CFLAGS="-g"
17174    cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180
17181 int
17182 main ()
17183 {
17184
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (ac_try="$ac_compile"
17191 case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_compile") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } && {
17203          test -z "$ac_c_werror_flag" ||
17204          test ! -s conftest.err
17205        } && test -s conftest.$ac_objext; then
17206   ac_cv_prog_cc_g=yes
17207 else
17208   echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211         CFLAGS=""
17212       cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218
17219 int
17220 main ()
17221 {
17222
17223   ;
17224   return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext
17228 if { (ac_try="$ac_compile"
17229 case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_compile") 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } && {
17241          test -z "$ac_c_werror_flag" ||
17242          test ! -s conftest.err
17243        } && test -s conftest.$ac_objext; then
17244   :
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249         ac_c_werror_flag=$ac_save_c_werror_flag
17250          CFLAGS="-g"
17251          cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257
17258 int
17259 main ()
17260 {
17261
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext
17267 if { (ac_try="$ac_compile"
17268 case "(($ac_try" in
17269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270   *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273   (eval "$ac_compile") 2>conftest.er1
17274   ac_status=$?
17275   grep -v '^ *+' conftest.er1 >conftest.err
17276   rm -f conftest.er1
17277   cat conftest.err >&5
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } && {
17280          test -z "$ac_c_werror_flag" ||
17281          test ! -s conftest.err
17282        } && test -s conftest.$ac_objext; then
17283   ac_cv_prog_cc_g=yes
17284 else
17285   echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17287
17288
17289 fi
17290
17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292 fi
17293
17294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17295 fi
17296
17297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298    ac_c_werror_flag=$ac_save_c_werror_flag
17299 fi
17300 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17301 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17302 if test "$ac_test_CFLAGS" = set; then
17303   CFLAGS=$ac_save_CFLAGS
17304 elif test $ac_cv_prog_cc_g = yes; then
17305   if test "$GCC" = yes; then
17306     CFLAGS="-g -O2"
17307   else
17308     CFLAGS="-g"
17309   fi
17310 else
17311   if test "$GCC" = yes; then
17312     CFLAGS="-O2"
17313   else
17314     CFLAGS=
17315   fi
17316 fi
17317             fi
17318         fi
17319
17320                         case `uname -s` in
17321             AIX*)
17322
17323
17324     ac_ext=cpp
17325 ac_cpp='$CXXCPP $CPPFLAGS'
17326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17329
17330     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17331 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17332 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335   cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h.  */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h.  */
17341
17342 int
17343 main ()
17344 {
17345
17346              #ifndef __xlC__
17347                 choke me
17348              #endif
17349
17350   ;
17351   return 0;
17352 }
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (ac_try="$ac_compile"
17356 case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361   (eval "$ac_compile") 2>conftest.er1
17362   ac_status=$?
17363   grep -v '^ *+' conftest.er1 >conftest.err
17364   rm -f conftest.er1
17365   cat conftest.err >&5
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } && {
17368          test -z "$ac_cxx_werror_flag" ||
17369          test ! -s conftest.err
17370        } && test -s conftest.$ac_objext; then
17371   bakefile_cv_cxx_compiler___xlC__=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376         bakefile_cv_cxx_compiler___xlC__=no
17377
17378 fi
17379
17380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381
17382
17383 fi
17384 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17385 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17386     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17387         :; XLCXX=yes
17388     else
17389         :;
17390     fi
17391     ac_ext=c
17392 ac_cpp='$CPP $CPPFLAGS'
17393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17396
17397
17398
17399                 ;;
17400
17401             Darwin)
17402
17403
17404     ac_ext=cpp
17405 ac_cpp='$CXXCPP $CPPFLAGS'
17406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17409
17410     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17411 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17412 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h.  */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h.  */
17421
17422 int
17423 main ()
17424 {
17425
17426              #ifndef __MWERKS__
17427                 choke me
17428              #endif
17429
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext
17435 if { (ac_try="$ac_compile"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_compile") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } && {
17448          test -z "$ac_cxx_werror_flag" ||
17449          test ! -s conftest.err
17450        } && test -s conftest.$ac_objext; then
17451   bakefile_cv_cxx_compiler___MWERKS__=yes
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456         bakefile_cv_cxx_compiler___MWERKS__=no
17457
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461
17462
17463 fi
17464 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17465 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17466     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17467         :; MWCXX=yes
17468     else
17469         :;
17470     fi
17471     ac_ext=c
17472 ac_cpp='$CPP $CPPFLAGS'
17473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17476
17477
17478
17479                 if test "$MWCXX" != "yes"; then
17480
17481
17482     ac_ext=cpp
17483 ac_cpp='$CXXCPP $CPPFLAGS'
17484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17487
17488     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17489 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17490 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17491   echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493   cat >conftest.$ac_ext <<_ACEOF
17494 /* confdefs.h.  */
17495 _ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h.  */
17499
17500 int
17501 main ()
17502 {
17503
17504              #ifndef __xlC__
17505                 choke me
17506              #endif
17507
17508   ;
17509   return 0;
17510 }
17511 _ACEOF
17512 rm -f conftest.$ac_objext
17513 if { (ac_try="$ac_compile"
17514 case "(($ac_try" in
17515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516   *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519   (eval "$ac_compile") 2>conftest.er1
17520   ac_status=$?
17521   grep -v '^ *+' conftest.er1 >conftest.err
17522   rm -f conftest.er1
17523   cat conftest.err >&5
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } && {
17526          test -z "$ac_cxx_werror_flag" ||
17527          test ! -s conftest.err
17528        } && test -s conftest.$ac_objext; then
17529   bakefile_cv_cxx_compiler___xlC__=yes
17530 else
17531   echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534         bakefile_cv_cxx_compiler___xlC__=no
17535
17536 fi
17537
17538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539
17540
17541 fi
17542 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17543 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17544     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17545         :; XLCXX=yes
17546     else
17547         :;
17548     fi
17549     ac_ext=c
17550 ac_cpp='$CPP $CPPFLAGS'
17551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17554
17555
17556
17557                 fi
17558                 ;;
17559
17560             IRIX*)
17561
17562
17563     ac_ext=cpp
17564 ac_cpp='$CXXCPP $CPPFLAGS'
17565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17568
17569     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17570 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17571 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17572   echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574   cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h.  */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h.  */
17580
17581 int
17582 main ()
17583 {
17584
17585              #ifndef _SGI_COMPILER_VERSION
17586                 choke me
17587              #endif
17588
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (ac_try="$ac_compile"
17595 case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600   (eval "$ac_compile") 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && {
17607          test -z "$ac_cxx_werror_flag" ||
17608          test ! -s conftest.err
17609        } && test -s conftest.$ac_objext; then
17610   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17611 else
17612   echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17614
17615         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17616
17617 fi
17618
17619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17620
17621
17622 fi
17623 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17624 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17625     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17626         :; SGICXX=yes
17627     else
17628         :;
17629     fi
17630     ac_ext=c
17631 ac_cpp='$CPP $CPPFLAGS'
17632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17635
17636
17637
17638                 ;;
17639
17640             Linux*)
17641                                                 if test "$INTELCXX" != "yes"; then
17642
17643
17644     ac_ext=cpp
17645 ac_cpp='$CXXCPP $CPPFLAGS'
17646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17649
17650     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17651 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17652 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661
17662 int
17663 main ()
17664 {
17665
17666              #ifndef __SUNPRO_CC
17667                 choke me
17668              #endif
17669
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678   *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681   (eval "$ac_compile") 2>conftest.er1
17682   ac_status=$?
17683   grep -v '^ *+' conftest.er1 >conftest.err
17684   rm -f conftest.er1
17685   cat conftest.err >&5
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } && {
17688          test -z "$ac_cxx_werror_flag" ||
17689          test ! -s conftest.err
17690        } && test -s conftest.$ac_objext; then
17691   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17692 else
17693   echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17697
17698 fi
17699
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701
17702
17703 fi
17704 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17705 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17706     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17707         :; SUNCXX=yes
17708     else
17709         :;
17710     fi
17711     ac_ext=c
17712 ac_cpp='$CPP $CPPFLAGS'
17713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17716
17717
17718
17719                 fi
17720                 ;;
17721
17722             HP-UX*)
17723
17724
17725     ac_ext=cpp
17726 ac_cpp='$CXXCPP $CPPFLAGS'
17727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17730
17731     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17732 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17733 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736   cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742
17743 int
17744 main ()
17745 {
17746
17747              #ifndef __HP_aCC
17748                 choke me
17749              #endif
17750
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext
17756 if { (ac_try="$ac_compile"
17757 case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_compile") 2>conftest.er1
17763   ac_status=$?
17764   grep -v '^ *+' conftest.er1 >conftest.err
17765   rm -f conftest.er1
17766   cat conftest.err >&5
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } && {
17769          test -z "$ac_cxx_werror_flag" ||
17770          test ! -s conftest.err
17771        } && test -s conftest.$ac_objext; then
17772   bakefile_cv_cxx_compiler___HP_aCC=yes
17773 else
17774   echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777         bakefile_cv_cxx_compiler___HP_aCC=no
17778
17779 fi
17780
17781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782
17783
17784 fi
17785 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17786 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17787     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17788         :; HPCXX=yes
17789     else
17790         :;
17791     fi
17792     ac_ext=c
17793 ac_cpp='$CPP $CPPFLAGS'
17794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17797
17798
17799
17800                 ;;
17801
17802             OSF1)
17803
17804
17805     ac_ext=cpp
17806 ac_cpp='$CXXCPP $CPPFLAGS'
17807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17810
17811     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17812 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17813 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h.  */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h.  */
17822
17823 int
17824 main ()
17825 {
17826
17827              #ifndef __DECCXX
17828                 choke me
17829              #endif
17830
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (ac_try="$ac_compile"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842   (eval "$ac_compile") 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } && {
17849          test -z "$ac_cxx_werror_flag" ||
17850          test ! -s conftest.err
17851        } && test -s conftest.$ac_objext; then
17852   bakefile_cv_cxx_compiler___DECCXX=yes
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857         bakefile_cv_cxx_compiler___DECCXX=no
17858
17859 fi
17860
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862
17863
17864 fi
17865 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17866 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17867     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17868         :; COMPAQCXX=yes
17869     else
17870         :;
17871     fi
17872     ac_ext=c
17873 ac_cpp='$CPP $CPPFLAGS'
17874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17877
17878
17879
17880                 ;;
17881
17882             SunOS)
17883
17884
17885     ac_ext=cpp
17886 ac_cpp='$CXXCPP $CPPFLAGS'
17887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17890
17891     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17892 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17893 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17894   echo $ECHO_N "(cached) $ECHO_C" >&6
17895 else
17896   cat >conftest.$ac_ext <<_ACEOF
17897 /* confdefs.h.  */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h.  */
17902
17903 int
17904 main ()
17905 {
17906
17907              #ifndef __SUNPRO_CC
17908                 choke me
17909              #endif
17910
17911   ;
17912   return 0;
17913 }
17914 _ACEOF
17915 rm -f conftest.$ac_objext
17916 if { (ac_try="$ac_compile"
17917 case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922   (eval "$ac_compile") 2>conftest.er1
17923   ac_status=$?
17924   grep -v '^ *+' conftest.er1 >conftest.err
17925   rm -f conftest.er1
17926   cat conftest.err >&5
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); } && {
17929          test -z "$ac_cxx_werror_flag" ||
17930          test ! -s conftest.err
17931        } && test -s conftest.$ac_objext; then
17932   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17938
17939 fi
17940
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942
17943
17944 fi
17945 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17946 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17947     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17948         :; SUNCXX=yes
17949     else
17950         :;
17951     fi
17952     ac_ext=c
17953 ac_cpp='$CPP $CPPFLAGS'
17954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17957
17958
17959
17960                 ;;
17961         esac
17962     fi
17963
17964
17965
17966 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17967     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17968 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17969    { (exit 1); exit 1; }; }
17970 fi
17971
17972 if test "x$SUNCXX" != xyes; then
17973     if test -n "$ac_tool_prefix"; then
17974   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17975 set dummy ${ac_tool_prefix}ar; ac_word=$2
17976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17978 if test "${ac_cv_prog_AR+set}" = set; then
17979   echo $ECHO_N "(cached) $ECHO_C" >&6
17980 else
17981   if test -n "$AR"; then
17982   ac_cv_prog_AR="$AR" # Let the user override the test.
17983 else
17984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17985 for as_dir in $PATH
17986 do
17987   IFS=$as_save_IFS
17988   test -z "$as_dir" && as_dir=.
17989   for ac_exec_ext in '' $ac_executable_extensions; do
17990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17991     ac_cv_prog_AR="${ac_tool_prefix}ar"
17992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17993     break 2
17994   fi
17995 done
17996 done
17997 IFS=$as_save_IFS
17998
17999 fi
18000 fi
18001 AR=$ac_cv_prog_AR
18002 if test -n "$AR"; then
18003   { echo "$as_me:$LINENO: result: $AR" >&5
18004 echo "${ECHO_T}$AR" >&6; }
18005 else
18006   { echo "$as_me:$LINENO: result: no" >&5
18007 echo "${ECHO_T}no" >&6; }
18008 fi
18009
18010
18011 fi
18012 if test -z "$ac_cv_prog_AR"; then
18013   ac_ct_AR=$AR
18014   # Extract the first word of "ar", so it can be a program name with args.
18015 set dummy ar; ac_word=$2
18016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18018 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18019   echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021   if test -n "$ac_ct_AR"; then
18022   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18023 else
18024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18025 for as_dir in $PATH
18026 do
18027   IFS=$as_save_IFS
18028   test -z "$as_dir" && as_dir=.
18029   for ac_exec_ext in '' $ac_executable_extensions; do
18030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18031     ac_cv_prog_ac_ct_AR="ar"
18032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18033     break 2
18034   fi
18035 done
18036 done
18037 IFS=$as_save_IFS
18038
18039 fi
18040 fi
18041 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18042 if test -n "$ac_ct_AR"; then
18043   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18044 echo "${ECHO_T}$ac_ct_AR" >&6; }
18045 else
18046   { echo "$as_me:$LINENO: result: no" >&5
18047 echo "${ECHO_T}no" >&6; }
18048 fi
18049
18050   if test "x$ac_ct_AR" = x; then
18051     AR=""
18052   else
18053     case $cross_compiling:$ac_tool_warned in
18054 yes:)
18055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18056 whose name does not start with the host triplet.  If you think this
18057 configuration is useful to you, please write to autoconf@gnu.org." >&5
18058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18059 whose name does not start with the host triplet.  If you think this
18060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18061 ac_tool_warned=yes ;;
18062 esac
18063     AR=$ac_ct_AR
18064   fi
18065 else
18066   AR="$ac_cv_prog_AR"
18067 fi
18068
18069     if test "x$AR" = "x" ; then
18070         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18071 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18072    { (exit 1); exit 1; }; }
18073     fi
18074 fi
18075
18076 retest_macosx_linking=no
18077
18078 #if test "$wxUSE_MAC" = 1; then
18079     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18080                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18081             # Implicitly turn on the new --with-macosx-sdk using the default
18082             # SDK which provides the behavior this option has always had.
18083             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18084                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18085 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18086                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18087 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18088                 wxUSE_MACOSX_SDK=yes
18089             fi
18090         else
18091             # Complain to user if he specified an argument to --enable-universal_binary
18092             # and also 1) specified --with-macosx-sdk using the default (yes) or
18093             # 2) specified --with-macosx-sdk using a path or 3) specified
18094             # --without-macosx-sdk (no).
18095             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18096                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18097 See \`config.log' for more details." >&5
18098 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18099 See \`config.log' for more details." >&2;}
18100    { (exit 1); exit 1; }; }
18101             else
18102                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18103                 # special-case the empty string because the below test simply
18104                 # converts "no" to the empty string anyway.
18105                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18106                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18107 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18108             fi
18109         fi
18110                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18111         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18112         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18113         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18114         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18115         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18116                                                                                                                 retest_macosx_linking=yes
18117
18118                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18119 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18120         bk_use_pch=no
18121     fi
18122 #fi
18123
18124 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18125     wxUSE_MACOSX_SDK=
18126 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18127     # TODO: Search for most recent SDK and use it.
18128     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18129 fi
18130
18131
18132 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18133     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18134 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18135     if ! test -d "$wxUSE_MACOSX_SDK"; then
18136         { { echo "$as_me:$LINENO: error: not found
18137 See \`config.log' for more details." >&5
18138 echo "$as_me: error: not found
18139 See \`config.log' for more details." >&2;}
18140    { (exit 1); exit 1; }; }
18141     else
18142         { echo "$as_me:$LINENO: result: exists" >&5
18143 echo "${ECHO_T}exists" >&6; }
18144     fi
18145     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18146     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18147     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18148     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18149     retest_macosx_linking=yes
18150             fi
18151
18152 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18153     wxUSE_MACOSX_VERSION_MIN=
18154 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18155     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18156         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18157 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18158
18159         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/'`
18160
18161         # If that failed, try again with the new key
18162         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18163
18164             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/'`
18165
18166         fi
18167
18168         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18169             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18170             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18171 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18172         else
18173             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18174 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18175             wxUSE_MACOSX_VERSION_MIN=
18176         fi
18177     else
18178         wxUSE_MACOSX_VERSION_MIN=
18179     fi
18180 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18181     if test "$wxUSE_MAC" = 1; then
18182         # otherwise configure stops on leopard for universal_binary
18183         wxUSE_MACOSX_VERSION_MIN=10.4
18184     fi
18185 fi
18186
18187 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18188     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18189     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18190     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18191     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18192     retest_macosx_linking=yes
18193 fi
18194
18195 if test "x$retest_macosx_linking" = "xyes"; then
18196     ac_ext=c
18197 ac_cpp='$CPP $CPPFLAGS'
18198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18201
18202     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18203 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18204     cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210
18211 int
18212 main ()
18213 {
18214
18215   ;
18216   return 0;
18217 }
18218 _ACEOF
18219 rm -f conftest.$ac_objext conftest$ac_exeext
18220 if { (ac_try="$ac_link"
18221 case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226   (eval "$ac_link") 2>conftest.er1
18227   ac_status=$?
18228   grep -v '^ *+' conftest.er1 >conftest.err
18229   rm -f conftest.er1
18230   cat conftest.err >&5
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } && {
18233          test -z "$ac_c_werror_flag" ||
18234          test ! -s conftest.err
18235        } && test -s conftest$ac_exeext &&
18236        $as_test_x conftest$ac_exeext; then
18237   { echo "$as_me:$LINENO: result: yes" >&5
18238 echo "${ECHO_T}yes" >&6; }
18239 else
18240   echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18244 See \`config.log' for more details." >&5
18245 echo "$as_me: error: no.  Try a different SDK
18246 See \`config.log' for more details." >&2;}
18247    { (exit 1); exit 1; }; }; exit 1
18248 fi
18249
18250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18251       conftest$ac_exeext conftest.$ac_ext
18252     ac_ext=c
18253 ac_cpp='$CPP $CPPFLAGS'
18254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18257
18258
18259     ac_ext=cpp
18260 ac_cpp='$CXXCPP $CPPFLAGS'
18261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18264
18265     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18266 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18267     cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273
18274 int
18275 main ()
18276 {
18277
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (ac_try="$ac_link"
18284 case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_link") 2>conftest.er1
18290   ac_status=$?
18291   grep -v '^ *+' conftest.er1 >conftest.err
18292   rm -f conftest.er1
18293   cat conftest.err >&5
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); } && {
18296          test -z "$ac_cxx_werror_flag" ||
18297          test ! -s conftest.err
18298        } && test -s conftest$ac_exeext &&
18299        $as_test_x conftest$ac_exeext; then
18300   { echo "$as_me:$LINENO: result: yes" >&5
18301 echo "${ECHO_T}yes" >&6; }
18302 else
18303   echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18307 See \`config.log' for more details." >&5
18308 echo "$as_me: error: no.  Try a different SDK
18309 See \`config.log' for more details." >&2;}
18310    { (exit 1); exit 1; }; }; exit 1
18311 fi
18312
18313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18314       conftest$ac_exeext conftest.$ac_ext
18315     ac_ext=c
18316 ac_cpp='$CPP $CPPFLAGS'
18317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18320
18321 fi
18322
18323
18324 case "${host}" in
18325
18326                 *-*-darwin* )
18327         INSTALL_PROGRAM="cp -fp"
18328         INSTALL_DATA="cp -fp"
18329         ;;
18330     *)
18331         ;;
18332 esac
18333
18334
18335 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18336     CXXFLAGS="-qunique $CXXFLAGS"
18337 fi
18338
18339 case "${host}" in
18340   powerpc-*-darwin* )
18341     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18342 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18343     cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349
18350 int
18351 main ()
18352 {
18353 #ifndef __POWERPC__
18354         choke me for lack of PowerPC
18355 #endif
18356
18357   ;
18358   return 0;
18359 }
18360 _ACEOF
18361 rm -f conftest.$ac_objext
18362 if { (ac_try="$ac_compile"
18363 case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_compile") 2>conftest.er1
18369   ac_status=$?
18370   grep -v '^ *+' conftest.er1 >conftest.err
18371   rm -f conftest.er1
18372   cat conftest.err >&5
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } && {
18375          test -z "$ac_c_werror_flag" ||
18376          test ! -s conftest.err
18377        } && test -s conftest.$ac_objext; then
18378   { echo "$as_me:$LINENO: result: yes" >&5
18379 echo "${ECHO_T}yes" >&6; }
18380 else
18381   echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384         { echo "$as_me:$LINENO: result: no" >&5
18385 echo "${ECHO_T}no" >&6; }
18386         cat >>confdefs.h <<\_ACEOF
18387 #define __POWERPC__ 1
18388 _ACEOF
18389
18390
18391 fi
18392
18393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394   ;;
18395 esac
18396
18397 case "${host}" in
18398   *-*-darwin* )
18399     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18400 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18401     cat >conftest.$ac_ext <<_ACEOF
18402 /* confdefs.h.  */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h.  */
18407 #include <CoreFoundation/CFBase.h>
18408
18409 int
18410 main ()
18411 {
18412
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421   *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424   (eval "$ac_compile") 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } && {
18431          test -z "$ac_c_werror_flag" ||
18432          test ! -s conftest.err
18433        } && test -s conftest.$ac_objext; then
18434   { echo "$as_me:$LINENO: result: yes" >&5
18435 echo "${ECHO_T}yes" >&6; }
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440         { echo "$as_me:$LINENO: result: no" >&5
18441 echo "${ECHO_T}no" >&6; }
18442         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18443 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18444         cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450 #define __CF_USE_FRAMEWORK_INCLUDES__
18451 #include <CoreFoundation/CFBase.h>
18452
18453 int
18454 main ()
18455 {
18456
18457   ;
18458   return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (ac_try="$ac_compile"
18463 case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_compile") 2>conftest.er1
18469   ac_status=$?
18470   grep -v '^ *+' conftest.er1 >conftest.err
18471   rm -f conftest.er1
18472   cat conftest.err >&5
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); } && {
18475          test -z "$ac_c_werror_flag" ||
18476          test ! -s conftest.err
18477        } && test -s conftest.$ac_objext; then
18478   { echo "$as_me:$LINENO: result: yes" >&5
18479 echo "${ECHO_T}yes" >&6; }
18480                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18486 See \`config.log' for more details." >&5
18487 echo "$as_me: error: no.  CoreFoundation not available.
18488 See \`config.log' for more details." >&2;}
18489    { (exit 1); exit 1; }; }
18490
18491 fi
18492
18493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18494
18495
18496 fi
18497
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499   ;;
18500 esac
18501
18502 wants_win32=0
18503 doesnt_want_win32=0
18504 case "${host}" in
18505   *-*-cygwin*)
18506       if test "$wxUSE_MSW" = 1 ; then
18507         wants_win32=1
18508       else
18509                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18510 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18511 if test "${wx_cv_nocygwin+set}" = set; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514
18515                 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h.  */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h.  */
18521
18522 int
18523 main ()
18524 {
18525
18526                         #ifdef __MINGW32__
18527                             choke me
18528                         #endif
18529
18530   ;
18531   return 0;
18532 }
18533 _ACEOF
18534 rm -f conftest.$ac_objext
18535 if { (ac_try="$ac_compile"
18536 case "(($ac_try" in
18537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538   *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541   (eval "$ac_compile") 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } && {
18548          test -z "$ac_c_werror_flag" ||
18549          test ! -s conftest.err
18550        } && test -s conftest.$ac_objext; then
18551   wx_cv_nocygwin=no
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556         wx_cv_nocygwin=yes
18557
18558 fi
18559
18560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18561
18562
18563 fi
18564 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18565 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18566
18567         if test "$wx_cv_nocygwin" = "yes"; then
18568             wants_win32=1
18569         else
18570             doesnt_want_win32=1
18571         fi
18572       fi
18573       if test "$wants_win32" = 1 ; then
18574         BAKEFILE_FORCE_PLATFORM=win32
18575       fi
18576   ;;
18577   *-*-mingw*)
18578       wants_win32=1
18579   ;;
18580 esac
18581
18582 if test "$wxUSE_WINE" = "yes"; then
18583     wants_win32=1
18584     LDFLAGS_GUI="-mwindows"
18585 fi
18586
18587 if test "$wants_win32" = 1 ; then
18588     USE_UNIX=0
18589     USE_WIN32=1
18590     cat >>confdefs.h <<\_ACEOF
18591 #define __WIN32__ 1
18592 _ACEOF
18593
18594     cat >>confdefs.h <<\_ACEOF
18595 #define __WIN95__ 1
18596 _ACEOF
18597
18598     cat >>confdefs.h <<\_ACEOF
18599 #define __WINDOWS__ 1
18600 _ACEOF
18601
18602     cat >>confdefs.h <<\_ACEOF
18603 #define __GNUWIN32__ 1
18604 _ACEOF
18605
18606     cat >>confdefs.h <<\_ACEOF
18607 #define STRICT 1
18608 _ACEOF
18609
18610 fi
18611 if test "$doesnt_want_win32" = 1 ; then
18612     USE_UNIX=1
18613     USE_WIN32=0
18614 fi
18615
18616 if test "$USE_UNIX" = 1 ; then
18617     wxUSE_UNIX=yes
18618     cat >>confdefs.h <<\_ACEOF
18619 #define __UNIX__ 1
18620 _ACEOF
18621
18622 fi
18623
18624 case "${host}" in
18625   *-pc-os2_emx | *-pc-os2-emx )
18626                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18627                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18628 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18629 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   ac_check_lib_save_LIBS=$LIBS
18633 LIBS="-lcExt  $LIBS"
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h.  */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h.  */
18640
18641 /* Override any GCC internal prototype to avoid an error.
18642    Use char because int might match the return type of a GCC
18643    builtin and then its argument prototype would still apply.  */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char drand48 ();
18648 int
18649 main ()
18650 {
18651 return drand48 ();
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_link") 2>conftest.er1
18664   ac_status=$?
18665   grep -v '^ *+' conftest.er1 >conftest.err
18666   rm -f conftest.er1
18667   cat conftest.err >&5
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); } && {
18670          test -z "$ac_c_werror_flag" ||
18671          test ! -s conftest.err
18672        } && test -s conftest$ac_exeext &&
18673        $as_test_x conftest$ac_exeext; then
18674   ac_cv_lib_cExt_drand48=yes
18675 else
18676   echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679         ac_cv_lib_cExt_drand48=no
18680 fi
18681
18682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18683       conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18685 fi
18686 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18687 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18688 if test $ac_cv_lib_cExt_drand48 = yes; then
18689   LIBS="$LIBS -lcExt"
18690 fi
18691
18692       else
18693                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18694       fi
18695                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18696 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18697 if test "${wx_cv_gccversion+set}" = set; then
18698   echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700
18701           if test "$cross_compiling" = yes; then
18702                 wx_cv_gccversion="EMX2"
18703
18704 else
18705   cat >conftest.$ac_ext <<_ACEOF
18706 /* confdefs.h.  */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h.  */
18711
18712                   #include <stdio.h>
18713
18714                   int main()
18715                   {
18716                       FILE *f=fopen("conftestval", "w");
18717                       if (!f) exit(1);
18718                       fprintf(f,
18719                   #if (__GNUC__ < 3)
18720                               "EMX2"
18721                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18722                               "EMX3"
18723                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18724                               "Innotek5"
18725                   #else
18726                               "Innotek6"
18727                   #endif
18728                       );
18729                       exit(0);
18730                   }
18731
18732 _ACEOF
18733 rm -f conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_link") 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18744   { (case "(($ac_try" in
18745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746   *) ac_try_echo=$ac_try;;
18747 esac
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749   (eval "$ac_try") 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   wx_cv_gccversion=`cat conftestval`
18754 else
18755   echo "$as_me: program exited with status $ac_status" >&5
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18758
18759 ( exit $ac_status )
18760 wx_cv_gccversion="EMX2"
18761 fi
18762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18763 fi
18764
18765
18766
18767 fi
18768 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18769 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18770       if test "$wx_cv_gccversion" = "EMX2"; then
18771           LIBS="$LIBS -lstdcpp"
18772           LDFLAGS="$LDFLAGS -Zsysv-signals"
18773       else
18774           if test "$wx_cv_gccversion" = "EMX3"; then
18775               LIBS="$LIBS -lstdcxx -lgcc"
18776               LDFLAGS="$LDFLAGS -Zsysv-signals"
18777           else
18778               LIBS="$LIBS -lstdc++"
18779           fi
18780       fi
18781       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18782         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18783 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18784         wxUSE_OMF=yes
18785         enable_omf=yes
18786       fi
18787         ;;
18788   *)
18789
18790       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18791 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18792 if test "${ac_cv_string_strcasecmp+set}" = set; then
18793   echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795
18796           cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h.  */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h.  */
18802
18803               #include <string.h>
18804
18805 int
18806 main ()
18807 {
18808
18809                   strcasecmp("foo", "bar");
18810
18811   ;
18812   return 0;
18813 }
18814 _ACEOF
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (ac_try="$ac_link"
18817 case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822   (eval "$ac_link") 2>conftest.er1
18823   ac_status=$?
18824   grep -v '^ *+' conftest.er1 >conftest.err
18825   rm -f conftest.er1
18826   cat conftest.err >&5
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); } && {
18829          test -z "$ac_c_werror_flag" ||
18830          test ! -s conftest.err
18831        } && test -s conftest$ac_exeext &&
18832        $as_test_x conftest$ac_exeext; then
18833   ac_cv_string_strcasecmp=yes
18834 else
18835   echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838         ac_cv_string_strcasecmp=no
18839
18840 fi
18841
18842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18843       conftest$ac_exeext conftest.$ac_ext
18844
18845 fi
18846 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18847 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18848
18849       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18850           cat >>confdefs.h <<\_ACEOF
18851 #define HAVE_STRCASECMP_IN_STRING_H 1
18852 _ACEOF
18853
18854       else
18855           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18856 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18857 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860
18861               cat >conftest.$ac_ext <<_ACEOF
18862 /* confdefs.h.  */
18863 _ACEOF
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h.  */
18867
18868                   #include <strings.h>
18869
18870 int
18871 main ()
18872 {
18873
18874                       strcasecmp("foo", "bar");
18875
18876   ;
18877   return 0;
18878 }
18879 _ACEOF
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_link") 2>conftest.er1
18888   ac_status=$?
18889   grep -v '^ *+' conftest.er1 >conftest.err
18890   rm -f conftest.er1
18891   cat conftest.err >&5
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } && {
18894          test -z "$ac_c_werror_flag" ||
18895          test ! -s conftest.err
18896        } && test -s conftest$ac_exeext &&
18897        $as_test_x conftest$ac_exeext; then
18898   ac_cv_strings_strcasecmp=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903         ac_cv_strings_strcasecmp=no
18904
18905 fi
18906
18907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18908       conftest$ac_exeext conftest.$ac_ext
18909
18910 fi
18911 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18912 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18913
18914           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18915               cat >>confdefs.h <<\_ACEOF
18916 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18917 _ACEOF
18918
18919           else
18920               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18921 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18922    { (exit 1); exit 1; }; }
18923           fi
18924       fi
18925
18926         ;;
18927 esac
18928
18929
18930 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18931 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18932 if test "${ac_cv_header_stdc+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h.  */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h.  */
18941 #include <stdlib.h>
18942 #include <stdarg.h>
18943 #include <string.h>
18944 #include <float.h>
18945
18946 int
18947 main ()
18948 {
18949
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext
18955 if { (ac_try="$ac_compile"
18956 case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961   (eval "$ac_compile") 2>conftest.er1
18962   ac_status=$?
18963   grep -v '^ *+' conftest.er1 >conftest.err
18964   rm -f conftest.er1
18965   cat conftest.err >&5
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } && {
18968          test -z "$ac_c_werror_flag" ||
18969          test ! -s conftest.err
18970        } && test -s conftest.$ac_objext; then
18971   ac_cv_header_stdc=yes
18972 else
18973   echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976         ac_cv_header_stdc=no
18977 fi
18978
18979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18980
18981 if test $ac_cv_header_stdc = yes; then
18982   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18983   cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h.  */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h.  */
18989 #include <string.h>
18990
18991 _ACEOF
18992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18993   $EGREP "memchr" >/dev/null 2>&1; then
18994   :
18995 else
18996   ac_cv_header_stdc=no
18997 fi
18998 rm -f conftest*
18999
19000 fi
19001
19002 if test $ac_cv_header_stdc = yes; then
19003   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19004   cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h.  */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h.  */
19010 #include <stdlib.h>
19011
19012 _ACEOF
19013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19014   $EGREP "free" >/dev/null 2>&1; then
19015   :
19016 else
19017   ac_cv_header_stdc=no
19018 fi
19019 rm -f conftest*
19020
19021 fi
19022
19023 if test $ac_cv_header_stdc = yes; then
19024   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19025   if test "$cross_compiling" = yes; then
19026   :
19027 else
19028   cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h.  */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h.  */
19034 #include <ctype.h>
19035 #include <stdlib.h>
19036 #if ((' ' & 0x0FF) == 0x020)
19037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19039 #else
19040 # define ISLOWER(c) \
19041                    (('a' <= (c) && (c) <= 'i') \
19042                      || ('j' <= (c) && (c) <= 'r') \
19043                      || ('s' <= (c) && (c) <= 'z'))
19044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19045 #endif
19046
19047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19048 int
19049 main ()
19050 {
19051   int i;
19052   for (i = 0; i < 256; i++)
19053     if (XOR (islower (i), ISLOWER (i))
19054         || toupper (i) != TOUPPER (i))
19055       return 2;
19056   return 0;
19057 }
19058 _ACEOF
19059 rm -f conftest$ac_exeext
19060 if { (ac_try="$ac_link"
19061 case "(($ac_try" in
19062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063   *) ac_try_echo=$ac_try;;
19064 esac
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066   (eval "$ac_link") 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19070   { (case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_try") 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   :
19080 else
19081   echo "$as_me: program exited with status $ac_status" >&5
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 ( exit $ac_status )
19086 ac_cv_header_stdc=no
19087 fi
19088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19089 fi
19090
19091
19092 fi
19093 fi
19094 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19095 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19096 if test $ac_cv_header_stdc = yes; then
19097
19098 cat >>confdefs.h <<\_ACEOF
19099 #define STDC_HEADERS 1
19100 _ACEOF
19101
19102 fi
19103
19104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19115                   inttypes.h stdint.h unistd.h
19116 do
19117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h.  */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h.  */
19129 $ac_includes_default
19130
19131 #include <$ac_header>
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137   *) ac_try_echo=$ac_try;;
19138 esac
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140   (eval "$ac_compile") 2>conftest.er1
19141   ac_status=$?
19142   grep -v '^ *+' conftest.er1 >conftest.err
19143   rm -f conftest.er1
19144   cat conftest.err >&5
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } && {
19147          test -z "$ac_c_werror_flag" ||
19148          test ! -s conftest.err
19149        } && test -s conftest.$ac_objext; then
19150   eval "$as_ac_Header=yes"
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155         eval "$as_ac_Header=no"
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 fi
19160 ac_res=`eval echo '${'$as_ac_Header'}'`
19161                { echo "$as_me:$LINENO: result: $ac_res" >&5
19162 echo "${ECHO_T}$ac_res" >&6; }
19163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19164   cat >>confdefs.h <<_ACEOF
19165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19166 _ACEOF
19167
19168 fi
19169
19170 done
19171
19172
19173
19174
19175 for ac_header in langinfo.h wchar.h
19176 do
19177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189 $ac_includes_default
19190
19191 #include <$ac_header>
19192 _ACEOF
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_compile") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } && {
19207          test -z "$ac_c_werror_flag" ||
19208          test ! -s conftest.err
19209        } && test -s conftest.$ac_objext; then
19210   eval "$as_ac_Header=yes"
19211 else
19212   echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215         eval "$as_ac_Header=no"
19216 fi
19217
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 fi
19220 ac_res=`eval echo '${'$as_ac_Header'}'`
19221                { echo "$as_me:$LINENO: result: $ac_res" >&5
19222 echo "${ECHO_T}$ac_res" >&6; }
19223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19224   cat >>confdefs.h <<_ACEOF
19225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19226 _ACEOF
19227
19228 fi
19229
19230 done
19231
19232
19233 if test "$ac_cv_header_wchar_h" != "yes"; then
19234
19235 for ac_header in wcstr.h
19236 do
19237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19241   echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243   cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h.  */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h.  */
19249 $ac_includes_default
19250
19251 #include <$ac_header>
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257   *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260   (eval "$ac_compile") 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } && {
19267          test -z "$ac_c_werror_flag" ||
19268          test ! -s conftest.err
19269        } && test -s conftest.$ac_objext; then
19270   eval "$as_ac_Header=yes"
19271 else
19272   echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275         eval "$as_ac_Header=no"
19276 fi
19277
19278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 fi
19280 ac_res=`eval echo '${'$as_ac_Header'}'`
19281                { echo "$as_me:$LINENO: result: $ac_res" >&5
19282 echo "${ECHO_T}$ac_res" >&6; }
19283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19284   cat >>confdefs.h <<_ACEOF
19285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19286 _ACEOF
19287
19288 fi
19289
19290 done
19291
19292 fi
19293
19294 case "${host}" in
19295   *-pc-os2_emx | *-pc-os2-emx )
19296                   if test $ac_cv_header_langinfo_h = "yes" \
19297                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19298                      -o "$wx_cv_gccversion" = "EMX3" \
19299                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19300           LIBS="$LIBS -lintl"
19301       fi
19302   ;;
19303 esac
19304
19305 if test "$USE_UNIX" = 1 ; then
19306
19307 for ac_header in sys/select.h
19308 do
19309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19313   echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315   cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h.  */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h.  */
19321 $ac_includes_default
19322
19323 #include <$ac_header>
19324 _ACEOF
19325 rm -f conftest.$ac_objext
19326 if { (ac_try="$ac_compile"
19327 case "(($ac_try" in
19328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329   *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332   (eval "$ac_compile") 2>conftest.er1
19333   ac_status=$?
19334   grep -v '^ *+' conftest.er1 >conftest.err
19335   rm -f conftest.er1
19336   cat conftest.err >&5
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); } && {
19339          test -z "$ac_c_werror_flag" ||
19340          test ! -s conftest.err
19341        } && test -s conftest.$ac_objext; then
19342   eval "$as_ac_Header=yes"
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347         eval "$as_ac_Header=no"
19348 fi
19349
19350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351 fi
19352 ac_res=`eval echo '${'$as_ac_Header'}'`
19353                { echo "$as_me:$LINENO: result: $ac_res" >&5
19354 echo "${ECHO_T}$ac_res" >&6; }
19355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19356   cat >>confdefs.h <<_ACEOF
19357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19358 _ACEOF
19359
19360 fi
19361
19362 done
19363
19364 fi
19365
19366
19367 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19368 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19369 if test "${ac_cv_c_const+set}" = set; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h.  */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h.  */
19378
19379 int
19380 main ()
19381 {
19382 /* FIXME: Include the comments suggested by Paul. */
19383 #ifndef __cplusplus
19384   /* Ultrix mips cc rejects this.  */
19385   typedef int charset[2];
19386   const charset cs;
19387   /* SunOS 4.1.1 cc rejects this.  */
19388   char const *const *pcpcc;
19389   char **ppc;
19390   /* NEC SVR4.0.2 mips cc rejects this.  */
19391   struct point {int x, y;};
19392   static struct point const zero = {0,0};
19393   /* AIX XL C 1.02.0.0 rejects this.
19394      It does not let you subtract one const X* pointer from another in
19395      an arm of an if-expression whose if-part is not a constant
19396      expression */
19397   const char *g = "string";
19398   pcpcc = &g + (g ? g-g : 0);
19399   /* HPUX 7.0 cc rejects these. */
19400   ++pcpcc;
19401   ppc = (char**) pcpcc;
19402   pcpcc = (char const *const *) ppc;
19403   { /* SCO 3.2v4 cc rejects this.  */
19404     char *t;
19405     char const *s = 0 ? (char *) 0 : (char const *) 0;
19406
19407     *t++ = 0;
19408     if (s) return 0;
19409   }
19410   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19411     int x[] = {25, 17};
19412     const int *foo = &x[0];
19413     ++foo;
19414   }
19415   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19416     typedef const int *iptr;
19417     iptr p = 0;
19418     ++p;
19419   }
19420   { /* AIX XL C 1.02.0.0 rejects this saying
19421        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19422     struct s { int j; const int *ap[3]; };
19423     struct s *b; b->j = 5;
19424   }
19425   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19426     const int foo = 10;
19427     if (!foo) return 0;
19428   }
19429   return !cs[0] && !zero.x;
19430 #endif
19431
19432   ;
19433   return 0;
19434 }
19435 _ACEOF
19436 rm -f conftest.$ac_objext
19437 if { (ac_try="$ac_compile"
19438 case "(($ac_try" in
19439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440   *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443   (eval "$ac_compile") 2>conftest.er1
19444   ac_status=$?
19445   grep -v '^ *+' conftest.er1 >conftest.err
19446   rm -f conftest.er1
19447   cat conftest.err >&5
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); } && {
19450          test -z "$ac_c_werror_flag" ||
19451          test ! -s conftest.err
19452        } && test -s conftest.$ac_objext; then
19453   ac_cv_c_const=yes
19454 else
19455   echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19457
19458         ac_cv_c_const=no
19459 fi
19460
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462 fi
19463 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19464 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19465 if test $ac_cv_c_const = no; then
19466
19467 cat >>confdefs.h <<\_ACEOF
19468 #define const
19469 _ACEOF
19470
19471 fi
19472
19473 { echo "$as_me:$LINENO: checking for inline" >&5
19474 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19475 if test "${ac_cv_c_inline+set}" = set; then
19476   echo $ECHO_N "(cached) $ECHO_C" >&6
19477 else
19478   ac_cv_c_inline=no
19479 for ac_kw in inline __inline__ __inline; do
19480   cat >conftest.$ac_ext <<_ACEOF
19481 /* confdefs.h.  */
19482 _ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h.  */
19486 #ifndef __cplusplus
19487 typedef int foo_t;
19488 static $ac_kw foo_t static_foo () {return 0; }
19489 $ac_kw foo_t foo () {return 0; }
19490 #endif
19491
19492 _ACEOF
19493 rm -f conftest.$ac_objext
19494 if { (ac_try="$ac_compile"
19495 case "(($ac_try" in
19496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497   *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500   (eval "$ac_compile") 2>conftest.er1
19501   ac_status=$?
19502   grep -v '^ *+' conftest.er1 >conftest.err
19503   rm -f conftest.er1
19504   cat conftest.err >&5
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); } && {
19507          test -z "$ac_c_werror_flag" ||
19508          test ! -s conftest.err
19509        } && test -s conftest.$ac_objext; then
19510   ac_cv_c_inline=$ac_kw
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515
19516 fi
19517
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519   test "$ac_cv_c_inline" != no && break
19520 done
19521
19522 fi
19523 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19524 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19525
19526
19527 case $ac_cv_c_inline in
19528   inline | yes) ;;
19529   *)
19530     case $ac_cv_c_inline in
19531       no) ac_val=;;
19532       *) ac_val=$ac_cv_c_inline;;
19533     esac
19534     cat >>confdefs.h <<_ACEOF
19535 #ifndef __cplusplus
19536 #define inline $ac_val
19537 #endif
19538 _ACEOF
19539     ;;
19540 esac
19541
19542
19543 { echo "$as_me:$LINENO: checking for short" >&5
19544 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19545 if test "${ac_cv_type_short+set}" = set; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548   cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 $ac_includes_default
19555 typedef short ac__type_new_;
19556 int
19557 main ()
19558 {
19559 if ((ac__type_new_ *) 0)
19560   return 0;
19561 if (sizeof (ac__type_new_))
19562   return 0;
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (ac_try="$ac_compile"
19569 case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_compile") 2>conftest.er1
19575   ac_status=$?
19576   grep -v '^ *+' conftest.er1 >conftest.err
19577   rm -f conftest.er1
19578   cat conftest.err >&5
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } && {
19581          test -z "$ac_c_werror_flag" ||
19582          test ! -s conftest.err
19583        } && test -s conftest.$ac_objext; then
19584   ac_cv_type_short=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589         ac_cv_type_short=no
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 fi
19594 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19595 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19596
19597 # The cast to long int works around a bug in the HP C Compiler
19598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19600 # This bug is HP SR number 8606223364.
19601 { echo "$as_me:$LINENO: checking size of short" >&5
19602 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19603 if test "${ac_cv_sizeof_short+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   if test "$cross_compiling" = yes; then
19607   # Depending upon the size, compute the lo and hi bounds.
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614 $ac_includes_default
19615    typedef short ac__type_sizeof_;
19616 int
19617 main ()
19618 {
19619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19620 test_array [0] = 0
19621
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_compile") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } && {
19640          test -z "$ac_c_werror_flag" ||
19641          test ! -s conftest.err
19642        } && test -s conftest.$ac_objext; then
19643   ac_lo=0 ac_mid=0
19644   while :; do
19645     cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 $ac_includes_default
19652    typedef short ac__type_sizeof_;
19653 int
19654 main ()
19655 {
19656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19657 test_array [0] = 0
19658
19659   ;
19660   return 0;
19661 }
19662 _ACEOF
19663 rm -f conftest.$ac_objext
19664 if { (ac_try="$ac_compile"
19665 case "(($ac_try" in
19666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667   *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670   (eval "$ac_compile") 2>conftest.er1
19671   ac_status=$?
19672   grep -v '^ *+' conftest.er1 >conftest.err
19673   rm -f conftest.er1
19674   cat conftest.err >&5
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); } && {
19677          test -z "$ac_c_werror_flag" ||
19678          test ! -s conftest.err
19679        } && test -s conftest.$ac_objext; then
19680   ac_hi=$ac_mid; break
19681 else
19682   echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685         ac_lo=`expr $ac_mid + 1`
19686                         if test $ac_lo -le $ac_mid; then
19687                           ac_lo= ac_hi=
19688                           break
19689                         fi
19690                         ac_mid=`expr 2 '*' $ac_mid + 1`
19691 fi
19692
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694   done
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699         cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h.  */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h.  */
19705 $ac_includes_default
19706    typedef short ac__type_sizeof_;
19707 int
19708 main ()
19709 {
19710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19711 test_array [0] = 0
19712
19713   ;
19714   return 0;
19715 }
19716 _ACEOF
19717 rm -f conftest.$ac_objext
19718 if { (ac_try="$ac_compile"
19719 case "(($ac_try" in
19720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721   *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724   (eval "$ac_compile") 2>conftest.er1
19725   ac_status=$?
19726   grep -v '^ *+' conftest.er1 >conftest.err
19727   rm -f conftest.er1
19728   cat conftest.err >&5
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); } && {
19731          test -z "$ac_c_werror_flag" ||
19732          test ! -s conftest.err
19733        } && test -s conftest.$ac_objext; then
19734   ac_hi=-1 ac_mid=-1
19735   while :; do
19736     cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h.  */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h.  */
19742 $ac_includes_default
19743    typedef short ac__type_sizeof_;
19744 int
19745 main ()
19746 {
19747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19748 test_array [0] = 0
19749
19750   ;
19751   return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext
19755 if { (ac_try="$ac_compile"
19756 case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_compile") 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } && {
19768          test -z "$ac_c_werror_flag" ||
19769          test ! -s conftest.err
19770        } && test -s conftest.$ac_objext; then
19771   ac_lo=$ac_mid; break
19772 else
19773   echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776         ac_hi=`expr '(' $ac_mid ')' - 1`
19777                         if test $ac_mid -le $ac_hi; then
19778                           ac_lo= ac_hi=
19779                           break
19780                         fi
19781                         ac_mid=`expr 2 '*' $ac_mid`
19782 fi
19783
19784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785   done
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790         ac_lo= ac_hi=
19791 fi
19792
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 fi
19795
19796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 # Binary search between lo and hi bounds.
19798 while test "x$ac_lo" != "x$ac_hi"; do
19799   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19800   cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h.  */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h.  */
19806 $ac_includes_default
19807    typedef short ac__type_sizeof_;
19808 int
19809 main ()
19810 {
19811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19812 test_array [0] = 0
19813
19814   ;
19815   return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest.$ac_objext
19819 if { (ac_try="$ac_compile"
19820 case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825   (eval "$ac_compile") 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } && {
19832          test -z "$ac_c_werror_flag" ||
19833          test ! -s conftest.err
19834        } && test -s conftest.$ac_objext; then
19835   ac_hi=$ac_mid
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840         ac_lo=`expr '(' $ac_mid ')' + 1`
19841 fi
19842
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844 done
19845 case $ac_lo in
19846 ?*) ac_cv_sizeof_short=$ac_lo;;
19847 '') if test "$ac_cv_type_short" = yes; then
19848      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19849 See \`config.log' for more details." >&5
19850 echo "$as_me: error: cannot compute sizeof (short)
19851 See \`config.log' for more details." >&2;}
19852    { (exit 77); exit 77; }; }
19853    else
19854      ac_cv_sizeof_short=0
19855    fi ;;
19856 esac
19857 else
19858   cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 $ac_includes_default
19865    typedef short ac__type_sizeof_;
19866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19868 #include <stdio.h>
19869 #include <stdlib.h>
19870 int
19871 main ()
19872 {
19873
19874   FILE *f = fopen ("conftest.val", "w");
19875   if (! f)
19876     return 1;
19877   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19878     {
19879       long int i = longval ();
19880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19881         return 1;
19882       fprintf (f, "%ld\n", i);
19883     }
19884   else
19885     {
19886       unsigned long int i = ulongval ();
19887       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19888         return 1;
19889       fprintf (f, "%lu\n", i);
19890     }
19891   return ferror (f) || fclose (f) != 0;
19892
19893   ;
19894   return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904   (eval "$ac_link") 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19908   { (case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_try") 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; }; then
19917   ac_cv_sizeof_short=`cat conftest.val`
19918 else
19919   echo "$as_me: program exited with status $ac_status" >&5
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ( exit $ac_status )
19924 if test "$ac_cv_type_short" = yes; then
19925      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19926 See \`config.log' for more details." >&5
19927 echo "$as_me: error: cannot compute sizeof (short)
19928 See \`config.log' for more details." >&2;}
19929    { (exit 77); exit 77; }; }
19930    else
19931      ac_cv_sizeof_short=0
19932    fi
19933 fi
19934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19935 fi
19936 rm -f conftest.val
19937 fi
19938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19939 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19940
19941
19942
19943 cat >>confdefs.h <<_ACEOF
19944 #define SIZEOF_SHORT $ac_cv_sizeof_short
19945 _ACEOF
19946
19947
19948 { echo "$as_me:$LINENO: checking for void *" >&5
19949 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19950 if test "${ac_cv_type_void_p+set}" = set; then
19951   echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953   cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h.  */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h.  */
19959 $ac_includes_default
19960 typedef void * ac__type_new_;
19961 int
19962 main ()
19963 {
19964 if ((ac__type_new_ *) 0)
19965   return 0;
19966 if (sizeof (ac__type_new_))
19967   return 0;
19968   ;
19969   return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext
19973 if { (ac_try="$ac_compile"
19974 case "(($ac_try" in
19975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976   *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979   (eval "$ac_compile") 2>conftest.er1
19980   ac_status=$?
19981   grep -v '^ *+' conftest.er1 >conftest.err
19982   rm -f conftest.er1
19983   cat conftest.err >&5
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); } && {
19986          test -z "$ac_c_werror_flag" ||
19987          test ! -s conftest.err
19988        } && test -s conftest.$ac_objext; then
19989   ac_cv_type_void_p=yes
19990 else
19991   echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19993
19994         ac_cv_type_void_p=no
19995 fi
19996
19997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 fi
19999 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20000 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20001
20002 # The cast to long int works around a bug in the HP C Compiler
20003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20005 # This bug is HP SR number 8606223364.
20006 { echo "$as_me:$LINENO: checking size of void *" >&5
20007 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20008 if test "${ac_cv_sizeof_void_p+set}" = set; then
20009   echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011   if test "$cross_compiling" = yes; then
20012   # Depending upon the size, compute the lo and hi bounds.
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 $ac_includes_default
20020    typedef void * ac__type_sizeof_;
20021 int
20022 main ()
20023 {
20024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20025 test_array [0] = 0
20026
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext
20032 if { (ac_try="$ac_compile"
20033 case "(($ac_try" in
20034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035   *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038   (eval "$ac_compile") 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } && {
20045          test -z "$ac_c_werror_flag" ||
20046          test ! -s conftest.err
20047        } && test -s conftest.$ac_objext; then
20048   ac_lo=0 ac_mid=0
20049   while :; do
20050     cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 $ac_includes_default
20057    typedef void * ac__type_sizeof_;
20058 int
20059 main ()
20060 {
20061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20062 test_array [0] = 0
20063
20064   ;
20065   return 0;
20066 }
20067 _ACEOF
20068 rm -f conftest.$ac_objext
20069 if { (ac_try="$ac_compile"
20070 case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_compile") 2>conftest.er1
20076   ac_status=$?
20077   grep -v '^ *+' conftest.er1 >conftest.err
20078   rm -f conftest.er1
20079   cat conftest.err >&5
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); } && {
20082          test -z "$ac_c_werror_flag" ||
20083          test ! -s conftest.err
20084        } && test -s conftest.$ac_objext; then
20085   ac_hi=$ac_mid; break
20086 else
20087   echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090         ac_lo=`expr $ac_mid + 1`
20091                         if test $ac_lo -le $ac_mid; then
20092                           ac_lo= ac_hi=
20093                           break
20094                         fi
20095                         ac_mid=`expr 2 '*' $ac_mid + 1`
20096 fi
20097
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20099   done
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104         cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h.  */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h.  */
20110 $ac_includes_default
20111    typedef void * ac__type_sizeof_;
20112 int
20113 main ()
20114 {
20115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20116 test_array [0] = 0
20117
20118   ;
20119   return 0;
20120 }
20121 _ACEOF
20122 rm -f conftest.$ac_objext
20123 if { (ac_try="$ac_compile"
20124 case "(($ac_try" in
20125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126   *) ac_try_echo=$ac_try;;
20127 esac
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129   (eval "$ac_compile") 2>conftest.er1
20130   ac_status=$?
20131   grep -v '^ *+' conftest.er1 >conftest.err
20132   rm -f conftest.er1
20133   cat conftest.err >&5
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); } && {
20136          test -z "$ac_c_werror_flag" ||
20137          test ! -s conftest.err
20138        } && test -s conftest.$ac_objext; then
20139   ac_hi=-1 ac_mid=-1
20140   while :; do
20141     cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 $ac_includes_default
20148    typedef void * ac__type_sizeof_;
20149 int
20150 main ()
20151 {
20152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20153 test_array [0] = 0
20154
20155   ;
20156   return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (ac_try="$ac_compile"
20161 case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166   (eval "$ac_compile") 2>conftest.er1
20167   ac_status=$?
20168   grep -v '^ *+' conftest.er1 >conftest.err
20169   rm -f conftest.er1
20170   cat conftest.err >&5
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } && {
20173          test -z "$ac_c_werror_flag" ||
20174          test ! -s conftest.err
20175        } && test -s conftest.$ac_objext; then
20176   ac_lo=$ac_mid; break
20177 else
20178   echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20180
20181         ac_hi=`expr '(' $ac_mid ')' - 1`
20182                         if test $ac_mid -le $ac_hi; then
20183                           ac_lo= ac_hi=
20184                           break
20185                         fi
20186                         ac_mid=`expr 2 '*' $ac_mid`
20187 fi
20188
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190   done
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195         ac_lo= ac_hi=
20196 fi
20197
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199 fi
20200
20201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 # Binary search between lo and hi bounds.
20203 while test "x$ac_lo" != "x$ac_hi"; do
20204   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20205   cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h.  */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h.  */
20211 $ac_includes_default
20212    typedef void * ac__type_sizeof_;
20213 int
20214 main ()
20215 {
20216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20217 test_array [0] = 0
20218
20219   ;
20220   return 0;
20221 }
20222 _ACEOF
20223 rm -f conftest.$ac_objext
20224 if { (ac_try="$ac_compile"
20225 case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_compile") 2>conftest.er1
20231   ac_status=$?
20232   grep -v '^ *+' conftest.er1 >conftest.err
20233   rm -f conftest.er1
20234   cat conftest.err >&5
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } && {
20237          test -z "$ac_c_werror_flag" ||
20238          test ! -s conftest.err
20239        } && test -s conftest.$ac_objext; then
20240   ac_hi=$ac_mid
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245         ac_lo=`expr '(' $ac_mid ')' + 1`
20246 fi
20247
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249 done
20250 case $ac_lo in
20251 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20252 '') if test "$ac_cv_type_void_p" = yes; then
20253      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20254 See \`config.log' for more details." >&5
20255 echo "$as_me: error: cannot compute sizeof (void *)
20256 See \`config.log' for more details." >&2;}
20257    { (exit 77); exit 77; }; }
20258    else
20259      ac_cv_sizeof_void_p=0
20260    fi ;;
20261 esac
20262 else
20263   cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h.  */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h.  */
20269 $ac_includes_default
20270    typedef void * ac__type_sizeof_;
20271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20273 #include <stdio.h>
20274 #include <stdlib.h>
20275 int
20276 main ()
20277 {
20278
20279   FILE *f = fopen ("conftest.val", "w");
20280   if (! f)
20281     return 1;
20282   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20283     {
20284       long int i = longval ();
20285       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20286         return 1;
20287       fprintf (f, "%ld\n", i);
20288     }
20289   else
20290     {
20291       unsigned long int i = ulongval ();
20292       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20293         return 1;
20294       fprintf (f, "%lu\n", i);
20295     }
20296   return ferror (f) || fclose (f) != 0;
20297
20298   ;
20299   return 0;
20300 }
20301 _ACEOF
20302 rm -f conftest$ac_exeext
20303 if { (ac_try="$ac_link"
20304 case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_link") 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20313   { (case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_try") 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   ac_cv_sizeof_void_p=`cat conftest.val`
20323 else
20324   echo "$as_me: program exited with status $ac_status" >&5
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ( exit $ac_status )
20329 if test "$ac_cv_type_void_p" = yes; then
20330      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20331 See \`config.log' for more details." >&5
20332 echo "$as_me: error: cannot compute sizeof (void *)
20333 See \`config.log' for more details." >&2;}
20334    { (exit 77); exit 77; }; }
20335    else
20336      ac_cv_sizeof_void_p=0
20337    fi
20338 fi
20339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20340 fi
20341 rm -f conftest.val
20342 fi
20343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20344 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20345
20346
20347
20348 cat >>confdefs.h <<_ACEOF
20349 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20350 _ACEOF
20351
20352
20353 { echo "$as_me:$LINENO: checking for int" >&5
20354 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20355 if test "${ac_cv_type_int+set}" = set; then
20356   echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358   cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364 $ac_includes_default
20365 typedef int ac__type_new_;
20366 int
20367 main ()
20368 {
20369 if ((ac__type_new_ *) 0)
20370   return 0;
20371 if (sizeof (ac__type_new_))
20372   return 0;
20373   ;
20374   return 0;
20375 }
20376 _ACEOF
20377 rm -f conftest.$ac_objext
20378 if { (ac_try="$ac_compile"
20379 case "(($ac_try" in
20380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381   *) ac_try_echo=$ac_try;;
20382 esac
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384   (eval "$ac_compile") 2>conftest.er1
20385   ac_status=$?
20386   grep -v '^ *+' conftest.er1 >conftest.err
20387   rm -f conftest.er1
20388   cat conftest.err >&5
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } && {
20391          test -z "$ac_c_werror_flag" ||
20392          test ! -s conftest.err
20393        } && test -s conftest.$ac_objext; then
20394   ac_cv_type_int=yes
20395 else
20396   echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399         ac_cv_type_int=no
20400 fi
20401
20402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20403 fi
20404 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20405 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20406
20407 # The cast to long int works around a bug in the HP C Compiler
20408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20410 # This bug is HP SR number 8606223364.
20411 { echo "$as_me:$LINENO: checking size of int" >&5
20412 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20413 if test "${ac_cv_sizeof_int+set}" = set; then
20414   echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416   if test "$cross_compiling" = yes; then
20417   # Depending upon the size, compute the lo and hi bounds.
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424 $ac_includes_default
20425    typedef int ac__type_sizeof_;
20426 int
20427 main ()
20428 {
20429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20430 test_array [0] = 0
20431
20432   ;
20433   return 0;
20434 }
20435 _ACEOF
20436 rm -f conftest.$ac_objext
20437 if { (ac_try="$ac_compile"
20438 case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_compile") 2>conftest.er1
20444   ac_status=$?
20445   grep -v '^ *+' conftest.er1 >conftest.err
20446   rm -f conftest.er1
20447   cat conftest.err >&5
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); } && {
20450          test -z "$ac_c_werror_flag" ||
20451          test ! -s conftest.err
20452        } && test -s conftest.$ac_objext; then
20453   ac_lo=0 ac_mid=0
20454   while :; do
20455     cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 $ac_includes_default
20462    typedef int ac__type_sizeof_;
20463 int
20464 main ()
20465 {
20466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20467 test_array [0] = 0
20468
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (ac_try="$ac_compile"
20475 case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_compile") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } && {
20487          test -z "$ac_c_werror_flag" ||
20488          test ! -s conftest.err
20489        } && test -s conftest.$ac_objext; then
20490   ac_hi=$ac_mid; break
20491 else
20492   echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20494
20495         ac_lo=`expr $ac_mid + 1`
20496                         if test $ac_lo -le $ac_mid; then
20497                           ac_lo= ac_hi=
20498                           break
20499                         fi
20500                         ac_mid=`expr 2 '*' $ac_mid + 1`
20501 fi
20502
20503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504   done
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509         cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515 $ac_includes_default
20516    typedef int ac__type_sizeof_;
20517 int
20518 main ()
20519 {
20520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20521 test_array [0] = 0
20522
20523   ;
20524   return 0;
20525 }
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (ac_try="$ac_compile"
20529 case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_compile") 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } && {
20541          test -z "$ac_c_werror_flag" ||
20542          test ! -s conftest.err
20543        } && test -s conftest.$ac_objext; then
20544   ac_hi=-1 ac_mid=-1
20545   while :; do
20546     cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 $ac_includes_default
20553    typedef int ac__type_sizeof_;
20554 int
20555 main ()
20556 {
20557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20558 test_array [0] = 0
20559
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_compile") 2>conftest.er1
20572   ac_status=$?
20573   grep -v '^ *+' conftest.er1 >conftest.err
20574   rm -f conftest.er1
20575   cat conftest.err >&5
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); } && {
20578          test -z "$ac_c_werror_flag" ||
20579          test ! -s conftest.err
20580        } && test -s conftest.$ac_objext; then
20581   ac_lo=$ac_mid; break
20582 else
20583   echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586         ac_hi=`expr '(' $ac_mid ')' - 1`
20587                         if test $ac_mid -le $ac_hi; then
20588                           ac_lo= ac_hi=
20589                           break
20590                         fi
20591                         ac_mid=`expr 2 '*' $ac_mid`
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595   done
20596 else
20597   echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600         ac_lo= ac_hi=
20601 fi
20602
20603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 fi
20605
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607 # Binary search between lo and hi bounds.
20608 while test "x$ac_lo" != "x$ac_hi"; do
20609   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20610   cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 $ac_includes_default
20617    typedef int ac__type_sizeof_;
20618 int
20619 main ()
20620 {
20621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20622 test_array [0] = 0
20623
20624   ;
20625   return 0;
20626 }
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632   *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635   (eval "$ac_compile") 2>conftest.er1
20636   ac_status=$?
20637   grep -v '^ *+' conftest.er1 >conftest.err
20638   rm -f conftest.er1
20639   cat conftest.err >&5
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); } && {
20642          test -z "$ac_c_werror_flag" ||
20643          test ! -s conftest.err
20644        } && test -s conftest.$ac_objext; then
20645   ac_hi=$ac_mid
20646 else
20647   echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20649
20650         ac_lo=`expr '(' $ac_mid ')' + 1`
20651 fi
20652
20653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 done
20655 case $ac_lo in
20656 ?*) ac_cv_sizeof_int=$ac_lo;;
20657 '') if test "$ac_cv_type_int" = yes; then
20658      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20659 See \`config.log' for more details." >&5
20660 echo "$as_me: error: cannot compute sizeof (int)
20661 See \`config.log' for more details." >&2;}
20662    { (exit 77); exit 77; }; }
20663    else
20664      ac_cv_sizeof_int=0
20665    fi ;;
20666 esac
20667 else
20668   cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h.  */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h.  */
20674 $ac_includes_default
20675    typedef int ac__type_sizeof_;
20676 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20677 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20678 #include <stdio.h>
20679 #include <stdlib.h>
20680 int
20681 main ()
20682 {
20683
20684   FILE *f = fopen ("conftest.val", "w");
20685   if (! f)
20686     return 1;
20687   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20688     {
20689       long int i = longval ();
20690       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20691         return 1;
20692       fprintf (f, "%ld\n", i);
20693     }
20694   else
20695     {
20696       unsigned long int i = ulongval ();
20697       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20698         return 1;
20699       fprintf (f, "%lu\n", i);
20700     }
20701   return ferror (f) || fclose (f) != 0;
20702
20703   ;
20704   return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_link") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20718   { (case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_try") 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; }; then
20727   ac_cv_sizeof_int=`cat conftest.val`
20728 else
20729   echo "$as_me: program exited with status $ac_status" >&5
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 ( exit $ac_status )
20734 if test "$ac_cv_type_int" = yes; then
20735      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20736 See \`config.log' for more details." >&5
20737 echo "$as_me: error: cannot compute sizeof (int)
20738 See \`config.log' for more details." >&2;}
20739    { (exit 77); exit 77; }; }
20740    else
20741      ac_cv_sizeof_int=0
20742    fi
20743 fi
20744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20745 fi
20746 rm -f conftest.val
20747 fi
20748 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20749 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20750
20751
20752
20753 cat >>confdefs.h <<_ACEOF
20754 #define SIZEOF_INT $ac_cv_sizeof_int
20755 _ACEOF
20756
20757
20758 { echo "$as_me:$LINENO: checking for long" >&5
20759 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20760 if test "${ac_cv_type_long+set}" = set; then
20761   echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763   cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 $ac_includes_default
20770 typedef long ac__type_new_;
20771 int
20772 main ()
20773 {
20774 if ((ac__type_new_ *) 0)
20775   return 0;
20776 if (sizeof (ac__type_new_))
20777   return 0;
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789   (eval "$ac_compile") 2>conftest.er1
20790   ac_status=$?
20791   grep -v '^ *+' conftest.er1 >conftest.err
20792   rm -f conftest.er1
20793   cat conftest.err >&5
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); } && {
20796          test -z "$ac_c_werror_flag" ||
20797          test ! -s conftest.err
20798        } && test -s conftest.$ac_objext; then
20799   ac_cv_type_long=yes
20800 else
20801   echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804         ac_cv_type_long=no
20805 fi
20806
20807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20808 fi
20809 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20810 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20811
20812 # The cast to long int works around a bug in the HP C Compiler
20813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20815 # This bug is HP SR number 8606223364.
20816 { echo "$as_me:$LINENO: checking size of long" >&5
20817 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20818 if test "${ac_cv_sizeof_long+set}" = set; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821   if test "$cross_compiling" = yes; then
20822   # Depending upon the size, compute the lo and hi bounds.
20823 cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829 $ac_includes_default
20830    typedef long ac__type_sizeof_;
20831 int
20832 main ()
20833 {
20834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20835 test_array [0] = 0
20836
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 rm -f conftest.$ac_objext
20842 if { (ac_try="$ac_compile"
20843 case "(($ac_try" in
20844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845   *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848   (eval "$ac_compile") 2>conftest.er1
20849   ac_status=$?
20850   grep -v '^ *+' conftest.er1 >conftest.err
20851   rm -f conftest.er1
20852   cat conftest.err >&5
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } && {
20855          test -z "$ac_c_werror_flag" ||
20856          test ! -s conftest.err
20857        } && test -s conftest.$ac_objext; then
20858   ac_lo=0 ac_mid=0
20859   while :; do
20860     cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h.  */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h.  */
20866 $ac_includes_default
20867    typedef long ac__type_sizeof_;
20868 int
20869 main ()
20870 {
20871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20872 test_array [0] = 0
20873
20874   ;
20875   return 0;
20876 }
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882   *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885   (eval "$ac_compile") 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } && {
20892          test -z "$ac_c_werror_flag" ||
20893          test ! -s conftest.err
20894        } && test -s conftest.$ac_objext; then
20895   ac_hi=$ac_mid; break
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900         ac_lo=`expr $ac_mid + 1`
20901                         if test $ac_lo -le $ac_mid; then
20902                           ac_lo= ac_hi=
20903                           break
20904                         fi
20905                         ac_mid=`expr 2 '*' $ac_mid + 1`
20906 fi
20907
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909   done
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920 $ac_includes_default
20921    typedef long ac__type_sizeof_;
20922 int
20923 main ()
20924 {
20925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20926 test_array [0] = 0
20927
20928   ;
20929   return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_compile") 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } && {
20946          test -z "$ac_c_werror_flag" ||
20947          test ! -s conftest.err
20948        } && test -s conftest.$ac_objext; then
20949   ac_hi=-1 ac_mid=-1
20950   while :; do
20951     cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 $ac_includes_default
20958    typedef long ac__type_sizeof_;
20959 int
20960 main ()
20961 {
20962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20963 test_array [0] = 0
20964
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973   *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976   (eval "$ac_compile") 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } && {
20983          test -z "$ac_c_werror_flag" ||
20984          test ! -s conftest.err
20985        } && test -s conftest.$ac_objext; then
20986   ac_lo=$ac_mid; break
20987 else
20988   echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991         ac_hi=`expr '(' $ac_mid ')' - 1`
20992                         if test $ac_mid -le $ac_hi; then
20993                           ac_lo= ac_hi=
20994                           break
20995                         fi
20996                         ac_mid=`expr 2 '*' $ac_mid`
20997 fi
20998
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000   done
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005         ac_lo= ac_hi=
21006 fi
21007
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 fi
21010
21011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21012 # Binary search between lo and hi bounds.
21013 while test "x$ac_lo" != "x$ac_hi"; do
21014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21015   cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h.  */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h.  */
21021 $ac_includes_default
21022    typedef long ac__type_sizeof_;
21023 int
21024 main ()
21025 {
21026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21027 test_array [0] = 0
21028
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest.$ac_objext
21034 if { (ac_try="$ac_compile"
21035 case "(($ac_try" in
21036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037   *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040   (eval "$ac_compile") 2>conftest.er1
21041   ac_status=$?
21042   grep -v '^ *+' conftest.er1 >conftest.err
21043   rm -f conftest.er1
21044   cat conftest.err >&5
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); } && {
21047          test -z "$ac_c_werror_flag" ||
21048          test ! -s conftest.err
21049        } && test -s conftest.$ac_objext; then
21050   ac_hi=$ac_mid
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055         ac_lo=`expr '(' $ac_mid ')' + 1`
21056 fi
21057
21058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21059 done
21060 case $ac_lo in
21061 ?*) ac_cv_sizeof_long=$ac_lo;;
21062 '') if test "$ac_cv_type_long" = yes; then
21063      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21064 See \`config.log' for more details." >&5
21065 echo "$as_me: error: cannot compute sizeof (long)
21066 See \`config.log' for more details." >&2;}
21067    { (exit 77); exit 77; }; }
21068    else
21069      ac_cv_sizeof_long=0
21070    fi ;;
21071 esac
21072 else
21073   cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 $ac_includes_default
21080    typedef long ac__type_sizeof_;
21081 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21082 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21083 #include <stdio.h>
21084 #include <stdlib.h>
21085 int
21086 main ()
21087 {
21088
21089   FILE *f = fopen ("conftest.val", "w");
21090   if (! f)
21091     return 1;
21092   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21093     {
21094       long int i = longval ();
21095       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21096         return 1;
21097       fprintf (f, "%ld\n", i);
21098     }
21099   else
21100     {
21101       unsigned long int i = ulongval ();
21102       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21103         return 1;
21104       fprintf (f, "%lu\n", i);
21105     }
21106   return ferror (f) || fclose (f) != 0;
21107
21108   ;
21109   return 0;
21110 }
21111 _ACEOF
21112 rm -f conftest$ac_exeext
21113 if { (ac_try="$ac_link"
21114 case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_link") 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21123   { (case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_try") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; }; then
21132   ac_cv_sizeof_long=`cat conftest.val`
21133 else
21134   echo "$as_me: program exited with status $ac_status" >&5
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 ( exit $ac_status )
21139 if test "$ac_cv_type_long" = yes; then
21140      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21141 See \`config.log' for more details." >&5
21142 echo "$as_me: error: cannot compute sizeof (long)
21143 See \`config.log' for more details." >&2;}
21144    { (exit 77); exit 77; }; }
21145    else
21146      ac_cv_sizeof_long=0
21147    fi
21148 fi
21149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21150 fi
21151 rm -f conftest.val
21152 fi
21153 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21154 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21155
21156
21157
21158 cat >>confdefs.h <<_ACEOF
21159 #define SIZEOF_LONG $ac_cv_sizeof_long
21160 _ACEOF
21161
21162
21163 { echo "$as_me:$LINENO: checking for size_t" >&5
21164 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21165 if test "${ac_cv_type_size_t+set}" = set; then
21166   echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21168   cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h.  */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h.  */
21174 $ac_includes_default
21175 typedef size_t ac__type_new_;
21176 int
21177 main ()
21178 {
21179 if ((ac__type_new_ *) 0)
21180   return 0;
21181 if (sizeof (ac__type_new_))
21182   return 0;
21183   ;
21184   return 0;
21185 }
21186 _ACEOF
21187 rm -f conftest.$ac_objext
21188 if { (ac_try="$ac_compile"
21189 case "(($ac_try" in
21190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191   *) ac_try_echo=$ac_try;;
21192 esac
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194   (eval "$ac_compile") 2>conftest.er1
21195   ac_status=$?
21196   grep -v '^ *+' conftest.er1 >conftest.err
21197   rm -f conftest.er1
21198   cat conftest.err >&5
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } && {
21201          test -z "$ac_c_werror_flag" ||
21202          test ! -s conftest.err
21203        } && test -s conftest.$ac_objext; then
21204   ac_cv_type_size_t=yes
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209         ac_cv_type_size_t=no
21210 fi
21211
21212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213 fi
21214 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21215 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21216
21217 # The cast to long int works around a bug in the HP C Compiler
21218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21220 # This bug is HP SR number 8606223364.
21221 { echo "$as_me:$LINENO: checking size of size_t" >&5
21222 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21223 if test "${ac_cv_sizeof_size_t+set}" = set; then
21224   echo $ECHO_N "(cached) $ECHO_C" >&6
21225 else
21226   if test "$cross_compiling" = yes; then
21227   # Depending upon the size, compute the lo and hi bounds.
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 $ac_includes_default
21235    typedef size_t ac__type_sizeof_;
21236 int
21237 main ()
21238 {
21239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21240 test_array [0] = 0
21241
21242   ;
21243   return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (ac_try="$ac_compile"
21248 case "(($ac_try" in
21249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250   *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253   (eval "$ac_compile") 2>conftest.er1
21254   ac_status=$?
21255   grep -v '^ *+' conftest.er1 >conftest.err
21256   rm -f conftest.er1
21257   cat conftest.err >&5
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); } && {
21260          test -z "$ac_c_werror_flag" ||
21261          test ! -s conftest.err
21262        } && test -s conftest.$ac_objext; then
21263   ac_lo=0 ac_mid=0
21264   while :; do
21265     cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271 $ac_includes_default
21272    typedef size_t ac__type_sizeof_;
21273 int
21274 main ()
21275 {
21276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21277 test_array [0] = 0
21278
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_compile") 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } && {
21297          test -z "$ac_c_werror_flag" ||
21298          test ! -s conftest.err
21299        } && test -s conftest.$ac_objext; then
21300   ac_hi=$ac_mid; break
21301 else
21302   echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305         ac_lo=`expr $ac_mid + 1`
21306                         if test $ac_lo -le $ac_mid; then
21307                           ac_lo= ac_hi=
21308                           break
21309                         fi
21310                         ac_mid=`expr 2 '*' $ac_mid + 1`
21311 fi
21312
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314   done
21315 else
21316   echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h.  */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h.  */
21325 $ac_includes_default
21326    typedef size_t ac__type_sizeof_;
21327 int
21328 main ()
21329 {
21330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21331 test_array [0] = 0
21332
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341   *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344   (eval "$ac_compile") 2>conftest.er1
21345   ac_status=$?
21346   grep -v '^ *+' conftest.er1 >conftest.err
21347   rm -f conftest.er1
21348   cat conftest.err >&5
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); } && {
21351          test -z "$ac_c_werror_flag" ||
21352          test ! -s conftest.err
21353        } && test -s conftest.$ac_objext; then
21354   ac_hi=-1 ac_mid=-1
21355   while :; do
21356     cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 $ac_includes_default
21363    typedef size_t ac__type_sizeof_;
21364 int
21365 main ()
21366 {
21367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21368 test_array [0] = 0
21369
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_compile") 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } && {
21388          test -z "$ac_c_werror_flag" ||
21389          test ! -s conftest.err
21390        } && test -s conftest.$ac_objext; then
21391   ac_lo=$ac_mid; break
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396         ac_hi=`expr '(' $ac_mid ')' - 1`
21397                         if test $ac_mid -le $ac_hi; then
21398                           ac_lo= ac_hi=
21399                           break
21400                         fi
21401                         ac_mid=`expr 2 '*' $ac_mid`
21402 fi
21403
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405   done
21406 else
21407   echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410         ac_lo= ac_hi=
21411 fi
21412
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 fi
21415
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 # Binary search between lo and hi bounds.
21418 while test "x$ac_lo" != "x$ac_hi"; do
21419   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21420   cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426 $ac_includes_default
21427    typedef size_t ac__type_sizeof_;
21428 int
21429 main ()
21430 {
21431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21432 test_array [0] = 0
21433
21434   ;
21435   return 0;
21436 }
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442   *) ac_try_echo=$ac_try;;
21443 esac
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445   (eval "$ac_compile") 2>conftest.er1
21446   ac_status=$?
21447   grep -v '^ *+' conftest.er1 >conftest.err
21448   rm -f conftest.er1
21449   cat conftest.err >&5
21450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); } && {
21452          test -z "$ac_c_werror_flag" ||
21453          test ! -s conftest.err
21454        } && test -s conftest.$ac_objext; then
21455   ac_hi=$ac_mid
21456 else
21457   echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460         ac_lo=`expr '(' $ac_mid ')' + 1`
21461 fi
21462
21463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 done
21465 case $ac_lo in
21466 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21467 '') if test "$ac_cv_type_size_t" = yes; then
21468      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21469 See \`config.log' for more details." >&5
21470 echo "$as_me: error: cannot compute sizeof (size_t)
21471 See \`config.log' for more details." >&2;}
21472    { (exit 77); exit 77; }; }
21473    else
21474      ac_cv_sizeof_size_t=0
21475    fi ;;
21476 esac
21477 else
21478   cat >conftest.$ac_ext <<_ACEOF
21479 /* confdefs.h.  */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h.  */
21484 $ac_includes_default
21485    typedef size_t ac__type_sizeof_;
21486 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21487 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21488 #include <stdio.h>
21489 #include <stdlib.h>
21490 int
21491 main ()
21492 {
21493
21494   FILE *f = fopen ("conftest.val", "w");
21495   if (! f)
21496     return 1;
21497   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21498     {
21499       long int i = longval ();
21500       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21501         return 1;
21502       fprintf (f, "%ld\n", i);
21503     }
21504   else
21505     {
21506       unsigned long int i = ulongval ();
21507       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21508         return 1;
21509       fprintf (f, "%lu\n", i);
21510     }
21511   return ferror (f) || fclose (f) != 0;
21512
21513   ;
21514   return 0;
21515 }
21516 _ACEOF
21517 rm -f conftest$ac_exeext
21518 if { (ac_try="$ac_link"
21519 case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_link") 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528   { (case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533   (eval "$ac_try") 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); }; }; then
21537   ac_cv_sizeof_size_t=`cat conftest.val`
21538 else
21539   echo "$as_me: program exited with status $ac_status" >&5
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 ( exit $ac_status )
21544 if test "$ac_cv_type_size_t" = yes; then
21545      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21546 See \`config.log' for more details." >&5
21547 echo "$as_me: error: cannot compute sizeof (size_t)
21548 See \`config.log' for more details." >&2;}
21549    { (exit 77); exit 77; }; }
21550    else
21551      ac_cv_sizeof_size_t=0
21552    fi
21553 fi
21554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21555 fi
21556 rm -f conftest.val
21557 fi
21558 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21559 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21560
21561
21562
21563 cat >>confdefs.h <<_ACEOF
21564 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21565 _ACEOF
21566
21567
21568
21569 case "${host}" in
21570     arm-*-linux* )
21571         { echo "$as_me:$LINENO: checking for long long" >&5
21572 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21573 if test "${ac_cv_type_long_long+set}" = set; then
21574   echo $ECHO_N "(cached) $ECHO_C" >&6
21575 else
21576   cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h.  */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h.  */
21582 $ac_includes_default
21583 typedef long long ac__type_new_;
21584 int
21585 main ()
21586 {
21587 if ((ac__type_new_ *) 0)
21588   return 0;
21589 if (sizeof (ac__type_new_))
21590   return 0;
21591   ;
21592   return 0;
21593 }
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_compile") 2>conftest.er1
21603   ac_status=$?
21604   grep -v '^ *+' conftest.er1 >conftest.err
21605   rm -f conftest.er1
21606   cat conftest.err >&5
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && {
21609          test -z "$ac_c_werror_flag" ||
21610          test ! -s conftest.err
21611        } && test -s conftest.$ac_objext; then
21612   ac_cv_type_long_long=yes
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617         ac_cv_type_long_long=no
21618 fi
21619
21620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21621 fi
21622 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21623 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21624
21625 # The cast to long int works around a bug in the HP C Compiler
21626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21628 # This bug is HP SR number 8606223364.
21629 { echo "$as_me:$LINENO: checking size of long long" >&5
21630 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21631 if test "${ac_cv_sizeof_long_long+set}" = set; then
21632   echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634   if test "$cross_compiling" = yes; then
21635   # Depending upon the size, compute the lo and hi bounds.
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642 $ac_includes_default
21643    typedef long long ac__type_sizeof_;
21644 int
21645 main ()
21646 {
21647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21648 test_array [0] = 0
21649
21650   ;
21651   return 0;
21652 }
21653 _ACEOF
21654 rm -f conftest.$ac_objext
21655 if { (ac_try="$ac_compile"
21656 case "(($ac_try" in
21657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658   *) ac_try_echo=$ac_try;;
21659 esac
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661   (eval "$ac_compile") 2>conftest.er1
21662   ac_status=$?
21663   grep -v '^ *+' conftest.er1 >conftest.err
21664   rm -f conftest.er1
21665   cat conftest.err >&5
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); } && {
21668          test -z "$ac_c_werror_flag" ||
21669          test ! -s conftest.err
21670        } && test -s conftest.$ac_objext; then
21671   ac_lo=0 ac_mid=0
21672   while :; do
21673     cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h.  */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h.  */
21679 $ac_includes_default
21680    typedef long long ac__type_sizeof_;
21681 int
21682 main ()
21683 {
21684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21685 test_array [0] = 0
21686
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (ac_try="$ac_compile"
21693 case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_compile") 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } && {
21705          test -z "$ac_c_werror_flag" ||
21706          test ! -s conftest.err
21707        } && test -s conftest.$ac_objext; then
21708   ac_hi=$ac_mid; break
21709 else
21710   echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713         ac_lo=`expr $ac_mid + 1`
21714                         if test $ac_lo -le $ac_mid; then
21715                           ac_lo= ac_hi=
21716                           break
21717                         fi
21718                         ac_mid=`expr 2 '*' $ac_mid + 1`
21719 fi
21720
21721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722   done
21723 else
21724   echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727         cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h.  */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h.  */
21733 $ac_includes_default
21734    typedef long long ac__type_sizeof_;
21735 int
21736 main ()
21737 {
21738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21739 test_array [0] = 0
21740
21741   ;
21742   return 0;
21743 }
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (ac_try="$ac_compile"
21747 case "(($ac_try" in
21748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749   *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752   (eval "$ac_compile") 2>conftest.er1
21753   ac_status=$?
21754   grep -v '^ *+' conftest.er1 >conftest.err
21755   rm -f conftest.er1
21756   cat conftest.err >&5
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); } && {
21759          test -z "$ac_c_werror_flag" ||
21760          test ! -s conftest.err
21761        } && test -s conftest.$ac_objext; then
21762   ac_hi=-1 ac_mid=-1
21763   while :; do
21764     cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h.  */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h.  */
21770 $ac_includes_default
21771    typedef long long ac__type_sizeof_;
21772 int
21773 main ()
21774 {
21775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21776 test_array [0] = 0
21777
21778   ;
21779   return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest.$ac_objext
21783 if { (ac_try="$ac_compile"
21784 case "(($ac_try" in
21785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786   *) ac_try_echo=$ac_try;;
21787 esac
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789   (eval "$ac_compile") 2>conftest.er1
21790   ac_status=$?
21791   grep -v '^ *+' conftest.er1 >conftest.err
21792   rm -f conftest.er1
21793   cat conftest.err >&5
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); } && {
21796          test -z "$ac_c_werror_flag" ||
21797          test ! -s conftest.err
21798        } && test -s conftest.$ac_objext; then
21799   ac_lo=$ac_mid; break
21800 else
21801   echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804         ac_hi=`expr '(' $ac_mid ')' - 1`
21805                         if test $ac_mid -le $ac_hi; then
21806                           ac_lo= ac_hi=
21807                           break
21808                         fi
21809                         ac_mid=`expr 2 '*' $ac_mid`
21810 fi
21811
21812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21813   done
21814 else
21815   echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818         ac_lo= ac_hi=
21819 fi
21820
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 fi
21823
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 # Binary search between lo and hi bounds.
21826 while test "x$ac_lo" != "x$ac_hi"; do
21827   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21828   cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834 $ac_includes_default
21835    typedef long long ac__type_sizeof_;
21836 int
21837 main ()
21838 {
21839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21840 test_array [0] = 0
21841
21842   ;
21843   return 0;
21844 }
21845 _ACEOF
21846 rm -f conftest.$ac_objext
21847 if { (ac_try="$ac_compile"
21848 case "(($ac_try" in
21849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850   *) ac_try_echo=$ac_try;;
21851 esac
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853   (eval "$ac_compile") 2>conftest.er1
21854   ac_status=$?
21855   grep -v '^ *+' conftest.er1 >conftest.err
21856   rm -f conftest.er1
21857   cat conftest.err >&5
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); } && {
21860          test -z "$ac_c_werror_flag" ||
21861          test ! -s conftest.err
21862        } && test -s conftest.$ac_objext; then
21863   ac_hi=$ac_mid
21864 else
21865   echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21867
21868         ac_lo=`expr '(' $ac_mid ')' + 1`
21869 fi
21870
21871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872 done
21873 case $ac_lo in
21874 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21875 '') if test "$ac_cv_type_long_long" = yes; then
21876      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21877 See \`config.log' for more details." >&5
21878 echo "$as_me: error: cannot compute sizeof (long long)
21879 See \`config.log' for more details." >&2;}
21880    { (exit 77); exit 77; }; }
21881    else
21882      ac_cv_sizeof_long_long=0
21883    fi ;;
21884 esac
21885 else
21886   cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h.  */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h.  */
21892 $ac_includes_default
21893    typedef long long ac__type_sizeof_;
21894 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21895 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21896 #include <stdio.h>
21897 #include <stdlib.h>
21898 int
21899 main ()
21900 {
21901
21902   FILE *f = fopen ("conftest.val", "w");
21903   if (! f)
21904     return 1;
21905   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21906     {
21907       long int i = longval ();
21908       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21909         return 1;
21910       fprintf (f, "%ld\n", i);
21911     }
21912   else
21913     {
21914       unsigned long int i = ulongval ();
21915       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21916         return 1;
21917       fprintf (f, "%lu\n", i);
21918     }
21919   return ferror (f) || fclose (f) != 0;
21920
21921   ;
21922   return 0;
21923 }
21924 _ACEOF
21925 rm -f conftest$ac_exeext
21926 if { (ac_try="$ac_link"
21927 case "(($ac_try" in
21928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929   *) ac_try_echo=$ac_try;;
21930 esac
21931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932   (eval "$ac_link") 2>&5
21933   ac_status=$?
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21936   { (case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941   (eval "$ac_try") 2>&5
21942   ac_status=$?
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); }; }; then
21945   ac_cv_sizeof_long_long=`cat conftest.val`
21946 else
21947   echo "$as_me: program exited with status $ac_status" >&5
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951 ( exit $ac_status )
21952 if test "$ac_cv_type_long_long" = yes; then
21953      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21954 See \`config.log' for more details." >&5
21955 echo "$as_me: error: cannot compute sizeof (long long)
21956 See \`config.log' for more details." >&2;}
21957    { (exit 77); exit 77; }; }
21958    else
21959      ac_cv_sizeof_long_long=0
21960    fi
21961 fi
21962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21963 fi
21964 rm -f conftest.val
21965 fi
21966 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21967 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21968
21969
21970
21971 cat >>confdefs.h <<_ACEOF
21972 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21973 _ACEOF
21974
21975
21976     ;;
21977     *-hp-hpux* )
21978         { echo "$as_me:$LINENO: checking for long long" >&5
21979 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21980 if test "${ac_cv_type_long_long+set}" = set; then
21981   echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983   cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h.  */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h.  */
21989 $ac_includes_default
21990 typedef long long ac__type_new_;
21991 int
21992 main ()
21993 {
21994 if ((ac__type_new_ *) 0)
21995   return 0;
21996 if (sizeof (ac__type_new_))
21997   return 0;
21998   ;
21999   return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006   *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009   (eval "$ac_compile") 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } && {
22016          test -z "$ac_c_werror_flag" ||
22017          test ! -s conftest.err
22018        } && test -s conftest.$ac_objext; then
22019   ac_cv_type_long_long=yes
22020 else
22021   echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024         ac_cv_type_long_long=no
22025 fi
22026
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 fi
22029 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22030 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22031
22032 # The cast to long int works around a bug in the HP C Compiler
22033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22035 # This bug is HP SR number 8606223364.
22036 { echo "$as_me:$LINENO: checking size of long long" >&5
22037 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22038 if test "${ac_cv_sizeof_long_long+set}" = set; then
22039   echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041   if test "$cross_compiling" = yes; then
22042   # Depending upon the size, compute the lo and hi bounds.
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h.  */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h.  */
22049 $ac_includes_default
22050    typedef long long ac__type_sizeof_;
22051 int
22052 main ()
22053 {
22054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22055 test_array [0] = 0
22056
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 rm -f conftest.$ac_objext
22062 if { (ac_try="$ac_compile"
22063 case "(($ac_try" in
22064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065   *) ac_try_echo=$ac_try;;
22066 esac
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068   (eval "$ac_compile") 2>conftest.er1
22069   ac_status=$?
22070   grep -v '^ *+' conftest.er1 >conftest.err
22071   rm -f conftest.er1
22072   cat conftest.err >&5
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); } && {
22075          test -z "$ac_c_werror_flag" ||
22076          test ! -s conftest.err
22077        } && test -s conftest.$ac_objext; then
22078   ac_lo=0 ac_mid=0
22079   while :; do
22080     cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 $ac_includes_default
22087    typedef long long ac__type_sizeof_;
22088 int
22089 main ()
22090 {
22091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22092 test_array [0] = 0
22093
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_compile") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } && {
22112          test -z "$ac_c_werror_flag" ||
22113          test ! -s conftest.err
22114        } && test -s conftest.$ac_objext; then
22115   ac_hi=$ac_mid; break
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120         ac_lo=`expr $ac_mid + 1`
22121                         if test $ac_lo -le $ac_mid; then
22122                           ac_lo= ac_hi=
22123                           break
22124                         fi
22125                         ac_mid=`expr 2 '*' $ac_mid + 1`
22126 fi
22127
22128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22129   done
22130 else
22131   echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134         cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140 $ac_includes_default
22141    typedef long long ac__type_sizeof_;
22142 int
22143 main ()
22144 {
22145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22146 test_array [0] = 0
22147
22148   ;
22149   return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_compile") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && {
22166          test -z "$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        } && test -s conftest.$ac_objext; then
22169   ac_hi=-1 ac_mid=-1
22170   while :; do
22171     cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177 $ac_includes_default
22178    typedef long long ac__type_sizeof_;
22179 int
22180 main ()
22181 {
22182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22183 test_array [0] = 0
22184
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext
22190 if { (ac_try="$ac_compile"
22191 case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196   (eval "$ac_compile") 2>conftest.er1
22197   ac_status=$?
22198   grep -v '^ *+' conftest.er1 >conftest.err
22199   rm -f conftest.er1
22200   cat conftest.err >&5
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); } && {
22203          test -z "$ac_c_werror_flag" ||
22204          test ! -s conftest.err
22205        } && test -s conftest.$ac_objext; then
22206   ac_lo=$ac_mid; break
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211         ac_hi=`expr '(' $ac_mid ')' - 1`
22212                         if test $ac_mid -le $ac_hi; then
22213                           ac_lo= ac_hi=
22214                           break
22215                         fi
22216                         ac_mid=`expr 2 '*' $ac_mid`
22217 fi
22218
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220   done
22221 else
22222   echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22224
22225         ac_lo= ac_hi=
22226 fi
22227
22228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22229 fi
22230
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 # Binary search between lo and hi bounds.
22233 while test "x$ac_lo" != "x$ac_hi"; do
22234   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22235   cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 $ac_includes_default
22242    typedef long long ac__type_sizeof_;
22243 int
22244 main ()
22245 {
22246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22247 test_array [0] = 0
22248
22249   ;
22250   return 0;
22251 }
22252 _ACEOF
22253 rm -f conftest.$ac_objext
22254 if { (ac_try="$ac_compile"
22255 case "(($ac_try" in
22256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257   *) ac_try_echo=$ac_try;;
22258 esac
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260   (eval "$ac_compile") 2>conftest.er1
22261   ac_status=$?
22262   grep -v '^ *+' conftest.er1 >conftest.err
22263   rm -f conftest.er1
22264   cat conftest.err >&5
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); } && {
22267          test -z "$ac_c_werror_flag" ||
22268          test ! -s conftest.err
22269        } && test -s conftest.$ac_objext; then
22270   ac_hi=$ac_mid
22271 else
22272   echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22274
22275         ac_lo=`expr '(' $ac_mid ')' + 1`
22276 fi
22277
22278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22279 done
22280 case $ac_lo in
22281 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22282 '') if test "$ac_cv_type_long_long" = yes; then
22283      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22284 See \`config.log' for more details." >&5
22285 echo "$as_me: error: cannot compute sizeof (long long)
22286 See \`config.log' for more details." >&2;}
22287    { (exit 77); exit 77; }; }
22288    else
22289      ac_cv_sizeof_long_long=0
22290    fi ;;
22291 esac
22292 else
22293   cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h.  */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h.  */
22299 $ac_includes_default
22300    typedef long long ac__type_sizeof_;
22301 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22302 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22303 #include <stdio.h>
22304 #include <stdlib.h>
22305 int
22306 main ()
22307 {
22308
22309   FILE *f = fopen ("conftest.val", "w");
22310   if (! f)
22311     return 1;
22312   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22313     {
22314       long int i = longval ();
22315       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22316         return 1;
22317       fprintf (f, "%ld\n", i);
22318     }
22319   else
22320     {
22321       unsigned long int i = ulongval ();
22322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22323         return 1;
22324       fprintf (f, "%lu\n", i);
22325     }
22326   return ferror (f) || fclose (f) != 0;
22327
22328   ;
22329   return 0;
22330 }
22331 _ACEOF
22332 rm -f conftest$ac_exeext
22333 if { (ac_try="$ac_link"
22334 case "(($ac_try" in
22335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336   *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339   (eval "$ac_link") 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22343   { (case "(($ac_try" in
22344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345   *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348   (eval "$ac_try") 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; }; then
22352   ac_cv_sizeof_long_long=`cat conftest.val`
22353 else
22354   echo "$as_me: program exited with status $ac_status" >&5
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358 ( exit $ac_status )
22359 if test "$ac_cv_type_long_long" = yes; then
22360      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22361 See \`config.log' for more details." >&5
22362 echo "$as_me: error: cannot compute sizeof (long long)
22363 See \`config.log' for more details." >&2;}
22364    { (exit 77); exit 77; }; }
22365    else
22366      ac_cv_sizeof_long_long=0
22367    fi
22368 fi
22369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22370 fi
22371 rm -f conftest.val
22372 fi
22373 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22374 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22375
22376
22377
22378 cat >>confdefs.h <<_ACEOF
22379 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22380 _ACEOF
22381
22382
22383         if test "$ac_cv_sizeof_long_long" != 0; then
22384                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22385         fi
22386     ;;
22387     * )
22388         { echo "$as_me:$LINENO: checking for long long" >&5
22389 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22390 if test "${ac_cv_type_long_long+set}" = set; then
22391   echo $ECHO_N "(cached) $ECHO_C" >&6
22392 else
22393   cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h.  */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h.  */
22399 $ac_includes_default
22400 typedef long long ac__type_new_;
22401 int
22402 main ()
22403 {
22404 if ((ac__type_new_ *) 0)
22405   return 0;
22406 if (sizeof (ac__type_new_))
22407   return 0;
22408   ;
22409   return 0;
22410 }
22411 _ACEOF
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416   *) ac_try_echo=$ac_try;;
22417 esac
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419   (eval "$ac_compile") 2>conftest.er1
22420   ac_status=$?
22421   grep -v '^ *+' conftest.er1 >conftest.err
22422   rm -f conftest.er1
22423   cat conftest.err >&5
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); } && {
22426          test -z "$ac_c_werror_flag" ||
22427          test ! -s conftest.err
22428        } && test -s conftest.$ac_objext; then
22429   ac_cv_type_long_long=yes
22430 else
22431   echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434         ac_cv_type_long_long=no
22435 fi
22436
22437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 fi
22439 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22440 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22441
22442 # The cast to long int works around a bug in the HP C Compiler
22443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22445 # This bug is HP SR number 8606223364.
22446 { echo "$as_me:$LINENO: checking size of long long" >&5
22447 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22448 if test "${ac_cv_sizeof_long_long+set}" = set; then
22449   echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451   if test "$cross_compiling" = yes; then
22452   # Depending upon the size, compute the lo and hi bounds.
22453 cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h.  */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h.  */
22459 $ac_includes_default
22460    typedef long long ac__type_sizeof_;
22461 int
22462 main ()
22463 {
22464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22465 test_array [0] = 0
22466
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478   (eval "$ac_compile") 2>conftest.er1
22479   ac_status=$?
22480   grep -v '^ *+' conftest.er1 >conftest.err
22481   rm -f conftest.er1
22482   cat conftest.err >&5
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); } && {
22485          test -z "$ac_c_werror_flag" ||
22486          test ! -s conftest.err
22487        } && test -s conftest.$ac_objext; then
22488   ac_lo=0 ac_mid=0
22489   while :; do
22490     cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h.  */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h.  */
22496 $ac_includes_default
22497    typedef long long ac__type_sizeof_;
22498 int
22499 main ()
22500 {
22501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22502 test_array [0] = 0
22503
22504   ;
22505   return 0;
22506 }
22507 _ACEOF
22508 rm -f conftest.$ac_objext
22509 if { (ac_try="$ac_compile"
22510 case "(($ac_try" in
22511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512   *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515   (eval "$ac_compile") 2>conftest.er1
22516   ac_status=$?
22517   grep -v '^ *+' conftest.er1 >conftest.err
22518   rm -f conftest.er1
22519   cat conftest.err >&5
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); } && {
22522          test -z "$ac_c_werror_flag" ||
22523          test ! -s conftest.err
22524        } && test -s conftest.$ac_objext; then
22525   ac_hi=$ac_mid; break
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530         ac_lo=`expr $ac_mid + 1`
22531                         if test $ac_lo -le $ac_mid; then
22532                           ac_lo= ac_hi=
22533                           break
22534                         fi
22535                         ac_mid=`expr 2 '*' $ac_mid + 1`
22536 fi
22537
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539   done
22540 else
22541   echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22543
22544         cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h.  */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h.  */
22550 $ac_includes_default
22551    typedef long long ac__type_sizeof_;
22552 int
22553 main ()
22554 {
22555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22556 test_array [0] = 0
22557
22558   ;
22559   return 0;
22560 }
22561 _ACEOF
22562 rm -f conftest.$ac_objext
22563 if { (ac_try="$ac_compile"
22564 case "(($ac_try" in
22565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566   *) ac_try_echo=$ac_try;;
22567 esac
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569   (eval "$ac_compile") 2>conftest.er1
22570   ac_status=$?
22571   grep -v '^ *+' conftest.er1 >conftest.err
22572   rm -f conftest.er1
22573   cat conftest.err >&5
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } && {
22576          test -z "$ac_c_werror_flag" ||
22577          test ! -s conftest.err
22578        } && test -s conftest.$ac_objext; then
22579   ac_hi=-1 ac_mid=-1
22580   while :; do
22581     cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h.  */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h.  */
22587 $ac_includes_default
22588    typedef long long ac__type_sizeof_;
22589 int
22590 main ()
22591 {
22592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22593 test_array [0] = 0
22594
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 rm -f conftest.$ac_objext
22600 if { (ac_try="$ac_compile"
22601 case "(($ac_try" in
22602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603   *) ac_try_echo=$ac_try;;
22604 esac
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606   (eval "$ac_compile") 2>conftest.er1
22607   ac_status=$?
22608   grep -v '^ *+' conftest.er1 >conftest.err
22609   rm -f conftest.er1
22610   cat conftest.err >&5
22611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612   (exit $ac_status); } && {
22613          test -z "$ac_c_werror_flag" ||
22614          test ! -s conftest.err
22615        } && test -s conftest.$ac_objext; then
22616   ac_lo=$ac_mid; break
22617 else
22618   echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22620
22621         ac_hi=`expr '(' $ac_mid ')' - 1`
22622                         if test $ac_mid -le $ac_hi; then
22623                           ac_lo= ac_hi=
22624                           break
22625                         fi
22626                         ac_mid=`expr 2 '*' $ac_mid`
22627 fi
22628
22629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22630   done
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635         ac_lo= ac_hi=
22636 fi
22637
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639 fi
22640
22641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22642 # Binary search between lo and hi bounds.
22643 while test "x$ac_lo" != "x$ac_hi"; do
22644   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22645   cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h.  */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h.  */
22651 $ac_includes_default
22652    typedef long long ac__type_sizeof_;
22653 int
22654 main ()
22655 {
22656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22657 test_array [0] = 0
22658
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext
22664 if { (ac_try="$ac_compile"
22665 case "(($ac_try" in
22666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667   *) ac_try_echo=$ac_try;;
22668 esac
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670   (eval "$ac_compile") 2>conftest.er1
22671   ac_status=$?
22672   grep -v '^ *+' conftest.er1 >conftest.err
22673   rm -f conftest.er1
22674   cat conftest.err >&5
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); } && {
22677          test -z "$ac_c_werror_flag" ||
22678          test ! -s conftest.err
22679        } && test -s conftest.$ac_objext; then
22680   ac_hi=$ac_mid
22681 else
22682   echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22684
22685         ac_lo=`expr '(' $ac_mid ')' + 1`
22686 fi
22687
22688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 done
22690 case $ac_lo in
22691 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22692 '') if test "$ac_cv_type_long_long" = yes; then
22693      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22694 See \`config.log' for more details." >&5
22695 echo "$as_me: error: cannot compute sizeof (long long)
22696 See \`config.log' for more details." >&2;}
22697    { (exit 77); exit 77; }; }
22698    else
22699      ac_cv_sizeof_long_long=0
22700    fi ;;
22701 esac
22702 else
22703   cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709 $ac_includes_default
22710    typedef long long ac__type_sizeof_;
22711 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22712 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22713 #include <stdio.h>
22714 #include <stdlib.h>
22715 int
22716 main ()
22717 {
22718
22719   FILE *f = fopen ("conftest.val", "w");
22720   if (! f)
22721     return 1;
22722   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22723     {
22724       long int i = longval ();
22725       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22726         return 1;
22727       fprintf (f, "%ld\n", i);
22728     }
22729   else
22730     {
22731       unsigned long int i = ulongval ();
22732       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22733         return 1;
22734       fprintf (f, "%lu\n", i);
22735     }
22736   return ferror (f) || fclose (f) != 0;
22737
22738   ;
22739   return 0;
22740 }
22741 _ACEOF
22742 rm -f conftest$ac_exeext
22743 if { (ac_try="$ac_link"
22744 case "(($ac_try" in
22745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746   *) ac_try_echo=$ac_try;;
22747 esac
22748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749   (eval "$ac_link") 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22753   { (case "(($ac_try" in
22754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755   *) ac_try_echo=$ac_try;;
22756 esac
22757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758   (eval "$ac_try") 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); }; }; then
22762   ac_cv_sizeof_long_long=`cat conftest.val`
22763 else
22764   echo "$as_me: program exited with status $ac_status" >&5
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768 ( exit $ac_status )
22769 if test "$ac_cv_type_long_long" = yes; then
22770      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22771 See \`config.log' for more details." >&5
22772 echo "$as_me: error: cannot compute sizeof (long long)
22773 See \`config.log' for more details." >&2;}
22774    { (exit 77); exit 77; }; }
22775    else
22776      ac_cv_sizeof_long_long=0
22777    fi
22778 fi
22779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22780 fi
22781 rm -f conftest.val
22782 fi
22783 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22784 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22785
22786
22787
22788 cat >>confdefs.h <<_ACEOF
22789 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22790 _ACEOF
22791
22792
22793 esac
22794
22795 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22796 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22797 if test "${ac_cv_type_wchar_t+set}" = set; then
22798   echo $ECHO_N "(cached) $ECHO_C" >&6
22799 else
22800   cat >conftest.$ac_ext <<_ACEOF
22801 /* confdefs.h.  */
22802 _ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h.  */
22806
22807         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22808         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22809         #  error "fake wchar_t"
22810         #endif
22811         #ifdef HAVE_WCHAR_H
22812         #  ifdef __CYGWIN__
22813         #    include <stddef.h>
22814         #  endif
22815         #  include <wchar.h>
22816         #endif
22817         #ifdef HAVE_STDLIB_H
22818         #  include <stdlib.h>
22819         #endif
22820         #include <stdio.h>
22821
22822
22823
22824 typedef wchar_t ac__type_new_;
22825 int
22826 main ()
22827 {
22828 if ((ac__type_new_ *) 0)
22829   return 0;
22830 if (sizeof (ac__type_new_))
22831   return 0;
22832   ;
22833   return 0;
22834 }
22835 _ACEOF
22836 rm -f conftest.$ac_objext
22837 if { (ac_try="$ac_compile"
22838 case "(($ac_try" in
22839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840   *) ac_try_echo=$ac_try;;
22841 esac
22842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22843   (eval "$ac_compile") 2>conftest.er1
22844   ac_status=$?
22845   grep -v '^ *+' conftest.er1 >conftest.err
22846   rm -f conftest.er1
22847   cat conftest.err >&5
22848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849   (exit $ac_status); } && {
22850          test -z "$ac_c_werror_flag" ||
22851          test ! -s conftest.err
22852        } && test -s conftest.$ac_objext; then
22853   ac_cv_type_wchar_t=yes
22854 else
22855   echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858         ac_cv_type_wchar_t=no
22859 fi
22860
22861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862 fi
22863 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22864 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22865
22866 # The cast to long int works around a bug in the HP C Compiler
22867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22869 # This bug is HP SR number 8606223364.
22870 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22871 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22872 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22873   echo $ECHO_N "(cached) $ECHO_C" >&6
22874 else
22875   if test "$cross_compiling" = yes; then
22876   # Depending upon the size, compute the lo and hi bounds.
22877 cat >conftest.$ac_ext <<_ACEOF
22878 /* confdefs.h.  */
22879 _ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h.  */
22883
22884         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22885         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22886         #  error "fake wchar_t"
22887         #endif
22888         #ifdef HAVE_WCHAR_H
22889         #  ifdef __CYGWIN__
22890         #    include <stddef.h>
22891         #  endif
22892         #  include <wchar.h>
22893         #endif
22894         #ifdef HAVE_STDLIB_H
22895         #  include <stdlib.h>
22896         #endif
22897         #include <stdio.h>
22898
22899
22900
22901    typedef wchar_t ac__type_sizeof_;
22902 int
22903 main ()
22904 {
22905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22906 test_array [0] = 0
22907
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919   (eval "$ac_compile") 2>conftest.er1
22920   ac_status=$?
22921   grep -v '^ *+' conftest.er1 >conftest.err
22922   rm -f conftest.er1
22923   cat conftest.err >&5
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); } && {
22926          test -z "$ac_c_werror_flag" ||
22927          test ! -s conftest.err
22928        } && test -s conftest.$ac_objext; then
22929   ac_lo=0 ac_mid=0
22930   while :; do
22931     cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h.  */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h.  */
22937
22938         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22939         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22940         #  error "fake wchar_t"
22941         #endif
22942         #ifdef HAVE_WCHAR_H
22943         #  ifdef __CYGWIN__
22944         #    include <stddef.h>
22945         #  endif
22946         #  include <wchar.h>
22947         #endif
22948         #ifdef HAVE_STDLIB_H
22949         #  include <stdlib.h>
22950         #endif
22951         #include <stdio.h>
22952
22953
22954
22955    typedef wchar_t ac__type_sizeof_;
22956 int
22957 main ()
22958 {
22959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22960 test_array [0] = 0
22961
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_compile") 2>conftest.er1
22974   ac_status=$?
22975   grep -v '^ *+' conftest.er1 >conftest.err
22976   rm -f conftest.er1
22977   cat conftest.err >&5
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } && {
22980          test -z "$ac_c_werror_flag" ||
22981          test ! -s conftest.err
22982        } && test -s conftest.$ac_objext; then
22983   ac_hi=$ac_mid; break
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988         ac_lo=`expr $ac_mid + 1`
22989                         if test $ac_lo -le $ac_mid; then
22990                           ac_lo= ac_hi=
22991                           break
22992                         fi
22993                         ac_mid=`expr 2 '*' $ac_mid + 1`
22994 fi
22995
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997   done
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002         cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008
23009         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23010         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23011         #  error "fake wchar_t"
23012         #endif
23013         #ifdef HAVE_WCHAR_H
23014         #  ifdef __CYGWIN__
23015         #    include <stddef.h>
23016         #  endif
23017         #  include <wchar.h>
23018         #endif
23019         #ifdef HAVE_STDLIB_H
23020         #  include <stdlib.h>
23021         #endif
23022         #include <stdio.h>
23023
23024
23025
23026    typedef wchar_t ac__type_sizeof_;
23027 int
23028 main ()
23029 {
23030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23031 test_array [0] = 0
23032
23033   ;
23034   return 0;
23035 }
23036 _ACEOF
23037 rm -f conftest.$ac_objext
23038 if { (ac_try="$ac_compile"
23039 case "(($ac_try" in
23040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23041   *) ac_try_echo=$ac_try;;
23042 esac
23043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23044   (eval "$ac_compile") 2>conftest.er1
23045   ac_status=$?
23046   grep -v '^ *+' conftest.er1 >conftest.err
23047   rm -f conftest.er1
23048   cat conftest.err >&5
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); } && {
23051          test -z "$ac_c_werror_flag" ||
23052          test ! -s conftest.err
23053        } && test -s conftest.$ac_objext; then
23054   ac_hi=-1 ac_mid=-1
23055   while :; do
23056     cat >conftest.$ac_ext <<_ACEOF
23057 /* confdefs.h.  */
23058 _ACEOF
23059 cat confdefs.h >>conftest.$ac_ext
23060 cat >>conftest.$ac_ext <<_ACEOF
23061 /* end confdefs.h.  */
23062
23063         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23064         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23065         #  error "fake wchar_t"
23066         #endif
23067         #ifdef HAVE_WCHAR_H
23068         #  ifdef __CYGWIN__
23069         #    include <stddef.h>
23070         #  endif
23071         #  include <wchar.h>
23072         #endif
23073         #ifdef HAVE_STDLIB_H
23074         #  include <stdlib.h>
23075         #endif
23076         #include <stdio.h>
23077
23078
23079
23080    typedef wchar_t ac__type_sizeof_;
23081 int
23082 main ()
23083 {
23084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23085 test_array [0] = 0
23086
23087   ;
23088   return 0;
23089 }
23090 _ACEOF
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095   *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098   (eval "$ac_compile") 2>conftest.er1
23099   ac_status=$?
23100   grep -v '^ *+' conftest.er1 >conftest.err
23101   rm -f conftest.er1
23102   cat conftest.err >&5
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); } && {
23105          test -z "$ac_c_werror_flag" ||
23106          test ! -s conftest.err
23107        } && test -s conftest.$ac_objext; then
23108   ac_lo=$ac_mid; break
23109 else
23110   echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113         ac_hi=`expr '(' $ac_mid ')' - 1`
23114                         if test $ac_mid -le $ac_hi; then
23115                           ac_lo= ac_hi=
23116                           break
23117                         fi
23118                         ac_mid=`expr 2 '*' $ac_mid`
23119 fi
23120
23121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122   done
23123 else
23124   echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127         ac_lo= ac_hi=
23128 fi
23129
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 fi
23132
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 # Binary search between lo and hi bounds.
23135 while test "x$ac_lo" != "x$ac_hi"; do
23136   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23137   cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143
23144         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23145         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23146         #  error "fake wchar_t"
23147         #endif
23148         #ifdef HAVE_WCHAR_H
23149         #  ifdef __CYGWIN__
23150         #    include <stddef.h>
23151         #  endif
23152         #  include <wchar.h>
23153         #endif
23154         #ifdef HAVE_STDLIB_H
23155         #  include <stdlib.h>
23156         #endif
23157         #include <stdio.h>
23158
23159
23160
23161    typedef wchar_t ac__type_sizeof_;
23162 int
23163 main ()
23164 {
23165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23166 test_array [0] = 0
23167
23168   ;
23169   return 0;
23170 }
23171 _ACEOF
23172 rm -f conftest.$ac_objext
23173 if { (ac_try="$ac_compile"
23174 case "(($ac_try" in
23175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176   *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179   (eval "$ac_compile") 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } && {
23186          test -z "$ac_c_werror_flag" ||
23187          test ! -s conftest.err
23188        } && test -s conftest.$ac_objext; then
23189   ac_hi=$ac_mid
23190 else
23191   echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194         ac_lo=`expr '(' $ac_mid ')' + 1`
23195 fi
23196
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 done
23199 case $ac_lo in
23200 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23201 '') if test "$ac_cv_type_wchar_t" = yes; then
23202      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23203 See \`config.log' for more details." >&5
23204 echo "$as_me: error: cannot compute sizeof (wchar_t)
23205 See \`config.log' for more details." >&2;}
23206    { (exit 77); exit 77; }; }
23207    else
23208      ac_cv_sizeof_wchar_t=0
23209    fi ;;
23210 esac
23211 else
23212   cat >conftest.$ac_ext <<_ACEOF
23213 /* confdefs.h.  */
23214 _ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h.  */
23218
23219         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23220         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23221         #  error "fake wchar_t"
23222         #endif
23223         #ifdef HAVE_WCHAR_H
23224         #  ifdef __CYGWIN__
23225         #    include <stddef.h>
23226         #  endif
23227         #  include <wchar.h>
23228         #endif
23229         #ifdef HAVE_STDLIB_H
23230         #  include <stdlib.h>
23231         #endif
23232         #include <stdio.h>
23233
23234
23235
23236    typedef wchar_t ac__type_sizeof_;
23237 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23238 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23239 #include <stdio.h>
23240 #include <stdlib.h>
23241 int
23242 main ()
23243 {
23244
23245   FILE *f = fopen ("conftest.val", "w");
23246   if (! f)
23247     return 1;
23248   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23249     {
23250       long int i = longval ();
23251       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23252         return 1;
23253       fprintf (f, "%ld\n", i);
23254     }
23255   else
23256     {
23257       unsigned long int i = ulongval ();
23258       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23259         return 1;
23260       fprintf (f, "%lu\n", i);
23261     }
23262   return ferror (f) || fclose (f) != 0;
23263
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275   (eval "$ac_link") 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23279   { (case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284   (eval "$ac_try") 2>&5
23285   ac_status=$?
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; }; then
23288   ac_cv_sizeof_wchar_t=`cat conftest.val`
23289 else
23290   echo "$as_me: program exited with status $ac_status" >&5
23291 echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23293
23294 ( exit $ac_status )
23295 if test "$ac_cv_type_wchar_t" = yes; then
23296      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23297 See \`config.log' for more details." >&5
23298 echo "$as_me: error: cannot compute sizeof (wchar_t)
23299 See \`config.log' for more details." >&2;}
23300    { (exit 77); exit 77; }; }
23301    else
23302      ac_cv_sizeof_wchar_t=0
23303    fi
23304 fi
23305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23306 fi
23307 rm -f conftest.val
23308 fi
23309 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23310 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23311
23312
23313
23314 cat >>confdefs.h <<_ACEOF
23315 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23316 _ACEOF
23317
23318
23319 if test "$ac_cv_sizeof_wchar_t" != 0; then
23320     wxUSE_WCHAR_T=yes
23321 else
23322     wxUSE_WCHAR_T=no
23323 fi
23324
23325 { echo "$as_me:$LINENO: checking for va_copy" >&5
23326 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23327 if test "${wx_cv_func_va_copy+set}" = set; then
23328   echo $ECHO_N "(cached) $ECHO_C" >&6
23329 else
23330
23331         ac_ext=cpp
23332 ac_cpp='$CXXCPP $CPPFLAGS'
23333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23336
23337         cat >conftest.$ac_ext <<_ACEOF
23338
23339             #include <stdarg.h>
23340             void foo(char *f, ...)
23341             {
23342                 va_list ap1, ap2;
23343                 va_start(ap1, f);
23344                 va_copy(ap2, ap1);
23345                 va_end(ap2);
23346                 va_end(ap1);
23347             }
23348             int main()
23349             {
23350                 foo("hi", 17);
23351                 return 0;
23352             }
23353 _ACEOF
23354 rm -f conftest.$ac_objext conftest$ac_exeext
23355 if { (ac_try="$ac_link"
23356 case "(($ac_try" in
23357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358   *) ac_try_echo=$ac_try;;
23359 esac
23360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361   (eval "$ac_link") 2>conftest.er1
23362   ac_status=$?
23363   grep -v '^ *+' conftest.er1 >conftest.err
23364   rm -f conftest.er1
23365   cat conftest.err >&5
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); } && {
23368          test -z "$ac_cxx_werror_flag" ||
23369          test ! -s conftest.err
23370        } && test -s conftest$ac_exeext &&
23371        $as_test_x conftest$ac_exeext; then
23372   wx_cv_func_va_copy=yes
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377         wx_cv_func_va_copy=no
23378
23379 fi
23380
23381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23382       conftest$ac_exeext conftest.$ac_ext
23383         ac_ext=c
23384 ac_cpp='$CPP $CPPFLAGS'
23385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23388
23389
23390
23391 fi
23392 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23393 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23394
23395 if test $wx_cv_func_va_copy = "yes"; then
23396     cat >>confdefs.h <<\_ACEOF
23397 #define HAVE_VA_COPY 1
23398 _ACEOF
23399
23400 else
23401         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23402 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23403 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23404   echo $ECHO_N "(cached) $ECHO_C" >&6
23405 else
23406
23407             if test "$cross_compiling" = yes; then
23408                   wx_cv_type_va_list_lvalue=yes
23409
23410 else
23411   cat >conftest.$ac_ext <<_ACEOF
23412
23413                 #include <stdarg.h>
23414                 int foo(char *f, ...)
23415                 {
23416                     va_list ap1, ap2;
23417                     va_start(ap1, f);
23418                     ap2 = ap1;
23419                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23420                         return 1;
23421                     va_end(ap2);
23422                     va_end(ap1);
23423                     return 0;
23424                 }
23425                 int main()
23426                 {
23427                     return foo("hi", 17);
23428                 }
23429 _ACEOF
23430 rm -f conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434   *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437   (eval "$ac_link") 2>&5
23438   ac_status=$?
23439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23441   { (case "(($ac_try" in
23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443   *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446   (eval "$ac_try") 2>&5
23447   ac_status=$?
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); }; }; then
23450   wx_cv_type_va_list_lvalue=yes
23451 else
23452   echo "$as_me: program exited with status $ac_status" >&5
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456 ( exit $ac_status )
23457 wx_cv_type_va_list_lvalue=no
23458 fi
23459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23460 fi
23461
23462
23463
23464
23465 fi
23466 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23467 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23468
23469     if test $wx_cv_type_va_list_lvalue != "yes"; then
23470                         cat >>confdefs.h <<\_ACEOF
23471 #define VA_LIST_IS_ARRAY 1
23472 _ACEOF
23473
23474     fi
23475 fi
23476
23477 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23478
23479 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23480 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23481 if test "${wx_cv_have_variadic_macros+set}" = set; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 else
23484
23485                         ac_ext=cpp
23486 ac_cpp='$CXXCPP $CPPFLAGS'
23487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23490
23491         cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h.  */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h.  */
23497
23498                     #include <stdio.h>
23499                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23500
23501 int
23502 main ()
23503 {
23504
23505                     test("%s %d %p", "test", 1, 0);
23506
23507
23508   ;
23509   return 0;
23510 }
23511 _ACEOF
23512 rm -f conftest.$ac_objext
23513 if { (ac_try="$ac_compile"
23514 case "(($ac_try" in
23515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516   *) ac_try_echo=$ac_try;;
23517 esac
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519   (eval "$ac_compile") 2>conftest.er1
23520   ac_status=$?
23521   grep -v '^ *+' conftest.er1 >conftest.err
23522   rm -f conftest.er1
23523   cat conftest.err >&5
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); } && {
23526          test -z "$ac_cxx_werror_flag" ||
23527          test ! -s conftest.err
23528        } && test -s conftest.$ac_objext; then
23529   wx_cv_have_variadic_macros=yes
23530 else
23531   echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534         wx_cv_have_variadic_macros=no
23535
23536 fi
23537
23538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539         ac_ext=c
23540 ac_cpp='$CPP $CPPFLAGS'
23541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23544
23545
23546
23547 fi
23548 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23549 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23550
23551 if test $wx_cv_have_variadic_macros = "yes"; then
23552     cat >>confdefs.h <<\_ACEOF
23553 #define HAVE_VARIADIC_MACROS 1
23554 _ACEOF
23555
23556 fi
23557
23558 fi
23559
23560 LARGEFILE_CPPFLAGS=
23561 # Check whether --enable-largefile was given.
23562 if test "${enable_largefile+set}" = set; then
23563   enableval=$enable_largefile;
23564 fi
23565
23566 if test "$enable_largefile" != no; then
23567             wx_largefile=no
23568
23569     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23570 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23571 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23572   echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574
23575           cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581 #define _FILE_OFFSET_BITS 64
23582                           #include <sys/types.h>
23583 int
23584 main ()
23585 {
23586 typedef struct {
23587     unsigned int field: sizeof(off_t) == 8;
23588 } wxlf;
23589
23590   ;
23591   return 0;
23592 }
23593 _ACEOF
23594 rm -f conftest.$ac_objext
23595 if { (ac_try="$ac_compile"
23596 case "(($ac_try" in
23597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598   *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601   (eval "$ac_compile") 2>conftest.er1
23602   ac_status=$?
23603   grep -v '^ *+' conftest.er1 >conftest.err
23604   rm -f conftest.er1
23605   cat conftest.err >&5
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } && {
23608          test -z "$ac_c_werror_flag" ||
23609          test ! -s conftest.err
23610        } && test -s conftest.$ac_objext; then
23611   ac_cv_sys_file_offset_bits=64
23612 else
23613   echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23615
23616         ac_cv_sys_file_offset_bits=no
23617 fi
23618
23619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620
23621
23622 fi
23623 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23624 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23625
23626     if test "$ac_cv_sys_file_offset_bits" != no; then
23627         wx_largefile=yes
23628         cat >>confdefs.h <<_ACEOF
23629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23630 _ACEOF
23631
23632     fi
23633
23634     if test "x$wx_largefile" != "xyes"; then
23635
23636     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23637 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23638 if test "${ac_cv_sys_large_files+set}" = set; then
23639   echo $ECHO_N "(cached) $ECHO_C" >&6
23640 else
23641
23642           cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648 #define _LARGE_FILES 1
23649                           #include <sys/types.h>
23650 int
23651 main ()
23652 {
23653 typedef struct {
23654     unsigned int field: sizeof(off_t) == 8;
23655 } wxlf;
23656
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext
23662 if { (ac_try="$ac_compile"
23663 case "(($ac_try" in
23664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665   *) ac_try_echo=$ac_try;;
23666 esac
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668   (eval "$ac_compile") 2>conftest.er1
23669   ac_status=$?
23670   grep -v '^ *+' conftest.er1 >conftest.err
23671   rm -f conftest.er1
23672   cat conftest.err >&5
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } && {
23675          test -z "$ac_c_werror_flag" ||
23676          test ! -s conftest.err
23677        } && test -s conftest.$ac_objext; then
23678   ac_cv_sys_large_files=1
23679 else
23680   echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23682
23683         ac_cv_sys_large_files=no
23684 fi
23685
23686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687
23688
23689 fi
23690 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23691 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23692
23693     if test "$ac_cv_sys_large_files" != no; then
23694         wx_largefile=yes
23695         cat >>confdefs.h <<_ACEOF
23696 #define _LARGE_FILES $ac_cv_sys_large_files
23697 _ACEOF
23698
23699     fi
23700
23701     fi
23702
23703     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23704 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23705     if test "x$wx_largefile" = "xyes"; then
23706         cat >>confdefs.h <<\_ACEOF
23707 #define HAVE_LARGEFILE_SUPPORT 1
23708 _ACEOF
23709
23710     fi
23711     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23712 echo "${ECHO_T}$wx_largefile" >&6; }
23713 fi
23714
23715 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23716     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23717 elif test "$ac_cv_sys_large_files" = 1; then
23718     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23719 fi
23720
23721 if test -n "$LARGEFILE_CPPFLAGS"; then
23722     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23723
23724                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23725         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23726 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23727 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23728   echo $ECHO_N "(cached) $ECHO_C" >&6
23729 else
23730
23731                 ac_ext=cpp
23732 ac_cpp='$CXXCPP $CPPFLAGS'
23733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23736
23737                 cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h.  */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h.  */
23743
23744 int
23745 main ()
23746 {
23747
23748                         #ifndef __STDC_EXT__
23749                             choke me
23750                         #endif
23751
23752   ;
23753   return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760   *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763   (eval "$ac_compile") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_cxx_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest.$ac_objext; then
23773   wx_cv_STDC_EXT_required=no
23774 else
23775   echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23777
23778         wx_cv_STDC_EXT_required=yes
23779
23780 fi
23781
23782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23783                 ac_ext=c
23784 ac_cpp='$CPP $CPPFLAGS'
23785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23788
23789
23790
23791 fi
23792 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23793 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23794         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23795             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23796         fi
23797     fi
23798 fi
23799
23800 ac_ext=cpp
23801 ac_cpp='$CXXCPP $CPPFLAGS'
23802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23805
23806 old_CPPFLAGS="$CPPFLAGS"
23807 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23808 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23809 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23810 if test "${ac_cv_sys_largefile_source+set}" = set; then
23811   echo $ECHO_N "(cached) $ECHO_C" >&6
23812 else
23813   while :; do
23814   cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h.  */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h.  */
23820 #include <sys/types.h> /* for off_t */
23821      #include <stdio.h>
23822 int
23823 main ()
23824 {
23825 int (*fp) (FILE *, off_t, int) = fseeko;
23826      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23827   ;
23828   return 0;
23829 }
23830 _ACEOF
23831 rm -f conftest.$ac_objext conftest$ac_exeext
23832 if { (ac_try="$ac_link"
23833 case "(($ac_try" in
23834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835   *) ac_try_echo=$ac_try;;
23836 esac
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838   (eval "$ac_link") 2>conftest.er1
23839   ac_status=$?
23840   grep -v '^ *+' conftest.er1 >conftest.err
23841   rm -f conftest.er1
23842   cat conftest.err >&5
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); } && {
23845          test -z "$ac_cxx_werror_flag" ||
23846          test ! -s conftest.err
23847        } && test -s conftest$ac_exeext &&
23848        $as_test_x conftest$ac_exeext; then
23849   ac_cv_sys_largefile_source=no; break
23850 else
23851   echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854
23855 fi
23856
23857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23858       conftest$ac_exeext conftest.$ac_ext
23859   cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h.  */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h.  */
23865 #define _LARGEFILE_SOURCE 1
23866 #include <sys/types.h> /* for off_t */
23867      #include <stdio.h>
23868 int
23869 main ()
23870 {
23871 int (*fp) (FILE *, off_t, int) = fseeko;
23872      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23873   ;
23874   return 0;
23875 }
23876 _ACEOF
23877 rm -f conftest.$ac_objext conftest$ac_exeext
23878 if { (ac_try="$ac_link"
23879 case "(($ac_try" in
23880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881   *) ac_try_echo=$ac_try;;
23882 esac
23883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23884   (eval "$ac_link") 2>conftest.er1
23885   ac_status=$?
23886   grep -v '^ *+' conftest.er1 >conftest.err
23887   rm -f conftest.er1
23888   cat conftest.err >&5
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); } && {
23891          test -z "$ac_cxx_werror_flag" ||
23892          test ! -s conftest.err
23893        } && test -s conftest$ac_exeext &&
23894        $as_test_x conftest$ac_exeext; then
23895   ac_cv_sys_largefile_source=1; break
23896 else
23897   echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900
23901 fi
23902
23903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23904       conftest$ac_exeext conftest.$ac_ext
23905   ac_cv_sys_largefile_source=unknown
23906   break
23907 done
23908 fi
23909 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23910 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23911 case $ac_cv_sys_largefile_source in #(
23912   no | unknown) ;;
23913   *)
23914 cat >>confdefs.h <<_ACEOF
23915 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23916 _ACEOF
23917 ;;
23918 esac
23919 rm -f conftest*
23920
23921 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23922 # in glibc 2.1.3, but that breaks too many other things.
23923 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23924 if test $ac_cv_sys_largefile_source != unknown; then
23925
23926 cat >>confdefs.h <<\_ACEOF
23927 #define HAVE_FSEEKO 1
23928 _ACEOF
23929
23930 fi
23931
23932 CPPFLAGS="$old_CPPFLAGS"
23933 ac_ext=c
23934 ac_cpp='$CPP $CPPFLAGS'
23935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23938
23939 if test "$ac_cv_sys_largefile_source" != no; then
23940     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23941 fi
23942
23943 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23944 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23945 if test "${ac_cv_c_bigendian+set}" = set; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948   ac_cv_c_bigendian=unknown
23949 # See if sys/param.h defines the BYTE_ORDER macro.
23950 cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h.  */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h.  */
23956 #include <sys/types.h>
23957 #include <sys/param.h>
23958 int
23959 main ()
23960 {
23961
23962 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23963  bogus endian macros
23964 #endif
23965   ;
23966   return 0;
23967 }
23968 _ACEOF
23969 rm -f conftest.$ac_objext
23970 if { (ac_try="$ac_compile"
23971 case "(($ac_try" in
23972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973   *) ac_try_echo=$ac_try;;
23974 esac
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976   (eval "$ac_compile") 2>conftest.er1
23977   ac_status=$?
23978   grep -v '^ *+' conftest.er1 >conftest.err
23979   rm -f conftest.er1
23980   cat conftest.err >&5
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); } && {
23983          test -z "$ac_c_werror_flag" ||
23984          test ! -s conftest.err
23985        } && test -s conftest.$ac_objext; then
23986   # It does; now see whether it defined to BIG_ENDIAN or not.
23987 cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h.  */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h.  */
23993 #include <sys/types.h>
23994 #include <sys/param.h>
23995 int
23996 main ()
23997 {
23998
23999 #if BYTE_ORDER != BIG_ENDIAN
24000  not big endian
24001 #endif
24002   ;
24003   return 0;
24004 }
24005 _ACEOF
24006 rm -f conftest.$ac_objext
24007 if { (ac_try="$ac_compile"
24008 case "(($ac_try" in
24009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010   *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013   (eval "$ac_compile") 2>conftest.er1
24014   ac_status=$?
24015   grep -v '^ *+' conftest.er1 >conftest.err
24016   rm -f conftest.er1
24017   cat conftest.err >&5
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); } && {
24020          test -z "$ac_c_werror_flag" ||
24021          test ! -s conftest.err
24022        } && test -s conftest.$ac_objext; then
24023   ac_cv_c_bigendian=yes
24024 else
24025   echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24027
24028         ac_cv_c_bigendian=no
24029 fi
24030
24031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036
24037 fi
24038
24039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 if test $ac_cv_c_bigendian = unknown; then
24041 if test "$cross_compiling" = yes; then
24042   ac_cv_c_bigendian=unknown
24043 else
24044   cat >conftest.$ac_ext <<_ACEOF
24045 /* confdefs.h.  */
24046 _ACEOF
24047 cat confdefs.h >>conftest.$ac_ext
24048 cat >>conftest.$ac_ext <<_ACEOF
24049 /* end confdefs.h.  */
24050 main () {
24051   /* Are we little or big endian?  From Harbison&Steele.  */
24052   union
24053   {
24054     long l;
24055     char c[sizeof (long)];
24056   } u;
24057   u.l = 1;
24058   exit (u.c[sizeof (long) - 1] == 1);
24059 }
24060 _ACEOF
24061 rm -f conftest$ac_exeext
24062 if { (ac_try="$ac_link"
24063 case "(($ac_try" in
24064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065   *) ac_try_echo=$ac_try;;
24066 esac
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068   (eval "$ac_link") 2>&5
24069   ac_status=$?
24070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24072   { (case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077   (eval "$ac_try") 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); }; }; then
24081   ac_cv_c_bigendian=no
24082 else
24083   echo "$as_me: program exited with status $ac_status" >&5
24084 echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24086
24087 ( exit $ac_status )
24088 ac_cv_c_bigendian=yes
24089 fi
24090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24091 fi
24092
24093
24094 fi
24095 fi
24096 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24097 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24098 if test $ac_cv_c_bigendian = unknown; then
24099   { 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
24100 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;}
24101 fi
24102 if test $ac_cv_c_bigendian = yes; then
24103   cat >>confdefs.h <<\_ACEOF
24104 #define WORDS_BIGENDIAN 1
24105 _ACEOF
24106
24107 fi
24108
24109
24110
24111
24112     ac_ext=cpp
24113 ac_cpp='$CXXCPP $CPPFLAGS'
24114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24117
24118
24119
24120 for ac_header in iostream
24121 do
24122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24126   echo $ECHO_N "(cached) $ECHO_C" >&6
24127 else
24128   cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134
24135
24136 #include <$ac_header>
24137 _ACEOF
24138 rm -f conftest.$ac_objext
24139 if { (ac_try="$ac_compile"
24140 case "(($ac_try" in
24141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142   *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145   (eval "$ac_compile") 2>conftest.er1
24146   ac_status=$?
24147   grep -v '^ *+' conftest.er1 >conftest.err
24148   rm -f conftest.er1
24149   cat conftest.err >&5
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); } && {
24152          test -z "$ac_cxx_werror_flag" ||
24153          test ! -s conftest.err
24154        } && test -s conftest.$ac_objext; then
24155   eval "$as_ac_Header=yes"
24156 else
24157   echo "$as_me: failed program was:" >&5
24158 sed 's/^/| /' conftest.$ac_ext >&5
24159
24160         eval "$as_ac_Header=no"
24161 fi
24162
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164 fi
24165 ac_res=`eval echo '${'$as_ac_Header'}'`
24166                { echo "$as_me:$LINENO: result: $ac_res" >&5
24167 echo "${ECHO_T}$ac_res" >&6; }
24168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24169   cat >>confdefs.h <<_ACEOF
24170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24171 _ACEOF
24172
24173 fi
24174
24175 done
24176
24177
24178     if test "$ac_cv_header_iostream" = "yes" ; then
24179       :
24180     else
24181       cat >>confdefs.h <<\_ACEOF
24182 #define wxUSE_IOSTREAMH 1
24183 _ACEOF
24184
24185     fi
24186
24187     ac_ext=c
24188 ac_cpp='$CPP $CPPFLAGS'
24189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24192
24193
24194
24195
24196   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24197 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24198 if test "${wx_cv_explicit+set}" = set; then
24199   echo $ECHO_N "(cached) $ECHO_C" >&6
24200 else
24201
24202
24203     ac_ext=cpp
24204 ac_cpp='$CXXCPP $CPPFLAGS'
24205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24208
24209
24210             cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h.  */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h.  */
24216
24217         class Foo { public: explicit Foo(int) {} };
24218
24219 int
24220 main ()
24221 {
24222
24223         return 0;
24224
24225   ;
24226   return 0;
24227 }
24228 _ACEOF
24229 rm -f conftest.$ac_objext
24230 if { (ac_try="$ac_compile"
24231 case "(($ac_try" in
24232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233   *) ac_try_echo=$ac_try;;
24234 esac
24235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24236   (eval "$ac_compile") 2>conftest.er1
24237   ac_status=$?
24238   grep -v '^ *+' conftest.er1 >conftest.err
24239   rm -f conftest.er1
24240   cat conftest.err >&5
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); } && {
24243          test -z "$ac_cxx_werror_flag" ||
24244          test ! -s conftest.err
24245        } && test -s conftest.$ac_objext; then
24246
24247         cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253
24254                 class Foo { public: explicit Foo(int) {} };
24255                 static void TakeFoo(const Foo& foo) { }
24256
24257 int
24258 main ()
24259 {
24260
24261                 TakeFoo(17);
24262                 return 0;
24263
24264   ;
24265   return 0;
24266 }
24267 _ACEOF
24268 rm -f conftest.$ac_objext
24269 if { (ac_try="$ac_compile"
24270 case "(($ac_try" in
24271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272   *) ac_try_echo=$ac_try;;
24273 esac
24274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275   (eval "$ac_compile") 2>conftest.er1
24276   ac_status=$?
24277   grep -v '^ *+' conftest.er1 >conftest.err
24278   rm -f conftest.er1
24279   cat conftest.err >&5
24280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281   (exit $ac_status); } && {
24282          test -z "$ac_cxx_werror_flag" ||
24283          test ! -s conftest.err
24284        } && test -s conftest.$ac_objext; then
24285   wx_cv_explicit=no
24286 else
24287   echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24289
24290         wx_cv_explicit=yes
24291
24292 fi
24293
24294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24295
24296 else
24297   echo "$as_me: failed program was:" >&5
24298 sed 's/^/| /' conftest.$ac_ext >&5
24299
24300         wx_cv_explicit=no
24301
24302 fi
24303
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305
24306     ac_ext=c
24307 ac_cpp='$CPP $CPPFLAGS'
24308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24311
24312
24313 fi
24314 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24315 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24316
24317   if test "$wx_cv_explicit" = "yes"; then
24318     cat >>confdefs.h <<\_ACEOF
24319 #define HAVE_EXPLICIT 1
24320 _ACEOF
24321
24322   fi
24323
24324
24325 if test "x$SUNCXX" = xyes; then
24326     CXXFLAGS="-features=tmplife $CXXFLAGS"
24327 fi
24328
24329 if test "x$SUNCC" = xyes; then
24330     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24331 fi
24332
24333 if test "x$SGICC" = "xyes"; then
24334     CFLAGS="-woff 3970 $CFLAGS"
24335 fi
24336 if test "x$SGICXX" = "xyes"; then
24337     CXXFLAGS="-woff 3970 $CXXFLAGS"
24338 fi
24339
24340 if test "x$HPCC" = "xyes"; then
24341                     CFLAGS="+W 2011,2450 $CFLAGS"
24342 fi
24343 if test "x$HPCXX" = "xyes"; then
24344                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24345 fi
24346
24347 if test "x$COMPAQCXX" = "xyes"; then
24348                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24349 fi
24350
24351 ac_ext=cpp
24352 ac_cpp='$CXXCPP $CPPFLAGS'
24353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24356
24357
24358 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24359     if test "$wxUSE_UNICODE" = "yes"; then
24360         std_string="std::wstring"
24361         char_type="wchar_t"
24362     else
24363         std_string="std::string"
24364         char_type="char"
24365     fi
24366
24367         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24368 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24369 if test "${wx_cv_class_stdstring+set}" = set; then
24370   echo $ECHO_N "(cached) $ECHO_C" >&6
24371 else
24372
24373             cat >conftest.$ac_ext <<_ACEOF
24374 /* confdefs.h.  */
24375 _ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h.  */
24379 #include <string>
24380 int
24381 main ()
24382 {
24383 $std_string foo;
24384   ;
24385   return 0;
24386 }
24387 _ACEOF
24388 rm -f conftest.$ac_objext
24389 if { (ac_try="$ac_compile"
24390 case "(($ac_try" in
24391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392   *) ac_try_echo=$ac_try;;
24393 esac
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395   (eval "$ac_compile") 2>conftest.er1
24396   ac_status=$?
24397   grep -v '^ *+' conftest.er1 >conftest.err
24398   rm -f conftest.er1
24399   cat conftest.err >&5
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); } && {
24402          test -z "$ac_cxx_werror_flag" ||
24403          test ! -s conftest.err
24404        } && test -s conftest.$ac_objext; then
24405   wx_cv_class_stdstring=yes
24406 else
24407   echo "$as_me: failed program was:" >&5
24408 sed 's/^/| /' conftest.$ac_ext >&5
24409
24410         wx_cv_class_stdstring=no
24411
24412 fi
24413
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24415
24416
24417 fi
24418 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24419 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24420
24421     if test "$wx_cv_class_stdstring" = yes; then
24422         if test "$wxUSE_UNICODE" = "yes"; then
24423             cat >>confdefs.h <<\_ACEOF
24424 #define HAVE_STD_WSTRING 1
24425 _ACEOF
24426
24427         fi
24428                     else
24429         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24430 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24431 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24432   echo $ECHO_N "(cached) $ECHO_C" >&6
24433 else
24434
24435                 cat >conftest.$ac_ext <<_ACEOF
24436 /* confdefs.h.  */
24437 _ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h.  */
24441
24442                     #ifdef HAVE_WCHAR_H
24443                     #  ifdef __CYGWIN__
24444                     #    include <stddef.h>
24445                     #  endif
24446                     #  include <wchar.h>
24447                     #endif
24448                     #ifdef HAVE_STDLIB_H
24449                     #  include <stdlib.h>
24450                     #endif
24451                     #include <stdio.h>
24452                     #include <string>
24453
24454 int
24455 main ()
24456 {
24457 std::basic_string<$char_type> foo;
24458                      const $char_type* dummy = foo.c_str();
24459   ;
24460   return 0;
24461 }
24462 _ACEOF
24463 rm -f conftest.$ac_objext
24464 if { (ac_try="$ac_compile"
24465 case "(($ac_try" in
24466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467   *) ac_try_echo=$ac_try;;
24468 esac
24469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470   (eval "$ac_compile") 2>conftest.er1
24471   ac_status=$?
24472   grep -v '^ *+' conftest.er1 >conftest.err
24473   rm -f conftest.er1
24474   cat conftest.err >&5
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); } && {
24477          test -z "$ac_cxx_werror_flag" ||
24478          test ! -s conftest.err
24479        } && test -s conftest.$ac_objext; then
24480   wx_cv_class_stdbasicstring=yes
24481 else
24482   echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24484
24485         wx_cv_class_stdbasicstring=no
24486
24487 fi
24488
24489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24490
24491
24492 fi
24493 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24494 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24495
24496         if test "$wx_cv_class_stdbasicstring" != yes; then
24497             if test "$wxUSE_STL" = "yes"; then
24498                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24499 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24500    { (exit 1); exit 1; }; }
24501             elif test "$wxUSE_STD_STRING" = "yes"; then
24502                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24503 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24504    { (exit 1); exit 1; }; }
24505             else
24506                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24507 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24508                 wxUSE_STD_STRING=no
24509             fi
24510         fi
24511     fi
24512 fi
24513
24514 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24515     { echo "$as_me:$LINENO: checking for std::istream" >&5
24516 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24517 if test "${ac_cv_type_std__istream+set}" = set; then
24518   echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520   cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h.  */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h.  */
24526 #include <iostream>
24527
24528 typedef std::istream ac__type_new_;
24529 int
24530 main ()
24531 {
24532 if ((ac__type_new_ *) 0)
24533   return 0;
24534 if (sizeof (ac__type_new_))
24535   return 0;
24536   ;
24537   return 0;
24538 }
24539 _ACEOF
24540 rm -f conftest.$ac_objext
24541 if { (ac_try="$ac_compile"
24542 case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547   (eval "$ac_compile") 2>conftest.er1
24548   ac_status=$?
24549   grep -v '^ *+' conftest.er1 >conftest.err
24550   rm -f conftest.er1
24551   cat conftest.err >&5
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); } && {
24554          test -z "$ac_cxx_werror_flag" ||
24555          test ! -s conftest.err
24556        } && test -s conftest.$ac_objext; then
24557   ac_cv_type_std__istream=yes
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562         ac_cv_type_std__istream=no
24563 fi
24564
24565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24566 fi
24567 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24568 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24569 if test $ac_cv_type_std__istream = yes; then
24570
24571 cat >>confdefs.h <<_ACEOF
24572 #define HAVE_STD__ISTREAM 1
24573 _ACEOF
24574
24575
24576 else
24577   wxUSE_STD_IOSTREAM=no
24578 fi
24579 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24580 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24581 if test "${ac_cv_type_std__ostream+set}" = set; then
24582   echo $ECHO_N "(cached) $ECHO_C" >&6
24583 else
24584   cat >conftest.$ac_ext <<_ACEOF
24585 /* confdefs.h.  */
24586 _ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h.  */
24590 #include <iostream>
24591
24592 typedef std::ostream ac__type_new_;
24593 int
24594 main ()
24595 {
24596 if ((ac__type_new_ *) 0)
24597   return 0;
24598 if (sizeof (ac__type_new_))
24599   return 0;
24600   ;
24601   return 0;
24602 }
24603 _ACEOF
24604 rm -f conftest.$ac_objext
24605 if { (ac_try="$ac_compile"
24606 case "(($ac_try" in
24607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608   *) ac_try_echo=$ac_try;;
24609 esac
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611   (eval "$ac_compile") 2>conftest.er1
24612   ac_status=$?
24613   grep -v '^ *+' conftest.er1 >conftest.err
24614   rm -f conftest.er1
24615   cat conftest.err >&5
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); } && {
24618          test -z "$ac_cxx_werror_flag" ||
24619          test ! -s conftest.err
24620        } && test -s conftest.$ac_objext; then
24621   ac_cv_type_std__ostream=yes
24622 else
24623   echo "$as_me: failed program was:" >&5
24624 sed 's/^/| /' conftest.$ac_ext >&5
24625
24626         ac_cv_type_std__ostream=no
24627 fi
24628
24629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24630 fi
24631 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24632 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24633 if test $ac_cv_type_std__ostream = yes; then
24634
24635 cat >>confdefs.h <<_ACEOF
24636 #define HAVE_STD__OSTREAM 1
24637 _ACEOF
24638
24639
24640 else
24641   wxUSE_STD_IOSTREAM=no
24642 fi
24643
24644
24645     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24646         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24647             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24648 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24649    { (exit 1); exit 1; }; }
24650         else
24651             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24652 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24653         fi
24654     fi
24655 fi
24656
24657 if test "$wxUSE_STL" = "yes"; then
24658         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24659 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24660 if test "${wx_cv_lib_stl+set}" = set; then
24661   echo $ECHO_N "(cached) $ECHO_C" >&6
24662 else
24663   cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669 #include <string>
24670             #include <functional>
24671             #include <algorithm>
24672             #include <vector>
24673             #include <list>
24674 int
24675 main ()
24676 {
24677 std::vector<int> moo;
24678              std::list<int> foo;
24679              std::vector<int>::iterator it =
24680                  std::find_if(moo.begin(), moo.end(),
24681                               std::bind2nd(std::less<int>(), 3));
24682   ;
24683   return 0;
24684 }
24685 _ACEOF
24686 rm -f conftest.$ac_objext
24687 if { (ac_try="$ac_compile"
24688 case "(($ac_try" in
24689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690   *) ac_try_echo=$ac_try;;
24691 esac
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693   (eval "$ac_compile") 2>conftest.er1
24694   ac_status=$?
24695   grep -v '^ *+' conftest.er1 >conftest.err
24696   rm -f conftest.er1
24697   cat conftest.err >&5
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); } && {
24700          test -z "$ac_cxx_werror_flag" ||
24701          test ! -s conftest.err
24702        } && test -s conftest.$ac_objext; then
24703   wx_cv_lib_stl=yes
24704 else
24705   echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708         wx_cv_lib_stl=no
24709
24710 fi
24711
24712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24713
24714 fi
24715 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24716 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24717
24718     if test "$wx_cv_lib_stl" != yes; then
24719          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24720 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24721    { (exit 1); exit 1; }; }
24722     fi
24723
24724         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24725 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24726 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 else
24729   cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735 #include <string>
24736 int
24737 main ()
24738 {
24739 std::string foo, bar;
24740             foo.compare(bar);
24741             foo.compare(1, 1, bar);
24742             foo.compare(1, 1, bar, 1, 1);
24743             foo.compare("");
24744             foo.compare(1, 1, "");
24745             foo.compare(1, 1, "", 2);
24746   ;
24747   return 0;
24748 }
24749 _ACEOF
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754   *) ac_try_echo=$ac_try;;
24755 esac
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757   (eval "$ac_compile") 2>conftest.er1
24758   ac_status=$?
24759   grep -v '^ *+' conftest.er1 >conftest.err
24760   rm -f conftest.er1
24761   cat conftest.err >&5
24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763   (exit $ac_status); } && {
24764          test -z "$ac_cxx_werror_flag" ||
24765          test ! -s conftest.err
24766        } && test -s conftest.$ac_objext; then
24767   wx_cv_func_stdstring_compare=yes
24768 else
24769   echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24771
24772         wx_cv_func_stdstring_compare=no
24773
24774 fi
24775
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777
24778 fi
24779 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24780 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24781
24782     if test "$wx_cv_func_stdstring_compare" = yes; then
24783         cat >>confdefs.h <<\_ACEOF
24784 #define HAVE_STD_STRING_COMPARE 1
24785 _ACEOF
24786
24787     fi
24788
24789     if test "$wx_cv_class_gnuhashmapset" = yes; then
24790          cat >>confdefs.h <<\_ACEOF
24791 #define HAVE_EXT_HASH_MAP 1
24792 _ACEOF
24793
24794          cat >>confdefs.h <<\_ACEOF
24795 #define HAVE_GNU_CXX_HASH_MAP 1
24796 _ACEOF
24797
24798     fi
24799
24800     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24801 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24802 if test "${ac_cv_header_unordered_map+set}" = set; then
24803   echo $ECHO_N "(cached) $ECHO_C" >&6
24804 else
24805   cat >conftest.$ac_ext <<_ACEOF
24806 /* confdefs.h.  */
24807 _ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h.  */
24811
24812
24813
24814 #include <unordered_map>
24815 _ACEOF
24816 rm -f conftest.$ac_objext
24817 if { (ac_try="$ac_compile"
24818 case "(($ac_try" in
24819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820   *) ac_try_echo=$ac_try;;
24821 esac
24822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24823   (eval "$ac_compile") 2>conftest.er1
24824   ac_status=$?
24825   grep -v '^ *+' conftest.er1 >conftest.err
24826   rm -f conftest.er1
24827   cat conftest.err >&5
24828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829   (exit $ac_status); } && {
24830          test -z "$ac_cxx_werror_flag" ||
24831          test ! -s conftest.err
24832        } && test -s conftest.$ac_objext; then
24833   ac_cv_header_unordered_map=yes
24834 else
24835   echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24837
24838         ac_cv_header_unordered_map=no
24839 fi
24840
24841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24842 fi
24843 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24844 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24845 if test $ac_cv_header_unordered_map = yes; then
24846   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24847 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24848 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24849   echo $ECHO_N "(cached) $ECHO_C" >&6
24850 else
24851   cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857 #include <unordered_map>
24858                 #include <unordered_set>
24859 int
24860 main ()
24861 {
24862 std::unordered_map<double*, char*> test1;
24863                  std::unordered_set<char*> test2;
24864   ;
24865   return 0;
24866 }
24867 _ACEOF
24868 rm -f conftest.$ac_objext
24869 if { (ac_try="$ac_compile"
24870 case "(($ac_try" in
24871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872   *) ac_try_echo=$ac_try;;
24873 esac
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875   (eval "$ac_compile") 2>conftest.er1
24876   ac_status=$?
24877   grep -v '^ *+' conftest.er1 >conftest.err
24878   rm -f conftest.er1
24879   cat conftest.err >&5
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } && {
24882          test -z "$ac_cxx_werror_flag" ||
24883          test ! -s conftest.err
24884        } && test -s conftest.$ac_objext; then
24885   wx_cv_class_stdunorderedmapset=yes
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890         wx_cv_class_stdunorderedmapset=no
24891 fi
24892
24893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24894
24895
24896 fi
24897 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24898 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24899 fi
24900
24901
24902
24903     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24904          cat >>confdefs.h <<\_ACEOF
24905 #define HAVE_STD_UNORDERED_MAP 1
24906 _ACEOF
24907
24908          cat >>confdefs.h <<\_ACEOF
24909 #define HAVE_STD_UNORDERED_SET 1
24910 _ACEOF
24911
24912     else
24913         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24914 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24915 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24916   echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918   cat >conftest.$ac_ext <<_ACEOF
24919 /* confdefs.h.  */
24920 _ACEOF
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h.  */
24924
24925
24926
24927 #include <tr1/unordered_map>
24928 _ACEOF
24929 rm -f conftest.$ac_objext
24930 if { (ac_try="$ac_compile"
24931 case "(($ac_try" in
24932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933   *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936   (eval "$ac_compile") 2>conftest.er1
24937   ac_status=$?
24938   grep -v '^ *+' conftest.er1 >conftest.err
24939   rm -f conftest.er1
24940   cat conftest.err >&5
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); } && {
24943          test -z "$ac_cxx_werror_flag" ||
24944          test ! -s conftest.err
24945        } && test -s conftest.$ac_objext; then
24946   ac_cv_header_tr1_unordered_map=yes
24947 else
24948   echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24950
24951         ac_cv_header_tr1_unordered_map=no
24952 fi
24953
24954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24955 fi
24956 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24957 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24958 if test $ac_cv_header_tr1_unordered_map = yes; then
24959   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24960 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24961 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24962   echo $ECHO_N "(cached) $ECHO_C" >&6
24963 else
24964   cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h.  */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h.  */
24970 #include <tr1/unordered_map>
24971                     #include <tr1/unordered_set>
24972 int
24973 main ()
24974 {
24975 std::tr1::unordered_map<double*, char*> test1;
24976                      std::tr1::unordered_set<char*> test2;
24977             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24978             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24979             #endif
24980   ;
24981   return 0;
24982 }
24983 _ACEOF
24984 rm -f conftest.$ac_objext
24985 if { (ac_try="$ac_compile"
24986 case "(($ac_try" in
24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988   *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991   (eval "$ac_compile") 2>conftest.er1
24992   ac_status=$?
24993   grep -v '^ *+' conftest.er1 >conftest.err
24994   rm -f conftest.er1
24995   cat conftest.err >&5
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); } && {
24998          test -z "$ac_cxx_werror_flag" ||
24999          test ! -s conftest.err
25000        } && test -s conftest.$ac_objext; then
25001   wx_cv_class_tr1unorderedmapset=yes
25002 else
25003   echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25005
25006         wx_cv_class_tr1unorderedmapset=no
25007 fi
25008
25009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25010
25011
25012 fi
25013 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25014 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25015 fi
25016
25017
25018
25019         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25020             cat >>confdefs.h <<\_ACEOF
25021 #define HAVE_TR1_UNORDERED_MAP 1
25022 _ACEOF
25023
25024             cat >>confdefs.h <<\_ACEOF
25025 #define HAVE_TR1_UNORDERED_SET 1
25026 _ACEOF
25027
25028         else
25029                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25030 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25031 if test "${ac_cv_header_hash_map+set}" = set; then
25032   echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034   cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h.  */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h.  */
25040
25041
25042
25043 #include <hash_map>
25044 _ACEOF
25045 rm -f conftest.$ac_objext
25046 if { (ac_try="$ac_compile"
25047 case "(($ac_try" in
25048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049   *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052   (eval "$ac_compile") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } && {
25059          test -z "$ac_cxx_werror_flag" ||
25060          test ! -s conftest.err
25061        } && test -s conftest.$ac_objext; then
25062   ac_cv_header_hash_map=yes
25063 else
25064   echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25066
25067         ac_cv_header_hash_map=no
25068 fi
25069
25070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071 fi
25072 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25073 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25074 if test $ac_cv_header_hash_map = yes; then
25075   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25076 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25077 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25078   echo $ECHO_N "(cached) $ECHO_C" >&6
25079 else
25080   cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h.  */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h.  */
25086 #include <hash_map>
25087                         #include <hash_set>
25088 int
25089 main ()
25090 {
25091 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25092                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25093   ;
25094   return 0;
25095 }
25096 _ACEOF
25097 rm -f conftest.$ac_objext
25098 if { (ac_try="$ac_compile"
25099 case "(($ac_try" in
25100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101   *) ac_try_echo=$ac_try;;
25102 esac
25103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25104   (eval "$ac_compile") 2>conftest.er1
25105   ac_status=$?
25106   grep -v '^ *+' conftest.er1 >conftest.err
25107   rm -f conftest.er1
25108   cat conftest.err >&5
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); } && {
25111          test -z "$ac_cxx_werror_flag" ||
25112          test ! -s conftest.err
25113        } && test -s conftest.$ac_objext; then
25114   wx_cv_class_stdhashmapset=yes
25115 else
25116   echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25118
25119         wx_cv_class_stdhashmapset=no
25120 fi
25121
25122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25123
25124
25125 fi
25126 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25127 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25128 fi
25129
25130
25131
25132             if test "$wx_cv_class_stdhashmapset" = yes; then
25133                 cat >>confdefs.h <<\_ACEOF
25134 #define HAVE_HASH_MAP 1
25135 _ACEOF
25136
25137                 cat >>confdefs.h <<\_ACEOF
25138 #define HAVE_STD_HASH_MAP 1
25139 _ACEOF
25140
25141             fi
25142
25143             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25144 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25145 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25146   echo $ECHO_N "(cached) $ECHO_C" >&6
25147 else
25148   cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h.  */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h.  */
25154
25155
25156
25157 #include <ext/hash_map>
25158 _ACEOF
25159 rm -f conftest.$ac_objext
25160 if { (ac_try="$ac_compile"
25161 case "(($ac_try" in
25162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163   *) ac_try_echo=$ac_try;;
25164 esac
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166   (eval "$ac_compile") 2>conftest.er1
25167   ac_status=$?
25168   grep -v '^ *+' conftest.er1 >conftest.err
25169   rm -f conftest.er1
25170   cat conftest.err >&5
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); } && {
25173          test -z "$ac_cxx_werror_flag" ||
25174          test ! -s conftest.err
25175        } && test -s conftest.$ac_objext; then
25176   ac_cv_header_ext_hash_map=yes
25177 else
25178   echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25180
25181         ac_cv_header_ext_hash_map=no
25182 fi
25183
25184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25185 fi
25186 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25187 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25188 if test $ac_cv_header_ext_hash_map = yes; then
25189   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25190 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25191 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25192   echo $ECHO_N "(cached) $ECHO_C" >&6
25193 else
25194   cat >conftest.$ac_ext <<_ACEOF
25195 /* confdefs.h.  */
25196 _ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h.  */
25200 #include <ext/hash_map>
25201                         #include <ext/hash_set>
25202 int
25203 main ()
25204 {
25205 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25206                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25207   ;
25208   return 0;
25209 }
25210 _ACEOF
25211 rm -f conftest.$ac_objext
25212 if { (ac_try="$ac_compile"
25213 case "(($ac_try" in
25214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215   *) ac_try_echo=$ac_try;;
25216 esac
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218   (eval "$ac_compile") 2>conftest.er1
25219   ac_status=$?
25220   grep -v '^ *+' conftest.er1 >conftest.err
25221   rm -f conftest.er1
25222   cat conftest.err >&5
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); } && {
25225          test -z "$ac_cxx_werror_flag" ||
25226          test ! -s conftest.err
25227        } && test -s conftest.$ac_objext; then
25228   wx_cv_class_gnuhashmapset=yes
25229 else
25230   echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232
25233         wx_cv_class_gnuhashmapset=no
25234 fi
25235
25236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25237
25238
25239 fi
25240 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25241 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25242 fi
25243
25244
25245
25246         fi
25247     fi
25248 fi
25249
25250
25251
25252   if test -n "$GCC"; then
25253     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25254 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25255     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25256   echo $ECHO_N "(cached) $ECHO_C" >&6
25257 else
25258
25259       cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h.  */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h.  */
25265
25266 int
25267 main ()
25268 {
25269
25270           unsigned int value=0;
25271           /* wxAtomicInc doesn't use return value here */
25272           __sync_fetch_and_add(&value, 2);
25273           __sync_sub_and_fetch(&value, 1);
25274           /* but wxAtomicDec does, so mimic that: */
25275           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25276
25277   ;
25278   return 0;
25279 }
25280 _ACEOF
25281 rm -f conftest.$ac_objext conftest$ac_exeext
25282 if { (ac_try="$ac_link"
25283 case "(($ac_try" in
25284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285   *) ac_try_echo=$ac_try;;
25286 esac
25287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25288   (eval "$ac_link") 2>conftest.er1
25289   ac_status=$?
25290   grep -v '^ *+' conftest.er1 >conftest.err
25291   rm -f conftest.er1
25292   cat conftest.err >&5
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); } && {
25295          test -z "$ac_cxx_werror_flag" ||
25296          test ! -s conftest.err
25297        } && test -s conftest$ac_exeext &&
25298        $as_test_x conftest$ac_exeext; then
25299   wx_cv_cc_gcc_atomic_builtins=yes
25300 else
25301   echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25303
25304         wx_cv_cc_gcc_atomic_builtins=no
25305 fi
25306
25307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25308       conftest$ac_exeext conftest.$ac_ext
25309
25310 fi
25311
25312     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25313 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25314     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25315       cat >>confdefs.h <<\_ACEOF
25316 #define HAVE_GCC_ATOMIC_BUILTINS 1
25317 _ACEOF
25318
25319     fi
25320   fi
25321
25322
25323 ac_ext=c
25324 ac_cpp='$CPP $CPPFLAGS'
25325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25328
25329
25330
25331 SEARCH_INCLUDE="\
25332     /usr/local/include        \
25333     /usr/local/X11/include    \
25334     /usr/local/include/X11    \
25335     /usr/local/X11R6/include  \
25336     /usr/local/include/X11R6  \
25337                               \
25338     /usr/Motif-2.1/include    \
25339     /usr/Motif-1.2/include    \
25340     /usr/include/Motif1.2     \
25341                               \
25342     /usr/dt/include           \
25343     /usr/openwin/include      \
25344                               \
25345     /usr/include/Xm           \
25346                               \
25347     /usr/X11R6/include        \
25348     /usr/X11R6.4/include      \
25349                               \
25350     /usr/include/X11R6        \
25351                               \
25352     /usr/X11/include          \
25353     /usr/include/X11          \
25354                               \
25355     /usr/XFree86/include/X11  \
25356     /usr/pkg/include          \
25357                               \
25358     /usr/local/X1R5/include  \
25359     /usr/local/include/X11R5  \
25360     /usr/X11R5/include        \
25361     /usr/include/X11R5        \
25362                               \
25363     /usr/local/X11R4/include  \
25364     /usr/local/include/X11R4  \
25365     /usr/X11R4/include        \
25366     /usr/include/X11R4        \
25367                               \
25368     /usr/openwin/share/include"
25369
25370 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25371 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25372
25373 case "${host}" in
25374     *-*-irix6* )
25375         if test "${wx_cv_std_libpath+set}" = set; then
25376   echo $ECHO_N "(cached) $ECHO_C" >&6
25377 else
25378
25379                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25380                     for e in a so sl dylib dll.a; do
25381                         libc="$d/libc.$e"
25382                         if test -f $libc; then
25383                             save_LIBS="$LIBS"
25384                             LIBS="$libc"
25385                             cat >conftest.$ac_ext <<_ACEOF
25386 int main() { return 0; }
25387 _ACEOF
25388 rm -f conftest.$ac_objext conftest$ac_exeext
25389 if { (ac_try="$ac_link"
25390 case "(($ac_try" in
25391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392   *) ac_try_echo=$ac_try;;
25393 esac
25394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25395   (eval "$ac_link") 2>conftest.er1
25396   ac_status=$?
25397   grep -v '^ *+' conftest.er1 >conftest.err
25398   rm -f conftest.er1
25399   cat conftest.err >&5
25400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401   (exit $ac_status); } && {
25402          test -z "$ac_c_werror_flag" ||
25403          test ! -s conftest.err
25404        } && test -s conftest$ac_exeext &&
25405        $as_test_x conftest$ac_exeext; then
25406   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25407 else
25408   echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25410
25411
25412 fi
25413
25414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25415       conftest$ac_exeext conftest.$ac_ext
25416                             LIBS="$save_LIBS"
25417                             if test "x$wx_cv_std_libpath" != "x"; then
25418                                 break 2
25419                             fi
25420                         fi
25421                     done
25422                 done
25423                 if test "x$wx_cv_std_libpath" = "x"; then
25424                     wx_cv_std_libpath="lib"
25425                 fi
25426
25427
25428 fi
25429
25430         ;;
25431
25432     *-*-solaris2* )
25433                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25434             wx_cv_std_libpath="lib/64"
25435         else
25436             wx_cv_std_libpath="lib"
25437         fi
25438         ;;
25439
25440     *-*-linux* )
25441                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25442                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25443             wx_cv_std_libpath="lib64"
25444         else
25445             wx_cv_std_libpath="lib"
25446         fi
25447         ;;
25448
25449     *)
25450         wx_cv_std_libpath="lib";
25451         ;;
25452 esac
25453
25454 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25455 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25456
25457 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25458
25459 if test "$build" != "$host" -a "$GCC" = yes; then
25460                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25461         cross_root=`dirname $cross_root`
25462         cross_root=`dirname $cross_root`
25463
25464                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25465         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25466         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25467
25468                 if test -z "$PKG_CONFIG_PATH"; then
25469             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25470             export PKG_CONFIG_PATH
25471         fi
25472
25473                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25474
25475 ac_find_includes=
25476 for ac_dir in $SEARCH_INCLUDE /usr/include;
25477   do
25478     if test -f "$ac_dir/X11/Intrinsic.h"; then
25479       ac_find_includes=$ac_dir
25480       break
25481     fi
25482   done
25483
25484             x_includes=$ac_find_includes
25485         fi
25486         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25487
25488   ac_find_libraries=
25489   for ac_dir in $SEARCH_LIB;
25490   do
25491     for ac_extension in a so sl dylib dll.a; do
25492       if test -f "$ac_dir/libXt.$ac_extension"; then
25493         ac_find_libraries=$ac_dir
25494         break 2
25495       fi
25496     done
25497   done
25498
25499             x_libraries=$ac_find_libraries
25500         fi
25501     fi
25502 fi
25503
25504
25505 cat >confcache <<\_ACEOF
25506 # This file is a shell script that caches the results of configure
25507 # tests run on this system so they can be shared between configure
25508 # scripts and configure runs, see configure's option --config-cache.
25509 # It is not useful on other systems.  If it contains results you don't
25510 # want to keep, you may remove or edit it.
25511 #
25512 # config.status only pays attention to the cache file if you give it
25513 # the --recheck option to rerun configure.
25514 #
25515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25517 # following values.
25518
25519 _ACEOF
25520
25521 # The following way of writing the cache mishandles newlines in values,
25522 # but we know of no workaround that is simple, portable, and efficient.
25523 # So, we kill variables containing newlines.
25524 # Ultrix sh set writes to stderr and can't be redirected directly,
25525 # and sets the high bit in the cache file unless we assign to the vars.
25526 (
25527   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25528     eval ac_val=\$$ac_var
25529     case $ac_val in #(
25530     *${as_nl}*)
25531       case $ac_var in #(
25532       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25533 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25534       esac
25535       case $ac_var in #(
25536       _ | IFS | as_nl) ;; #(
25537       *) $as_unset $ac_var ;;
25538       esac ;;
25539     esac
25540   done
25541
25542   (set) 2>&1 |
25543     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25544     *${as_nl}ac_space=\ *)
25545       # `set' does not quote correctly, so add quotes (double-quote
25546       # substitution turns \\\\ into \\, and sed turns \\ into \).
25547       sed -n \
25548         "s/'/'\\\\''/g;
25549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25550       ;; #(
25551     *)
25552       # `set' quotes correctly as required by POSIX, so do not add quotes.
25553       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25554       ;;
25555     esac |
25556     sort
25557 ) |
25558   sed '
25559      /^ac_cv_env_/b end
25560      t clear
25561      :clear
25562      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25563      t end
25564      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25565      :end' >>confcache
25566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25567   if test -w "$cache_file"; then
25568     test "x$cache_file" != "x/dev/null" &&
25569       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25570 echo "$as_me: updating cache $cache_file" >&6;}
25571     cat confcache >$cache_file
25572   else
25573     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25574 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25575   fi
25576 fi
25577 rm -f confcache
25578
25579 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25580     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25581 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25582 if test "${wx_cv_lib_glibc21+set}" = set; then
25583   echo $ECHO_N "(cached) $ECHO_C" >&6
25584 else
25585
25586         cat >conftest.$ac_ext <<_ACEOF
25587 /* confdefs.h.  */
25588 _ACEOF
25589 cat confdefs.h >>conftest.$ac_ext
25590 cat >>conftest.$ac_ext <<_ACEOF
25591 /* end confdefs.h.  */
25592 #include <features.h>
25593 int
25594 main ()
25595 {
25596
25597                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25598                 not glibc 2.1
25599                 #endif
25600
25601   ;
25602   return 0;
25603 }
25604 _ACEOF
25605 rm -f conftest.$ac_objext
25606 if { (ac_try="$ac_compile"
25607 case "(($ac_try" in
25608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25609   *) ac_try_echo=$ac_try;;
25610 esac
25611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25612   (eval "$ac_compile") 2>conftest.er1
25613   ac_status=$?
25614   grep -v '^ *+' conftest.er1 >conftest.err
25615   rm -f conftest.er1
25616   cat conftest.err >&5
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); } && {
25619          test -z "$ac_c_werror_flag" ||
25620          test ! -s conftest.err
25621        } && test -s conftest.$ac_objext; then
25622
25623                 wx_cv_lib_glibc21=yes
25624
25625 else
25626   echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25628
25629
25630                 wx_cv_lib_glibc21=no
25631
25632
25633 fi
25634
25635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25636
25637 fi
25638 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25639 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25640     if test "$wx_cv_lib_glibc21" = "yes"; then
25641         cat >>confdefs.h <<\_ACEOF
25642 #define wxHAVE_GLIBC2 1
25643 _ACEOF
25644
25645     fi
25646 fi
25647
25648 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25649     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25650         cat >>confdefs.h <<\_ACEOF
25651 #define _GNU_SOURCE 1
25652 _ACEOF
25653
25654     fi
25655 fi
25656
25657 have_cos=0
25658 have_floor=0
25659
25660 for ac_func in cos
25661 do
25662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25666   echo $ECHO_N "(cached) $ECHO_C" >&6
25667 else
25668   cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h.  */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h.  */
25674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25676 #define $ac_func innocuous_$ac_func
25677
25678 /* System header to define __stub macros and hopefully few prototypes,
25679     which can conflict with char $ac_func (); below.
25680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25681     <limits.h> exists even on freestanding compilers.  */
25682
25683 #ifdef __STDC__
25684 # include <limits.h>
25685 #else
25686 # include <assert.h>
25687 #endif
25688
25689 #undef $ac_func
25690
25691 /* Override any GCC internal prototype to avoid an error.
25692    Use char because int might match the return type of a GCC
25693    builtin and then its argument prototype would still apply.  */
25694 #ifdef __cplusplus
25695 extern "C"
25696 #endif
25697 char $ac_func ();
25698 /* The GNU C library defines this for functions which it implements
25699     to always fail with ENOSYS.  Some functions are actually named
25700     something starting with __ and the normal name is an alias.  */
25701 #if defined __stub_$ac_func || defined __stub___$ac_func
25702 choke me
25703 #endif
25704
25705 int
25706 main ()
25707 {
25708 return $ac_func ();
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 rm -f conftest.$ac_objext conftest$ac_exeext
25714 if { (ac_try="$ac_link"
25715 case "(($ac_try" in
25716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717   *) ac_try_echo=$ac_try;;
25718 esac
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720   (eval "$ac_link") 2>conftest.er1
25721   ac_status=$?
25722   grep -v '^ *+' conftest.er1 >conftest.err
25723   rm -f conftest.er1
25724   cat conftest.err >&5
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); } && {
25727          test -z "$ac_c_werror_flag" ||
25728          test ! -s conftest.err
25729        } && test -s conftest$ac_exeext &&
25730        $as_test_x conftest$ac_exeext; then
25731   eval "$as_ac_var=yes"
25732 else
25733   echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25735
25736         eval "$as_ac_var=no"
25737 fi
25738
25739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25740       conftest$ac_exeext conftest.$ac_ext
25741 fi
25742 ac_res=`eval echo '${'$as_ac_var'}'`
25743                { echo "$as_me:$LINENO: result: $ac_res" >&5
25744 echo "${ECHO_T}$ac_res" >&6; }
25745 if test `eval echo '${'$as_ac_var'}'` = yes; then
25746   cat >>confdefs.h <<_ACEOF
25747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25748 _ACEOF
25749  have_cos=1
25750 fi
25751 done
25752
25753
25754 for ac_func in floor
25755 do
25756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25760   echo $ECHO_N "(cached) $ECHO_C" >&6
25761 else
25762   cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h.  */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h.  */
25768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25770 #define $ac_func innocuous_$ac_func
25771
25772 /* System header to define __stub macros and hopefully few prototypes,
25773     which can conflict with char $ac_func (); below.
25774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25775     <limits.h> exists even on freestanding compilers.  */
25776
25777 #ifdef __STDC__
25778 # include <limits.h>
25779 #else
25780 # include <assert.h>
25781 #endif
25782
25783 #undef $ac_func
25784
25785 /* Override any GCC internal prototype to avoid an error.
25786    Use char because int might match the return type of a GCC
25787    builtin and then its argument prototype would still apply.  */
25788 #ifdef __cplusplus
25789 extern "C"
25790 #endif
25791 char $ac_func ();
25792 /* The GNU C library defines this for functions which it implements
25793     to always fail with ENOSYS.  Some functions are actually named
25794     something starting with __ and the normal name is an alias.  */
25795 #if defined __stub_$ac_func || defined __stub___$ac_func
25796 choke me
25797 #endif
25798
25799 int
25800 main ()
25801 {
25802 return $ac_func ();
25803   ;
25804   return 0;
25805 }
25806 _ACEOF
25807 rm -f conftest.$ac_objext conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811   *) ac_try_echo=$ac_try;;
25812 esac
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814   (eval "$ac_link") 2>conftest.er1
25815   ac_status=$?
25816   grep -v '^ *+' conftest.er1 >conftest.err
25817   rm -f conftest.er1
25818   cat conftest.err >&5
25819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); } && {
25821          test -z "$ac_c_werror_flag" ||
25822          test ! -s conftest.err
25823        } && test -s conftest$ac_exeext &&
25824        $as_test_x conftest$ac_exeext; then
25825   eval "$as_ac_var=yes"
25826 else
25827   echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25829
25830         eval "$as_ac_var=no"
25831 fi
25832
25833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25834       conftest$ac_exeext conftest.$ac_ext
25835 fi
25836 ac_res=`eval echo '${'$as_ac_var'}'`
25837                { echo "$as_me:$LINENO: result: $ac_res" >&5
25838 echo "${ECHO_T}$ac_res" >&6; }
25839 if test `eval echo '${'$as_ac_var'}'` = yes; then
25840   cat >>confdefs.h <<_ACEOF
25841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25842 _ACEOF
25843  have_floor=1
25844 fi
25845 done
25846
25847 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25848 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25849 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25850     { echo "$as_me:$LINENO: result: yes" >&5
25851 echo "${ECHO_T}yes" >&6; }
25852 else
25853     { echo "$as_me:$LINENO: result: no" >&5
25854 echo "${ECHO_T}no" >&6; }
25855     LIBS="$LIBS -lm"
25856     # use different functions to avoid configure caching
25857     have_sin=0
25858     have_ceil=0
25859
25860 for ac_func in sin
25861 do
25862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25866   echo $ECHO_N "(cached) $ECHO_C" >&6
25867 else
25868   cat >conftest.$ac_ext <<_ACEOF
25869 /* confdefs.h.  */
25870 _ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h.  */
25874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25876 #define $ac_func innocuous_$ac_func
25877
25878 /* System header to define __stub macros and hopefully few prototypes,
25879     which can conflict with char $ac_func (); below.
25880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25881     <limits.h> exists even on freestanding compilers.  */
25882
25883 #ifdef __STDC__
25884 # include <limits.h>
25885 #else
25886 # include <assert.h>
25887 #endif
25888
25889 #undef $ac_func
25890
25891 /* Override any GCC internal prototype to avoid an error.
25892    Use char because int might match the return type of a GCC
25893    builtin and then its argument prototype would still apply.  */
25894 #ifdef __cplusplus
25895 extern "C"
25896 #endif
25897 char $ac_func ();
25898 /* The GNU C library defines this for functions which it implements
25899     to always fail with ENOSYS.  Some functions are actually named
25900     something starting with __ and the normal name is an alias.  */
25901 #if defined __stub_$ac_func || defined __stub___$ac_func
25902 choke me
25903 #endif
25904
25905 int
25906 main ()
25907 {
25908 return $ac_func ();
25909   ;
25910   return 0;
25911 }
25912 _ACEOF
25913 rm -f conftest.$ac_objext conftest$ac_exeext
25914 if { (ac_try="$ac_link"
25915 case "(($ac_try" in
25916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25917   *) ac_try_echo=$ac_try;;
25918 esac
25919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25920   (eval "$ac_link") 2>conftest.er1
25921   ac_status=$?
25922   grep -v '^ *+' conftest.er1 >conftest.err
25923   rm -f conftest.er1
25924   cat conftest.err >&5
25925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926   (exit $ac_status); } && {
25927          test -z "$ac_c_werror_flag" ||
25928          test ! -s conftest.err
25929        } && test -s conftest$ac_exeext &&
25930        $as_test_x conftest$ac_exeext; then
25931   eval "$as_ac_var=yes"
25932 else
25933   echo "$as_me: failed program was:" >&5
25934 sed 's/^/| /' conftest.$ac_ext >&5
25935
25936         eval "$as_ac_var=no"
25937 fi
25938
25939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25940       conftest$ac_exeext conftest.$ac_ext
25941 fi
25942 ac_res=`eval echo '${'$as_ac_var'}'`
25943                { echo "$as_me:$LINENO: result: $ac_res" >&5
25944 echo "${ECHO_T}$ac_res" >&6; }
25945 if test `eval echo '${'$as_ac_var'}'` = yes; then
25946   cat >>confdefs.h <<_ACEOF
25947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25948 _ACEOF
25949  have_sin=1
25950 fi
25951 done
25952
25953
25954 for ac_func in ceil
25955 do
25956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h.  */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h.  */
25968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25970 #define $ac_func innocuous_$ac_func
25971
25972 /* System header to define __stub macros and hopefully few prototypes,
25973     which can conflict with char $ac_func (); below.
25974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25975     <limits.h> exists even on freestanding compilers.  */
25976
25977 #ifdef __STDC__
25978 # include <limits.h>
25979 #else
25980 # include <assert.h>
25981 #endif
25982
25983 #undef $ac_func
25984
25985 /* Override any GCC internal prototype to avoid an error.
25986    Use char because int might match the return type of a GCC
25987    builtin and then its argument prototype would still apply.  */
25988 #ifdef __cplusplus
25989 extern "C"
25990 #endif
25991 char $ac_func ();
25992 /* The GNU C library defines this for functions which it implements
25993     to always fail with ENOSYS.  Some functions are actually named
25994     something starting with __ and the normal name is an alias.  */
25995 #if defined __stub_$ac_func || defined __stub___$ac_func
25996 choke me
25997 #endif
25998
25999 int
26000 main ()
26001 {
26002 return $ac_func ();
26003   ;
26004   return 0;
26005 }
26006 _ACEOF
26007 rm -f conftest.$ac_objext conftest$ac_exeext
26008 if { (ac_try="$ac_link"
26009 case "(($ac_try" in
26010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011   *) ac_try_echo=$ac_try;;
26012 esac
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014   (eval "$ac_link") 2>conftest.er1
26015   ac_status=$?
26016   grep -v '^ *+' conftest.er1 >conftest.err
26017   rm -f conftest.er1
26018   cat conftest.err >&5
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); } && {
26021          test -z "$ac_c_werror_flag" ||
26022          test ! -s conftest.err
26023        } && test -s conftest$ac_exeext &&
26024        $as_test_x conftest$ac_exeext; then
26025   eval "$as_ac_var=yes"
26026 else
26027   echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26029
26030         eval "$as_ac_var=no"
26031 fi
26032
26033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26034       conftest$ac_exeext conftest.$ac_ext
26035 fi
26036 ac_res=`eval echo '${'$as_ac_var'}'`
26037                { echo "$as_me:$LINENO: result: $ac_res" >&5
26038 echo "${ECHO_T}$ac_res" >&6; }
26039 if test `eval echo '${'$as_ac_var'}'` = yes; then
26040   cat >>confdefs.h <<_ACEOF
26041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26042 _ACEOF
26043  have_ceil=1
26044 fi
26045 done
26046
26047     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26048 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26049     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26050         { echo "$as_me:$LINENO: result: yes" >&5
26051 echo "${ECHO_T}yes" >&6; }
26052     else
26053         { echo "$as_me:$LINENO: result: no" >&5
26054 echo "${ECHO_T}no" >&6; }
26055         # not sure we should warn the user, crash, etc.
26056     fi
26057 fi
26058
26059 ac_ext=cpp
26060 ac_cpp='$CXXCPP $CPPFLAGS'
26061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26064
26065 if test "wxUSE_UNICODE" = "yes"; then
26066
26067   for wx_func in wcstoull
26068   do
26069     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26070 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26071 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26072   echo $ECHO_N "(cached) $ECHO_C" >&6
26073 else
26074
26075         cat >conftest.$ac_ext <<_ACEOF
26076
26077             /* confdefs.h.  */
26078 _ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h.  */
26082
26083
26084                 $ac_includes_default
26085
26086 int
26087 main ()
26088 {
26089
26090                 #ifndef $wx_func
26091                   &$wx_func;
26092                 #endif
26093
26094
26095   ;
26096   return 0;
26097 }
26098
26099 _ACEOF
26100 rm -f conftest.$ac_objext conftest$ac_exeext
26101 if { (ac_try="$ac_link"
26102 case "(($ac_try" in
26103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104   *) ac_try_echo=$ac_try;;
26105 esac
26106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26107   (eval "$ac_link") 2>conftest.er1
26108   ac_status=$?
26109   grep -v '^ *+' conftest.er1 >conftest.err
26110   rm -f conftest.er1
26111   cat conftest.err >&5
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); } && {
26114          test -z "$ac_cxx_werror_flag" ||
26115          test ! -s conftest.err
26116        } && test -s conftest$ac_exeext &&
26117        $as_test_x conftest$ac_exeext; then
26118   eval wx_cv_func_$wx_func=yes
26119 else
26120   echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26122
26123         eval wx_cv_func_$wx_func=no
26124 fi
26125
26126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26127       conftest$ac_exeext conftest.$ac_ext
26128
26129 fi
26130 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26131                { echo "$as_me:$LINENO: result: $ac_res" >&5
26132 echo "${ECHO_T}$ac_res" >&6; }
26133
26134     if eval test \$wx_cv_func_$wx_func = yes
26135     then
26136       cat >>confdefs.h <<_ACEOF
26137 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26138 _ACEOF
26139
26140
26141     else
26142       :
26143
26144     fi
26145   done
26146
26147 else
26148
26149   for wx_func in strtoull
26150   do
26151     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26152 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26153 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26154   echo $ECHO_N "(cached) $ECHO_C" >&6
26155 else
26156
26157         cat >conftest.$ac_ext <<_ACEOF
26158
26159             /* confdefs.h.  */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h.  */
26164
26165
26166                 $ac_includes_default
26167
26168 int
26169 main ()
26170 {
26171
26172                 #ifndef $wx_func
26173                   &$wx_func;
26174                 #endif
26175
26176
26177   ;
26178   return 0;
26179 }
26180
26181 _ACEOF
26182 rm -f conftest.$ac_objext conftest$ac_exeext
26183 if { (ac_try="$ac_link"
26184 case "(($ac_try" in
26185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186   *) ac_try_echo=$ac_try;;
26187 esac
26188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26189   (eval "$ac_link") 2>conftest.er1
26190   ac_status=$?
26191   grep -v '^ *+' conftest.er1 >conftest.err
26192   rm -f conftest.er1
26193   cat conftest.err >&5
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); } && {
26196          test -z "$ac_cxx_werror_flag" ||
26197          test ! -s conftest.err
26198        } && test -s conftest$ac_exeext &&
26199        $as_test_x conftest$ac_exeext; then
26200   eval wx_cv_func_$wx_func=yes
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205         eval wx_cv_func_$wx_func=no
26206 fi
26207
26208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26209       conftest$ac_exeext conftest.$ac_ext
26210
26211 fi
26212 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26213                { echo "$as_me:$LINENO: result: $ac_res" >&5
26214 echo "${ECHO_T}$ac_res" >&6; }
26215
26216     if eval test \$wx_cv_func_$wx_func = yes
26217     then
26218       cat >>confdefs.h <<_ACEOF
26219 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26220 _ACEOF
26221
26222
26223     else
26224       :
26225
26226     fi
26227   done
26228
26229 fi
26230 ac_ext=c
26231 ac_cpp='$CPP $CPPFLAGS'
26232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26235
26236
26237
26238
26239 if test "$wxUSE_REGEX" != "no"; then
26240     cat >>confdefs.h <<\_ACEOF
26241 #define wxUSE_REGEX 1
26242 _ACEOF
26243
26244
26245     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26246         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26247 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26248         wxUSE_REGEX=builtin
26249     fi
26250
26251     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26252                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26253 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26254 if test "${ac_cv_header_regex_h+set}" = set; then
26255   echo $ECHO_N "(cached) $ECHO_C" >&6
26256 else
26257   cat >conftest.$ac_ext <<_ACEOF
26258 /* confdefs.h.  */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h.  */
26263
26264
26265 #include <regex.h>
26266 _ACEOF
26267 rm -f conftest.$ac_objext
26268 if { (ac_try="$ac_compile"
26269 case "(($ac_try" in
26270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26271   *) ac_try_echo=$ac_try;;
26272 esac
26273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26274   (eval "$ac_compile") 2>conftest.er1
26275   ac_status=$?
26276   grep -v '^ *+' conftest.er1 >conftest.err
26277   rm -f conftest.er1
26278   cat conftest.err >&5
26279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280   (exit $ac_status); } && {
26281          test -z "$ac_c_werror_flag" ||
26282          test ! -s conftest.err
26283        } && test -s conftest.$ac_objext; then
26284   ac_cv_header_regex_h=yes
26285 else
26286   echo "$as_me: failed program was:" >&5
26287 sed 's/^/| /' conftest.$ac_ext >&5
26288
26289         ac_cv_header_regex_h=no
26290 fi
26291
26292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26293 fi
26294 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26295 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26296 if test $ac_cv_header_regex_h = yes; then
26297
26298
26299 for ac_func in regcomp re_search
26300 do
26301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26305   echo $ECHO_N "(cached) $ECHO_C" >&6
26306 else
26307   cat >conftest.$ac_ext <<_ACEOF
26308 /* confdefs.h.  */
26309 _ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h.  */
26313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26315 #define $ac_func innocuous_$ac_func
26316
26317 /* System header to define __stub macros and hopefully few prototypes,
26318     which can conflict with char $ac_func (); below.
26319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26320     <limits.h> exists even on freestanding compilers.  */
26321
26322 #ifdef __STDC__
26323 # include <limits.h>
26324 #else
26325 # include <assert.h>
26326 #endif
26327
26328 #undef $ac_func
26329
26330 /* Override any GCC internal prototype to avoid an error.
26331    Use char because int might match the return type of a GCC
26332    builtin and then its argument prototype would still apply.  */
26333 #ifdef __cplusplus
26334 extern "C"
26335 #endif
26336 char $ac_func ();
26337 /* The GNU C library defines this for functions which it implements
26338     to always fail with ENOSYS.  Some functions are actually named
26339     something starting with __ and the normal name is an alias.  */
26340 #if defined __stub_$ac_func || defined __stub___$ac_func
26341 choke me
26342 #endif
26343
26344 int
26345 main ()
26346 {
26347 return $ac_func ();
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext conftest$ac_exeext
26353 if { (ac_try="$ac_link"
26354 case "(($ac_try" in
26355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356   *) ac_try_echo=$ac_try;;
26357 esac
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359   (eval "$ac_link") 2>conftest.er1
26360   ac_status=$?
26361   grep -v '^ *+' conftest.er1 >conftest.err
26362   rm -f conftest.er1
26363   cat conftest.err >&5
26364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365   (exit $ac_status); } && {
26366          test -z "$ac_c_werror_flag" ||
26367          test ! -s conftest.err
26368        } && test -s conftest$ac_exeext &&
26369        $as_test_x conftest$ac_exeext; then
26370   eval "$as_ac_var=yes"
26371 else
26372   echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375         eval "$as_ac_var=no"
26376 fi
26377
26378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26379       conftest$ac_exeext conftest.$ac_ext
26380 fi
26381 ac_res=`eval echo '${'$as_ac_var'}'`
26382                { echo "$as_me:$LINENO: result: $ac_res" >&5
26383 echo "${ECHO_T}$ac_res" >&6; }
26384 if test `eval echo '${'$as_ac_var'}'` = yes; then
26385   cat >>confdefs.h <<_ACEOF
26386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26387 _ACEOF
26388
26389 fi
26390 done
26391
26392 fi
26393
26394
26395
26396         if test "x$ac_cv_func_regcomp" != "xyes"; then
26397             if test "$wxUSE_REGEX" = "sys" ; then
26398                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26399 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26400    { (exit 1); exit 1; }; }
26401             else
26402                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26403 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26404                 wxUSE_REGEX=builtin
26405             fi
26406         else
26407                         wxUSE_REGEX=sys
26408                         cat >>confdefs.h <<\_ACEOF
26409 #define WX_NO_REGEX_ADVANCED 1
26410 _ACEOF
26411
26412         fi
26413     fi
26414 fi
26415
26416
26417 ZLIB_LINK=
26418 if test "$wxUSE_ZLIB" != "no" ; then
26419     cat >>confdefs.h <<\_ACEOF
26420 #define wxUSE_ZLIB 1
26421 _ACEOF
26422
26423
26424     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26425                                                 if test "$USE_DARWIN" = 1; then
26426             system_zlib_h_ok="yes"
26427         else
26428                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26429 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26430 if test "${ac_cv_header_zlib_h+set}" = set; then
26431   echo $ECHO_N "(cached) $ECHO_C" >&6
26432 else
26433   if test "$cross_compiling" = yes; then
26434                       unset ac_cv_header_zlib_h
26435
26436 else
26437   cat >conftest.$ac_ext <<_ACEOF
26438 /* confdefs.h.  */
26439 _ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h.  */
26443
26444                         #include <zlib.h>
26445                         #include <stdio.h>
26446
26447                         int main()
26448                         {
26449                             FILE *f=fopen("conftestval", "w");
26450                             if (!f) exit(1);
26451                             fprintf(f, "%s",
26452                                     ZLIB_VERSION[0] == '1' &&
26453                                     (ZLIB_VERSION[2] > '1' ||
26454                                     (ZLIB_VERSION[2] == '1' &&
26455                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26456                             exit(0);
26457                         }
26458
26459 _ACEOF
26460 rm -f conftest$ac_exeext
26461 if { (ac_try="$ac_link"
26462 case "(($ac_try" in
26463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464   *) ac_try_echo=$ac_try;;
26465 esac
26466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26467   (eval "$ac_link") 2>&5
26468   ac_status=$?
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26471   { (case "(($ac_try" in
26472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26473   *) ac_try_echo=$ac_try;;
26474 esac
26475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26476   (eval "$ac_try") 2>&5
26477   ac_status=$?
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); }; }; then
26480   ac_cv_header_zlib_h=`cat conftestval`
26481 else
26482   echo "$as_me: program exited with status $ac_status" >&5
26483 echo "$as_me: failed program was:" >&5
26484 sed 's/^/| /' conftest.$ac_ext >&5
26485
26486 ( exit $ac_status )
26487 ac_cv_header_zlib_h=no
26488 fi
26489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26490 fi
26491
26492
26493
26494 fi
26495 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26496 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26497                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26498 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26499 if test "${ac_cv_header_zlib_h+set}" = set; then
26500   echo $ECHO_N "(cached) $ECHO_C" >&6
26501 else
26502   cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508
26509
26510 #include <zlib.h>
26511 _ACEOF
26512 rm -f conftest.$ac_objext
26513 if { (ac_try="$ac_compile"
26514 case "(($ac_try" in
26515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26516   *) ac_try_echo=$ac_try;;
26517 esac
26518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519   (eval "$ac_compile") 2>conftest.er1
26520   ac_status=$?
26521   grep -v '^ *+' conftest.er1 >conftest.err
26522   rm -f conftest.er1
26523   cat conftest.err >&5
26524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525   (exit $ac_status); } && {
26526          test -z "$ac_c_werror_flag" ||
26527          test ! -s conftest.err
26528        } && test -s conftest.$ac_objext; then
26529   ac_cv_header_zlib_h=yes
26530 else
26531   echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26533
26534         ac_cv_header_zlib_h=no
26535 fi
26536
26537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26538 fi
26539 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26540 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26541
26542
26543
26544             system_zlib_h_ok=$ac_cv_header_zlib_h
26545         fi
26546
26547         if test "$system_zlib_h_ok" = "yes"; then
26548             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26549 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26550 if test "${ac_cv_lib_z_deflate+set}" = set; then
26551   echo $ECHO_N "(cached) $ECHO_C" >&6
26552 else
26553   ac_check_lib_save_LIBS=$LIBS
26554 LIBS="-lz  $LIBS"
26555 cat >conftest.$ac_ext <<_ACEOF
26556 /* confdefs.h.  */
26557 _ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h.  */
26561
26562 /* Override any GCC internal prototype to avoid an error.
26563    Use char because int might match the return type of a GCC
26564    builtin and then its argument prototype would still apply.  */
26565 #ifdef __cplusplus
26566 extern "C"
26567 #endif
26568 char deflate ();
26569 int
26570 main ()
26571 {
26572 return deflate ();
26573   ;
26574   return 0;
26575 }
26576 _ACEOF
26577 rm -f conftest.$ac_objext conftest$ac_exeext
26578 if { (ac_try="$ac_link"
26579 case "(($ac_try" in
26580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581   *) ac_try_echo=$ac_try;;
26582 esac
26583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584   (eval "$ac_link") 2>conftest.er1
26585   ac_status=$?
26586   grep -v '^ *+' conftest.er1 >conftest.err
26587   rm -f conftest.er1
26588   cat conftest.err >&5
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); } && {
26591          test -z "$ac_c_werror_flag" ||
26592          test ! -s conftest.err
26593        } && test -s conftest$ac_exeext &&
26594        $as_test_x conftest$ac_exeext; then
26595   ac_cv_lib_z_deflate=yes
26596 else
26597   echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26599
26600         ac_cv_lib_z_deflate=no
26601 fi
26602
26603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26604       conftest$ac_exeext conftest.$ac_ext
26605 LIBS=$ac_check_lib_save_LIBS
26606 fi
26607 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26608 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26609 if test $ac_cv_lib_z_deflate = yes; then
26610   ZLIB_LINK=" -lz"
26611 fi
26612
26613         fi
26614
26615         if test "x$ZLIB_LINK" = "x" ; then
26616             if test "$wxUSE_ZLIB" = "sys" ; then
26617                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26618 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26619    { (exit 1); exit 1; }; }
26620             else
26621                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26622 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26623                 wxUSE_ZLIB=builtin
26624             fi
26625         else
26626                         wxUSE_ZLIB=sys
26627         fi
26628     fi
26629 fi
26630
26631
26632 PNG_LINK=
26633 if test "$wxUSE_LIBPNG" != "no" ; then
26634     cat >>confdefs.h <<\_ACEOF
26635 #define wxUSE_LIBPNG 1
26636 _ACEOF
26637
26638
26639     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26640         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26641 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26642         wxUSE_LIBPNG=sys
26643     fi
26644
26645                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26646         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26647 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26648         wxUSE_LIBPNG=builtin
26649     fi
26650
26651     if test "$wxUSE_MGL" != 1 ; then
26652                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26653                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26654 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26655 if test "${ac_cv_header_png_h+set}" = set; then
26656   echo $ECHO_N "(cached) $ECHO_C" >&6
26657 else
26658   if test "$cross_compiling" = yes; then
26659                       unset ac_cv_header_png_h
26660
26661 else
26662   cat >conftest.$ac_ext <<_ACEOF
26663 /* confdefs.h.  */
26664 _ACEOF
26665 cat confdefs.h >>conftest.$ac_ext
26666 cat >>conftest.$ac_ext <<_ACEOF
26667 /* end confdefs.h.  */
26668
26669                         #include <png.h>
26670                         #include <stdio.h>
26671
26672                         int main()
26673                         {
26674                             FILE *f=fopen("conftestval", "w");
26675                             if (!f) exit(1);
26676                             fprintf(f, "%s",
26677                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26678                             exit(0);
26679                         }
26680
26681 _ACEOF
26682 rm -f conftest$ac_exeext
26683 if { (ac_try="$ac_link"
26684 case "(($ac_try" in
26685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686   *) ac_try_echo=$ac_try;;
26687 esac
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689   (eval "$ac_link") 2>&5
26690   ac_status=$?
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26693   { (case "(($ac_try" in
26694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695   *) ac_try_echo=$ac_try;;
26696 esac
26697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26698   (eval "$ac_try") 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); }; }; then
26702   ac_cv_header_png_h=`cat conftestval`
26703 else
26704   echo "$as_me: program exited with status $ac_status" >&5
26705 echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26707
26708 ( exit $ac_status )
26709 ac_cv_header_png_h=no
26710 fi
26711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26712 fi
26713
26714
26715
26716 fi
26717 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26718 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26719             { echo "$as_me:$LINENO: checking for png.h" >&5
26720 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26721 if test "${ac_cv_header_png_h+set}" = set; then
26722   echo $ECHO_N "(cached) $ECHO_C" >&6
26723 else
26724   cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730
26731
26732 #include <png.h>
26733 _ACEOF
26734 rm -f conftest.$ac_objext
26735 if { (ac_try="$ac_compile"
26736 case "(($ac_try" in
26737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738   *) ac_try_echo=$ac_try;;
26739 esac
26740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741   (eval "$ac_compile") 2>conftest.er1
26742   ac_status=$?
26743   grep -v '^ *+' conftest.er1 >conftest.err
26744   rm -f conftest.er1
26745   cat conftest.err >&5
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } && {
26748          test -z "$ac_c_werror_flag" ||
26749          test ! -s conftest.err
26750        } && test -s conftest.$ac_objext; then
26751   ac_cv_header_png_h=yes
26752 else
26753   echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26755
26756         ac_cv_header_png_h=no
26757 fi
26758
26759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26760 fi
26761 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26762 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26763
26764
26765
26766             if test "$ac_cv_header_png_h" = "yes"; then
26767                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26768 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26769 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26770   echo $ECHO_N "(cached) $ECHO_C" >&6
26771 else
26772   ac_check_lib_save_LIBS=$LIBS
26773 LIBS="-lpng -lz -lm $LIBS"
26774 cat >conftest.$ac_ext <<_ACEOF
26775 /* confdefs.h.  */
26776 _ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h.  */
26780
26781 /* Override any GCC internal prototype to avoid an error.
26782    Use char because int might match the return type of a GCC
26783    builtin and then its argument prototype would still apply.  */
26784 #ifdef __cplusplus
26785 extern "C"
26786 #endif
26787 char png_check_sig ();
26788 int
26789 main ()
26790 {
26791 return png_check_sig ();
26792   ;
26793   return 0;
26794 }
26795 _ACEOF
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (ac_try="$ac_link"
26798 case "(($ac_try" in
26799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26800   *) ac_try_echo=$ac_try;;
26801 esac
26802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26803   (eval "$ac_link") 2>conftest.er1
26804   ac_status=$?
26805   grep -v '^ *+' conftest.er1 >conftest.err
26806   rm -f conftest.er1
26807   cat conftest.err >&5
26808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809   (exit $ac_status); } && {
26810          test -z "$ac_c_werror_flag" ||
26811          test ! -s conftest.err
26812        } && test -s conftest$ac_exeext &&
26813        $as_test_x conftest$ac_exeext; then
26814   ac_cv_lib_png_png_check_sig=yes
26815 else
26816   echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26818
26819         ac_cv_lib_png_png_check_sig=no
26820 fi
26821
26822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26823       conftest$ac_exeext conftest.$ac_ext
26824 LIBS=$ac_check_lib_save_LIBS
26825 fi
26826 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26827 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26828 if test $ac_cv_lib_png_png_check_sig = yes; then
26829   PNG_LINK=" -lpng -lz"
26830 fi
26831
26832             fi
26833
26834             if test "x$PNG_LINK" = "x" ; then
26835                 if test "$wxUSE_LIBPNG" = "sys" ; then
26836                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26837 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26838    { (exit 1); exit 1; }; }
26839                 else
26840                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26841 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26842                     wxUSE_LIBPNG=builtin
26843                 fi
26844             else
26845                                 wxUSE_LIBPNG=sys
26846             fi
26847         fi
26848     fi
26849 fi
26850
26851
26852 JPEG_LINK=
26853 if test "$wxUSE_LIBJPEG" != "no" ; then
26854     cat >>confdefs.h <<\_ACEOF
26855 #define wxUSE_LIBJPEG 1
26856 _ACEOF
26857
26858
26859     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26860         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26861 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26862         wxUSE_LIBJPEG=sys
26863     fi
26864
26865     if test "$wxUSE_MGL" != 1 ; then
26866                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26867                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26868 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26869             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26870   echo $ECHO_N "(cached) $ECHO_C" >&6
26871 else
26872   cat >conftest.$ac_ext <<_ACEOF
26873 /* confdefs.h.  */
26874 _ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h.  */
26878
26879                         #undef HAVE_STDLIB_H
26880                         #include <stdio.h>
26881                         #include <jpeglib.h>
26882
26883 int
26884 main ()
26885 {
26886
26887
26888   ;
26889   return 0;
26890 }
26891 _ACEOF
26892 rm -f conftest.$ac_objext
26893 if { (ac_try="$ac_compile"
26894 case "(($ac_try" in
26895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896   *) ac_try_echo=$ac_try;;
26897 esac
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899   (eval "$ac_compile") 2>conftest.er1
26900   ac_status=$?
26901   grep -v '^ *+' conftest.er1 >conftest.err
26902   rm -f conftest.er1
26903   cat conftest.err >&5
26904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905   (exit $ac_status); } && {
26906          test -z "$ac_c_werror_flag" ||
26907          test ! -s conftest.err
26908        } && test -s conftest.$ac_objext; then
26909   ac_cv_header_jpeglib_h=yes
26910 else
26911   echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26913
26914         ac_cv_header_jpeglib_h=no
26915
26916 fi
26917
26918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919
26920 fi
26921
26922             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26923 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26924
26925             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26926                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26927 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26928 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26929   echo $ECHO_N "(cached) $ECHO_C" >&6
26930 else
26931   ac_check_lib_save_LIBS=$LIBS
26932 LIBS="-ljpeg  $LIBS"
26933 cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939
26940 /* Override any GCC internal prototype to avoid an error.
26941    Use char because int might match the return type of a GCC
26942    builtin and then its argument prototype would still apply.  */
26943 #ifdef __cplusplus
26944 extern "C"
26945 #endif
26946 char jpeg_read_header ();
26947 int
26948 main ()
26949 {
26950 return jpeg_read_header ();
26951   ;
26952   return 0;
26953 }
26954 _ACEOF
26955 rm -f conftest.$ac_objext conftest$ac_exeext
26956 if { (ac_try="$ac_link"
26957 case "(($ac_try" in
26958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26959   *) ac_try_echo=$ac_try;;
26960 esac
26961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26962   (eval "$ac_link") 2>conftest.er1
26963   ac_status=$?
26964   grep -v '^ *+' conftest.er1 >conftest.err
26965   rm -f conftest.er1
26966   cat conftest.err >&5
26967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968   (exit $ac_status); } && {
26969          test -z "$ac_c_werror_flag" ||
26970          test ! -s conftest.err
26971        } && test -s conftest$ac_exeext &&
26972        $as_test_x conftest$ac_exeext; then
26973   ac_cv_lib_jpeg_jpeg_read_header=yes
26974 else
26975   echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978         ac_cv_lib_jpeg_jpeg_read_header=no
26979 fi
26980
26981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26982       conftest$ac_exeext conftest.$ac_ext
26983 LIBS=$ac_check_lib_save_LIBS
26984 fi
26985 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26986 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26987 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26988   JPEG_LINK=" -ljpeg"
26989 fi
26990
26991             fi
26992
26993             if test "x$JPEG_LINK" = "x" ; then
26994                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26995                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26996 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26997    { (exit 1); exit 1; }; }
26998                 else
26999                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27000 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27001                     wxUSE_LIBJPEG=builtin
27002                 fi
27003             else
27004                                 wxUSE_LIBJPEG=sys
27005
27006                 if test "$wxUSE_MSW" = 1; then
27007                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27008 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27009 if test "${ac_cv_type_boolean+set}" = set; then
27010   echo $ECHO_N "(cached) $ECHO_C" >&6
27011 else
27012   cat >conftest.$ac_ext <<_ACEOF
27013 /* confdefs.h.  */
27014 _ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h.  */
27018 #include <windows.h>
27019
27020 typedef boolean ac__type_new_;
27021 int
27022 main ()
27023 {
27024 if ((ac__type_new_ *) 0)
27025   return 0;
27026 if (sizeof (ac__type_new_))
27027   return 0;
27028   ;
27029   return 0;
27030 }
27031 _ACEOF
27032 rm -f conftest.$ac_objext
27033 if { (ac_try="$ac_compile"
27034 case "(($ac_try" in
27035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036   *) ac_try_echo=$ac_try;;
27037 esac
27038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27039   (eval "$ac_compile") 2>conftest.er1
27040   ac_status=$?
27041   grep -v '^ *+' conftest.er1 >conftest.err
27042   rm -f conftest.er1
27043   cat conftest.err >&5
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); } && {
27046          test -z "$ac_c_werror_flag" ||
27047          test ! -s conftest.err
27048        } && test -s conftest.$ac_objext; then
27049   ac_cv_type_boolean=yes
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054         ac_cv_type_boolean=no
27055 fi
27056
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058 fi
27059 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27060 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27061 if test $ac_cv_type_boolean = yes; then
27062
27063 cat >>confdefs.h <<_ACEOF
27064 #define HAVE_BOOLEAN 1
27065 _ACEOF
27066
27067
27068                             { echo "$as_me:$LINENO: checking for boolean" >&5
27069 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27070 if test "${ac_cv_type_boolean+set}" = set; then
27071   echo $ECHO_N "(cached) $ECHO_C" >&6
27072 else
27073   cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h.  */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h.  */
27079
27080                                     #undef HAVE_BOOLEAN
27081                                     #include <stdio.h>
27082                                     #include <jpeglib.h>
27083
27084
27085 typedef boolean ac__type_new_;
27086 int
27087 main ()
27088 {
27089 if ((ac__type_new_ *) 0)
27090   return 0;
27091 if (sizeof (ac__type_new_))
27092   return 0;
27093   ;
27094   return 0;
27095 }
27096 _ACEOF
27097 rm -f conftest.$ac_objext
27098 if { (ac_try="$ac_compile"
27099 case "(($ac_try" in
27100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101   *) ac_try_echo=$ac_try;;
27102 esac
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104   (eval "$ac_compile") 2>conftest.er1
27105   ac_status=$?
27106   grep -v '^ *+' conftest.er1 >conftest.err
27107   rm -f conftest.er1
27108   cat conftest.err >&5
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); } && {
27111          test -z "$ac_c_werror_flag" ||
27112          test ! -s conftest.err
27113        } && test -s conftest.$ac_objext; then
27114   ac_cv_type_boolean=yes
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119         ac_cv_type_boolean=no
27120 fi
27121
27122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27123 fi
27124 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27125 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27126
27127 # The cast to long int works around a bug in the HP C Compiler
27128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27130 # This bug is HP SR number 8606223364.
27131 { echo "$as_me:$LINENO: checking size of boolean" >&5
27132 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27133 if test "${ac_cv_sizeof_boolean+set}" = set; then
27134   echo $ECHO_N "(cached) $ECHO_C" >&6
27135 else
27136   if test "$cross_compiling" = yes; then
27137   # Depending upon the size, compute the lo and hi bounds.
27138 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h.  */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h.  */
27144
27145                                     #undef HAVE_BOOLEAN
27146                                     #include <stdio.h>
27147                                     #include <jpeglib.h>
27148
27149
27150    typedef boolean ac__type_sizeof_;
27151 int
27152 main ()
27153 {
27154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27155 test_array [0] = 0
27156
27157   ;
27158   return 0;
27159 }
27160 _ACEOF
27161 rm -f conftest.$ac_objext
27162 if { (ac_try="$ac_compile"
27163 case "(($ac_try" in
27164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27165   *) ac_try_echo=$ac_try;;
27166 esac
27167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27168   (eval "$ac_compile") 2>conftest.er1
27169   ac_status=$?
27170   grep -v '^ *+' conftest.er1 >conftest.err
27171   rm -f conftest.er1
27172   cat conftest.err >&5
27173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174   (exit $ac_status); } && {
27175          test -z "$ac_c_werror_flag" ||
27176          test ! -s conftest.err
27177        } && test -s conftest.$ac_objext; then
27178   ac_lo=0 ac_mid=0
27179   while :; do
27180     cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186
27187                                     #undef HAVE_BOOLEAN
27188                                     #include <stdio.h>
27189                                     #include <jpeglib.h>
27190
27191
27192    typedef boolean ac__type_sizeof_;
27193 int
27194 main ()
27195 {
27196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27197 test_array [0] = 0
27198
27199   ;
27200   return 0;
27201 }
27202 _ACEOF
27203 rm -f conftest.$ac_objext
27204 if { (ac_try="$ac_compile"
27205 case "(($ac_try" in
27206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207   *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210   (eval "$ac_compile") 2>conftest.er1
27211   ac_status=$?
27212   grep -v '^ *+' conftest.er1 >conftest.err
27213   rm -f conftest.er1
27214   cat conftest.err >&5
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); } && {
27217          test -z "$ac_c_werror_flag" ||
27218          test ! -s conftest.err
27219        } && test -s conftest.$ac_objext; then
27220   ac_hi=$ac_mid; break
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225         ac_lo=`expr $ac_mid + 1`
27226                         if test $ac_lo -le $ac_mid; then
27227                           ac_lo= ac_hi=
27228                           break
27229                         fi
27230                         ac_mid=`expr 2 '*' $ac_mid + 1`
27231 fi
27232
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234   done
27235 else
27236   echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27238
27239         cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245
27246                                     #undef HAVE_BOOLEAN
27247                                     #include <stdio.h>
27248                                     #include <jpeglib.h>
27249
27250
27251    typedef boolean ac__type_sizeof_;
27252 int
27253 main ()
27254 {
27255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27256 test_array [0] = 0
27257
27258   ;
27259   return 0;
27260 }
27261 _ACEOF
27262 rm -f conftest.$ac_objext
27263 if { (ac_try="$ac_compile"
27264 case "(($ac_try" in
27265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27266   *) ac_try_echo=$ac_try;;
27267 esac
27268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27269   (eval "$ac_compile") 2>conftest.er1
27270   ac_status=$?
27271   grep -v '^ *+' conftest.er1 >conftest.err
27272   rm -f conftest.er1
27273   cat conftest.err >&5
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); } && {
27276          test -z "$ac_c_werror_flag" ||
27277          test ! -s conftest.err
27278        } && test -s conftest.$ac_objext; then
27279   ac_hi=-1 ac_mid=-1
27280   while :; do
27281     cat >conftest.$ac_ext <<_ACEOF
27282 /* confdefs.h.  */
27283 _ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h.  */
27287
27288                                     #undef HAVE_BOOLEAN
27289                                     #include <stdio.h>
27290                                     #include <jpeglib.h>
27291
27292
27293    typedef boolean ac__type_sizeof_;
27294 int
27295 main ()
27296 {
27297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27298 test_array [0] = 0
27299
27300   ;
27301   return 0;
27302 }
27303 _ACEOF
27304 rm -f conftest.$ac_objext
27305 if { (ac_try="$ac_compile"
27306 case "(($ac_try" in
27307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308   *) ac_try_echo=$ac_try;;
27309 esac
27310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311   (eval "$ac_compile") 2>conftest.er1
27312   ac_status=$?
27313   grep -v '^ *+' conftest.er1 >conftest.err
27314   rm -f conftest.er1
27315   cat conftest.err >&5
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); } && {
27318          test -z "$ac_c_werror_flag" ||
27319          test ! -s conftest.err
27320        } && test -s conftest.$ac_objext; then
27321   ac_lo=$ac_mid; break
27322 else
27323   echo "$as_me: failed program was:" >&5
27324 sed 's/^/| /' conftest.$ac_ext >&5
27325
27326         ac_hi=`expr '(' $ac_mid ')' - 1`
27327                         if test $ac_mid -le $ac_hi; then
27328                           ac_lo= ac_hi=
27329                           break
27330                         fi
27331                         ac_mid=`expr 2 '*' $ac_mid`
27332 fi
27333
27334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27335   done
27336 else
27337   echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27339
27340         ac_lo= ac_hi=
27341 fi
27342
27343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27344 fi
27345
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347 # Binary search between lo and hi bounds.
27348 while test "x$ac_lo" != "x$ac_hi"; do
27349   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27350   cat >conftest.$ac_ext <<_ACEOF
27351 /* confdefs.h.  */
27352 _ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h.  */
27356
27357                                     #undef HAVE_BOOLEAN
27358                                     #include <stdio.h>
27359                                     #include <jpeglib.h>
27360
27361
27362    typedef boolean ac__type_sizeof_;
27363 int
27364 main ()
27365 {
27366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27367 test_array [0] = 0
27368
27369   ;
27370   return 0;
27371 }
27372 _ACEOF
27373 rm -f conftest.$ac_objext
27374 if { (ac_try="$ac_compile"
27375 case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_compile") 2>conftest.er1
27381   ac_status=$?
27382   grep -v '^ *+' conftest.er1 >conftest.err
27383   rm -f conftest.er1
27384   cat conftest.err >&5
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); } && {
27387          test -z "$ac_c_werror_flag" ||
27388          test ! -s conftest.err
27389        } && test -s conftest.$ac_objext; then
27390   ac_hi=$ac_mid
27391 else
27392   echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395         ac_lo=`expr '(' $ac_mid ')' + 1`
27396 fi
27397
27398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27399 done
27400 case $ac_lo in
27401 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27402 '') if test "$ac_cv_type_boolean" = yes; then
27403      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27404 See \`config.log' for more details." >&5
27405 echo "$as_me: error: cannot compute sizeof (boolean)
27406 See \`config.log' for more details." >&2;}
27407    { (exit 77); exit 77; }; }
27408    else
27409      ac_cv_sizeof_boolean=0
27410    fi ;;
27411 esac
27412 else
27413   cat >conftest.$ac_ext <<_ACEOF
27414 /* confdefs.h.  */
27415 _ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h.  */
27419
27420                                     #undef HAVE_BOOLEAN
27421                                     #include <stdio.h>
27422                                     #include <jpeglib.h>
27423
27424
27425    typedef boolean ac__type_sizeof_;
27426 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27427 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27428 #include <stdio.h>
27429 #include <stdlib.h>
27430 int
27431 main ()
27432 {
27433
27434   FILE *f = fopen ("conftest.val", "w");
27435   if (! f)
27436     return 1;
27437   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27438     {
27439       long int i = longval ();
27440       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27441         return 1;
27442       fprintf (f, "%ld\n", i);
27443     }
27444   else
27445     {
27446       unsigned long int i = ulongval ();
27447       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27448         return 1;
27449       fprintf (f, "%lu\n", i);
27450     }
27451   return ferror (f) || fclose (f) != 0;
27452
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 rm -f conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_link") 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27468   { (case "(($ac_try" in
27469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470   *) ac_try_echo=$ac_try;;
27471 esac
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473   (eval "$ac_try") 2>&5
27474   ac_status=$?
27475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476   (exit $ac_status); }; }; then
27477   ac_cv_sizeof_boolean=`cat conftest.val`
27478 else
27479   echo "$as_me: program exited with status $ac_status" >&5
27480 echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27482
27483 ( exit $ac_status )
27484 if test "$ac_cv_type_boolean" = yes; then
27485      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27486 See \`config.log' for more details." >&5
27487 echo "$as_me: error: cannot compute sizeof (boolean)
27488 See \`config.log' for more details." >&2;}
27489    { (exit 77); exit 77; }; }
27490    else
27491      ac_cv_sizeof_boolean=0
27492    fi
27493 fi
27494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27495 fi
27496 rm -f conftest.val
27497 fi
27498 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27499 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27500
27501
27502
27503 cat >>confdefs.h <<_ACEOF
27504 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27505 _ACEOF
27506
27507
27508                             cat >>confdefs.h <<_ACEOF
27509 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27510 _ACEOF
27511
27512
27513 fi
27514
27515                 fi
27516             fi
27517         fi
27518     fi
27519 fi
27520
27521
27522 TIFF_LINK=
27523 TIFF_PREREQ_LINKS=-lm
27524 if test "$wxUSE_LIBTIFF" != "no" ; then
27525     cat >>confdefs.h <<\_ACEOF
27526 #define wxUSE_LIBTIFF 1
27527 _ACEOF
27528
27529
27530     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27531                         if test "$wxUSE_LIBJPEG" = "sys"; then
27532             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27533         fi
27534         if test "$wxUSE_ZLIB" = "sys"; then
27535             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27536         fi
27537         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27538 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27539 if test "${ac_cv_header_tiffio_h+set}" = set; then
27540   echo $ECHO_N "(cached) $ECHO_C" >&6
27541 else
27542   cat >conftest.$ac_ext <<_ACEOF
27543 /* confdefs.h.  */
27544 _ACEOF
27545 cat confdefs.h >>conftest.$ac_ext
27546 cat >>conftest.$ac_ext <<_ACEOF
27547 /* end confdefs.h.  */
27548
27549
27550
27551 #include <tiffio.h>
27552 _ACEOF
27553 rm -f conftest.$ac_objext
27554 if { (ac_try="$ac_compile"
27555 case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560   (eval "$ac_compile") 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } && {
27567          test -z "$ac_c_werror_flag" ||
27568          test ! -s conftest.err
27569        } && test -s conftest.$ac_objext; then
27570   ac_cv_header_tiffio_h=yes
27571 else
27572   echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27574
27575         ac_cv_header_tiffio_h=no
27576 fi
27577
27578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579 fi
27580 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27581 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27582 if test $ac_cv_header_tiffio_h = yes; then
27583
27584                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27585 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27586 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27587   echo $ECHO_N "(cached) $ECHO_C" >&6
27588 else
27589   ac_check_lib_save_LIBS=$LIBS
27590 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27591 cat >conftest.$ac_ext <<_ACEOF
27592 /* confdefs.h.  */
27593 _ACEOF
27594 cat confdefs.h >>conftest.$ac_ext
27595 cat >>conftest.$ac_ext <<_ACEOF
27596 /* end confdefs.h.  */
27597
27598 /* Override any GCC internal prototype to avoid an error.
27599    Use char because int might match the return type of a GCC
27600    builtin and then its argument prototype would still apply.  */
27601 #ifdef __cplusplus
27602 extern "C"
27603 #endif
27604 char TIFFError ();
27605 int
27606 main ()
27607 {
27608 return TIFFError ();
27609   ;
27610   return 0;
27611 }
27612 _ACEOF
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620   (eval "$ac_link") 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } && {
27627          test -z "$ac_c_werror_flag" ||
27628          test ! -s conftest.err
27629        } && test -s conftest$ac_exeext &&
27630        $as_test_x conftest$ac_exeext; then
27631   ac_cv_lib_tiff_TIFFError=yes
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636         ac_cv_lib_tiff_TIFFError=no
27637 fi
27638
27639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27640       conftest$ac_exeext conftest.$ac_ext
27641 LIBS=$ac_check_lib_save_LIBS
27642 fi
27643 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27644 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27645 if test $ac_cv_lib_tiff_TIFFError = yes; then
27646   TIFF_LINK=" -ltiff"
27647 fi
27648
27649
27650 fi
27651
27652
27653
27654         if test "x$TIFF_LINK" = "x" ; then
27655             if test "$wxUSE_LIBTIFF" = "sys" ; then
27656                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27657 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27658    { (exit 1); exit 1; }; }
27659             else
27660                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27661 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27662                 wxUSE_LIBTIFF=builtin
27663             fi
27664         else
27665                         wxUSE_LIBTIFF=sys
27666         fi
27667     fi
27668     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27669         if test "$wxUSE_LIBJPEG" = "no"; then
27670                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27671         fi
27672         subdirs="$subdirs src/tiff"
27673
27674     fi
27675 fi
27676
27677
27678 if test "$wxUSE_WCHAR_T" != "yes"; then
27679     if test "$wxUSE_EXPAT" != "no"; then
27680         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27681 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27682         wxUSE_EXPAT=no
27683     fi
27684     if test "$wxUSE_XML" != "no"; then
27685         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27686 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27687         wxUSE_XML=no
27688     fi
27689 fi
27690
27691 if test "$wxUSE_EXPAT" != "no"; then
27692     wxUSE_XML=yes
27693     cat >>confdefs.h <<\_ACEOF
27694 #define wxUSE_EXPAT 1
27695 _ACEOF
27696
27697     cat >>confdefs.h <<\_ACEOF
27698 #define wxUSE_XML 1
27699 _ACEOF
27700
27701
27702     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27703         { echo "$as_me:$LINENO: checking for expat.h" >&5
27704 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27705 if test "${ac_cv_header_expat_h+set}" = set; then
27706   echo $ECHO_N "(cached) $ECHO_C" >&6
27707 else
27708   cat >conftest.$ac_ext <<_ACEOF
27709 /* confdefs.h.  */
27710 _ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h.  */
27714
27715
27716 #include <expat.h>
27717 _ACEOF
27718 rm -f conftest.$ac_objext
27719 if { (ac_try="$ac_compile"
27720 case "(($ac_try" in
27721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722   *) ac_try_echo=$ac_try;;
27723 esac
27724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725   (eval "$ac_compile") 2>conftest.er1
27726   ac_status=$?
27727   grep -v '^ *+' conftest.er1 >conftest.err
27728   rm -f conftest.er1
27729   cat conftest.err >&5
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); } && {
27732          test -z "$ac_c_werror_flag" ||
27733          test ! -s conftest.err
27734        } && test -s conftest.$ac_objext; then
27735   ac_cv_header_expat_h=yes
27736 else
27737   echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27739
27740         ac_cv_header_expat_h=no
27741 fi
27742
27743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27744 fi
27745 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27746 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27747 if test $ac_cv_header_expat_h = yes; then
27748   found_expat_h=1
27749 fi
27750
27751
27752         if test "x$found_expat_h" = "x1"; then
27753                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27754 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27755 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27756   echo $ECHO_N "(cached) $ECHO_C" >&6
27757 else
27758
27759                 ac_ext=cpp
27760 ac_cpp='$CXXCPP $CPPFLAGS'
27761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27764
27765                 cat >conftest.$ac_ext <<_ACEOF
27766 /* confdefs.h.  */
27767 _ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h.  */
27771 #include <expat.h>
27772 int
27773 main ()
27774 {
27775
27776   ;
27777   return 0;
27778 }
27779 _ACEOF
27780 rm -f conftest.$ac_objext
27781 if { (ac_try="$ac_compile"
27782 case "(($ac_try" in
27783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784   *) ac_try_echo=$ac_try;;
27785 esac
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787   (eval "$ac_compile") 2>conftest.er1
27788   ac_status=$?
27789   grep -v '^ *+' conftest.er1 >conftest.err
27790   rm -f conftest.er1
27791   cat conftest.err >&5
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); } && {
27794          test -z "$ac_cxx_werror_flag" ||
27795          test ! -s conftest.err
27796        } && test -s conftest.$ac_objext; then
27797   wx_cv_expat_is_not_broken=yes
27798 else
27799   echo "$as_me: failed program was:" >&5
27800 sed 's/^/| /' conftest.$ac_ext >&5
27801
27802         wx_cv_expat_is_not_broken=no
27803
27804 fi
27805
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27807                 ac_ext=c
27808 ac_cpp='$CPP $CPPFLAGS'
27809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27812
27813
27814
27815 fi
27816 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27817 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27818             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27819                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27820 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27821 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27822   echo $ECHO_N "(cached) $ECHO_C" >&6
27823 else
27824   ac_check_lib_save_LIBS=$LIBS
27825 LIBS="-lexpat  $LIBS"
27826 cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h.  */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h.  */
27832
27833 /* Override any GCC internal prototype to avoid an error.
27834    Use char because int might match the return type of a GCC
27835    builtin and then its argument prototype would still apply.  */
27836 #ifdef __cplusplus
27837 extern "C"
27838 #endif
27839 char XML_ParserCreate ();
27840 int
27841 main ()
27842 {
27843 return XML_ParserCreate ();
27844   ;
27845   return 0;
27846 }
27847 _ACEOF
27848 rm -f conftest.$ac_objext conftest$ac_exeext
27849 if { (ac_try="$ac_link"
27850 case "(($ac_try" in
27851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852   *) ac_try_echo=$ac_try;;
27853 esac
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855   (eval "$ac_link") 2>conftest.er1
27856   ac_status=$?
27857   grep -v '^ *+' conftest.er1 >conftest.err
27858   rm -f conftest.er1
27859   cat conftest.err >&5
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); } && {
27862          test -z "$ac_c_werror_flag" ||
27863          test ! -s conftest.err
27864        } && test -s conftest$ac_exeext &&
27865        $as_test_x conftest$ac_exeext; then
27866   ac_cv_lib_expat_XML_ParserCreate=yes
27867 else
27868   echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27870
27871         ac_cv_lib_expat_XML_ParserCreate=no
27872 fi
27873
27874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27875       conftest$ac_exeext conftest.$ac_ext
27876 LIBS=$ac_check_lib_save_LIBS
27877 fi
27878 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27879 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27880 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27881   EXPAT_LINK=" -lexpat"
27882 fi
27883
27884             fi
27885         fi
27886         if test "x$EXPAT_LINK" = "x" ; then
27887             if test "$wxUSE_EXPAT" = "sys" ; then
27888                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27889 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27890    { (exit 1); exit 1; }; }
27891             else
27892                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27893 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27894                 wxUSE_EXPAT=builtin
27895             fi
27896         else
27897                         wxUSE_EXPAT=sys
27898         fi
27899     fi
27900     if test "$wxUSE_EXPAT" = "builtin" ; then
27901                 subdirs="$subdirs src/expat"
27902
27903     fi
27904 fi
27905
27906
27907
27908 if test "$wxUSE_LIBMSPACK" != "no"; then
27909     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27910 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27911 if test "${ac_cv_header_mspack_h+set}" = set; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914   cat >conftest.$ac_ext <<_ACEOF
27915 /* confdefs.h.  */
27916 _ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h.  */
27920
27921
27922 #include <mspack.h>
27923 _ACEOF
27924 rm -f conftest.$ac_objext
27925 if { (ac_try="$ac_compile"
27926 case "(($ac_try" in
27927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928   *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931   (eval "$ac_compile") 2>conftest.er1
27932   ac_status=$?
27933   grep -v '^ *+' conftest.er1 >conftest.err
27934   rm -f conftest.er1
27935   cat conftest.err >&5
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } && {
27938          test -z "$ac_c_werror_flag" ||
27939          test ! -s conftest.err
27940        } && test -s conftest.$ac_objext; then
27941   ac_cv_header_mspack_h=yes
27942 else
27943   echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.$ac_ext >&5
27945
27946         ac_cv_header_mspack_h=no
27947 fi
27948
27949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27950 fi
27951 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27952 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27953 if test $ac_cv_header_mspack_h = yes; then
27954   found_mspack_h=1
27955 fi
27956
27957
27958     if test "x$found_mspack_h" = "x1"; then
27959         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27960 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27961 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27962   echo $ECHO_N "(cached) $ECHO_C" >&6
27963 else
27964   ac_check_lib_save_LIBS=$LIBS
27965 LIBS="-lmspack  $LIBS"
27966 cat >conftest.$ac_ext <<_ACEOF
27967 /* confdefs.h.  */
27968 _ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h.  */
27972
27973 /* Override any GCC internal prototype to avoid an error.
27974    Use char because int might match the return type of a GCC
27975    builtin and then its argument prototype would still apply.  */
27976 #ifdef __cplusplus
27977 extern "C"
27978 #endif
27979 char mspack_create_chm_decompressor ();
27980 int
27981 main ()
27982 {
27983 return mspack_create_chm_decompressor ();
27984   ;
27985   return 0;
27986 }
27987 _ACEOF
27988 rm -f conftest.$ac_objext conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992   *) ac_try_echo=$ac_try;;
27993 esac
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995   (eval "$ac_link") 2>conftest.er1
27996   ac_status=$?
27997   grep -v '^ *+' conftest.er1 >conftest.err
27998   rm -f conftest.er1
27999   cat conftest.err >&5
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); } && {
28002          test -z "$ac_c_werror_flag" ||
28003          test ! -s conftest.err
28004        } && test -s conftest$ac_exeext &&
28005        $as_test_x conftest$ac_exeext; then
28006   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28007 else
28008   echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28010
28011         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28012 fi
28013
28014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28015       conftest$ac_exeext conftest.$ac_ext
28016 LIBS=$ac_check_lib_save_LIBS
28017 fi
28018 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28019 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28020 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28021   MSPACK_LINK=" -lmspack"
28022 fi
28023
28024     fi
28025     if test "x$MSPACK_LINK" = "x" ; then
28026         wxUSE_LIBMSPACK=no
28027     fi
28028 fi
28029
28030 if test "$wxUSE_LIBMSPACK" != "no"; then
28031     cat >>confdefs.h <<\_ACEOF
28032 #define wxUSE_LIBMSPACK 1
28033 _ACEOF
28034
28035 fi
28036
28037
28038
28039 AFMINSTALL=
28040 WIN32INSTALL=
28041
28042 TOOLKIT=
28043 TOOLKIT_INCLUDE=
28044 WIDGET_SET=
28045
28046 if test "$USE_WIN32" = 1 ; then
28047
28048 for ac_header in w32api.h
28049 do
28050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28054   echo $ECHO_N "(cached) $ECHO_C" >&6
28055 else
28056   cat >conftest.$ac_ext <<_ACEOF
28057 /* confdefs.h.  */
28058 _ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h.  */
28062
28063
28064 #include <$ac_header>
28065 _ACEOF
28066 rm -f conftest.$ac_objext
28067 if { (ac_try="$ac_compile"
28068 case "(($ac_try" in
28069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070   *) ac_try_echo=$ac_try;;
28071 esac
28072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073   (eval "$ac_compile") 2>conftest.er1
28074   ac_status=$?
28075   grep -v '^ *+' conftest.er1 >conftest.err
28076   rm -f conftest.er1
28077   cat conftest.err >&5
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); } && {
28080          test -z "$ac_c_werror_flag" ||
28081          test ! -s conftest.err
28082        } && test -s conftest.$ac_objext; then
28083   eval "$as_ac_Header=yes"
28084 else
28085   echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28087
28088         eval "$as_ac_Header=no"
28089 fi
28090
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28092 fi
28093 ac_res=`eval echo '${'$as_ac_Header'}'`
28094                { echo "$as_me:$LINENO: result: $ac_res" >&5
28095 echo "${ECHO_T}$ac_res" >&6; }
28096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28097   cat >>confdefs.h <<_ACEOF
28098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28099 _ACEOF
28100
28101 fi
28102
28103 done
28104
28105     { echo "$as_me:$LINENO: checking for windows.h" >&5
28106 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28107 if test "${ac_cv_header_windows_h+set}" = set; then
28108   echo $ECHO_N "(cached) $ECHO_C" >&6
28109 else
28110   cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h.  */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h.  */
28116
28117
28118 #include <windows.h>
28119 _ACEOF
28120 rm -f conftest.$ac_objext
28121 if { (ac_try="$ac_compile"
28122 case "(($ac_try" in
28123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124   *) ac_try_echo=$ac_try;;
28125 esac
28126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28127   (eval "$ac_compile") 2>conftest.er1
28128   ac_status=$?
28129   grep -v '^ *+' conftest.er1 >conftest.err
28130   rm -f conftest.er1
28131   cat conftest.err >&5
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); } && {
28134          test -z "$ac_c_werror_flag" ||
28135          test ! -s conftest.err
28136        } && test -s conftest.$ac_objext; then
28137   ac_cv_header_windows_h=yes
28138 else
28139   echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28141
28142         ac_cv_header_windows_h=no
28143 fi
28144
28145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28146 fi
28147 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28148 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28149 if test $ac_cv_header_windows_h = yes; then
28150   :
28151 else
28152
28153         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28154 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28155    { (exit 1); exit 1; }; }
28156
28157 fi
28158
28159
28160
28161             case "${host}" in
28162         x86_64-*-mingw32* )
28163                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28164         ;;
28165         * )
28166             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28167         ;;
28168     esac
28169     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28170         LIBS="$LIBS -loleacc"
28171     fi
28172
28173     case "${host}" in
28174         *-*-cygwin* )
28175                         LIBS="$LIBS -lkernel32 -luser32"
28176     esac
28177
28178         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28179     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28180
28181                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28182
28183         WIN32INSTALL=win32install
28184
28185         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28186 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28187 if test "${ac_cv_header_pbt_h+set}" = set; then
28188   echo $ECHO_N "(cached) $ECHO_C" >&6
28189 else
28190   cat >conftest.$ac_ext <<_ACEOF
28191 /* confdefs.h.  */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h.  */
28196
28197
28198 #include <pbt.h>
28199 _ACEOF
28200 rm -f conftest.$ac_objext
28201 if { (ac_try="$ac_compile"
28202 case "(($ac_try" in
28203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204   *) ac_try_echo=$ac_try;;
28205 esac
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207   (eval "$ac_compile") 2>conftest.er1
28208   ac_status=$?
28209   grep -v '^ *+' conftest.er1 >conftest.err
28210   rm -f conftest.er1
28211   cat conftest.err >&5
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); } && {
28214          test -z "$ac_c_werror_flag" ||
28215          test ! -s conftest.err
28216        } && test -s conftest.$ac_objext; then
28217   ac_cv_header_pbt_h=yes
28218 else
28219   echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28221
28222         ac_cv_header_pbt_h=no
28223 fi
28224
28225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28226 fi
28227 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28228 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28229 if test $ac_cv_header_pbt_h = yes; then
28230   :
28231 else
28232   cat >>confdefs.h <<\_ACEOF
28233 #define NEED_PBT_H 1
28234 _ACEOF
28235
28236 fi
28237
28238
28239 fi
28240
28241 if test "$wxUSE_GUI" = "yes"; then
28242     USE_GUI=1
28243
28244     GUI_TK_LIBRARY=
28245
28246     WXGTK12=
28247     WXGTK127=
28248     WXGTK2=
28249     WXGPE=
28250
28251     if test "$wxUSE_COCOA" = 1 ; then
28252         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28253             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28254 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28255             wxUSE_PRINTING_ARCHITECTURE=no
28256         fi
28257         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28258             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28259 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28260             wxUSE_DRAG_AND_DROP=no
28261         fi
28262         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28263             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28264 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28265             wxUSE_DRAGIMAGE=no
28266         fi
28267     fi
28268
28269     if test "$wxUSE_MSW" = 1 ; then
28270         TOOLKIT=MSW
28271         GUIDIST=MSW_DIST
28272
28273                 case "${host}" in
28274             *-*-mingw32* )
28275                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28276         esac
28277     fi
28278
28279     if test "$wxUSE_GTK" = 1; then
28280                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28281 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28282
28283         gtk_version_cached=1
28284         if test "${wx_cv_lib_gtk+set}" = set; then
28285   echo $ECHO_N "(cached) $ECHO_C" >&6
28286 else
28287
28288                                                 gtk_version_cached=0
28289                 { echo "$as_me:$LINENO: result: " >&5
28290 echo "${ECHO_T}" >&6; }
28291
28292                                                 GTK_MODULES=
28293                 if test "$wxUSE_THREADS" = "yes"; then
28294                     GTK_MODULES=gthread
28295                 fi
28296
28297                                 wx_cv_lib_gtk=
28298                 if test "x$wxGTK_VERSION" != "x1"
28299                 then
28300                                                                                 case "${host}" in
28301                         *-*-solaris2* )
28302                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28303                                 enable_gtktest=no
28304                             fi
28305                     esac
28306
28307                     # Check whether --enable-gtktest was given.
28308 if test "${enable_gtktest+set}" = set; then
28309   enableval=$enable_gtktest;
28310 else
28311   enable_gtktest=yes
28312 fi
28313
28314
28315   pkg_config_args=gtk+-2.0
28316   for module in . $GTK_MODULES
28317   do
28318       case "$module" in
28319          gthread)
28320              pkg_config_args="$pkg_config_args gthread-2.0"
28321          ;;
28322       esac
28323   done
28324
28325   no_gtk=""
28326
28327   # Extract the first word of "pkg-config", so it can be a program name with args.
28328 set dummy pkg-config; ac_word=$2
28329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28331 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28332   echo $ECHO_N "(cached) $ECHO_C" >&6
28333 else
28334   case $PKG_CONFIG in
28335   [\\/]* | ?:[\\/]*)
28336   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28337   ;;
28338   *)
28339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28340 for as_dir in $PATH
28341 do
28342   IFS=$as_save_IFS
28343   test -z "$as_dir" && as_dir=.
28344   for ac_exec_ext in '' $ac_executable_extensions; do
28345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28346     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28348     break 2
28349   fi
28350 done
28351 done
28352 IFS=$as_save_IFS
28353
28354   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28355   ;;
28356 esac
28357 fi
28358 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28359 if test -n "$PKG_CONFIG"; then
28360   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28361 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28362 else
28363   { echo "$as_me:$LINENO: result: no" >&5
28364 echo "${ECHO_T}no" >&6; }
28365 fi
28366
28367
28368
28369   if test x$PKG_CONFIG != xno ; then
28370     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28371       :
28372     else
28373       echo "*** pkg-config too old; version 0.7 or better required."
28374       no_gtk=yes
28375       PKG_CONFIG=no
28376     fi
28377   else
28378     no_gtk=yes
28379   fi
28380
28381   min_gtk_version=2.4.0
28382   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28383 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28384
28385   if test x$PKG_CONFIG != xno ; then
28386     ## don't try to run the test against uninstalled libtool libs
28387     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28388           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28389           enable_gtktest=no
28390     fi
28391
28392     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28393           :
28394     else
28395           no_gtk=yes
28396     fi
28397   fi
28398
28399   if test x"$no_gtk" = x ; then
28400     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28401     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28402     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28403            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28404     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28405            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28406     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28407            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28408     if test "x$enable_gtktest" = "xyes" ; then
28409       ac_save_CFLAGS="$CFLAGS"
28410       ac_save_LIBS="$LIBS"
28411       CFLAGS="$CFLAGS $GTK_CFLAGS"
28412       LIBS="$GTK_LIBS $LIBS"
28413       rm -f conf.gtktest
28414       if test "$cross_compiling" = yes; then
28415   echo $ac_n "cross compiling; assumed OK... $ac_c"
28416 else
28417   cat >conftest.$ac_ext <<_ACEOF
28418 /* confdefs.h.  */
28419 _ACEOF
28420 cat confdefs.h >>conftest.$ac_ext
28421 cat >>conftest.$ac_ext <<_ACEOF
28422 /* end confdefs.h.  */
28423
28424 #include <gtk/gtk.h>
28425 #include <stdio.h>
28426 #include <stdlib.h>
28427
28428 int
28429 main ()
28430 {
28431   int major, minor, micro;
28432   char *tmp_version;
28433
28434   system ("touch conf.gtktest");
28435
28436   /* HP/UX 9 (%@#!) writes to sscanf strings */
28437   tmp_version = g_strdup("$min_gtk_version");
28438   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28439      printf("%s, bad version string\n", "$min_gtk_version");
28440      exit(1);
28441    }
28442
28443   if ((gtk_major_version != $gtk_config_major_version) ||
28444       (gtk_minor_version != $gtk_config_minor_version) ||
28445       (gtk_micro_version != $gtk_config_micro_version))
28446     {
28447       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28448              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28449              gtk_major_version, gtk_minor_version, gtk_micro_version);
28450       printf ("*** was found! If pkg-config was correct, then it is best\n");
28451       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28452       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28453       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28454       printf("*** required on your system.\n");
28455       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28456       printf("*** to point to the correct configuration files\n");
28457     }
28458   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28459            (gtk_minor_version != GTK_MINOR_VERSION) ||
28460            (gtk_micro_version != GTK_MICRO_VERSION))
28461     {
28462       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28463              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28464       printf("*** library (version %d.%d.%d)\n",
28465              gtk_major_version, gtk_minor_version, gtk_micro_version);
28466     }
28467   else
28468     {
28469       if ((gtk_major_version > major) ||
28470         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28471         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28472       {
28473         return 0;
28474        }
28475      else
28476       {
28477         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28478                gtk_major_version, gtk_minor_version, gtk_micro_version);
28479         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28480                major, minor, micro);
28481         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28482         printf("***\n");
28483         printf("*** If you have already installed a sufficiently new version, this error\n");
28484         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28485         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28486         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28487         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28488         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28489         printf("*** so that the correct libraries are found at run-time))\n");
28490       }
28491     }
28492   return 1;
28493 }
28494
28495 _ACEOF
28496 rm -f conftest$ac_exeext
28497 if { (ac_try="$ac_link"
28498 case "(($ac_try" in
28499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500   *) ac_try_echo=$ac_try;;
28501 esac
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503   (eval "$ac_link") 2>&5
28504   ac_status=$?
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28507   { (case "(($ac_try" in
28508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28509   *) ac_try_echo=$ac_try;;
28510 esac
28511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512   (eval "$ac_try") 2>&5
28513   ac_status=$?
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); }; }; then
28516   :
28517 else
28518   echo "$as_me: program exited with status $ac_status" >&5
28519 echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28521
28522 ( exit $ac_status )
28523 no_gtk=yes
28524 fi
28525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28526 fi
28527
28528
28529        CFLAGS="$ac_save_CFLAGS"
28530        LIBS="$ac_save_LIBS"
28531      fi
28532   fi
28533   if test "x$no_gtk" = x ; then
28534      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28535 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28536      wx_cv_lib_gtk=2.0
28537   else
28538      { echo "$as_me:$LINENO: result: no" >&5
28539 echo "${ECHO_T}no" >&6; }
28540      if test "$PKG_CONFIG" = "no" ; then
28541        echo "*** A new enough version of pkg-config was not found."
28542        echo "*** See http://pkgconfig.sourceforge.net"
28543      else
28544        if test -f conf.gtktest ; then
28545         :
28546        else
28547           echo "*** Could not run GTK+ test program, checking why..."
28548           ac_save_CFLAGS="$CFLAGS"
28549           ac_save_LIBS="$LIBS"
28550           CFLAGS="$CFLAGS $GTK_CFLAGS"
28551           LIBS="$LIBS $GTK_LIBS"
28552           cat >conftest.$ac_ext <<_ACEOF
28553 /* confdefs.h.  */
28554 _ACEOF
28555 cat confdefs.h >>conftest.$ac_ext
28556 cat >>conftest.$ac_ext <<_ACEOF
28557 /* end confdefs.h.  */
28558
28559 #include <gtk/gtk.h>
28560 #include <stdio.h>
28561
28562 int
28563 main ()
28564 {
28565  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28566   ;
28567   return 0;
28568 }
28569 _ACEOF
28570 rm -f conftest.$ac_objext conftest$ac_exeext
28571 if { (ac_try="$ac_link"
28572 case "(($ac_try" in
28573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574   *) ac_try_echo=$ac_try;;
28575 esac
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577   (eval "$ac_link") 2>conftest.er1
28578   ac_status=$?
28579   grep -v '^ *+' conftest.er1 >conftest.err
28580   rm -f conftest.er1
28581   cat conftest.err >&5
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); } && {
28584          test -z "$ac_c_werror_flag" ||
28585          test ! -s conftest.err
28586        } && test -s conftest$ac_exeext &&
28587        $as_test_x conftest$ac_exeext; then
28588    echo "*** The test program compiled, but did not run. This usually means"
28589           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28590           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28591           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28592           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28593           echo "*** is required on your system"
28594           echo "***"
28595           echo "*** If you have an old version installed, it is best to remove it, although"
28596           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28597 else
28598   echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28600
28601          echo "*** The test program failed to compile or link. See the file config.log for the"
28602           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28603 fi
28604
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28606       conftest$ac_exeext conftest.$ac_ext
28607           CFLAGS="$ac_save_CFLAGS"
28608           LIBS="$ac_save_LIBS"
28609        fi
28610      fi
28611      GTK_CFLAGS=""
28612      GTK_LIBS=""
28613      :
28614   fi
28615
28616
28617   rm -f conf.gtktest
28618
28619
28620                                         case "${host}" in
28621                         *-*-solaris2* )
28622                             if test "$wxUSE_SHARED" != "yes"; then
28623                                 GTK_LIBS="$GTK_LIBS -lX11"
28624                             fi
28625                     esac
28626                 fi
28627
28628                                 if test -z "$wx_cv_lib_gtk"; then
28629                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28630
28631 # Check whether --with-gtk-prefix was given.
28632 if test "${with_gtk_prefix+set}" = set; then
28633   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28634 else
28635   gtk_config_prefix=""
28636 fi
28637
28638
28639 # Check whether --with-gtk-exec-prefix was given.
28640 if test "${with_gtk_exec_prefix+set}" = set; then
28641   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28642 else
28643   gtk_config_exec_prefix=""
28644 fi
28645
28646 # Check whether --enable-gtktest was given.
28647 if test "${enable_gtktest+set}" = set; then
28648   enableval=$enable_gtktest;
28649 else
28650   enable_gtktest=yes
28651 fi
28652
28653
28654   for module in . $GTK_MODULES
28655   do
28656       case "$module" in
28657          gthread)
28658              gtk_config_args="$gtk_config_args gthread"
28659          ;;
28660       esac
28661   done
28662
28663   if test x$gtk_config_exec_prefix != x ; then
28664      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28665      if test x${GTK_CONFIG+set} != xset ; then
28666         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28667      fi
28668   fi
28669   if test x$gtk_config_prefix != x ; then
28670      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28671      if test x${GTK_CONFIG+set} != xset ; then
28672         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28673      fi
28674   fi
28675
28676   # Extract the first word of "gtk-config", so it can be a program name with args.
28677 set dummy gtk-config; ac_word=$2
28678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28680 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28681   echo $ECHO_N "(cached) $ECHO_C" >&6
28682 else
28683   case $GTK_CONFIG in
28684   [\\/]* | ?:[\\/]*)
28685   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28686   ;;
28687   *)
28688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28689 for as_dir in $PATH
28690 do
28691   IFS=$as_save_IFS
28692   test -z "$as_dir" && as_dir=.
28693   for ac_exec_ext in '' $ac_executable_extensions; do
28694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28695     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28697     break 2
28698   fi
28699 done
28700 done
28701 IFS=$as_save_IFS
28702
28703   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28704   ;;
28705 esac
28706 fi
28707 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28708 if test -n "$GTK_CONFIG"; then
28709   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28710 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28711 else
28712   { echo "$as_me:$LINENO: result: no" >&5
28713 echo "${ECHO_T}no" >&6; }
28714 fi
28715
28716
28717   min_gtk_version=1.2.7
28718   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28719 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28720   no_gtk=""
28721   if test "$GTK_CONFIG" = "no" ; then
28722     no_gtk=yes
28723   else
28724     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28725     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28726     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28727            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28728     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28729            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28730     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28731            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28732     if test "x$enable_gtktest" = "xyes" ; then
28733       ac_save_CFLAGS="$CFLAGS"
28734       ac_save_LIBS="$LIBS"
28735       CFLAGS="$CFLAGS $GTK_CFLAGS"
28736       LIBS="$GTK_LIBS $LIBS"
28737       rm -f conf.gtktest
28738       if test "$cross_compiling" = yes; then
28739   echo $ac_n "cross compiling; assumed OK... $ac_c"
28740 else
28741   cat >conftest.$ac_ext <<_ACEOF
28742 /* confdefs.h.  */
28743 _ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h.  */
28747
28748 #include <gtk/gtk.h>
28749 #include <stdio.h>
28750 #include <stdlib.h>
28751
28752 int
28753 main ()
28754 {
28755   int major, minor, micro;
28756   char *tmp_version;
28757
28758   system ("touch conf.gtktest");
28759
28760   /* HP/UX 9 (%@#!) writes to sscanf strings */
28761   tmp_version = g_strdup("$min_gtk_version");
28762   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28763      printf("%s, bad version string\n", "$min_gtk_version");
28764      exit(1);
28765    }
28766
28767   if ((gtk_major_version != $gtk_config_major_version) ||
28768       (gtk_minor_version != $gtk_config_minor_version) ||
28769       (gtk_micro_version != $gtk_config_micro_version))
28770     {
28771       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28772              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28773              gtk_major_version, gtk_minor_version, gtk_micro_version);
28774       printf ("*** was found! If gtk-config was correct, then it is best\n");
28775       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28776       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28777       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28778       printf("*** required on your system.\n");
28779       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28780       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28781       printf("*** before re-running configure\n");
28782     }
28783 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28784   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28785            (gtk_minor_version != GTK_MINOR_VERSION) ||
28786            (gtk_micro_version != GTK_MICRO_VERSION))
28787     {
28788       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28789              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28790       printf("*** library (version %d.%d.%d)\n",
28791              gtk_major_version, gtk_minor_version, gtk_micro_version);
28792     }
28793 #endif /* defined (GTK_MAJOR_VERSION) ... */
28794   else
28795     {
28796       if ((gtk_major_version > major) ||
28797         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28798         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28799       {
28800         return 0;
28801        }
28802      else
28803       {
28804         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28805                gtk_major_version, gtk_minor_version, gtk_micro_version);
28806         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28807                major, minor, micro);
28808         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28809         printf("***\n");
28810         printf("*** If you have already installed a sufficiently new version, this error\n");
28811         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28812         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28813         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28814         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28815         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28816         printf("*** so that the correct libraries are found at run-time))\n");
28817       }
28818     }
28819   return 1;
28820 }
28821
28822 _ACEOF
28823 rm -f conftest$ac_exeext
28824 if { (ac_try="$ac_link"
28825 case "(($ac_try" in
28826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827   *) ac_try_echo=$ac_try;;
28828 esac
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830   (eval "$ac_link") 2>&5
28831   ac_status=$?
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28834   { (case "(($ac_try" in
28835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836   *) ac_try_echo=$ac_try;;
28837 esac
28838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839   (eval "$ac_try") 2>&5
28840   ac_status=$?
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); }; }; then
28843   :
28844 else
28845   echo "$as_me: program exited with status $ac_status" >&5
28846 echo "$as_me: failed program was:" >&5
28847 sed 's/^/| /' conftest.$ac_ext >&5
28848
28849 ( exit $ac_status )
28850 no_gtk=yes
28851 fi
28852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28853 fi
28854
28855
28856        CFLAGS="$ac_save_CFLAGS"
28857        LIBS="$ac_save_LIBS"
28858      fi
28859   fi
28860   if test "x$no_gtk" = x ; then
28861      { echo "$as_me:$LINENO: result: yes" >&5
28862 echo "${ECHO_T}yes" >&6; }
28863      wx_cv_lib_gtk=1.2.7
28864   else
28865      { echo "$as_me:$LINENO: result: no" >&5
28866 echo "${ECHO_T}no" >&6; }
28867      if test "$GTK_CONFIG" = "no" ; then
28868        echo "*** The gtk-config script installed by GTK could not be found"
28869        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28870        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28871        echo "*** full path to gtk-config."
28872      else
28873        if test -f conf.gtktest ; then
28874         :
28875        else
28876           echo "*** Could not run GTK test program, checking why..."
28877           CFLAGS="$CFLAGS $GTK_CFLAGS"
28878           LIBS="$LIBS $GTK_LIBS"
28879           cat >conftest.$ac_ext <<_ACEOF
28880 /* confdefs.h.  */
28881 _ACEOF
28882 cat confdefs.h >>conftest.$ac_ext
28883 cat >>conftest.$ac_ext <<_ACEOF
28884 /* end confdefs.h.  */
28885
28886 #include <gtk/gtk.h>
28887 #include <stdio.h>
28888
28889 int
28890 main ()
28891 {
28892  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (ac_try="$ac_link"
28899 case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_link") 2>conftest.er1
28905   ac_status=$?
28906   grep -v '^ *+' conftest.er1 >conftest.err
28907   rm -f conftest.er1
28908   cat conftest.err >&5
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); } && {
28911          test -z "$ac_c_werror_flag" ||
28912          test ! -s conftest.err
28913        } && test -s conftest$ac_exeext &&
28914        $as_test_x conftest$ac_exeext; then
28915    echo "*** The test program compiled, but did not run. This usually means"
28916           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28917           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28918           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28919           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28920           echo "*** is required on your system"
28921           echo "***"
28922           echo "*** If you have an old version installed, it is best to remove it, although"
28923           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28924           echo "***"
28925           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28926           echo "*** came with the system with the command"
28927           echo "***"
28928           echo "***    rpm --erase --nodeps gtk gtk-devel"
28929 else
28930   echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28932
28933          echo "*** The test program failed to compile or link. See the file config.log for the"
28934           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28935           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28936           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28937 fi
28938
28939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28940       conftest$ac_exeext conftest.$ac_ext
28941           CFLAGS="$ac_save_CFLAGS"
28942           LIBS="$ac_save_LIBS"
28943        fi
28944      fi
28945      GTK_CFLAGS=""
28946      GTK_LIBS=""
28947      :
28948   fi
28949
28950
28951   rm -f conf.gtktest
28952
28953
28954                         if test -z "$wx_cv_lib_gtk"; then
28955
28956 # Check whether --with-gtk-prefix was given.
28957 if test "${with_gtk_prefix+set}" = set; then
28958   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28959 else
28960   gtk_config_prefix=""
28961 fi
28962
28963
28964 # Check whether --with-gtk-exec-prefix was given.
28965 if test "${with_gtk_exec_prefix+set}" = set; then
28966   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28967 else
28968   gtk_config_exec_prefix=""
28969 fi
28970
28971 # Check whether --enable-gtktest was given.
28972 if test "${enable_gtktest+set}" = set; then
28973   enableval=$enable_gtktest;
28974 else
28975   enable_gtktest=yes
28976 fi
28977
28978
28979   for module in . $GTK_MODULES
28980   do
28981       case "$module" in
28982          gthread)
28983              gtk_config_args="$gtk_config_args gthread"
28984          ;;
28985       esac
28986   done
28987
28988   if test x$gtk_config_exec_prefix != x ; then
28989      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28990      if test x${GTK_CONFIG+set} != xset ; then
28991         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28992      fi
28993   fi
28994   if test x$gtk_config_prefix != x ; then
28995      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28996      if test x${GTK_CONFIG+set} != xset ; then
28997         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28998      fi
28999   fi
29000
29001   # Extract the first word of "gtk-config", so it can be a program name with args.
29002 set dummy gtk-config; ac_word=$2
29003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29005 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29006   echo $ECHO_N "(cached) $ECHO_C" >&6
29007 else
29008   case $GTK_CONFIG in
29009   [\\/]* | ?:[\\/]*)
29010   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29011   ;;
29012   *)
29013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29014 for as_dir in $PATH
29015 do
29016   IFS=$as_save_IFS
29017   test -z "$as_dir" && as_dir=.
29018   for ac_exec_ext in '' $ac_executable_extensions; do
29019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29020     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29022     break 2
29023   fi
29024 done
29025 done
29026 IFS=$as_save_IFS
29027
29028   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29029   ;;
29030 esac
29031 fi
29032 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29033 if test -n "$GTK_CONFIG"; then
29034   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29035 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29036 else
29037   { echo "$as_me:$LINENO: result: no" >&5
29038 echo "${ECHO_T}no" >&6; }
29039 fi
29040
29041
29042   min_gtk_version=1.2.3
29043   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29044 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29045   no_gtk=""
29046   if test "$GTK_CONFIG" = "no" ; then
29047     no_gtk=yes
29048   else
29049     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29050     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29051     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29052            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29053     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29054            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29055     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29056            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29057     if test "x$enable_gtktest" = "xyes" ; then
29058       ac_save_CFLAGS="$CFLAGS"
29059       ac_save_LIBS="$LIBS"
29060       CFLAGS="$CFLAGS $GTK_CFLAGS"
29061       LIBS="$GTK_LIBS $LIBS"
29062       rm -f conf.gtktest
29063       if test "$cross_compiling" = yes; then
29064   echo $ac_n "cross compiling; assumed OK... $ac_c"
29065 else
29066   cat >conftest.$ac_ext <<_ACEOF
29067 /* confdefs.h.  */
29068 _ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h.  */
29072
29073 #include <gtk/gtk.h>
29074 #include <stdio.h>
29075 #include <stdlib.h>
29076
29077 int
29078 main ()
29079 {
29080   int major, minor, micro;
29081   char *tmp_version;
29082
29083   system ("touch conf.gtktest");
29084
29085   /* HP/UX 9 (%@#!) writes to sscanf strings */
29086   tmp_version = g_strdup("$min_gtk_version");
29087   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29088      printf("%s, bad version string\n", "$min_gtk_version");
29089      exit(1);
29090    }
29091
29092   if ((gtk_major_version != $gtk_config_major_version) ||
29093       (gtk_minor_version != $gtk_config_minor_version) ||
29094       (gtk_micro_version != $gtk_config_micro_version))
29095     {
29096       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29097              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29098              gtk_major_version, gtk_minor_version, gtk_micro_version);
29099       printf ("*** was found! If gtk-config was correct, then it is best\n");
29100       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29101       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29102       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29103       printf("*** required on your system.\n");
29104       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29105       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29106       printf("*** before re-running configure\n");
29107     }
29108 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29109   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29110            (gtk_minor_version != GTK_MINOR_VERSION) ||
29111            (gtk_micro_version != GTK_MICRO_VERSION))
29112     {
29113       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29114              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29115       printf("*** library (version %d.%d.%d)\n",
29116              gtk_major_version, gtk_minor_version, gtk_micro_version);
29117     }
29118 #endif /* defined (GTK_MAJOR_VERSION) ... */
29119   else
29120     {
29121       if ((gtk_major_version > major) ||
29122         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29123         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29124       {
29125         return 0;
29126        }
29127      else
29128       {
29129         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29130                gtk_major_version, gtk_minor_version, gtk_micro_version);
29131         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29132                major, minor, micro);
29133         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29134         printf("***\n");
29135         printf("*** If you have already installed a sufficiently new version, this error\n");
29136         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29137         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29138         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29139         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29140         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29141         printf("*** so that the correct libraries are found at run-time))\n");
29142       }
29143     }
29144   return 1;
29145 }
29146
29147 _ACEOF
29148 rm -f conftest$ac_exeext
29149 if { (ac_try="$ac_link"
29150 case "(($ac_try" in
29151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152   *) ac_try_echo=$ac_try;;
29153 esac
29154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155   (eval "$ac_link") 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29159   { (case "(($ac_try" in
29160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161   *) ac_try_echo=$ac_try;;
29162 esac
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164   (eval "$ac_try") 2>&5
29165   ac_status=$?
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); }; }; then
29168   :
29169 else
29170   echo "$as_me: program exited with status $ac_status" >&5
29171 echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29173
29174 ( exit $ac_status )
29175 no_gtk=yes
29176 fi
29177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29178 fi
29179
29180
29181        CFLAGS="$ac_save_CFLAGS"
29182        LIBS="$ac_save_LIBS"
29183      fi
29184   fi
29185   if test "x$no_gtk" = x ; then
29186      { echo "$as_me:$LINENO: result: yes" >&5
29187 echo "${ECHO_T}yes" >&6; }
29188      wx_cv_lib_gtk=1.2.3
29189   else
29190      { echo "$as_me:$LINENO: result: no" >&5
29191 echo "${ECHO_T}no" >&6; }
29192      if test "$GTK_CONFIG" = "no" ; then
29193        echo "*** The gtk-config script installed by GTK could not be found"
29194        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29195        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29196        echo "*** full path to gtk-config."
29197      else
29198        if test -f conf.gtktest ; then
29199         :
29200        else
29201           echo "*** Could not run GTK test program, checking why..."
29202           CFLAGS="$CFLAGS $GTK_CFLAGS"
29203           LIBS="$LIBS $GTK_LIBS"
29204           cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210
29211 #include <gtk/gtk.h>
29212 #include <stdio.h>
29213
29214 int
29215 main ()
29216 {
29217  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29218   ;
29219   return 0;
29220 }
29221 _ACEOF
29222 rm -f conftest.$ac_objext conftest$ac_exeext
29223 if { (ac_try="$ac_link"
29224 case "(($ac_try" in
29225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226   *) ac_try_echo=$ac_try;;
29227 esac
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229   (eval "$ac_link") 2>conftest.er1
29230   ac_status=$?
29231   grep -v '^ *+' conftest.er1 >conftest.err
29232   rm -f conftest.er1
29233   cat conftest.err >&5
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } && {
29236          test -z "$ac_c_werror_flag" ||
29237          test ! -s conftest.err
29238        } && test -s conftest$ac_exeext &&
29239        $as_test_x conftest$ac_exeext; then
29240    echo "*** The test program compiled, but did not run. This usually means"
29241           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29242           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29243           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29244           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29245           echo "*** is required on your system"
29246           echo "***"
29247           echo "*** If you have an old version installed, it is best to remove it, although"
29248           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29249           echo "***"
29250           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29251           echo "*** came with the system with the command"
29252           echo "***"
29253           echo "***    rpm --erase --nodeps gtk gtk-devel"
29254 else
29255   echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29257
29258          echo "*** The test program failed to compile or link. See the file config.log for the"
29259           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29260           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29261           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29262 fi
29263
29264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29265       conftest$ac_exeext conftest.$ac_ext
29266           CFLAGS="$ac_save_CFLAGS"
29267           LIBS="$ac_save_LIBS"
29268        fi
29269      fi
29270      GTK_CFLAGS=""
29271      GTK_LIBS=""
29272      :
29273   fi
29274
29275
29276   rm -f conf.gtktest
29277
29278                         fi
29279                     fi
29280                 fi
29281
29282                 if test -z "$wx_cv_lib_gtk"; then
29283                                         wx_cv_lib_gtk=none
29284                 else
29285                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29286                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29287                 fi
29288
29289
29290 fi
29291
29292
29293                         if test "$gtk_version_cached" = 1; then
29294             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29295 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29296         fi
29297
29298         case "$wx_cv_lib_gtk" in
29299             2.0)    WXGTK2=1
29300                     TOOLKIT_VERSION=2
29301                     ;;
29302             1.2.7)  WXGTK127=1
29303                     WXGTK12=1
29304                     ;;
29305             1.2.3)  WXGTK12=1
29306                     ;;
29307             *)      { { echo "$as_me:$LINENO: error:
29308 The development files for GTK+ were not found. For GTK+ 2, please
29309 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29310 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29311 and that the version is 1.2.3 or above. Also check that the
29312 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29313 --libs' are in the LD_LIBRARY_PATH or equivalent.
29314                             " >&5
29315 echo "$as_me: error:
29316 The development files for GTK+ were not found. For GTK+ 2, please
29317 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29318 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29319 and that the version is 1.2.3 or above. Also check that the
29320 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29321 --libs' are in the LD_LIBRARY_PATH or equivalent.
29322                             " >&2;}
29323    { (exit 1); exit 1; }; }
29324                     ;;
29325         esac
29326
29327         if test "$WXGTK2" = 1; then
29328             save_CFLAGS="$CFLAGS"
29329             save_LIBS="$LIBS"
29330             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29331             LIBS="$LIBS $wx_cv_libs_gtk"
29332
29333                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29334 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29335             cat >conftest.$ac_ext <<_ACEOF
29336 /* confdefs.h.  */
29337 _ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h.  */
29341
29342                             #include <gtk/gtk.h>
29343
29344 int
29345 main ()
29346 {
29347
29348                             #if !GTK_CHECK_VERSION(2,10,0)
29349                             Not GTK+ 2.10
29350                             #endif
29351
29352   ;
29353   return 0;
29354 }
29355 _ACEOF
29356 rm -f conftest.$ac_objext
29357 if { (ac_try="$ac_compile"
29358 case "(($ac_try" in
29359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360   *) ac_try_echo=$ac_try;;
29361 esac
29362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29363   (eval "$ac_compile") 2>conftest.er1
29364   ac_status=$?
29365   grep -v '^ *+' conftest.er1 >conftest.err
29366   rm -f conftest.er1
29367   cat conftest.err >&5
29368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369   (exit $ac_status); } && {
29370          test -z "$ac_c_werror_flag" ||
29371          test ! -s conftest.err
29372        } && test -s conftest.$ac_objext; then
29373
29374                             cat >>confdefs.h <<\_ACEOF
29375 #define __WXGTK210__ 1
29376 _ACEOF
29377
29378                             cat >>confdefs.h <<\_ACEOF
29379 #define __WXGTK26__ 1
29380 _ACEOF
29381
29382                             { echo "$as_me:$LINENO: result: yes" >&5
29383 echo "${ECHO_T}yes" >&6; }
29384                             ac_wxgtk210=1
29385
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390
29391                             { echo "$as_me:$LINENO: result: no" >&5
29392 echo "${ECHO_T}no" >&6; }
29393                             ac_wxgtk210=0
29394
29395 fi
29396
29397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29398
29399             if test "$ac_wxgtk210" = 0; then
29400                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29401 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29402                 cat >conftest.$ac_ext <<_ACEOF
29403 /* confdefs.h.  */
29404 _ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h.  */
29408
29409                                 #include <gtk/gtk.h>
29410
29411 int
29412 main ()
29413 {
29414
29415                                 #if !GTK_CHECK_VERSION(2,6,0)
29416                                 Not GTK+ 2.6
29417                                 #endif
29418
29419   ;
29420   return 0;
29421 }
29422 _ACEOF
29423 rm -f conftest.$ac_objext
29424 if { (ac_try="$ac_compile"
29425 case "(($ac_try" in
29426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427   *) ac_try_echo=$ac_try;;
29428 esac
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430   (eval "$ac_compile") 2>conftest.er1
29431   ac_status=$?
29432   grep -v '^ *+' conftest.er1 >conftest.err
29433   rm -f conftest.er1
29434   cat conftest.err >&5
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); } && {
29437          test -z "$ac_c_werror_flag" ||
29438          test ! -s conftest.err
29439        } && test -s conftest.$ac_objext; then
29440
29441                                 cat >>confdefs.h <<\_ACEOF
29442 #define __WXGTK26__ 1
29443 _ACEOF
29444
29445                                 { echo "$as_me:$LINENO: result: yes" >&5
29446 echo "${ECHO_T}yes" >&6; }
29447                                 ac_wxgtk26=1
29448
29449 else
29450   echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29452
29453
29454                                 { echo "$as_me:$LINENO: result: no" >&5
29455 echo "${ECHO_T}no" >&6; }
29456                                 ac_wxgtk26=0
29457
29458 fi
29459
29460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29461             fi
29462
29463             CFLAGS="$save_CFLAGS"
29464             LIBS="$save_LIBS"
29465         else
29466             if test "$wxUSE_UNICODE" = "yes"; then
29467                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29468 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29469                 wxUSE_UNICODE=no
29470             fi
29471
29472                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29473 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29474 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477   ac_check_lib_save_LIBS=$LIBS
29478 LIBS="-lgdk  $LIBS"
29479 cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485
29486 /* Override any GCC internal prototype to avoid an error.
29487    Use char because int might match the return type of a GCC
29488    builtin and then its argument prototype would still apply.  */
29489 #ifdef __cplusplus
29490 extern "C"
29491 #endif
29492 char gdk_im_open ();
29493 int
29494 main ()
29495 {
29496 return gdk_im_open ();
29497   ;
29498   return 0;
29499 }
29500 _ACEOF
29501 rm -f conftest.$ac_objext conftest$ac_exeext
29502 if { (ac_try="$ac_link"
29503 case "(($ac_try" in
29504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505   *) ac_try_echo=$ac_try;;
29506 esac
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508   (eval "$ac_link") 2>conftest.er1
29509   ac_status=$?
29510   grep -v '^ *+' conftest.er1 >conftest.err
29511   rm -f conftest.er1
29512   cat conftest.err >&5
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); } && {
29515          test -z "$ac_c_werror_flag" ||
29516          test ! -s conftest.err
29517        } && test -s conftest$ac_exeext &&
29518        $as_test_x conftest$ac_exeext; then
29519   ac_cv_lib_gdk_gdk_im_open=yes
29520 else
29521   echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524         ac_cv_lib_gdk_gdk_im_open=no
29525 fi
29526
29527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29528       conftest$ac_exeext conftest.$ac_ext
29529 LIBS=$ac_check_lib_save_LIBS
29530 fi
29531 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29532 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29533 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29534   cat >>confdefs.h <<\_ACEOF
29535 #define HAVE_XIM 1
29536 _ACEOF
29537
29538 fi
29539
29540
29541                                     if test "$USE_DARWIN" != 1; then
29542
29543 for ac_func in poll
29544 do
29545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551   cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29559 #define $ac_func innocuous_$ac_func
29560
29561 /* System header to define __stub macros and hopefully few prototypes,
29562     which can conflict with char $ac_func (); below.
29563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29564     <limits.h> exists even on freestanding compilers.  */
29565
29566 #ifdef __STDC__
29567 # include <limits.h>
29568 #else
29569 # include <assert.h>
29570 #endif
29571
29572 #undef $ac_func
29573
29574 /* Override any GCC internal prototype to avoid an error.
29575    Use char because int might match the return type of a GCC
29576    builtin and then its argument prototype would still apply.  */
29577 #ifdef __cplusplus
29578 extern "C"
29579 #endif
29580 char $ac_func ();
29581 /* The GNU C library defines this for functions which it implements
29582     to always fail with ENOSYS.  Some functions are actually named
29583     something starting with __ and the normal name is an alias.  */
29584 #if defined __stub_$ac_func || defined __stub___$ac_func
29585 choke me
29586 #endif
29587
29588 int
29589 main ()
29590 {
29591 return $ac_func ();
29592   ;
29593   return 0;
29594 }
29595 _ACEOF
29596 rm -f conftest.$ac_objext conftest$ac_exeext
29597 if { (ac_try="$ac_link"
29598 case "(($ac_try" in
29599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600   *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603   (eval "$ac_link") 2>conftest.er1
29604   ac_status=$?
29605   grep -v '^ *+' conftest.er1 >conftest.err
29606   rm -f conftest.er1
29607   cat conftest.err >&5
29608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609   (exit $ac_status); } && {
29610          test -z "$ac_c_werror_flag" ||
29611          test ! -s conftest.err
29612        } && test -s conftest$ac_exeext &&
29613        $as_test_x conftest$ac_exeext; then
29614   eval "$as_ac_var=yes"
29615 else
29616   echo "$as_me: failed program was:" >&5
29617 sed 's/^/| /' conftest.$ac_ext >&5
29618
29619         eval "$as_ac_var=no"
29620 fi
29621
29622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29623       conftest$ac_exeext conftest.$ac_ext
29624 fi
29625 ac_res=`eval echo '${'$as_ac_var'}'`
29626                { echo "$as_me:$LINENO: result: $ac_res" >&5
29627 echo "${ECHO_T}$ac_res" >&6; }
29628 if test `eval echo '${'$as_ac_var'}'` = yes; then
29629   cat >>confdefs.h <<_ACEOF
29630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29631 _ACEOF
29632
29633 fi
29634 done
29635
29636             fi
29637         fi
29638
29639         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29640         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29641
29642         AFMINSTALL=afminstall
29643         TOOLKIT=GTK
29644         GUIDIST=GTK_DIST
29645
29646                 if test "$wxUSE_GPE" = "yes"; then
29647             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29648 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29649
29650   ac_find_libraries=
29651   for ac_dir in $SEARCH_LIB;
29652   do
29653     for ac_extension in a so sl dylib dll.a; do
29654       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29655         ac_find_libraries=$ac_dir
29656         break 2
29657       fi
29658     done
29659   done
29660
29661             if test "$ac_find_libraries" != "" ; then
29662
29663     if test "$ac_find_libraries" = "default location"; then
29664     ac_path_to_link=""
29665   else
29666     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29667     result=$?
29668     if test $result = 0; then
29669       ac_path_to_link=""
29670     else
29671       ac_path_to_link=" -L$ac_find_libraries"
29672     fi
29673   fi
29674
29675                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29676                 WXGPE=1
29677                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29678 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29679             else
29680                 { echo "$as_me:$LINENO: result: not found" >&5
29681 echo "${ECHO_T}not found" >&6; }
29682             fi
29683
29684                                                                                                                     fi
29685     fi
29686
29687     if test "$wxUSE_MGL" = 1; then
29688        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29689 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29690         if test "x$MGL_ROOT" = x ; then
29691             { echo "$as_me:$LINENO: result: not found" >&5
29692 echo "${ECHO_T}not found" >&6; }
29693             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29694 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29695    { (exit 1); exit 1; }; }
29696         else
29697             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29698 echo "${ECHO_T}$MGL_ROOT" >&6; }
29699         fi
29700
29701         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29702 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29703                                 case "${host}" in
29704             *-*-linux* )
29705                                           if test "x$wxUSE_SHARED" = xyes ; then
29706                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29707               else
29708                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29709               fi
29710               ;;
29711             *-pc-msdosdjgpp )
29712               mgl_os_candidates="dos32/dj2"
29713               ;;
29714             *)
29715               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29716 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29717    { (exit 1); exit 1; }; }
29718         esac
29719
29720         mgl_lib_type=""
29721         mgl_os=""
29722
29723         for mgl_os_i in $mgl_os_candidates ; do
29724             if test "x$mgl_os" = x ; then
29725                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29726                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29727                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29728                         mgl_lib_type=debug
29729                         mgl_os=$mgl_os_i
29730                     fi
29731                 fi
29732                 if test "x$mgl_lib_type" = x ; then
29733                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29734                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29735                         mgl_lib_type=release
29736                         mgl_os=$mgl_os_i
29737                     fi
29738                 fi
29739             fi
29740         done
29741
29742         if test "x$mgl_os" = x ; then
29743             { echo "$as_me:$LINENO: result: not found" >&5
29744 echo "${ECHO_T}not found" >&6; }
29745             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29746 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29747    { (exit 1); exit 1; }; }
29748         fi
29749         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29750 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29751
29752         wxUSE_UNIVERSAL="yes"
29753
29754         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29755         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29756
29757         AFMINSTALL=afminstall
29758         TOOLKIT=MGL
29759         GUIDIST=MGL_DIST
29760     fi
29761
29762     if test "$wxUSE_DFB" = 1; then
29763
29764
29765 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29766         if test -n "$ac_tool_prefix"; then
29767   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29768 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29771 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774   case $PKG_CONFIG in
29775   [\\/]* | ?:[\\/]*)
29776   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29777   ;;
29778   *)
29779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29780 for as_dir in $PATH
29781 do
29782   IFS=$as_save_IFS
29783   test -z "$as_dir" && as_dir=.
29784   for ac_exec_ext in '' $ac_executable_extensions; do
29785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29786     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29788     break 2
29789   fi
29790 done
29791 done
29792 IFS=$as_save_IFS
29793
29794   ;;
29795 esac
29796 fi
29797 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29798 if test -n "$PKG_CONFIG"; then
29799   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29800 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29801 else
29802   { echo "$as_me:$LINENO: result: no" >&5
29803 echo "${ECHO_T}no" >&6; }
29804 fi
29805
29806
29807 fi
29808 if test -z "$ac_cv_path_PKG_CONFIG"; then
29809   ac_pt_PKG_CONFIG=$PKG_CONFIG
29810   # Extract the first word of "pkg-config", so it can be a program name with args.
29811 set dummy pkg-config; ac_word=$2
29812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29814 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29815   echo $ECHO_N "(cached) $ECHO_C" >&6
29816 else
29817   case $ac_pt_PKG_CONFIG in
29818   [\\/]* | ?:[\\/]*)
29819   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29820   ;;
29821   *)
29822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29823 for as_dir in $PATH
29824 do
29825   IFS=$as_save_IFS
29826   test -z "$as_dir" && as_dir=.
29827   for ac_exec_ext in '' $ac_executable_extensions; do
29828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29829     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29831     break 2
29832   fi
29833 done
29834 done
29835 IFS=$as_save_IFS
29836
29837   ;;
29838 esac
29839 fi
29840 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29841 if test -n "$ac_pt_PKG_CONFIG"; then
29842   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29843 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29844 else
29845   { echo "$as_me:$LINENO: result: no" >&5
29846 echo "${ECHO_T}no" >&6; }
29847 fi
29848
29849   if test "x$ac_pt_PKG_CONFIG" = x; then
29850     PKG_CONFIG=""
29851   else
29852     case $cross_compiling:$ac_tool_warned in
29853 yes:)
29854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29855 whose name does not start with the host triplet.  If you think this
29856 configuration is useful to you, please write to autoconf@gnu.org." >&5
29857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29858 whose name does not start with the host triplet.  If you think this
29859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29860 ac_tool_warned=yes ;;
29861 esac
29862     PKG_CONFIG=$ac_pt_PKG_CONFIG
29863   fi
29864 else
29865   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29866 fi
29867
29868 fi
29869 if test -n "$PKG_CONFIG"; then
29870         _pkg_min_version=0.9.0
29871         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29872 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29873         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29874                 { echo "$as_me:$LINENO: result: yes" >&5
29875 echo "${ECHO_T}yes" >&6; }
29876         else
29877                 { echo "$as_me:$LINENO: result: no" >&5
29878 echo "${ECHO_T}no" >&6; }
29879                 PKG_CONFIG=""
29880         fi
29881
29882 fi
29883
29884
29885 pkg_failed=no
29886 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29887 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29888
29889 if test -n "$PKG_CONFIG"; then
29890     if test -n "$DIRECTFB_CFLAGS"; then
29891         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29892     else
29893         if test -n "$PKG_CONFIG" && \
29894     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29895   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29896   ac_status=$?
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); }; then
29899   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29900 else
29901   pkg_failed=yes
29902 fi
29903     fi
29904 else
29905         pkg_failed=untried
29906 fi
29907 if test -n "$PKG_CONFIG"; then
29908     if test -n "$DIRECTFB_LIBS"; then
29909         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29910     else
29911         if test -n "$PKG_CONFIG" && \
29912     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29913   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29914   ac_status=$?
29915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916   (exit $ac_status); }; then
29917   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29918 else
29919   pkg_failed=yes
29920 fi
29921     fi
29922 else
29923         pkg_failed=untried
29924 fi
29925
29926
29927
29928 if test $pkg_failed = yes; then
29929
29930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29931         _pkg_short_errors_supported=yes
29932 else
29933         _pkg_short_errors_supported=no
29934 fi
29935         if test $_pkg_short_errors_supported = yes; then
29936                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29937         else
29938                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29939         fi
29940         # Put the nasty error message in config.log where it belongs
29941         echo "$DIRECTFB_PKG_ERRORS" >&5
29942
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 elif test $pkg_failed = untried; then
29950
29951                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29952 echo "$as_me: error: DirectFB not found." >&2;}
29953    { (exit 1); exit 1; }; }
29954
29955
29956 else
29957         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29958         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29959         { echo "$as_me:$LINENO: result: yes" >&5
29960 echo "${ECHO_T}yes" >&6; }
29961
29962                            wxUSE_UNIVERSAL="yes"
29963                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29964                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29965                            TOOLKIT=DFB
29966                            GUIDIST=DFB_DIST
29967
29968 fi
29969     fi
29970
29971     if test "$wxUSE_MICROWIN" = 1; then
29972         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29973 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29974         if test "x$MICROWINDOWS" = x ; then
29975             { echo "$as_me:$LINENO: result: not found" >&5
29976 echo "${ECHO_T}not found" >&6; }
29977             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29978 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29979    { (exit 1); exit 1; }; }
29980         else
29981             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29982 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29983         fi
29984
29985         if test -f $MICROWINDOWS/lib/libmwin.a; then
29986             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29987 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29988         else
29989             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29990 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29991    { (exit 1); exit 1; }; }
29992         fi
29993
29994         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29995         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29996
29997         wxUSE_UNIVERSAL="yes"
29998
29999         AFMINSTALL=afminstall
30000         TOOLKIT=MICROWIN
30001         GUIDIST=MICROWIN_DIST
30002
30003         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30004     fi
30005
30006         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30007                                 { echo "$as_me:$LINENO: checking for X" >&5
30008 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30009
30010
30011 # Check whether --with-x was given.
30012 if test "${with_x+set}" = set; then
30013   withval=$with_x;
30014 fi
30015
30016 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30017 if test "x$with_x" = xno; then
30018   # The user explicitly disabled X.
30019   have_x=disabled
30020 else
30021   case $x_includes,$x_libraries in #(
30022     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30023 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30024    { (exit 1); exit 1; }; };; #(
30025     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30026   echo $ECHO_N "(cached) $ECHO_C" >&6
30027 else
30028   # One or both of the vars are not set, and there is no cached value.
30029 ac_x_includes=no ac_x_libraries=no
30030 rm -f -r conftest.dir
30031 if mkdir conftest.dir; then
30032   cd conftest.dir
30033   cat >Imakefile <<'_ACEOF'
30034 incroot:
30035         @echo incroot='${INCROOT}'
30036 usrlibdir:
30037         @echo usrlibdir='${USRLIBDIR}'
30038 libdir:
30039         @echo libdir='${LIBDIR}'
30040 _ACEOF
30041   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30042     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30043     for ac_var in incroot usrlibdir libdir; do
30044       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30045     done
30046     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30047     for ac_extension in a so sl; do
30048       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30049          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30050         ac_im_usrlibdir=$ac_im_libdir; break
30051       fi
30052     done
30053     # Screen out bogus values from the imake configuration.  They are
30054     # bogus both because they are the default anyway, and because
30055     # using them would break gcc on systems where it needs fixed includes.
30056     case $ac_im_incroot in
30057         /usr/include) ac_x_includes= ;;
30058         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30059     esac
30060     case $ac_im_usrlibdir in
30061         /usr/lib | /lib) ;;
30062         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30063     esac
30064   fi
30065   cd ..
30066   rm -f -r conftest.dir
30067 fi
30068
30069 # Standard set of common directories for X headers.
30070 # Check X11 before X11Rn because it is often a symlink to the current release.
30071 ac_x_header_dirs='
30072 /usr/X11/include
30073 /usr/X11R6/include
30074 /usr/X11R5/include
30075 /usr/X11R4/include
30076
30077 /usr/include/X11
30078 /usr/include/X11R6
30079 /usr/include/X11R5
30080 /usr/include/X11R4
30081
30082 /usr/local/X11/include
30083 /usr/local/X11R6/include
30084 /usr/local/X11R5/include
30085 /usr/local/X11R4/include
30086
30087 /usr/local/include/X11
30088 /usr/local/include/X11R6
30089 /usr/local/include/X11R5
30090 /usr/local/include/X11R4
30091
30092 /usr/X386/include
30093 /usr/x386/include
30094 /usr/XFree86/include/X11
30095
30096 /usr/include
30097 /usr/local/include
30098 /usr/unsupported/include
30099 /usr/athena/include
30100 /usr/local/x11r5/include
30101 /usr/lpp/Xamples/include
30102
30103 /usr/openwin/include
30104 /usr/openwin/share/include'
30105
30106 if test "$ac_x_includes" = no; then
30107   # Guess where to find include files, by looking for Xlib.h.
30108   # First, try using that file with no special directory specified.
30109   cat >conftest.$ac_ext <<_ACEOF
30110 /* confdefs.h.  */
30111 _ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h.  */
30115 #include <X11/Xlib.h>
30116 _ACEOF
30117 if { (ac_try="$ac_cpp conftest.$ac_ext"
30118 case "(($ac_try" in
30119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120   *) ac_try_echo=$ac_try;;
30121 esac
30122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30124   ac_status=$?
30125   grep -v '^ *+' conftest.er1 >conftest.err
30126   rm -f conftest.er1
30127   cat conftest.err >&5
30128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129   (exit $ac_status); } >/dev/null && {
30130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30131          test ! -s conftest.err
30132        }; then
30133   # We can compile using X headers with no special include directory.
30134 ac_x_includes=
30135 else
30136   echo "$as_me: failed program was:" >&5
30137 sed 's/^/| /' conftest.$ac_ext >&5
30138
30139   for ac_dir in $ac_x_header_dirs; do
30140   if test -r "$ac_dir/X11/Xlib.h"; then
30141     ac_x_includes=$ac_dir
30142     break
30143   fi
30144 done
30145 fi
30146
30147 rm -f conftest.err conftest.$ac_ext
30148 fi # $ac_x_includes = no
30149
30150 if test "$ac_x_libraries" = no; then
30151   # Check for the libraries.
30152   # See if we find them without any special options.
30153   # Don't add to $LIBS permanently.
30154   ac_save_LIBS=$LIBS
30155   LIBS="-lX11 $LIBS"
30156   cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h.  */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h.  */
30162 #include <X11/Xlib.h>
30163 int
30164 main ()
30165 {
30166 XrmInitialize ()
30167   ;
30168   return 0;
30169 }
30170 _ACEOF
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (ac_try="$ac_link"
30173 case "(($ac_try" in
30174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175   *) ac_try_echo=$ac_try;;
30176 esac
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178   (eval "$ac_link") 2>conftest.er1
30179   ac_status=$?
30180   grep -v '^ *+' conftest.er1 >conftest.err
30181   rm -f conftest.er1
30182   cat conftest.err >&5
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); } && {
30185          test -z "$ac_c_werror_flag" ||
30186          test ! -s conftest.err
30187        } && test -s conftest$ac_exeext &&
30188        $as_test_x conftest$ac_exeext; then
30189   LIBS=$ac_save_LIBS
30190 # We can link X programs with no special library path.
30191 ac_x_libraries=
30192 else
30193   echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30195
30196         LIBS=$ac_save_LIBS
30197 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30198 do
30199   # Don't even attempt the hair of trying to link an X program!
30200   for ac_extension in a so sl; do
30201     if test -r "$ac_dir/libX11.$ac_extension"; then
30202       ac_x_libraries=$ac_dir
30203       break 2
30204     fi
30205   done
30206 done
30207 fi
30208
30209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30210       conftest$ac_exeext conftest.$ac_ext
30211 fi # $ac_x_libraries = no
30212
30213 case $ac_x_includes,$ac_x_libraries in #(
30214   no,* | *,no | *\'*)
30215     # Didn't find X, or a directory has "'" in its name.
30216     ac_cv_have_x="have_x=no";; #(
30217   *)
30218     # Record where we found X for the cache.
30219     ac_cv_have_x="have_x=yes\
30220         ac_x_includes='$ac_x_includes'\
30221         ac_x_libraries='$ac_x_libraries'"
30222 esac
30223 fi
30224 ;; #(
30225     *) have_x=yes;;
30226   esac
30227   eval "$ac_cv_have_x"
30228 fi # $with_x != no
30229
30230 if test "$have_x" != yes; then
30231   { echo "$as_me:$LINENO: result: $have_x" >&5
30232 echo "${ECHO_T}$have_x" >&6; }
30233   no_x=yes
30234 else
30235   # If each of the values was on the command line, it overrides each guess.
30236   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30237   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30238   # Update the cache value to reflect the command line values.
30239   ac_cv_have_x="have_x=yes\
30240         ac_x_includes='$x_includes'\
30241         ac_x_libraries='$x_libraries'"
30242   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30243 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30244 fi
30245
30246 if test "$no_x" = yes; then
30247   # Not all programs may use this symbol, but it does not hurt to define it.
30248
30249 cat >>confdefs.h <<\_ACEOF
30250 #define X_DISPLAY_MISSING 1
30251 _ACEOF
30252
30253   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30254 else
30255   if test -n "$x_includes"; then
30256     X_CFLAGS="$X_CFLAGS -I$x_includes"
30257   fi
30258
30259   # It would also be nice to do this for all -L options, not just this one.
30260   if test -n "$x_libraries"; then
30261     X_LIBS="$X_LIBS -L$x_libraries"
30262     # For Solaris; some versions of Sun CC require a space after -R and
30263     # others require no space.  Words are not sufficient . . . .
30264     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30265 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30266     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30267     ac_xsave_c_werror_flag=$ac_c_werror_flag
30268     ac_c_werror_flag=yes
30269     cat >conftest.$ac_ext <<_ACEOF
30270 /* confdefs.h.  */
30271 _ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h.  */
30275
30276 int
30277 main ()
30278 {
30279
30280   ;
30281   return 0;
30282 }
30283 _ACEOF
30284 rm -f conftest.$ac_objext conftest$ac_exeext
30285 if { (ac_try="$ac_link"
30286 case "(($ac_try" in
30287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288   *) ac_try_echo=$ac_try;;
30289 esac
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291   (eval "$ac_link") 2>conftest.er1
30292   ac_status=$?
30293   grep -v '^ *+' conftest.er1 >conftest.err
30294   rm -f conftest.er1
30295   cat conftest.err >&5
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); } && {
30298          test -z "$ac_c_werror_flag" ||
30299          test ! -s conftest.err
30300        } && test -s conftest$ac_exeext &&
30301        $as_test_x conftest$ac_exeext; then
30302   { echo "$as_me:$LINENO: result: no" >&5
30303 echo "${ECHO_T}no" >&6; }
30304        X_LIBS="$X_LIBS -R$x_libraries"
30305 else
30306   echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30308
30309         LIBS="$ac_xsave_LIBS -R $x_libraries"
30310        cat >conftest.$ac_ext <<_ACEOF
30311 /* confdefs.h.  */
30312 _ACEOF
30313 cat confdefs.h >>conftest.$ac_ext
30314 cat >>conftest.$ac_ext <<_ACEOF
30315 /* end confdefs.h.  */
30316
30317 int
30318 main ()
30319 {
30320
30321   ;
30322   return 0;
30323 }
30324 _ACEOF
30325 rm -f conftest.$ac_objext conftest$ac_exeext
30326 if { (ac_try="$ac_link"
30327 case "(($ac_try" in
30328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329   *) ac_try_echo=$ac_try;;
30330 esac
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332   (eval "$ac_link") 2>conftest.er1
30333   ac_status=$?
30334   grep -v '^ *+' conftest.er1 >conftest.err
30335   rm -f conftest.er1
30336   cat conftest.err >&5
30337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338   (exit $ac_status); } && {
30339          test -z "$ac_c_werror_flag" ||
30340          test ! -s conftest.err
30341        } && test -s conftest$ac_exeext &&
30342        $as_test_x conftest$ac_exeext; then
30343   { echo "$as_me:$LINENO: result: yes" >&5
30344 echo "${ECHO_T}yes" >&6; }
30345           X_LIBS="$X_LIBS -R $x_libraries"
30346 else
30347   echo "$as_me: failed program was:" >&5
30348 sed 's/^/| /' conftest.$ac_ext >&5
30349
30350         { echo "$as_me:$LINENO: result: neither works" >&5
30351 echo "${ECHO_T}neither works" >&6; }
30352 fi
30353
30354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30355       conftest$ac_exeext conftest.$ac_ext
30356 fi
30357
30358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30359       conftest$ac_exeext conftest.$ac_ext
30360     ac_c_werror_flag=$ac_xsave_c_werror_flag
30361     LIBS=$ac_xsave_LIBS
30362   fi
30363
30364   # Check for system-dependent libraries X programs must link with.
30365   # Do this before checking for the system-independent R6 libraries
30366   # (-lICE), since we may need -lsocket or whatever for X linking.
30367
30368   if test "$ISC" = yes; then
30369     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30370   else
30371     # Martyn Johnson says this is needed for Ultrix, if the X
30372     # libraries were built with DECnet support.  And Karl Berry says
30373     # the Alpha needs dnet_stub (dnet does not exist).
30374     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30375     cat >conftest.$ac_ext <<_ACEOF
30376 /* confdefs.h.  */
30377 _ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h.  */
30381
30382 /* Override any GCC internal prototype to avoid an error.
30383    Use char because int might match the return type of a GCC
30384    builtin and then its argument prototype would still apply.  */
30385 #ifdef __cplusplus
30386 extern "C"
30387 #endif
30388 char XOpenDisplay ();
30389 int
30390 main ()
30391 {
30392 return XOpenDisplay ();
30393   ;
30394   return 0;
30395 }
30396 _ACEOF
30397 rm -f conftest.$ac_objext conftest$ac_exeext
30398 if { (ac_try="$ac_link"
30399 case "(($ac_try" in
30400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30401   *) ac_try_echo=$ac_try;;
30402 esac
30403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30404   (eval "$ac_link") 2>conftest.er1
30405   ac_status=$?
30406   grep -v '^ *+' conftest.er1 >conftest.err
30407   rm -f conftest.er1
30408   cat conftest.err >&5
30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); } && {
30411          test -z "$ac_c_werror_flag" ||
30412          test ! -s conftest.err
30413        } && test -s conftest$ac_exeext &&
30414        $as_test_x conftest$ac_exeext; then
30415   :
30416 else
30417   echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30419
30420         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30421 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30422 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30423   echo $ECHO_N "(cached) $ECHO_C" >&6
30424 else
30425   ac_check_lib_save_LIBS=$LIBS
30426 LIBS="-ldnet  $LIBS"
30427 cat >conftest.$ac_ext <<_ACEOF
30428 /* confdefs.h.  */
30429 _ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h.  */
30433
30434 /* Override any GCC internal prototype to avoid an error.
30435    Use char because int might match the return type of a GCC
30436    builtin and then its argument prototype would still apply.  */
30437 #ifdef __cplusplus
30438 extern "C"
30439 #endif
30440 char dnet_ntoa ();
30441 int
30442 main ()
30443 {
30444 return dnet_ntoa ();
30445   ;
30446   return 0;
30447 }
30448 _ACEOF
30449 rm -f conftest.$ac_objext conftest$ac_exeext
30450 if { (ac_try="$ac_link"
30451 case "(($ac_try" in
30452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453   *) ac_try_echo=$ac_try;;
30454 esac
30455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456   (eval "$ac_link") 2>conftest.er1
30457   ac_status=$?
30458   grep -v '^ *+' conftest.er1 >conftest.err
30459   rm -f conftest.er1
30460   cat conftest.err >&5
30461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462   (exit $ac_status); } && {
30463          test -z "$ac_c_werror_flag" ||
30464          test ! -s conftest.err
30465        } && test -s conftest$ac_exeext &&
30466        $as_test_x conftest$ac_exeext; then
30467   ac_cv_lib_dnet_dnet_ntoa=yes
30468 else
30469   echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472         ac_cv_lib_dnet_dnet_ntoa=no
30473 fi
30474
30475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30476       conftest$ac_exeext conftest.$ac_ext
30477 LIBS=$ac_check_lib_save_LIBS
30478 fi
30479 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30480 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30481 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30482   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30483 fi
30484
30485     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30486       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30487 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30488 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30489   echo $ECHO_N "(cached) $ECHO_C" >&6
30490 else
30491   ac_check_lib_save_LIBS=$LIBS
30492 LIBS="-ldnet_stub  $LIBS"
30493 cat >conftest.$ac_ext <<_ACEOF
30494 /* confdefs.h.  */
30495 _ACEOF
30496 cat confdefs.h >>conftest.$ac_ext
30497 cat >>conftest.$ac_ext <<_ACEOF
30498 /* end confdefs.h.  */
30499
30500 /* Override any GCC internal prototype to avoid an error.
30501    Use char because int might match the return type of a GCC
30502    builtin and then its argument prototype would still apply.  */
30503 #ifdef __cplusplus
30504 extern "C"
30505 #endif
30506 char dnet_ntoa ();
30507 int
30508 main ()
30509 {
30510 return dnet_ntoa ();
30511   ;
30512   return 0;
30513 }
30514 _ACEOF
30515 rm -f conftest.$ac_objext conftest$ac_exeext
30516 if { (ac_try="$ac_link"
30517 case "(($ac_try" in
30518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30519   *) ac_try_echo=$ac_try;;
30520 esac
30521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30522   (eval "$ac_link") 2>conftest.er1
30523   ac_status=$?
30524   grep -v '^ *+' conftest.er1 >conftest.err
30525   rm -f conftest.er1
30526   cat conftest.err >&5
30527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528   (exit $ac_status); } && {
30529          test -z "$ac_c_werror_flag" ||
30530          test ! -s conftest.err
30531        } && test -s conftest$ac_exeext &&
30532        $as_test_x conftest$ac_exeext; then
30533   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30534 else
30535   echo "$as_me: failed program was:" >&5
30536 sed 's/^/| /' conftest.$ac_ext >&5
30537
30538         ac_cv_lib_dnet_stub_dnet_ntoa=no
30539 fi
30540
30541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30542       conftest$ac_exeext conftest.$ac_ext
30543 LIBS=$ac_check_lib_save_LIBS
30544 fi
30545 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30546 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30547 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30548   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30549 fi
30550
30551     fi
30552 fi
30553
30554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30555       conftest$ac_exeext conftest.$ac_ext
30556     LIBS="$ac_xsave_LIBS"
30557
30558     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30559     # to get the SysV transport functions.
30560     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30561     # needs -lnsl.
30562     # The nsl library prevents programs from opening the X display
30563     # on Irix 5.2, according to T.E. Dickey.
30564     # The functions gethostbyname, getservbyname, and inet_addr are
30565     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30566     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30567 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30568 if test "${ac_cv_func_gethostbyname+set}" = set; then
30569   echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571   cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h.  */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h.  */
30577 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30579 #define gethostbyname innocuous_gethostbyname
30580
30581 /* System header to define __stub macros and hopefully few prototypes,
30582     which can conflict with char gethostbyname (); below.
30583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30584     <limits.h> exists even on freestanding compilers.  */
30585
30586 #ifdef __STDC__
30587 # include <limits.h>
30588 #else
30589 # include <assert.h>
30590 #endif
30591
30592 #undef gethostbyname
30593
30594 /* Override any GCC internal prototype to avoid an error.
30595    Use char because int might match the return type of a GCC
30596    builtin and then its argument prototype would still apply.  */
30597 #ifdef __cplusplus
30598 extern "C"
30599 #endif
30600 char gethostbyname ();
30601 /* The GNU C library defines this for functions which it implements
30602     to always fail with ENOSYS.  Some functions are actually named
30603     something starting with __ and the normal name is an alias.  */
30604 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30605 choke me
30606 #endif
30607
30608 int
30609 main ()
30610 {
30611 return gethostbyname ();
30612   ;
30613   return 0;
30614 }
30615 _ACEOF
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (ac_try="$ac_link"
30618 case "(($ac_try" in
30619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620   *) ac_try_echo=$ac_try;;
30621 esac
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623   (eval "$ac_link") 2>conftest.er1
30624   ac_status=$?
30625   grep -v '^ *+' conftest.er1 >conftest.err
30626   rm -f conftest.er1
30627   cat conftest.err >&5
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); } && {
30630          test -z "$ac_c_werror_flag" ||
30631          test ! -s conftest.err
30632        } && test -s conftest$ac_exeext &&
30633        $as_test_x conftest$ac_exeext; then
30634   ac_cv_func_gethostbyname=yes
30635 else
30636   echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30638
30639         ac_cv_func_gethostbyname=no
30640 fi
30641
30642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30643       conftest$ac_exeext conftest.$ac_ext
30644 fi
30645 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30646 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30647
30648     if test $ac_cv_func_gethostbyname = no; then
30649       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30650 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30651 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654   ac_check_lib_save_LIBS=$LIBS
30655 LIBS="-lnsl  $LIBS"
30656 cat >conftest.$ac_ext <<_ACEOF
30657 /* confdefs.h.  */
30658 _ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h.  */
30662
30663 /* Override any GCC internal prototype to avoid an error.
30664    Use char because int might match the return type of a GCC
30665    builtin and then its argument prototype would still apply.  */
30666 #ifdef __cplusplus
30667 extern "C"
30668 #endif
30669 char gethostbyname ();
30670 int
30671 main ()
30672 {
30673 return gethostbyname ();
30674   ;
30675   return 0;
30676 }
30677 _ACEOF
30678 rm -f conftest.$ac_objext conftest$ac_exeext
30679 if { (ac_try="$ac_link"
30680 case "(($ac_try" in
30681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682   *) ac_try_echo=$ac_try;;
30683 esac
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685   (eval "$ac_link") 2>conftest.er1
30686   ac_status=$?
30687   grep -v '^ *+' conftest.er1 >conftest.err
30688   rm -f conftest.er1
30689   cat conftest.err >&5
30690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691   (exit $ac_status); } && {
30692          test -z "$ac_c_werror_flag" ||
30693          test ! -s conftest.err
30694        } && test -s conftest$ac_exeext &&
30695        $as_test_x conftest$ac_exeext; then
30696   ac_cv_lib_nsl_gethostbyname=yes
30697 else
30698   echo "$as_me: failed program was:" >&5
30699 sed 's/^/| /' conftest.$ac_ext >&5
30700
30701         ac_cv_lib_nsl_gethostbyname=no
30702 fi
30703
30704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30705       conftest$ac_exeext conftest.$ac_ext
30706 LIBS=$ac_check_lib_save_LIBS
30707 fi
30708 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30709 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30710 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30711   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30712 fi
30713
30714       if test $ac_cv_lib_nsl_gethostbyname = no; then
30715         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30716 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30717 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30718   echo $ECHO_N "(cached) $ECHO_C" >&6
30719 else
30720   ac_check_lib_save_LIBS=$LIBS
30721 LIBS="-lbsd  $LIBS"
30722 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728
30729 /* Override any GCC internal prototype to avoid an error.
30730    Use char because int might match the return type of a GCC
30731    builtin and then its argument prototype would still apply.  */
30732 #ifdef __cplusplus
30733 extern "C"
30734 #endif
30735 char gethostbyname ();
30736 int
30737 main ()
30738 {
30739 return gethostbyname ();
30740   ;
30741   return 0;
30742 }
30743 _ACEOF
30744 rm -f conftest.$ac_objext conftest$ac_exeext
30745 if { (ac_try="$ac_link"
30746 case "(($ac_try" in
30747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748   *) ac_try_echo=$ac_try;;
30749 esac
30750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30751   (eval "$ac_link") 2>conftest.er1
30752   ac_status=$?
30753   grep -v '^ *+' conftest.er1 >conftest.err
30754   rm -f conftest.er1
30755   cat conftest.err >&5
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); } && {
30758          test -z "$ac_c_werror_flag" ||
30759          test ! -s conftest.err
30760        } && test -s conftest$ac_exeext &&
30761        $as_test_x conftest$ac_exeext; then
30762   ac_cv_lib_bsd_gethostbyname=yes
30763 else
30764   echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30766
30767         ac_cv_lib_bsd_gethostbyname=no
30768 fi
30769
30770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30771       conftest$ac_exeext conftest.$ac_ext
30772 LIBS=$ac_check_lib_save_LIBS
30773 fi
30774 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30775 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30776 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30777   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30778 fi
30779
30780       fi
30781     fi
30782
30783     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30784     # socket/setsockopt and other routines are undefined under SCO ODT
30785     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30786     # on later versions), says Simon Leinen: it contains gethostby*
30787     # variants that don't use the name server (or something).  -lsocket
30788     # must be given before -lnsl if both are needed.  We assume that
30789     # if connect needs -lnsl, so does gethostbyname.
30790     { echo "$as_me:$LINENO: checking for connect" >&5
30791 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30792 if test "${ac_cv_func_connect+set}" = set; then
30793   echo $ECHO_N "(cached) $ECHO_C" >&6
30794 else
30795   cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30803 #define connect innocuous_connect
30804
30805 /* System header to define __stub macros and hopefully few prototypes,
30806     which can conflict with char connect (); below.
30807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808     <limits.h> exists even on freestanding compilers.  */
30809
30810 #ifdef __STDC__
30811 # include <limits.h>
30812 #else
30813 # include <assert.h>
30814 #endif
30815
30816 #undef connect
30817
30818 /* Override any GCC internal prototype to avoid an error.
30819    Use char because int might match the return type of a GCC
30820    builtin and then its argument prototype would still apply.  */
30821 #ifdef __cplusplus
30822 extern "C"
30823 #endif
30824 char connect ();
30825 /* The GNU C library defines this for functions which it implements
30826     to always fail with ENOSYS.  Some functions are actually named
30827     something starting with __ and the normal name is an alias.  */
30828 #if defined __stub_connect || defined __stub___connect
30829 choke me
30830 #endif
30831
30832 int
30833 main ()
30834 {
30835 return connect ();
30836   ;
30837   return 0;
30838 }
30839 _ACEOF
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844   *) ac_try_echo=$ac_try;;
30845 esac
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847   (eval "$ac_link") 2>conftest.er1
30848   ac_status=$?
30849   grep -v '^ *+' conftest.er1 >conftest.err
30850   rm -f conftest.er1
30851   cat conftest.err >&5
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); } && {
30854          test -z "$ac_c_werror_flag" ||
30855          test ! -s conftest.err
30856        } && test -s conftest$ac_exeext &&
30857        $as_test_x conftest$ac_exeext; then
30858   ac_cv_func_connect=yes
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863         ac_cv_func_connect=no
30864 fi
30865
30866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30867       conftest$ac_exeext conftest.$ac_ext
30868 fi
30869 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30870 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30871
30872     if test $ac_cv_func_connect = no; then
30873       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30874 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30875 if test "${ac_cv_lib_socket_connect+set}" = set; then
30876   echo $ECHO_N "(cached) $ECHO_C" >&6
30877 else
30878   ac_check_lib_save_LIBS=$LIBS
30879 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30880 cat >conftest.$ac_ext <<_ACEOF
30881 /* confdefs.h.  */
30882 _ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h.  */
30886
30887 /* Override any GCC internal prototype to avoid an error.
30888    Use char because int might match the return type of a GCC
30889    builtin and then its argument prototype would still apply.  */
30890 #ifdef __cplusplus
30891 extern "C"
30892 #endif
30893 char connect ();
30894 int
30895 main ()
30896 {
30897 return connect ();
30898   ;
30899   return 0;
30900 }
30901 _ACEOF
30902 rm -f conftest.$ac_objext conftest$ac_exeext
30903 if { (ac_try="$ac_link"
30904 case "(($ac_try" in
30905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30906   *) ac_try_echo=$ac_try;;
30907 esac
30908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30909   (eval "$ac_link") 2>conftest.er1
30910   ac_status=$?
30911   grep -v '^ *+' conftest.er1 >conftest.err
30912   rm -f conftest.er1
30913   cat conftest.err >&5
30914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915   (exit $ac_status); } && {
30916          test -z "$ac_c_werror_flag" ||
30917          test ! -s conftest.err
30918        } && test -s conftest$ac_exeext &&
30919        $as_test_x conftest$ac_exeext; then
30920   ac_cv_lib_socket_connect=yes
30921 else
30922   echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30924
30925         ac_cv_lib_socket_connect=no
30926 fi
30927
30928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30929       conftest$ac_exeext conftest.$ac_ext
30930 LIBS=$ac_check_lib_save_LIBS
30931 fi
30932 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30933 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30934 if test $ac_cv_lib_socket_connect = yes; then
30935   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30936 fi
30937
30938     fi
30939
30940     # Guillermo Gomez says -lposix is necessary on A/UX.
30941     { echo "$as_me:$LINENO: checking for remove" >&5
30942 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30943 if test "${ac_cv_func_remove+set}" = set; then
30944   echo $ECHO_N "(cached) $ECHO_C" >&6
30945 else
30946   cat >conftest.$ac_ext <<_ACEOF
30947 /* confdefs.h.  */
30948 _ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h.  */
30952 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30954 #define remove innocuous_remove
30955
30956 /* System header to define __stub macros and hopefully few prototypes,
30957     which can conflict with char remove (); below.
30958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30959     <limits.h> exists even on freestanding compilers.  */
30960
30961 #ifdef __STDC__
30962 # include <limits.h>
30963 #else
30964 # include <assert.h>
30965 #endif
30966
30967 #undef remove
30968
30969 /* Override any GCC internal prototype to avoid an error.
30970    Use char because int might match the return type of a GCC
30971    builtin and then its argument prototype would still apply.  */
30972 #ifdef __cplusplus
30973 extern "C"
30974 #endif
30975 char remove ();
30976 /* The GNU C library defines this for functions which it implements
30977     to always fail with ENOSYS.  Some functions are actually named
30978     something starting with __ and the normal name is an alias.  */
30979 #if defined __stub_remove || defined __stub___remove
30980 choke me
30981 #endif
30982
30983 int
30984 main ()
30985 {
30986 return remove ();
30987   ;
30988   return 0;
30989 }
30990 _ACEOF
30991 rm -f conftest.$ac_objext conftest$ac_exeext
30992 if { (ac_try="$ac_link"
30993 case "(($ac_try" in
30994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995   *) ac_try_echo=$ac_try;;
30996 esac
30997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998   (eval "$ac_link") 2>conftest.er1
30999   ac_status=$?
31000   grep -v '^ *+' conftest.er1 >conftest.err
31001   rm -f conftest.er1
31002   cat conftest.err >&5
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); } && {
31005          test -z "$ac_c_werror_flag" ||
31006          test ! -s conftest.err
31007        } && test -s conftest$ac_exeext &&
31008        $as_test_x conftest$ac_exeext; then
31009   ac_cv_func_remove=yes
31010 else
31011   echo "$as_me: failed program was:" >&5
31012 sed 's/^/| /' conftest.$ac_ext >&5
31013
31014         ac_cv_func_remove=no
31015 fi
31016
31017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31018       conftest$ac_exeext conftest.$ac_ext
31019 fi
31020 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31021 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31022
31023     if test $ac_cv_func_remove = no; then
31024       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31025 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31026 if test "${ac_cv_lib_posix_remove+set}" = set; then
31027   echo $ECHO_N "(cached) $ECHO_C" >&6
31028 else
31029   ac_check_lib_save_LIBS=$LIBS
31030 LIBS="-lposix  $LIBS"
31031 cat >conftest.$ac_ext <<_ACEOF
31032 /* confdefs.h.  */
31033 _ACEOF
31034 cat confdefs.h >>conftest.$ac_ext
31035 cat >>conftest.$ac_ext <<_ACEOF
31036 /* end confdefs.h.  */
31037
31038 /* Override any GCC internal prototype to avoid an error.
31039    Use char because int might match the return type of a GCC
31040    builtin and then its argument prototype would still apply.  */
31041 #ifdef __cplusplus
31042 extern "C"
31043 #endif
31044 char remove ();
31045 int
31046 main ()
31047 {
31048 return remove ();
31049   ;
31050   return 0;
31051 }
31052 _ACEOF
31053 rm -f conftest.$ac_objext conftest$ac_exeext
31054 if { (ac_try="$ac_link"
31055 case "(($ac_try" in
31056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31057   *) ac_try_echo=$ac_try;;
31058 esac
31059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31060   (eval "$ac_link") 2>conftest.er1
31061   ac_status=$?
31062   grep -v '^ *+' conftest.er1 >conftest.err
31063   rm -f conftest.er1
31064   cat conftest.err >&5
31065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066   (exit $ac_status); } && {
31067          test -z "$ac_c_werror_flag" ||
31068          test ! -s conftest.err
31069        } && test -s conftest$ac_exeext &&
31070        $as_test_x conftest$ac_exeext; then
31071   ac_cv_lib_posix_remove=yes
31072 else
31073   echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31075
31076         ac_cv_lib_posix_remove=no
31077 fi
31078
31079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31080       conftest$ac_exeext conftest.$ac_ext
31081 LIBS=$ac_check_lib_save_LIBS
31082 fi
31083 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31084 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31085 if test $ac_cv_lib_posix_remove = yes; then
31086   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31087 fi
31088
31089     fi
31090
31091     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31092     { echo "$as_me:$LINENO: checking for shmat" >&5
31093 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31094 if test "${ac_cv_func_shmat+set}" = set; then
31095   echo $ECHO_N "(cached) $ECHO_C" >&6
31096 else
31097   cat >conftest.$ac_ext <<_ACEOF
31098 /* confdefs.h.  */
31099 _ACEOF
31100 cat confdefs.h >>conftest.$ac_ext
31101 cat >>conftest.$ac_ext <<_ACEOF
31102 /* end confdefs.h.  */
31103 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31105 #define shmat innocuous_shmat
31106
31107 /* System header to define __stub macros and hopefully few prototypes,
31108     which can conflict with char shmat (); below.
31109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31110     <limits.h> exists even on freestanding compilers.  */
31111
31112 #ifdef __STDC__
31113 # include <limits.h>
31114 #else
31115 # include <assert.h>
31116 #endif
31117
31118 #undef shmat
31119
31120 /* Override any GCC internal prototype to avoid an error.
31121    Use char because int might match the return type of a GCC
31122    builtin and then its argument prototype would still apply.  */
31123 #ifdef __cplusplus
31124 extern "C"
31125 #endif
31126 char shmat ();
31127 /* The GNU C library defines this for functions which it implements
31128     to always fail with ENOSYS.  Some functions are actually named
31129     something starting with __ and the normal name is an alias.  */
31130 #if defined __stub_shmat || defined __stub___shmat
31131 choke me
31132 #endif
31133
31134 int
31135 main ()
31136 {
31137 return shmat ();
31138   ;
31139   return 0;
31140 }
31141 _ACEOF
31142 rm -f conftest.$ac_objext conftest$ac_exeext
31143 if { (ac_try="$ac_link"
31144 case "(($ac_try" in
31145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146   *) ac_try_echo=$ac_try;;
31147 esac
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149   (eval "$ac_link") 2>conftest.er1
31150   ac_status=$?
31151   grep -v '^ *+' conftest.er1 >conftest.err
31152   rm -f conftest.er1
31153   cat conftest.err >&5
31154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155   (exit $ac_status); } && {
31156          test -z "$ac_c_werror_flag" ||
31157          test ! -s conftest.err
31158        } && test -s conftest$ac_exeext &&
31159        $as_test_x conftest$ac_exeext; then
31160   ac_cv_func_shmat=yes
31161 else
31162   echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31164
31165         ac_cv_func_shmat=no
31166 fi
31167
31168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31169       conftest$ac_exeext conftest.$ac_ext
31170 fi
31171 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31172 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31173
31174     if test $ac_cv_func_shmat = no; then
31175       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31176 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31177 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31178   echo $ECHO_N "(cached) $ECHO_C" >&6
31179 else
31180   ac_check_lib_save_LIBS=$LIBS
31181 LIBS="-lipc  $LIBS"
31182 cat >conftest.$ac_ext <<_ACEOF
31183 /* confdefs.h.  */
31184 _ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h.  */
31188
31189 /* Override any GCC internal prototype to avoid an error.
31190    Use char because int might match the return type of a GCC
31191    builtin and then its argument prototype would still apply.  */
31192 #ifdef __cplusplus
31193 extern "C"
31194 #endif
31195 char shmat ();
31196 int
31197 main ()
31198 {
31199 return shmat ();
31200   ;
31201   return 0;
31202 }
31203 _ACEOF
31204 rm -f conftest.$ac_objext conftest$ac_exeext
31205 if { (ac_try="$ac_link"
31206 case "(($ac_try" in
31207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31208   *) ac_try_echo=$ac_try;;
31209 esac
31210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31211   (eval "$ac_link") 2>conftest.er1
31212   ac_status=$?
31213   grep -v '^ *+' conftest.er1 >conftest.err
31214   rm -f conftest.er1
31215   cat conftest.err >&5
31216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217   (exit $ac_status); } && {
31218          test -z "$ac_c_werror_flag" ||
31219          test ! -s conftest.err
31220        } && test -s conftest$ac_exeext &&
31221        $as_test_x conftest$ac_exeext; then
31222   ac_cv_lib_ipc_shmat=yes
31223 else
31224   echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31226
31227         ac_cv_lib_ipc_shmat=no
31228 fi
31229
31230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31231       conftest$ac_exeext conftest.$ac_ext
31232 LIBS=$ac_check_lib_save_LIBS
31233 fi
31234 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31235 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31236 if test $ac_cv_lib_ipc_shmat = yes; then
31237   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31238 fi
31239
31240     fi
31241   fi
31242
31243   # Check for libraries that X11R6 Xt/Xaw programs need.
31244   ac_save_LDFLAGS=$LDFLAGS
31245   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31246   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31247   # check for ICE first), but we must link in the order -lSM -lICE or
31248   # we get undefined symbols.  So assume we have SM if we have ICE.
31249   # These have to be linked with before -lX11, unlike the other
31250   # libraries we check for below, so use a different variable.
31251   # John Interrante, Karl Berry
31252   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31253 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31254 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31255   echo $ECHO_N "(cached) $ECHO_C" >&6
31256 else
31257   ac_check_lib_save_LIBS=$LIBS
31258 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31259 cat >conftest.$ac_ext <<_ACEOF
31260 /* confdefs.h.  */
31261 _ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h.  */
31265
31266 /* Override any GCC internal prototype to avoid an error.
31267    Use char because int might match the return type of a GCC
31268    builtin and then its argument prototype would still apply.  */
31269 #ifdef __cplusplus
31270 extern "C"
31271 #endif
31272 char IceConnectionNumber ();
31273 int
31274 main ()
31275 {
31276 return IceConnectionNumber ();
31277   ;
31278   return 0;
31279 }
31280 _ACEOF
31281 rm -f conftest.$ac_objext conftest$ac_exeext
31282 if { (ac_try="$ac_link"
31283 case "(($ac_try" in
31284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285   *) ac_try_echo=$ac_try;;
31286 esac
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288   (eval "$ac_link") 2>conftest.er1
31289   ac_status=$?
31290   grep -v '^ *+' conftest.er1 >conftest.err
31291   rm -f conftest.er1
31292   cat conftest.err >&5
31293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294   (exit $ac_status); } && {
31295          test -z "$ac_c_werror_flag" ||
31296          test ! -s conftest.err
31297        } && test -s conftest$ac_exeext &&
31298        $as_test_x conftest$ac_exeext; then
31299   ac_cv_lib_ICE_IceConnectionNumber=yes
31300 else
31301   echo "$as_me: failed program was:" >&5
31302 sed 's/^/| /' conftest.$ac_ext >&5
31303
31304         ac_cv_lib_ICE_IceConnectionNumber=no
31305 fi
31306
31307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31308       conftest$ac_exeext conftest.$ac_ext
31309 LIBS=$ac_check_lib_save_LIBS
31310 fi
31311 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31312 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31313 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31314   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31315 fi
31316
31317   LDFLAGS=$ac_save_LDFLAGS
31318
31319 fi
31320
31321
31322         if test "$no_x" = "yes"; then
31323           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31324 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31325    { (exit 1); exit 1; }; }
31326         fi
31327
31328                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31329         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31330         AFMINSTALL=afminstall
31331         COMPILED_X_PROGRAM=0
31332
31333     fi
31334
31335     if test "$wxUSE_X11" = 1; then
31336         if test "$wxUSE_NANOX" = "yes"; then
31337             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31338 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31339             if test "x$MICROWIN" = x ; then
31340                 { echo "$as_me:$LINENO: result: not found" >&5
31341 echo "${ECHO_T}not found" >&6; }
31342                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31343 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31344    { (exit 1); exit 1; }; }
31345             else
31346                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31347 echo "${ECHO_T}$MICROWIN" >&6; }
31348                 cat >>confdefs.h <<\_ACEOF
31349 #define wxUSE_NANOX 1
31350 _ACEOF
31351
31352             fi
31353         fi
31354
31355         if test "$wxUSE_UNICODE" = "yes"; then
31356
31357
31358 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31359         if test -n "$ac_tool_prefix"; then
31360   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31361 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31365   echo $ECHO_N "(cached) $ECHO_C" >&6
31366 else
31367   case $PKG_CONFIG in
31368   [\\/]* | ?:[\\/]*)
31369   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31370   ;;
31371   *)
31372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31373 for as_dir in $PATH
31374 do
31375   IFS=$as_save_IFS
31376   test -z "$as_dir" && as_dir=.
31377   for ac_exec_ext in '' $ac_executable_extensions; do
31378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31379     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31381     break 2
31382   fi
31383 done
31384 done
31385 IFS=$as_save_IFS
31386
31387   ;;
31388 esac
31389 fi
31390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31391 if test -n "$PKG_CONFIG"; then
31392   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31393 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31394 else
31395   { echo "$as_me:$LINENO: result: no" >&5
31396 echo "${ECHO_T}no" >&6; }
31397 fi
31398
31399
31400 fi
31401 if test -z "$ac_cv_path_PKG_CONFIG"; then
31402   ac_pt_PKG_CONFIG=$PKG_CONFIG
31403   # Extract the first word of "pkg-config", so it can be a program name with args.
31404 set dummy pkg-config; ac_word=$2
31405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31407 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31408   echo $ECHO_N "(cached) $ECHO_C" >&6
31409 else
31410   case $ac_pt_PKG_CONFIG in
31411   [\\/]* | ?:[\\/]*)
31412   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31413   ;;
31414   *)
31415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31416 for as_dir in $PATH
31417 do
31418   IFS=$as_save_IFS
31419   test -z "$as_dir" && as_dir=.
31420   for ac_exec_ext in '' $ac_executable_extensions; do
31421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31422     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31424     break 2
31425   fi
31426 done
31427 done
31428 IFS=$as_save_IFS
31429
31430   ;;
31431 esac
31432 fi
31433 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31434 if test -n "$ac_pt_PKG_CONFIG"; then
31435   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31436 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31437 else
31438   { echo "$as_me:$LINENO: result: no" >&5
31439 echo "${ECHO_T}no" >&6; }
31440 fi
31441
31442   if test "x$ac_pt_PKG_CONFIG" = x; then
31443     PKG_CONFIG=""
31444   else
31445     case $cross_compiling:$ac_tool_warned in
31446 yes:)
31447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31448 whose name does not start with the host triplet.  If you think this
31449 configuration is useful to you, please write to autoconf@gnu.org." >&5
31450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31451 whose name does not start with the host triplet.  If you think this
31452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31453 ac_tool_warned=yes ;;
31454 esac
31455     PKG_CONFIG=$ac_pt_PKG_CONFIG
31456   fi
31457 else
31458   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31459 fi
31460
31461 fi
31462 if test -n "$PKG_CONFIG"; then
31463         _pkg_min_version=0.9.0
31464         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31465 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31466         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31467                 { echo "$as_me:$LINENO: result: yes" >&5
31468 echo "${ECHO_T}yes" >&6; }
31469         else
31470                 { echo "$as_me:$LINENO: result: no" >&5
31471 echo "${ECHO_T}no" >&6; }
31472                 PKG_CONFIG=""
31473         fi
31474
31475 fi
31476
31477
31478 pkg_failed=no
31479 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31480 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31481
31482 if test -n "$PKG_CONFIG"; then
31483     if test -n "$PANGOX_CFLAGS"; then
31484         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31485     else
31486         if test -n "$PKG_CONFIG" && \
31487     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31488   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31489   ac_status=$?
31490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491   (exit $ac_status); }; then
31492   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31493 else
31494   pkg_failed=yes
31495 fi
31496     fi
31497 else
31498         pkg_failed=untried
31499 fi
31500 if test -n "$PKG_CONFIG"; then
31501     if test -n "$PANGOX_LIBS"; then
31502         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31503     else
31504         if test -n "$PKG_CONFIG" && \
31505     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31506   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31507   ac_status=$?
31508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509   (exit $ac_status); }; then
31510   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31511 else
31512   pkg_failed=yes
31513 fi
31514     fi
31515 else
31516         pkg_failed=untried
31517 fi
31518
31519
31520
31521 if test $pkg_failed = yes; then
31522
31523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31524         _pkg_short_errors_supported=yes
31525 else
31526         _pkg_short_errors_supported=no
31527 fi
31528         if test $_pkg_short_errors_supported = yes; then
31529                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31530         else
31531                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31532         fi
31533         # Put the nasty error message in config.log where it belongs
31534         echo "$PANGOX_PKG_ERRORS" >&5
31535
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 elif test $pkg_failed = untried; then
31543
31544                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31545 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31546    { (exit 1); exit 1; }; }
31547
31548
31549 else
31550         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31551         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31552         { echo "$as_me:$LINENO: result: yes" >&5
31553 echo "${ECHO_T}yes" >&6; }
31554
31555                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31556                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31557                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31558
31559 fi
31560
31561 pkg_failed=no
31562 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31563 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31564
31565 if test -n "$PKG_CONFIG"; then
31566     if test -n "$PANGOFT2_CFLAGS"; then
31567         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31568     else
31569         if test -n "$PKG_CONFIG" && \
31570     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31571   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31572   ac_status=$?
31573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574   (exit $ac_status); }; then
31575   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31576 else
31577   pkg_failed=yes
31578 fi
31579     fi
31580 else
31581         pkg_failed=untried
31582 fi
31583 if test -n "$PKG_CONFIG"; then
31584     if test -n "$PANGOFT2_LIBS"; then
31585         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31586     else
31587         if test -n "$PKG_CONFIG" && \
31588     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31589   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31590   ac_status=$?
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); }; then
31593   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31594 else
31595   pkg_failed=yes
31596 fi
31597     fi
31598 else
31599         pkg_failed=untried
31600 fi
31601
31602
31603
31604 if test $pkg_failed = yes; then
31605
31606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31607         _pkg_short_errors_supported=yes
31608 else
31609         _pkg_short_errors_supported=no
31610 fi
31611         if test $_pkg_short_errors_supported = yes; then
31612                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31613         else
31614                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31615         fi
31616         # Put the nasty error message in config.log where it belongs
31617         echo "$PANGOFT2_PKG_ERRORS" >&5
31618
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 elif test $pkg_failed = untried; then
31626
31627                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31628 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31629                     wxUSE_PRINTING_ARCHITECTURE="no"
31630
31631
31632 else
31633         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31634         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31635         { echo "$as_me:$LINENO: result: yes" >&5
31636 echo "${ECHO_T}yes" >&6; }
31637
31638                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31639                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31640                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31641
31642 fi
31643
31644 pkg_failed=no
31645 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31646 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31647
31648 if test -n "$PKG_CONFIG"; then
31649     if test -n "$PANGOXFT_CFLAGS"; then
31650         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31651     else
31652         if test -n "$PKG_CONFIG" && \
31653     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31654   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31655   ac_status=$?
31656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657   (exit $ac_status); }; then
31658   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31659 else
31660   pkg_failed=yes
31661 fi
31662     fi
31663 else
31664         pkg_failed=untried
31665 fi
31666 if test -n "$PKG_CONFIG"; then
31667     if test -n "$PANGOXFT_LIBS"; then
31668         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31669     else
31670         if test -n "$PKG_CONFIG" && \
31671     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31672   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31673   ac_status=$?
31674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675   (exit $ac_status); }; then
31676   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31677 else
31678   pkg_failed=yes
31679 fi
31680     fi
31681 else
31682         pkg_failed=untried
31683 fi
31684
31685
31686
31687 if test $pkg_failed = yes; then
31688
31689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31690         _pkg_short_errors_supported=yes
31691 else
31692         _pkg_short_errors_supported=no
31693 fi
31694         if test $_pkg_short_errors_supported = yes; then
31695                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31696         else
31697                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31698         fi
31699         # Put the nasty error message in config.log where it belongs
31700         echo "$PANGOXFT_PKG_ERRORS" >&5
31701
31702
31703                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31704 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31705
31706
31707 elif test $pkg_failed = untried; then
31708
31709                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31710 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31711
31712
31713 else
31714         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31715         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31716         { echo "$as_me:$LINENO: result: yes" >&5
31717 echo "${ECHO_T}yes" >&6; }
31718
31719                     cat >>confdefs.h <<\_ACEOF
31720 #define HAVE_PANGO_XFT 1
31721 _ACEOF
31722
31723                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31724                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31725                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31726
31727 fi
31728             save_LIBS="$LIBS"
31729             LIBS="$LIBS $PANGOX_LIBS"
31730
31731 for ac_func in pango_font_family_is_monospace
31732 do
31733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31737   echo $ECHO_N "(cached) $ECHO_C" >&6
31738 else
31739   cat >conftest.$ac_ext <<_ACEOF
31740 /* confdefs.h.  */
31741 _ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h.  */
31745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31747 #define $ac_func innocuous_$ac_func
31748
31749 /* System header to define __stub macros and hopefully few prototypes,
31750     which can conflict with char $ac_func (); below.
31751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31752     <limits.h> exists even on freestanding compilers.  */
31753
31754 #ifdef __STDC__
31755 # include <limits.h>
31756 #else
31757 # include <assert.h>
31758 #endif
31759
31760 #undef $ac_func
31761
31762 /* Override any GCC internal prototype to avoid an error.
31763    Use char because int might match the return type of a GCC
31764    builtin and then its argument prototype would still apply.  */
31765 #ifdef __cplusplus
31766 extern "C"
31767 #endif
31768 char $ac_func ();
31769 /* The GNU C library defines this for functions which it implements
31770     to always fail with ENOSYS.  Some functions are actually named
31771     something starting with __ and the normal name is an alias.  */
31772 #if defined __stub_$ac_func || defined __stub___$ac_func
31773 choke me
31774 #endif
31775
31776 int
31777 main ()
31778 {
31779 return $ac_func ();
31780   ;
31781   return 0;
31782 }
31783 _ACEOF
31784 rm -f conftest.$ac_objext conftest$ac_exeext
31785 if { (ac_try="$ac_link"
31786 case "(($ac_try" in
31787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788   *) ac_try_echo=$ac_try;;
31789 esac
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791   (eval "$ac_link") 2>conftest.er1
31792   ac_status=$?
31793   grep -v '^ *+' conftest.er1 >conftest.err
31794   rm -f conftest.er1
31795   cat conftest.err >&5
31796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797   (exit $ac_status); } && {
31798          test -z "$ac_c_werror_flag" ||
31799          test ! -s conftest.err
31800        } && test -s conftest$ac_exeext &&
31801        $as_test_x conftest$ac_exeext; then
31802   eval "$as_ac_var=yes"
31803 else
31804   echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31806
31807         eval "$as_ac_var=no"
31808 fi
31809
31810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31811       conftest$ac_exeext conftest.$ac_ext
31812 fi
31813 ac_res=`eval echo '${'$as_ac_var'}'`
31814                { echo "$as_me:$LINENO: result: $ac_res" >&5
31815 echo "${ECHO_T}$ac_res" >&6; }
31816 if test `eval echo '${'$as_ac_var'}'` = yes; then
31817   cat >>confdefs.h <<_ACEOF
31818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31819 _ACEOF
31820
31821 fi
31822 done
31823
31824             LIBS="$save_LIBS"
31825         fi
31826
31827         wxUSE_UNIVERSAL="yes"
31828
31829         if test "$wxUSE_NANOX" = "yes"; then
31830             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31831             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"
31832             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31833         else
31834             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31835         fi
31836
31837         TOOLKIT=X11
31838         GUIDIST=X11_DIST
31839     fi
31840
31841     if test "$wxUSE_MOTIF" = 1; then
31842         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31843 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31844
31845 ac_find_includes=
31846 for ac_dir in $SEARCH_INCLUDE /usr/include;
31847   do
31848     if test -f "$ac_dir/Xm/Xm.h"; then
31849       ac_find_includes=$ac_dir
31850       break
31851     fi
31852   done
31853
31854         if test "$ac_find_includes" != "" ; then
31855             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31856 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31857
31858     if test "x$ac_find_includes" = "x/usr/include"; then
31859     ac_path_to_include=""
31860   else
31861     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31862     result=$?
31863     if test $result = 0; then
31864       ac_path_to_include=""
31865     else
31866       ac_path_to_include=" -I$ac_find_includes"
31867     fi
31868   fi
31869
31870             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31871         else
31872             save_CFLAGS=$CFLAGS
31873             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31874
31875             cat >conftest.$ac_ext <<_ACEOF
31876 /* confdefs.h.  */
31877 _ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h.  */
31881
31882                     #include <Xm/Xm.h>
31883
31884 int
31885 main ()
31886 {
31887
31888                     int version;
31889                     version = xmUseVersion;
31890
31891   ;
31892   return 0;
31893 }
31894 _ACEOF
31895 rm -f conftest.$ac_objext
31896 if { (ac_try="$ac_compile"
31897 case "(($ac_try" in
31898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899   *) ac_try_echo=$ac_try;;
31900 esac
31901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902   (eval "$ac_compile") 2>conftest.er1
31903   ac_status=$?
31904   grep -v '^ *+' conftest.er1 >conftest.err
31905   rm -f conftest.er1
31906   cat conftest.err >&5
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); } && {
31909          test -z "$ac_c_werror_flag" ||
31910          test ! -s conftest.err
31911        } && test -s conftest.$ac_objext; then
31912
31913                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31914 echo "${ECHO_T}found in default search path" >&6; }
31915                     COMPILED_X_PROGRAM=1
31916
31917 else
31918   echo "$as_me: failed program was:" >&5
31919 sed 's/^/| /' conftest.$ac_ext >&5
31920
31921
31922                     { echo "$as_me:$LINENO: result: no" >&5
31923 echo "${ECHO_T}no" >&6; }
31924                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31925 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31926    { (exit 1); exit 1; }; }
31927
31928
31929 fi
31930
31931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31932
31933             CFLAGS=$save_CFLAGS
31934         fi
31935
31936
31937         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31938 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31939
31940   ac_find_libraries=
31941   for ac_dir in $SEARCH_LIB;
31942   do
31943     for ac_extension in a so sl dylib dll.a; do
31944       if test -f "$ac_dir/libXm.$ac_extension"; then
31945         ac_find_libraries=$ac_dir
31946         break 2
31947       fi
31948     done
31949   done
31950
31951
31952         if test "x$ac_find_libraries" != "x" ; then
31953             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31954 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31955
31956
31957     if test "$ac_find_libraries" = "default location"; then
31958     ac_path_to_link=""
31959   else
31960     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31961     result=$?
31962     if test $result = 0; then
31963       ac_path_to_link=""
31964     else
31965       ac_path_to_link=" -L$ac_find_libraries"
31966     fi
31967   fi
31968
31969             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31970         else
31971                                                 save_CFLAGS=$CFLAGS
31972             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31973             save_LIBS="$LIBS"
31974             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31975
31976             cat >conftest.$ac_ext <<_ACEOF
31977 /* confdefs.h.  */
31978 _ACEOF
31979 cat confdefs.h >>conftest.$ac_ext
31980 cat >>conftest.$ac_ext <<_ACEOF
31981 /* end confdefs.h.  */
31982
31983                     #include <Xm/Xm.h>
31984
31985 int
31986 main ()
31987 {
31988
31989                     int version;
31990                     version = xmUseVersion;
31991
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext conftest$ac_exeext
31997 if { (ac_try="$ac_link"
31998 case "(($ac_try" in
31999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000   *) ac_try_echo=$ac_try;;
32001 esac
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003   (eval "$ac_link") 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } && {
32010          test -z "$ac_c_werror_flag" ||
32011          test ! -s conftest.err
32012        } && test -s conftest$ac_exeext &&
32013        $as_test_x conftest$ac_exeext; then
32014
32015                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32016 echo "${ECHO_T}found in default search path" >&6; }
32017                     COMPILED_X_PROGRAM=1
32018
32019 else
32020   echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32022
32023
32024                     { echo "$as_me:$LINENO: result: no" >&5
32025 echo "${ECHO_T}no" >&6; }
32026                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32027 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32028    { (exit 1); exit 1; }; }
32029
32030
32031 fi
32032
32033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32034       conftest$ac_exeext conftest.$ac_ext
32035
32036             CFLAGS=$save_CFLAGS
32037             LIBS="$save_LIBS"
32038         fi
32039
32040         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32041 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32042         libp_link=""
32043         libsm_ice_link=""
32044         libs_found=0
32045         for libp in "" " -lXp"; do
32046             if test "$libs_found" = 0; then
32047                 for libsm_ice in "" " -lSM -lICE"; do
32048                     if test "$libs_found" = 0; then
32049                         save_LIBS="$LIBS"
32050                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32051                         save_CFLAGS=$CFLAGS
32052                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32053
32054                         cat >conftest.$ac_ext <<_ACEOF
32055 /* confdefs.h.  */
32056 _ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h.  */
32060
32061                                 #include <Xm/Xm.h>
32062                                 #include <Xm/List.h>
32063
32064 int
32065 main ()
32066 {
32067
32068                                 XmString string = NULL;
32069                                 Widget w = NULL;
32070                                 int position = 0;
32071                                 XmListAddItem(w, string, position);
32072
32073   ;
32074   return 0;
32075 }
32076 _ACEOF
32077 rm -f conftest.$ac_objext conftest$ac_exeext
32078 if { (ac_try="$ac_link"
32079 case "(($ac_try" in
32080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081   *) ac_try_echo=$ac_try;;
32082 esac
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084   (eval "$ac_link") 2>conftest.er1
32085   ac_status=$?
32086   grep -v '^ *+' conftest.er1 >conftest.err
32087   rm -f conftest.er1
32088   cat conftest.err >&5
32089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090   (exit $ac_status); } && {
32091          test -z "$ac_c_werror_flag" ||
32092          test ! -s conftest.err
32093        } && test -s conftest$ac_exeext &&
32094        $as_test_x conftest$ac_exeext; then
32095
32096                                 libp_link="$libp"
32097                                 libsm_ice_link="$libsm_ice"
32098                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32099 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32100                                 libs_found=1
32101
32102 else
32103   echo "$as_me: failed program was:" >&5
32104 sed 's/^/| /' conftest.$ac_ext >&5
32105
32106
32107
32108 fi
32109
32110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32111       conftest$ac_exeext conftest.$ac_ext
32112
32113                         LIBS="$save_LIBS"
32114                         CFLAGS=$save_CFLAGS
32115                     fi
32116                 done
32117             fi
32118         done
32119
32120         if test "$libs_found" = 0; then
32121             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32122 echo "${ECHO_T}can't find the right libraries" >&6; }
32123             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32124 echo "$as_me: error: can't link a simple motif program" >&2;}
32125    { (exit 1); exit 1; }; }
32126         fi
32127
32128                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32129 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32130 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32131   echo $ECHO_N "(cached) $ECHO_C" >&6
32132 else
32133   ac_check_lib_save_LIBS=$LIBS
32134 LIBS="-lSgm  $LIBS"
32135 cat >conftest.$ac_ext <<_ACEOF
32136 /* confdefs.h.  */
32137 _ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h.  */
32141
32142 /* Override any GCC internal prototype to avoid an error.
32143    Use char because int might match the return type of a GCC
32144    builtin and then its argument prototype would still apply.  */
32145 #ifdef __cplusplus
32146 extern "C"
32147 #endif
32148 char SgCreateList ();
32149 int
32150 main ()
32151 {
32152 return SgCreateList ();
32153   ;
32154   return 0;
32155 }
32156 _ACEOF
32157 rm -f conftest.$ac_objext conftest$ac_exeext
32158 if { (ac_try="$ac_link"
32159 case "(($ac_try" in
32160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161   *) ac_try_echo=$ac_try;;
32162 esac
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164   (eval "$ac_link") 2>conftest.er1
32165   ac_status=$?
32166   grep -v '^ *+' conftest.er1 >conftest.err
32167   rm -f conftest.er1
32168   cat conftest.err >&5
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); } && {
32171          test -z "$ac_c_werror_flag" ||
32172          test ! -s conftest.err
32173        } && test -s conftest$ac_exeext &&
32174        $as_test_x conftest$ac_exeext; then
32175   ac_cv_lib_Sgm_SgCreateList=yes
32176 else
32177   echo "$as_me: failed program was:" >&5
32178 sed 's/^/| /' conftest.$ac_ext >&5
32179
32180         ac_cv_lib_Sgm_SgCreateList=no
32181 fi
32182
32183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32184       conftest$ac_exeext conftest.$ac_ext
32185 LIBS=$ac_check_lib_save_LIBS
32186 fi
32187 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32188 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32189 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32190   libsgm_link=" -lSgm"
32191 fi
32192
32193
32194         save_CFLAGS=$CFLAGS
32195         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32196
32197         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32198 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32199 if test "${wx_cv_lib_motif2+set}" = set; then
32200   echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202   cat >conftest.$ac_ext <<_ACEOF
32203 /* confdefs.h.  */
32204 _ACEOF
32205 cat confdefs.h >>conftest.$ac_ext
32206 cat >>conftest.$ac_ext <<_ACEOF
32207 /* end confdefs.h.  */
32208
32209                             #include <Xm/Xm.h>
32210
32211 int
32212 main ()
32213 {
32214
32215                             #if XmVersion < 2000
32216                             Not Motif 2
32217                             #endif
32218
32219   ;
32220   return 0;
32221 }
32222 _ACEOF
32223 rm -f conftest.$ac_objext
32224 if { (ac_try="$ac_compile"
32225 case "(($ac_try" in
32226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227   *) ac_try_echo=$ac_try;;
32228 esac
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230   (eval "$ac_compile") 2>conftest.er1
32231   ac_status=$?
32232   grep -v '^ *+' conftest.er1 >conftest.err
32233   rm -f conftest.er1
32234   cat conftest.err >&5
32235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236   (exit $ac_status); } && {
32237          test -z "$ac_c_werror_flag" ||
32238          test ! -s conftest.err
32239        } && test -s conftest.$ac_objext; then
32240   wx_cv_lib_motif2="yes"
32241 else
32242   echo "$as_me: failed program was:" >&5
32243 sed 's/^/| /' conftest.$ac_ext >&5
32244
32245         wx_cv_lib_motif2="no"
32246 fi
32247
32248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32249 fi
32250 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32251 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32252         if test "$wx_cv_lib_motif2" = "yes"; then
32253             cat >>confdefs.h <<\_ACEOF
32254 #define __WXMOTIF20__ 1
32255 _ACEOF
32256
32257         else
32258             cat >>confdefs.h <<\_ACEOF
32259 #define __WXMOTIF20__ 0
32260 _ACEOF
32261
32262         fi
32263
32264         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32265 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32266 if test "${wx_cv_lib_lesstif+set}" = set; then
32267   echo $ECHO_N "(cached) $ECHO_C" >&6
32268 else
32269   cat >conftest.$ac_ext <<_ACEOF
32270 /* confdefs.h.  */
32271 _ACEOF
32272 cat confdefs.h >>conftest.$ac_ext
32273 cat >>conftest.$ac_ext <<_ACEOF
32274 /* end confdefs.h.  */
32275
32276                             #include <Xm/Xm.h>
32277
32278 int
32279 main ()
32280 {
32281
32282                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32283                             Not Lesstif
32284                             #endif
32285
32286   ;
32287   return 0;
32288 }
32289 _ACEOF
32290 rm -f conftest.$ac_objext
32291 if { (ac_try="$ac_compile"
32292 case "(($ac_try" in
32293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294   *) ac_try_echo=$ac_try;;
32295 esac
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297   (eval "$ac_compile") 2>conftest.er1
32298   ac_status=$?
32299   grep -v '^ *+' conftest.er1 >conftest.err
32300   rm -f conftest.er1
32301   cat conftest.err >&5
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); } && {
32304          test -z "$ac_c_werror_flag" ||
32305          test ! -s conftest.err
32306        } && test -s conftest.$ac_objext; then
32307   wx_cv_lib_lesstif="yes"
32308 else
32309   echo "$as_me: failed program was:" >&5
32310 sed 's/^/| /' conftest.$ac_ext >&5
32311
32312         wx_cv_lib_lesstif="no"
32313 fi
32314
32315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32316
32317 fi
32318 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32319 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32320         if test "$wx_cv_lib_lesstif" = "yes"; then
32321             cat >>confdefs.h <<\_ACEOF
32322 #define __WXLESSTIF__ 1
32323 _ACEOF
32324
32325         else
32326             cat >>confdefs.h <<\_ACEOF
32327 #define __WXLESSTIF__ 0
32328 _ACEOF
32329
32330         fi
32331
32332         CFLAGS=$save_CFLAGS
32333
32334         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32335         TOOLKIT=MOTIF
32336         GUIDIST=MOTIF_DIST
32337     fi
32338
32339         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32340                 if test "$wxUSE_LIBXPM" = "sys"; then
32341             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32342 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32343
32344   ac_find_libraries=
32345   for ac_dir in $SEARCH_LIB;
32346   do
32347     for ac_extension in a so sl dylib dll.a; do
32348       if test -f "$ac_dir/libXpm.$ac_extension"; then
32349         ac_find_libraries=$ac_dir
32350         break 2
32351       fi
32352     done
32353   done
32354
32355             if test "$ac_find_libraries" != "" ; then
32356
32357     if test "$ac_find_libraries" = "default location"; then
32358     ac_path_to_link=""
32359   else
32360     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32361     result=$?
32362     if test $result = 0; then
32363       ac_path_to_link=""
32364     else
32365       ac_path_to_link=" -L$ac_find_libraries"
32366     fi
32367   fi
32368
32369                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32370                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32371 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32372
32373                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32374 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32375 if test "${wx_cv_x11_xpm_h+set}" = set; then
32376   echo $ECHO_N "(cached) $ECHO_C" >&6
32377 else
32378
32379                         save_CFLAGS=$CFLAGS
32380                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32381
32382                         cat >conftest.$ac_ext <<_ACEOF
32383 /* confdefs.h.  */
32384 _ACEOF
32385 cat confdefs.h >>conftest.$ac_ext
32386 cat >>conftest.$ac_ext <<_ACEOF
32387 /* end confdefs.h.  */
32388
32389                                 #include <X11/xpm.h>
32390
32391 int
32392 main ()
32393 {
32394
32395                                 int version;
32396                                 version = XpmLibraryVersion();
32397
32398   ;
32399   return 0;
32400 }
32401 _ACEOF
32402 rm -f conftest.$ac_objext
32403 if { (ac_try="$ac_compile"
32404 case "(($ac_try" in
32405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406   *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409   (eval "$ac_compile") 2>conftest.er1
32410   ac_status=$?
32411   grep -v '^ *+' conftest.er1 >conftest.err
32412   rm -f conftest.er1
32413   cat conftest.err >&5
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); } && {
32416          test -z "$ac_c_werror_flag" ||
32417          test ! -s conftest.err
32418        } && test -s conftest.$ac_objext; then
32419   wx_cv_x11_xpm_h=yes
32420 else
32421   echo "$as_me: failed program was:" >&5
32422 sed 's/^/| /' conftest.$ac_ext >&5
32423
32424         wx_cv_x11_xpm_h=no
32425
32426 fi
32427
32428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32429
32430                         CFLAGS=$save_CFLAGS
32431
32432
32433 fi
32434 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32435 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32436
32437                 if test $wx_cv_x11_xpm_h = "yes"; then
32438                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32439                     cat >>confdefs.h <<\_ACEOF
32440 #define wxHAVE_LIB_XPM 1
32441 _ACEOF
32442
32443                 else
32444                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32445 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32446                 fi
32447             fi
32448
32449         fi
32450
32451                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32452 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32453 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32454   echo $ECHO_N "(cached) $ECHO_C" >&6
32455 else
32456   ac_check_lib_save_LIBS=$LIBS
32457 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32458 cat >conftest.$ac_ext <<_ACEOF
32459 /* confdefs.h.  */
32460 _ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h.  */
32464
32465 /* Override any GCC internal prototype to avoid an error.
32466    Use char because int might match the return type of a GCC
32467    builtin and then its argument prototype would still apply.  */
32468 #ifdef __cplusplus
32469 extern "C"
32470 #endif
32471 char XShapeQueryExtension ();
32472 int
32473 main ()
32474 {
32475 return XShapeQueryExtension ();
32476   ;
32477   return 0;
32478 }
32479 _ACEOF
32480 rm -f conftest.$ac_objext conftest$ac_exeext
32481 if { (ac_try="$ac_link"
32482 case "(($ac_try" in
32483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484   *) ac_try_echo=$ac_try;;
32485 esac
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487   (eval "$ac_link") 2>conftest.er1
32488   ac_status=$?
32489   grep -v '^ *+' conftest.er1 >conftest.err
32490   rm -f conftest.er1
32491   cat conftest.err >&5
32492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493   (exit $ac_status); } && {
32494          test -z "$ac_c_werror_flag" ||
32495          test ! -s conftest.err
32496        } && test -s conftest$ac_exeext &&
32497        $as_test_x conftest$ac_exeext; then
32498   ac_cv_lib_Xext_XShapeQueryExtension=yes
32499 else
32500   echo "$as_me: failed program was:" >&5
32501 sed 's/^/| /' conftest.$ac_ext >&5
32502
32503         ac_cv_lib_Xext_XShapeQueryExtension=no
32504 fi
32505
32506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32507       conftest$ac_exeext conftest.$ac_ext
32508 LIBS=$ac_check_lib_save_LIBS
32509 fi
32510 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32511 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32512 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32513
32514                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32515                       wxHAVE_XEXT_LIB=1
32516
32517 fi
32518
32519
32520         if test "$wxHAVE_XEXT_LIB" = 1; then
32521             save_CFLAGS="$CFLAGS"
32522             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32523
32524             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32525 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32526             cat >conftest.$ac_ext <<_ACEOF
32527 /* confdefs.h.  */
32528 _ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h.  */
32532
32533                             #include <X11/Xlib.h>
32534                             #include <X11/extensions/shape.h>
32535
32536 int
32537 main ()
32538 {
32539
32540                             int dummy1, dummy2;
32541                             XShapeQueryExtension((Display*)NULL,
32542                                                  (int*)NULL, (int*)NULL);
32543
32544   ;
32545   return 0;
32546 }
32547 _ACEOF
32548 rm -f conftest.$ac_objext
32549 if { (ac_try="$ac_compile"
32550 case "(($ac_try" in
32551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32552   *) ac_try_echo=$ac_try;;
32553 esac
32554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32555   (eval "$ac_compile") 2>conftest.er1
32556   ac_status=$?
32557   grep -v '^ *+' conftest.er1 >conftest.err
32558   rm -f conftest.er1
32559   cat conftest.err >&5
32560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561   (exit $ac_status); } && {
32562          test -z "$ac_c_werror_flag" ||
32563          test ! -s conftest.err
32564        } && test -s conftest.$ac_objext; then
32565
32566                             cat >>confdefs.h <<\_ACEOF
32567 #define HAVE_XSHAPE 1
32568 _ACEOF
32569
32570                             { echo "$as_me:$LINENO: result: found" >&5
32571 echo "${ECHO_T}found" >&6; }
32572
32573 else
32574   echo "$as_me: failed program was:" >&5
32575 sed 's/^/| /' conftest.$ac_ext >&5
32576
32577
32578                             { echo "$as_me:$LINENO: result: not found" >&5
32579 echo "${ECHO_T}not found" >&6; }
32580
32581 fi
32582
32583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32584             CFLAGS="$save_CFLAGS"
32585
32586         fi
32587     fi
32588
32589     if test "$wxUSE_OSX_CARBON" = 1; then
32590         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32591 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32592         if test "$GCC" = yes; then
32593             { echo "$as_me:$LINENO: result: gcc" >&5
32594 echo "${ECHO_T}gcc" >&6; }
32595             CPPFLAGS_PASCAL="-fpascal-strings"
32596         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32597             { echo "$as_me:$LINENO: result: xlc" >&5
32598 echo "${ECHO_T}xlc" >&6; }
32599             CPPFLAGS_PASCAL="-qmacpstr"
32600         else
32601             { echo "$as_me:$LINENO: result: none" >&5
32602 echo "${ECHO_T}none" >&6; }
32603         fi
32604
32605         if test "x$wxUSE_UNIX" = "xyes"; then
32606             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32607         else
32608                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32609         fi
32610
32611         TOOLKIT=OSX_CARBON
32612                 GUIDIST=OSX_CARBON_DIST
32613                         WXBASEPORT="_carbon"
32614     fi
32615
32616     if test "$wxUSE_OSX_COCOA" = 1; then
32617         TOOLKIT=OSX_COCOA
32618         GUIDIST=OSX_COCOA_DIST
32619     fi
32620
32621     if test "$wxUSE_COCOA" = 1; then
32622         TOOLKIT=COCOA
32623         GUIDIST=COCOA_DIST
32624     fi
32625
32626     if test "$wxUSE_PM" = 1; then
32627         TOOLKIT=PM
32628         GUIDIST=PM_DIST
32629         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32630 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32631 if test "${wx_cv_spbcdata+set}" = set; then
32632   echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634
32635                 cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h.  */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h.  */
32641
32642                         #define INCL_PM
32643                         #include <os2.h>
32644
32645 int
32646 main ()
32647 {
32648
32649                         SPBCDATA test;
32650
32651   ;
32652   return 0;
32653 }
32654 _ACEOF
32655 rm -f conftest.$ac_objext
32656 if { (ac_try="$ac_compile"
32657 case "(($ac_try" in
32658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32659   *) ac_try_echo=$ac_try;;
32660 esac
32661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32662   (eval "$ac_compile") 2>conftest.er1
32663   ac_status=$?
32664   grep -v '^ *+' conftest.er1 >conftest.err
32665   rm -f conftest.er1
32666   cat conftest.err >&5
32667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668   (exit $ac_status); } && {
32669          test -z "$ac_c_werror_flag" ||
32670          test ! -s conftest.err
32671        } && test -s conftest.$ac_objext; then
32672   wx_cv_spbcdata=yes
32673 else
32674   echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32676
32677         wx_cv_spbcdata=no
32678
32679 fi
32680
32681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32682
32683
32684 fi
32685 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32686 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32687
32688         if test $wx_cv_spbcdata = "yes"; then
32689             cat >>confdefs.h <<\_ACEOF
32690 #define HAVE_SPBCDATA 1
32691 _ACEOF
32692
32693         fi
32694     fi
32695
32696         if test "$TOOLKIT" = "PM" ; then
32697         TOOLKIT_DIR="os2"
32698     else
32699         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32700     fi
32701
32702     if test "$wxUSE_UNIVERSAL" = "yes"; then
32703         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32704         WIDGET_SET=univ
32705     fi
32706
32707         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32708     DISTDIR="wx\$(TOOLKIT)"
32709 else
32710     USE_GUI=0
32711
32712             TOOLKIT_DIR="base"
32713
32714         if test "$USE_WIN32" = 1 ; then
32715                         TOOLKIT="MSW"
32716     fi
32717
32718         GUIDIST="BASE_DIST"
32719     DISTDIR="wxBase"
32720 fi
32721
32722
32723
32724 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32725     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32726         wxUSE_UNICODE_UTF8=yes
32727     elif test "$USE_OS2" = 1 ; then
32728                                 wxUSE_UNICODE_UTF8=yes
32729     else
32730         wxUSE_UNICODE_UTF8=no
32731     fi
32732 fi
32733
32734
32735 if test "$wxUSE_GUI" = "yes"; then
32736     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32737
32738 for ac_header in X11/Xlib.h
32739 do
32740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32744   echo $ECHO_N "(cached) $ECHO_C" >&6
32745 else
32746   cat >conftest.$ac_ext <<_ACEOF
32747 /* confdefs.h.  */
32748 _ACEOF
32749 cat confdefs.h >>conftest.$ac_ext
32750 cat >>conftest.$ac_ext <<_ACEOF
32751 /* end confdefs.h.  */
32752
32753
32754 #include <$ac_header>
32755 _ACEOF
32756 rm -f conftest.$ac_objext
32757 if { (ac_try="$ac_compile"
32758 case "(($ac_try" in
32759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32760   *) ac_try_echo=$ac_try;;
32761 esac
32762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32763   (eval "$ac_compile") 2>conftest.er1
32764   ac_status=$?
32765   grep -v '^ *+' conftest.er1 >conftest.err
32766   rm -f conftest.er1
32767   cat conftest.err >&5
32768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); } && {
32770          test -z "$ac_c_werror_flag" ||
32771          test ! -s conftest.err
32772        } && test -s conftest.$ac_objext; then
32773   eval "$as_ac_Header=yes"
32774 else
32775   echo "$as_me: failed program was:" >&5
32776 sed 's/^/| /' conftest.$ac_ext >&5
32777
32778         eval "$as_ac_Header=no"
32779 fi
32780
32781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32782 fi
32783 ac_res=`eval echo '${'$as_ac_Header'}'`
32784                { echo "$as_me:$LINENO: result: $ac_res" >&5
32785 echo "${ECHO_T}$ac_res" >&6; }
32786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32787   cat >>confdefs.h <<_ACEOF
32788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32789 _ACEOF
32790
32791 fi
32792
32793 done
32794
32795
32796 for ac_header in X11/XKBlib.h
32797 do
32798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32802   echo $ECHO_N "(cached) $ECHO_C" >&6
32803 else
32804   cat >conftest.$ac_ext <<_ACEOF
32805 /* confdefs.h.  */
32806 _ACEOF
32807 cat confdefs.h >>conftest.$ac_ext
32808 cat >>conftest.$ac_ext <<_ACEOF
32809 /* end confdefs.h.  */
32810
32811                           #if HAVE_X11_XLIB_H
32812                             #include <X11/Xlib.h>
32813                           #endif
32814
32815
32816 #include <$ac_header>
32817 _ACEOF
32818 rm -f conftest.$ac_objext
32819 if { (ac_try="$ac_compile"
32820 case "(($ac_try" in
32821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822   *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825   (eval "$ac_compile") 2>conftest.er1
32826   ac_status=$?
32827   grep -v '^ *+' conftest.er1 >conftest.err
32828   rm -f conftest.er1
32829   cat conftest.err >&5
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); } && {
32832          test -z "$ac_c_werror_flag" ||
32833          test ! -s conftest.err
32834        } && test -s conftest.$ac_objext; then
32835   eval "$as_ac_Header=yes"
32836 else
32837   echo "$as_me: failed program was:" >&5
32838 sed 's/^/| /' conftest.$ac_ext >&5
32839
32840         eval "$as_ac_Header=no"
32841 fi
32842
32843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32844 fi
32845 ac_res=`eval echo '${'$as_ac_Header'}'`
32846                { echo "$as_me:$LINENO: result: $ac_res" >&5
32847 echo "${ECHO_T}$ac_res" >&6; }
32848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32849   cat >>confdefs.h <<_ACEOF
32850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32851 _ACEOF
32852
32853 fi
32854
32855 done
32856
32857     fi
32858 fi
32859
32860
32861
32862 if test "$wxUSE_DISPLAY" = "yes"; then
32863     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32864         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32865 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32866
32867   ac_find_libraries=
32868   for ac_dir in $SEARCH_LIB;
32869   do
32870     for ac_extension in a so sl dylib dll.a; do
32871       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32872         ac_find_libraries=$ac_dir
32873         break 2
32874       fi
32875     done
32876   done
32877
32878         if test "$ac_find_libraries" != "" ; then
32879
32880     if test "$ac_find_libraries" = "default location"; then
32881     ac_path_to_link=""
32882   else
32883     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32884     result=$?
32885     if test $result = 0; then
32886       ac_path_to_link=""
32887     else
32888       ac_path_to_link=" -L$ac_find_libraries"
32889     fi
32890   fi
32891
32892             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32893                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32894             fi
32895             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32896             { echo "$as_me:$LINENO: result: yes" >&5
32897 echo "${ECHO_T}yes" >&6; }
32898
32899             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32900 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32901
32902   ac_find_libraries=
32903   for ac_dir in $SEARCH_LIB;
32904   do
32905     for ac_extension in a so sl dylib dll.a; do
32906       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32907         ac_find_libraries=$ac_dir
32908         break 2
32909       fi
32910     done
32911   done
32912
32913             if test "$ac_find_libraries" != "" ; then
32914                 { echo "$as_me:$LINENO: result: yes" >&5
32915 echo "${ECHO_T}yes" >&6; }
32916
32917 for ac_header in X11/extensions/xf86vmode.h
32918 do
32919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32923   echo $ECHO_N "(cached) $ECHO_C" >&6
32924 else
32925   cat >conftest.$ac_ext <<_ACEOF
32926 /* confdefs.h.  */
32927 _ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h.  */
32931
32932                                       #if HAVE_X11_XLIB_H
32933                                         #include <X11/Xlib.h>
32934                                       #endif
32935
32936
32937 #include <$ac_header>
32938 _ACEOF
32939 rm -f conftest.$ac_objext
32940 if { (ac_try="$ac_compile"
32941 case "(($ac_try" in
32942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32943   *) ac_try_echo=$ac_try;;
32944 esac
32945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32946   (eval "$ac_compile") 2>conftest.er1
32947   ac_status=$?
32948   grep -v '^ *+' conftest.er1 >conftest.err
32949   rm -f conftest.er1
32950   cat conftest.err >&5
32951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952   (exit $ac_status); } && {
32953          test -z "$ac_c_werror_flag" ||
32954          test ! -s conftest.err
32955        } && test -s conftest.$ac_objext; then
32956   eval "$as_ac_Header=yes"
32957 else
32958   echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32960
32961         eval "$as_ac_Header=no"
32962 fi
32963
32964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32965 fi
32966 ac_res=`eval echo '${'$as_ac_Header'}'`
32967                { echo "$as_me:$LINENO: result: $ac_res" >&5
32968 echo "${ECHO_T}$ac_res" >&6; }
32969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32970   cat >>confdefs.h <<_ACEOF
32971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32972 _ACEOF
32973
32974                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32975
32976 fi
32977
32978 done
32979
32980             else
32981                 { echo "$as_me:$LINENO: result: no" >&5
32982 echo "${ECHO_T}no" >&6; }
32983             fi
32984
32985         else
32986             { echo "$as_me:$LINENO: result: no" >&5
32987 echo "${ECHO_T}no" >&6; }
32988             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32989 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32990             wxUSE_DISPLAY="no"
32991         fi
32992     elif test "$wxUSE_MSW" = 1; then
32993         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32994 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32995 if test "${ac_cv_header_ddraw_h+set}" = set; then
32996   echo $ECHO_N "(cached) $ECHO_C" >&6
32997 else
32998   cat >conftest.$ac_ext <<_ACEOF
32999 /* confdefs.h.  */
33000 _ACEOF
33001 cat confdefs.h >>conftest.$ac_ext
33002 cat >>conftest.$ac_ext <<_ACEOF
33003 /* end confdefs.h.  */
33004 #include <windows.h>
33005
33006 #include <ddraw.h>
33007 _ACEOF
33008 rm -f conftest.$ac_objext
33009 if { (ac_try="$ac_compile"
33010 case "(($ac_try" in
33011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33012   *) ac_try_echo=$ac_try;;
33013 esac
33014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33015   (eval "$ac_compile") 2>conftest.er1
33016   ac_status=$?
33017   grep -v '^ *+' conftest.er1 >conftest.err
33018   rm -f conftest.er1
33019   cat conftest.err >&5
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); } && {
33022          test -z "$ac_c_werror_flag" ||
33023          test ! -s conftest.err
33024        } && test -s conftest.$ac_objext; then
33025   ac_cv_header_ddraw_h=yes
33026 else
33027   echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33029
33030         ac_cv_header_ddraw_h=no
33031 fi
33032
33033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33034 fi
33035 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33036 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33037
33038
33039     fi
33040 fi
33041
33042 if test "$wxUSE_DETECT_SM" = "yes"; then
33043     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33044         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33045 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33046
33047   ac_find_libraries=
33048   for ac_dir in $SEARCH_LIB;
33049   do
33050     for ac_extension in a so sl dylib dll.a; do
33051       if test -f "$ac_dir/libSM.$ac_extension"; then
33052         ac_find_libraries=$ac_dir
33053         break 2
33054       fi
33055     done
33056   done
33057
33058         if test "$ac_find_libraries" != "" ; then
33059
33060     if test "$ac_find_libraries" = "default location"; then
33061     ac_path_to_link=""
33062   else
33063     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33064     result=$?
33065     if test $result = 0; then
33066       ac_path_to_link=""
33067     else
33068       ac_path_to_link=" -L$ac_find_libraries"
33069     fi
33070   fi
33071
33072             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33073                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33074             fi
33075             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33076             { echo "$as_me:$LINENO: result: yes" >&5
33077 echo "${ECHO_T}yes" >&6; }
33078         else
33079             { echo "$as_me:$LINENO: result: no" >&5
33080 echo "${ECHO_T}no" >&6; }
33081             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33082 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33083             wxUSE_DETECT_SM="no"
33084         fi
33085     else
33086         wxUSE_DETECT_SM="no"
33087     fi
33088 fi
33089
33090
33091
33092 USE_OPENGL=0
33093 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33094
33095
33096     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33097         OPENGL_LIBS="-framework OpenGL -framework AGL"
33098     elif test "$wxUSE_MSW" = 1; then
33099         OPENGL_LIBS="-lopengl32 -lglu32"
33100     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33101
33102                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33103 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33104
33105 ac_find_includes=
33106 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33107   do
33108     if test -f "$ac_dir/GL/gl.h"; then
33109       ac_find_includes=$ac_dir
33110       break
33111     fi
33112   done
33113
33114         if test "$ac_find_includes" != "" ; then
33115             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33116 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33117
33118     if test "x$ac_find_includes" = "x/usr/include"; then
33119     ac_path_to_include=""
33120   else
33121     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33122     result=$?
33123     if test $result = 0; then
33124       ac_path_to_include=""
33125     else
33126       ac_path_to_include=" -I$ac_find_includes"
33127     fi
33128   fi
33129
33130             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33131         else
33132             { echo "$as_me:$LINENO: result: not found" >&5
33133 echo "${ECHO_T}not found" >&6; }
33134         fi
33135
33136         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33137 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33138 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33139   echo $ECHO_N "(cached) $ECHO_C" >&6
33140 else
33141   cat >conftest.$ac_ext <<_ACEOF
33142 /* confdefs.h.  */
33143 _ACEOF
33144 cat confdefs.h >>conftest.$ac_ext
33145 cat >>conftest.$ac_ext <<_ACEOF
33146 /* end confdefs.h.  */
33147
33148
33149 #include <GL/gl.h>
33150 _ACEOF
33151 rm -f conftest.$ac_objext
33152 if { (ac_try="$ac_compile"
33153 case "(($ac_try" in
33154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155   *) ac_try_echo=$ac_try;;
33156 esac
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158   (eval "$ac_compile") 2>conftest.er1
33159   ac_status=$?
33160   grep -v '^ *+' conftest.er1 >conftest.err
33161   rm -f conftest.er1
33162   cat conftest.err >&5
33163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164   (exit $ac_status); } && {
33165          test -z "$ac_c_werror_flag" ||
33166          test ! -s conftest.err
33167        } && test -s conftest.$ac_objext; then
33168   ac_cv_header_GL_gl_h=yes
33169 else
33170   echo "$as_me: failed program was:" >&5
33171 sed 's/^/| /' conftest.$ac_ext >&5
33172
33173         ac_cv_header_GL_gl_h=no
33174 fi
33175
33176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33177 fi
33178 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33179 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33180 if test $ac_cv_header_GL_gl_h = yes; then
33181
33182             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33183 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33184 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33185   echo $ECHO_N "(cached) $ECHO_C" >&6
33186 else
33187   cat >conftest.$ac_ext <<_ACEOF
33188 /* confdefs.h.  */
33189 _ACEOF
33190 cat confdefs.h >>conftest.$ac_ext
33191 cat >>conftest.$ac_ext <<_ACEOF
33192 /* end confdefs.h.  */
33193
33194
33195 #include <GL/glu.h>
33196 _ACEOF
33197 rm -f conftest.$ac_objext
33198 if { (ac_try="$ac_compile"
33199 case "(($ac_try" in
33200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33201   *) ac_try_echo=$ac_try;;
33202 esac
33203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33204   (eval "$ac_compile") 2>conftest.er1
33205   ac_status=$?
33206   grep -v '^ *+' conftest.er1 >conftest.err
33207   rm -f conftest.er1
33208   cat conftest.err >&5
33209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210   (exit $ac_status); } && {
33211          test -z "$ac_c_werror_flag" ||
33212          test ! -s conftest.err
33213        } && test -s conftest.$ac_objext; then
33214   ac_cv_header_GL_glu_h=yes
33215 else
33216   echo "$as_me: failed program was:" >&5
33217 sed 's/^/| /' conftest.$ac_ext >&5
33218
33219         ac_cv_header_GL_glu_h=no
33220 fi
33221
33222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33223 fi
33224 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33225 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33226 if test $ac_cv_header_GL_glu_h = yes; then
33227
33228                 found_gl=0
33229
33230                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33231 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33232
33233   ac_find_libraries=
33234   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33235   do
33236     for ac_extension in a so sl dylib dll.a; do
33237       if test -f "$ac_dir/libGL.$ac_extension"; then
33238         ac_find_libraries=$ac_dir
33239         break 2
33240       fi
33241     done
33242   done
33243
33244                 if test "$ac_find_libraries" != "" ; then
33245                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33246 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33247
33248
33249     if test "$ac_find_libraries" = "default location"; then
33250     ac_path_to_link=""
33251   else
33252     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33253     result=$?
33254     if test $result = 0; then
33255       ac_path_to_link=""
33256     else
33257       ac_path_to_link=" -L$ac_find_libraries"
33258     fi
33259   fi
33260
33261                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33262                         LDFLAGS_GL="$ac_path_to_link"
33263                     fi
33264
33265                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33266 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33267
33268   ac_find_libraries=
33269   for ac_dir in $SEARCH_LIB;
33270   do
33271     for ac_extension in a so sl dylib dll.a; do
33272       if test -f "$ac_dir/libGLU.$ac_extension"; then
33273         ac_find_libraries=$ac_dir
33274         break 2
33275       fi
33276     done
33277   done
33278
33279                     if test "$ac_find_libraries" != "" ; then
33280
33281     if test "$ac_find_libraries" = "default location"; then
33282     ac_path_to_link=""
33283   else
33284     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33285     result=$?
33286     if test $result = 0; then
33287       ac_path_to_link=""
33288     else
33289       ac_path_to_link=" -L$ac_find_libraries"
33290     fi
33291   fi
33292
33293                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33294                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33295                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33296                         fi
33297
33298                         found_gl=1
33299                         OPENGL_LIBS="-lGL -lGLU"
33300                         { echo "$as_me:$LINENO: result: yes" >&5
33301 echo "${ECHO_T}yes" >&6; }
33302                     else
33303                         { echo "$as_me:$LINENO: result: no" >&5
33304 echo "${ECHO_T}no" >&6; }
33305                     fi
33306                 else
33307                     { echo "$as_me:$LINENO: result: no" >&5
33308 echo "${ECHO_T}no" >&6; }
33309                 fi
33310
33311                 if test "$found_gl" != 1; then
33312                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33313 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33314
33315   ac_find_libraries=
33316   for ac_dir in $SEARCH_LIB;
33317   do
33318     for ac_extension in a so sl dylib dll.a; do
33319       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33320         ac_find_libraries=$ac_dir
33321         break 2
33322       fi
33323     done
33324   done
33325
33326                     if test "$ac_find_libraries" != "" ; then
33327
33328     if test "$ac_find_libraries" = "default location"; then
33329     ac_path_to_link=""
33330   else
33331     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33332     result=$?
33333     if test $result = 0; then
33334       ac_path_to_link=""
33335     else
33336       ac_path_to_link=" -L$ac_find_libraries"
33337     fi
33338   fi
33339
33340                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33341                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33342                         { echo "$as_me:$LINENO: result: yes" >&5
33343 echo "${ECHO_T}yes" >&6; }
33344                     else
33345                         { echo "$as_me:$LINENO: result: no" >&5
33346 echo "${ECHO_T}no" >&6; }
33347                     fi
33348                 fi
33349
33350 fi
33351
33352
33353
33354 fi
33355
33356
33357
33358         if test "x$OPENGL_LIBS" = "x"; then
33359             if test "$wxUSE_OPENGL" = "yes"; then
33360                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33361 echo "$as_me: error: OpenGL libraries not available" >&2;}
33362    { (exit 1); exit 1; }; }
33363             else
33364                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33365 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33366                 wxUSE_OPENGL=no
33367                 USE_OPENGL=0
33368             fi
33369         else
33370                         wxUSE_OPENGL=yes
33371         fi
33372     else
33373         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33374 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33375         wxUSE_OPENGL="no"
33376     fi
33377
33378     if test "$wxUSE_OPENGL" = "yes"; then
33379         USE_OPENGL=1
33380         cat >>confdefs.h <<\_ACEOF
33381 #define wxUSE_OPENGL 1
33382 _ACEOF
33383
33384         cat >>confdefs.h <<\_ACEOF
33385 #define wxUSE_GLCANVAS 1
33386 _ACEOF
33387
33388         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33389     fi
33390 fi
33391
33392
33393 if test -n "$TOOLKIT" ; then
33394     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33395 fi
33396
33397
33398
33399 if test "$wxUSE_SHARED" = "yes"; then
33400     case "${host}" in
33401       *-pc-msdosdjgpp )
33402                 wxUSE_SHARED=no
33403         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33404 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33405       ;;
33406     esac
33407 fi
33408
33409 if test "$wxUSE_SHARED" = "yes"; then
33410
33411
33412     case "${host}" in
33413         *-*-cygwin* | *-*-mingw* )
33414                                                                                                 wx_cv_version_script=no
33415             ;;
33416
33417         *)
33418             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33419 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33420 if test "${wx_cv_version_script+set}" = set; then
33421   echo $ECHO_N "(cached) $ECHO_C" >&6
33422 else
33423
33424                 echo "VER_1 { *; };" >conftest.sym
33425                 echo "int main() { return 0; }" >conftest.cpp
33426
33427                 if { ac_try='
33428                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33429                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33431   (eval $ac_try) 2>&5
33432   ac_status=$?
33433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434   (exit $ac_status); }; } ; then
33435                   if test -s conftest.stderr ; then
33436                       wx_cv_version_script=no
33437                   else
33438                       wx_cv_version_script=yes
33439                   fi
33440                 else
33441                   wx_cv_version_script=no
33442                 fi
33443
33444                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33445                 then
33446                   echo "struct B { virtual ~B() { } }; \
33447                         struct D : public B { }; \
33448                         void F() { D d; }" > conftest.cpp
33449
33450                   if { ac_try='
33451                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33452                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33454   (eval $ac_try) 2>&5
33455   ac_status=$?
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); }; } &&
33458                      { ac_try='
33459                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33460                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462   (eval $ac_try) 2>&5
33463   ac_status=$?
33464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465   (exit $ac_status); }; }
33466                   then
33467                     if { ac_try='
33468                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33469                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471   (eval $ac_try) 2>&5
33472   ac_status=$?
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); }; }
33475                     then
33476                       wx_cv_version_script=yes
33477                     else
33478                       wx_cv_version_script=no
33479                     fi
33480                   fi
33481                 fi
33482
33483                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33484                 rm -f conftest1.output conftest2.output conftest3.output
33485
33486 fi
33487 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33488 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33489
33490             if test $wx_cv_version_script = yes ; then
33491                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33492             fi
33493             ;;
33494     esac
33495
33496
33497             if test "$wxUSE_VISIBILITY" != "no"; then
33498
33499
33500   if test -n "$GCC"; then
33501     CFLAGS_VISIBILITY="-fvisibility=hidden"
33502     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33503     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33504 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33505     if test "${wx_cv_cc_visibility+set}" = set; then
33506   echo $ECHO_N "(cached) $ECHO_C" >&6
33507 else
33508
33509       wx_save_CXXFLAGS="$CXXFLAGS"
33510       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33511       ac_ext=cpp
33512 ac_cpp='$CXXCPP $CPPFLAGS'
33513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33516
33517       cat >conftest.$ac_ext <<_ACEOF
33518 /* confdefs.h.  */
33519 _ACEOF
33520 cat confdefs.h >>conftest.$ac_ext
33521 cat >>conftest.$ac_ext <<_ACEOF
33522 /* end confdefs.h.  */
33523
33524          /* we need gcc >= 4.0, older versions with visibility support
33525             didn't have class visibility: */
33526          #if defined(__GNUC__) && __GNUC__ < 4
33527          error this gcc is too old;
33528          #endif
33529
33530          /* visibility only makes sense for ELF shared libs: */
33531          #if !defined(__ELF__) && !defined(__APPLE__)
33532          error this platform has no visibility;
33533          #endif
33534
33535          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33536          extern __attribute__((__visibility__("default"))) int exportedvar;
33537          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33538          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33539          class __attribute__((__visibility__("default"))) Foo {
33540            Foo() {}
33541          };
33542
33543 int
33544 main ()
33545 {
33546
33547   ;
33548   return 0;
33549 }
33550 _ACEOF
33551 rm -f conftest.$ac_objext
33552 if { (ac_try="$ac_compile"
33553 case "(($ac_try" in
33554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555   *) ac_try_echo=$ac_try;;
33556 esac
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558   (eval "$ac_compile") 2>conftest.er1
33559   ac_status=$?
33560   grep -v '^ *+' conftest.er1 >conftest.err
33561   rm -f conftest.er1
33562   cat conftest.err >&5
33563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564   (exit $ac_status); } && {
33565          test -z "$ac_cxx_werror_flag" ||
33566          test ! -s conftest.err
33567        } && test -s conftest.$ac_objext; then
33568   wx_cv_cc_visibility=yes
33569 else
33570   echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.$ac_ext >&5
33572
33573         wx_cv_cc_visibility=no
33574 fi
33575
33576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33577       ac_ext=c
33578 ac_cpp='$CPP $CPPFLAGS'
33579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33582
33583       CXXFLAGS="$wx_save_CXXFLAGS"
33584 fi
33585
33586     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33587 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33588     if test $wx_cv_cc_visibility = yes; then
33589                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33590 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33591       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33592   echo $ECHO_N "(cached) $ECHO_C" >&6
33593 else
33594
33595         wx_save_CXXFLAGS="$CXXFLAGS"
33596         wx_save_LDFLAGS="$LDFLAGS"
33597         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33598         LDFLAGS="$LDFLAGS -shared -fPIC"
33599         ac_ext=cpp
33600 ac_cpp='$CXXCPP $CPPFLAGS'
33601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33604
33605         cat >conftest.$ac_ext <<_ACEOF
33606 /* confdefs.h.  */
33607 _ACEOF
33608 cat confdefs.h >>conftest.$ac_ext
33609 cat >>conftest.$ac_ext <<_ACEOF
33610 /* end confdefs.h.  */
33611
33612             #include <string>
33613
33614 int
33615 main ()
33616 {
33617
33618             std::string s("hello");
33619             return s.length();
33620
33621   ;
33622   return 0;
33623 }
33624 _ACEOF
33625 rm -f conftest.$ac_objext conftest$ac_exeext
33626 if { (ac_try="$ac_link"
33627 case "(($ac_try" in
33628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629   *) ac_try_echo=$ac_try;;
33630 esac
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632   (eval "$ac_link") 2>conftest.er1
33633   ac_status=$?
33634   grep -v '^ *+' conftest.er1 >conftest.err
33635   rm -f conftest.er1
33636   cat conftest.err >&5
33637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638   (exit $ac_status); } && {
33639          test -z "$ac_cxx_werror_flag" ||
33640          test ! -s conftest.err
33641        } && test -s conftest$ac_exeext &&
33642        $as_test_x conftest$ac_exeext; then
33643   wx_cv_cc_broken_libstdcxx_visibility=no
33644 else
33645   echo "$as_me: failed program was:" >&5
33646 sed 's/^/| /' conftest.$ac_ext >&5
33647
33648         wx_cv_cc_broken_libstdcxx_visibility=yes
33649 fi
33650
33651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33652       conftest$ac_exeext conftest.$ac_ext
33653         ac_ext=c
33654 ac_cpp='$CPP $CPPFLAGS'
33655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33658
33659         CXXFLAGS="$wx_save_CXXFLAGS"
33660         LDFLAGS="$wx_save_LDFLAGS"
33661 fi
33662
33663       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33664 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33665
33666       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33667         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33668 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33669         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33670   echo $ECHO_N "(cached) $ECHO_C" >&6
33671 else
33672
33673           ac_ext=cpp
33674 ac_cpp='$CXXCPP $CPPFLAGS'
33675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33678
33679           cat >conftest.$ac_ext <<_ACEOF
33680 /* confdefs.h.  */
33681 _ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h.  */
33685
33686               #pragma GCC visibility push(default)
33687               #include <string>
33688               #pragma GCC visibility pop
33689
33690 int
33691 main ()
33692 {
33693
33694               std::string s("hello");
33695               return s.length();
33696
33697   ;
33698   return 0;
33699 }
33700 _ACEOF
33701 rm -f conftest.$ac_objext conftest$ac_exeext
33702 if { (ac_try="$ac_link"
33703 case "(($ac_try" in
33704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33705   *) ac_try_echo=$ac_try;;
33706 esac
33707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33708   (eval "$ac_link") 2>conftest.er1
33709   ac_status=$?
33710   grep -v '^ *+' conftest.er1 >conftest.err
33711   rm -f conftest.er1
33712   cat conftest.err >&5
33713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714   (exit $ac_status); } && {
33715          test -z "$ac_cxx_werror_flag" ||
33716          test ! -s conftest.err
33717        } && test -s conftest$ac_exeext &&
33718        $as_test_x conftest$ac_exeext; then
33719   wx_cv_cc_visibility_workaround=no
33720 else
33721   echo "$as_me: failed program was:" >&5
33722 sed 's/^/| /' conftest.$ac_ext >&5
33723
33724         wx_cv_cc_visibility_workaround=yes
33725 fi
33726
33727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33728       conftest$ac_exeext conftest.$ac_ext
33729           ac_ext=c
33730 ac_cpp='$CPP $CPPFLAGS'
33731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33734
33735
33736 fi
33737
33738         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33739 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33740
33741         if test $wx_cv_cc_visibility_workaround = no; then
33742                     wx_cv_cc_visibility=no
33743         fi
33744       fi
33745     fi
33746
33747     if test $wx_cv_cc_visibility = yes; then
33748       cat >>confdefs.h <<\_ACEOF
33749 #define HAVE_VISIBILITY 1
33750 _ACEOF
33751
33752       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33753         cat >>confdefs.h <<\_ACEOF
33754 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33755 _ACEOF
33756
33757       fi
33758     else
33759       CFLAGS_VISIBILITY=""
33760       CXXFLAGS_VISIBILITY=""
33761     fi
33762
33763
33764   fi
33765
33766     fi
33767
33768         if test "x$SUNCXX" = xyes; then
33769         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33770         WXCONFIG_RPATH="-R\$libdir"
33771     else
33772     case "${host}" in
33773       *-*-linux* | *-*-gnu* )
33774         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33775         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33776         ;;
33777
33778       *-*-solaris2* )
33779
33780                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33781
33782                         saveLdflags="$LDFLAGS"
33783         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33784         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33785 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33786         cat >conftest.$ac_ext <<_ACEOF
33787 /* confdefs.h.  */
33788 _ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h.  */
33792
33793 int
33794 main ()
33795 {
33796
33797   ;
33798   return 0;
33799 }
33800 _ACEOF
33801 rm -f conftest.$ac_objext conftest$ac_exeext
33802 if { (ac_try="$ac_link"
33803 case "(($ac_try" in
33804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805   *) ac_try_echo=$ac_try;;
33806 esac
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808   (eval "$ac_link") 2>conftest.er1
33809   ac_status=$?
33810   grep -v '^ *+' conftest.er1 >conftest.err
33811   rm -f conftest.er1
33812   cat conftest.err >&5
33813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814   (exit $ac_status); } && {
33815          test -z "$ac_c_werror_flag" ||
33816          test ! -s conftest.err
33817        } && test -s conftest$ac_exeext &&
33818        $as_test_x conftest$ac_exeext; then
33819
33820                 { echo "$as_me:$LINENO: result: yes" >&5
33821 echo "${ECHO_T}yes" >&6; }
33822                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33823                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33824
33825 else
33826   echo "$as_me: failed program was:" >&5
33827 sed 's/^/| /' conftest.$ac_ext >&5
33828
33829
33830                 { echo "$as_me:$LINENO: result: no" >&5
33831 echo "${ECHO_T}no" >&6; }
33832                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33833 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33834                 LDFLAGS="$saveLdflags -Wl,-R,/"
33835                 cat >conftest.$ac_ext <<_ACEOF
33836 /* confdefs.h.  */
33837 _ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h.  */
33841
33842 int
33843 main ()
33844 {
33845
33846   ;
33847   return 0;
33848 }
33849 _ACEOF
33850 rm -f conftest.$ac_objext conftest$ac_exeext
33851 if { (ac_try="$ac_link"
33852 case "(($ac_try" in
33853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33854   *) ac_try_echo=$ac_try;;
33855 esac
33856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33857   (eval "$ac_link") 2>conftest.er1
33858   ac_status=$?
33859   grep -v '^ *+' conftest.er1 >conftest.err
33860   rm -f conftest.er1
33861   cat conftest.err >&5
33862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863   (exit $ac_status); } && {
33864          test -z "$ac_c_werror_flag" ||
33865          test ! -s conftest.err
33866        } && test -s conftest$ac_exeext &&
33867        $as_test_x conftest$ac_exeext; then
33868
33869                         { echo "$as_me:$LINENO: result: yes" >&5
33870 echo "${ECHO_T}yes" >&6; }
33871                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33872                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33873
33874 else
33875   echo "$as_me: failed program was:" >&5
33876 sed 's/^/| /' conftest.$ac_ext >&5
33877
33878
33879                         { echo "$as_me:$LINENO: result: no" >&5
33880 echo "${ECHO_T}no" >&6; }
33881
33882 fi
33883
33884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33885       conftest$ac_exeext conftest.$ac_ext
33886
33887 fi
33888
33889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33890       conftest$ac_exeext conftest.$ac_ext
33891         LDFLAGS="$saveLdflags"
33892       ;;
33893
33894       *-*-darwin* )
33895         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
33896         if test "$install_name_tool" -a -x "$install_name_tool"; then
33897             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
33898             cat <<EOF >change-install-names
33899 #!/bin/sh
33900 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33901 for i in \${libnames} ; do
33902     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
33903     for dep in \${libnames} ; do
33904         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
33905     done
33906 done
33907 EOF
33908             chmod +x change-install-names
33909             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
33910         fi
33911
33912                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
33913       ;;
33914
33915       *-*-cygwin* | *-*-mingw32* )
33916         ;;
33917
33918       *-*-hpux* )
33919         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33920         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33921         ;;
33922
33923     esac
33924     fi
33925
33926             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33927
33928     if test $wxUSE_RPATH = "no"; then
33929         SAMPLES_RPATH_FLAG=''
33930         DYLIB_PATH_POSTLINK=''
33931         WXCONFIG_RPATH=''
33932     fi
33933
33934     SHARED=1
33935
33936 else
33937
33938     config_linkage_component="-static"
33939     SHARED=0
33940
33941 fi
33942
33943
33944 UNICODE=0
33945 lib_unicode_suffix=
33946 WX_CHARTYPE="ansi"
33947 if test "$wxUSE_UNICODE" = "yes"; then
33948     lib_unicode_suffix=u
33949     WX_CHARTYPE="unicode"
33950     UNICODE=1
33951 fi
33952
33953 lib_debug_suffix=
33954 WX_DEBUGTYPE="release"
33955 DEBUG_FLAG=0
33956 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33957     lib_debug_suffix=d
33958     WX_DEBUGTYPE="debug"
33959     DEBUG_FLAG=1
33960 fi
33961
33962 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33963 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33964
33965 DEBUG_INFO=0
33966 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33967     DEBUG_INFO=1
33968 fi
33969
33970 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33971
33972 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
33973
33974 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33975
33976
33977 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33978     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33979 else
33980     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33981 fi
33982 if test "${TOOLKIT_DIR}" = "os2"; then
33983     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33984 else
33985     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33986 fi
33987
33988
33989
33990 if test "$wxUSE_COCOA" = 1; then
33991
33992     ac_ext=c
33993 ac_cpp='$CPP $CPPFLAGS'
33994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33997
33998 ac_ext=m
33999
34000     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34001 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
34002     cat >conftest.$ac_ext <<_ACEOF
34003 /* confdefs.h.  */
34004 _ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h.  */
34008 #include <AppKit/NSEvent.h>
34009 #include <CoreFoundation/CoreFoundation.h>
34010
34011 int
34012 main ()
34013 {
34014
34015   ;
34016   return 0;
34017 }
34018 _ACEOF
34019 rm -f conftest.$ac_objext
34020 if { (ac_try="$ac_compile"
34021 case "(($ac_try" in
34022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023   *) ac_try_echo=$ac_try;;
34024 esac
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026   (eval "$ac_compile") 2>conftest.er1
34027   ac_status=$?
34028   grep -v '^ *+' conftest.er1 >conftest.err
34029   rm -f conftest.er1
34030   cat conftest.err >&5
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); } && {
34033          test -z "$ac_c_werror_flag" ||
34034          test ! -s conftest.err
34035        } && test -s conftest.$ac_objext; then
34036   { echo "$as_me:$LINENO: result: no" >&5
34037 echo "${ECHO_T}no" >&6; }
34038 else
34039   echo "$as_me: failed program was:" >&5
34040 sed 's/^/| /' conftest.$ac_ext >&5
34041
34042         { echo "$as_me:$LINENO: result: yes" >&5
34043 echo "${ECHO_T}yes" >&6; }
34044         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34045 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34046         cat >conftest.$ac_ext <<_ACEOF
34047 /* confdefs.h.  */
34048 _ACEOF
34049 cat confdefs.h >>conftest.$ac_ext
34050 cat >>conftest.$ac_ext <<_ACEOF
34051 /* end confdefs.h.  */
34052 #define __Point__ 1
34053 #include <AppKit/NSEvent.h>
34054 #include <CoreFoundation/CoreFoundation.h>
34055
34056 int
34057 main ()
34058 {
34059
34060   ;
34061   return 0;
34062 }
34063 _ACEOF
34064 rm -f conftest.$ac_objext
34065 if { (ac_try="$ac_compile"
34066 case "(($ac_try" in
34067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34068   *) ac_try_echo=$ac_try;;
34069 esac
34070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34071   (eval "$ac_compile") 2>conftest.er1
34072   ac_status=$?
34073   grep -v '^ *+' conftest.er1 >conftest.err
34074   rm -f conftest.er1
34075   cat conftest.err >&5
34076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077   (exit $ac_status); } && {
34078          test -z "$ac_c_werror_flag" ||
34079          test ! -s conftest.err
34080        } && test -s conftest.$ac_objext; then
34081   { echo "$as_me:$LINENO: result: yes" >&5
34082 echo "${ECHO_T}yes" >&6; }
34083             cat >>confdefs.h <<\_ACEOF
34084 #define __Point__ 1
34085 _ACEOF
34086
34087
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092         { { echo "$as_me:$LINENO: error: no
34093 See \`config.log' for more details." >&5
34094 echo "$as_me: error: no
34095 See \`config.log' for more details." >&2;}
34096    { (exit 1); exit 1; }; }
34097
34098 fi
34099
34100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101
34102 fi
34103
34104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34105     ac_ext=c
34106 ac_cpp='$CPP $CPPFLAGS'
34107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34110
34111 fi
34112
34113
34114 { echo "$as_me:$LINENO: checking for mode_t" >&5
34115 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34116 if test "${ac_cv_type_mode_t+set}" = set; then
34117   echo $ECHO_N "(cached) $ECHO_C" >&6
34118 else
34119   cat >conftest.$ac_ext <<_ACEOF
34120 /* confdefs.h.  */
34121 _ACEOF
34122 cat confdefs.h >>conftest.$ac_ext
34123 cat >>conftest.$ac_ext <<_ACEOF
34124 /* end confdefs.h.  */
34125 $ac_includes_default
34126 typedef mode_t ac__type_new_;
34127 int
34128 main ()
34129 {
34130 if ((ac__type_new_ *) 0)
34131   return 0;
34132 if (sizeof (ac__type_new_))
34133   return 0;
34134   ;
34135   return 0;
34136 }
34137 _ACEOF
34138 rm -f conftest.$ac_objext
34139 if { (ac_try="$ac_compile"
34140 case "(($ac_try" in
34141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34142   *) ac_try_echo=$ac_try;;
34143 esac
34144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34145   (eval "$ac_compile") 2>conftest.er1
34146   ac_status=$?
34147   grep -v '^ *+' conftest.er1 >conftest.err
34148   rm -f conftest.er1
34149   cat conftest.err >&5
34150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151   (exit $ac_status); } && {
34152          test -z "$ac_c_werror_flag" ||
34153          test ! -s conftest.err
34154        } && test -s conftest.$ac_objext; then
34155   ac_cv_type_mode_t=yes
34156 else
34157   echo "$as_me: failed program was:" >&5
34158 sed 's/^/| /' conftest.$ac_ext >&5
34159
34160         ac_cv_type_mode_t=no
34161 fi
34162
34163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34164 fi
34165 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34166 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34167 if test $ac_cv_type_mode_t = yes; then
34168   :
34169 else
34170
34171 cat >>confdefs.h <<_ACEOF
34172 #define mode_t int
34173 _ACEOF
34174
34175 fi
34176
34177 { echo "$as_me:$LINENO: checking for off_t" >&5
34178 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34179 if test "${ac_cv_type_off_t+set}" = set; then
34180   echo $ECHO_N "(cached) $ECHO_C" >&6
34181 else
34182   cat >conftest.$ac_ext <<_ACEOF
34183 /* confdefs.h.  */
34184 _ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h.  */
34188 $ac_includes_default
34189 typedef off_t ac__type_new_;
34190 int
34191 main ()
34192 {
34193 if ((ac__type_new_ *) 0)
34194   return 0;
34195 if (sizeof (ac__type_new_))
34196   return 0;
34197   ;
34198   return 0;
34199 }
34200 _ACEOF
34201 rm -f conftest.$ac_objext
34202 if { (ac_try="$ac_compile"
34203 case "(($ac_try" in
34204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205   *) ac_try_echo=$ac_try;;
34206 esac
34207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208   (eval "$ac_compile") 2>conftest.er1
34209   ac_status=$?
34210   grep -v '^ *+' conftest.er1 >conftest.err
34211   rm -f conftest.er1
34212   cat conftest.err >&5
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); } && {
34215          test -z "$ac_c_werror_flag" ||
34216          test ! -s conftest.err
34217        } && test -s conftest.$ac_objext; then
34218   ac_cv_type_off_t=yes
34219 else
34220   echo "$as_me: failed program was:" >&5
34221 sed 's/^/| /' conftest.$ac_ext >&5
34222
34223         ac_cv_type_off_t=no
34224 fi
34225
34226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34227 fi
34228 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34229 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34230 if test $ac_cv_type_off_t = yes; then
34231   :
34232 else
34233
34234 cat >>confdefs.h <<_ACEOF
34235 #define off_t long int
34236 _ACEOF
34237
34238 fi
34239
34240 { echo "$as_me:$LINENO: checking for pid_t" >&5
34241 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34242 if test "${ac_cv_type_pid_t+set}" = set; then
34243   echo $ECHO_N "(cached) $ECHO_C" >&6
34244 else
34245   cat >conftest.$ac_ext <<_ACEOF
34246 /* confdefs.h.  */
34247 _ACEOF
34248 cat confdefs.h >>conftest.$ac_ext
34249 cat >>conftest.$ac_ext <<_ACEOF
34250 /* end confdefs.h.  */
34251 $ac_includes_default
34252 typedef pid_t ac__type_new_;
34253 int
34254 main ()
34255 {
34256 if ((ac__type_new_ *) 0)
34257   return 0;
34258 if (sizeof (ac__type_new_))
34259   return 0;
34260   ;
34261   return 0;
34262 }
34263 _ACEOF
34264 rm -f conftest.$ac_objext
34265 if { (ac_try="$ac_compile"
34266 case "(($ac_try" in
34267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34268   *) ac_try_echo=$ac_try;;
34269 esac
34270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34271   (eval "$ac_compile") 2>conftest.er1
34272   ac_status=$?
34273   grep -v '^ *+' conftest.er1 >conftest.err
34274   rm -f conftest.er1
34275   cat conftest.err >&5
34276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277   (exit $ac_status); } && {
34278          test -z "$ac_c_werror_flag" ||
34279          test ! -s conftest.err
34280        } && test -s conftest.$ac_objext; then
34281   ac_cv_type_pid_t=yes
34282 else
34283   echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34285
34286         ac_cv_type_pid_t=no
34287 fi
34288
34289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34290 fi
34291 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34292 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34293 if test $ac_cv_type_pid_t = yes; then
34294   :
34295 else
34296
34297 cat >>confdefs.h <<_ACEOF
34298 #define pid_t int
34299 _ACEOF
34300
34301 fi
34302
34303 { echo "$as_me:$LINENO: checking for size_t" >&5
34304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34305 if test "${ac_cv_type_size_t+set}" = set; then
34306   echo $ECHO_N "(cached) $ECHO_C" >&6
34307 else
34308   cat >conftest.$ac_ext <<_ACEOF
34309 /* confdefs.h.  */
34310 _ACEOF
34311 cat confdefs.h >>conftest.$ac_ext
34312 cat >>conftest.$ac_ext <<_ACEOF
34313 /* end confdefs.h.  */
34314 $ac_includes_default
34315 typedef size_t ac__type_new_;
34316 int
34317 main ()
34318 {
34319 if ((ac__type_new_ *) 0)
34320   return 0;
34321 if (sizeof (ac__type_new_))
34322   return 0;
34323   ;
34324   return 0;
34325 }
34326 _ACEOF
34327 rm -f conftest.$ac_objext
34328 if { (ac_try="$ac_compile"
34329 case "(($ac_try" in
34330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34331   *) ac_try_echo=$ac_try;;
34332 esac
34333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34334   (eval "$ac_compile") 2>conftest.er1
34335   ac_status=$?
34336   grep -v '^ *+' conftest.er1 >conftest.err
34337   rm -f conftest.er1
34338   cat conftest.err >&5
34339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340   (exit $ac_status); } && {
34341          test -z "$ac_c_werror_flag" ||
34342          test ! -s conftest.err
34343        } && test -s conftest.$ac_objext; then
34344   ac_cv_type_size_t=yes
34345 else
34346   echo "$as_me: failed program was:" >&5
34347 sed 's/^/| /' conftest.$ac_ext >&5
34348
34349         ac_cv_type_size_t=no
34350 fi
34351
34352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34353 fi
34354 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34355 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34356 if test $ac_cv_type_size_t = yes; then
34357   :
34358 else
34359
34360 cat >>confdefs.h <<_ACEOF
34361 #define size_t unsigned int
34362 _ACEOF
34363
34364 fi
34365
34366
34367 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34368 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34369 if test "${ac_cv_type_ssize_t+set}" = set; then
34370   echo $ECHO_N "(cached) $ECHO_C" >&6
34371 else
34372   cat >conftest.$ac_ext <<_ACEOF
34373 /* confdefs.h.  */
34374 _ACEOF
34375 cat confdefs.h >>conftest.$ac_ext
34376 cat >>conftest.$ac_ext <<_ACEOF
34377 /* end confdefs.h.  */
34378 $ac_includes_default
34379 typedef ssize_t ac__type_new_;
34380 int
34381 main ()
34382 {
34383 if ((ac__type_new_ *) 0)
34384   return 0;
34385 if (sizeof (ac__type_new_))
34386   return 0;
34387   ;
34388   return 0;
34389 }
34390 _ACEOF
34391 rm -f conftest.$ac_objext
34392 if { (ac_try="$ac_compile"
34393 case "(($ac_try" in
34394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34395   *) ac_try_echo=$ac_try;;
34396 esac
34397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34398   (eval "$ac_compile") 2>conftest.er1
34399   ac_status=$?
34400   grep -v '^ *+' conftest.er1 >conftest.err
34401   rm -f conftest.er1
34402   cat conftest.err >&5
34403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404   (exit $ac_status); } && {
34405          test -z "$ac_c_werror_flag" ||
34406          test ! -s conftest.err
34407        } && test -s conftest.$ac_objext; then
34408   ac_cv_type_ssize_t=yes
34409 else
34410   echo "$as_me: failed program was:" >&5
34411 sed 's/^/| /' conftest.$ac_ext >&5
34412
34413         ac_cv_type_ssize_t=no
34414 fi
34415
34416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34417 fi
34418 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34419 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34420 if test $ac_cv_type_ssize_t = yes; then
34421
34422 cat >>confdefs.h <<_ACEOF
34423 #define HAVE_SSIZE_T 1
34424 _ACEOF
34425
34426
34427 fi
34428
34429
34430 ac_ext=cpp
34431 ac_cpp='$CXXCPP $CPPFLAGS'
34432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34435  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34436 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34437 if test "${wx_cv_size_t_is_uint+set}" = set; then
34438   echo $ECHO_N "(cached) $ECHO_C" >&6
34439 else
34440
34441                             cat >conftest.$ac_ext <<_ACEOF
34442 /* confdefs.h.  */
34443 _ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h.  */
34447 #include <stddef.h>
34448 int
34449 main ()
34450 {
34451
34452             return 0; }
34453
34454             struct Foo { void foo(size_t); void foo(unsigned int); };
34455
34456             int bar() {
34457
34458   ;
34459   return 0;
34460 }
34461 _ACEOF
34462 rm -f conftest.$ac_objext
34463 if { (ac_try="$ac_compile"
34464 case "(($ac_try" in
34465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34466   *) ac_try_echo=$ac_try;;
34467 esac
34468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34469   (eval "$ac_compile") 2>conftest.er1
34470   ac_status=$?
34471   grep -v '^ *+' conftest.er1 >conftest.err
34472   rm -f conftest.er1
34473   cat conftest.err >&5
34474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475   (exit $ac_status); } && {
34476          test -z "$ac_cxx_werror_flag" ||
34477          test ! -s conftest.err
34478        } && test -s conftest.$ac_objext; then
34479   wx_cv_size_t_is_uint=no
34480 else
34481   echo "$as_me: failed program was:" >&5
34482 sed 's/^/| /' conftest.$ac_ext >&5
34483
34484         wx_cv_size_t_is_uint=yes
34485
34486 fi
34487
34488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34489
34490
34491 fi
34492 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34493 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34494
34495 if test "$wx_cv_size_t_is_uint" = "yes"; then
34496     cat >>confdefs.h <<\_ACEOF
34497 #define wxSIZE_T_IS_UINT 1
34498 _ACEOF
34499
34500 else
34501     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34502 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34503 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34504   echo $ECHO_N "(cached) $ECHO_C" >&6
34505 else
34506   cat >conftest.$ac_ext <<_ACEOF
34507 /* confdefs.h.  */
34508 _ACEOF
34509 cat confdefs.h >>conftest.$ac_ext
34510 cat >>conftest.$ac_ext <<_ACEOF
34511 /* end confdefs.h.  */
34512 #include <stddef.h>
34513 int
34514 main ()
34515 {
34516
34517                 return 0; }
34518
34519                 struct Foo { void foo(size_t); void foo(unsigned long); };
34520
34521                 int bar() {
34522
34523   ;
34524   return 0;
34525 }
34526 _ACEOF
34527 rm -f conftest.$ac_objext
34528 if { (ac_try="$ac_compile"
34529 case "(($ac_try" in
34530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34531   *) ac_try_echo=$ac_try;;
34532 esac
34533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34534   (eval "$ac_compile") 2>conftest.er1
34535   ac_status=$?
34536   grep -v '^ *+' conftest.er1 >conftest.err
34537   rm -f conftest.er1
34538   cat conftest.err >&5
34539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540   (exit $ac_status); } && {
34541          test -z "$ac_cxx_werror_flag" ||
34542          test ! -s conftest.err
34543        } && test -s conftest.$ac_objext; then
34544   wx_cv_size_t_is_ulong=no
34545 else
34546   echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34548
34549         wx_cv_size_t_is_ulong=yes
34550
34551 fi
34552
34553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34554
34555 fi
34556 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34557 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34558
34559     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34560         cat >>confdefs.h <<\_ACEOF
34561 #define wxSIZE_T_IS_ULONG 1
34562 _ACEOF
34563
34564     fi
34565 fi
34566
34567 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34568 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34569 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34570   echo $ECHO_N "(cached) $ECHO_C" >&6
34571 else
34572   cat >conftest.$ac_ext <<_ACEOF
34573 /* confdefs.h.  */
34574 _ACEOF
34575 cat confdefs.h >>conftest.$ac_ext
34576 cat >>conftest.$ac_ext <<_ACEOF
34577 /* end confdefs.h.  */
34578 #include <wchar.h>
34579 int
34580 main ()
34581 {
34582
34583             return 0; }
34584
34585             struct Foo { void foo(wchar_t);
34586                          void foo(unsigned short);
34587                          void foo(unsigned int);
34588                          void foo(unsigned long); };
34589
34590             int bar() {
34591
34592   ;
34593   return 0;
34594 }
34595 _ACEOF
34596 rm -f conftest.$ac_objext
34597 if { (ac_try="$ac_compile"
34598 case "(($ac_try" in
34599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34600   *) ac_try_echo=$ac_try;;
34601 esac
34602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34603   (eval "$ac_compile") 2>conftest.er1
34604   ac_status=$?
34605   grep -v '^ *+' conftest.er1 >conftest.err
34606   rm -f conftest.er1
34607   cat conftest.err >&5
34608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609   (exit $ac_status); } && {
34610          test -z "$ac_cxx_werror_flag" ||
34611          test ! -s conftest.err
34612        } && test -s conftest.$ac_objext; then
34613   wx_cv_wchar_t_is_separate_type=yes
34614 else
34615   echo "$as_me: failed program was:" >&5
34616 sed 's/^/| /' conftest.$ac_ext >&5
34617
34618         wx_cv_wchar_t_is_separate_type=no
34619
34620 fi
34621
34622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34623
34624 fi
34625 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34626 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34627
34628 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34629     cat >>confdefs.h <<\_ACEOF
34630 #define wxWCHAR_T_IS_REAL_TYPE 1
34631 _ACEOF
34632
34633 else
34634     cat >>confdefs.h <<\_ACEOF
34635 #define wxWCHAR_T_IS_REAL_TYPE 0
34636 _ACEOF
34637
34638 fi
34639
34640 ac_ext=c
34641 ac_cpp='$CPP $CPPFLAGS'
34642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34645
34646
34647 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34648 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34649 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34650   echo $ECHO_N "(cached) $ECHO_C" >&6
34651 else
34652
34653         cat >conftest.$ac_ext <<_ACEOF
34654 /* confdefs.h.  */
34655 _ACEOF
34656 cat confdefs.h >>conftest.$ac_ext
34657 cat >>conftest.$ac_ext <<_ACEOF
34658 /* end confdefs.h.  */
34659 #include <pwd.h>
34660 int
34661 main ()
34662 {
34663
34664                 char *p;
34665                 struct passwd *pw;
34666                 p = pw->pw_gecos;
34667
34668   ;
34669   return 0;
34670 }
34671 _ACEOF
34672 rm -f conftest.$ac_objext
34673 if { (ac_try="$ac_compile"
34674 case "(($ac_try" in
34675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34676   *) ac_try_echo=$ac_try;;
34677 esac
34678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34679   (eval "$ac_compile") 2>conftest.er1
34680   ac_status=$?
34681   grep -v '^ *+' conftest.er1 >conftest.err
34682   rm -f conftest.er1
34683   cat conftest.err >&5
34684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34685   (exit $ac_status); } && {
34686          test -z "$ac_c_werror_flag" ||
34687          test ! -s conftest.err
34688        } && test -s conftest.$ac_objext; then
34689
34690                 wx_cv_struct_pw_gecos=yes
34691
34692 else
34693   echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.$ac_ext >&5
34695
34696
34697                 wx_cv_struct_pw_gecos=no
34698
34699
34700 fi
34701
34702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34703
34704
34705 fi
34706 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34707 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34708
34709 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34710     cat >>confdefs.h <<\_ACEOF
34711 #define HAVE_PW_GECOS 1
34712 _ACEOF
34713
34714 fi
34715
34716
34717 if test "$wxUSE_WCHAR_T" = "yes"; then
34718     cat >>confdefs.h <<\_ACEOF
34719 #define wxUSE_WCHAR_T 1
34720 _ACEOF
34721
34722
34723         WCSLEN_FOUND=0
34724     WCHAR_LINK=
34725
34726 for ac_func in wcslen
34727 do
34728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34732   echo $ECHO_N "(cached) $ECHO_C" >&6
34733 else
34734   cat >conftest.$ac_ext <<_ACEOF
34735 /* confdefs.h.  */
34736 _ACEOF
34737 cat confdefs.h >>conftest.$ac_ext
34738 cat >>conftest.$ac_ext <<_ACEOF
34739 /* end confdefs.h.  */
34740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34742 #define $ac_func innocuous_$ac_func
34743
34744 /* System header to define __stub macros and hopefully few prototypes,
34745     which can conflict with char $ac_func (); below.
34746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34747     <limits.h> exists even on freestanding compilers.  */
34748
34749 #ifdef __STDC__
34750 # include <limits.h>
34751 #else
34752 # include <assert.h>
34753 #endif
34754
34755 #undef $ac_func
34756
34757 /* Override any GCC internal prototype to avoid an error.
34758    Use char because int might match the return type of a GCC
34759    builtin and then its argument prototype would still apply.  */
34760 #ifdef __cplusplus
34761 extern "C"
34762 #endif
34763 char $ac_func ();
34764 /* The GNU C library defines this for functions which it implements
34765     to always fail with ENOSYS.  Some functions are actually named
34766     something starting with __ and the normal name is an alias.  */
34767 #if defined __stub_$ac_func || defined __stub___$ac_func
34768 choke me
34769 #endif
34770
34771 int
34772 main ()
34773 {
34774 return $ac_func ();
34775   ;
34776   return 0;
34777 }
34778 _ACEOF
34779 rm -f conftest.$ac_objext conftest$ac_exeext
34780 if { (ac_try="$ac_link"
34781 case "(($ac_try" in
34782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34783   *) ac_try_echo=$ac_try;;
34784 esac
34785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34786   (eval "$ac_link") 2>conftest.er1
34787   ac_status=$?
34788   grep -v '^ *+' conftest.er1 >conftest.err
34789   rm -f conftest.er1
34790   cat conftest.err >&5
34791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34792   (exit $ac_status); } && {
34793          test -z "$ac_c_werror_flag" ||
34794          test ! -s conftest.err
34795        } && test -s conftest$ac_exeext &&
34796        $as_test_x conftest$ac_exeext; then
34797   eval "$as_ac_var=yes"
34798 else
34799   echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34801
34802         eval "$as_ac_var=no"
34803 fi
34804
34805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34806       conftest$ac_exeext conftest.$ac_ext
34807 fi
34808 ac_res=`eval echo '${'$as_ac_var'}'`
34809                { echo "$as_me:$LINENO: result: $ac_res" >&5
34810 echo "${ECHO_T}$ac_res" >&6; }
34811 if test `eval echo '${'$as_ac_var'}'` = yes; then
34812   cat >>confdefs.h <<_ACEOF
34813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34814 _ACEOF
34815  WCSLEN_FOUND=1
34816 fi
34817 done
34818
34819
34820     if test "$WCSLEN_FOUND" = 0; then
34821         if test "$TOOLKIT" = "MSW"; then
34822             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34823 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34824 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34825   echo $ECHO_N "(cached) $ECHO_C" >&6
34826 else
34827   ac_check_lib_save_LIBS=$LIBS
34828 LIBS="-lmsvcrt  $LIBS"
34829 cat >conftest.$ac_ext <<_ACEOF
34830 /* confdefs.h.  */
34831 _ACEOF
34832 cat confdefs.h >>conftest.$ac_ext
34833 cat >>conftest.$ac_ext <<_ACEOF
34834 /* end confdefs.h.  */
34835
34836 /* Override any GCC internal prototype to avoid an error.
34837    Use char because int might match the return type of a GCC
34838    builtin and then its argument prototype would still apply.  */
34839 #ifdef __cplusplus
34840 extern "C"
34841 #endif
34842 char wcslen ();
34843 int
34844 main ()
34845 {
34846 return wcslen ();
34847   ;
34848   return 0;
34849 }
34850 _ACEOF
34851 rm -f conftest.$ac_objext conftest$ac_exeext
34852 if { (ac_try="$ac_link"
34853 case "(($ac_try" in
34854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855   *) ac_try_echo=$ac_try;;
34856 esac
34857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34858   (eval "$ac_link") 2>conftest.er1
34859   ac_status=$?
34860   grep -v '^ *+' conftest.er1 >conftest.err
34861   rm -f conftest.er1
34862   cat conftest.err >&5
34863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864   (exit $ac_status); } && {
34865          test -z "$ac_c_werror_flag" ||
34866          test ! -s conftest.err
34867        } && test -s conftest$ac_exeext &&
34868        $as_test_x conftest$ac_exeext; then
34869   ac_cv_lib_msvcrt_wcslen=yes
34870 else
34871   echo "$as_me: failed program was:" >&5
34872 sed 's/^/| /' conftest.$ac_ext >&5
34873
34874         ac_cv_lib_msvcrt_wcslen=no
34875 fi
34876
34877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34878       conftest$ac_exeext conftest.$ac_ext
34879 LIBS=$ac_check_lib_save_LIBS
34880 fi
34881 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34882 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34883 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34884   WCHAR_OK=1
34885 fi
34886
34887         else
34888             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34889 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34890 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34891   echo $ECHO_N "(cached) $ECHO_C" >&6
34892 else
34893   ac_check_lib_save_LIBS=$LIBS
34894 LIBS="-lw  $LIBS"
34895 cat >conftest.$ac_ext <<_ACEOF
34896 /* confdefs.h.  */
34897 _ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h.  */
34901
34902 /* Override any GCC internal prototype to avoid an error.
34903    Use char because int might match the return type of a GCC
34904    builtin and then its argument prototype would still apply.  */
34905 #ifdef __cplusplus
34906 extern "C"
34907 #endif
34908 char wcslen ();
34909 int
34910 main ()
34911 {
34912 return wcslen ();
34913   ;
34914   return 0;
34915 }
34916 _ACEOF
34917 rm -f conftest.$ac_objext conftest$ac_exeext
34918 if { (ac_try="$ac_link"
34919 case "(($ac_try" in
34920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921   *) ac_try_echo=$ac_try;;
34922 esac
34923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34924   (eval "$ac_link") 2>conftest.er1
34925   ac_status=$?
34926   grep -v '^ *+' conftest.er1 >conftest.err
34927   rm -f conftest.er1
34928   cat conftest.err >&5
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); } && {
34931          test -z "$ac_c_werror_flag" ||
34932          test ! -s conftest.err
34933        } && test -s conftest$ac_exeext &&
34934        $as_test_x conftest$ac_exeext; then
34935   ac_cv_lib_w_wcslen=yes
34936 else
34937   echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34939
34940         ac_cv_lib_w_wcslen=no
34941 fi
34942
34943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34944       conftest$ac_exeext conftest.$ac_ext
34945 LIBS=$ac_check_lib_save_LIBS
34946 fi
34947 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34948 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34949 if test $ac_cv_lib_w_wcslen = yes; then
34950
34951                             WCHAR_LINK=" -lw"
34952                             WCSLEN_FOUND=1
34953
34954 fi
34955
34956         fi
34957     fi
34958
34959     if test "$WCSLEN_FOUND" = 1; then
34960         cat >>confdefs.h <<\_ACEOF
34961 #define HAVE_WCSLEN 1
34962 _ACEOF
34963
34964     fi
34965
34966
34967
34968
34969
34970
34971 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
34972 do
34973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34977   echo $ECHO_N "(cached) $ECHO_C" >&6
34978 else
34979   cat >conftest.$ac_ext <<_ACEOF
34980 /* confdefs.h.  */
34981 _ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h.  */
34985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34987 #define $ac_func innocuous_$ac_func
34988
34989 /* System header to define __stub macros and hopefully few prototypes,
34990     which can conflict with char $ac_func (); below.
34991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34992     <limits.h> exists even on freestanding compilers.  */
34993
34994 #ifdef __STDC__
34995 # include <limits.h>
34996 #else
34997 # include <assert.h>
34998 #endif
34999
35000 #undef $ac_func
35001
35002 /* Override any GCC internal prototype to avoid an error.
35003    Use char because int might match the return type of a GCC
35004    builtin and then its argument prototype would still apply.  */
35005 #ifdef __cplusplus
35006 extern "C"
35007 #endif
35008 char $ac_func ();
35009 /* The GNU C library defines this for functions which it implements
35010     to always fail with ENOSYS.  Some functions are actually named
35011     something starting with __ and the normal name is an alias.  */
35012 #if defined __stub_$ac_func || defined __stub___$ac_func
35013 choke me
35014 #endif
35015
35016 int
35017 main ()
35018 {
35019 return $ac_func ();
35020   ;
35021   return 0;
35022 }
35023 _ACEOF
35024 rm -f conftest.$ac_objext conftest$ac_exeext
35025 if { (ac_try="$ac_link"
35026 case "(($ac_try" in
35027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35028   *) ac_try_echo=$ac_try;;
35029 esac
35030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35031   (eval "$ac_link") 2>conftest.er1
35032   ac_status=$?
35033   grep -v '^ *+' conftest.er1 >conftest.err
35034   rm -f conftest.er1
35035   cat conftest.err >&5
35036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037   (exit $ac_status); } && {
35038          test -z "$ac_c_werror_flag" ||
35039          test ! -s conftest.err
35040        } && test -s conftest$ac_exeext &&
35041        $as_test_x conftest$ac_exeext; then
35042   eval "$as_ac_var=yes"
35043 else
35044   echo "$as_me: failed program was:" >&5
35045 sed 's/^/| /' conftest.$ac_ext >&5
35046
35047         eval "$as_ac_var=no"
35048 fi
35049
35050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35051       conftest$ac_exeext conftest.$ac_ext
35052 fi
35053 ac_res=`eval echo '${'$as_ac_var'}'`
35054                { echo "$as_me:$LINENO: result: $ac_res" >&5
35055 echo "${ECHO_T}$ac_res" >&6; }
35056 if test `eval echo '${'$as_ac_var'}'` = yes; then
35057   cat >>confdefs.h <<_ACEOF
35058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35059 _ACEOF
35060
35061 fi
35062 done
35063
35064
35065                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35066         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35067     fi
35068
35069                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35070 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35071 if test "${ac_cv_type_mbstate_t+set}" = set; then
35072   echo $ECHO_N "(cached) $ECHO_C" >&6
35073 else
35074   cat >conftest.$ac_ext <<_ACEOF
35075 /* confdefs.h.  */
35076 _ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h.  */
35080 #include <wchar.h>
35081
35082 typedef mbstate_t ac__type_new_;
35083 int
35084 main ()
35085 {
35086 if ((ac__type_new_ *) 0)
35087   return 0;
35088 if (sizeof (ac__type_new_))
35089   return 0;
35090   ;
35091   return 0;
35092 }
35093 _ACEOF
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098   *) ac_try_echo=$ac_try;;
35099 esac
35100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35101   (eval "$ac_compile") 2>conftest.er1
35102   ac_status=$?
35103   grep -v '^ *+' conftest.er1 >conftest.err
35104   rm -f conftest.er1
35105   cat conftest.err >&5
35106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107   (exit $ac_status); } && {
35108          test -z "$ac_c_werror_flag" ||
35109          test ! -s conftest.err
35110        } && test -s conftest.$ac_objext; then
35111   ac_cv_type_mbstate_t=yes
35112 else
35113   echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35115
35116         ac_cv_type_mbstate_t=no
35117 fi
35118
35119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35120 fi
35121 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35122 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35123 if test $ac_cv_type_mbstate_t = yes; then
35124
35125 cat >>confdefs.h <<_ACEOF
35126 #define HAVE_MBSTATE_T 1
35127 _ACEOF
35128
35129
35130 for ac_func in wcsrtombs
35131 do
35132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35136   echo $ECHO_N "(cached) $ECHO_C" >&6
35137 else
35138   cat >conftest.$ac_ext <<_ACEOF
35139 /* confdefs.h.  */
35140 _ACEOF
35141 cat confdefs.h >>conftest.$ac_ext
35142 cat >>conftest.$ac_ext <<_ACEOF
35143 /* end confdefs.h.  */
35144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35146 #define $ac_func innocuous_$ac_func
35147
35148 /* System header to define __stub macros and hopefully few prototypes,
35149     which can conflict with char $ac_func (); below.
35150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35151     <limits.h> exists even on freestanding compilers.  */
35152
35153 #ifdef __STDC__
35154 # include <limits.h>
35155 #else
35156 # include <assert.h>
35157 #endif
35158
35159 #undef $ac_func
35160
35161 /* Override any GCC internal prototype to avoid an error.
35162    Use char because int might match the return type of a GCC
35163    builtin and then its argument prototype would still apply.  */
35164 #ifdef __cplusplus
35165 extern "C"
35166 #endif
35167 char $ac_func ();
35168 /* The GNU C library defines this for functions which it implements
35169     to always fail with ENOSYS.  Some functions are actually named
35170     something starting with __ and the normal name is an alias.  */
35171 #if defined __stub_$ac_func || defined __stub___$ac_func
35172 choke me
35173 #endif
35174
35175 int
35176 main ()
35177 {
35178 return $ac_func ();
35179   ;
35180   return 0;
35181 }
35182 _ACEOF
35183 rm -f conftest.$ac_objext conftest$ac_exeext
35184 if { (ac_try="$ac_link"
35185 case "(($ac_try" in
35186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35187   *) ac_try_echo=$ac_try;;
35188 esac
35189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35190   (eval "$ac_link") 2>conftest.er1
35191   ac_status=$?
35192   grep -v '^ *+' conftest.er1 >conftest.err
35193   rm -f conftest.er1
35194   cat conftest.err >&5
35195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196   (exit $ac_status); } && {
35197          test -z "$ac_c_werror_flag" ||
35198          test ! -s conftest.err
35199        } && test -s conftest$ac_exeext &&
35200        $as_test_x conftest$ac_exeext; then
35201   eval "$as_ac_var=yes"
35202 else
35203   echo "$as_me: failed program was:" >&5
35204 sed 's/^/| /' conftest.$ac_ext >&5
35205
35206         eval "$as_ac_var=no"
35207 fi
35208
35209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35210       conftest$ac_exeext conftest.$ac_ext
35211 fi
35212 ac_res=`eval echo '${'$as_ac_var'}'`
35213                { echo "$as_me:$LINENO: result: $ac_res" >&5
35214 echo "${ECHO_T}$ac_res" >&6; }
35215 if test `eval echo '${'$as_ac_var'}'` = yes; then
35216   cat >>confdefs.h <<_ACEOF
35217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35218 _ACEOF
35219
35220 fi
35221 done
35222
35223 fi
35224
35225 else
35226     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35227 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35228 fi
35229
35230
35231
35232
35233 for ac_func in snprintf vsnprintf vsscanf
35234 do
35235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35239   echo $ECHO_N "(cached) $ECHO_C" >&6
35240 else
35241   cat >conftest.$ac_ext <<_ACEOF
35242 /* confdefs.h.  */
35243 _ACEOF
35244 cat confdefs.h >>conftest.$ac_ext
35245 cat >>conftest.$ac_ext <<_ACEOF
35246 /* end confdefs.h.  */
35247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35249 #define $ac_func innocuous_$ac_func
35250
35251 /* System header to define __stub macros and hopefully few prototypes,
35252     which can conflict with char $ac_func (); below.
35253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35254     <limits.h> exists even on freestanding compilers.  */
35255
35256 #ifdef __STDC__
35257 # include <limits.h>
35258 #else
35259 # include <assert.h>
35260 #endif
35261
35262 #undef $ac_func
35263
35264 /* Override any GCC internal prototype to avoid an error.
35265    Use char because int might match the return type of a GCC
35266    builtin and then its argument prototype would still apply.  */
35267 #ifdef __cplusplus
35268 extern "C"
35269 #endif
35270 char $ac_func ();
35271 /* The GNU C library defines this for functions which it implements
35272     to always fail with ENOSYS.  Some functions are actually named
35273     something starting with __ and the normal name is an alias.  */
35274 #if defined __stub_$ac_func || defined __stub___$ac_func
35275 choke me
35276 #endif
35277
35278 int
35279 main ()
35280 {
35281 return $ac_func ();
35282   ;
35283   return 0;
35284 }
35285 _ACEOF
35286 rm -f conftest.$ac_objext conftest$ac_exeext
35287 if { (ac_try="$ac_link"
35288 case "(($ac_try" in
35289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35290   *) ac_try_echo=$ac_try;;
35291 esac
35292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35293   (eval "$ac_link") 2>conftest.er1
35294   ac_status=$?
35295   grep -v '^ *+' conftest.er1 >conftest.err
35296   rm -f conftest.er1
35297   cat conftest.err >&5
35298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299   (exit $ac_status); } && {
35300          test -z "$ac_c_werror_flag" ||
35301          test ! -s conftest.err
35302        } && test -s conftest$ac_exeext &&
35303        $as_test_x conftest$ac_exeext; then
35304   eval "$as_ac_var=yes"
35305 else
35306   echo "$as_me: failed program was:" >&5
35307 sed 's/^/| /' conftest.$ac_ext >&5
35308
35309         eval "$as_ac_var=no"
35310 fi
35311
35312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35313       conftest$ac_exeext conftest.$ac_ext
35314 fi
35315 ac_res=`eval echo '${'$as_ac_var'}'`
35316                { echo "$as_me:$LINENO: result: $ac_res" >&5
35317 echo "${ECHO_T}$ac_res" >&6; }
35318 if test `eval echo '${'$as_ac_var'}'` = yes; then
35319   cat >>confdefs.h <<_ACEOF
35320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35321 _ACEOF
35322
35323 fi
35324 done
35325
35326
35327 ac_ext=cpp
35328 ac_cpp='$CXXCPP $CPPFLAGS'
35329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35332
35333 if test "$ac_cv_func_vsnprintf" = "yes"; then
35334         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35335 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35336 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35337   echo $ECHO_N "(cached) $ECHO_C" >&6
35338 else
35339
35340                                                             cat >conftest.$ac_ext <<_ACEOF
35341 /* confdefs.h.  */
35342 _ACEOF
35343 cat confdefs.h >>conftest.$ac_ext
35344 cat >>conftest.$ac_ext <<_ACEOF
35345 /* end confdefs.h.  */
35346
35347                     #include <stdio.h>
35348                     #include <stdarg.h>
35349                     #ifdef __MSL__
35350                     #if __MSL__ >= 0x6000
35351                     namespace std {}
35352                     using namespace std;
35353                     #endif
35354                     #endif
35355
35356 int
35357 main ()
35358 {
35359
35360                     char *buf;
35361                     va_list ap;
35362                     vsnprintf(buf, 10u, "%s", ap);
35363
35364   ;
35365   return 0;
35366 }
35367 _ACEOF
35368 rm -f conftest.$ac_objext
35369 if { (ac_try="$ac_compile"
35370 case "(($ac_try" in
35371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35372   *) ac_try_echo=$ac_try;;
35373 esac
35374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35375   (eval "$ac_compile") 2>conftest.er1
35376   ac_status=$?
35377   grep -v '^ *+' conftest.er1 >conftest.err
35378   rm -f conftest.er1
35379   cat conftest.err >&5
35380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35381   (exit $ac_status); } && {
35382          test -z "$ac_cxx_werror_flag" ||
35383          test ! -s conftest.err
35384        } && test -s conftest.$ac_objext; then
35385   wx_cv_func_vsnprintf_decl=yes
35386 else
35387   echo "$as_me: failed program was:" >&5
35388 sed 's/^/| /' conftest.$ac_ext >&5
35389
35390         wx_cv_func_vsnprintf_decl=no
35391
35392 fi
35393
35394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35395
35396
35397 fi
35398 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35399 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35400
35401     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35402         cat >>confdefs.h <<\_ACEOF
35403 #define HAVE_VSNPRINTF_DECL 1
35404 _ACEOF
35405
35406
35407                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35408 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35409 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35410   echo $ECHO_N "(cached) $ECHO_C" >&6
35411 else
35412
35413                 cat >conftest.$ac_ext <<_ACEOF
35414 /* confdefs.h.  */
35415 _ACEOF
35416 cat confdefs.h >>conftest.$ac_ext
35417 cat >>conftest.$ac_ext <<_ACEOF
35418 /* end confdefs.h.  */
35419
35420                         #include <stdio.h>
35421                         #include <stdarg.h>
35422                         #ifdef __MSL__
35423                         #if __MSL__ >= 0x6000
35424                         namespace std {}
35425                         using namespace std;
35426                         #endif
35427                         #endif
35428
35429 int
35430 main ()
35431 {
35432
35433                         char *buf;
35434                         va_list ap;
35435                         const char *fmt = "%s";
35436                         vsnprintf(buf, 10u, fmt, ap);
35437
35438   ;
35439   return 0;
35440 }
35441 _ACEOF
35442 rm -f conftest.$ac_objext
35443 if { (ac_try="$ac_compile"
35444 case "(($ac_try" in
35445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35446   *) ac_try_echo=$ac_try;;
35447 esac
35448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35449   (eval "$ac_compile") 2>conftest.er1
35450   ac_status=$?
35451   grep -v '^ *+' conftest.er1 >conftest.err
35452   rm -f conftest.er1
35453   cat conftest.err >&5
35454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455   (exit $ac_status); } && {
35456          test -z "$ac_cxx_werror_flag" ||
35457          test ! -s conftest.err
35458        } && test -s conftest.$ac_objext; then
35459   wx_cv_func_broken_vsnprintf_decl=no
35460 else
35461   echo "$as_me: failed program was:" >&5
35462 sed 's/^/| /' conftest.$ac_ext >&5
35463
35464         wx_cv_func_broken_vsnprintf_decl=yes
35465
35466 fi
35467
35468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35469
35470
35471 fi
35472 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35473 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35474
35475         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35476             cat >>confdefs.h <<\_ACEOF
35477 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35478 _ACEOF
35479
35480         fi
35481     fi
35482 fi
35483
35484 if test "$ac_cv_func_snprintf" = "yes"; then
35485     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35486 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35487 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35488   echo $ECHO_N "(cached) $ECHO_C" >&6
35489 else
35490
35491             cat >conftest.$ac_ext <<_ACEOF
35492 /* confdefs.h.  */
35493 _ACEOF
35494 cat confdefs.h >>conftest.$ac_ext
35495 cat >>conftest.$ac_ext <<_ACEOF
35496 /* end confdefs.h.  */
35497
35498                     #include <stdio.h>
35499                     #include <stdarg.h>
35500                     #ifdef __MSL__
35501                     #if __MSL__ >= 0x6000
35502                     namespace std {}
35503                     using namespace std;
35504                     #endif
35505                     #endif
35506
35507 int
35508 main ()
35509 {
35510
35511                     char *buf;
35512                     snprintf(buf, 10u, "%s", "wx");
35513
35514   ;
35515   return 0;
35516 }
35517 _ACEOF
35518 rm -f conftest.$ac_objext
35519 if { (ac_try="$ac_compile"
35520 case "(($ac_try" in
35521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35522   *) ac_try_echo=$ac_try;;
35523 esac
35524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35525   (eval "$ac_compile") 2>conftest.er1
35526   ac_status=$?
35527   grep -v '^ *+' conftest.er1 >conftest.err
35528   rm -f conftest.er1
35529   cat conftest.err >&5
35530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531   (exit $ac_status); } && {
35532          test -z "$ac_cxx_werror_flag" ||
35533          test ! -s conftest.err
35534        } && test -s conftest.$ac_objext; then
35535   wx_cv_func_snprintf_decl=yes
35536 else
35537   echo "$as_me: failed program was:" >&5
35538 sed 's/^/| /' conftest.$ac_ext >&5
35539
35540         wx_cv_func_snprintf_decl=no
35541
35542 fi
35543
35544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35545
35546
35547 fi
35548 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35549 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35550
35551     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35552         cat >>confdefs.h <<\_ACEOF
35553 #define HAVE_SNPRINTF_DECL 1
35554 _ACEOF
35555
35556     fi
35557
35558     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35559
35560                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35561 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35562 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35563   echo $ECHO_N "(cached) $ECHO_C" >&6
35564 else
35565
35566                 if test "$cross_compiling" = yes; then
35567
35568                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35569 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35570 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35571 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35572                         wx_cv_func_snprintf_pos_params=no
35573
35574
35575 else
35576   cat >conftest.$ac_ext <<_ACEOF
35577 /* confdefs.h.  */
35578 _ACEOF
35579 cat confdefs.h >>conftest.$ac_ext
35580 cat >>conftest.$ac_ext <<_ACEOF
35581 /* end confdefs.h.  */
35582
35583                         #include <stdio.h>
35584
35585                         int main (void)
35586                         {
35587                             char buffer[128];
35588                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35589                             if (strcmp ("2 3 1", buffer) == 0)
35590                                 exit (0);
35591                             exit (1);
35592                         }
35593
35594 _ACEOF
35595 rm -f conftest$ac_exeext
35596 if { (ac_try="$ac_link"
35597 case "(($ac_try" in
35598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35599   *) ac_try_echo=$ac_try;;
35600 esac
35601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35602   (eval "$ac_link") 2>&5
35603   ac_status=$?
35604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35606   { (case "(($ac_try" in
35607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35608   *) ac_try_echo=$ac_try;;
35609 esac
35610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35611   (eval "$ac_try") 2>&5
35612   ac_status=$?
35613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614   (exit $ac_status); }; }; then
35615   wx_cv_func_snprintf_pos_params=no
35616 else
35617   echo "$as_me: program exited with status $ac_status" >&5
35618 echo "$as_me: failed program was:" >&5
35619 sed 's/^/| /' conftest.$ac_ext >&5
35620
35621 ( exit $ac_status )
35622 wx_cv_func_snprintf_pos_params=yes
35623 fi
35624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35625 fi
35626
35627
35628
35629
35630 fi
35631 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35632 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35633
35634         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35635             cat >>confdefs.h <<\_ACEOF
35636 #define HAVE_UNIX98_PRINTF 1
35637 _ACEOF
35638
35639         fi
35640     fi
35641 fi
35642
35643 if test "$ac_cv_func_vsscanf" = "yes"; then
35644     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35645 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35646 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35647   echo $ECHO_N "(cached) $ECHO_C" >&6
35648 else
35649
35650             cat >conftest.$ac_ext <<_ACEOF
35651 /* confdefs.h.  */
35652 _ACEOF
35653 cat confdefs.h >>conftest.$ac_ext
35654 cat >>conftest.$ac_ext <<_ACEOF
35655 /* end confdefs.h.  */
35656
35657                     #include <stdio.h>
35658                     #include <stdarg.h>
35659                     #ifdef __MSL__
35660                     #if __MSL__ >= 0x6000
35661                     namespace std {}
35662                     using namespace std;
35663                     #endif
35664                     #endif
35665
35666 int
35667 main ()
35668 {
35669
35670                     char *buf;
35671                     va_list args;
35672                     vsscanf(buf, "%s", args);
35673
35674   ;
35675   return 0;
35676 }
35677 _ACEOF
35678 rm -f conftest.$ac_objext
35679 if { (ac_try="$ac_compile"
35680 case "(($ac_try" in
35681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35682   *) ac_try_echo=$ac_try;;
35683 esac
35684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35685   (eval "$ac_compile") 2>conftest.er1
35686   ac_status=$?
35687   grep -v '^ *+' conftest.er1 >conftest.err
35688   rm -f conftest.er1
35689   cat conftest.err >&5
35690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691   (exit $ac_status); } && {
35692          test -z "$ac_cxx_werror_flag" ||
35693          test ! -s conftest.err
35694        } && test -s conftest.$ac_objext; then
35695   wx_cv_func_vsscanf_decl=yes
35696 else
35697   echo "$as_me: failed program was:" >&5
35698 sed 's/^/| /' conftest.$ac_ext >&5
35699
35700         wx_cv_func_vsscanf_decl=no
35701
35702 fi
35703
35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35705
35706
35707 fi
35708 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35709 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35710
35711     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35712         cat >>confdefs.h <<\_ACEOF
35713 #define HAVE_VSSCANF_DECL 1
35714 _ACEOF
35715
35716     fi
35717 fi
35718 ac_ext=c
35719 ac_cpp='$CPP $CPPFLAGS'
35720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35723
35724
35725 if test "$wxUSE_UNICODE" = yes; then
35726
35727             wchar_headers="#include <stdio.h>
35728 #include <wchar.h>"
35729     case "${host}" in
35730         *-*-solaris2* )
35731
35732 for ac_header in widec.h
35733 do
35734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35738   echo $ECHO_N "(cached) $ECHO_C" >&6
35739 else
35740   cat >conftest.$ac_ext <<_ACEOF
35741 /* confdefs.h.  */
35742 _ACEOF
35743 cat confdefs.h >>conftest.$ac_ext
35744 cat >>conftest.$ac_ext <<_ACEOF
35745 /* end confdefs.h.  */
35746 $ac_includes_default
35747
35748 #include <$ac_header>
35749 _ACEOF
35750 rm -f conftest.$ac_objext
35751 if { (ac_try="$ac_compile"
35752 case "(($ac_try" in
35753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35754   *) ac_try_echo=$ac_try;;
35755 esac
35756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35757   (eval "$ac_compile") 2>conftest.er1
35758   ac_status=$?
35759   grep -v '^ *+' conftest.er1 >conftest.err
35760   rm -f conftest.er1
35761   cat conftest.err >&5
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); } && {
35764          test -z "$ac_c_werror_flag" ||
35765          test ! -s conftest.err
35766        } && test -s conftest.$ac_objext; then
35767   eval "$as_ac_Header=yes"
35768 else
35769   echo "$as_me: failed program was:" >&5
35770 sed 's/^/| /' conftest.$ac_ext >&5
35771
35772         eval "$as_ac_Header=no"
35773 fi
35774
35775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35776 fi
35777 ac_res=`eval echo '${'$as_ac_Header'}'`
35778                { echo "$as_me:$LINENO: result: $ac_res" >&5
35779 echo "${ECHO_T}$ac_res" >&6; }
35780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35781   cat >>confdefs.h <<_ACEOF
35782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35783 _ACEOF
35784
35785 fi
35786
35787 done
35788
35789             if test "$ac_cv_header_widec_h" = "yes"; then
35790                 wchar_headers="$wchar_headers
35791 #include <widec.h>"
35792             fi
35793     esac
35794
35795
35796   for wx_func in putws fputws wprintf vswprintf vswscanf
35797   do
35798     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35799 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35800 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35801   echo $ECHO_N "(cached) $ECHO_C" >&6
35802 else
35803
35804         cat >conftest.$ac_ext <<_ACEOF
35805
35806             /* confdefs.h.  */
35807 _ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h.  */
35811
35812                 $wchar_headers
35813                 $ac_includes_default
35814
35815 int
35816 main ()
35817 {
35818
35819                 #ifndef $wx_func
35820                   &$wx_func;
35821                 #endif
35822
35823
35824   ;
35825   return 0;
35826 }
35827
35828 _ACEOF
35829 rm -f conftest.$ac_objext conftest$ac_exeext
35830 if { (ac_try="$ac_link"
35831 case "(($ac_try" in
35832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35833   *) ac_try_echo=$ac_try;;
35834 esac
35835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35836   (eval "$ac_link") 2>conftest.er1
35837   ac_status=$?
35838   grep -v '^ *+' conftest.er1 >conftest.err
35839   rm -f conftest.er1
35840   cat conftest.err >&5
35841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842   (exit $ac_status); } && {
35843          test -z "$ac_c_werror_flag" ||
35844          test ! -s conftest.err
35845        } && test -s conftest$ac_exeext &&
35846        $as_test_x conftest$ac_exeext; then
35847   eval wx_cv_func_$wx_func=yes
35848 else
35849   echo "$as_me: failed program was:" >&5
35850 sed 's/^/| /' conftest.$ac_ext >&5
35851
35852         eval wx_cv_func_$wx_func=no
35853 fi
35854
35855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35856       conftest$ac_exeext conftest.$ac_ext
35857
35858 fi
35859 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35860                { echo "$as_me:$LINENO: result: $ac_res" >&5
35861 echo "${ECHO_T}$ac_res" >&6; }
35862
35863     if eval test \$wx_cv_func_$wx_func = yes
35864     then
35865       cat >>confdefs.h <<_ACEOF
35866 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35867 _ACEOF
35868
35869
35870     else
35871       :
35872
35873     fi
35874   done
35875
35876
35877                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35878 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35879     cat >conftest.$ac_ext <<_ACEOF
35880 /* confdefs.h.  */
35881 _ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h.  */
35885 #include <wchar.h>
35886 int
35887 main ()
35888 {
35889 &_vsnwprintf;
35890   ;
35891   return 0;
35892 }
35893 _ACEOF
35894 rm -f conftest.$ac_objext
35895 if { (ac_try="$ac_compile"
35896 case "(($ac_try" in
35897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35898   *) ac_try_echo=$ac_try;;
35899 esac
35900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35901   (eval "$ac_compile") 2>conftest.er1
35902   ac_status=$?
35903   grep -v '^ *+' conftest.er1 >conftest.err
35904   rm -f conftest.er1
35905   cat conftest.err >&5
35906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907   (exit $ac_status); } && {
35908          test -z "$ac_c_werror_flag" ||
35909          test ! -s conftest.err
35910        } && test -s conftest.$ac_objext; then
35911   { echo "$as_me:$LINENO: result: yes" >&5
35912 echo "${ECHO_T}yes" >&6; }
35913                     cat >>confdefs.h <<\_ACEOF
35914 #define HAVE__VSNWPRINTF 1
35915 _ACEOF
35916
35917 else
35918   echo "$as_me: failed program was:" >&5
35919 sed 's/^/| /' conftest.$ac_ext >&5
35920
35921         { echo "$as_me:$LINENO: result: no" >&5
35922 echo "${ECHO_T}no" >&6; }
35923 fi
35924
35925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35926 fi
35927
35928 if test "$wxUSE_FILE" = "yes"; then
35929
35930   for wx_func in fsync
35931   do
35932     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35933 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35934 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35935   echo $ECHO_N "(cached) $ECHO_C" >&6
35936 else
35937
35938         cat >conftest.$ac_ext <<_ACEOF
35939
35940             /* confdefs.h.  */
35941 _ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h.  */
35945
35946
35947                 $ac_includes_default
35948
35949 int
35950 main ()
35951 {
35952
35953                 #ifndef $wx_func
35954                   &$wx_func;
35955                 #endif
35956
35957
35958   ;
35959   return 0;
35960 }
35961
35962 _ACEOF
35963 rm -f conftest.$ac_objext conftest$ac_exeext
35964 if { (ac_try="$ac_link"
35965 case "(($ac_try" in
35966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35967   *) ac_try_echo=$ac_try;;
35968 esac
35969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35970   (eval "$ac_link") 2>conftest.er1
35971   ac_status=$?
35972   grep -v '^ *+' conftest.er1 >conftest.err
35973   rm -f conftest.er1
35974   cat conftest.err >&5
35975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976   (exit $ac_status); } && {
35977          test -z "$ac_c_werror_flag" ||
35978          test ! -s conftest.err
35979        } && test -s conftest$ac_exeext &&
35980        $as_test_x conftest$ac_exeext; then
35981   eval wx_cv_func_$wx_func=yes
35982 else
35983   echo "$as_me: failed program was:" >&5
35984 sed 's/^/| /' conftest.$ac_ext >&5
35985
35986         eval wx_cv_func_$wx_func=no
35987 fi
35988
35989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35990       conftest$ac_exeext conftest.$ac_ext
35991
35992 fi
35993 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35994                { echo "$as_me:$LINENO: result: $ac_res" >&5
35995 echo "${ECHO_T}$ac_res" >&6; }
35996
35997     if eval test \$wx_cv_func_$wx_func = yes
35998     then
35999       cat >>confdefs.h <<_ACEOF
36000 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36001 _ACEOF
36002
36003
36004     else
36005       :
36006
36007     fi
36008   done
36009
36010 fi
36011
36012 ac_ext=cpp
36013 ac_cpp='$CXXCPP $CPPFLAGS'
36014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36017
36018
36019   for wx_func in round
36020   do
36021     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36022 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36023 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36024   echo $ECHO_N "(cached) $ECHO_C" >&6
36025 else
36026
36027         cat >conftest.$ac_ext <<_ACEOF
36028
36029             /* confdefs.h.  */
36030 _ACEOF
36031 cat confdefs.h >>conftest.$ac_ext
36032 cat >>conftest.$ac_ext <<_ACEOF
36033 /* end confdefs.h.  */
36034
36035                 #include <math.h>
36036                 $ac_includes_default
36037
36038 int
36039 main ()
36040 {
36041
36042                 #ifndef $wx_func
36043                   &$wx_func;
36044                 #endif
36045
36046
36047   ;
36048   return 0;
36049 }
36050
36051 _ACEOF
36052 rm -f conftest.$ac_objext conftest$ac_exeext
36053 if { (ac_try="$ac_link"
36054 case "(($ac_try" in
36055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36056   *) ac_try_echo=$ac_try;;
36057 esac
36058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36059   (eval "$ac_link") 2>conftest.er1
36060   ac_status=$?
36061   grep -v '^ *+' conftest.er1 >conftest.err
36062   rm -f conftest.er1
36063   cat conftest.err >&5
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); } && {
36066          test -z "$ac_cxx_werror_flag" ||
36067          test ! -s conftest.err
36068        } && test -s conftest$ac_exeext &&
36069        $as_test_x conftest$ac_exeext; then
36070   eval wx_cv_func_$wx_func=yes
36071 else
36072   echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.$ac_ext >&5
36074
36075         eval wx_cv_func_$wx_func=no
36076 fi
36077
36078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36079       conftest$ac_exeext conftest.$ac_ext
36080
36081 fi
36082 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36083                { echo "$as_me:$LINENO: result: $ac_res" >&5
36084 echo "${ECHO_T}$ac_res" >&6; }
36085
36086     if eval test \$wx_cv_func_$wx_func = yes
36087     then
36088       cat >>confdefs.h <<_ACEOF
36089 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36090 _ACEOF
36091
36092
36093     else
36094       :
36095
36096     fi
36097   done
36098
36099 ac_ext=c
36100 ac_cpp='$CPP $CPPFLAGS'
36101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36104
36105
36106 if test "$TOOLKIT" != "MSW"; then
36107
36108 if test "$wxUSE_LIBICONV" != "no" ; then
36109
36110
36111
36112 # Check whether --with-libiconv-prefix was given.
36113 if test "${with_libiconv_prefix+set}" = set; then
36114   withval=$with_libiconv_prefix;
36115     for dir in `echo "$withval" | tr : ' '`; do
36116       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36117       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36118     done
36119
36120 fi
36121
36122
36123   { echo "$as_me:$LINENO: checking for iconv" >&5
36124 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36125 if test "${am_cv_func_iconv+set}" = set; then
36126   echo $ECHO_N "(cached) $ECHO_C" >&6
36127 else
36128
36129     am_cv_func_iconv="no, consider installing GNU libiconv"
36130     am_cv_lib_iconv=no
36131     cat >conftest.$ac_ext <<_ACEOF
36132 /* confdefs.h.  */
36133 _ACEOF
36134 cat confdefs.h >>conftest.$ac_ext
36135 cat >>conftest.$ac_ext <<_ACEOF
36136 /* end confdefs.h.  */
36137 #include <stdlib.h>
36138 #include <iconv.h>
36139 int
36140 main ()
36141 {
36142 iconv_t cd = iconv_open("","");
36143        iconv(cd,NULL,NULL,NULL,NULL);
36144        iconv_close(cd);
36145   ;
36146   return 0;
36147 }
36148 _ACEOF
36149 rm -f conftest.$ac_objext conftest$ac_exeext
36150 if { (ac_try="$ac_link"
36151 case "(($ac_try" in
36152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36153   *) ac_try_echo=$ac_try;;
36154 esac
36155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36156   (eval "$ac_link") 2>conftest.er1
36157   ac_status=$?
36158   grep -v '^ *+' conftest.er1 >conftest.err
36159   rm -f conftest.er1
36160   cat conftest.err >&5
36161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162   (exit $ac_status); } && {
36163          test -z "$ac_c_werror_flag" ||
36164          test ! -s conftest.err
36165        } && test -s conftest$ac_exeext &&
36166        $as_test_x conftest$ac_exeext; then
36167   am_cv_func_iconv=yes
36168 else
36169   echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36171
36172
36173 fi
36174
36175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36176       conftest$ac_exeext conftest.$ac_ext
36177     if test "$am_cv_func_iconv" != yes; then
36178       am_save_LIBS="$LIBS"
36179       LIBS="$LIBS -liconv"
36180       cat >conftest.$ac_ext <<_ACEOF
36181 /* confdefs.h.  */
36182 _ACEOF
36183 cat confdefs.h >>conftest.$ac_ext
36184 cat >>conftest.$ac_ext <<_ACEOF
36185 /* end confdefs.h.  */
36186 #include <stdlib.h>
36187 #include <iconv.h>
36188 int
36189 main ()
36190 {
36191 iconv_t cd = iconv_open("","");
36192          iconv(cd,NULL,NULL,NULL,NULL);
36193          iconv_close(cd);
36194   ;
36195   return 0;
36196 }
36197 _ACEOF
36198 rm -f conftest.$ac_objext conftest$ac_exeext
36199 if { (ac_try="$ac_link"
36200 case "(($ac_try" in
36201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36202   *) ac_try_echo=$ac_try;;
36203 esac
36204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36205   (eval "$ac_link") 2>conftest.er1
36206   ac_status=$?
36207   grep -v '^ *+' conftest.er1 >conftest.err
36208   rm -f conftest.er1
36209   cat conftest.err >&5
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); } && {
36212          test -z "$ac_c_werror_flag" ||
36213          test ! -s conftest.err
36214        } && test -s conftest$ac_exeext &&
36215        $as_test_x conftest$ac_exeext; then
36216   am_cv_lib_iconv=yes
36217         am_cv_func_iconv=yes
36218 else
36219   echo "$as_me: failed program was:" >&5
36220 sed 's/^/| /' conftest.$ac_ext >&5
36221
36222
36223 fi
36224
36225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36226       conftest$ac_exeext conftest.$ac_ext
36227       LIBS="$am_save_LIBS"
36228     fi
36229
36230 fi
36231 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36232 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36233   if test "$am_cv_func_iconv" = yes; then
36234
36235 cat >>confdefs.h <<\_ACEOF
36236 #define HAVE_ICONV 1
36237 _ACEOF
36238
36239     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36240 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36241 if test "${wx_cv_func_iconv_const+set}" = set; then
36242   echo $ECHO_N "(cached) $ECHO_C" >&6
36243 else
36244   cat >conftest.$ac_ext <<_ACEOF
36245 /* confdefs.h.  */
36246 _ACEOF
36247 cat confdefs.h >>conftest.$ac_ext
36248 cat >>conftest.$ac_ext <<_ACEOF
36249 /* end confdefs.h.  */
36250
36251 #include <stdlib.h>
36252 #include <iconv.h>
36253 extern
36254 #ifdef __cplusplus
36255 "C"
36256 #endif
36257 #if defined(__STDC__) || defined(__cplusplus)
36258 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36259 #else
36260 size_t iconv();
36261 #endif
36262
36263 int
36264 main ()
36265 {
36266
36267   ;
36268   return 0;
36269 }
36270 _ACEOF
36271 rm -f conftest.$ac_objext
36272 if { (ac_try="$ac_compile"
36273 case "(($ac_try" in
36274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36275   *) ac_try_echo=$ac_try;;
36276 esac
36277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36278   (eval "$ac_compile") 2>conftest.er1
36279   ac_status=$?
36280   grep -v '^ *+' conftest.er1 >conftest.err
36281   rm -f conftest.er1
36282   cat conftest.err >&5
36283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284   (exit $ac_status); } && {
36285          test -z "$ac_c_werror_flag" ||
36286          test ! -s conftest.err
36287        } && test -s conftest.$ac_objext; then
36288   wx_cv_func_iconv_const="no"
36289 else
36290   echo "$as_me: failed program was:" >&5
36291 sed 's/^/| /' conftest.$ac_ext >&5
36292
36293         wx_cv_func_iconv_const="yes"
36294
36295 fi
36296
36297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36298
36299 fi
36300 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36301 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36302
36303     iconv_const=
36304     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36305         iconv_const="const"
36306     fi
36307
36308
36309 cat >>confdefs.h <<_ACEOF
36310 #define ICONV_CONST $iconv_const
36311 _ACEOF
36312
36313   fi
36314   LIBICONV=
36315   if test "$am_cv_lib_iconv" = yes; then
36316     LIBICONV="-liconv"
36317   fi
36318
36319
36320     LIBS="$LIBICONV $LIBS"
36321 fi
36322
36323 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36324
36325 for ac_func in sigaction
36326 do
36327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36331   echo $ECHO_N "(cached) $ECHO_C" >&6
36332 else
36333   cat >conftest.$ac_ext <<_ACEOF
36334 /* confdefs.h.  */
36335 _ACEOF
36336 cat confdefs.h >>conftest.$ac_ext
36337 cat >>conftest.$ac_ext <<_ACEOF
36338 /* end confdefs.h.  */
36339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36341 #define $ac_func innocuous_$ac_func
36342
36343 /* System header to define __stub macros and hopefully few prototypes,
36344     which can conflict with char $ac_func (); below.
36345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36346     <limits.h> exists even on freestanding compilers.  */
36347
36348 #ifdef __STDC__
36349 # include <limits.h>
36350 #else
36351 # include <assert.h>
36352 #endif
36353
36354 #undef $ac_func
36355
36356 /* Override any GCC internal prototype to avoid an error.
36357    Use char because int might match the return type of a GCC
36358    builtin and then its argument prototype would still apply.  */
36359 #ifdef __cplusplus
36360 extern "C"
36361 #endif
36362 char $ac_func ();
36363 /* The GNU C library defines this for functions which it implements
36364     to always fail with ENOSYS.  Some functions are actually named
36365     something starting with __ and the normal name is an alias.  */
36366 #if defined __stub_$ac_func || defined __stub___$ac_func
36367 choke me
36368 #endif
36369
36370 int
36371 main ()
36372 {
36373 return $ac_func ();
36374   ;
36375   return 0;
36376 }
36377 _ACEOF
36378 rm -f conftest.$ac_objext conftest$ac_exeext
36379 if { (ac_try="$ac_link"
36380 case "(($ac_try" in
36381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36382   *) ac_try_echo=$ac_try;;
36383 esac
36384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36385   (eval "$ac_link") 2>conftest.er1
36386   ac_status=$?
36387   grep -v '^ *+' conftest.er1 >conftest.err
36388   rm -f conftest.er1
36389   cat conftest.err >&5
36390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391   (exit $ac_status); } && {
36392          test -z "$ac_c_werror_flag" ||
36393          test ! -s conftest.err
36394        } && test -s conftest$ac_exeext &&
36395        $as_test_x conftest$ac_exeext; then
36396   eval "$as_ac_var=yes"
36397 else
36398   echo "$as_me: failed program was:" >&5
36399 sed 's/^/| /' conftest.$ac_ext >&5
36400
36401         eval "$as_ac_var=no"
36402 fi
36403
36404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36405       conftest$ac_exeext conftest.$ac_ext
36406 fi
36407 ac_res=`eval echo '${'$as_ac_var'}'`
36408                { echo "$as_me:$LINENO: result: $ac_res" >&5
36409 echo "${ECHO_T}$ac_res" >&6; }
36410 if test `eval echo '${'$as_ac_var'}'` = yes; then
36411   cat >>confdefs.h <<_ACEOF
36412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36413 _ACEOF
36414
36415 fi
36416 done
36417
36418
36419     if test "$ac_cv_func_sigaction" = "no"; then
36420         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36421 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36422         wxUSE_ON_FATAL_EXCEPTION=no
36423     fi
36424
36425     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36426       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36427 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36428 if test "${wx_cv_type_sa_handler+set}" = set; then
36429   echo $ECHO_N "(cached) $ECHO_C" >&6
36430 else
36431
36432                 ac_ext=cpp
36433 ac_cpp='$CXXCPP $CPPFLAGS'
36434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36437
36438         cat >conftest.$ac_ext <<_ACEOF
36439 /* confdefs.h.  */
36440 _ACEOF
36441 cat confdefs.h >>conftest.$ac_ext
36442 cat >>conftest.$ac_ext <<_ACEOF
36443 /* end confdefs.h.  */
36444 #include <signal.h>
36445 int
36446 main ()
36447 {
36448
36449                         extern void testSigHandler(int);
36450
36451                         struct sigaction sa;
36452                         sa.sa_handler = testSigHandler;
36453
36454   ;
36455   return 0;
36456 }
36457 _ACEOF
36458 rm -f conftest.$ac_objext
36459 if { (ac_try="$ac_compile"
36460 case "(($ac_try" in
36461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36462   *) ac_try_echo=$ac_try;;
36463 esac
36464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36465   (eval "$ac_compile") 2>conftest.er1
36466   ac_status=$?
36467   grep -v '^ *+' conftest.er1 >conftest.err
36468   rm -f conftest.er1
36469   cat conftest.err >&5
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); } && {
36472          test -z "$ac_cxx_werror_flag" ||
36473          test ! -s conftest.err
36474        } && test -s conftest.$ac_objext; then
36475
36476                         wx_cv_type_sa_handler=int
36477
36478 else
36479   echo "$as_me: failed program was:" >&5
36480 sed 's/^/| /' conftest.$ac_ext >&5
36481
36482
36483                         wx_cv_type_sa_handler=void
36484
36485 fi
36486
36487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36488         ac_ext=c
36489 ac_cpp='$CPP $CPPFLAGS'
36490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36493
36494
36495 fi
36496 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36497 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36498
36499       cat >>confdefs.h <<_ACEOF
36500 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36501 _ACEOF
36502
36503     fi
36504 fi
36505
36506 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36507     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36508 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36509 if test "${wx_cv_func_backtrace+set}" = set; then
36510   echo $ECHO_N "(cached) $ECHO_C" >&6
36511 else
36512
36513             ac_ext=cpp
36514 ac_cpp='$CXXCPP $CPPFLAGS'
36515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36518
36519             cat >conftest.$ac_ext <<_ACEOF
36520 /* confdefs.h.  */
36521 _ACEOF
36522 cat confdefs.h >>conftest.$ac_ext
36523 cat >>conftest.$ac_ext <<_ACEOF
36524 /* end confdefs.h.  */
36525 #include <execinfo.h>
36526 int
36527 main ()
36528 {
36529
36530                     void *trace[1];
36531                     char **messages;
36532
36533                     backtrace(trace, 1);
36534                     messages = backtrace_symbols(trace, 1);
36535
36536   ;
36537   return 0;
36538 }
36539 _ACEOF
36540 rm -f conftest.$ac_objext
36541 if { (ac_try="$ac_compile"
36542 case "(($ac_try" in
36543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36544   *) ac_try_echo=$ac_try;;
36545 esac
36546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36547   (eval "$ac_compile") 2>conftest.er1
36548   ac_status=$?
36549   grep -v '^ *+' conftest.er1 >conftest.err
36550   rm -f conftest.er1
36551   cat conftest.err >&5
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); } && {
36554          test -z "$ac_cxx_werror_flag" ||
36555          test ! -s conftest.err
36556        } && test -s conftest.$ac_objext; then
36557   wx_cv_func_backtrace=yes
36558 else
36559   echo "$as_me: failed program was:" >&5
36560 sed 's/^/| /' conftest.$ac_ext >&5
36561
36562         wx_cv_func_backtrace=no
36563
36564 fi
36565
36566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36567             ac_ext=c
36568 ac_cpp='$CPP $CPPFLAGS'
36569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36572
36573
36574
36575 fi
36576 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36577 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36578
36579
36580     if test "$wx_cv_func_backtrace" = "no"; then
36581         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36582 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36583         wxUSE_STACKWALKER=no
36584     else
36585         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36586 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36587 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36588   echo $ECHO_N "(cached) $ECHO_C" >&6
36589 else
36590
36591                 ac_ext=cpp
36592 ac_cpp='$CXXCPP $CPPFLAGS'
36593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36596
36597                 cat >conftest.$ac_ext <<_ACEOF
36598 /* confdefs.h.  */
36599 _ACEOF
36600 cat confdefs.h >>conftest.$ac_ext
36601 cat >>conftest.$ac_ext <<_ACEOF
36602 /* end confdefs.h.  */
36603 #include <cxxabi.h>
36604 int
36605 main ()
36606 {
36607
36608                         int rc;
36609                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36610
36611   ;
36612   return 0;
36613 }
36614 _ACEOF
36615 rm -f conftest.$ac_objext conftest$ac_exeext
36616 if { (ac_try="$ac_link"
36617 case "(($ac_try" in
36618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36619   *) ac_try_echo=$ac_try;;
36620 esac
36621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36622   (eval "$ac_link") 2>conftest.er1
36623   ac_status=$?
36624   grep -v '^ *+' conftest.er1 >conftest.err
36625   rm -f conftest.er1
36626   cat conftest.err >&5
36627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628   (exit $ac_status); } && {
36629          test -z "$ac_cxx_werror_flag" ||
36630          test ! -s conftest.err
36631        } && test -s conftest$ac_exeext &&
36632        $as_test_x conftest$ac_exeext; then
36633   wx_cv_func_cxa_demangle=yes
36634 else
36635   echo "$as_me: failed program was:" >&5
36636 sed 's/^/| /' conftest.$ac_ext >&5
36637
36638         wx_cv_func_cxa_demangle=no
36639
36640 fi
36641
36642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36643       conftest$ac_exeext conftest.$ac_ext
36644                 ac_ext=c
36645 ac_cpp='$CPP $CPPFLAGS'
36646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36649
36650
36651
36652 fi
36653 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36654 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36655
36656         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36657             cat >>confdefs.h <<\_ACEOF
36658 #define HAVE_CXA_DEMANGLE 1
36659 _ACEOF
36660
36661         fi
36662     fi
36663 fi
36664
36665 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36666     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36667 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36668     wxUSE_STACKWALKER=no
36669 fi
36670
36671
36672
36673
36674 for ac_func in mkstemp mktemp
36675 do
36676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36680   echo $ECHO_N "(cached) $ECHO_C" >&6
36681 else
36682   cat >conftest.$ac_ext <<_ACEOF
36683 /* confdefs.h.  */
36684 _ACEOF
36685 cat confdefs.h >>conftest.$ac_ext
36686 cat >>conftest.$ac_ext <<_ACEOF
36687 /* end confdefs.h.  */
36688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36690 #define $ac_func innocuous_$ac_func
36691
36692 /* System header to define __stub macros and hopefully few prototypes,
36693     which can conflict with char $ac_func (); below.
36694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36695     <limits.h> exists even on freestanding compilers.  */
36696
36697 #ifdef __STDC__
36698 # include <limits.h>
36699 #else
36700 # include <assert.h>
36701 #endif
36702
36703 #undef $ac_func
36704
36705 /* Override any GCC internal prototype to avoid an error.
36706    Use char because int might match the return type of a GCC
36707    builtin and then its argument prototype would still apply.  */
36708 #ifdef __cplusplus
36709 extern "C"
36710 #endif
36711 char $ac_func ();
36712 /* The GNU C library defines this for functions which it implements
36713     to always fail with ENOSYS.  Some functions are actually named
36714     something starting with __ and the normal name is an alias.  */
36715 #if defined __stub_$ac_func || defined __stub___$ac_func
36716 choke me
36717 #endif
36718
36719 int
36720 main ()
36721 {
36722 return $ac_func ();
36723   ;
36724   return 0;
36725 }
36726 _ACEOF
36727 rm -f conftest.$ac_objext conftest$ac_exeext
36728 if { (ac_try="$ac_link"
36729 case "(($ac_try" in
36730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36731   *) ac_try_echo=$ac_try;;
36732 esac
36733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36734   (eval "$ac_link") 2>conftest.er1
36735   ac_status=$?
36736   grep -v '^ *+' conftest.er1 >conftest.err
36737   rm -f conftest.er1
36738   cat conftest.err >&5
36739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740   (exit $ac_status); } && {
36741          test -z "$ac_c_werror_flag" ||
36742          test ! -s conftest.err
36743        } && test -s conftest$ac_exeext &&
36744        $as_test_x conftest$ac_exeext; then
36745   eval "$as_ac_var=yes"
36746 else
36747   echo "$as_me: failed program was:" >&5
36748 sed 's/^/| /' conftest.$ac_ext >&5
36749
36750         eval "$as_ac_var=no"
36751 fi
36752
36753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36754       conftest$ac_exeext conftest.$ac_ext
36755 fi
36756 ac_res=`eval echo '${'$as_ac_var'}'`
36757                { echo "$as_me:$LINENO: result: $ac_res" >&5
36758 echo "${ECHO_T}$ac_res" >&6; }
36759 if test `eval echo '${'$as_ac_var'}'` = yes; then
36760   cat >>confdefs.h <<_ACEOF
36761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36762 _ACEOF
36763  break
36764 fi
36765 done
36766
36767
36768 { echo "$as_me:$LINENO: checking for statfs" >&5
36769 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36770 if test "${wx_cv_func_statfs+set}" = set; then
36771   echo $ECHO_N "(cached) $ECHO_C" >&6
36772 else
36773   cat >conftest.$ac_ext <<_ACEOF
36774 /* confdefs.h.  */
36775 _ACEOF
36776 cat confdefs.h >>conftest.$ac_ext
36777 cat >>conftest.$ac_ext <<_ACEOF
36778 /* end confdefs.h.  */
36779
36780              #if defined(__BSD__)
36781              #include <sys/param.h>
36782              #include <sys/mount.h>
36783              #else
36784              #include <sys/vfs.h>
36785              #endif
36786
36787 int
36788 main ()
36789 {
36790
36791              long l;
36792              struct statfs fs;
36793              statfs("/", &fs);
36794              l = fs.f_bsize;
36795              l += fs.f_blocks;
36796              l += fs.f_bavail;
36797
36798   ;
36799   return 0;
36800 }
36801 _ACEOF
36802 rm -f conftest.$ac_objext
36803 if { (ac_try="$ac_compile"
36804 case "(($ac_try" in
36805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36806   *) ac_try_echo=$ac_try;;
36807 esac
36808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36809   (eval "$ac_compile") 2>conftest.er1
36810   ac_status=$?
36811   grep -v '^ *+' conftest.er1 >conftest.err
36812   rm -f conftest.er1
36813   cat conftest.err >&5
36814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815   (exit $ac_status); } && {
36816          test -z "$ac_c_werror_flag" ||
36817          test ! -s conftest.err
36818        } && test -s conftest.$ac_objext; then
36819   wx_cv_func_statfs=yes
36820 else
36821   echo "$as_me: failed program was:" >&5
36822 sed 's/^/| /' conftest.$ac_ext >&5
36823
36824         wx_cv_func_statfs=no
36825
36826 fi
36827
36828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36829
36830 fi
36831 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36832 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36833
36834 if test "$wx_cv_func_statfs" = "yes"; then
36835         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36836 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36837 if test "${wx_cv_func_statfs_decl+set}" = set; then
36838   echo $ECHO_N "(cached) $ECHO_C" >&6
36839 else
36840   ac_ext=cpp
36841 ac_cpp='$CXXCPP $CPPFLAGS'
36842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36845
36846         cat >conftest.$ac_ext <<_ACEOF
36847 /* confdefs.h.  */
36848 _ACEOF
36849 cat confdefs.h >>conftest.$ac_ext
36850 cat >>conftest.$ac_ext <<_ACEOF
36851 /* end confdefs.h.  */
36852
36853                  #if defined(__BSD__)
36854                  #include <sys/param.h>
36855                  #include <sys/mount.h>
36856                  #else
36857                  #include <sys/vfs.h>
36858                  #endif
36859
36860 int
36861 main ()
36862 {
36863
36864                 struct statfs fs;
36865                 statfs("", &fs);
36866
36867   ;
36868   return 0;
36869 }
36870 _ACEOF
36871 rm -f conftest.$ac_objext
36872 if { (ac_try="$ac_compile"
36873 case "(($ac_try" in
36874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36875   *) ac_try_echo=$ac_try;;
36876 esac
36877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36878   (eval "$ac_compile") 2>conftest.er1
36879   ac_status=$?
36880   grep -v '^ *+' conftest.er1 >conftest.err
36881   rm -f conftest.er1
36882   cat conftest.err >&5
36883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884   (exit $ac_status); } && {
36885          test -z "$ac_cxx_werror_flag" ||
36886          test ! -s conftest.err
36887        } && test -s conftest.$ac_objext; then
36888   wx_cv_func_statfs_decl=yes
36889 else
36890   echo "$as_me: failed program was:" >&5
36891 sed 's/^/| /' conftest.$ac_ext >&5
36892
36893         wx_cv_func_statfs_decl=no
36894
36895 fi
36896
36897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36898         ac_ext=c
36899 ac_cpp='$CPP $CPPFLAGS'
36900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36903
36904
36905 fi
36906 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36907 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36908
36909     if test "$wx_cv_func_statfs_decl" = "yes"; then
36910         cat >>confdefs.h <<\_ACEOF
36911 #define HAVE_STATFS_DECL 1
36912 _ACEOF
36913
36914     fi
36915
36916     wx_cv_type_statvfs_t="struct statfs"
36917     cat >>confdefs.h <<\_ACEOF
36918 #define HAVE_STATFS 1
36919 _ACEOF
36920
36921 else
36922     { echo "$as_me:$LINENO: checking for statvfs" >&5
36923 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36924 if test "${wx_cv_func_statvfs+set}" = set; then
36925   echo $ECHO_N "(cached) $ECHO_C" >&6
36926 else
36927   cat >conftest.$ac_ext <<_ACEOF
36928 /* confdefs.h.  */
36929 _ACEOF
36930 cat confdefs.h >>conftest.$ac_ext
36931 cat >>conftest.$ac_ext <<_ACEOF
36932 /* end confdefs.h.  */
36933
36934                 #include <stddef.h>
36935                 #include <sys/statvfs.h>
36936
36937 int
36938 main ()
36939 {
36940
36941                 statvfs("/", NULL);
36942
36943   ;
36944   return 0;
36945 }
36946 _ACEOF
36947 rm -f conftest.$ac_objext
36948 if { (ac_try="$ac_compile"
36949 case "(($ac_try" in
36950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36951   *) ac_try_echo=$ac_try;;
36952 esac
36953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36954   (eval "$ac_compile") 2>conftest.er1
36955   ac_status=$?
36956   grep -v '^ *+' conftest.er1 >conftest.err
36957   rm -f conftest.er1
36958   cat conftest.err >&5
36959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960   (exit $ac_status); } && {
36961          test -z "$ac_c_werror_flag" ||
36962          test ! -s conftest.err
36963        } && test -s conftest.$ac_objext; then
36964   wx_cv_func_statvfs=yes
36965 else
36966   echo "$as_me: failed program was:" >&5
36967 sed 's/^/| /' conftest.$ac_ext >&5
36968
36969         wx_cv_func_statvfs=no
36970
36971 fi
36972
36973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36974
36975 fi
36976 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36977 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36978
36979     if test "$wx_cv_func_statvfs" = "yes"; then
36980                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36981 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36982 if test "${wx_cv_type_statvfs_t+set}" = set; then
36983   echo $ECHO_N "(cached) $ECHO_C" >&6
36984 else
36985   ac_ext=cpp
36986 ac_cpp='$CXXCPP $CPPFLAGS'
36987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36990
36991             cat >conftest.$ac_ext <<_ACEOF
36992 /* confdefs.h.  */
36993 _ACEOF
36994 cat confdefs.h >>conftest.$ac_ext
36995 cat >>conftest.$ac_ext <<_ACEOF
36996 /* end confdefs.h.  */
36997
36998                     #include <sys/statvfs.h>
36999
37000 int
37001 main ()
37002 {
37003
37004                     long l;
37005                     statvfs_t fs;
37006                     statvfs("/", &fs);
37007                     l = fs.f_bsize;
37008                     l += fs.f_blocks;
37009                     l += fs.f_bavail;
37010
37011   ;
37012   return 0;
37013 }
37014 _ACEOF
37015 rm -f conftest.$ac_objext
37016 if { (ac_try="$ac_compile"
37017 case "(($ac_try" in
37018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37019   *) ac_try_echo=$ac_try;;
37020 esac
37021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37022   (eval "$ac_compile") 2>conftest.er1
37023   ac_status=$?
37024   grep -v '^ *+' conftest.er1 >conftest.err
37025   rm -f conftest.er1
37026   cat conftest.err >&5
37027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028   (exit $ac_status); } && {
37029          test -z "$ac_cxx_werror_flag" ||
37030          test ! -s conftest.err
37031        } && test -s conftest.$ac_objext; then
37032   wx_cv_type_statvfs_t=statvfs_t
37033 else
37034   echo "$as_me: failed program was:" >&5
37035 sed 's/^/| /' conftest.$ac_ext >&5
37036
37037
37038                     cat >conftest.$ac_ext <<_ACEOF
37039 /* confdefs.h.  */
37040 _ACEOF
37041 cat confdefs.h >>conftest.$ac_ext
37042 cat >>conftest.$ac_ext <<_ACEOF
37043 /* end confdefs.h.  */
37044
37045                             #include <sys/statvfs.h>
37046
37047 int
37048 main ()
37049 {
37050
37051                             long l;
37052                             struct statvfs fs;
37053                             statvfs("/", &fs);
37054                             l = fs.f_bsize;
37055                             l += fs.f_blocks;
37056                             l += fs.f_bavail;
37057
37058   ;
37059   return 0;
37060 }
37061 _ACEOF
37062 rm -f conftest.$ac_objext
37063 if { (ac_try="$ac_compile"
37064 case "(($ac_try" in
37065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37066   *) ac_try_echo=$ac_try;;
37067 esac
37068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37069   (eval "$ac_compile") 2>conftest.er1
37070   ac_status=$?
37071   grep -v '^ *+' conftest.er1 >conftest.err
37072   rm -f conftest.er1
37073   cat conftest.err >&5
37074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075   (exit $ac_status); } && {
37076          test -z "$ac_cxx_werror_flag" ||
37077          test ! -s conftest.err
37078        } && test -s conftest.$ac_objext; then
37079   wx_cv_type_statvfs_t="struct statvfs"
37080 else
37081   echo "$as_me: failed program was:" >&5
37082 sed 's/^/| /' conftest.$ac_ext >&5
37083
37084         wx_cv_type_statvfs_t="unknown"
37085
37086 fi
37087
37088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37089
37090
37091 fi
37092
37093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37094             ac_ext=c
37095 ac_cpp='$CPP $CPPFLAGS'
37096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37099
37100
37101 fi
37102 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37103 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37104
37105         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37106             cat >>confdefs.h <<\_ACEOF
37107 #define HAVE_STATVFS 1
37108 _ACEOF
37109
37110         fi
37111     else
37112                 wx_cv_type_statvfs_t="unknown"
37113     fi
37114 fi
37115
37116 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37117     cat >>confdefs.h <<_ACEOF
37118 #define WX_STATFS_T $wx_cv_type_statvfs_t
37119 _ACEOF
37120
37121 else
37122     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37123 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37124 fi
37125
37126 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37127
37128
37129 for ac_func in fcntl flock
37130 do
37131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37135   echo $ECHO_N "(cached) $ECHO_C" >&6
37136 else
37137   cat >conftest.$ac_ext <<_ACEOF
37138 /* confdefs.h.  */
37139 _ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h.  */
37143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37145 #define $ac_func innocuous_$ac_func
37146
37147 /* System header to define __stub macros and hopefully few prototypes,
37148     which can conflict with char $ac_func (); below.
37149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37150     <limits.h> exists even on freestanding compilers.  */
37151
37152 #ifdef __STDC__
37153 # include <limits.h>
37154 #else
37155 # include <assert.h>
37156 #endif
37157
37158 #undef $ac_func
37159
37160 /* Override any GCC internal prototype to avoid an error.
37161    Use char because int might match the return type of a GCC
37162    builtin and then its argument prototype would still apply.  */
37163 #ifdef __cplusplus
37164 extern "C"
37165 #endif
37166 char $ac_func ();
37167 /* The GNU C library defines this for functions which it implements
37168     to always fail with ENOSYS.  Some functions are actually named
37169     something starting with __ and the normal name is an alias.  */
37170 #if defined __stub_$ac_func || defined __stub___$ac_func
37171 choke me
37172 #endif
37173
37174 int
37175 main ()
37176 {
37177 return $ac_func ();
37178   ;
37179   return 0;
37180 }
37181 _ACEOF
37182 rm -f conftest.$ac_objext conftest$ac_exeext
37183 if { (ac_try="$ac_link"
37184 case "(($ac_try" in
37185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37186   *) ac_try_echo=$ac_try;;
37187 esac
37188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37189   (eval "$ac_link") 2>conftest.er1
37190   ac_status=$?
37191   grep -v '^ *+' conftest.er1 >conftest.err
37192   rm -f conftest.er1
37193   cat conftest.err >&5
37194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195   (exit $ac_status); } && {
37196          test -z "$ac_c_werror_flag" ||
37197          test ! -s conftest.err
37198        } && test -s conftest$ac_exeext &&
37199        $as_test_x conftest$ac_exeext; then
37200   eval "$as_ac_var=yes"
37201 else
37202   echo "$as_me: failed program was:" >&5
37203 sed 's/^/| /' conftest.$ac_ext >&5
37204
37205         eval "$as_ac_var=no"
37206 fi
37207
37208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37209       conftest$ac_exeext conftest.$ac_ext
37210 fi
37211 ac_res=`eval echo '${'$as_ac_var'}'`
37212                { echo "$as_me:$LINENO: result: $ac_res" >&5
37213 echo "${ECHO_T}$ac_res" >&6; }
37214 if test `eval echo '${'$as_ac_var'}'` = yes; then
37215   cat >>confdefs.h <<_ACEOF
37216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37217 _ACEOF
37218  break
37219 fi
37220 done
37221
37222
37223     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37224         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37225 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37226         wxUSE_SNGLINST_CHECKER=no
37227     fi
37228 fi
37229
37230
37231
37232 for ac_func in setenv putenv
37233 do
37234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37238   echo $ECHO_N "(cached) $ECHO_C" >&6
37239 else
37240   cat >conftest.$ac_ext <<_ACEOF
37241 /* confdefs.h.  */
37242 _ACEOF
37243 cat confdefs.h >>conftest.$ac_ext
37244 cat >>conftest.$ac_ext <<_ACEOF
37245 /* end confdefs.h.  */
37246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37248 #define $ac_func innocuous_$ac_func
37249
37250 /* System header to define __stub macros and hopefully few prototypes,
37251     which can conflict with char $ac_func (); below.
37252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37253     <limits.h> exists even on freestanding compilers.  */
37254
37255 #ifdef __STDC__
37256 # include <limits.h>
37257 #else
37258 # include <assert.h>
37259 #endif
37260
37261 #undef $ac_func
37262
37263 /* Override any GCC internal prototype to avoid an error.
37264    Use char because int might match the return type of a GCC
37265    builtin and then its argument prototype would still apply.  */
37266 #ifdef __cplusplus
37267 extern "C"
37268 #endif
37269 char $ac_func ();
37270 /* The GNU C library defines this for functions which it implements
37271     to always fail with ENOSYS.  Some functions are actually named
37272     something starting with __ and the normal name is an alias.  */
37273 #if defined __stub_$ac_func || defined __stub___$ac_func
37274 choke me
37275 #endif
37276
37277 int
37278 main ()
37279 {
37280 return $ac_func ();
37281   ;
37282   return 0;
37283 }
37284 _ACEOF
37285 rm -f conftest.$ac_objext conftest$ac_exeext
37286 if { (ac_try="$ac_link"
37287 case "(($ac_try" in
37288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37289   *) ac_try_echo=$ac_try;;
37290 esac
37291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37292   (eval "$ac_link") 2>conftest.er1
37293   ac_status=$?
37294   grep -v '^ *+' conftest.er1 >conftest.err
37295   rm -f conftest.er1
37296   cat conftest.err >&5
37297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37298   (exit $ac_status); } && {
37299          test -z "$ac_c_werror_flag" ||
37300          test ! -s conftest.err
37301        } && test -s conftest$ac_exeext &&
37302        $as_test_x conftest$ac_exeext; then
37303   eval "$as_ac_var=yes"
37304 else
37305   echo "$as_me: failed program was:" >&5
37306 sed 's/^/| /' conftest.$ac_ext >&5
37307
37308         eval "$as_ac_var=no"
37309 fi
37310
37311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37312       conftest$ac_exeext conftest.$ac_ext
37313 fi
37314 ac_res=`eval echo '${'$as_ac_var'}'`
37315                { echo "$as_me:$LINENO: result: $ac_res" >&5
37316 echo "${ECHO_T}$ac_res" >&6; }
37317 if test `eval echo '${'$as_ac_var'}'` = yes; then
37318   cat >>confdefs.h <<_ACEOF
37319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37320 _ACEOF
37321  break
37322 fi
37323 done
37324
37325 if test "$ac_cv_func_setenv" = "yes"; then
37326
37327 for ac_func in unsetenv
37328 do
37329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37333   echo $ECHO_N "(cached) $ECHO_C" >&6
37334 else
37335   cat >conftest.$ac_ext <<_ACEOF
37336 /* confdefs.h.  */
37337 _ACEOF
37338 cat confdefs.h >>conftest.$ac_ext
37339 cat >>conftest.$ac_ext <<_ACEOF
37340 /* end confdefs.h.  */
37341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37343 #define $ac_func innocuous_$ac_func
37344
37345 /* System header to define __stub macros and hopefully few prototypes,
37346     which can conflict with char $ac_func (); below.
37347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37348     <limits.h> exists even on freestanding compilers.  */
37349
37350 #ifdef __STDC__
37351 # include <limits.h>
37352 #else
37353 # include <assert.h>
37354 #endif
37355
37356 #undef $ac_func
37357
37358 /* Override any GCC internal prototype to avoid an error.
37359    Use char because int might match the return type of a GCC
37360    builtin and then its argument prototype would still apply.  */
37361 #ifdef __cplusplus
37362 extern "C"
37363 #endif
37364 char $ac_func ();
37365 /* The GNU C library defines this for functions which it implements
37366     to always fail with ENOSYS.  Some functions are actually named
37367     something starting with __ and the normal name is an alias.  */
37368 #if defined __stub_$ac_func || defined __stub___$ac_func
37369 choke me
37370 #endif
37371
37372 int
37373 main ()
37374 {
37375 return $ac_func ();
37376   ;
37377   return 0;
37378 }
37379 _ACEOF
37380 rm -f conftest.$ac_objext conftest$ac_exeext
37381 if { (ac_try="$ac_link"
37382 case "(($ac_try" in
37383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37384   *) ac_try_echo=$ac_try;;
37385 esac
37386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37387   (eval "$ac_link") 2>conftest.er1
37388   ac_status=$?
37389   grep -v '^ *+' conftest.er1 >conftest.err
37390   rm -f conftest.er1
37391   cat conftest.err >&5
37392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393   (exit $ac_status); } && {
37394          test -z "$ac_c_werror_flag" ||
37395          test ! -s conftest.err
37396        } && test -s conftest$ac_exeext &&
37397        $as_test_x conftest$ac_exeext; then
37398   eval "$as_ac_var=yes"
37399 else
37400   echo "$as_me: failed program was:" >&5
37401 sed 's/^/| /' conftest.$ac_ext >&5
37402
37403         eval "$as_ac_var=no"
37404 fi
37405
37406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37407       conftest$ac_exeext conftest.$ac_ext
37408 fi
37409 ac_res=`eval echo '${'$as_ac_var'}'`
37410                { echo "$as_me:$LINENO: result: $ac_res" >&5
37411 echo "${ECHO_T}$ac_res" >&6; }
37412 if test `eval echo '${'$as_ac_var'}'` = yes; then
37413   cat >>confdefs.h <<_ACEOF
37414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37415 _ACEOF
37416
37417 fi
37418 done
37419
37420 fi
37421
37422 HAVE_SOME_SLEEP_FUNC=0
37423 if test "$USE_BEOS" = 1; then
37424             cat >>confdefs.h <<\_ACEOF
37425 #define HAVE_SLEEP 1
37426 _ACEOF
37427
37428     HAVE_SOME_SLEEP_FUNC=1
37429 fi
37430
37431 if test "$USE_DARWIN" = 1; then
37432             cat >>confdefs.h <<\_ACEOF
37433 #define HAVE_USLEEP 1
37434 _ACEOF
37435
37436     HAVE_SOME_SLEEP_FUNC=1
37437 fi
37438
37439 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37440         POSIX4_LINK=
37441
37442 for ac_func in nanosleep
37443 do
37444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37448   echo $ECHO_N "(cached) $ECHO_C" >&6
37449 else
37450   cat >conftest.$ac_ext <<_ACEOF
37451 /* confdefs.h.  */
37452 _ACEOF
37453 cat confdefs.h >>conftest.$ac_ext
37454 cat >>conftest.$ac_ext <<_ACEOF
37455 /* end confdefs.h.  */
37456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37458 #define $ac_func innocuous_$ac_func
37459
37460 /* System header to define __stub macros and hopefully few prototypes,
37461     which can conflict with char $ac_func (); below.
37462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37463     <limits.h> exists even on freestanding compilers.  */
37464
37465 #ifdef __STDC__
37466 # include <limits.h>
37467 #else
37468 # include <assert.h>
37469 #endif
37470
37471 #undef $ac_func
37472
37473 /* Override any GCC internal prototype to avoid an error.
37474    Use char because int might match the return type of a GCC
37475    builtin and then its argument prototype would still apply.  */
37476 #ifdef __cplusplus
37477 extern "C"
37478 #endif
37479 char $ac_func ();
37480 /* The GNU C library defines this for functions which it implements
37481     to always fail with ENOSYS.  Some functions are actually named
37482     something starting with __ and the normal name is an alias.  */
37483 #if defined __stub_$ac_func || defined __stub___$ac_func
37484 choke me
37485 #endif
37486
37487 int
37488 main ()
37489 {
37490 return $ac_func ();
37491   ;
37492   return 0;
37493 }
37494 _ACEOF
37495 rm -f conftest.$ac_objext conftest$ac_exeext
37496 if { (ac_try="$ac_link"
37497 case "(($ac_try" in
37498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499   *) ac_try_echo=$ac_try;;
37500 esac
37501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37502   (eval "$ac_link") 2>conftest.er1
37503   ac_status=$?
37504   grep -v '^ *+' conftest.er1 >conftest.err
37505   rm -f conftest.er1
37506   cat conftest.err >&5
37507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508   (exit $ac_status); } && {
37509          test -z "$ac_c_werror_flag" ||
37510          test ! -s conftest.err
37511        } && test -s conftest$ac_exeext &&
37512        $as_test_x conftest$ac_exeext; then
37513   eval "$as_ac_var=yes"
37514 else
37515   echo "$as_me: failed program was:" >&5
37516 sed 's/^/| /' conftest.$ac_ext >&5
37517
37518         eval "$as_ac_var=no"
37519 fi
37520
37521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37522       conftest$ac_exeext conftest.$ac_ext
37523 fi
37524 ac_res=`eval echo '${'$as_ac_var'}'`
37525                { echo "$as_me:$LINENO: result: $ac_res" >&5
37526 echo "${ECHO_T}$ac_res" >&6; }
37527 if test `eval echo '${'$as_ac_var'}'` = yes; then
37528   cat >>confdefs.h <<_ACEOF
37529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37530 _ACEOF
37531  cat >>confdefs.h <<\_ACEOF
37532 #define HAVE_NANOSLEEP 1
37533 _ACEOF
37534
37535 else
37536
37537             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37538 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37539 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37540   echo $ECHO_N "(cached) $ECHO_C" >&6
37541 else
37542   ac_check_lib_save_LIBS=$LIBS
37543 LIBS="-lposix4  $LIBS"
37544 cat >conftest.$ac_ext <<_ACEOF
37545 /* confdefs.h.  */
37546 _ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h.  */
37550
37551 /* Override any GCC internal prototype to avoid an error.
37552    Use char because int might match the return type of a GCC
37553    builtin and then its argument prototype would still apply.  */
37554 #ifdef __cplusplus
37555 extern "C"
37556 #endif
37557 char nanosleep ();
37558 int
37559 main ()
37560 {
37561 return nanosleep ();
37562   ;
37563   return 0;
37564 }
37565 _ACEOF
37566 rm -f conftest.$ac_objext conftest$ac_exeext
37567 if { (ac_try="$ac_link"
37568 case "(($ac_try" in
37569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37570   *) ac_try_echo=$ac_try;;
37571 esac
37572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37573   (eval "$ac_link") 2>conftest.er1
37574   ac_status=$?
37575   grep -v '^ *+' conftest.er1 >conftest.err
37576   rm -f conftest.er1
37577   cat conftest.err >&5
37578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579   (exit $ac_status); } && {
37580          test -z "$ac_c_werror_flag" ||
37581          test ! -s conftest.err
37582        } && test -s conftest$ac_exeext &&
37583        $as_test_x conftest$ac_exeext; then
37584   ac_cv_lib_posix4_nanosleep=yes
37585 else
37586   echo "$as_me: failed program was:" >&5
37587 sed 's/^/| /' conftest.$ac_ext >&5
37588
37589         ac_cv_lib_posix4_nanosleep=no
37590 fi
37591
37592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37593       conftest$ac_exeext conftest.$ac_ext
37594 LIBS=$ac_check_lib_save_LIBS
37595 fi
37596 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37597 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37598 if test $ac_cv_lib_posix4_nanosleep = yes; then
37599
37600                     cat >>confdefs.h <<\_ACEOF
37601 #define HAVE_NANOSLEEP 1
37602 _ACEOF
37603
37604                     POSIX4_LINK=" -lposix4"
37605
37606 else
37607
37608
37609   for wx_func in usleep
37610   do
37611     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37612 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37613 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37614   echo $ECHO_N "(cached) $ECHO_C" >&6
37615 else
37616
37617         cat >conftest.$ac_ext <<_ACEOF
37618
37619             /* confdefs.h.  */
37620 _ACEOF
37621 cat confdefs.h >>conftest.$ac_ext
37622 cat >>conftest.$ac_ext <<_ACEOF
37623 /* end confdefs.h.  */
37624
37625
37626                 $ac_includes_default
37627
37628 int
37629 main ()
37630 {
37631
37632                 #ifndef $wx_func
37633                   &$wx_func;
37634                 #endif
37635
37636
37637   ;
37638   return 0;
37639 }
37640
37641 _ACEOF
37642 rm -f conftest.$ac_objext conftest$ac_exeext
37643 if { (ac_try="$ac_link"
37644 case "(($ac_try" in
37645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37646   *) ac_try_echo=$ac_try;;
37647 esac
37648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37649   (eval "$ac_link") 2>conftest.er1
37650   ac_status=$?
37651   grep -v '^ *+' conftest.er1 >conftest.err
37652   rm -f conftest.er1
37653   cat conftest.err >&5
37654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655   (exit $ac_status); } && {
37656          test -z "$ac_c_werror_flag" ||
37657          test ! -s conftest.err
37658        } && test -s conftest$ac_exeext &&
37659        $as_test_x conftest$ac_exeext; then
37660   eval wx_cv_func_$wx_func=yes
37661 else
37662   echo "$as_me: failed program was:" >&5
37663 sed 's/^/| /' conftest.$ac_ext >&5
37664
37665         eval wx_cv_func_$wx_func=no
37666 fi
37667
37668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37669       conftest$ac_exeext conftest.$ac_ext
37670
37671 fi
37672 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37673                { echo "$as_me:$LINENO: result: $ac_res" >&5
37674 echo "${ECHO_T}$ac_res" >&6; }
37675
37676     if eval test \$wx_cv_func_$wx_func = yes
37677     then
37678       cat >>confdefs.h <<_ACEOF
37679 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37680 _ACEOF
37681
37682
37683     else
37684       :
37685       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37686 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37687
37688     fi
37689   done
37690
37691
37692
37693 fi
37694
37695
37696
37697 fi
37698 done
37699
37700 fi
37701
37702
37703   for wx_func in uname
37704   do
37705     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37706 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37707 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37708   echo $ECHO_N "(cached) $ECHO_C" >&6
37709 else
37710
37711         cat >conftest.$ac_ext <<_ACEOF
37712
37713             /* confdefs.h.  */
37714 _ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h.  */
37718
37719                 #include <sys/utsname.h>
37720                 $ac_includes_default
37721
37722 int
37723 main ()
37724 {
37725
37726                 #ifndef $wx_func
37727                   &$wx_func;
37728                 #endif
37729
37730
37731   ;
37732   return 0;
37733 }
37734
37735 _ACEOF
37736 rm -f conftest.$ac_objext conftest$ac_exeext
37737 if { (ac_try="$ac_link"
37738 case "(($ac_try" in
37739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37740   *) ac_try_echo=$ac_try;;
37741 esac
37742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37743   (eval "$ac_link") 2>conftest.er1
37744   ac_status=$?
37745   grep -v '^ *+' conftest.er1 >conftest.err
37746   rm -f conftest.er1
37747   cat conftest.err >&5
37748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); } && {
37750          test -z "$ac_c_werror_flag" ||
37751          test ! -s conftest.err
37752        } && test -s conftest$ac_exeext &&
37753        $as_test_x conftest$ac_exeext; then
37754   eval wx_cv_func_$wx_func=yes
37755 else
37756   echo "$as_me: failed program was:" >&5
37757 sed 's/^/| /' conftest.$ac_ext >&5
37758
37759         eval wx_cv_func_$wx_func=no
37760 fi
37761
37762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37763       conftest$ac_exeext conftest.$ac_ext
37764
37765 fi
37766 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37767                { echo "$as_me:$LINENO: result: $ac_res" >&5
37768 echo "${ECHO_T}$ac_res" >&6; }
37769
37770     if eval test \$wx_cv_func_$wx_func = yes
37771     then
37772       cat >>confdefs.h <<_ACEOF
37773 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37774 _ACEOF
37775
37776
37777     else
37778       :
37779
37780     fi
37781   done
37782
37783 if test "$wx_cv_func_uname" != yes; then
37784
37785   for wx_func in gethostname
37786   do
37787     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37788 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37789 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37790   echo $ECHO_N "(cached) $ECHO_C" >&6
37791 else
37792
37793         cat >conftest.$ac_ext <<_ACEOF
37794
37795             /* confdefs.h.  */
37796 _ACEOF
37797 cat confdefs.h >>conftest.$ac_ext
37798 cat >>conftest.$ac_ext <<_ACEOF
37799 /* end confdefs.h.  */
37800
37801
37802                 $ac_includes_default
37803
37804 int
37805 main ()
37806 {
37807
37808                 #ifndef $wx_func
37809                   &$wx_func;
37810                 #endif
37811
37812
37813   ;
37814   return 0;
37815 }
37816
37817 _ACEOF
37818 rm -f conftest.$ac_objext conftest$ac_exeext
37819 if { (ac_try="$ac_link"
37820 case "(($ac_try" in
37821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37822   *) ac_try_echo=$ac_try;;
37823 esac
37824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37825   (eval "$ac_link") 2>conftest.er1
37826   ac_status=$?
37827   grep -v '^ *+' conftest.er1 >conftest.err
37828   rm -f conftest.er1
37829   cat conftest.err >&5
37830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831   (exit $ac_status); } && {
37832          test -z "$ac_c_werror_flag" ||
37833          test ! -s conftest.err
37834        } && test -s conftest$ac_exeext &&
37835        $as_test_x conftest$ac_exeext; then
37836   eval wx_cv_func_$wx_func=yes
37837 else
37838   echo "$as_me: failed program was:" >&5
37839 sed 's/^/| /' conftest.$ac_ext >&5
37840
37841         eval wx_cv_func_$wx_func=no
37842 fi
37843
37844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37845       conftest$ac_exeext conftest.$ac_ext
37846
37847 fi
37848 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37849                { echo "$as_me:$LINENO: result: $ac_res" >&5
37850 echo "${ECHO_T}$ac_res" >&6; }
37851
37852     if eval test \$wx_cv_func_$wx_func = yes
37853     then
37854       cat >>confdefs.h <<_ACEOF
37855 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37856 _ACEOF
37857
37858
37859     else
37860       :
37861
37862     fi
37863   done
37864
37865 fi
37866
37867
37868   for wx_func in strtok_r
37869   do
37870     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37871 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37872 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37873   echo $ECHO_N "(cached) $ECHO_C" >&6
37874 else
37875
37876         cat >conftest.$ac_ext <<_ACEOF
37877
37878             /* confdefs.h.  */
37879 _ACEOF
37880 cat confdefs.h >>conftest.$ac_ext
37881 cat >>conftest.$ac_ext <<_ACEOF
37882 /* end confdefs.h.  */
37883
37884                 #define _REENTRANT
37885                 $ac_includes_default
37886
37887 int
37888 main ()
37889 {
37890
37891                 #ifndef $wx_func
37892                   &$wx_func;
37893                 #endif
37894
37895
37896   ;
37897   return 0;
37898 }
37899
37900 _ACEOF
37901 rm -f conftest.$ac_objext conftest$ac_exeext
37902 if { (ac_try="$ac_link"
37903 case "(($ac_try" in
37904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37905   *) ac_try_echo=$ac_try;;
37906 esac
37907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37908   (eval "$ac_link") 2>conftest.er1
37909   ac_status=$?
37910   grep -v '^ *+' conftest.er1 >conftest.err
37911   rm -f conftest.er1
37912   cat conftest.err >&5
37913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914   (exit $ac_status); } && {
37915          test -z "$ac_c_werror_flag" ||
37916          test ! -s conftest.err
37917        } && test -s conftest$ac_exeext &&
37918        $as_test_x conftest$ac_exeext; then
37919   eval wx_cv_func_$wx_func=yes
37920 else
37921   echo "$as_me: failed program was:" >&5
37922 sed 's/^/| /' conftest.$ac_ext >&5
37923
37924         eval wx_cv_func_$wx_func=no
37925 fi
37926
37927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37928       conftest$ac_exeext conftest.$ac_ext
37929
37930 fi
37931 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37932                { echo "$as_me:$LINENO: result: $ac_res" >&5
37933 echo "${ECHO_T}$ac_res" >&6; }
37934
37935     if eval test \$wx_cv_func_$wx_func = yes
37936     then
37937       cat >>confdefs.h <<_ACEOF
37938 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37939 _ACEOF
37940
37941
37942     else
37943       :
37944
37945     fi
37946   done
37947
37948
37949 INET_LINK=
37950
37951 for ac_func in inet_addr
37952 do
37953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37957   echo $ECHO_N "(cached) $ECHO_C" >&6
37958 else
37959   cat >conftest.$ac_ext <<_ACEOF
37960 /* confdefs.h.  */
37961 _ACEOF
37962 cat confdefs.h >>conftest.$ac_ext
37963 cat >>conftest.$ac_ext <<_ACEOF
37964 /* end confdefs.h.  */
37965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37967 #define $ac_func innocuous_$ac_func
37968
37969 /* System header to define __stub macros and hopefully few prototypes,
37970     which can conflict with char $ac_func (); below.
37971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37972     <limits.h> exists even on freestanding compilers.  */
37973
37974 #ifdef __STDC__
37975 # include <limits.h>
37976 #else
37977 # include <assert.h>
37978 #endif
37979
37980 #undef $ac_func
37981
37982 /* Override any GCC internal prototype to avoid an error.
37983    Use char because int might match the return type of a GCC
37984    builtin and then its argument prototype would still apply.  */
37985 #ifdef __cplusplus
37986 extern "C"
37987 #endif
37988 char $ac_func ();
37989 /* The GNU C library defines this for functions which it implements
37990     to always fail with ENOSYS.  Some functions are actually named
37991     something starting with __ and the normal name is an alias.  */
37992 #if defined __stub_$ac_func || defined __stub___$ac_func
37993 choke me
37994 #endif
37995
37996 int
37997 main ()
37998 {
37999 return $ac_func ();
38000   ;
38001   return 0;
38002 }
38003 _ACEOF
38004 rm -f conftest.$ac_objext conftest$ac_exeext
38005 if { (ac_try="$ac_link"
38006 case "(($ac_try" in
38007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38008   *) ac_try_echo=$ac_try;;
38009 esac
38010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38011   (eval "$ac_link") 2>conftest.er1
38012   ac_status=$?
38013   grep -v '^ *+' conftest.er1 >conftest.err
38014   rm -f conftest.er1
38015   cat conftest.err >&5
38016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017   (exit $ac_status); } && {
38018          test -z "$ac_c_werror_flag" ||
38019          test ! -s conftest.err
38020        } && test -s conftest$ac_exeext &&
38021        $as_test_x conftest$ac_exeext; then
38022   eval "$as_ac_var=yes"
38023 else
38024   echo "$as_me: failed program was:" >&5
38025 sed 's/^/| /' conftest.$ac_ext >&5
38026
38027         eval "$as_ac_var=no"
38028 fi
38029
38030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38031       conftest$ac_exeext conftest.$ac_ext
38032 fi
38033 ac_res=`eval echo '${'$as_ac_var'}'`
38034                { echo "$as_me:$LINENO: result: $ac_res" >&5
38035 echo "${ECHO_T}$ac_res" >&6; }
38036 if test `eval echo '${'$as_ac_var'}'` = yes; then
38037   cat >>confdefs.h <<_ACEOF
38038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38039 _ACEOF
38040  cat >>confdefs.h <<\_ACEOF
38041 #define HAVE_INET_ADDR 1
38042 _ACEOF
38043
38044 else
38045
38046         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38047 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38048 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38049   echo $ECHO_N "(cached) $ECHO_C" >&6
38050 else
38051   ac_check_lib_save_LIBS=$LIBS
38052 LIBS="-lnsl  $LIBS"
38053 cat >conftest.$ac_ext <<_ACEOF
38054 /* confdefs.h.  */
38055 _ACEOF
38056 cat confdefs.h >>conftest.$ac_ext
38057 cat >>conftest.$ac_ext <<_ACEOF
38058 /* end confdefs.h.  */
38059
38060 /* Override any GCC internal prototype to avoid an error.
38061    Use char because int might match the return type of a GCC
38062    builtin and then its argument prototype would still apply.  */
38063 #ifdef __cplusplus
38064 extern "C"
38065 #endif
38066 char inet_addr ();
38067 int
38068 main ()
38069 {
38070 return inet_addr ();
38071   ;
38072   return 0;
38073 }
38074 _ACEOF
38075 rm -f conftest.$ac_objext conftest$ac_exeext
38076 if { (ac_try="$ac_link"
38077 case "(($ac_try" in
38078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38079   *) ac_try_echo=$ac_try;;
38080 esac
38081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38082   (eval "$ac_link") 2>conftest.er1
38083   ac_status=$?
38084   grep -v '^ *+' conftest.er1 >conftest.err
38085   rm -f conftest.er1
38086   cat conftest.err >&5
38087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088   (exit $ac_status); } && {
38089          test -z "$ac_c_werror_flag" ||
38090          test ! -s conftest.err
38091        } && test -s conftest$ac_exeext &&
38092        $as_test_x conftest$ac_exeext; then
38093   ac_cv_lib_nsl_inet_addr=yes
38094 else
38095   echo "$as_me: failed program was:" >&5
38096 sed 's/^/| /' conftest.$ac_ext >&5
38097
38098         ac_cv_lib_nsl_inet_addr=no
38099 fi
38100
38101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38102       conftest$ac_exeext conftest.$ac_ext
38103 LIBS=$ac_check_lib_save_LIBS
38104 fi
38105 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38106 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38107 if test $ac_cv_lib_nsl_inet_addr = yes; then
38108   INET_LINK="nsl"
38109 else
38110
38111                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38112 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38113 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38114   echo $ECHO_N "(cached) $ECHO_C" >&6
38115 else
38116   ac_check_lib_save_LIBS=$LIBS
38117 LIBS="-lresolv  $LIBS"
38118 cat >conftest.$ac_ext <<_ACEOF
38119 /* confdefs.h.  */
38120 _ACEOF
38121 cat confdefs.h >>conftest.$ac_ext
38122 cat >>conftest.$ac_ext <<_ACEOF
38123 /* end confdefs.h.  */
38124
38125 /* Override any GCC internal prototype to avoid an error.
38126    Use char because int might match the return type of a GCC
38127    builtin and then its argument prototype would still apply.  */
38128 #ifdef __cplusplus
38129 extern "C"
38130 #endif
38131 char inet_addr ();
38132 int
38133 main ()
38134 {
38135 return inet_addr ();
38136   ;
38137   return 0;
38138 }
38139 _ACEOF
38140 rm -f conftest.$ac_objext conftest$ac_exeext
38141 if { (ac_try="$ac_link"
38142 case "(($ac_try" in
38143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38144   *) ac_try_echo=$ac_try;;
38145 esac
38146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38147   (eval "$ac_link") 2>conftest.er1
38148   ac_status=$?
38149   grep -v '^ *+' conftest.er1 >conftest.err
38150   rm -f conftest.er1
38151   cat conftest.err >&5
38152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153   (exit $ac_status); } && {
38154          test -z "$ac_c_werror_flag" ||
38155          test ! -s conftest.err
38156        } && test -s conftest$ac_exeext &&
38157        $as_test_x conftest$ac_exeext; then
38158   ac_cv_lib_resolv_inet_addr=yes
38159 else
38160   echo "$as_me: failed program was:" >&5
38161 sed 's/^/| /' conftest.$ac_ext >&5
38162
38163         ac_cv_lib_resolv_inet_addr=no
38164 fi
38165
38166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38167       conftest$ac_exeext conftest.$ac_ext
38168 LIBS=$ac_check_lib_save_LIBS
38169 fi
38170 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38171 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38172 if test $ac_cv_lib_resolv_inet_addr = yes; then
38173   INET_LINK="resolv"
38174 else
38175
38176                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38177 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38178 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38179   echo $ECHO_N "(cached) $ECHO_C" >&6
38180 else
38181   ac_check_lib_save_LIBS=$LIBS
38182 LIBS="-lsocket  $LIBS"
38183 cat >conftest.$ac_ext <<_ACEOF
38184 /* confdefs.h.  */
38185 _ACEOF
38186 cat confdefs.h >>conftest.$ac_ext
38187 cat >>conftest.$ac_ext <<_ACEOF
38188 /* end confdefs.h.  */
38189
38190 /* Override any GCC internal prototype to avoid an error.
38191    Use char because int might match the return type of a GCC
38192    builtin and then its argument prototype would still apply.  */
38193 #ifdef __cplusplus
38194 extern "C"
38195 #endif
38196 char inet_addr ();
38197 int
38198 main ()
38199 {
38200 return inet_addr ();
38201   ;
38202   return 0;
38203 }
38204 _ACEOF
38205 rm -f conftest.$ac_objext conftest$ac_exeext
38206 if { (ac_try="$ac_link"
38207 case "(($ac_try" in
38208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38209   *) ac_try_echo=$ac_try;;
38210 esac
38211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38212   (eval "$ac_link") 2>conftest.er1
38213   ac_status=$?
38214   grep -v '^ *+' conftest.er1 >conftest.err
38215   rm -f conftest.er1
38216   cat conftest.err >&5
38217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218   (exit $ac_status); } && {
38219          test -z "$ac_c_werror_flag" ||
38220          test ! -s conftest.err
38221        } && test -s conftest$ac_exeext &&
38222        $as_test_x conftest$ac_exeext; then
38223   ac_cv_lib_socket_inet_addr=yes
38224 else
38225   echo "$as_me: failed program was:" >&5
38226 sed 's/^/| /' conftest.$ac_ext >&5
38227
38228         ac_cv_lib_socket_inet_addr=no
38229 fi
38230
38231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38232       conftest$ac_exeext conftest.$ac_ext
38233 LIBS=$ac_check_lib_save_LIBS
38234 fi
38235 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38236 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38237 if test $ac_cv_lib_socket_inet_addr = yes; then
38238   INET_LINK="socket"
38239
38240 fi
38241
38242
38243
38244 fi
38245
38246
38247
38248 fi
38249
38250
38251
38252 fi
38253 done
38254
38255
38256
38257 for ac_func in inet_aton
38258 do
38259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38263   echo $ECHO_N "(cached) $ECHO_C" >&6
38264 else
38265   cat >conftest.$ac_ext <<_ACEOF
38266 /* confdefs.h.  */
38267 _ACEOF
38268 cat confdefs.h >>conftest.$ac_ext
38269 cat >>conftest.$ac_ext <<_ACEOF
38270 /* end confdefs.h.  */
38271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38273 #define $ac_func innocuous_$ac_func
38274
38275 /* System header to define __stub macros and hopefully few prototypes,
38276     which can conflict with char $ac_func (); below.
38277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38278     <limits.h> exists even on freestanding compilers.  */
38279
38280 #ifdef __STDC__
38281 # include <limits.h>
38282 #else
38283 # include <assert.h>
38284 #endif
38285
38286 #undef $ac_func
38287
38288 /* Override any GCC internal prototype to avoid an error.
38289    Use char because int might match the return type of a GCC
38290    builtin and then its argument prototype would still apply.  */
38291 #ifdef __cplusplus
38292 extern "C"
38293 #endif
38294 char $ac_func ();
38295 /* The GNU C library defines this for functions which it implements
38296     to always fail with ENOSYS.  Some functions are actually named
38297     something starting with __ and the normal name is an alias.  */
38298 #if defined __stub_$ac_func || defined __stub___$ac_func
38299 choke me
38300 #endif
38301
38302 int
38303 main ()
38304 {
38305 return $ac_func ();
38306   ;
38307   return 0;
38308 }
38309 _ACEOF
38310 rm -f conftest.$ac_objext conftest$ac_exeext
38311 if { (ac_try="$ac_link"
38312 case "(($ac_try" in
38313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38314   *) ac_try_echo=$ac_try;;
38315 esac
38316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38317   (eval "$ac_link") 2>conftest.er1
38318   ac_status=$?
38319   grep -v '^ *+' conftest.er1 >conftest.err
38320   rm -f conftest.er1
38321   cat conftest.err >&5
38322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323   (exit $ac_status); } && {
38324          test -z "$ac_c_werror_flag" ||
38325          test ! -s conftest.err
38326        } && test -s conftest$ac_exeext &&
38327        $as_test_x conftest$ac_exeext; then
38328   eval "$as_ac_var=yes"
38329 else
38330   echo "$as_me: failed program was:" >&5
38331 sed 's/^/| /' conftest.$ac_ext >&5
38332
38333         eval "$as_ac_var=no"
38334 fi
38335
38336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38337       conftest$ac_exeext conftest.$ac_ext
38338 fi
38339 ac_res=`eval echo '${'$as_ac_var'}'`
38340                { echo "$as_me:$LINENO: result: $ac_res" >&5
38341 echo "${ECHO_T}$ac_res" >&6; }
38342 if test `eval echo '${'$as_ac_var'}'` = yes; then
38343   cat >>confdefs.h <<_ACEOF
38344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38345 _ACEOF
38346  cat >>confdefs.h <<\_ACEOF
38347 #define HAVE_INET_ATON 1
38348 _ACEOF
38349
38350 else
38351
38352                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38353 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38354 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38355 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38356   echo $ECHO_N "(cached) $ECHO_C" >&6
38357 else
38358   ac_check_lib_save_LIBS=$LIBS
38359 LIBS="-l$INET_LINK  $LIBS"
38360 cat >conftest.$ac_ext <<_ACEOF
38361 /* confdefs.h.  */
38362 _ACEOF
38363 cat confdefs.h >>conftest.$ac_ext
38364 cat >>conftest.$ac_ext <<_ACEOF
38365 /* end confdefs.h.  */
38366
38367 /* Override any GCC internal prototype to avoid an error.
38368    Use char because int might match the return type of a GCC
38369    builtin and then its argument prototype would still apply.  */
38370 #ifdef __cplusplus
38371 extern "C"
38372 #endif
38373 char inet_aton ();
38374 int
38375 main ()
38376 {
38377 return inet_aton ();
38378   ;
38379   return 0;
38380 }
38381 _ACEOF
38382 rm -f conftest.$ac_objext conftest$ac_exeext
38383 if { (ac_try="$ac_link"
38384 case "(($ac_try" in
38385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38386   *) ac_try_echo=$ac_try;;
38387 esac
38388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38389   (eval "$ac_link") 2>conftest.er1
38390   ac_status=$?
38391   grep -v '^ *+' conftest.er1 >conftest.err
38392   rm -f conftest.er1
38393   cat conftest.err >&5
38394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38395   (exit $ac_status); } && {
38396          test -z "$ac_c_werror_flag" ||
38397          test ! -s conftest.err
38398        } && test -s conftest$ac_exeext &&
38399        $as_test_x conftest$ac_exeext; then
38400   eval "$as_ac_Lib=yes"
38401 else
38402   echo "$as_me: failed program was:" >&5
38403 sed 's/^/| /' conftest.$ac_ext >&5
38404
38405         eval "$as_ac_Lib=no"
38406 fi
38407
38408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38409       conftest$ac_exeext conftest.$ac_ext
38410 LIBS=$ac_check_lib_save_LIBS
38411 fi
38412 ac_res=`eval echo '${'$as_ac_Lib'}'`
38413                { echo "$as_me:$LINENO: result: $ac_res" >&5
38414 echo "${ECHO_T}$ac_res" >&6; }
38415 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38416   cat >>confdefs.h <<\_ACEOF
38417 #define HAVE_INET_ATON 1
38418 _ACEOF
38419
38420 fi
38421
38422
38423 fi
38424 done
38425
38426
38427 if test "x$INET_LINK" != "x"; then
38428     cat >>confdefs.h <<\_ACEOF
38429 #define HAVE_INET_ADDR 1
38430 _ACEOF
38431
38432     INET_LINK=" -l$INET_LINK"
38433 fi
38434
38435
38436   for wx_func in fdopen
38437   do
38438     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38439 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38440 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38441   echo $ECHO_N "(cached) $ECHO_C" >&6
38442 else
38443
38444         cat >conftest.$ac_ext <<_ACEOF
38445
38446             /* confdefs.h.  */
38447 _ACEOF
38448 cat confdefs.h >>conftest.$ac_ext
38449 cat >>conftest.$ac_ext <<_ACEOF
38450 /* end confdefs.h.  */
38451
38452
38453                 $ac_includes_default
38454
38455 int
38456 main ()
38457 {
38458
38459                 #ifndef $wx_func
38460                   &$wx_func;
38461                 #endif
38462
38463
38464   ;
38465   return 0;
38466 }
38467
38468 _ACEOF
38469 rm -f conftest.$ac_objext conftest$ac_exeext
38470 if { (ac_try="$ac_link"
38471 case "(($ac_try" in
38472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38473   *) ac_try_echo=$ac_try;;
38474 esac
38475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38476   (eval "$ac_link") 2>conftest.er1
38477   ac_status=$?
38478   grep -v '^ *+' conftest.er1 >conftest.err
38479   rm -f conftest.er1
38480   cat conftest.err >&5
38481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482   (exit $ac_status); } && {
38483          test -z "$ac_c_werror_flag" ||
38484          test ! -s conftest.err
38485        } && test -s conftest$ac_exeext &&
38486        $as_test_x conftest$ac_exeext; then
38487   eval wx_cv_func_$wx_func=yes
38488 else
38489   echo "$as_me: failed program was:" >&5
38490 sed 's/^/| /' conftest.$ac_ext >&5
38491
38492         eval wx_cv_func_$wx_func=no
38493 fi
38494
38495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38496       conftest$ac_exeext conftest.$ac_ext
38497
38498 fi
38499 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38500                { echo "$as_me:$LINENO: result: $ac_res" >&5
38501 echo "${ECHO_T}$ac_res" >&6; }
38502
38503     if eval test \$wx_cv_func_$wx_func = yes
38504     then
38505       cat >>confdefs.h <<_ACEOF
38506 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38507 _ACEOF
38508
38509
38510     else
38511       :
38512
38513     fi
38514   done
38515
38516
38517 if test "$wxUSE_TARSTREAM" = "yes"; then
38518
38519   for wx_func in sysconf
38520   do
38521     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38522 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38523 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38524   echo $ECHO_N "(cached) $ECHO_C" >&6
38525 else
38526
38527         cat >conftest.$ac_ext <<_ACEOF
38528
38529             /* confdefs.h.  */
38530 _ACEOF
38531 cat confdefs.h >>conftest.$ac_ext
38532 cat >>conftest.$ac_ext <<_ACEOF
38533 /* end confdefs.h.  */
38534
38535
38536                 $ac_includes_default
38537
38538 int
38539 main ()
38540 {
38541
38542                 #ifndef $wx_func
38543                   &$wx_func;
38544                 #endif
38545
38546
38547   ;
38548   return 0;
38549 }
38550
38551 _ACEOF
38552 rm -f conftest.$ac_objext conftest$ac_exeext
38553 if { (ac_try="$ac_link"
38554 case "(($ac_try" in
38555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38556   *) ac_try_echo=$ac_try;;
38557 esac
38558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38559   (eval "$ac_link") 2>conftest.er1
38560   ac_status=$?
38561   grep -v '^ *+' conftest.er1 >conftest.err
38562   rm -f conftest.er1
38563   cat conftest.err >&5
38564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565   (exit $ac_status); } && {
38566          test -z "$ac_c_werror_flag" ||
38567          test ! -s conftest.err
38568        } && test -s conftest$ac_exeext &&
38569        $as_test_x conftest$ac_exeext; then
38570   eval wx_cv_func_$wx_func=yes
38571 else
38572   echo "$as_me: failed program was:" >&5
38573 sed 's/^/| /' conftest.$ac_ext >&5
38574
38575         eval wx_cv_func_$wx_func=no
38576 fi
38577
38578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38579       conftest$ac_exeext conftest.$ac_ext
38580
38581 fi
38582 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38583                { echo "$as_me:$LINENO: result: $ac_res" >&5
38584 echo "${ECHO_T}$ac_res" >&6; }
38585
38586     if eval test \$wx_cv_func_$wx_func = yes
38587     then
38588       cat >>confdefs.h <<_ACEOF
38589 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38590 _ACEOF
38591
38592
38593     else
38594       :
38595
38596     fi
38597   done
38598
38599
38600
38601   for wx_func in getpwuid_r
38602   do
38603     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38604 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38605 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38606   echo $ECHO_N "(cached) $ECHO_C" >&6
38607 else
38608
38609         cat >conftest.$ac_ext <<_ACEOF
38610
38611             /* confdefs.h.  */
38612 _ACEOF
38613 cat confdefs.h >>conftest.$ac_ext
38614 cat >>conftest.$ac_ext <<_ACEOF
38615 /* end confdefs.h.  */
38616
38617
38618                     #define _REENTRANT
38619                     #include <pwd.h>
38620
38621                 $ac_includes_default
38622
38623 int
38624 main ()
38625 {
38626
38627                 #ifndef $wx_func
38628                   &$wx_func;
38629                 #endif
38630
38631                     struct passwd pw, *ppw;
38632                     char buf[1024];
38633                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38634
38635
38636   ;
38637   return 0;
38638 }
38639
38640 _ACEOF
38641 rm -f conftest.$ac_objext conftest$ac_exeext
38642 if { (ac_try="$ac_link"
38643 case "(($ac_try" in
38644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38645   *) ac_try_echo=$ac_try;;
38646 esac
38647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38648   (eval "$ac_link") 2>conftest.er1
38649   ac_status=$?
38650   grep -v '^ *+' conftest.er1 >conftest.err
38651   rm -f conftest.er1
38652   cat conftest.err >&5
38653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38654   (exit $ac_status); } && {
38655          test -z "$ac_c_werror_flag" ||
38656          test ! -s conftest.err
38657        } && test -s conftest$ac_exeext &&
38658        $as_test_x conftest$ac_exeext; then
38659   eval wx_cv_func_$wx_func=yes
38660 else
38661   echo "$as_me: failed program was:" >&5
38662 sed 's/^/| /' conftest.$ac_ext >&5
38663
38664         eval wx_cv_func_$wx_func=no
38665 fi
38666
38667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38668       conftest$ac_exeext conftest.$ac_ext
38669
38670 fi
38671 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38672                { echo "$as_me:$LINENO: result: $ac_res" >&5
38673 echo "${ECHO_T}$ac_res" >&6; }
38674
38675     if eval test \$wx_cv_func_$wx_func = yes
38676     then
38677       cat >>confdefs.h <<_ACEOF
38678 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38679 _ACEOF
38680
38681
38682     else
38683       :
38684
38685     fi
38686   done
38687
38688
38689
38690   for wx_func in getgrgid_r
38691   do
38692     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38693 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38694 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38695   echo $ECHO_N "(cached) $ECHO_C" >&6
38696 else
38697
38698         cat >conftest.$ac_ext <<_ACEOF
38699
38700             /* confdefs.h.  */
38701 _ACEOF
38702 cat confdefs.h >>conftest.$ac_ext
38703 cat >>conftest.$ac_ext <<_ACEOF
38704 /* end confdefs.h.  */
38705
38706
38707                     #define _REENTRANT
38708                     #include <grp.h>
38709
38710                 $ac_includes_default
38711
38712 int
38713 main ()
38714 {
38715
38716                 #ifndef $wx_func
38717                   &$wx_func;
38718                 #endif
38719
38720                     struct group grp, *pgrp;
38721                     char buf[1024];
38722                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38723
38724
38725   ;
38726   return 0;
38727 }
38728
38729 _ACEOF
38730 rm -f conftest.$ac_objext conftest$ac_exeext
38731 if { (ac_try="$ac_link"
38732 case "(($ac_try" in
38733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38734   *) ac_try_echo=$ac_try;;
38735 esac
38736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38737   (eval "$ac_link") 2>conftest.er1
38738   ac_status=$?
38739   grep -v '^ *+' conftest.er1 >conftest.err
38740   rm -f conftest.er1
38741   cat conftest.err >&5
38742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743   (exit $ac_status); } && {
38744          test -z "$ac_c_werror_flag" ||
38745          test ! -s conftest.err
38746        } && test -s conftest$ac_exeext &&
38747        $as_test_x conftest$ac_exeext; then
38748   eval wx_cv_func_$wx_func=yes
38749 else
38750   echo "$as_me: failed program was:" >&5
38751 sed 's/^/| /' conftest.$ac_ext >&5
38752
38753         eval wx_cv_func_$wx_func=no
38754 fi
38755
38756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38757       conftest$ac_exeext conftest.$ac_ext
38758
38759 fi
38760 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38761                { echo "$as_me:$LINENO: result: $ac_res" >&5
38762 echo "${ECHO_T}$ac_res" >&6; }
38763
38764     if eval test \$wx_cv_func_$wx_func = yes
38765     then
38766       cat >>confdefs.h <<_ACEOF
38767 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38768 _ACEOF
38769
38770
38771     else
38772       :
38773
38774     fi
38775   done
38776
38777 fi
38778
38779 fi
38780
38781
38782
38783 cat >confcache <<\_ACEOF
38784 # This file is a shell script that caches the results of configure
38785 # tests run on this system so they can be shared between configure
38786 # scripts and configure runs, see configure's option --config-cache.
38787 # It is not useful on other systems.  If it contains results you don't
38788 # want to keep, you may remove or edit it.
38789 #
38790 # config.status only pays attention to the cache file if you give it
38791 # the --recheck option to rerun configure.
38792 #
38793 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38794 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38795 # following values.
38796
38797 _ACEOF
38798
38799 # The following way of writing the cache mishandles newlines in values,
38800 # but we know of no workaround that is simple, portable, and efficient.
38801 # So, we kill variables containing newlines.
38802 # Ultrix sh set writes to stderr and can't be redirected directly,
38803 # and sets the high bit in the cache file unless we assign to the vars.
38804 (
38805   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38806     eval ac_val=\$$ac_var
38807     case $ac_val in #(
38808     *${as_nl}*)
38809       case $ac_var in #(
38810       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38811 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38812       esac
38813       case $ac_var in #(
38814       _ | IFS | as_nl) ;; #(
38815       *) $as_unset $ac_var ;;
38816       esac ;;
38817     esac
38818   done
38819
38820   (set) 2>&1 |
38821     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38822     *${as_nl}ac_space=\ *)
38823       # `set' does not quote correctly, so add quotes (double-quote
38824       # substitution turns \\\\ into \\, and sed turns \\ into \).
38825       sed -n \
38826         "s/'/'\\\\''/g;
38827           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38828       ;; #(
38829     *)
38830       # `set' quotes correctly as required by POSIX, so do not add quotes.
38831       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38832       ;;
38833     esac |
38834     sort
38835 ) |
38836   sed '
38837      /^ac_cv_env_/b end
38838      t clear
38839      :clear
38840      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38841      t end
38842      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38843      :end' >>confcache
38844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38845   if test -w "$cache_file"; then
38846     test "x$cache_file" != "x/dev/null" &&
38847       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38848 echo "$as_me: updating cache $cache_file" >&6;}
38849     cat confcache >$cache_file
38850   else
38851     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38852 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38853   fi
38854 fi
38855 rm -f confcache
38856
38857
38858 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38859
38860
38861     THREADS_LINK=
38862     THREADS_CFLAGS=
38863
38864     if test "$wxUSE_THREADS" = "yes" ; then
38865         if test "$USE_BEOS" = 1; then
38866             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38867 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38868             wxUSE_THREADS="no"
38869         fi
38870     fi
38871
38872     if test "$wxUSE_THREADS" = "yes" ; then
38873
38874
38875                                 THREAD_OPTS="-pthread"
38876         if test "x$SUNCXX" = xyes; then
38877             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38878         fi
38879
38880         case "${host}" in
38881           *-*-solaris2* | *-*-sunos4* )
38882                 if test "x$GCC" = "xyes"; then
38883                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38884                 fi
38885                 ;;
38886           *-*-freebsd*)
38887                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38888                 ;;
38889           *-*-darwin* | *-*-cygwin* )
38890                                                 THREAD_OPTS=""
38891                 ;;
38892           *-*-aix*)
38893                                 THREAD_OPTS="pthreads"
38894                 ;;
38895           *-hp-hpux* )
38896                 if test "x$GCC" = "xyes"; then
38897                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38898                         THREAD_OPTS=""
38899                 else
38900                                                             THREAD_OPTS="-mt"
38901                 fi
38902                 ;;
38903
38904           *-*-irix* )
38905                                                                 if test "x$GCC" = "xyes"; then
38906                     THREAD_OPTS=""
38907                 fi
38908                 ;;
38909
38910           *-*-*UnixWare*)
38911                                 if test "x$GCC" != "xyes"; then
38912                     THREAD_OPTS="-Ethread"
38913                 fi
38914                 ;;
38915         esac
38916
38917                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38918
38919                 THREADS_OK=no
38920         for flag in $THREAD_OPTS; do
38921             case $flag in
38922                 none)
38923                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38924 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38925                     ;;
38926
38927                 -*)
38928                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38929 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38930                     THREADS_CFLAGS="$flag"
38931                     ;;
38932
38933                 *)
38934                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38935 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38936                     THREADS_LINK="-l$flag"
38937                     ;;
38938               esac
38939
38940               save_LIBS="$LIBS"
38941               save_CFLAGS="$CFLAGS"
38942               LIBS="$THREADS_LINK $LIBS"
38943               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38944
38945               cat >conftest.$ac_ext <<_ACEOF
38946 /* confdefs.h.  */
38947 _ACEOF
38948 cat confdefs.h >>conftest.$ac_ext
38949 cat >>conftest.$ac_ext <<_ACEOF
38950 /* end confdefs.h.  */
38951 #include <pthread.h>
38952 int
38953 main ()
38954 {
38955 pthread_create(0,0,0,0);
38956   ;
38957   return 0;
38958 }
38959 _ACEOF
38960 rm -f conftest.$ac_objext conftest$ac_exeext
38961 if { (ac_try="$ac_link"
38962 case "(($ac_try" in
38963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38964   *) ac_try_echo=$ac_try;;
38965 esac
38966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38967   (eval "$ac_link") 2>conftest.er1
38968   ac_status=$?
38969   grep -v '^ *+' conftest.er1 >conftest.err
38970   rm -f conftest.er1
38971   cat conftest.err >&5
38972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973   (exit $ac_status); } && {
38974          test -z "$ac_c_werror_flag" ||
38975          test ! -s conftest.err
38976        } && test -s conftest$ac_exeext &&
38977        $as_test_x conftest$ac_exeext; then
38978   THREADS_OK=yes
38979 else
38980   echo "$as_me: failed program was:" >&5
38981 sed 's/^/| /' conftest.$ac_ext >&5
38982
38983
38984 fi
38985
38986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38987       conftest$ac_exeext conftest.$ac_ext
38988
38989               LIBS="$save_LIBS"
38990               CFLAGS="$save_CFLAGS"
38991
38992               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38993 echo "${ECHO_T}$THREADS_OK" >&6; }
38994               if test "x$THREADS_OK" = "xyes"; then
38995                       break;
38996               fi
38997
38998               THREADS_LINK=""
38999               THREADS_CFLAGS=""
39000       done
39001
39002       if test "x$THREADS_OK" != "xyes"; then
39003           wxUSE_THREADS=no
39004           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39005 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39006       else
39007                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39008           LIBS="$THREADS_LINK $LIBS"
39009
39010           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39011 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39012           flag=no
39013           case "${host}" in
39014             *-aix*)
39015                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39016                 flag="-D_THREAD_SAFE"
39017                 ;;
39018             *-freebsd*)
39019                 flag="-D_THREAD_SAFE"
39020                 ;;
39021             *-hp-hpux* )
39022                 flag="-D_REENTRANT"
39023                 if test "x$GCC" != "xyes"; then
39024                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39025                 fi
39026                 ;;
39027             *solaris* | alpha*-osf*)
39028                 flag="-D_REENTRANT"
39029                 ;;
39030           esac
39031           { echo "$as_me:$LINENO: result: ${flag}" >&5
39032 echo "${ECHO_T}${flag}" >&6; }
39033           if test "x$flag" != xno; then
39034               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39035           fi
39036
39037                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39038       fi
39039     fi
39040
39041         if test "$wxUSE_THREADS" = "yes" ; then
39042
39043 for ac_func in thr_setconcurrency
39044 do
39045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39049   echo $ECHO_N "(cached) $ECHO_C" >&6
39050 else
39051   cat >conftest.$ac_ext <<_ACEOF
39052 /* confdefs.h.  */
39053 _ACEOF
39054 cat confdefs.h >>conftest.$ac_ext
39055 cat >>conftest.$ac_ext <<_ACEOF
39056 /* end confdefs.h.  */
39057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39059 #define $ac_func innocuous_$ac_func
39060
39061 /* System header to define __stub macros and hopefully few prototypes,
39062     which can conflict with char $ac_func (); below.
39063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39064     <limits.h> exists even on freestanding compilers.  */
39065
39066 #ifdef __STDC__
39067 # include <limits.h>
39068 #else
39069 # include <assert.h>
39070 #endif
39071
39072 #undef $ac_func
39073
39074 /* Override any GCC internal prototype to avoid an error.
39075    Use char because int might match the return type of a GCC
39076    builtin and then its argument prototype would still apply.  */
39077 #ifdef __cplusplus
39078 extern "C"
39079 #endif
39080 char $ac_func ();
39081 /* The GNU C library defines this for functions which it implements
39082     to always fail with ENOSYS.  Some functions are actually named
39083     something starting with __ and the normal name is an alias.  */
39084 #if defined __stub_$ac_func || defined __stub___$ac_func
39085 choke me
39086 #endif
39087
39088 int
39089 main ()
39090 {
39091 return $ac_func ();
39092   ;
39093   return 0;
39094 }
39095 _ACEOF
39096 rm -f conftest.$ac_objext conftest$ac_exeext
39097 if { (ac_try="$ac_link"
39098 case "(($ac_try" in
39099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39100   *) ac_try_echo=$ac_try;;
39101 esac
39102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39103   (eval "$ac_link") 2>conftest.er1
39104   ac_status=$?
39105   grep -v '^ *+' conftest.er1 >conftest.err
39106   rm -f conftest.er1
39107   cat conftest.err >&5
39108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109   (exit $ac_status); } && {
39110          test -z "$ac_c_werror_flag" ||
39111          test ! -s conftest.err
39112        } && test -s conftest$ac_exeext &&
39113        $as_test_x conftest$ac_exeext; then
39114   eval "$as_ac_var=yes"
39115 else
39116   echo "$as_me: failed program was:" >&5
39117 sed 's/^/| /' conftest.$ac_ext >&5
39118
39119         eval "$as_ac_var=no"
39120 fi
39121
39122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39123       conftest$ac_exeext conftest.$ac_ext
39124 fi
39125 ac_res=`eval echo '${'$as_ac_var'}'`
39126                { echo "$as_me:$LINENO: result: $ac_res" >&5
39127 echo "${ECHO_T}$ac_res" >&6; }
39128 if test `eval echo '${'$as_ac_var'}'` = yes; then
39129   cat >>confdefs.h <<_ACEOF
39130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39131 _ACEOF
39132
39133 fi
39134 done
39135
39136
39137                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39138 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39139 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39140   echo $ECHO_N "(cached) $ECHO_C" >&6
39141 else
39142
39143                                 ac_ext=cpp
39144 ac_cpp='$CXXCPP $CPPFLAGS'
39145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39148
39149         cat >conftest.$ac_ext <<_ACEOF
39150 /* confdefs.h.  */
39151 _ACEOF
39152 cat confdefs.h >>conftest.$ac_ext
39153 cat >>conftest.$ac_ext <<_ACEOF
39154 /* end confdefs.h.  */
39155 #include <pthread.h>
39156                void ThreadCleanupFunc(void *p);
39157
39158 int
39159 main ()
39160 {
39161
39162                 void *p;
39163                 pthread_cleanup_push(ThreadCleanupFunc, p);
39164                 pthread_cleanup_pop(0);
39165
39166   ;
39167   return 0;
39168 }
39169 _ACEOF
39170 rm -f conftest.$ac_objext
39171 if { (ac_try="$ac_compile"
39172 case "(($ac_try" in
39173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39174   *) ac_try_echo=$ac_try;;
39175 esac
39176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39177   (eval "$ac_compile") 2>conftest.er1
39178   ac_status=$?
39179   grep -v '^ *+' conftest.er1 >conftest.err
39180   rm -f conftest.er1
39181   cat conftest.err >&5
39182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39183   (exit $ac_status); } && {
39184          test -z "$ac_cxx_werror_flag" ||
39185          test ! -s conftest.err
39186        } && test -s conftest.$ac_objext; then
39187
39188                wx_cv_func_pthread_cleanup=yes
39189
39190 else
39191   echo "$as_me: failed program was:" >&5
39192 sed 's/^/| /' conftest.$ac_ext >&5
39193
39194
39195                wx_cv_func_pthread_cleanup=no
39196
39197
39198 fi
39199
39200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39201         ac_ext=c
39202 ac_cpp='$CPP $CPPFLAGS'
39203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39206
39207
39208 fi
39209 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39210 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39211       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39212         cat >>confdefs.h <<\_ACEOF
39213 #define wxHAVE_PTHREAD_CLEANUP 1
39214 _ACEOF
39215
39216       fi
39217
39218
39219 for ac_header in sched.h
39220 do
39221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39225   echo $ECHO_N "(cached) $ECHO_C" >&6
39226 else
39227   cat >conftest.$ac_ext <<_ACEOF
39228 /* confdefs.h.  */
39229 _ACEOF
39230 cat confdefs.h >>conftest.$ac_ext
39231 cat >>conftest.$ac_ext <<_ACEOF
39232 /* end confdefs.h.  */
39233 $ac_includes_default
39234
39235 #include <$ac_header>
39236 _ACEOF
39237 rm -f conftest.$ac_objext
39238 if { (ac_try="$ac_compile"
39239 case "(($ac_try" in
39240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39241   *) ac_try_echo=$ac_try;;
39242 esac
39243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39244   (eval "$ac_compile") 2>conftest.er1
39245   ac_status=$?
39246   grep -v '^ *+' conftest.er1 >conftest.err
39247   rm -f conftest.er1
39248   cat conftest.err >&5
39249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250   (exit $ac_status); } && {
39251          test -z "$ac_c_werror_flag" ||
39252          test ! -s conftest.err
39253        } && test -s conftest.$ac_objext; then
39254   eval "$as_ac_Header=yes"
39255 else
39256   echo "$as_me: failed program was:" >&5
39257 sed 's/^/| /' conftest.$ac_ext >&5
39258
39259         eval "$as_ac_Header=no"
39260 fi
39261
39262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39263 fi
39264 ac_res=`eval echo '${'$as_ac_Header'}'`
39265                { echo "$as_me:$LINENO: result: $ac_res" >&5
39266 echo "${ECHO_T}$ac_res" >&6; }
39267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39268   cat >>confdefs.h <<_ACEOF
39269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39270 _ACEOF
39271
39272 fi
39273
39274 done
39275
39276       if test "$ac_cv_header_sched_h" = "yes"; then
39277           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39278 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39279 if test "${ac_cv_func_sched_yield+set}" = set; then
39280   echo $ECHO_N "(cached) $ECHO_C" >&6
39281 else
39282   cat >conftest.$ac_ext <<_ACEOF
39283 /* confdefs.h.  */
39284 _ACEOF
39285 cat confdefs.h >>conftest.$ac_ext
39286 cat >>conftest.$ac_ext <<_ACEOF
39287 /* end confdefs.h.  */
39288 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39290 #define sched_yield innocuous_sched_yield
39291
39292 /* System header to define __stub macros and hopefully few prototypes,
39293     which can conflict with char sched_yield (); below.
39294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39295     <limits.h> exists even on freestanding compilers.  */
39296
39297 #ifdef __STDC__
39298 # include <limits.h>
39299 #else
39300 # include <assert.h>
39301 #endif
39302
39303 #undef sched_yield
39304
39305 /* Override any GCC internal prototype to avoid an error.
39306    Use char because int might match the return type of a GCC
39307    builtin and then its argument prototype would still apply.  */
39308 #ifdef __cplusplus
39309 extern "C"
39310 #endif
39311 char sched_yield ();
39312 /* The GNU C library defines this for functions which it implements
39313     to always fail with ENOSYS.  Some functions are actually named
39314     something starting with __ and the normal name is an alias.  */
39315 #if defined __stub_sched_yield || defined __stub___sched_yield
39316 choke me
39317 #endif
39318
39319 int
39320 main ()
39321 {
39322 return sched_yield ();
39323   ;
39324   return 0;
39325 }
39326 _ACEOF
39327 rm -f conftest.$ac_objext conftest$ac_exeext
39328 if { (ac_try="$ac_link"
39329 case "(($ac_try" in
39330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39331   *) ac_try_echo=$ac_try;;
39332 esac
39333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39334   (eval "$ac_link") 2>conftest.er1
39335   ac_status=$?
39336   grep -v '^ *+' conftest.er1 >conftest.err
39337   rm -f conftest.er1
39338   cat conftest.err >&5
39339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39340   (exit $ac_status); } && {
39341          test -z "$ac_c_werror_flag" ||
39342          test ! -s conftest.err
39343        } && test -s conftest$ac_exeext &&
39344        $as_test_x conftest$ac_exeext; then
39345   ac_cv_func_sched_yield=yes
39346 else
39347   echo "$as_me: failed program was:" >&5
39348 sed 's/^/| /' conftest.$ac_ext >&5
39349
39350         ac_cv_func_sched_yield=no
39351 fi
39352
39353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39354       conftest$ac_exeext conftest.$ac_ext
39355 fi
39356 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39357 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39358 if test $ac_cv_func_sched_yield = yes; then
39359   cat >>confdefs.h <<\_ACEOF
39360 #define HAVE_SCHED_YIELD 1
39361 _ACEOF
39362
39363 else
39364
39365                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39366 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39367 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39368   echo $ECHO_N "(cached) $ECHO_C" >&6
39369 else
39370   ac_check_lib_save_LIBS=$LIBS
39371 LIBS="-lposix4  $LIBS"
39372 cat >conftest.$ac_ext <<_ACEOF
39373 /* confdefs.h.  */
39374 _ACEOF
39375 cat confdefs.h >>conftest.$ac_ext
39376 cat >>conftest.$ac_ext <<_ACEOF
39377 /* end confdefs.h.  */
39378
39379 /* Override any GCC internal prototype to avoid an error.
39380    Use char because int might match the return type of a GCC
39381    builtin and then its argument prototype would still apply.  */
39382 #ifdef __cplusplus
39383 extern "C"
39384 #endif
39385 char sched_yield ();
39386 int
39387 main ()
39388 {
39389 return sched_yield ();
39390   ;
39391   return 0;
39392 }
39393 _ACEOF
39394 rm -f conftest.$ac_objext conftest$ac_exeext
39395 if { (ac_try="$ac_link"
39396 case "(($ac_try" in
39397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39398   *) ac_try_echo=$ac_try;;
39399 esac
39400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39401   (eval "$ac_link") 2>conftest.er1
39402   ac_status=$?
39403   grep -v '^ *+' conftest.er1 >conftest.err
39404   rm -f conftest.er1
39405   cat conftest.err >&5
39406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407   (exit $ac_status); } && {
39408          test -z "$ac_c_werror_flag" ||
39409          test ! -s conftest.err
39410        } && test -s conftest$ac_exeext &&
39411        $as_test_x conftest$ac_exeext; then
39412   ac_cv_lib_posix4_sched_yield=yes
39413 else
39414   echo "$as_me: failed program was:" >&5
39415 sed 's/^/| /' conftest.$ac_ext >&5
39416
39417         ac_cv_lib_posix4_sched_yield=no
39418 fi
39419
39420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39421       conftest$ac_exeext conftest.$ac_ext
39422 LIBS=$ac_check_lib_save_LIBS
39423 fi
39424 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39425 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39426 if test $ac_cv_lib_posix4_sched_yield = yes; then
39427   cat >>confdefs.h <<\_ACEOF
39428 #define HAVE_SCHED_YIELD 1
39429 _ACEOF
39430  POSIX4_LINK=" -lposix4"
39431 else
39432   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39433 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39434
39435 fi
39436
39437
39438
39439 fi
39440
39441       fi
39442
39443                                           HAVE_PRIOR_FUNCS=0
39444       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39445 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39446 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39447   echo $ECHO_N "(cached) $ECHO_C" >&6
39448 else
39449   cat >conftest.$ac_ext <<_ACEOF
39450 /* confdefs.h.  */
39451 _ACEOF
39452 cat confdefs.h >>conftest.$ac_ext
39453 cat >>conftest.$ac_ext <<_ACEOF
39454 /* end confdefs.h.  */
39455 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39457 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39458
39459 /* System header to define __stub macros and hopefully few prototypes,
39460     which can conflict with char pthread_attr_getschedpolicy (); below.
39461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39462     <limits.h> exists even on freestanding compilers.  */
39463
39464 #ifdef __STDC__
39465 # include <limits.h>
39466 #else
39467 # include <assert.h>
39468 #endif
39469
39470 #undef pthread_attr_getschedpolicy
39471
39472 /* Override any GCC internal prototype to avoid an error.
39473    Use char because int might match the return type of a GCC
39474    builtin and then its argument prototype would still apply.  */
39475 #ifdef __cplusplus
39476 extern "C"
39477 #endif
39478 char pthread_attr_getschedpolicy ();
39479 /* The GNU C library defines this for functions which it implements
39480     to always fail with ENOSYS.  Some functions are actually named
39481     something starting with __ and the normal name is an alias.  */
39482 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39483 choke me
39484 #endif
39485
39486 int
39487 main ()
39488 {
39489 return pthread_attr_getschedpolicy ();
39490   ;
39491   return 0;
39492 }
39493 _ACEOF
39494 rm -f conftest.$ac_objext conftest$ac_exeext
39495 if { (ac_try="$ac_link"
39496 case "(($ac_try" in
39497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39498   *) ac_try_echo=$ac_try;;
39499 esac
39500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39501   (eval "$ac_link") 2>conftest.er1
39502   ac_status=$?
39503   grep -v '^ *+' conftest.er1 >conftest.err
39504   rm -f conftest.er1
39505   cat conftest.err >&5
39506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39507   (exit $ac_status); } && {
39508          test -z "$ac_c_werror_flag" ||
39509          test ! -s conftest.err
39510        } && test -s conftest$ac_exeext &&
39511        $as_test_x conftest$ac_exeext; then
39512   ac_cv_func_pthread_attr_getschedpolicy=yes
39513 else
39514   echo "$as_me: failed program was:" >&5
39515 sed 's/^/| /' conftest.$ac_ext >&5
39516
39517         ac_cv_func_pthread_attr_getschedpolicy=no
39518 fi
39519
39520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39521       conftest$ac_exeext conftest.$ac_ext
39522 fi
39523 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39524 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39525 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39526   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39527 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39528 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39529   echo $ECHO_N "(cached) $ECHO_C" >&6
39530 else
39531   cat >conftest.$ac_ext <<_ACEOF
39532 /* confdefs.h.  */
39533 _ACEOF
39534 cat confdefs.h >>conftest.$ac_ext
39535 cat >>conftest.$ac_ext <<_ACEOF
39536 /* end confdefs.h.  */
39537 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39539 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39540
39541 /* System header to define __stub macros and hopefully few prototypes,
39542     which can conflict with char pthread_attr_setschedparam (); below.
39543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39544     <limits.h> exists even on freestanding compilers.  */
39545
39546 #ifdef __STDC__
39547 # include <limits.h>
39548 #else
39549 # include <assert.h>
39550 #endif
39551
39552 #undef pthread_attr_setschedparam
39553
39554 /* Override any GCC internal prototype to avoid an error.
39555    Use char because int might match the return type of a GCC
39556    builtin and then its argument prototype would still apply.  */
39557 #ifdef __cplusplus
39558 extern "C"
39559 #endif
39560 char pthread_attr_setschedparam ();
39561 /* The GNU C library defines this for functions which it implements
39562     to always fail with ENOSYS.  Some functions are actually named
39563     something starting with __ and the normal name is an alias.  */
39564 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39565 choke me
39566 #endif
39567
39568 int
39569 main ()
39570 {
39571 return pthread_attr_setschedparam ();
39572   ;
39573   return 0;
39574 }
39575 _ACEOF
39576 rm -f conftest.$ac_objext conftest$ac_exeext
39577 if { (ac_try="$ac_link"
39578 case "(($ac_try" in
39579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39580   *) ac_try_echo=$ac_try;;
39581 esac
39582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39583   (eval "$ac_link") 2>conftest.er1
39584   ac_status=$?
39585   grep -v '^ *+' conftest.er1 >conftest.err
39586   rm -f conftest.er1
39587   cat conftest.err >&5
39588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39589   (exit $ac_status); } && {
39590          test -z "$ac_c_werror_flag" ||
39591          test ! -s conftest.err
39592        } && test -s conftest$ac_exeext &&
39593        $as_test_x conftest$ac_exeext; then
39594   ac_cv_func_pthread_attr_setschedparam=yes
39595 else
39596   echo "$as_me: failed program was:" >&5
39597 sed 's/^/| /' conftest.$ac_ext >&5
39598
39599         ac_cv_func_pthread_attr_setschedparam=no
39600 fi
39601
39602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39603       conftest$ac_exeext conftest.$ac_ext
39604 fi
39605 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39606 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39607 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39608   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39609 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39610 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39611   echo $ECHO_N "(cached) $ECHO_C" >&6
39612 else
39613   cat >conftest.$ac_ext <<_ACEOF
39614 /* confdefs.h.  */
39615 _ACEOF
39616 cat confdefs.h >>conftest.$ac_ext
39617 cat >>conftest.$ac_ext <<_ACEOF
39618 /* end confdefs.h.  */
39619 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39621 #define sched_get_priority_max innocuous_sched_get_priority_max
39622
39623 /* System header to define __stub macros and hopefully few prototypes,
39624     which can conflict with char sched_get_priority_max (); below.
39625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39626     <limits.h> exists even on freestanding compilers.  */
39627
39628 #ifdef __STDC__
39629 # include <limits.h>
39630 #else
39631 # include <assert.h>
39632 #endif
39633
39634 #undef sched_get_priority_max
39635
39636 /* Override any GCC internal prototype to avoid an error.
39637    Use char because int might match the return type of a GCC
39638    builtin and then its argument prototype would still apply.  */
39639 #ifdef __cplusplus
39640 extern "C"
39641 #endif
39642 char sched_get_priority_max ();
39643 /* The GNU C library defines this for functions which it implements
39644     to always fail with ENOSYS.  Some functions are actually named
39645     something starting with __ and the normal name is an alias.  */
39646 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39647 choke me
39648 #endif
39649
39650 int
39651 main ()
39652 {
39653 return sched_get_priority_max ();
39654   ;
39655   return 0;
39656 }
39657 _ACEOF
39658 rm -f conftest.$ac_objext conftest$ac_exeext
39659 if { (ac_try="$ac_link"
39660 case "(($ac_try" in
39661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39662   *) ac_try_echo=$ac_try;;
39663 esac
39664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39665   (eval "$ac_link") 2>conftest.er1
39666   ac_status=$?
39667   grep -v '^ *+' conftest.er1 >conftest.err
39668   rm -f conftest.er1
39669   cat conftest.err >&5
39670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671   (exit $ac_status); } && {
39672          test -z "$ac_c_werror_flag" ||
39673          test ! -s conftest.err
39674        } && test -s conftest$ac_exeext &&
39675        $as_test_x conftest$ac_exeext; then
39676   ac_cv_func_sched_get_priority_max=yes
39677 else
39678   echo "$as_me: failed program was:" >&5
39679 sed 's/^/| /' conftest.$ac_ext >&5
39680
39681         ac_cv_func_sched_get_priority_max=no
39682 fi
39683
39684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39685       conftest$ac_exeext conftest.$ac_ext
39686 fi
39687 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39688 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39689 if test $ac_cv_func_sched_get_priority_max = yes; then
39690   HAVE_PRIOR_FUNCS=1
39691 else
39692   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39693 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39694 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39695   echo $ECHO_N "(cached) $ECHO_C" >&6
39696 else
39697   ac_check_lib_save_LIBS=$LIBS
39698 LIBS="-lposix4  $LIBS"
39699 cat >conftest.$ac_ext <<_ACEOF
39700 /* confdefs.h.  */
39701 _ACEOF
39702 cat confdefs.h >>conftest.$ac_ext
39703 cat >>conftest.$ac_ext <<_ACEOF
39704 /* end confdefs.h.  */
39705
39706 /* Override any GCC internal prototype to avoid an error.
39707    Use char because int might match the return type of a GCC
39708    builtin and then its argument prototype would still apply.  */
39709 #ifdef __cplusplus
39710 extern "C"
39711 #endif
39712 char sched_get_priority_max ();
39713 int
39714 main ()
39715 {
39716 return sched_get_priority_max ();
39717   ;
39718   return 0;
39719 }
39720 _ACEOF
39721 rm -f conftest.$ac_objext conftest$ac_exeext
39722 if { (ac_try="$ac_link"
39723 case "(($ac_try" in
39724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39725   *) ac_try_echo=$ac_try;;
39726 esac
39727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39728   (eval "$ac_link") 2>conftest.er1
39729   ac_status=$?
39730   grep -v '^ *+' conftest.er1 >conftest.err
39731   rm -f conftest.er1
39732   cat conftest.err >&5
39733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734   (exit $ac_status); } && {
39735          test -z "$ac_c_werror_flag" ||
39736          test ! -s conftest.err
39737        } && test -s conftest$ac_exeext &&
39738        $as_test_x conftest$ac_exeext; then
39739   ac_cv_lib_posix4_sched_get_priority_max=yes
39740 else
39741   echo "$as_me: failed program was:" >&5
39742 sed 's/^/| /' conftest.$ac_ext >&5
39743
39744         ac_cv_lib_posix4_sched_get_priority_max=no
39745 fi
39746
39747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39748       conftest$ac_exeext conftest.$ac_ext
39749 LIBS=$ac_check_lib_save_LIBS
39750 fi
39751 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39752 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39753 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39754
39755                                 HAVE_PRIOR_FUNCS=1
39756                                 POSIX4_LINK=" -lposix4"
39757
39758 fi
39759
39760
39761 fi
39762
39763
39764 fi
39765
39766
39767 fi
39768
39769
39770       if test "$HAVE_PRIOR_FUNCS" = 1; then
39771         cat >>confdefs.h <<\_ACEOF
39772 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39773 _ACEOF
39774
39775       else
39776         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39777 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39778       fi
39779
39780       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39781 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39782 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39783   echo $ECHO_N "(cached) $ECHO_C" >&6
39784 else
39785   cat >conftest.$ac_ext <<_ACEOF
39786 /* confdefs.h.  */
39787 _ACEOF
39788 cat confdefs.h >>conftest.$ac_ext
39789 cat >>conftest.$ac_ext <<_ACEOF
39790 /* end confdefs.h.  */
39791 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39793 #define pthread_cancel innocuous_pthread_cancel
39794
39795 /* System header to define __stub macros and hopefully few prototypes,
39796     which can conflict with char pthread_cancel (); below.
39797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39798     <limits.h> exists even on freestanding compilers.  */
39799
39800 #ifdef __STDC__
39801 # include <limits.h>
39802 #else
39803 # include <assert.h>
39804 #endif
39805
39806 #undef pthread_cancel
39807
39808 /* Override any GCC internal prototype to avoid an error.
39809    Use char because int might match the return type of a GCC
39810    builtin and then its argument prototype would still apply.  */
39811 #ifdef __cplusplus
39812 extern "C"
39813 #endif
39814 char pthread_cancel ();
39815 /* The GNU C library defines this for functions which it implements
39816     to always fail with ENOSYS.  Some functions are actually named
39817     something starting with __ and the normal name is an alias.  */
39818 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39819 choke me
39820 #endif
39821
39822 int
39823 main ()
39824 {
39825 return pthread_cancel ();
39826   ;
39827   return 0;
39828 }
39829 _ACEOF
39830 rm -f conftest.$ac_objext conftest$ac_exeext
39831 if { (ac_try="$ac_link"
39832 case "(($ac_try" in
39833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39834   *) ac_try_echo=$ac_try;;
39835 esac
39836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39837   (eval "$ac_link") 2>conftest.er1
39838   ac_status=$?
39839   grep -v '^ *+' conftest.er1 >conftest.err
39840   rm -f conftest.er1
39841   cat conftest.err >&5
39842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843   (exit $ac_status); } && {
39844          test -z "$ac_c_werror_flag" ||
39845          test ! -s conftest.err
39846        } && test -s conftest$ac_exeext &&
39847        $as_test_x conftest$ac_exeext; then
39848   ac_cv_func_pthread_cancel=yes
39849 else
39850   echo "$as_me: failed program was:" >&5
39851 sed 's/^/| /' conftest.$ac_ext >&5
39852
39853         ac_cv_func_pthread_cancel=no
39854 fi
39855
39856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39857       conftest$ac_exeext conftest.$ac_ext
39858 fi
39859 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39860 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39861 if test $ac_cv_func_pthread_cancel = yes; then
39862   cat >>confdefs.h <<\_ACEOF
39863 #define HAVE_PTHREAD_CANCEL 1
39864 _ACEOF
39865
39866 else
39867   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39868 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39869 fi
39870
39871
39872       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39873 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39874 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39875   echo $ECHO_N "(cached) $ECHO_C" >&6
39876 else
39877   cat >conftest.$ac_ext <<_ACEOF
39878 /* confdefs.h.  */
39879 _ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h.  */
39883 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39885 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39886
39887 /* System header to define __stub macros and hopefully few prototypes,
39888     which can conflict with char pthread_mutex_timedlock (); below.
39889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39890     <limits.h> exists even on freestanding compilers.  */
39891
39892 #ifdef __STDC__
39893 # include <limits.h>
39894 #else
39895 # include <assert.h>
39896 #endif
39897
39898 #undef pthread_mutex_timedlock
39899
39900 /* Override any GCC internal prototype to avoid an error.
39901    Use char because int might match the return type of a GCC
39902    builtin and then its argument prototype would still apply.  */
39903 #ifdef __cplusplus
39904 extern "C"
39905 #endif
39906 char pthread_mutex_timedlock ();
39907 /* The GNU C library defines this for functions which it implements
39908     to always fail with ENOSYS.  Some functions are actually named
39909     something starting with __ and the normal name is an alias.  */
39910 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39911 choke me
39912 #endif
39913
39914 int
39915 main ()
39916 {
39917 return pthread_mutex_timedlock ();
39918   ;
39919   return 0;
39920 }
39921 _ACEOF
39922 rm -f conftest.$ac_objext conftest$ac_exeext
39923 if { (ac_try="$ac_link"
39924 case "(($ac_try" in
39925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39926   *) ac_try_echo=$ac_try;;
39927 esac
39928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39929   (eval "$ac_link") 2>conftest.er1
39930   ac_status=$?
39931   grep -v '^ *+' conftest.er1 >conftest.err
39932   rm -f conftest.er1
39933   cat conftest.err >&5
39934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935   (exit $ac_status); } && {
39936          test -z "$ac_c_werror_flag" ||
39937          test ! -s conftest.err
39938        } && test -s conftest$ac_exeext &&
39939        $as_test_x conftest$ac_exeext; then
39940   ac_cv_func_pthread_mutex_timedlock=yes
39941 else
39942   echo "$as_me: failed program was:" >&5
39943 sed 's/^/| /' conftest.$ac_ext >&5
39944
39945         ac_cv_func_pthread_mutex_timedlock=no
39946 fi
39947
39948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39949       conftest$ac_exeext conftest.$ac_ext
39950 fi
39951 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39952 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39953 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39954   cat >>confdefs.h <<\_ACEOF
39955 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39956 _ACEOF
39957
39958 else
39959   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39960 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39961 fi
39962
39963
39964       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39965 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39966 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39967   echo $ECHO_N "(cached) $ECHO_C" >&6
39968 else
39969   cat >conftest.$ac_ext <<_ACEOF
39970 /* confdefs.h.  */
39971 _ACEOF
39972 cat confdefs.h >>conftest.$ac_ext
39973 cat >>conftest.$ac_ext <<_ACEOF
39974 /* end confdefs.h.  */
39975 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39977 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39978
39979 /* System header to define __stub macros and hopefully few prototypes,
39980     which can conflict with char pthread_attr_setstacksize (); below.
39981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39982     <limits.h> exists even on freestanding compilers.  */
39983
39984 #ifdef __STDC__
39985 # include <limits.h>
39986 #else
39987 # include <assert.h>
39988 #endif
39989
39990 #undef pthread_attr_setstacksize
39991
39992 /* Override any GCC internal prototype to avoid an error.
39993    Use char because int might match the return type of a GCC
39994    builtin and then its argument prototype would still apply.  */
39995 #ifdef __cplusplus
39996 extern "C"
39997 #endif
39998 char pthread_attr_setstacksize ();
39999 /* The GNU C library defines this for functions which it implements
40000     to always fail with ENOSYS.  Some functions are actually named
40001     something starting with __ and the normal name is an alias.  */
40002 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40003 choke me
40004 #endif
40005
40006 int
40007 main ()
40008 {
40009 return pthread_attr_setstacksize ();
40010   ;
40011   return 0;
40012 }
40013 _ACEOF
40014 rm -f conftest.$ac_objext conftest$ac_exeext
40015 if { (ac_try="$ac_link"
40016 case "(($ac_try" in
40017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40018   *) ac_try_echo=$ac_try;;
40019 esac
40020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40021   (eval "$ac_link") 2>conftest.er1
40022   ac_status=$?
40023   grep -v '^ *+' conftest.er1 >conftest.err
40024   rm -f conftest.er1
40025   cat conftest.err >&5
40026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027   (exit $ac_status); } && {
40028          test -z "$ac_c_werror_flag" ||
40029          test ! -s conftest.err
40030        } && test -s conftest$ac_exeext &&
40031        $as_test_x conftest$ac_exeext; then
40032   ac_cv_func_pthread_attr_setstacksize=yes
40033 else
40034   echo "$as_me: failed program was:" >&5
40035 sed 's/^/| /' conftest.$ac_ext >&5
40036
40037         ac_cv_func_pthread_attr_setstacksize=no
40038 fi
40039
40040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40041       conftest$ac_exeext conftest.$ac_ext
40042 fi
40043 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40044 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40045 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40046   cat >>confdefs.h <<\_ACEOF
40047 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40048 _ACEOF
40049
40050 fi
40051
40052
40053
40054       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40055 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40056 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40057   echo $ECHO_N "(cached) $ECHO_C" >&6
40058 else
40059
40060         cat >conftest.$ac_ext <<_ACEOF
40061 /* confdefs.h.  */
40062 _ACEOF
40063 cat confdefs.h >>conftest.$ac_ext
40064 cat >>conftest.$ac_ext <<_ACEOF
40065 /* end confdefs.h.  */
40066 #include <pthread.h>
40067 int
40068 main ()
40069 {
40070
40071                pthread_mutexattr_t attr;
40072                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40073
40074   ;
40075   return 0;
40076 }
40077 _ACEOF
40078 rm -f conftest.$ac_objext
40079 if { (ac_try="$ac_compile"
40080 case "(($ac_try" in
40081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40082   *) ac_try_echo=$ac_try;;
40083 esac
40084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40085   (eval "$ac_compile") 2>conftest.er1
40086   ac_status=$?
40087   grep -v '^ *+' conftest.er1 >conftest.err
40088   rm -f conftest.er1
40089   cat conftest.err >&5
40090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091   (exit $ac_status); } && {
40092          test -z "$ac_c_werror_flag" ||
40093          test ! -s conftest.err
40094        } && test -s conftest.$ac_objext; then
40095   wx_cv_type_pthread_mutexattr_t=yes
40096 else
40097   echo "$as_me: failed program was:" >&5
40098 sed 's/^/| /' conftest.$ac_ext >&5
40099
40100         wx_cv_type_pthread_mutexattr_t=no
40101
40102 fi
40103
40104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40105
40106 fi
40107 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40108 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40109
40110       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40111         cat >>confdefs.h <<\_ACEOF
40112 #define HAVE_PTHREAD_MUTEXATTR_T 1
40113 _ACEOF
40114
40115
40116                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40117 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40118 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40119   echo $ECHO_N "(cached) $ECHO_C" >&6
40120 else
40121
40122                        cat >conftest.$ac_ext <<_ACEOF
40123 /* confdefs.h.  */
40124 _ACEOF
40125 cat confdefs.h >>conftest.$ac_ext
40126 cat >>conftest.$ac_ext <<_ACEOF
40127 /* end confdefs.h.  */
40128 #include <pthread.h>
40129 int
40130 main ()
40131 {
40132
40133                                pthread_mutexattr_t attr;
40134                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40135
40136   ;
40137   return 0;
40138 }
40139 _ACEOF
40140 rm -f conftest.$ac_objext
40141 if { (ac_try="$ac_compile"
40142 case "(($ac_try" in
40143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40144   *) ac_try_echo=$ac_try;;
40145 esac
40146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40147   (eval "$ac_compile") 2>conftest.er1
40148   ac_status=$?
40149   grep -v '^ *+' conftest.er1 >conftest.err
40150   rm -f conftest.er1
40151   cat conftest.err >&5
40152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153   (exit $ac_status); } && {
40154          test -z "$ac_c_werror_flag" ||
40155          test ! -s conftest.err
40156        } && test -s conftest.$ac_objext; then
40157   wx_cv_func_pthread_mutexattr_settype_decl=yes
40158 else
40159   echo "$as_me: failed program was:" >&5
40160 sed 's/^/| /' conftest.$ac_ext >&5
40161
40162         wx_cv_func_pthread_mutexattr_settype_decl=no
40163
40164 fi
40165
40166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40167
40168 fi
40169 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40170 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40171         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40172             cat >>confdefs.h <<\_ACEOF
40173 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40174 _ACEOF
40175
40176         fi
40177       else
40178                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40179 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40180 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40181   echo $ECHO_N "(cached) $ECHO_C" >&6
40182 else
40183
40184             cat >conftest.$ac_ext <<_ACEOF
40185 /* confdefs.h.  */
40186 _ACEOF
40187 cat confdefs.h >>conftest.$ac_ext
40188 cat >>conftest.$ac_ext <<_ACEOF
40189 /* end confdefs.h.  */
40190 #include <pthread.h>
40191 int
40192 main ()
40193 {
40194
40195                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40196
40197   ;
40198   return 0;
40199 }
40200 _ACEOF
40201 rm -f conftest.$ac_objext
40202 if { (ac_try="$ac_compile"
40203 case "(($ac_try" in
40204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40205   *) ac_try_echo=$ac_try;;
40206 esac
40207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40208   (eval "$ac_compile") 2>conftest.er1
40209   ac_status=$?
40210   grep -v '^ *+' conftest.er1 >conftest.err
40211   rm -f conftest.er1
40212   cat conftest.err >&5
40213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214   (exit $ac_status); } && {
40215          test -z "$ac_c_werror_flag" ||
40216          test ! -s conftest.err
40217        } && test -s conftest.$ac_objext; then
40218
40219                     wx_cv_type_pthread_rec_mutex_init=yes
40220
40221 else
40222   echo "$as_me: failed program was:" >&5
40223 sed 's/^/| /' conftest.$ac_ext >&5
40224
40225
40226                     wx_cv_type_pthread_rec_mutex_init=no
40227
40228
40229 fi
40230
40231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40232
40233 fi
40234 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40235 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40236         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40237           cat >>confdefs.h <<\_ACEOF
40238 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40239 _ACEOF
40240
40241         else
40242                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40243 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40244         fi
40245       fi
40246
40247             { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40248 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40249 if test "${wx_cv_cc___thread+set}" = set; then
40250   echo $ECHO_N "(cached) $ECHO_C" >&6
40251 else
40252
40253               cat >conftest.$ac_ext <<_ACEOF
40254 /* confdefs.h.  */
40255 _ACEOF
40256 cat confdefs.h >>conftest.$ac_ext
40257 cat >>conftest.$ac_ext <<_ACEOF
40258 /* end confdefs.h.  */
40259 #include <pthread.h>
40260 int
40261 main ()
40262 {
40263
40264                       static __thread int n = 0;
40265                       static __thread int *p = 0;
40266
40267   ;
40268   return 0;
40269 }
40270 _ACEOF
40271 rm -f conftest.$ac_objext
40272 if { (ac_try="$ac_compile"
40273 case "(($ac_try" in
40274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40275   *) ac_try_echo=$ac_try;;
40276 esac
40277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40278   (eval "$ac_compile") 2>conftest.er1
40279   ac_status=$?
40280   grep -v '^ *+' conftest.er1 >conftest.err
40281   rm -f conftest.er1
40282   cat conftest.err >&5
40283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284   (exit $ac_status); } && {
40285          test -z "$ac_c_werror_flag" ||
40286          test ! -s conftest.err
40287        } && test -s conftest.$ac_objext; then
40288   wx_cv_cc___thread=yes
40289 else
40290   echo "$as_me: failed program was:" >&5
40291 sed 's/^/| /' conftest.$ac_ext >&5
40292
40293         wx_cv_cc___thread=no
40294
40295 fi
40296
40297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40298
40299
40300 fi
40301 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40302 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40303
40304       if test "$wx_cv_cc___thread" = "yes"; then
40305
40306   GXX_VERSION=""
40307
40308
40309
40310   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40311 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40312
40313   if  test "x$GCC" = "xyes" ; then
40314
40315     if  test -z "" ; then
40316
40317       ax_gcc_option_test="int main()
40318 {
40319         return 0;
40320 }"
40321
40322 else
40323
40324       ax_gcc_option_test=""
40325
40326 fi
40327
40328
40329     # Dump the test program to file
40330     cat <<EOF > conftest.c
40331 $ax_gcc_option_test
40332 EOF
40333
40334     # Dump back the file to the log, useful for debugging purposes
40335     { ac_try='cat conftest.c 1>&5'
40336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337   (eval $ac_try) 2>&5
40338   ac_status=$?
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); }; }
40341
40342     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40344   (eval $ac_try) 2>&5
40345   ac_status=$?
40346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347   (exit $ac_status); }; } ; then
40348
40349                 { echo "$as_me:$LINENO: result: yes" >&5
40350 echo "${ECHO_T}yes" >&6; }
40351
40352     ax_gcc_version_option=yes
40353
40354
40355 else
40356
40357                 { echo "$as_me:$LINENO: result: no" >&5
40358 echo "${ECHO_T}no" >&6; }
40359
40360     ax_gcc_version_option=no
40361
40362
40363 fi
40364
40365
40366 else
40367
40368     { echo "$as_me:$LINENO: result: no gcc available" >&5
40369 echo "${ECHO_T}no gcc available" >&6; }
40370
40371 fi
40372
40373
40374   if test "x$GXX" = "xyes"; then
40375
40376     if test "x$ax_gxx_version_option" != "no"; then
40377
40378       { echo "$as_me:$LINENO: checking gxx version" >&5
40379 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40380 if test "${ax_cv_gxx_version+set}" = set; then
40381   echo $ECHO_N "(cached) $ECHO_C" >&6
40382 else
40383
40384         ax_cv_gxx_version="`$CXX -dumpversion`"
40385         if test "x$ax_cv_gxx_version" = "x"; then
40386
40387           ax_cv_gxx_version=""
40388
40389 fi
40390
40391
40392 fi
40393 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40394 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40395       GXX_VERSION=$ax_cv_gxx_version
40396
40397 fi
40398
40399
40400 fi
40401
40402
40403
40404           if test -n "$ax_cv_gxx_version"; then
40405                                                                                                                               { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40406 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40407               case "$ax_cv_gxx_version" in
40408                 1.* | 2.* | 3.* )
40409                     { echo "$as_me:$LINENO: result: no, it's broken" >&5
40410 echo "${ECHO_T}no, it's broken" >&6; }
40411                     wx_cv_cc___thread=no
40412                     ;;
40413                 *)
40414                     { echo "$as_me:$LINENO: result: yes, it works" >&5
40415 echo "${ECHO_T}yes, it works" >&6; }
40416                     ;;
40417               esac
40418           fi
40419       fi
40420
40421       if test "$wx_cv_cc___thread" = "yes"; then
40422         cat >>confdefs.h <<\_ACEOF
40423 #define HAVE___THREAD_KEYWORD 1
40424 _ACEOF
40425
40426       fi
40427     fi
40428
40429 else
40430     if test "$wxUSE_THREADS" = "yes" ; then
40431       case "${host}" in
40432         x86_64-*-mingw32* )
40433         ;;
40434         *-*-mingw32* )
40435                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40436 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40437 if test "${wx_cv_cflags_mthread+set}" = set; then
40438   echo $ECHO_N "(cached) $ECHO_C" >&6
40439 else
40440
40441                     CFLAGS_OLD="$CFLAGS"
40442                     CFLAGS="-mthreads $CFLAGS"
40443                     cat >conftest.$ac_ext <<_ACEOF
40444 /* confdefs.h.  */
40445 _ACEOF
40446 cat confdefs.h >>conftest.$ac_ext
40447 cat >>conftest.$ac_ext <<_ACEOF
40448 /* end confdefs.h.  */
40449
40450 int
40451 main ()
40452 {
40453
40454   ;
40455   return 0;
40456 }
40457 _ACEOF
40458 rm -f conftest.$ac_objext
40459 if { (ac_try="$ac_compile"
40460 case "(($ac_try" in
40461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40462   *) ac_try_echo=$ac_try;;
40463 esac
40464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40465   (eval "$ac_compile") 2>conftest.er1
40466   ac_status=$?
40467   grep -v '^ *+' conftest.er1 >conftest.err
40468   rm -f conftest.er1
40469   cat conftest.err >&5
40470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471   (exit $ac_status); } && {
40472          test -z "$ac_c_werror_flag" ||
40473          test ! -s conftest.err
40474        } && test -s conftest.$ac_objext; then
40475   wx_cv_cflags_mthread=yes
40476 else
40477   echo "$as_me: failed program was:" >&5
40478 sed 's/^/| /' conftest.$ac_ext >&5
40479
40480         wx_cv_cflags_mthread=no
40481
40482 fi
40483
40484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40485
40486
40487 fi
40488 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40489 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40490
40491             if test "$wx_cv_cflags_mthread" = "yes"; then
40492                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40493                 LDFLAGS="$LDFLAGS -mthreads"
40494             else
40495                                 CFLAGS="$CFLAGS_OLD"
40496             fi
40497         ;;
40498         *-pc-os2*emx )
40499             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40500             LDFLAGS="$LDFLAGS -Zmt"
40501         ;;
40502       esac
40503     fi
40504 fi
40505
40506 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40507 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40508 if test "${ac_cv_func_localtime_r+set}" = set; then
40509   echo $ECHO_N "(cached) $ECHO_C" >&6
40510 else
40511   cat >conftest.$ac_ext <<_ACEOF
40512 /* confdefs.h.  */
40513 _ACEOF
40514 cat confdefs.h >>conftest.$ac_ext
40515 cat >>conftest.$ac_ext <<_ACEOF
40516 /* end confdefs.h.  */
40517 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40519 #define localtime_r innocuous_localtime_r
40520
40521 /* System header to define __stub macros and hopefully few prototypes,
40522     which can conflict with char localtime_r (); below.
40523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40524     <limits.h> exists even on freestanding compilers.  */
40525
40526 #ifdef __STDC__
40527 # include <limits.h>
40528 #else
40529 # include <assert.h>
40530 #endif
40531
40532 #undef localtime_r
40533
40534 /* Override any GCC internal prototype to avoid an error.
40535    Use char because int might match the return type of a GCC
40536    builtin and then its argument prototype would still apply.  */
40537 #ifdef __cplusplus
40538 extern "C"
40539 #endif
40540 char localtime_r ();
40541 /* The GNU C library defines this for functions which it implements
40542     to always fail with ENOSYS.  Some functions are actually named
40543     something starting with __ and the normal name is an alias.  */
40544 #if defined __stub_localtime_r || defined __stub___localtime_r
40545 choke me
40546 #endif
40547
40548 int
40549 main ()
40550 {
40551 return localtime_r ();
40552   ;
40553   return 0;
40554 }
40555 _ACEOF
40556 rm -f conftest.$ac_objext conftest$ac_exeext
40557 if { (ac_try="$ac_link"
40558 case "(($ac_try" in
40559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40560   *) ac_try_echo=$ac_try;;
40561 esac
40562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40563   (eval "$ac_link") 2>conftest.er1
40564   ac_status=$?
40565   grep -v '^ *+' conftest.er1 >conftest.err
40566   rm -f conftest.er1
40567   cat conftest.err >&5
40568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569   (exit $ac_status); } && {
40570          test -z "$ac_c_werror_flag" ||
40571          test ! -s conftest.err
40572        } && test -s conftest$ac_exeext &&
40573        $as_test_x conftest$ac_exeext; then
40574   ac_cv_func_localtime_r=yes
40575 else
40576   echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40578
40579         ac_cv_func_localtime_r=no
40580 fi
40581
40582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40583       conftest$ac_exeext conftest.$ac_ext
40584 fi
40585 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40586 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40587 if test $ac_cv_func_localtime_r = yes; then
40588    cat >>confdefs.h <<\_ACEOF
40589 #define HAVE_LOCALTIME_R 1
40590 _ACEOF
40591
40592 fi
40593
40594 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40595 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40596 if test "${ac_cv_func_gmtime_r+set}" = set; then
40597   echo $ECHO_N "(cached) $ECHO_C" >&6
40598 else
40599   cat >conftest.$ac_ext <<_ACEOF
40600 /* confdefs.h.  */
40601 _ACEOF
40602 cat confdefs.h >>conftest.$ac_ext
40603 cat >>conftest.$ac_ext <<_ACEOF
40604 /* end confdefs.h.  */
40605 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40607 #define gmtime_r innocuous_gmtime_r
40608
40609 /* System header to define __stub macros and hopefully few prototypes,
40610     which can conflict with char gmtime_r (); below.
40611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40612     <limits.h> exists even on freestanding compilers.  */
40613
40614 #ifdef __STDC__
40615 # include <limits.h>
40616 #else
40617 # include <assert.h>
40618 #endif
40619
40620 #undef gmtime_r
40621
40622 /* Override any GCC internal prototype to avoid an error.
40623    Use char because int might match the return type of a GCC
40624    builtin and then its argument prototype would still apply.  */
40625 #ifdef __cplusplus
40626 extern "C"
40627 #endif
40628 char gmtime_r ();
40629 /* The GNU C library defines this for functions which it implements
40630     to always fail with ENOSYS.  Some functions are actually named
40631     something starting with __ and the normal name is an alias.  */
40632 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40633 choke me
40634 #endif
40635
40636 int
40637 main ()
40638 {
40639 return gmtime_r ();
40640   ;
40641   return 0;
40642 }
40643 _ACEOF
40644 rm -f conftest.$ac_objext conftest$ac_exeext
40645 if { (ac_try="$ac_link"
40646 case "(($ac_try" in
40647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40648   *) ac_try_echo=$ac_try;;
40649 esac
40650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40651   (eval "$ac_link") 2>conftest.er1
40652   ac_status=$?
40653   grep -v '^ *+' conftest.er1 >conftest.err
40654   rm -f conftest.er1
40655   cat conftest.err >&5
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); } && {
40658          test -z "$ac_c_werror_flag" ||
40659          test ! -s conftest.err
40660        } && test -s conftest$ac_exeext &&
40661        $as_test_x conftest$ac_exeext; then
40662   ac_cv_func_gmtime_r=yes
40663 else
40664   echo "$as_me: failed program was:" >&5
40665 sed 's/^/| /' conftest.$ac_ext >&5
40666
40667         ac_cv_func_gmtime_r=no
40668 fi
40669
40670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40671       conftest$ac_exeext conftest.$ac_ext
40672 fi
40673 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40674 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40675 if test $ac_cv_func_gmtime_r = yes; then
40676    cat >>confdefs.h <<\_ACEOF
40677 #define HAVE_GMTIME_R 1
40678 _ACEOF
40679
40680 fi
40681
40682
40683
40684
40685     ac_ext=c
40686 ac_cpp='$CPP $CPPFLAGS'
40687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40690
40691     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40692 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40693
40694     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40695   echo $ECHO_N "(cached) $ECHO_C" >&6
40696 else
40697
40698
40699 ################################################################
40700
40701 ac_cv_func_which_gethostbyname_r=unknown
40702
40703 #
40704 # ONE ARGUMENT (sanity check)
40705 #
40706
40707 # This should fail, as there is no variant of gethostbyname_r() that takes
40708 # a single argument. If it actually compiles, then we can assume that
40709 # netdb.h is not declaring the function, and the compiler is thereby
40710 # assuming an implicit prototype. In which case, we're out of luck.
40711 #
40712 cat >conftest.$ac_ext <<_ACEOF
40713 /* confdefs.h.  */
40714 _ACEOF
40715 cat confdefs.h >>conftest.$ac_ext
40716 cat >>conftest.$ac_ext <<_ACEOF
40717 /* end confdefs.h.  */
40718 #include <netdb.h>
40719 int
40720 main ()
40721 {
40722
40723             char *name = "www.gnu.org";
40724             (void)gethostbyname_r(name) /* ; */
40725
40726   ;
40727   return 0;
40728 }
40729 _ACEOF
40730 rm -f conftest.$ac_objext
40731 if { (ac_try="$ac_compile"
40732 case "(($ac_try" in
40733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40734   *) ac_try_echo=$ac_try;;
40735 esac
40736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40737   (eval "$ac_compile") 2>conftest.er1
40738   ac_status=$?
40739   grep -v '^ *+' conftest.er1 >conftest.err
40740   rm -f conftest.er1
40741   cat conftest.err >&5
40742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743   (exit $ac_status); } && {
40744          test -z "$ac_c_werror_flag" ||
40745          test ! -s conftest.err
40746        } && test -s conftest.$ac_objext; then
40747   ac_cv_func_which_gethostbyname_r=no
40748 else
40749   echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40751
40752
40753 fi
40754
40755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40756
40757 #
40758 # SIX ARGUMENTS
40759 # (e.g. Linux)
40760 #
40761
40762 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40763
40764 cat >conftest.$ac_ext <<_ACEOF
40765 /* confdefs.h.  */
40766 _ACEOF
40767 cat confdefs.h >>conftest.$ac_ext
40768 cat >>conftest.$ac_ext <<_ACEOF
40769 /* end confdefs.h.  */
40770 #include <netdb.h>
40771 int
40772 main ()
40773 {
40774
40775             char *name = "www.gnu.org";
40776             struct hostent ret, *retp;
40777             char buf[1024];
40778             int buflen = 1024;
40779             int my_h_errno;
40780             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40781
40782   ;
40783   return 0;
40784 }
40785 _ACEOF
40786 rm -f conftest.$ac_objext
40787 if { (ac_try="$ac_compile"
40788 case "(($ac_try" in
40789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40790   *) ac_try_echo=$ac_try;;
40791 esac
40792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40793   (eval "$ac_compile") 2>conftest.er1
40794   ac_status=$?
40795   grep -v '^ *+' conftest.er1 >conftest.err
40796   rm -f conftest.er1
40797   cat conftest.err >&5
40798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799   (exit $ac_status); } && {
40800          test -z "$ac_c_werror_flag" ||
40801          test ! -s conftest.err
40802        } && test -s conftest.$ac_objext; then
40803   ac_cv_func_which_gethostbyname_r=six
40804 else
40805   echo "$as_me: failed program was:" >&5
40806 sed 's/^/| /' conftest.$ac_ext >&5
40807
40808
40809 fi
40810
40811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40812
40813 fi
40814
40815 #
40816 # FIVE ARGUMENTS
40817 # (e.g. Solaris)
40818 #
40819
40820 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40821
40822 cat >conftest.$ac_ext <<_ACEOF
40823 /* confdefs.h.  */
40824 _ACEOF
40825 cat confdefs.h >>conftest.$ac_ext
40826 cat >>conftest.$ac_ext <<_ACEOF
40827 /* end confdefs.h.  */
40828 #include <netdb.h>
40829 int
40830 main ()
40831 {
40832
40833             char *name = "www.gnu.org";
40834             struct hostent ret;
40835             char buf[1024];
40836             int buflen = 1024;
40837             int my_h_errno;
40838             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40839
40840   ;
40841   return 0;
40842 }
40843 _ACEOF
40844 rm -f conftest.$ac_objext
40845 if { (ac_try="$ac_compile"
40846 case "(($ac_try" in
40847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40848   *) ac_try_echo=$ac_try;;
40849 esac
40850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40851   (eval "$ac_compile") 2>conftest.er1
40852   ac_status=$?
40853   grep -v '^ *+' conftest.er1 >conftest.err
40854   rm -f conftest.er1
40855   cat conftest.err >&5
40856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857   (exit $ac_status); } && {
40858          test -z "$ac_c_werror_flag" ||
40859          test ! -s conftest.err
40860        } && test -s conftest.$ac_objext; then
40861   ac_cv_func_which_gethostbyname_r=five
40862 else
40863   echo "$as_me: failed program was:" >&5
40864 sed 's/^/| /' conftest.$ac_ext >&5
40865
40866
40867 fi
40868
40869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40870
40871 fi
40872
40873 #
40874 # THREE ARGUMENTS
40875 # (e.g. AIX, HP-UX, Tru64)
40876 #
40877
40878 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40879
40880 cat >conftest.$ac_ext <<_ACEOF
40881 /* confdefs.h.  */
40882 _ACEOF
40883 cat confdefs.h >>conftest.$ac_ext
40884 cat >>conftest.$ac_ext <<_ACEOF
40885 /* end confdefs.h.  */
40886 #include <netdb.h>
40887 int
40888 main ()
40889 {
40890
40891             char *name = "www.gnu.org";
40892             struct hostent ret;
40893             struct hostent_data data;
40894             (void)gethostbyname_r(name, &ret, &data) /* ; */
40895
40896   ;
40897   return 0;
40898 }
40899 _ACEOF
40900 rm -f conftest.$ac_objext
40901 if { (ac_try="$ac_compile"
40902 case "(($ac_try" in
40903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40904   *) ac_try_echo=$ac_try;;
40905 esac
40906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40907   (eval "$ac_compile") 2>conftest.er1
40908   ac_status=$?
40909   grep -v '^ *+' conftest.er1 >conftest.err
40910   rm -f conftest.er1
40911   cat conftest.err >&5
40912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913   (exit $ac_status); } && {
40914          test -z "$ac_c_werror_flag" ||
40915          test ! -s conftest.err
40916        } && test -s conftest.$ac_objext; then
40917   ac_cv_func_which_gethostbyname_r=three
40918 else
40919   echo "$as_me: failed program was:" >&5
40920 sed 's/^/| /' conftest.$ac_ext >&5
40921
40922
40923 fi
40924
40925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40926
40927 fi
40928
40929 ################################################################
40930
40931
40932 fi
40933
40934 case "$ac_cv_func_which_gethostbyname_r" in
40935     three)
40936     { echo "$as_me:$LINENO: result: three" >&5
40937 echo "${ECHO_T}three" >&6; }
40938     cat >>confdefs.h <<\_ACEOF
40939 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40940 _ACEOF
40941
40942     ;;
40943
40944     five)
40945     { echo "$as_me:$LINENO: result: five" >&5
40946 echo "${ECHO_T}five" >&6; }
40947     cat >>confdefs.h <<\_ACEOF
40948 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40949 _ACEOF
40950
40951     ;;
40952
40953     six)
40954     { echo "$as_me:$LINENO: result: six" >&5
40955 echo "${ECHO_T}six" >&6; }
40956     cat >>confdefs.h <<\_ACEOF
40957 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40958 _ACEOF
40959
40960     ;;
40961
40962     no)
40963     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40964 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40965     ;;
40966
40967     unknown)
40968     { echo "$as_me:$LINENO: result: can't tell" >&5
40969 echo "${ECHO_T}can't tell" >&6; }
40970     ;;
40971
40972     *)
40973     { { echo "$as_me:$LINENO: error: internal error" >&5
40974 echo "$as_me: error: internal error" >&2;}
40975    { (exit 1); exit 1; }; }
40976     ;;
40977 esac
40978
40979 ac_ext=c
40980 ac_cpp='$CPP $CPPFLAGS'
40981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40984
40985
40986
40987       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40988               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40989           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40990 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40991 if test "${ac_cv_func_gethostbyname+set}" = set; then
40992   echo $ECHO_N "(cached) $ECHO_C" >&6
40993 else
40994   cat >conftest.$ac_ext <<_ACEOF
40995 /* confdefs.h.  */
40996 _ACEOF
40997 cat confdefs.h >>conftest.$ac_ext
40998 cat >>conftest.$ac_ext <<_ACEOF
40999 /* end confdefs.h.  */
41000 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41002 #define gethostbyname innocuous_gethostbyname
41003
41004 /* System header to define __stub macros and hopefully few prototypes,
41005     which can conflict with char gethostbyname (); below.
41006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41007     <limits.h> exists even on freestanding compilers.  */
41008
41009 #ifdef __STDC__
41010 # include <limits.h>
41011 #else
41012 # include <assert.h>
41013 #endif
41014
41015 #undef gethostbyname
41016
41017 /* Override any GCC internal prototype to avoid an error.
41018    Use char because int might match the return type of a GCC
41019    builtin and then its argument prototype would still apply.  */
41020 #ifdef __cplusplus
41021 extern "C"
41022 #endif
41023 char gethostbyname ();
41024 /* The GNU C library defines this for functions which it implements
41025     to always fail with ENOSYS.  Some functions are actually named
41026     something starting with __ and the normal name is an alias.  */
41027 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41028 choke me
41029 #endif
41030
41031 int
41032 main ()
41033 {
41034 return gethostbyname ();
41035   ;
41036   return 0;
41037 }
41038 _ACEOF
41039 rm -f conftest.$ac_objext conftest$ac_exeext
41040 if { (ac_try="$ac_link"
41041 case "(($ac_try" in
41042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41043   *) ac_try_echo=$ac_try;;
41044 esac
41045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41046   (eval "$ac_link") 2>conftest.er1
41047   ac_status=$?
41048   grep -v '^ *+' conftest.er1 >conftest.err
41049   rm -f conftest.er1
41050   cat conftest.err >&5
41051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052   (exit $ac_status); } && {
41053          test -z "$ac_c_werror_flag" ||
41054          test ! -s conftest.err
41055        } && test -s conftest$ac_exeext &&
41056        $as_test_x conftest$ac_exeext; then
41057   ac_cv_func_gethostbyname=yes
41058 else
41059   echo "$as_me: failed program was:" >&5
41060 sed 's/^/| /' conftest.$ac_ext >&5
41061
41062         ac_cv_func_gethostbyname=no
41063 fi
41064
41065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41066       conftest$ac_exeext conftest.$ac_ext
41067 fi
41068 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41069 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41070 if test $ac_cv_func_gethostbyname = yes; then
41071    cat >>confdefs.h <<\_ACEOF
41072 #define HAVE_GETHOSTBYNAME 1
41073 _ACEOF
41074
41075 fi
41076
41077       fi
41078
41079 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41080 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41081 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41082   echo $ECHO_N "(cached) $ECHO_C" >&6
41083 else
41084
41085                 ac_ext=cpp
41086 ac_cpp='$CXXCPP $CPPFLAGS'
41087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41090
41091
41092         cat >conftest.$ac_ext <<_ACEOF
41093 /* confdefs.h.  */
41094 _ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h.  */
41098 #include <netdb.h>
41099 int
41100 main ()
41101 {
41102
41103                 char *name;
41104                 char *proto;
41105                 struct servent *se, *res;
41106                 char buffer[2048];
41107                 int buflen = 2048;
41108                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41109
41110   ;
41111   return 0;
41112 }
41113 _ACEOF
41114 rm -f conftest.$ac_objext
41115 if { (ac_try="$ac_compile"
41116 case "(($ac_try" in
41117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41118   *) ac_try_echo=$ac_try;;
41119 esac
41120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41121   (eval "$ac_compile") 2>conftest.er1
41122   ac_status=$?
41123   grep -v '^ *+' conftest.er1 >conftest.err
41124   rm -f conftest.er1
41125   cat conftest.err >&5
41126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127   (exit $ac_status); } && {
41128          test -z "$ac_cxx_werror_flag" ||
41129          test ! -s conftest.err
41130        } && test -s conftest.$ac_objext; then
41131   ac_cv_func_which_getservbyname_r=six
41132 else
41133   echo "$as_me: failed program was:" >&5
41134 sed 's/^/| /' conftest.$ac_ext >&5
41135
41136
41137                 cat >conftest.$ac_ext <<_ACEOF
41138 /* confdefs.h.  */
41139 _ACEOF
41140 cat confdefs.h >>conftest.$ac_ext
41141 cat >>conftest.$ac_ext <<_ACEOF
41142 /* end confdefs.h.  */
41143 #include <netdb.h>
41144 int
41145 main ()
41146 {
41147
41148                         char *name;
41149                         char *proto;
41150                         struct servent *se;
41151                         char buffer[2048];
41152                         int buflen = 2048;
41153                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41154
41155   ;
41156   return 0;
41157 }
41158 _ACEOF
41159 rm -f conftest.$ac_objext
41160 if { (ac_try="$ac_compile"
41161 case "(($ac_try" in
41162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41163   *) ac_try_echo=$ac_try;;
41164 esac
41165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41166   (eval "$ac_compile") 2>conftest.er1
41167   ac_status=$?
41168   grep -v '^ *+' conftest.er1 >conftest.err
41169   rm -f conftest.er1
41170   cat conftest.err >&5
41171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172   (exit $ac_status); } && {
41173          test -z "$ac_cxx_werror_flag" ||
41174          test ! -s conftest.err
41175        } && test -s conftest.$ac_objext; then
41176   ac_cv_func_which_getservbyname_r=five
41177 else
41178   echo "$as_me: failed program was:" >&5
41179 sed 's/^/| /' conftest.$ac_ext >&5
41180
41181
41182                         cat >conftest.$ac_ext <<_ACEOF
41183 /* confdefs.h.  */
41184 _ACEOF
41185 cat confdefs.h >>conftest.$ac_ext
41186 cat >>conftest.$ac_ext <<_ACEOF
41187 /* end confdefs.h.  */
41188 #include <netdb.h>
41189 int
41190 main ()
41191 {
41192
41193                                 char *name;
41194                                 char *proto;
41195                                 struct servent *se;
41196                                 struct servent_data data;
41197                                 (void) getservbyname_r(name, proto, se, &data);
41198
41199   ;
41200   return 0;
41201 }
41202 _ACEOF
41203 rm -f conftest.$ac_objext
41204 if { (ac_try="$ac_compile"
41205 case "(($ac_try" in
41206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41207   *) ac_try_echo=$ac_try;;
41208 esac
41209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41210   (eval "$ac_compile") 2>conftest.er1
41211   ac_status=$?
41212   grep -v '^ *+' conftest.er1 >conftest.err
41213   rm -f conftest.er1
41214   cat conftest.err >&5
41215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216   (exit $ac_status); } && {
41217          test -z "$ac_cxx_werror_flag" ||
41218          test ! -s conftest.err
41219        } && test -s conftest.$ac_objext; then
41220   ac_cv_func_which_getservbyname_r=four
41221 else
41222   echo "$as_me: failed program was:" >&5
41223 sed 's/^/| /' conftest.$ac_ext >&5
41224
41225         ac_cv_func_which_getservbyname_r=no
41226
41227 fi
41228
41229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41230
41231
41232 fi
41233
41234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41235
41236
41237 fi
41238
41239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41240         ac_ext=c
41241 ac_cpp='$CPP $CPPFLAGS'
41242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41245
41246
41247
41248 fi
41249 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41250 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41251
41252 if test $ac_cv_func_which_getservbyname_r = six; then
41253   cat >>confdefs.h <<\_ACEOF
41254 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41255 _ACEOF
41256
41257 elif test $ac_cv_func_which_getservbyname_r = five; then
41258   cat >>confdefs.h <<\_ACEOF
41259 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41260 _ACEOF
41261
41262 elif test $ac_cv_func_which_getservbyname_r = four; then
41263   cat >>confdefs.h <<\_ACEOF
41264 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41265 _ACEOF
41266
41267 fi
41268
41269
41270       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41271               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41272
41273 for ac_func in getservbyname
41274 do
41275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41279   echo $ECHO_N "(cached) $ECHO_C" >&6
41280 else
41281   cat >conftest.$ac_ext <<_ACEOF
41282 /* confdefs.h.  */
41283 _ACEOF
41284 cat confdefs.h >>conftest.$ac_ext
41285 cat >>conftest.$ac_ext <<_ACEOF
41286 /* end confdefs.h.  */
41287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41289 #define $ac_func innocuous_$ac_func
41290
41291 /* System header to define __stub macros and hopefully few prototypes,
41292     which can conflict with char $ac_func (); below.
41293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41294     <limits.h> exists even on freestanding compilers.  */
41295
41296 #ifdef __STDC__
41297 # include <limits.h>
41298 #else
41299 # include <assert.h>
41300 #endif
41301
41302 #undef $ac_func
41303
41304 /* Override any GCC internal prototype to avoid an error.
41305    Use char because int might match the return type of a GCC
41306    builtin and then its argument prototype would still apply.  */
41307 #ifdef __cplusplus
41308 extern "C"
41309 #endif
41310 char $ac_func ();
41311 /* The GNU C library defines this for functions which it implements
41312     to always fail with ENOSYS.  Some functions are actually named
41313     something starting with __ and the normal name is an alias.  */
41314 #if defined __stub_$ac_func || defined __stub___$ac_func
41315 choke me
41316 #endif
41317
41318 int
41319 main ()
41320 {
41321 return $ac_func ();
41322   ;
41323   return 0;
41324 }
41325 _ACEOF
41326 rm -f conftest.$ac_objext conftest$ac_exeext
41327 if { (ac_try="$ac_link"
41328 case "(($ac_try" in
41329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41330   *) ac_try_echo=$ac_try;;
41331 esac
41332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41333   (eval "$ac_link") 2>conftest.er1
41334   ac_status=$?
41335   grep -v '^ *+' conftest.er1 >conftest.err
41336   rm -f conftest.er1
41337   cat conftest.err >&5
41338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339   (exit $ac_status); } && {
41340          test -z "$ac_c_werror_flag" ||
41341          test ! -s conftest.err
41342        } && test -s conftest$ac_exeext &&
41343        $as_test_x conftest$ac_exeext; then
41344   eval "$as_ac_var=yes"
41345 else
41346   echo "$as_me: failed program was:" >&5
41347 sed 's/^/| /' conftest.$ac_ext >&5
41348
41349         eval "$as_ac_var=no"
41350 fi
41351
41352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41353       conftest$ac_exeext conftest.$ac_ext
41354 fi
41355 ac_res=`eval echo '${'$as_ac_var'}'`
41356                { echo "$as_me:$LINENO: result: $ac_res" >&5
41357 echo "${ECHO_T}$ac_res" >&6; }
41358 if test `eval echo '${'$as_ac_var'}'` = yes; then
41359   cat >>confdefs.h <<_ACEOF
41360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41361 _ACEOF
41362   cat >>confdefs.h <<\_ACEOF
41363 #define HAVE_GETSERVBYNAME 1
41364 _ACEOF
41365
41366 fi
41367 done
41368
41369       fi
41370
41371 if test "$wxUSE_THREADS" = "yes"; then
41372   cat >>confdefs.h <<\_ACEOF
41373 #define wxUSE_THREADS 1
41374 _ACEOF
41375
41376
41377   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41378 else
41379       if test "$wx_cv_func_strtok_r" = "yes"; then
41380     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41381 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41382     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41383         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41384         { echo "$as_me:$LINENO: result: yes" >&5
41385 echo "${ECHO_T}yes" >&6; }
41386     else
41387         { echo "$as_me:$LINENO: result: no" >&5
41388 echo "${ECHO_T}no" >&6; }
41389     fi
41390   fi
41391 fi
41392
41393 if test "$WXGTK2" = 1 ; then
41394   cat >>confdefs.h <<_ACEOF
41395 #define __WXGTK20__ $WXGTK2
41396 _ACEOF
41397
41398   WXGTK12=1
41399 fi
41400
41401 if test "$WXGTK12" = 1 ; then
41402   cat >>confdefs.h <<_ACEOF
41403 #define __WXGTK12__ $WXGTK12
41404 _ACEOF
41405
41406 fi
41407
41408 if test "$WXGTK127" = 1 ; then
41409   cat >>confdefs.h <<_ACEOF
41410 #define __WXGTK127__ $WXGTK127
41411 _ACEOF
41412
41413 fi
41414
41415 if test "$WXGPE" = 1 ; then
41416   cat >>confdefs.h <<_ACEOF
41417 #define __WXGPE__ $WXGPE
41418 _ACEOF
41419
41420 fi
41421
41422 DEBUG_CFLAGS=
41423 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
41424                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
41425 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
41426 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
41427     DEBUG_CFLAGS="-g"
41428 fi
41429
41430 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41431     wxUSE_DEBUG_INFO=yes
41432     if test "$GCC" = yes; then
41433         DEBUG_CFLAGS="-ggdb"
41434     fi
41435 fi
41436
41437 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41438     cat >>confdefs.h <<\_ACEOF
41439 #define WXDEBUG 1
41440 _ACEOF
41441
41442     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41443 else
41444     if test "$wxUSE_GTK" = 1 ; then
41445         if test "x$wxGTK_VERSION" = "x1" ; then
41446             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41447         fi
41448     fi
41449 fi
41450
41451 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41452     cat >>confdefs.h <<\_ACEOF
41453 #define wxUSE_MEMORY_TRACING 1
41454 _ACEOF
41455
41456     cat >>confdefs.h <<\_ACEOF
41457 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41458 _ACEOF
41459
41460     cat >>confdefs.h <<\_ACEOF
41461 #define wxUSE_DEBUG_NEW_ALWAYS 1
41462 _ACEOF
41463
41464     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41465 fi
41466
41467 if test "$wxUSE_DMALLOC" = "yes" ; then
41468     DMALLOC_LIBS="-ldmallocthcxx"
41469 fi
41470
41471 PROFILE_FLAGS=
41472 if test "$wxUSE_PROFILE" = "yes" ; then
41473     PROFILE_FLAGS=" -pg"
41474 fi
41475
41476 if test "$GCC" = "yes" ; then
41477     if test "$wxUSE_NO_RTTI" = "yes" ; then
41478         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41479     fi
41480     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41481         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41482     fi
41483     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41484         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41485     fi
41486
41487                                                 case "${host}" in
41488       powerpc*-*-aix* )
41489         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41490         ;;
41491       *-hppa* )
41492         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41493         ;;
41494     esac
41495 fi
41496
41497 OPTIMISE_CFLAGS=
41498 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
41499                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
41500 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
41501 else
41502     if test "$wxUSE_OPTIMISE" = "no" ; then
41503         if test "$GCC" = yes ; then
41504                                     OPTIMISE_CFLAGS="-O0"
41505         fi
41506     else
41507         if test "$GCC" = yes ; then
41508             case "${host}" in
41509                 *-pc-os2_emx | *-pc-os2-emx )
41510                                                             OPTIMISE_CFLAGS="-O2"
41511                 ;;
41512                 *)
41513                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41514                 ;;
41515             esac
41516         else
41517             OPTIMISE_CFLAGS="-O"
41518         fi
41519     fi
41520 fi
41521
41522
41523 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41524     cat >>confdefs.h <<\_ACEOF
41525 #define WXWIN_COMPATIBILITY_2_6 1
41526 _ACEOF
41527
41528
41529     WXWIN_COMPATIBILITY_2_8="yes"
41530 fi
41531
41532 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41533     cat >>confdefs.h <<\_ACEOF
41534 #define WXWIN_COMPATIBILITY_2_8 1
41535 _ACEOF
41536
41537 fi
41538
41539
41540 if test "$wxUSE_GUI" = "yes"; then
41541     cat >>confdefs.h <<\_ACEOF
41542 #define wxUSE_GUI 1
41543 _ACEOF
41544
41545
41546                                             fi
41547
41548
41549 if test "$wxUSE_UNIX" = "yes"; then
41550   cat >>confdefs.h <<\_ACEOF
41551 #define wxUSE_UNIX 1
41552 _ACEOF
41553
41554 fi
41555
41556
41557 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41558
41559     HAVE_DL_FUNCS=0
41560     HAVE_SHL_FUNCS=0
41561     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41562         if test "$USE_DOS" = 1; then
41563             HAVE_DL_FUNCS=0
41564         else
41565
41566 for ac_func in dlopen
41567 do
41568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41572   echo $ECHO_N "(cached) $ECHO_C" >&6
41573 else
41574   cat >conftest.$ac_ext <<_ACEOF
41575 /* confdefs.h.  */
41576 _ACEOF
41577 cat confdefs.h >>conftest.$ac_ext
41578 cat >>conftest.$ac_ext <<_ACEOF
41579 /* end confdefs.h.  */
41580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41582 #define $ac_func innocuous_$ac_func
41583
41584 /* System header to define __stub macros and hopefully few prototypes,
41585     which can conflict with char $ac_func (); below.
41586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41587     <limits.h> exists even on freestanding compilers.  */
41588
41589 #ifdef __STDC__
41590 # include <limits.h>
41591 #else
41592 # include <assert.h>
41593 #endif
41594
41595 #undef $ac_func
41596
41597 /* Override any GCC internal prototype to avoid an error.
41598    Use char because int might match the return type of a GCC
41599    builtin and then its argument prototype would still apply.  */
41600 #ifdef __cplusplus
41601 extern "C"
41602 #endif
41603 char $ac_func ();
41604 /* The GNU C library defines this for functions which it implements
41605     to always fail with ENOSYS.  Some functions are actually named
41606     something starting with __ and the normal name is an alias.  */
41607 #if defined __stub_$ac_func || defined __stub___$ac_func
41608 choke me
41609 #endif
41610
41611 int
41612 main ()
41613 {
41614 return $ac_func ();
41615   ;
41616   return 0;
41617 }
41618 _ACEOF
41619 rm -f conftest.$ac_objext conftest$ac_exeext
41620 if { (ac_try="$ac_link"
41621 case "(($ac_try" in
41622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41623   *) ac_try_echo=$ac_try;;
41624 esac
41625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41626   (eval "$ac_link") 2>conftest.er1
41627   ac_status=$?
41628   grep -v '^ *+' conftest.er1 >conftest.err
41629   rm -f conftest.er1
41630   cat conftest.err >&5
41631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632   (exit $ac_status); } && {
41633          test -z "$ac_c_werror_flag" ||
41634          test ! -s conftest.err
41635        } && test -s conftest$ac_exeext &&
41636        $as_test_x conftest$ac_exeext; then
41637   eval "$as_ac_var=yes"
41638 else
41639   echo "$as_me: failed program was:" >&5
41640 sed 's/^/| /' conftest.$ac_ext >&5
41641
41642         eval "$as_ac_var=no"
41643 fi
41644
41645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41646       conftest$ac_exeext conftest.$ac_ext
41647 fi
41648 ac_res=`eval echo '${'$as_ac_var'}'`
41649                { echo "$as_me:$LINENO: result: $ac_res" >&5
41650 echo "${ECHO_T}$ac_res" >&6; }
41651 if test `eval echo '${'$as_ac_var'}'` = yes; then
41652   cat >>confdefs.h <<_ACEOF
41653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41654 _ACEOF
41655
41656                 cat >>confdefs.h <<\_ACEOF
41657 #define HAVE_DLOPEN 1
41658 _ACEOF
41659
41660                 HAVE_DL_FUNCS=1
41661
41662 else
41663
41664                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41665 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41667   echo $ECHO_N "(cached) $ECHO_C" >&6
41668 else
41669   ac_check_lib_save_LIBS=$LIBS
41670 LIBS="-ldl  $LIBS"
41671 cat >conftest.$ac_ext <<_ACEOF
41672 /* confdefs.h.  */
41673 _ACEOF
41674 cat confdefs.h >>conftest.$ac_ext
41675 cat >>conftest.$ac_ext <<_ACEOF
41676 /* end confdefs.h.  */
41677
41678 /* Override any GCC internal prototype to avoid an error.
41679    Use char because int might match the return type of a GCC
41680    builtin and then its argument prototype would still apply.  */
41681 #ifdef __cplusplus
41682 extern "C"
41683 #endif
41684 char dlopen ();
41685 int
41686 main ()
41687 {
41688 return dlopen ();
41689   ;
41690   return 0;
41691 }
41692 _ACEOF
41693 rm -f conftest.$ac_objext conftest$ac_exeext
41694 if { (ac_try="$ac_link"
41695 case "(($ac_try" in
41696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41697   *) ac_try_echo=$ac_try;;
41698 esac
41699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41700   (eval "$ac_link") 2>conftest.er1
41701   ac_status=$?
41702   grep -v '^ *+' conftest.er1 >conftest.err
41703   rm -f conftest.er1
41704   cat conftest.err >&5
41705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41706   (exit $ac_status); } && {
41707          test -z "$ac_c_werror_flag" ||
41708          test ! -s conftest.err
41709        } && test -s conftest$ac_exeext &&
41710        $as_test_x conftest$ac_exeext; then
41711   ac_cv_lib_dl_dlopen=yes
41712 else
41713   echo "$as_me: failed program was:" >&5
41714 sed 's/^/| /' conftest.$ac_ext >&5
41715
41716         ac_cv_lib_dl_dlopen=no
41717 fi
41718
41719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41720       conftest$ac_exeext conftest.$ac_ext
41721 LIBS=$ac_check_lib_save_LIBS
41722 fi
41723 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41725 if test $ac_cv_lib_dl_dlopen = yes; then
41726
41727                                 cat >>confdefs.h <<\_ACEOF
41728 #define HAVE_DLOPEN 1
41729 _ACEOF
41730
41731                                 HAVE_DL_FUNCS=1
41732                                 DL_LINK=" -ldl$DL_LINK"
41733
41734 else
41735
41736
41737 for ac_func in shl_load
41738 do
41739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41743   echo $ECHO_N "(cached) $ECHO_C" >&6
41744 else
41745   cat >conftest.$ac_ext <<_ACEOF
41746 /* confdefs.h.  */
41747 _ACEOF
41748 cat confdefs.h >>conftest.$ac_ext
41749 cat >>conftest.$ac_ext <<_ACEOF
41750 /* end confdefs.h.  */
41751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41753 #define $ac_func innocuous_$ac_func
41754
41755 /* System header to define __stub macros and hopefully few prototypes,
41756     which can conflict with char $ac_func (); below.
41757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41758     <limits.h> exists even on freestanding compilers.  */
41759
41760 #ifdef __STDC__
41761 # include <limits.h>
41762 #else
41763 # include <assert.h>
41764 #endif
41765
41766 #undef $ac_func
41767
41768 /* Override any GCC internal prototype to avoid an error.
41769    Use char because int might match the return type of a GCC
41770    builtin and then its argument prototype would still apply.  */
41771 #ifdef __cplusplus
41772 extern "C"
41773 #endif
41774 char $ac_func ();
41775 /* The GNU C library defines this for functions which it implements
41776     to always fail with ENOSYS.  Some functions are actually named
41777     something starting with __ and the normal name is an alias.  */
41778 #if defined __stub_$ac_func || defined __stub___$ac_func
41779 choke me
41780 #endif
41781
41782 int
41783 main ()
41784 {
41785 return $ac_func ();
41786   ;
41787   return 0;
41788 }
41789 _ACEOF
41790 rm -f conftest.$ac_objext conftest$ac_exeext
41791 if { (ac_try="$ac_link"
41792 case "(($ac_try" in
41793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41794   *) ac_try_echo=$ac_try;;
41795 esac
41796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41797   (eval "$ac_link") 2>conftest.er1
41798   ac_status=$?
41799   grep -v '^ *+' conftest.er1 >conftest.err
41800   rm -f conftest.er1
41801   cat conftest.err >&5
41802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41803   (exit $ac_status); } && {
41804          test -z "$ac_c_werror_flag" ||
41805          test ! -s conftest.err
41806        } && test -s conftest$ac_exeext &&
41807        $as_test_x conftest$ac_exeext; then
41808   eval "$as_ac_var=yes"
41809 else
41810   echo "$as_me: failed program was:" >&5
41811 sed 's/^/| /' conftest.$ac_ext >&5
41812
41813         eval "$as_ac_var=no"
41814 fi
41815
41816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41817       conftest$ac_exeext conftest.$ac_ext
41818 fi
41819 ac_res=`eval echo '${'$as_ac_var'}'`
41820                { echo "$as_me:$LINENO: result: $ac_res" >&5
41821 echo "${ECHO_T}$ac_res" >&6; }
41822 if test `eval echo '${'$as_ac_var'}'` = yes; then
41823   cat >>confdefs.h <<_ACEOF
41824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41825 _ACEOF
41826
41827                                                 cat >>confdefs.h <<\_ACEOF
41828 #define HAVE_SHL_LOAD 1
41829 _ACEOF
41830
41831                                                 HAVE_SHL_FUNCS=1
41832
41833 else
41834
41835                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41836 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41837 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41838   echo $ECHO_N "(cached) $ECHO_C" >&6
41839 else
41840   ac_check_lib_save_LIBS=$LIBS
41841 LIBS="-lshl_load  $LIBS"
41842 cat >conftest.$ac_ext <<_ACEOF
41843 /* confdefs.h.  */
41844 _ACEOF
41845 cat confdefs.h >>conftest.$ac_ext
41846 cat >>conftest.$ac_ext <<_ACEOF
41847 /* end confdefs.h.  */
41848
41849 /* Override any GCC internal prototype to avoid an error.
41850    Use char because int might match the return type of a GCC
41851    builtin and then its argument prototype would still apply.  */
41852 #ifdef __cplusplus
41853 extern "C"
41854 #endif
41855 char dld ();
41856 int
41857 main ()
41858 {
41859 return dld ();
41860   ;
41861   return 0;
41862 }
41863 _ACEOF
41864 rm -f conftest.$ac_objext conftest$ac_exeext
41865 if { (ac_try="$ac_link"
41866 case "(($ac_try" in
41867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41868   *) ac_try_echo=$ac_try;;
41869 esac
41870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41871   (eval "$ac_link") 2>conftest.er1
41872   ac_status=$?
41873   grep -v '^ *+' conftest.er1 >conftest.err
41874   rm -f conftest.er1
41875   cat conftest.err >&5
41876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877   (exit $ac_status); } && {
41878          test -z "$ac_c_werror_flag" ||
41879          test ! -s conftest.err
41880        } && test -s conftest$ac_exeext &&
41881        $as_test_x conftest$ac_exeext; then
41882   ac_cv_lib_shl_load_dld=yes
41883 else
41884   echo "$as_me: failed program was:" >&5
41885 sed 's/^/| /' conftest.$ac_ext >&5
41886
41887         ac_cv_lib_shl_load_dld=no
41888 fi
41889
41890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41891       conftest$ac_exeext conftest.$ac_ext
41892 LIBS=$ac_check_lib_save_LIBS
41893 fi
41894 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41895 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41896 if test $ac_cv_lib_shl_load_dld = yes; then
41897
41898                                                                 HAVE_SHL_FUNCS=1
41899                                                                 DL_LINK=" -ldld$DL_LINK"
41900
41901 fi
41902
41903
41904 fi
41905 done
41906
41907
41908 fi
41909
41910
41911 fi
41912 done
41913
41914
41915                         if test "$HAVE_DL_FUNCS" = 1; then
41916
41917 for ac_func in dlerror
41918 do
41919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41923   echo $ECHO_N "(cached) $ECHO_C" >&6
41924 else
41925   cat >conftest.$ac_ext <<_ACEOF
41926 /* confdefs.h.  */
41927 _ACEOF
41928 cat confdefs.h >>conftest.$ac_ext
41929 cat >>conftest.$ac_ext <<_ACEOF
41930 /* end confdefs.h.  */
41931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41933 #define $ac_func innocuous_$ac_func
41934
41935 /* System header to define __stub macros and hopefully few prototypes,
41936     which can conflict with char $ac_func (); below.
41937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41938     <limits.h> exists even on freestanding compilers.  */
41939
41940 #ifdef __STDC__
41941 # include <limits.h>
41942 #else
41943 # include <assert.h>
41944 #endif
41945
41946 #undef $ac_func
41947
41948 /* Override any GCC internal prototype to avoid an error.
41949    Use char because int might match the return type of a GCC
41950    builtin and then its argument prototype would still apply.  */
41951 #ifdef __cplusplus
41952 extern "C"
41953 #endif
41954 char $ac_func ();
41955 /* The GNU C library defines this for functions which it implements
41956     to always fail with ENOSYS.  Some functions are actually named
41957     something starting with __ and the normal name is an alias.  */
41958 #if defined __stub_$ac_func || defined __stub___$ac_func
41959 choke me
41960 #endif
41961
41962 int
41963 main ()
41964 {
41965 return $ac_func ();
41966   ;
41967   return 0;
41968 }
41969 _ACEOF
41970 rm -f conftest.$ac_objext conftest$ac_exeext
41971 if { (ac_try="$ac_link"
41972 case "(($ac_try" in
41973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41974   *) ac_try_echo=$ac_try;;
41975 esac
41976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41977   (eval "$ac_link") 2>conftest.er1
41978   ac_status=$?
41979   grep -v '^ *+' conftest.er1 >conftest.err
41980   rm -f conftest.er1
41981   cat conftest.err >&5
41982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983   (exit $ac_status); } && {
41984          test -z "$ac_c_werror_flag" ||
41985          test ! -s conftest.err
41986        } && test -s conftest$ac_exeext &&
41987        $as_test_x conftest$ac_exeext; then
41988   eval "$as_ac_var=yes"
41989 else
41990   echo "$as_me: failed program was:" >&5
41991 sed 's/^/| /' conftest.$ac_ext >&5
41992
41993         eval "$as_ac_var=no"
41994 fi
41995
41996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41997       conftest$ac_exeext conftest.$ac_ext
41998 fi
41999 ac_res=`eval echo '${'$as_ac_var'}'`
42000                { echo "$as_me:$LINENO: result: $ac_res" >&5
42001 echo "${ECHO_T}$ac_res" >&6; }
42002 if test `eval echo '${'$as_ac_var'}'` = yes; then
42003   cat >>confdefs.h <<_ACEOF
42004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42005 _ACEOF
42006  cat >>confdefs.h <<\_ACEOF
42007 #define HAVE_DLERROR 1
42008 _ACEOF
42009
42010 else
42011
42012                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42013 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42014 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42015   echo $ECHO_N "(cached) $ECHO_C" >&6
42016 else
42017   ac_check_lib_save_LIBS=$LIBS
42018 LIBS="-ldl  $LIBS"
42019 cat >conftest.$ac_ext <<_ACEOF
42020 /* confdefs.h.  */
42021 _ACEOF
42022 cat confdefs.h >>conftest.$ac_ext
42023 cat >>conftest.$ac_ext <<_ACEOF
42024 /* end confdefs.h.  */
42025
42026 /* Override any GCC internal prototype to avoid an error.
42027    Use char because int might match the return type of a GCC
42028    builtin and then its argument prototype would still apply.  */
42029 #ifdef __cplusplus
42030 extern "C"
42031 #endif
42032 char dlerror ();
42033 int
42034 main ()
42035 {
42036 return dlerror ();
42037   ;
42038   return 0;
42039 }
42040 _ACEOF
42041 rm -f conftest.$ac_objext conftest$ac_exeext
42042 if { (ac_try="$ac_link"
42043 case "(($ac_try" in
42044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42045   *) ac_try_echo=$ac_try;;
42046 esac
42047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42048   (eval "$ac_link") 2>conftest.er1
42049   ac_status=$?
42050   grep -v '^ *+' conftest.er1 >conftest.err
42051   rm -f conftest.er1
42052   cat conftest.err >&5
42053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054   (exit $ac_status); } && {
42055          test -z "$ac_c_werror_flag" ||
42056          test ! -s conftest.err
42057        } && test -s conftest$ac_exeext &&
42058        $as_test_x conftest$ac_exeext; then
42059   ac_cv_lib_dl_dlerror=yes
42060 else
42061   echo "$as_me: failed program was:" >&5
42062 sed 's/^/| /' conftest.$ac_ext >&5
42063
42064         ac_cv_lib_dl_dlerror=no
42065 fi
42066
42067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42068       conftest$ac_exeext conftest.$ac_ext
42069 LIBS=$ac_check_lib_save_LIBS
42070 fi
42071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42072 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42073 if test $ac_cv_lib_dl_dlerror = yes; then
42074   cat >>confdefs.h <<\_ACEOF
42075 #define HAVE_DLERROR 1
42076 _ACEOF
42077
42078 fi
42079
42080
42081
42082 fi
42083 done
42084
42085             fi
42086         fi
42087
42088                 if test "$USE_DARWIN" = 1; then
42089                         HAVE_DL_FUNCS=1
42090         fi
42091
42092         if test "$HAVE_DL_FUNCS" = 0; then
42093             if test "$HAVE_SHL_FUNCS" = 0; then
42094               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42095                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42096 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42097                   wxUSE_DYNAMIC_LOADER=no
42098                   wxUSE_DYNLIB_CLASS=no
42099               else
42100                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42101 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42102               fi
42103             fi
42104         fi
42105     fi
42106 fi
42107
42108 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42109     cat >>confdefs.h <<\_ACEOF
42110 #define wxUSE_DYNAMIC_LOADER 1
42111 _ACEOF
42112
42113 fi
42114 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42115     cat >>confdefs.h <<\_ACEOF
42116 #define wxUSE_DYNLIB_CLASS 1
42117 _ACEOF
42118
42119 fi
42120
42121
42122
42123 if test "$wxUSE_PLUGINS" = "yes" ; then
42124     if test "$wxUSE_SHARED" = "no" ; then
42125         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42126 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42127         wxUSE_PLUGINS=no
42128     fi
42129     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42130         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42131 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42132         wxUSE_PLUGINS=no
42133     fi
42134     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42135         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42136 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42137         wxUSE_PLUGINS=no
42138     fi
42139     if test "$wxUSE_PLUGINS" = "yes" ; then
42140         cat >>confdefs.h <<\_ACEOF
42141 #define wxUSE_PLUGINS 1
42142 _ACEOF
42143
42144     fi
42145 fi
42146
42147
42148 if test "$wxUSE_STL" = "yes"; then
42149   cat >>confdefs.h <<\_ACEOF
42150 #define wxUSE_STL 1
42151 _ACEOF
42152
42153 fi
42154
42155 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42156   cat >>confdefs.h <<\_ACEOF
42157 #define wxUSE_EXTENDED_RTTI 1
42158 _ACEOF
42159
42160 fi
42161
42162 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42163   cat >>confdefs.h <<\_ACEOF
42164 #define wxUSE_APPLE_IEEE 1
42165 _ACEOF
42166
42167 fi
42168
42169 if test "$wxUSE_TIMER" = "yes"; then
42170   cat >>confdefs.h <<\_ACEOF
42171 #define wxUSE_TIMER 1
42172 _ACEOF
42173
42174 fi
42175
42176 if test "$USE_UNIX" = 1 ; then
42177         if test "$wxUSE_MGL" != 1; then
42178                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42179 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42180 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42181   echo $ECHO_N "(cached) $ECHO_C" >&6
42182 else
42183
42184             cat >conftest.$ac_ext <<_ACEOF
42185 /* confdefs.h.  */
42186 _ACEOF
42187 cat confdefs.h >>conftest.$ac_ext
42188 cat >>conftest.$ac_ext <<_ACEOF
42189 /* end confdefs.h.  */
42190
42191                     #include <sys/ioctl.h>
42192                     #include <sys/soundcard.h>
42193
42194 int
42195 main ()
42196 {
42197
42198                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42199
42200   ;
42201   return 0;
42202 }
42203 _ACEOF
42204 rm -f conftest.$ac_objext conftest$ac_exeext
42205 if { (ac_try="$ac_link"
42206 case "(($ac_try" in
42207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42208   *) ac_try_echo=$ac_try;;
42209 esac
42210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42211   (eval "$ac_link") 2>conftest.er1
42212   ac_status=$?
42213   grep -v '^ *+' conftest.er1 >conftest.err
42214   rm -f conftest.er1
42215   cat conftest.err >&5
42216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217   (exit $ac_status); } && {
42218          test -z "$ac_c_werror_flag" ||
42219          test ! -s conftest.err
42220        } && test -s conftest$ac_exeext &&
42221        $as_test_x conftest$ac_exeext; then
42222   ac_cv_header_sys_soundcard=yes
42223 else
42224   echo "$as_me: failed program was:" >&5
42225 sed 's/^/| /' conftest.$ac_ext >&5
42226
42227
42228                     saveLibs="$LIBS"
42229                     LIBS="$saveLibs -lossaudio"
42230                     cat >conftest.$ac_ext <<_ACEOF
42231 /* confdefs.h.  */
42232 _ACEOF
42233 cat confdefs.h >>conftest.$ac_ext
42234 cat >>conftest.$ac_ext <<_ACEOF
42235 /* end confdefs.h.  */
42236
42237                             #include <sys/ioctl.h>
42238                             #include <sys/soundcard.h>
42239
42240 int
42241 main ()
42242 {
42243
42244                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42245
42246   ;
42247   return 0;
42248 }
42249 _ACEOF
42250 rm -f conftest.$ac_objext conftest$ac_exeext
42251 if { (ac_try="$ac_link"
42252 case "(($ac_try" in
42253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42254   *) ac_try_echo=$ac_try;;
42255 esac
42256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42257   (eval "$ac_link") 2>conftest.er1
42258   ac_status=$?
42259   grep -v '^ *+' conftest.er1 >conftest.err
42260   rm -f conftest.er1
42261   cat conftest.err >&5
42262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42263   (exit $ac_status); } && {
42264          test -z "$ac_c_werror_flag" ||
42265          test ! -s conftest.err
42266        } && test -s conftest$ac_exeext &&
42267        $as_test_x conftest$ac_exeext; then
42268   ac_cv_header_sys_soundcard=yes
42269 else
42270   echo "$as_me: failed program was:" >&5
42271 sed 's/^/| /' conftest.$ac_ext >&5
42272
42273
42274                             LIBS="$saveLibs"
42275                             ac_cv_header_sys_soundcard=no
42276
42277
42278 fi
42279
42280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42281       conftest$ac_exeext conftest.$ac_ext
42282
42283
42284 fi
42285
42286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42287       conftest$ac_exeext conftest.$ac_ext
42288
42289 fi
42290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42291 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42292     fi
42293
42294     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42295         cat >>confdefs.h <<\_ACEOF
42296 #define HAVE_SYS_SOUNDCARD_H 1
42297 _ACEOF
42298
42299     fi
42300 fi
42301
42302 WITH_PLUGIN_SDL=0
42303 if test "$wxUSE_SOUND" = "yes"; then
42304   if test "$USE_UNIX" = 1 ; then
42305     if test "$wxUSE_LIBSDL" != "no"; then
42306
42307 # Check whether --with-sdl-prefix was given.
42308 if test "${with_sdl_prefix+set}" = set; then
42309   withval=$with_sdl_prefix; sdl_prefix="$withval"
42310 else
42311   sdl_prefix=""
42312 fi
42313
42314
42315 # Check whether --with-sdl-exec-prefix was given.
42316 if test "${with_sdl_exec_prefix+set}" = set; then
42317   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42318 else
42319   sdl_exec_prefix=""
42320 fi
42321
42322 # Check whether --enable-sdltest was given.
42323 if test "${enable_sdltest+set}" = set; then
42324   enableval=$enable_sdltest;
42325 else
42326   enable_sdltest=yes
42327 fi
42328
42329
42330   if test x$sdl_exec_prefix != x ; then
42331     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42332     if test x${SDL_CONFIG+set} != xset ; then
42333       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42334     fi
42335   fi
42336   if test x$sdl_prefix != x ; then
42337     sdl_args="$sdl_args --prefix=$sdl_prefix"
42338     if test x${SDL_CONFIG+set} != xset ; then
42339       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42340     fi
42341   fi
42342
42343   if test "x$prefix" != xNONE; then
42344     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42345   fi
42346   # Extract the first word of "sdl-config", so it can be a program name with args.
42347 set dummy sdl-config; ac_word=$2
42348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42350 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42351   echo $ECHO_N "(cached) $ECHO_C" >&6
42352 else
42353   case $SDL_CONFIG in
42354   [\\/]* | ?:[\\/]*)
42355   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42356   ;;
42357   *)
42358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42359 for as_dir in $PATH
42360 do
42361   IFS=$as_save_IFS
42362   test -z "$as_dir" && as_dir=.
42363   for ac_exec_ext in '' $ac_executable_extensions; do
42364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42365     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42367     break 2
42368   fi
42369 done
42370 done
42371 IFS=$as_save_IFS
42372
42373   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42374   ;;
42375 esac
42376 fi
42377 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42378 if test -n "$SDL_CONFIG"; then
42379   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42380 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42381 else
42382   { echo "$as_me:$LINENO: result: no" >&5
42383 echo "${ECHO_T}no" >&6; }
42384 fi
42385
42386
42387   min_sdl_version=1.2.0
42388   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42389 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42390   no_sdl=""
42391   if test "$SDL_CONFIG" = "no" ; then
42392     no_sdl=yes
42393   else
42394     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42395     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42396
42397     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42398            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42399     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42400            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42401     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42402            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42403     if test "x$enable_sdltest" = "xyes" ; then
42404       ac_save_CFLAGS="$CFLAGS"
42405       ac_save_CXXFLAGS="$CXXFLAGS"
42406       ac_save_LIBS="$LIBS"
42407       CFLAGS="$CFLAGS $SDL_CFLAGS"
42408       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42409       LIBS="$LIBS $SDL_LIBS"
42410       rm -f conf.sdltest
42411       if test "$cross_compiling" = yes; then
42412   echo $ac_n "cross compiling; assumed OK... $ac_c"
42413 else
42414   cat >conftest.$ac_ext <<_ACEOF
42415 /* confdefs.h.  */
42416 _ACEOF
42417 cat confdefs.h >>conftest.$ac_ext
42418 cat >>conftest.$ac_ext <<_ACEOF
42419 /* end confdefs.h.  */
42420
42421 #include <stdio.h>
42422 #include <stdlib.h>
42423 #include <string.h>
42424 #include "SDL.h"
42425
42426 char*
42427 my_strdup (char *str)
42428 {
42429   char *new_str;
42430
42431   if (str)
42432     {
42433       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42434       strcpy (new_str, str);
42435     }
42436   else
42437     new_str = NULL;
42438
42439   return new_str;
42440 }
42441
42442 int main (int argc, char *argv[])
42443 {
42444   int major, minor, micro;
42445   char *tmp_version;
42446
42447   /* This hangs on some systems (?)
42448   system ("touch conf.sdltest");
42449   */
42450   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42451
42452   /* HP/UX 9 (%@#!) writes to sscanf strings */
42453   tmp_version = my_strdup("$min_sdl_version");
42454   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42455      printf("%s, bad version string\n", "$min_sdl_version");
42456      exit(1);
42457    }
42458
42459    if (($sdl_major_version > major) ||
42460       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42461       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42462     {
42463       return 0;
42464     }
42465   else
42466     {
42467       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42468       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42469       printf("*** best to upgrade to the required version.\n");
42470       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42471       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42472       printf("*** config.cache before re-running configure\n");
42473       return 1;
42474     }
42475 }
42476
42477
42478 _ACEOF
42479 rm -f conftest$ac_exeext
42480 if { (ac_try="$ac_link"
42481 case "(($ac_try" in
42482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42483   *) ac_try_echo=$ac_try;;
42484 esac
42485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42486   (eval "$ac_link") 2>&5
42487   ac_status=$?
42488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42490   { (case "(($ac_try" in
42491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42492   *) ac_try_echo=$ac_try;;
42493 esac
42494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42495   (eval "$ac_try") 2>&5
42496   ac_status=$?
42497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498   (exit $ac_status); }; }; then
42499   :
42500 else
42501   echo "$as_me: program exited with status $ac_status" >&5
42502 echo "$as_me: failed program was:" >&5
42503 sed 's/^/| /' conftest.$ac_ext >&5
42504
42505 ( exit $ac_status )
42506 no_sdl=yes
42507 fi
42508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42509 fi
42510
42511
42512        CFLAGS="$ac_save_CFLAGS"
42513        CXXFLAGS="$ac_save_CXXFLAGS"
42514        LIBS="$ac_save_LIBS"
42515      fi
42516   fi
42517   if test "x$no_sdl" = x ; then
42518      { echo "$as_me:$LINENO: result: yes" >&5
42519 echo "${ECHO_T}yes" >&6; }
42520
42521                     EXTRALIBS_SDL="$SDL_LIBS"
42522                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42523                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42524                     cat >>confdefs.h <<\_ACEOF
42525 #define wxUSE_LIBSDL 1
42526 _ACEOF
42527
42528
42529   else
42530      { echo "$as_me:$LINENO: result: no" >&5
42531 echo "${ECHO_T}no" >&6; }
42532      if test "$SDL_CONFIG" = "no" ; then
42533        echo "*** The sdl-config script installed by SDL could not be found"
42534        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42535        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42536        echo "*** full path to sdl-config."
42537      else
42538        if test -f conf.sdltest ; then
42539         :
42540        else
42541           echo "*** Could not run SDL test program, checking why..."
42542           CFLAGS="$CFLAGS $SDL_CFLAGS"
42543           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42544           LIBS="$LIBS $SDL_LIBS"
42545           cat >conftest.$ac_ext <<_ACEOF
42546 /* confdefs.h.  */
42547 _ACEOF
42548 cat confdefs.h >>conftest.$ac_ext
42549 cat >>conftest.$ac_ext <<_ACEOF
42550 /* end confdefs.h.  */
42551
42552 #include <stdio.h>
42553 #include "SDL.h"
42554
42555 int main(int argc, char *argv[])
42556 { return 0; }
42557 #undef  main
42558 #define main K_and_R_C_main
42559
42560 int
42561 main ()
42562 {
42563  return 0;
42564   ;
42565   return 0;
42566 }
42567 _ACEOF
42568 rm -f conftest.$ac_objext conftest$ac_exeext
42569 if { (ac_try="$ac_link"
42570 case "(($ac_try" in
42571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42572   *) ac_try_echo=$ac_try;;
42573 esac
42574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42575   (eval "$ac_link") 2>conftest.er1
42576   ac_status=$?
42577   grep -v '^ *+' conftest.er1 >conftest.err
42578   rm -f conftest.er1
42579   cat conftest.err >&5
42580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581   (exit $ac_status); } && {
42582          test -z "$ac_c_werror_flag" ||
42583          test ! -s conftest.err
42584        } && test -s conftest$ac_exeext &&
42585        $as_test_x conftest$ac_exeext; then
42586    echo "*** The test program compiled, but did not run. This usually means"
42587           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42588           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42589           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42590           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42591           echo "*** is required on your system"
42592           echo "***"
42593           echo "*** If you have an old version installed, it is best to remove it, although"
42594           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42595 else
42596   echo "$as_me: failed program was:" >&5
42597 sed 's/^/| /' conftest.$ac_ext >&5
42598
42599          echo "*** The test program failed to compile or link. See the file config.log for the"
42600           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42601           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42602           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42603 fi
42604
42605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42606       conftest$ac_exeext conftest.$ac_ext
42607           CFLAGS="$ac_save_CFLAGS"
42608           CXXFLAGS="$ac_save_CXXFLAGS"
42609           LIBS="$ac_save_LIBS"
42610        fi
42611      fi
42612      SDL_CFLAGS=""
42613      SDL_LIBS=""
42614      wxUSE_LIBSDL="no"
42615   fi
42616
42617
42618   rm -f conf.sdltest
42619
42620       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42621         WITH_PLUGIN_SDL=1
42622       fi
42623     fi
42624   else
42625         if test "$wxUSE_MGL" = 1; then
42626         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42627 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42628         wxUSE_SOUND="no"
42629     fi
42630   fi
42631 fi
42632
42633 if test "$wxUSE_SOUND" = "yes"; then
42634   cat >>confdefs.h <<\_ACEOF
42635 #define wxUSE_SOUND 1
42636 _ACEOF
42637
42638   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42639 fi
42640
42641 if test "$WXGTK2" = 1; then
42642
42643
42644 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42645         if test -n "$ac_tool_prefix"; then
42646   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42647 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42651   echo $ECHO_N "(cached) $ECHO_C" >&6
42652 else
42653   case $PKG_CONFIG in
42654   [\\/]* | ?:[\\/]*)
42655   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42656   ;;
42657   *)
42658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42659 for as_dir in $PATH
42660 do
42661   IFS=$as_save_IFS
42662   test -z "$as_dir" && as_dir=.
42663   for ac_exec_ext in '' $ac_executable_extensions; do
42664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42665     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42667     break 2
42668   fi
42669 done
42670 done
42671 IFS=$as_save_IFS
42672
42673   ;;
42674 esac
42675 fi
42676 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42677 if test -n "$PKG_CONFIG"; then
42678   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42679 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42680 else
42681   { echo "$as_me:$LINENO: result: no" >&5
42682 echo "${ECHO_T}no" >&6; }
42683 fi
42684
42685
42686 fi
42687 if test -z "$ac_cv_path_PKG_CONFIG"; then
42688   ac_pt_PKG_CONFIG=$PKG_CONFIG
42689   # Extract the first word of "pkg-config", so it can be a program name with args.
42690 set dummy pkg-config; ac_word=$2
42691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42693 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42694   echo $ECHO_N "(cached) $ECHO_C" >&6
42695 else
42696   case $ac_pt_PKG_CONFIG in
42697   [\\/]* | ?:[\\/]*)
42698   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42699   ;;
42700   *)
42701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42702 for as_dir in $PATH
42703 do
42704   IFS=$as_save_IFS
42705   test -z "$as_dir" && as_dir=.
42706   for ac_exec_ext in '' $ac_executable_extensions; do
42707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42708     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42710     break 2
42711   fi
42712 done
42713 done
42714 IFS=$as_save_IFS
42715
42716   ;;
42717 esac
42718 fi
42719 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42720 if test -n "$ac_pt_PKG_CONFIG"; then
42721   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42722 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42723 else
42724   { echo "$as_me:$LINENO: result: no" >&5
42725 echo "${ECHO_T}no" >&6; }
42726 fi
42727
42728   if test "x$ac_pt_PKG_CONFIG" = x; then
42729     PKG_CONFIG=""
42730   else
42731     case $cross_compiling:$ac_tool_warned in
42732 yes:)
42733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42734 whose name does not start with the host triplet.  If you think this
42735 configuration is useful to you, please write to autoconf@gnu.org." >&5
42736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42737 whose name does not start with the host triplet.  If you think this
42738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42739 ac_tool_warned=yes ;;
42740 esac
42741     PKG_CONFIG=$ac_pt_PKG_CONFIG
42742   fi
42743 else
42744   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42745 fi
42746
42747 fi
42748 if test -n "$PKG_CONFIG"; then
42749         _pkg_min_version=0.9.0
42750         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42751 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42752         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42753                 { echo "$as_me:$LINENO: result: yes" >&5
42754 echo "${ECHO_T}yes" >&6; }
42755         else
42756                 { echo "$as_me:$LINENO: result: no" >&5
42757 echo "${ECHO_T}no" >&6; }
42758                 PKG_CONFIG=""
42759         fi
42760
42761 fi
42762
42763     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42764
42765         if test "$wxUSE_GTKPRINT" = "yes" ; then
42766
42767
42768 pkg_failed=no
42769 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42770 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42771
42772 if test -n "$PKG_CONFIG"; then
42773     if test -n "$GTKPRINT_CFLAGS"; then
42774         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42775     else
42776         if test -n "$PKG_CONFIG" && \
42777     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42778   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42779   ac_status=$?
42780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42781   (exit $ac_status); }; then
42782   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42783 else
42784   pkg_failed=yes
42785 fi
42786     fi
42787 else
42788         pkg_failed=untried
42789 fi
42790 if test -n "$PKG_CONFIG"; then
42791     if test -n "$GTKPRINT_LIBS"; then
42792         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42793     else
42794         if test -n "$PKG_CONFIG" && \
42795     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42796   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42797   ac_status=$?
42798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799   (exit $ac_status); }; then
42800   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42801 else
42802   pkg_failed=yes
42803 fi
42804     fi
42805 else
42806         pkg_failed=untried
42807 fi
42808
42809
42810
42811 if test $pkg_failed = yes; then
42812
42813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42814         _pkg_short_errors_supported=yes
42815 else
42816         _pkg_short_errors_supported=no
42817 fi
42818         if test $_pkg_short_errors_supported = yes; then
42819                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42820         else
42821                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42822         fi
42823         # Put the nasty error message in config.log where it belongs
42824         echo "$GTKPRINT_PKG_ERRORS" >&5
42825
42826
42827                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42828 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42829                         wxUSE_GTKPRINT="no"
42830
42831
42832 elif test $pkg_failed = untried; then
42833
42834                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42835 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42836                         wxUSE_GTKPRINT="no"
42837
42838
42839 else
42840         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42841         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42842         { echo "$as_me:$LINENO: result: yes" >&5
42843 echo "${ECHO_T}yes" >&6; }
42844
42845                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42846                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42847                         cat >>confdefs.h <<\_ACEOF
42848 #define wxUSE_GTKPRINT 1
42849 _ACEOF
42850
42851
42852 fi
42853         fi
42854
42855         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42856
42857
42858 pkg_failed=no
42859 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42860 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42861
42862 if test -n "$PKG_CONFIG"; then
42863     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42864         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42865     else
42866         if test -n "$PKG_CONFIG" && \
42867     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42868   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42869   ac_status=$?
42870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42871   (exit $ac_status); }; then
42872   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42873 else
42874   pkg_failed=yes
42875 fi
42876     fi
42877 else
42878         pkg_failed=untried
42879 fi
42880 if test -n "$PKG_CONFIG"; then
42881     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42882         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42883     else
42884         if test -n "$PKG_CONFIG" && \
42885     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42886   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42887   ac_status=$?
42888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42889   (exit $ac_status); }; then
42890   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42891 else
42892   pkg_failed=yes
42893 fi
42894     fi
42895 else
42896         pkg_failed=untried
42897 fi
42898
42899
42900
42901 if test $pkg_failed = yes; then
42902
42903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42904         _pkg_short_errors_supported=yes
42905 else
42906         _pkg_short_errors_supported=no
42907 fi
42908         if test $_pkg_short_errors_supported = yes; then
42909                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42910         else
42911                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42912         fi
42913         # Put the nasty error message in config.log where it belongs
42914         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42915
42916
42917                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42918 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42919                         wxUSE_LIBGNOMEPRINT="no"
42920
42921
42922 elif test $pkg_failed = untried; then
42923
42924                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42925 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42926                         wxUSE_LIBGNOMEPRINT="no"
42927
42928
42929 else
42930         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42931         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42932         { echo "$as_me:$LINENO: result: yes" >&5
42933 echo "${ECHO_T}yes" >&6; }
42934
42935                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42936                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42937                         cat >>confdefs.h <<\_ACEOF
42938 #define wxUSE_LIBGNOMEPRINT 1
42939 _ACEOF
42940
42941
42942 fi
42943         fi
42944     fi
42945
42946     if test "$wxUSE_MIMETYPE" = "yes" ; then
42947         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42948
42949
42950 pkg_failed=no
42951 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42952 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42953
42954 if test -n "$PKG_CONFIG"; then
42955     if test -n "$GNOMEVFS_CFLAGS"; then
42956         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42957     else
42958         if test -n "$PKG_CONFIG" && \
42959     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42960   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42961   ac_status=$?
42962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963   (exit $ac_status); }; then
42964   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42965 else
42966   pkg_failed=yes
42967 fi
42968     fi
42969 else
42970         pkg_failed=untried
42971 fi
42972 if test -n "$PKG_CONFIG"; then
42973     if test -n "$GNOMEVFS_LIBS"; then
42974         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42975     else
42976         if test -n "$PKG_CONFIG" && \
42977     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42978   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42979   ac_status=$?
42980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981   (exit $ac_status); }; then
42982   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42983 else
42984   pkg_failed=yes
42985 fi
42986     fi
42987 else
42988         pkg_failed=untried
42989 fi
42990
42991
42992
42993 if test $pkg_failed = yes; then
42994
42995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42996         _pkg_short_errors_supported=yes
42997 else
42998         _pkg_short_errors_supported=no
42999 fi
43000         if test $_pkg_short_errors_supported = yes; then
43001                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43002         else
43003                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43004         fi
43005         # Put the nasty error message in config.log where it belongs
43006         echo "$GNOMEVFS_PKG_ERRORS" >&5
43007
43008
43009                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43010 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43011                         wxUSE_LIBGNOMEVFS="no"
43012
43013
43014 elif test $pkg_failed = untried; then
43015
43016                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43017 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43018                         wxUSE_LIBGNOMEVFS="no"
43019
43020
43021 else
43022         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43023         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43024         { echo "$as_me:$LINENO: result: yes" >&5
43025 echo "${ECHO_T}yes" >&6; }
43026
43027                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43028                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43029                         cat >>confdefs.h <<\_ACEOF
43030 #define wxUSE_LIBGNOMEVFS 1
43031 _ACEOF
43032
43033
43034 fi
43035         fi
43036     fi
43037
43038     if test "$wxUSE_LIBHILDON" = "yes" ; then
43039
43040 pkg_failed=no
43041 { echo "$as_me:$LINENO: checking for HILDON" >&5
43042 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43043
43044 if test -n "$PKG_CONFIG"; then
43045     if test -n "$HILDON_CFLAGS"; then
43046         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43047     else
43048         if test -n "$PKG_CONFIG" && \
43049     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43050   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43051   ac_status=$?
43052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43053   (exit $ac_status); }; then
43054   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43055 else
43056   pkg_failed=yes
43057 fi
43058     fi
43059 else
43060         pkg_failed=untried
43061 fi
43062 if test -n "$PKG_CONFIG"; then
43063     if test -n "$HILDON_LIBS"; then
43064         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43065     else
43066         if test -n "$PKG_CONFIG" && \
43067     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43068   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43069   ac_status=$?
43070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071   (exit $ac_status); }; then
43072   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43073 else
43074   pkg_failed=yes
43075 fi
43076     fi
43077 else
43078         pkg_failed=untried
43079 fi
43080
43081
43082
43083 if test $pkg_failed = yes; then
43084
43085 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43086         _pkg_short_errors_supported=yes
43087 else
43088         _pkg_short_errors_supported=no
43089 fi
43090         if test $_pkg_short_errors_supported = yes; then
43091                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43092         else
43093                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43094         fi
43095         # Put the nasty error message in config.log where it belongs
43096         echo "$HILDON_PKG_ERRORS" >&5
43097
43098
43099                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43100 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43101                         wxUSE_LIBHILDON="no"
43102
43103
43104 elif test $pkg_failed = untried; then
43105
43106                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43107 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43108                         wxUSE_LIBHILDON="no"
43109
43110
43111 else
43112         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43113         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43114         { echo "$as_me:$LINENO: result: yes" >&5
43115 echo "${ECHO_T}yes" >&6; }
43116
43117                 EXTRALIBS_HILDON="$HILDON_LIBS"
43118                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43119                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43120                 cat >>confdefs.h <<\_ACEOF
43121 #define wxUSE_LIBHILDON 1
43122 _ACEOF
43123
43124
43125 fi
43126     fi
43127 fi
43128
43129 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43130   cat >>confdefs.h <<\_ACEOF
43131 #define wxUSE_CMDLINE_PARSER 1
43132 _ACEOF
43133
43134 fi
43135
43136 if test "$wxUSE_STOPWATCH" = "yes"; then
43137   cat >>confdefs.h <<\_ACEOF
43138 #define wxUSE_STOPWATCH 1
43139 _ACEOF
43140
43141 fi
43142
43143 if test "$wxUSE_DATETIME" = "yes"; then
43144   cat >>confdefs.h <<\_ACEOF
43145 #define wxUSE_DATETIME 1
43146 _ACEOF
43147
43148 fi
43149
43150 if test "$wxUSE_FILE" = "yes"; then
43151   cat >>confdefs.h <<\_ACEOF
43152 #define wxUSE_FILE 1
43153 _ACEOF
43154
43155 fi
43156
43157 if test "$wxUSE_FFILE" = "yes"; then
43158   cat >>confdefs.h <<\_ACEOF
43159 #define wxUSE_FFILE 1
43160 _ACEOF
43161
43162 fi
43163
43164 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43165   if test "$wxUSE_STREAMS" != yes; then
43166     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43167 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43168     wxUSE_ARCHIVE_STREAMS=no
43169   else
43170     cat >>confdefs.h <<\_ACEOF
43171 #define wxUSE_ARCHIVE_STREAMS 1
43172 _ACEOF
43173
43174   fi
43175 fi
43176
43177 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43178   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43179     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43180 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43181   elif test "$wxUSE_ZLIB" = "no"; then
43182     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43183 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43184   else
43185     cat >>confdefs.h <<\_ACEOF
43186 #define wxUSE_ZIPSTREAM 1
43187 _ACEOF
43188
43189   fi
43190 fi
43191
43192 if test "$wxUSE_TARSTREAM" = "yes"; then
43193   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43194     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43195 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43196   else
43197     cat >>confdefs.h <<\_ACEOF
43198 #define wxUSE_TARSTREAM 1
43199 _ACEOF
43200
43201   fi
43202 fi
43203
43204 if test "$wxUSE_FILESYSTEM" = "yes"; then
43205   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43206     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43207 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43208     wxUSE_FILESYSTEM=no
43209   else
43210     cat >>confdefs.h <<\_ACEOF
43211 #define wxUSE_FILESYSTEM 1
43212 _ACEOF
43213
43214   fi
43215 fi
43216
43217 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43218   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43219     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43220 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43221   else
43222     cat >>confdefs.h <<\_ACEOF
43223 #define wxUSE_FS_ARCHIVE 1
43224 _ACEOF
43225
43226   fi
43227 fi
43228
43229 if test "$wxUSE_FS_ZIP" = "yes"; then
43230   if test "$wxUSE_FS_ARCHIVE" != yes; then
43231     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43232 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43233   else
43234     cat >>confdefs.h <<\_ACEOF
43235 #define wxUSE_FS_ZIP 1
43236 _ACEOF
43237
43238   fi
43239 fi
43240
43241 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43242   if test "$USE_UNIX" != 1; then
43243     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43244 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43245     wxUSE_ON_FATAL_EXCEPTION=no
43246   else
43247     cat >>confdefs.h <<\_ACEOF
43248 #define wxUSE_ON_FATAL_EXCEPTION 1
43249 _ACEOF
43250
43251   fi
43252 fi
43253
43254 if test "$wxUSE_STACKWALKER" = "yes"; then
43255     cat >>confdefs.h <<\_ACEOF
43256 #define wxUSE_STACKWALKER 1
43257 _ACEOF
43258
43259 fi
43260
43261 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43262     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43263         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43264 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43265         wxUSE_DEBUGREPORT=no
43266     else
43267         cat >>confdefs.h <<\_ACEOF
43268 #define wxUSE_DEBUGREPORT 1
43269 _ACEOF
43270
43271         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43272             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43273         fi
43274     fi
43275 fi
43276
43277 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43278   cat >>confdefs.h <<\_ACEOF
43279 #define wxUSE_SNGLINST_CHECKER 1
43280 _ACEOF
43281
43282 fi
43283
43284 if test "$wxUSE_BUSYINFO" = "yes"; then
43285   cat >>confdefs.h <<\_ACEOF
43286 #define wxUSE_BUSYINFO 1
43287 _ACEOF
43288
43289 fi
43290
43291 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43292   cat >>confdefs.h <<\_ACEOF
43293 #define wxUSE_STD_IOSTREAM 1
43294 _ACEOF
43295
43296 fi
43297
43298 if test "$wxUSE_STD_STRING" = "yes"; then
43299   cat >>confdefs.h <<\_ACEOF
43300 #define wxUSE_STD_STRING 1
43301 _ACEOF
43302
43303 fi
43304
43305 if test "$wxUSE_STDPATHS" = "yes"; then
43306   cat >>confdefs.h <<\_ACEOF
43307 #define wxUSE_STDPATHS 1
43308 _ACEOF
43309
43310 fi
43311
43312 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43313     cat >>confdefs.h <<\_ACEOF
43314 #define wxUSE_TEXTBUFFER 1
43315 _ACEOF
43316
43317 fi
43318
43319 if test "$wxUSE_TEXTFILE" = "yes"; then
43320   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43321     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43322 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43323   else
43324     cat >>confdefs.h <<\_ACEOF
43325 #define wxUSE_TEXTFILE 1
43326 _ACEOF
43327
43328   fi
43329 fi
43330
43331 if test "$wxUSE_CONFIG" = "yes" ; then
43332   if test "$wxUSE_TEXTFILE" != "yes"; then
43333     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43334 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43335   else
43336     cat >>confdefs.h <<\_ACEOF
43337 #define wxUSE_CONFIG 1
43338 _ACEOF
43339
43340     cat >>confdefs.h <<\_ACEOF
43341 #define wxUSE_CONFIG_NATIVE 1
43342 _ACEOF
43343
43344     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43345   fi
43346 fi
43347
43348 if test "$wxUSE_INTL" = "yes" ; then
43349   if test "$wxUSE_FILE" != "yes"; then
43350     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43351 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43352   else
43353     cat >>confdefs.h <<\_ACEOF
43354 #define wxUSE_INTL 1
43355 _ACEOF
43356
43357     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43358     GUIDIST="$GUIDIST INTL_DIST"
43359   fi
43360 fi
43361
43362 if test "$wxUSE_XLOCALE" = "yes" ; then
43363     cat >>confdefs.h <<\_ACEOF
43364 #define wxUSE_XLOCALE 1
43365 _ACEOF
43366
43367     { echo "$as_me:$LINENO: checking for locale_t" >&5
43368 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43369 if test "${ac_cv_type_locale_t+set}" = set; then
43370   echo $ECHO_N "(cached) $ECHO_C" >&6
43371 else
43372   cat >conftest.$ac_ext <<_ACEOF
43373 /* confdefs.h.  */
43374 _ACEOF
43375 cat confdefs.h >>conftest.$ac_ext
43376 cat >>conftest.$ac_ext <<_ACEOF
43377 /* end confdefs.h.  */
43378 #include <xlocale.h>
43379                     #include <locale.h>
43380
43381 typedef locale_t ac__type_new_;
43382 int
43383 main ()
43384 {
43385 if ((ac__type_new_ *) 0)
43386   return 0;
43387 if (sizeof (ac__type_new_))
43388   return 0;
43389   ;
43390   return 0;
43391 }
43392 _ACEOF
43393 rm -f conftest.$ac_objext
43394 if { (ac_try="$ac_compile"
43395 case "(($ac_try" in
43396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43397   *) ac_try_echo=$ac_try;;
43398 esac
43399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43400   (eval "$ac_compile") 2>conftest.er1
43401   ac_status=$?
43402   grep -v '^ *+' conftest.er1 >conftest.err
43403   rm -f conftest.er1
43404   cat conftest.err >&5
43405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43406   (exit $ac_status); } && {
43407          test -z "$ac_c_werror_flag" ||
43408          test ! -s conftest.err
43409        } && test -s conftest.$ac_objext; then
43410   ac_cv_type_locale_t=yes
43411 else
43412   echo "$as_me: failed program was:" >&5
43413 sed 's/^/| /' conftest.$ac_ext >&5
43414
43415         ac_cv_type_locale_t=no
43416 fi
43417
43418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43419 fi
43420 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43421 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43422 if test $ac_cv_type_locale_t = yes; then
43423
43424 cat >>confdefs.h <<_ACEOF
43425 #define HAVE_LOCALE_T 1
43426 _ACEOF
43427
43428
43429 fi
43430
43431 fi
43432
43433 if test "$wxUSE_LOG" = "yes"; then
43434   cat >>confdefs.h <<\_ACEOF
43435 #define wxUSE_LOG 1
43436 _ACEOF
43437
43438
43439     if test "$wxUSE_LOGGUI" = "yes"; then
43440       cat >>confdefs.h <<\_ACEOF
43441 #define wxUSE_LOGGUI 1
43442 _ACEOF
43443
43444     fi
43445
43446     if test "$wxUSE_LOGWINDOW" = "yes"; then
43447       cat >>confdefs.h <<\_ACEOF
43448 #define wxUSE_LOGWINDOW 1
43449 _ACEOF
43450
43451     fi
43452
43453     if test "$wxUSE_LOGDIALOG" = "yes"; then
43454       cat >>confdefs.h <<\_ACEOF
43455 #define wxUSE_LOG_DIALOG 1
43456 _ACEOF
43457
43458     fi
43459
43460         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43461 fi
43462
43463 if test "$wxUSE_LONGLONG" = "yes"; then
43464   cat >>confdefs.h <<\_ACEOF
43465 #define wxUSE_LONGLONG 1
43466 _ACEOF
43467
43468 fi
43469
43470 if test "$wxUSE_GEOMETRY" = "yes"; then
43471   cat >>confdefs.h <<\_ACEOF
43472 #define wxUSE_GEOMETRY 1
43473 _ACEOF
43474
43475 fi
43476
43477 if test "$wxUSE_BASE64" = "yes"; then
43478   cat >>confdefs.h <<\_ACEOF
43479 #define wxUSE_BASE64 1
43480 _ACEOF
43481
43482 fi
43483
43484 if test "$wxUSE_STREAMS" = "yes" ; then
43485   cat >>confdefs.h <<\_ACEOF
43486 #define wxUSE_STREAMS 1
43487 _ACEOF
43488
43489 fi
43490
43491 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43492   cat >>confdefs.h <<\_ACEOF
43493 #define wxUSE_PRINTF_POS_PARAMS 1
43494 _ACEOF
43495
43496 fi
43497
43498 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43499   cat >>confdefs.h <<\_ACEOF
43500 #define wxUSE_OBJC_UNIQUIFYING 1
43501 _ACEOF
43502
43503 fi
43504
43505
43506 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43507     cat >>confdefs.h <<\_ACEOF
43508 #define wxUSE_CONSOLE_EVENTLOOP 1
43509 _ACEOF
43510
43511
43512     if test "$wxUSE_UNIX" = "yes"; then
43513         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43514             cat >>confdefs.h <<\_ACEOF
43515 #define wxUSE_SELECT_DISPATCHER 1
43516 _ACEOF
43517
43518         fi
43519
43520         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43521
43522 for ac_header in sys/epoll.h
43523 do
43524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43528   echo $ECHO_N "(cached) $ECHO_C" >&6
43529 else
43530   cat >conftest.$ac_ext <<_ACEOF
43531 /* confdefs.h.  */
43532 _ACEOF
43533 cat confdefs.h >>conftest.$ac_ext
43534 cat >>conftest.$ac_ext <<_ACEOF
43535 /* end confdefs.h.  */
43536 $ac_includes_default
43537
43538 #include <$ac_header>
43539 _ACEOF
43540 rm -f conftest.$ac_objext
43541 if { (ac_try="$ac_compile"
43542 case "(($ac_try" in
43543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43544   *) ac_try_echo=$ac_try;;
43545 esac
43546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43547   (eval "$ac_compile") 2>conftest.er1
43548   ac_status=$?
43549   grep -v '^ *+' conftest.er1 >conftest.err
43550   rm -f conftest.er1
43551   cat conftest.err >&5
43552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553   (exit $ac_status); } && {
43554          test -z "$ac_c_werror_flag" ||
43555          test ! -s conftest.err
43556        } && test -s conftest.$ac_objext; then
43557   eval "$as_ac_Header=yes"
43558 else
43559   echo "$as_me: failed program was:" >&5
43560 sed 's/^/| /' conftest.$ac_ext >&5
43561
43562         eval "$as_ac_Header=no"
43563 fi
43564
43565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43566 fi
43567 ac_res=`eval echo '${'$as_ac_Header'}'`
43568                { echo "$as_me:$LINENO: result: $ac_res" >&5
43569 echo "${ECHO_T}$ac_res" >&6; }
43570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43571   cat >>confdefs.h <<_ACEOF
43572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43573 _ACEOF
43574
43575 fi
43576
43577 done
43578
43579             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43580                 cat >>confdefs.h <<\_ACEOF
43581 #define wxUSE_EPOLL_DISPATCHER 1
43582 _ACEOF
43583
43584             else
43585                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43586 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43587             fi
43588         fi
43589     fi
43590 fi
43591
43592
43593
43594
43595 for ac_func in gettimeofday ftime
43596 do
43597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43601   echo $ECHO_N "(cached) $ECHO_C" >&6
43602 else
43603   cat >conftest.$ac_ext <<_ACEOF
43604 /* confdefs.h.  */
43605 _ACEOF
43606 cat confdefs.h >>conftest.$ac_ext
43607 cat >>conftest.$ac_ext <<_ACEOF
43608 /* end confdefs.h.  */
43609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43611 #define $ac_func innocuous_$ac_func
43612
43613 /* System header to define __stub macros and hopefully few prototypes,
43614     which can conflict with char $ac_func (); below.
43615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43616     <limits.h> exists even on freestanding compilers.  */
43617
43618 #ifdef __STDC__
43619 # include <limits.h>
43620 #else
43621 # include <assert.h>
43622 #endif
43623
43624 #undef $ac_func
43625
43626 /* Override any GCC internal prototype to avoid an error.
43627    Use char because int might match the return type of a GCC
43628    builtin and then its argument prototype would still apply.  */
43629 #ifdef __cplusplus
43630 extern "C"
43631 #endif
43632 char $ac_func ();
43633 /* The GNU C library defines this for functions which it implements
43634     to always fail with ENOSYS.  Some functions are actually named
43635     something starting with __ and the normal name is an alias.  */
43636 #if defined __stub_$ac_func || defined __stub___$ac_func
43637 choke me
43638 #endif
43639
43640 int
43641 main ()
43642 {
43643 return $ac_func ();
43644   ;
43645   return 0;
43646 }
43647 _ACEOF
43648 rm -f conftest.$ac_objext conftest$ac_exeext
43649 if { (ac_try="$ac_link"
43650 case "(($ac_try" in
43651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43652   *) ac_try_echo=$ac_try;;
43653 esac
43654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43655   (eval "$ac_link") 2>conftest.er1
43656   ac_status=$?
43657   grep -v '^ *+' conftest.er1 >conftest.err
43658   rm -f conftest.er1
43659   cat conftest.err >&5
43660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661   (exit $ac_status); } && {
43662          test -z "$ac_c_werror_flag" ||
43663          test ! -s conftest.err
43664        } && test -s conftest$ac_exeext &&
43665        $as_test_x conftest$ac_exeext; then
43666   eval "$as_ac_var=yes"
43667 else
43668   echo "$as_me: failed program was:" >&5
43669 sed 's/^/| /' conftest.$ac_ext >&5
43670
43671         eval "$as_ac_var=no"
43672 fi
43673
43674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43675       conftest$ac_exeext conftest.$ac_ext
43676 fi
43677 ac_res=`eval echo '${'$as_ac_var'}'`
43678                { echo "$as_me:$LINENO: result: $ac_res" >&5
43679 echo "${ECHO_T}$ac_res" >&6; }
43680 if test `eval echo '${'$as_ac_var'}'` = yes; then
43681   cat >>confdefs.h <<_ACEOF
43682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43683 _ACEOF
43684  break
43685 fi
43686 done
43687
43688
43689 if test "$ac_cv_func_gettimeofday" = "yes"; then
43690     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43691 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43692 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43693   echo $ECHO_N "(cached) $ECHO_C" >&6
43694 else
43695
43696                 cat >conftest.$ac_ext <<_ACEOF
43697 /* confdefs.h.  */
43698 _ACEOF
43699 cat confdefs.h >>conftest.$ac_ext
43700 cat >>conftest.$ac_ext <<_ACEOF
43701 /* end confdefs.h.  */
43702
43703                 #include <sys/time.h>
43704                 #include <unistd.h>
43705
43706 int
43707 main ()
43708 {
43709
43710                 struct timeval tv;
43711                 gettimeofday(&tv, NULL);
43712
43713   ;
43714   return 0;
43715 }
43716 _ACEOF
43717 rm -f conftest.$ac_objext
43718 if { (ac_try="$ac_compile"
43719 case "(($ac_try" in
43720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43721   *) ac_try_echo=$ac_try;;
43722 esac
43723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43724   (eval "$ac_compile") 2>conftest.er1
43725   ac_status=$?
43726   grep -v '^ *+' conftest.er1 >conftest.err
43727   rm -f conftest.er1
43728   cat conftest.err >&5
43729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43730   (exit $ac_status); } && {
43731          test -z "$ac_c_werror_flag" ||
43732          test ! -s conftest.err
43733        } && test -s conftest.$ac_objext; then
43734   wx_cv_func_gettimeofday_has_2_args=yes
43735 else
43736   echo "$as_me: failed program was:" >&5
43737 sed 's/^/| /' conftest.$ac_ext >&5
43738
43739         cat >conftest.$ac_ext <<_ACEOF
43740 /* confdefs.h.  */
43741 _ACEOF
43742 cat confdefs.h >>conftest.$ac_ext
43743 cat >>conftest.$ac_ext <<_ACEOF
43744 /* end confdefs.h.  */
43745
43746                     #include <sys/time.h>
43747                     #include <unistd.h>
43748
43749 int
43750 main ()
43751 {
43752
43753                     struct timeval tv;
43754                     gettimeofday(&tv);
43755
43756   ;
43757   return 0;
43758 }
43759 _ACEOF
43760 rm -f conftest.$ac_objext
43761 if { (ac_try="$ac_compile"
43762 case "(($ac_try" in
43763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43764   *) ac_try_echo=$ac_try;;
43765 esac
43766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43767   (eval "$ac_compile") 2>conftest.er1
43768   ac_status=$?
43769   grep -v '^ *+' conftest.er1 >conftest.err
43770   rm -f conftest.er1
43771   cat conftest.err >&5
43772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773   (exit $ac_status); } && {
43774          test -z "$ac_c_werror_flag" ||
43775          test ! -s conftest.err
43776        } && test -s conftest.$ac_objext; then
43777   wx_cv_func_gettimeofday_has_2_args=no
43778 else
43779   echo "$as_me: failed program was:" >&5
43780 sed 's/^/| /' conftest.$ac_ext >&5
43781
43782
43783                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43784 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43785                     wx_cv_func_gettimeofday_has_2_args=unknown
43786
43787
43788 fi
43789
43790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43791
43792 fi
43793
43794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43795
43796 fi
43797 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43798 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43799
43800     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43801         cat >>confdefs.h <<\_ACEOF
43802 #define WX_GETTIMEOFDAY_NO_TZ 1
43803 _ACEOF
43804
43805     fi
43806 fi
43807
43808 if test "$wxUSE_DATETIME" = "yes"; then
43809             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43810 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43811 if test "${wx_cv_var_timezone+set}" = set; then
43812   echo $ECHO_N "(cached) $ECHO_C" >&6
43813 else
43814
43815                         ac_ext=cpp
43816 ac_cpp='$CXXCPP $CPPFLAGS'
43817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43820
43821                         cat >conftest.$ac_ext <<_ACEOF
43822 /* confdefs.h.  */
43823 _ACEOF
43824 cat confdefs.h >>conftest.$ac_ext
43825 cat >>conftest.$ac_ext <<_ACEOF
43826 /* end confdefs.h.  */
43827
43828                                 #include <time.h>
43829
43830 int
43831 main ()
43832 {
43833
43834                                 int tz;
43835                                 tz = timezone;
43836
43837   ;
43838   return 0;
43839 }
43840 _ACEOF
43841 rm -f conftest.$ac_objext
43842 if { (ac_try="$ac_compile"
43843 case "(($ac_try" in
43844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43845   *) ac_try_echo=$ac_try;;
43846 esac
43847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43848   (eval "$ac_compile") 2>conftest.er1
43849   ac_status=$?
43850   grep -v '^ *+' conftest.er1 >conftest.err
43851   rm -f conftest.er1
43852   cat conftest.err >&5
43853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854   (exit $ac_status); } && {
43855          test -z "$ac_cxx_werror_flag" ||
43856          test ! -s conftest.err
43857        } && test -s conftest.$ac_objext; then
43858
43859                                 wx_cv_var_timezone=timezone
43860
43861 else
43862   echo "$as_me: failed program was:" >&5
43863 sed 's/^/| /' conftest.$ac_ext >&5
43864
43865
43866                                 cat >conftest.$ac_ext <<_ACEOF
43867 /* confdefs.h.  */
43868 _ACEOF
43869 cat confdefs.h >>conftest.$ac_ext
43870 cat >>conftest.$ac_ext <<_ACEOF
43871 /* end confdefs.h.  */
43872
43873                                         #include <time.h>
43874
43875 int
43876 main ()
43877 {
43878
43879                                         int tz;
43880                                         tz = _timezone;
43881
43882   ;
43883   return 0;
43884 }
43885 _ACEOF
43886 rm -f conftest.$ac_objext
43887 if { (ac_try="$ac_compile"
43888 case "(($ac_try" in
43889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43890   *) ac_try_echo=$ac_try;;
43891 esac
43892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43893   (eval "$ac_compile") 2>conftest.er1
43894   ac_status=$?
43895   grep -v '^ *+' conftest.er1 >conftest.err
43896   rm -f conftest.er1
43897   cat conftest.err >&5
43898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43899   (exit $ac_status); } && {
43900          test -z "$ac_cxx_werror_flag" ||
43901          test ! -s conftest.err
43902        } && test -s conftest.$ac_objext; then
43903
43904                                         wx_cv_var_timezone=_timezone
43905
43906 else
43907   echo "$as_me: failed program was:" >&5
43908 sed 's/^/| /' conftest.$ac_ext >&5
43909
43910
43911                                         cat >conftest.$ac_ext <<_ACEOF
43912 /* confdefs.h.  */
43913 _ACEOF
43914 cat confdefs.h >>conftest.$ac_ext
43915 cat >>conftest.$ac_ext <<_ACEOF
43916 /* end confdefs.h.  */
43917
43918                                                 #include <time.h>
43919
43920 int
43921 main ()
43922 {
43923
43924                                                 int tz;
43925                                                 tz = __timezone;
43926
43927   ;
43928   return 0;
43929 }
43930 _ACEOF
43931 rm -f conftest.$ac_objext
43932 if { (ac_try="$ac_compile"
43933 case "(($ac_try" in
43934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43935   *) ac_try_echo=$ac_try;;
43936 esac
43937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43938   (eval "$ac_compile") 2>conftest.er1
43939   ac_status=$?
43940   grep -v '^ *+' conftest.er1 >conftest.err
43941   rm -f conftest.er1
43942   cat conftest.err >&5
43943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43944   (exit $ac_status); } && {
43945          test -z "$ac_cxx_werror_flag" ||
43946          test ! -s conftest.err
43947        } && test -s conftest.$ac_objext; then
43948
43949                                                 wx_cv_var_timezone=__timezone
43950
43951 else
43952   echo "$as_me: failed program was:" >&5
43953 sed 's/^/| /' conftest.$ac_ext >&5
43954
43955
43956                                                 if test "$USE_DOS" = 0 ; then
43957                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43958 echo "$as_me: WARNING: no timezone variable" >&2;}
43959                                                 fi
43960
43961
43962 fi
43963
43964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43965
43966
43967 fi
43968
43969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43970
43971
43972 fi
43973
43974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43975                         ac_ext=c
43976 ac_cpp='$CPP $CPPFLAGS'
43977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43980
43981
43982
43983 fi
43984 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43985 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43986
43987         if test "x$wx_cv_var_timezone" != x ; then
43988         cat >>confdefs.h <<_ACEOF
43989 #define WX_TIMEZONE $wx_cv_var_timezone
43990 _ACEOF
43991
43992     fi
43993
43994
43995 for ac_func in localtime
43996 do
43997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44001   echo $ECHO_N "(cached) $ECHO_C" >&6
44002 else
44003   cat >conftest.$ac_ext <<_ACEOF
44004 /* confdefs.h.  */
44005 _ACEOF
44006 cat confdefs.h >>conftest.$ac_ext
44007 cat >>conftest.$ac_ext <<_ACEOF
44008 /* end confdefs.h.  */
44009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44011 #define $ac_func innocuous_$ac_func
44012
44013 /* System header to define __stub macros and hopefully few prototypes,
44014     which can conflict with char $ac_func (); below.
44015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44016     <limits.h> exists even on freestanding compilers.  */
44017
44018 #ifdef __STDC__
44019 # include <limits.h>
44020 #else
44021 # include <assert.h>
44022 #endif
44023
44024 #undef $ac_func
44025
44026 /* Override any GCC internal prototype to avoid an error.
44027    Use char because int might match the return type of a GCC
44028    builtin and then its argument prototype would still apply.  */
44029 #ifdef __cplusplus
44030 extern "C"
44031 #endif
44032 char $ac_func ();
44033 /* The GNU C library defines this for functions which it implements
44034     to always fail with ENOSYS.  Some functions are actually named
44035     something starting with __ and the normal name is an alias.  */
44036 #if defined __stub_$ac_func || defined __stub___$ac_func
44037 choke me
44038 #endif
44039
44040 int
44041 main ()
44042 {
44043 return $ac_func ();
44044   ;
44045   return 0;
44046 }
44047 _ACEOF
44048 rm -f conftest.$ac_objext conftest$ac_exeext
44049 if { (ac_try="$ac_link"
44050 case "(($ac_try" in
44051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44052   *) ac_try_echo=$ac_try;;
44053 esac
44054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44055   (eval "$ac_link") 2>conftest.er1
44056   ac_status=$?
44057   grep -v '^ *+' conftest.er1 >conftest.err
44058   rm -f conftest.er1
44059   cat conftest.err >&5
44060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44061   (exit $ac_status); } && {
44062          test -z "$ac_c_werror_flag" ||
44063          test ! -s conftest.err
44064        } && test -s conftest$ac_exeext &&
44065        $as_test_x conftest$ac_exeext; then
44066   eval "$as_ac_var=yes"
44067 else
44068   echo "$as_me: failed program was:" >&5
44069 sed 's/^/| /' conftest.$ac_ext >&5
44070
44071         eval "$as_ac_var=no"
44072 fi
44073
44074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44075       conftest$ac_exeext conftest.$ac_ext
44076 fi
44077 ac_res=`eval echo '${'$as_ac_var'}'`
44078                { echo "$as_me:$LINENO: result: $ac_res" >&5
44079 echo "${ECHO_T}$ac_res" >&6; }
44080 if test `eval echo '${'$as_ac_var'}'` = yes; then
44081   cat >>confdefs.h <<_ACEOF
44082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44083 _ACEOF
44084
44085 fi
44086 done
44087
44088
44089     if test "$ac_cv_func_localtime" = "yes"; then
44090         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44091 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44092 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44093   echo $ECHO_N "(cached) $ECHO_C" >&6
44094 else
44095
44096             cat >conftest.$ac_ext <<_ACEOF
44097 /* confdefs.h.  */
44098 _ACEOF
44099 cat confdefs.h >>conftest.$ac_ext
44100 cat >>conftest.$ac_ext <<_ACEOF
44101 /* end confdefs.h.  */
44102
44103                     #include <time.h>
44104
44105 int
44106 main ()
44107 {
44108
44109                     struct tm tm;
44110                     tm.tm_gmtoff++;
44111
44112   ;
44113   return 0;
44114 }
44115 _ACEOF
44116 rm -f conftest.$ac_objext
44117 if { (ac_try="$ac_compile"
44118 case "(($ac_try" in
44119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44120   *) ac_try_echo=$ac_try;;
44121 esac
44122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44123   (eval "$ac_compile") 2>conftest.er1
44124   ac_status=$?
44125   grep -v '^ *+' conftest.er1 >conftest.err
44126   rm -f conftest.er1
44127   cat conftest.err >&5
44128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129   (exit $ac_status); } && {
44130          test -z "$ac_c_werror_flag" ||
44131          test ! -s conftest.err
44132        } && test -s conftest.$ac_objext; then
44133
44134                     wx_cv_struct_tm_has_gmtoff=yes
44135
44136 else
44137   echo "$as_me: failed program was:" >&5
44138 sed 's/^/| /' conftest.$ac_ext >&5
44139
44140         wx_cv_struct_tm_has_gmtoff=no
44141
44142 fi
44143
44144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44145
44146 fi
44147 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44148 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44149     fi
44150
44151     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44152         cat >>confdefs.h <<\_ACEOF
44153 #define WX_GMTOFF_IN_TM 1
44154 _ACEOF
44155
44156     fi
44157
44158     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44159 fi
44160
44161
44162 if test "$wxUSE_SOCKETS" = "yes"; then
44163     if test "$wxUSE_MGL" = 1; then
44164         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44165 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44166         wxUSE_SOCKETS="no"
44167     fi
44168 fi
44169
44170 if test "$wxUSE_SOCKETS" = "yes"; then
44171         if test "$TOOLKIT" != "MSW"; then
44172                 { echo "$as_me:$LINENO: checking for socket" >&5
44173 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44174 if test "${ac_cv_func_socket+set}" = set; then
44175   echo $ECHO_N "(cached) $ECHO_C" >&6
44176 else
44177   cat >conftest.$ac_ext <<_ACEOF
44178 /* confdefs.h.  */
44179 _ACEOF
44180 cat confdefs.h >>conftest.$ac_ext
44181 cat >>conftest.$ac_ext <<_ACEOF
44182 /* end confdefs.h.  */
44183 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44185 #define socket innocuous_socket
44186
44187 /* System header to define __stub macros and hopefully few prototypes,
44188     which can conflict with char socket (); below.
44189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44190     <limits.h> exists even on freestanding compilers.  */
44191
44192 #ifdef __STDC__
44193 # include <limits.h>
44194 #else
44195 # include <assert.h>
44196 #endif
44197
44198 #undef socket
44199
44200 /* Override any GCC internal prototype to avoid an error.
44201    Use char because int might match the return type of a GCC
44202    builtin and then its argument prototype would still apply.  */
44203 #ifdef __cplusplus
44204 extern "C"
44205 #endif
44206 char socket ();
44207 /* The GNU C library defines this for functions which it implements
44208     to always fail with ENOSYS.  Some functions are actually named
44209     something starting with __ and the normal name is an alias.  */
44210 #if defined __stub_socket || defined __stub___socket
44211 choke me
44212 #endif
44213
44214 int
44215 main ()
44216 {
44217 return socket ();
44218   ;
44219   return 0;
44220 }
44221 _ACEOF
44222 rm -f conftest.$ac_objext conftest$ac_exeext
44223 if { (ac_try="$ac_link"
44224 case "(($ac_try" in
44225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44226   *) ac_try_echo=$ac_try;;
44227 esac
44228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44229   (eval "$ac_link") 2>conftest.er1
44230   ac_status=$?
44231   grep -v '^ *+' conftest.er1 >conftest.err
44232   rm -f conftest.er1
44233   cat conftest.err >&5
44234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235   (exit $ac_status); } && {
44236          test -z "$ac_c_werror_flag" ||
44237          test ! -s conftest.err
44238        } && test -s conftest$ac_exeext &&
44239        $as_test_x conftest$ac_exeext; then
44240   ac_cv_func_socket=yes
44241 else
44242   echo "$as_me: failed program was:" >&5
44243 sed 's/^/| /' conftest.$ac_ext >&5
44244
44245         ac_cv_func_socket=no
44246 fi
44247
44248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44249       conftest$ac_exeext conftest.$ac_ext
44250 fi
44251 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44252 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44253 if test $ac_cv_func_socket = yes; then
44254   :
44255 else
44256
44257                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44258 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44259 if test "${ac_cv_lib_socket_socket+set}" = set; then
44260   echo $ECHO_N "(cached) $ECHO_C" >&6
44261 else
44262   ac_check_lib_save_LIBS=$LIBS
44263 LIBS="-lsocket  $LIBS"
44264 cat >conftest.$ac_ext <<_ACEOF
44265 /* confdefs.h.  */
44266 _ACEOF
44267 cat confdefs.h >>conftest.$ac_ext
44268 cat >>conftest.$ac_ext <<_ACEOF
44269 /* end confdefs.h.  */
44270
44271 /* Override any GCC internal prototype to avoid an error.
44272    Use char because int might match the return type of a GCC
44273    builtin and then its argument prototype would still apply.  */
44274 #ifdef __cplusplus
44275 extern "C"
44276 #endif
44277 char socket ();
44278 int
44279 main ()
44280 {
44281 return socket ();
44282   ;
44283   return 0;
44284 }
44285 _ACEOF
44286 rm -f conftest.$ac_objext conftest$ac_exeext
44287 if { (ac_try="$ac_link"
44288 case "(($ac_try" in
44289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44290   *) ac_try_echo=$ac_try;;
44291 esac
44292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44293   (eval "$ac_link") 2>conftest.er1
44294   ac_status=$?
44295   grep -v '^ *+' conftest.er1 >conftest.err
44296   rm -f conftest.er1
44297   cat conftest.err >&5
44298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44299   (exit $ac_status); } && {
44300          test -z "$ac_c_werror_flag" ||
44301          test ! -s conftest.err
44302        } && test -s conftest$ac_exeext &&
44303        $as_test_x conftest$ac_exeext; then
44304   ac_cv_lib_socket_socket=yes
44305 else
44306   echo "$as_me: failed program was:" >&5
44307 sed 's/^/| /' conftest.$ac_ext >&5
44308
44309         ac_cv_lib_socket_socket=no
44310 fi
44311
44312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44313       conftest$ac_exeext conftest.$ac_ext
44314 LIBS=$ac_check_lib_save_LIBS
44315 fi
44316 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44317 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44318 if test $ac_cv_lib_socket_socket = yes; then
44319   if test "$INET_LINK" != " -lsocket"; then
44320                         INET_LINK="$INET_LINK -lsocket"
44321                     fi
44322 else
44323
44324                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44325 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44326                         wxUSE_SOCKETS=no
44327
44328
44329 fi
44330
44331
44332
44333 fi
44334
44335     fi
44336 fi
44337
44338 if test "$wxUSE_SOCKETS" = "yes" ; then
44339                 if test "$TOOLKIT" != "MSW"; then
44340                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44341 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44342 if test "${wx_cv_type_getsockname3+set}" = set; then
44343   echo $ECHO_N "(cached) $ECHO_C" >&6
44344 else
44345
44346                 ac_ext=cpp
44347 ac_cpp='$CXXCPP $CPPFLAGS'
44348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44351
44352                 cat >conftest.$ac_ext <<_ACEOF
44353 /* confdefs.h.  */
44354 _ACEOF
44355 cat confdefs.h >>conftest.$ac_ext
44356 cat >>conftest.$ac_ext <<_ACEOF
44357 /* end confdefs.h.  */
44358
44359                         #include <sys/types.h>
44360                         #include <sys/socket.h>
44361
44362 int
44363 main ()
44364 {
44365
44366                         socklen_t len;
44367                         getsockname(0, 0, &len);
44368
44369   ;
44370   return 0;
44371 }
44372 _ACEOF
44373 rm -f conftest.$ac_objext
44374 if { (ac_try="$ac_compile"
44375 case "(($ac_try" in
44376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44377   *) ac_try_echo=$ac_try;;
44378 esac
44379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44380   (eval "$ac_compile") 2>conftest.er1
44381   ac_status=$?
44382   grep -v '^ *+' conftest.er1 >conftest.err
44383   rm -f conftest.er1
44384   cat conftest.err >&5
44385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44386   (exit $ac_status); } && {
44387          test -z "$ac_cxx_werror_flag" ||
44388          test ! -s conftest.err
44389        } && test -s conftest.$ac_objext; then
44390   wx_cv_type_getsockname3=socklen_t
44391 else
44392   echo "$as_me: failed program was:" >&5
44393 sed 's/^/| /' conftest.$ac_ext >&5
44394
44395
44396                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44397                         if test "$GCC" = yes ; then
44398                             CFLAGS="-Werror $CFLAGS"
44399                         fi
44400
44401                         cat >conftest.$ac_ext <<_ACEOF
44402 /* confdefs.h.  */
44403 _ACEOF
44404 cat confdefs.h >>conftest.$ac_ext
44405 cat >>conftest.$ac_ext <<_ACEOF
44406 /* end confdefs.h.  */
44407
44408                                 #include <sys/types.h>
44409                                 #include <sys/socket.h>
44410
44411 int
44412 main ()
44413 {
44414
44415                                 size_t len;
44416                                 getsockname(0, 0, &len);
44417
44418   ;
44419   return 0;
44420 }
44421 _ACEOF
44422 rm -f conftest.$ac_objext
44423 if { (ac_try="$ac_compile"
44424 case "(($ac_try" in
44425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44426   *) ac_try_echo=$ac_try;;
44427 esac
44428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44429   (eval "$ac_compile") 2>conftest.er1
44430   ac_status=$?
44431   grep -v '^ *+' conftest.er1 >conftest.err
44432   rm -f conftest.er1
44433   cat conftest.err >&5
44434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44435   (exit $ac_status); } && {
44436          test -z "$ac_cxx_werror_flag" ||
44437          test ! -s conftest.err
44438        } && test -s conftest.$ac_objext; then
44439   wx_cv_type_getsockname3=size_t
44440 else
44441   echo "$as_me: failed program was:" >&5
44442 sed 's/^/| /' conftest.$ac_ext >&5
44443
44444         cat >conftest.$ac_ext <<_ACEOF
44445 /* confdefs.h.  */
44446 _ACEOF
44447 cat confdefs.h >>conftest.$ac_ext
44448 cat >>conftest.$ac_ext <<_ACEOF
44449 /* end confdefs.h.  */
44450
44451                                     #include <sys/types.h>
44452                                     #include <sys/socket.h>
44453
44454 int
44455 main ()
44456 {
44457
44458                                     int len;
44459                                     getsockname(0, 0, &len);
44460
44461   ;
44462   return 0;
44463 }
44464 _ACEOF
44465 rm -f conftest.$ac_objext
44466 if { (ac_try="$ac_compile"
44467 case "(($ac_try" in
44468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44469   *) ac_try_echo=$ac_try;;
44470 esac
44471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44472   (eval "$ac_compile") 2>conftest.er1
44473   ac_status=$?
44474   grep -v '^ *+' conftest.er1 >conftest.err
44475   rm -f conftest.er1
44476   cat conftest.err >&5
44477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478   (exit $ac_status); } && {
44479          test -z "$ac_cxx_werror_flag" ||
44480          test ! -s conftest.err
44481        } && test -s conftest.$ac_objext; then
44482   wx_cv_type_getsockname3=int
44483 else
44484   echo "$as_me: failed program was:" >&5
44485 sed 's/^/| /' conftest.$ac_ext >&5
44486
44487         wx_cv_type_getsockname3=unknown
44488
44489 fi
44490
44491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44492
44493 fi
44494
44495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44496
44497                         CFLAGS="$CFLAGS_OLD"
44498
44499
44500 fi
44501
44502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44503                 ac_ext=c
44504 ac_cpp='$CPP $CPPFLAGS'
44505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44508
44509
44510 fi
44511 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44512 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44513
44514         if test "$wx_cv_type_getsockname3" = "unknown"; then
44515             wxUSE_SOCKETS=no
44516             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44517 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44518         else
44519             cat >>confdefs.h <<_ACEOF
44520 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44521 _ACEOF
44522
44523         fi
44524                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44525 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44526 if test "${wx_cv_type_getsockopt5+set}" = set; then
44527   echo $ECHO_N "(cached) $ECHO_C" >&6
44528 else
44529
44530                                                                                                 ac_ext=cpp
44531 ac_cpp='$CXXCPP $CPPFLAGS'
44532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44535
44536                 cat >conftest.$ac_ext <<_ACEOF
44537 /* confdefs.h.  */
44538 _ACEOF
44539 cat confdefs.h >>conftest.$ac_ext
44540 cat >>conftest.$ac_ext <<_ACEOF
44541 /* end confdefs.h.  */
44542
44543                         #include <sys/types.h>
44544                         #include <sys/socket.h>
44545
44546 int
44547 main ()
44548 {
44549
44550                         socklen_t len;
44551                         getsockopt(0, 0, 0, 0, &len);
44552
44553   ;
44554   return 0;
44555 }
44556 _ACEOF
44557 rm -f conftest.$ac_objext
44558 if { (ac_try="$ac_compile"
44559 case "(($ac_try" in
44560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44561   *) ac_try_echo=$ac_try;;
44562 esac
44563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44564   (eval "$ac_compile") 2>conftest.er1
44565   ac_status=$?
44566   grep -v '^ *+' conftest.er1 >conftest.err
44567   rm -f conftest.er1
44568   cat conftest.err >&5
44569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44570   (exit $ac_status); } && {
44571          test -z "$ac_cxx_werror_flag" ||
44572          test ! -s conftest.err
44573        } && test -s conftest.$ac_objext; then
44574   wx_cv_type_getsockopt5=socklen_t
44575 else
44576   echo "$as_me: failed program was:" >&5
44577 sed 's/^/| /' conftest.$ac_ext >&5
44578
44579
44580                         cat >conftest.$ac_ext <<_ACEOF
44581 /* confdefs.h.  */
44582 _ACEOF
44583 cat confdefs.h >>conftest.$ac_ext
44584 cat >>conftest.$ac_ext <<_ACEOF
44585 /* end confdefs.h.  */
44586
44587                                 #include <sys/types.h>
44588                                 #include <sys/socket.h>
44589
44590 int
44591 main ()
44592 {
44593
44594                                 size_t len;
44595                                 getsockopt(0, 0, 0, 0, &len);
44596
44597   ;
44598   return 0;
44599 }
44600 _ACEOF
44601 rm -f conftest.$ac_objext
44602 if { (ac_try="$ac_compile"
44603 case "(($ac_try" in
44604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44605   *) ac_try_echo=$ac_try;;
44606 esac
44607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44608   (eval "$ac_compile") 2>conftest.er1
44609   ac_status=$?
44610   grep -v '^ *+' conftest.er1 >conftest.err
44611   rm -f conftest.er1
44612   cat conftest.err >&5
44613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44614   (exit $ac_status); } && {
44615          test -z "$ac_cxx_werror_flag" ||
44616          test ! -s conftest.err
44617        } && test -s conftest.$ac_objext; then
44618   wx_cv_type_getsockopt5=size_t
44619 else
44620   echo "$as_me: failed program was:" >&5
44621 sed 's/^/| /' conftest.$ac_ext >&5
44622
44623         cat >conftest.$ac_ext <<_ACEOF
44624 /* confdefs.h.  */
44625 _ACEOF
44626 cat confdefs.h >>conftest.$ac_ext
44627 cat >>conftest.$ac_ext <<_ACEOF
44628 /* end confdefs.h.  */
44629
44630                                     #include <sys/types.h>
44631                                     #include <sys/socket.h>
44632
44633 int
44634 main ()
44635 {
44636
44637                                     int len;
44638                                     getsockopt(0, 0, 0, 0, &len);
44639
44640   ;
44641   return 0;
44642 }
44643 _ACEOF
44644 rm -f conftest.$ac_objext
44645 if { (ac_try="$ac_compile"
44646 case "(($ac_try" in
44647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44648   *) ac_try_echo=$ac_try;;
44649 esac
44650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44651   (eval "$ac_compile") 2>conftest.er1
44652   ac_status=$?
44653   grep -v '^ *+' conftest.er1 >conftest.err
44654   rm -f conftest.er1
44655   cat conftest.err >&5
44656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44657   (exit $ac_status); } && {
44658          test -z "$ac_cxx_werror_flag" ||
44659          test ! -s conftest.err
44660        } && test -s conftest.$ac_objext; then
44661   wx_cv_type_getsockopt5=int
44662 else
44663   echo "$as_me: failed program was:" >&5
44664 sed 's/^/| /' conftest.$ac_ext >&5
44665
44666         wx_cv_type_getsockopt5=unknown
44667
44668 fi
44669
44670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44671
44672 fi
44673
44674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44675
44676
44677 fi
44678
44679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44680                 ac_ext=c
44681 ac_cpp='$CPP $CPPFLAGS'
44682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44685
44686
44687 fi
44688 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44689 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44690
44691         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44692             wxUSE_SOCKETS=no
44693             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44694 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44695         else
44696             cat >>confdefs.h <<_ACEOF
44697 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44698 _ACEOF
44699
44700         fi
44701     fi
44702 fi
44703
44704 if test "$wxUSE_SOCKETS" = "yes" ; then
44705     if test "$wxUSE_IPV6" = "yes"; then
44706         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44707 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44708 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44709   echo $ECHO_N "(cached) $ECHO_C" >&6
44710 else
44711
44712                 cat >conftest.$ac_ext <<_ACEOF
44713 /* confdefs.h.  */
44714 _ACEOF
44715 cat confdefs.h >>conftest.$ac_ext
44716 cat >>conftest.$ac_ext <<_ACEOF
44717 /* end confdefs.h.  */
44718
44719                         #include <sys/types.h>
44720                         #include <sys/socket.h>
44721                         #include <netinet/in.h>
44722
44723 int
44724 main ()
44725 {
44726
44727                         struct sockaddr_in6 sa6;
44728
44729   ;
44730   return 0;
44731 }
44732 _ACEOF
44733 rm -f conftest.$ac_objext
44734 if { (ac_try="$ac_compile"
44735 case "(($ac_try" in
44736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44737   *) ac_try_echo=$ac_try;;
44738 esac
44739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44740   (eval "$ac_compile") 2>conftest.er1
44741   ac_status=$?
44742   grep -v '^ *+' conftest.er1 >conftest.err
44743   rm -f conftest.er1
44744   cat conftest.err >&5
44745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44746   (exit $ac_status); } && {
44747          test -z "$ac_c_werror_flag" ||
44748          test ! -s conftest.err
44749        } && test -s conftest.$ac_objext; then
44750   wx_cv_type_sockaddr_in6=yes
44751 else
44752   echo "$as_me: failed program was:" >&5
44753 sed 's/^/| /' conftest.$ac_ext >&5
44754
44755         wx_cv_type_sockaddr_in6=no
44756
44757 fi
44758
44759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44760
44761
44762 fi
44763 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44764 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44765
44766         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44767             cat >>confdefs.h <<\_ACEOF
44768 #define wxUSE_IPV6 1
44769 _ACEOF
44770
44771         else
44772             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44773 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44774         fi
44775     fi
44776
44777     cat >>confdefs.h <<\_ACEOF
44778 #define wxUSE_SOCKETS 1
44779 _ACEOF
44780
44781     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44782 fi
44783
44784 if test "$wxUSE_PROTOCOL" = "yes"; then
44785     if test "$wxUSE_SOCKETS" != "yes"; then
44786         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44787 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44788         wxUSE_PROTOCOL=no
44789     fi
44790 fi
44791
44792 if test "$wxUSE_PROTOCOL" = "yes"; then
44793     cat >>confdefs.h <<\_ACEOF
44794 #define wxUSE_PROTOCOL 1
44795 _ACEOF
44796
44797
44798     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44799         cat >>confdefs.h <<\_ACEOF
44800 #define wxUSE_PROTOCOL_HTTP 1
44801 _ACEOF
44802
44803     fi
44804     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44805         cat >>confdefs.h <<\_ACEOF
44806 #define wxUSE_PROTOCOL_FTP 1
44807 _ACEOF
44808
44809     fi
44810     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44811         cat >>confdefs.h <<\_ACEOF
44812 #define wxUSE_PROTOCOL_FILE 1
44813 _ACEOF
44814
44815     fi
44816 else
44817     if test "$wxUSE_FS_INET" = "yes"; then
44818         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44819 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44820         wxUSE_FS_INET="no"
44821     fi
44822 fi
44823
44824 if test "$wxUSE_URL" = "yes"; then
44825     if test "$wxUSE_PROTOCOL" != "yes"; then
44826         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44827 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44828         wxUSE_URL=no
44829     fi
44830     if test "$wxUSE_URL" = "yes"; then
44831         cat >>confdefs.h <<\_ACEOF
44832 #define wxUSE_URL 1
44833 _ACEOF
44834
44835     fi
44836 fi
44837
44838 if test "$wxUSE_VARIANT" = "yes"; then
44839     cat >>confdefs.h <<\_ACEOF
44840 #define wxUSE_VARIANT 1
44841 _ACEOF
44842
44843 fi
44844
44845 if test "$wxUSE_FS_INET" = "yes"; then
44846   cat >>confdefs.h <<\_ACEOF
44847 #define wxUSE_FS_INET 1
44848 _ACEOF
44849
44850 fi
44851
44852
44853 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44854     wxUSE_JOYSTICK=no
44855
44856         if test "$TOOLKIT" = "MSW"; then
44857         wxUSE_JOYSTICK=yes
44858
44859         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
44860         if test "$USE_DARWIN" = 1; then
44861                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44862 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44863             ac_ext=cpp
44864 ac_cpp='$CXXCPP $CPPFLAGS'
44865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44868
44869             cat >conftest.$ac_ext <<_ACEOF
44870 /* confdefs.h.  */
44871 _ACEOF
44872 cat confdefs.h >>conftest.$ac_ext
44873 cat >>conftest.$ac_ext <<_ACEOF
44874 /* end confdefs.h.  */
44875  #include <IOKit/hid/IOHIDLib.h>
44876 int
44877 main ()
44878 {
44879  IOHIDQueueInterface *qi = NULL;
44880                               IOHIDCallbackFunction cb = NULL;
44881                               qi->setEventCallout(NULL, cb, NULL, NULL);
44882   ;
44883   return 0;
44884 }
44885 _ACEOF
44886 rm -f conftest.$ac_objext
44887 if { (ac_try="$ac_compile"
44888 case "(($ac_try" in
44889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44890   *) ac_try_echo=$ac_try;;
44891 esac
44892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44893   (eval "$ac_compile") 2>conftest.er1
44894   ac_status=$?
44895   grep -v '^ *+' conftest.er1 >conftest.err
44896   rm -f conftest.er1
44897   cat conftest.err >&5
44898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44899   (exit $ac_status); } && {
44900          test -z "$ac_cxx_werror_flag" ||
44901          test ! -s conftest.err
44902        } && test -s conftest.$ac_objext; then
44903    wxUSE_JOYSTICK=yes
44904
44905 else
44906   echo "$as_me: failed program was:" >&5
44907 sed 's/^/| /' conftest.$ac_ext >&5
44908
44909
44910 fi
44911
44912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44913             ac_ext=c
44914 ac_cpp='$CPP $CPPFLAGS'
44915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44918
44919             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44920 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44921         fi
44922
44923         else
44924                 if test "$wxUSE_MGL" != 1; then
44925
44926 for ac_header in linux/joystick.h
44927 do
44928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44932   echo $ECHO_N "(cached) $ECHO_C" >&6
44933 else
44934   cat >conftest.$ac_ext <<_ACEOF
44935 /* confdefs.h.  */
44936 _ACEOF
44937 cat confdefs.h >>conftest.$ac_ext
44938 cat >>conftest.$ac_ext <<_ACEOF
44939 /* end confdefs.h.  */
44940 $ac_includes_default
44941
44942 #include <$ac_header>
44943 _ACEOF
44944 rm -f conftest.$ac_objext
44945 if { (ac_try="$ac_compile"
44946 case "(($ac_try" in
44947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44948   *) ac_try_echo=$ac_try;;
44949 esac
44950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44951   (eval "$ac_compile") 2>conftest.er1
44952   ac_status=$?
44953   grep -v '^ *+' conftest.er1 >conftest.err
44954   rm -f conftest.er1
44955   cat conftest.err >&5
44956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44957   (exit $ac_status); } && {
44958          test -z "$ac_c_werror_flag" ||
44959          test ! -s conftest.err
44960        } && test -s conftest.$ac_objext; then
44961   eval "$as_ac_Header=yes"
44962 else
44963   echo "$as_me: failed program was:" >&5
44964 sed 's/^/| /' conftest.$ac_ext >&5
44965
44966         eval "$as_ac_Header=no"
44967 fi
44968
44969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44970 fi
44971 ac_res=`eval echo '${'$as_ac_Header'}'`
44972                { echo "$as_me:$LINENO: result: $ac_res" >&5
44973 echo "${ECHO_T}$ac_res" >&6; }
44974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44975   cat >>confdefs.h <<_ACEOF
44976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44977 _ACEOF
44978  wxUSE_JOYSTICK=yes
44979 fi
44980
44981 done
44982
44983         fi
44984     fi
44985
44986     if test "$wxUSE_JOYSTICK" = "yes"; then
44987         cat >>confdefs.h <<\_ACEOF
44988 #define wxUSE_JOYSTICK 1
44989 _ACEOF
44990
44991         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44992     else
44993         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44994 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44995     fi
44996 fi
44997
44998
44999
45000 if test "$wxUSE_FONTENUM" = "yes" ; then
45001   cat >>confdefs.h <<\_ACEOF
45002 #define wxUSE_FONTENUM 1
45003 _ACEOF
45004
45005 fi
45006
45007 if test "$wxUSE_FONTMAP" = "yes" ; then
45008   cat >>confdefs.h <<\_ACEOF
45009 #define wxUSE_FONTMAP 1
45010 _ACEOF
45011
45012 fi
45013
45014 if test "$wxUSE_UNICODE" = "yes" ; then
45015   cat >>confdefs.h <<\_ACEOF
45016 #define wxUSE_UNICODE 1
45017 _ACEOF
45018
45019
45020   if test "$USE_WIN32" != 1; then
45021       wxUSE_UNICODE_MSLU=no
45022   fi
45023
45024   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45025         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45026 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45027 if test "${ac_cv_lib_unicows_main+set}" = set; then
45028   echo $ECHO_N "(cached) $ECHO_C" >&6
45029 else
45030   ac_check_lib_save_LIBS=$LIBS
45031 LIBS="-lunicows  $LIBS"
45032 cat >conftest.$ac_ext <<_ACEOF
45033 /* confdefs.h.  */
45034 _ACEOF
45035 cat confdefs.h >>conftest.$ac_ext
45036 cat >>conftest.$ac_ext <<_ACEOF
45037 /* end confdefs.h.  */
45038
45039
45040 int
45041 main ()
45042 {
45043 return main ();
45044   ;
45045   return 0;
45046 }
45047 _ACEOF
45048 rm -f conftest.$ac_objext conftest$ac_exeext
45049 if { (ac_try="$ac_link"
45050 case "(($ac_try" in
45051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45052   *) ac_try_echo=$ac_try;;
45053 esac
45054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45055   (eval "$ac_link") 2>conftest.er1
45056   ac_status=$?
45057   grep -v '^ *+' conftest.er1 >conftest.err
45058   rm -f conftest.er1
45059   cat conftest.err >&5
45060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45061   (exit $ac_status); } && {
45062          test -z "$ac_c_werror_flag" ||
45063          test ! -s conftest.err
45064        } && test -s conftest$ac_exeext &&
45065        $as_test_x conftest$ac_exeext; then
45066   ac_cv_lib_unicows_main=yes
45067 else
45068   echo "$as_me: failed program was:" >&5
45069 sed 's/^/| /' conftest.$ac_ext >&5
45070
45071         ac_cv_lib_unicows_main=no
45072 fi
45073
45074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45075       conftest$ac_exeext conftest.$ac_ext
45076 LIBS=$ac_check_lib_save_LIBS
45077 fi
45078 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45079 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45080 if test $ac_cv_lib_unicows_main = yes; then
45081
45082                 cat >>confdefs.h <<\_ACEOF
45083 #define wxUSE_UNICODE_MSLU 1
45084 _ACEOF
45085
45086
45087 else
45088
45089                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45090                              Applications will only run on Windows NT/2000/XP!" >&5
45091 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45092                              Applications will only run on Windows NT/2000/XP!" >&2;}
45093                 wxUSE_UNICODE_MSLU=no
45094
45095 fi
45096
45097     fi
45098 fi
45099
45100 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45101     cat >>confdefs.h <<\_ACEOF
45102 #define wxUSE_UNICODE_UTF8 1
45103 _ACEOF
45104
45105
45106     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45107         cat >>confdefs.h <<\_ACEOF
45108 #define wxUSE_UTF8_LOCALE_ONLY 1
45109 _ACEOF
45110
45111     fi
45112 fi
45113
45114
45115 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45116     cat >>confdefs.h <<\_ACEOF
45117 #define wxUSE_CONSTRAINTS 1
45118 _ACEOF
45119
45120     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45121 fi
45122
45123 if test "$wxUSE_MDI" = "yes"; then
45124     cat >>confdefs.h <<\_ACEOF
45125 #define wxUSE_MDI 1
45126 _ACEOF
45127
45128
45129     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45130         cat >>confdefs.h <<\_ACEOF
45131 #define wxUSE_MDI_ARCHITECTURE 1
45132 _ACEOF
45133
45134         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45135     fi
45136 fi
45137
45138 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45139     cat >>confdefs.h <<\_ACEOF
45140 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45141 _ACEOF
45142
45143     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45144 fi
45145
45146 if test "$wxUSE_HELP" = "yes"; then
45147     cat >>confdefs.h <<\_ACEOF
45148 #define wxUSE_HELP 1
45149 _ACEOF
45150
45151     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45152
45153     if test "$wxUSE_MSW" = 1; then
45154       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45155         cat >>confdefs.h <<\_ACEOF
45156 #define wxUSE_MS_HTML_HELP 1
45157 _ACEOF
45158
45159       fi
45160     fi
45161
45162     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45163       if test "$wxUSE_HTML" = "yes"; then
45164         cat >>confdefs.h <<\_ACEOF
45165 #define wxUSE_WXHTML_HELP 1
45166 _ACEOF
45167
45168       else
45169         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45170 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45171         wxUSE_WXHTML_HELP=no
45172       fi
45173     fi
45174 fi
45175
45176 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45177     cat >>confdefs.h <<\_ACEOF
45178 #define wxUSE_PRINTING_ARCHITECTURE 1
45179 _ACEOF
45180
45181     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45182 fi
45183
45184 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45185   cat >>confdefs.h <<\_ACEOF
45186 #define wxUSE_POSTSCRIPT 1
45187 _ACEOF
45188
45189 fi
45190
45191 cat >>confdefs.h <<\_ACEOF
45192 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45193 _ACEOF
45194
45195
45196 if test "$wxUSE_SVG" = "yes"; then
45197     cat >>confdefs.h <<\_ACEOF
45198 #define wxUSE_SVG 1
45199 _ACEOF
45200
45201 fi
45202
45203
45204 if test "$wxUSE_METAFILE" = "yes"; then
45205     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45206         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45207 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45208         wxUSE_METAFILE=no
45209     fi
45210 fi
45211
45212
45213 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45214                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45215                           -o "$wxUSE_OLE"     = "yes" \
45216                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45217     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45218 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45219 if test "${ac_cv_header_ole2_h+set}" = set; then
45220   echo $ECHO_N "(cached) $ECHO_C" >&6
45221 else
45222   cat >conftest.$ac_ext <<_ACEOF
45223 /* confdefs.h.  */
45224 _ACEOF
45225 cat confdefs.h >>conftest.$ac_ext
45226 cat >>conftest.$ac_ext <<_ACEOF
45227 /* end confdefs.h.  */
45228
45229
45230 #include <ole2.h>
45231 _ACEOF
45232 rm -f conftest.$ac_objext
45233 if { (ac_try="$ac_compile"
45234 case "(($ac_try" in
45235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45236   *) ac_try_echo=$ac_try;;
45237 esac
45238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45239   (eval "$ac_compile") 2>conftest.er1
45240   ac_status=$?
45241   grep -v '^ *+' conftest.er1 >conftest.err
45242   rm -f conftest.er1
45243   cat conftest.err >&5
45244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45245   (exit $ac_status); } && {
45246          test -z "$ac_c_werror_flag" ||
45247          test ! -s conftest.err
45248        } && test -s conftest.$ac_objext; then
45249   ac_cv_header_ole2_h=yes
45250 else
45251   echo "$as_me: failed program was:" >&5
45252 sed 's/^/| /' conftest.$ac_ext >&5
45253
45254         ac_cv_header_ole2_h=no
45255 fi
45256
45257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45258 fi
45259 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45260 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45261
45262
45263
45264     if test "$ac_cv_header_ole2_h" = "yes" ; then
45265         if test "$GCC" = yes ; then
45266             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45267 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45268             cat >conftest.$ac_ext <<_ACEOF
45269 /* confdefs.h.  */
45270 _ACEOF
45271 cat confdefs.h >>conftest.$ac_ext
45272 cat >>conftest.$ac_ext <<_ACEOF
45273 /* end confdefs.h.  */
45274 #include <windows.h>
45275                             #include <ole2.h>
45276 int
45277 main ()
45278 {
45279
45280   ;
45281   return 0;
45282 }
45283 _ACEOF
45284 rm -f conftest.$ac_objext
45285 if { (ac_try="$ac_compile"
45286 case "(($ac_try" in
45287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45288   *) ac_try_echo=$ac_try;;
45289 esac
45290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45291   (eval "$ac_compile") 2>conftest.er1
45292   ac_status=$?
45293   grep -v '^ *+' conftest.er1 >conftest.err
45294   rm -f conftest.er1
45295   cat conftest.err >&5
45296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45297   (exit $ac_status); } && {
45298          test -z "$ac_c_werror_flag" ||
45299          test ! -s conftest.err
45300        } && test -s conftest.$ac_objext; then
45301   { echo "$as_me:$LINENO: result: no" >&5
45302 echo "${ECHO_T}no" >&6; }
45303 else
45304   echo "$as_me: failed program was:" >&5
45305 sed 's/^/| /' conftest.$ac_ext >&5
45306
45307         { echo "$as_me:$LINENO: result: yes" >&5
45308 echo "${ECHO_T}yes" >&6; }
45309                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45310 fi
45311
45312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45313             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45314             if test "$wxUSE_OLE" = "yes" ; then
45315                 cat >>confdefs.h <<\_ACEOF
45316 #define wxUSE_OLE 1
45317 _ACEOF
45318
45319                 cat >>confdefs.h <<\_ACEOF
45320 #define wxUSE_OLE_AUTOMATION 1
45321 _ACEOF
45322
45323                 cat >>confdefs.h <<\_ACEOF
45324 #define wxUSE_ACTIVEX 1
45325 _ACEOF
45326
45327                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45328             fi
45329         fi
45330
45331                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45332             cat >>confdefs.h <<\_ACEOF
45333 #define wxUSE_DATAOBJ 1
45334 _ACEOF
45335
45336         fi
45337     else
45338         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45339 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45340
45341         wxUSE_CLIPBOARD=no
45342         wxUSE_DRAG_AND_DROP=no
45343         wxUSE_DATAOBJ=no
45344         wxUSE_OLE=no
45345     fi
45346
45347     if test "$wxUSE_METAFILE" = "yes"; then
45348         cat >>confdefs.h <<\_ACEOF
45349 #define wxUSE_METAFILE 1
45350 _ACEOF
45351
45352
45353                 cat >>confdefs.h <<\_ACEOF
45354 #define wxUSE_ENH_METAFILE 1
45355 _ACEOF
45356
45357     fi
45358 fi
45359
45360 if test "$wxUSE_IPC" = "yes"; then
45361     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45362         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45363 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45364         wxUSE_IPC=no
45365     fi
45366
45367     if test "$wxUSE_IPC" = "yes"; then
45368         cat >>confdefs.h <<\_ACEOF
45369 #define wxUSE_IPC 1
45370 _ACEOF
45371
45372         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45373     fi
45374 fi
45375
45376 if test "$wxUSE_DATAOBJ" = "yes"; then
45377     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45378         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45379 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45380         wxUSE_DATAOBJ=no
45381     else
45382         cat >>confdefs.h <<\_ACEOF
45383 #define wxUSE_DATAOBJ 1
45384 _ACEOF
45385
45386     fi
45387 else
45388     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45389 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45390     wxUSE_CLIPBOARD=no
45391     wxUSE_DRAG_AND_DROP=no
45392 fi
45393
45394 if test "$wxUSE_CLIPBOARD" = "yes"; then
45395     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45396         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45397 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45398         wxUSE_CLIPBOARD=no
45399     fi
45400
45401     if test "$wxUSE_CLIPBOARD" = "yes"; then
45402         cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_CLIPBOARD 1
45404 _ACEOF
45405
45406     fi
45407 fi
45408
45409 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45410     if test "$wxUSE_GTK" = 1; then
45411         if test "$WXGTK12" != 1; then
45412             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45413 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45414             wxUSE_DRAG_AND_DROP=no
45415         fi
45416     fi
45417
45418     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45419             "$wxUSE_DFB" = 1; then
45420         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45421 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45422         wxUSE_DRAG_AND_DROP=no
45423     fi
45424
45425     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45426         cat >>confdefs.h <<\_ACEOF
45427 #define wxUSE_DRAG_AND_DROP 1
45428 _ACEOF
45429
45430     fi
45431
45432 fi
45433
45434 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45435     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45436 fi
45437
45438 if test "$wxUSE_CLIPBOARD" = "yes"; then
45439     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
45440 fi
45441
45442 if test "$wxUSE_SPLINES" = "yes" ; then
45443   cat >>confdefs.h <<\_ACEOF
45444 #define wxUSE_SPLINES 1
45445 _ACEOF
45446
45447 fi
45448
45449 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45450   cat >>confdefs.h <<\_ACEOF
45451 #define wxUSE_MOUSEWHEEL 1
45452 _ACEOF
45453
45454 fi
45455
45456
45457 USES_CONTROLS=0
45458 if test "$wxUSE_CONTROLS" = "yes"; then
45459   USES_CONTROLS=1
45460 fi
45461
45462 if test "$wxUSE_ACCEL" = "yes"; then
45463   cat >>confdefs.h <<\_ACEOF
45464 #define wxUSE_ACCEL 1
45465 _ACEOF
45466
45467   USES_CONTROLS=1
45468 fi
45469
45470 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45471   cat >>confdefs.h <<\_ACEOF
45472 #define wxUSE_ANIMATIONCTRL 1
45473 _ACEOF
45474
45475   USES_CONTROLS=1
45476   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45477 fi
45478
45479 if test "$wxUSE_BUTTON" = "yes"; then
45480   cat >>confdefs.h <<\_ACEOF
45481 #define wxUSE_BUTTON 1
45482 _ACEOF
45483
45484   USES_CONTROLS=1
45485 fi
45486
45487 if test "$wxUSE_BMPBUTTON" = "yes"; then
45488   cat >>confdefs.h <<\_ACEOF
45489 #define wxUSE_BMPBUTTON 1
45490 _ACEOF
45491
45492   USES_CONTROLS=1
45493 fi
45494
45495 if test "$wxUSE_CALCTRL" = "yes"; then
45496   cat >>confdefs.h <<\_ACEOF
45497 #define wxUSE_CALENDARCTRL 1
45498 _ACEOF
45499
45500   USES_CONTROLS=1
45501   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45502 fi
45503
45504 if test "$wxUSE_CARET" = "yes"; then
45505   cat >>confdefs.h <<\_ACEOF
45506 #define wxUSE_CARET 1
45507 _ACEOF
45508
45509   USES_CONTROLS=1
45510   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45511 fi
45512
45513 if test "$wxUSE_COLLPANE" = "yes"; then
45514     cat >>confdefs.h <<\_ACEOF
45515 #define wxUSE_COLLPANE 1
45516 _ACEOF
45517
45518     USES_CONTROLS=1
45519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45520 fi
45521
45522 if test "$wxUSE_COMBOBOX" = "yes"; then
45523   cat >>confdefs.h <<\_ACEOF
45524 #define wxUSE_COMBOBOX 1
45525 _ACEOF
45526
45527   USES_CONTROLS=1
45528 fi
45529
45530 if test "$wxUSE_COMBOCTRL" = "yes"; then
45531   cat >>confdefs.h <<\_ACEOF
45532 #define wxUSE_COMBOCTRL 1
45533 _ACEOF
45534
45535   USES_CONTROLS=1
45536 fi
45537
45538 if test "$wxUSE_CHOICE" = "yes"; then
45539   cat >>confdefs.h <<\_ACEOF
45540 #define wxUSE_CHOICE 1
45541 _ACEOF
45542
45543   USES_CONTROLS=1
45544 fi
45545
45546 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45547     cat >>confdefs.h <<\_ACEOF
45548 #define wxUSE_CHOICEBOOK 1
45549 _ACEOF
45550
45551     USES_CONTROLS=1
45552 fi
45553
45554 if test "$wxUSE_CHECKBOX" = "yes"; then
45555   cat >>confdefs.h <<\_ACEOF
45556 #define wxUSE_CHECKBOX 1
45557 _ACEOF
45558
45559   USES_CONTROLS=1
45560 fi
45561
45562 if test "$wxUSE_CHECKLST" = "yes"; then
45563   cat >>confdefs.h <<\_ACEOF
45564 #define wxUSE_CHECKLISTBOX 1
45565 _ACEOF
45566
45567   USES_CONTROLS=1
45568 fi
45569
45570 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45571   cat >>confdefs.h <<\_ACEOF
45572 #define wxUSE_COLOURPICKERCTRL 1
45573 _ACEOF
45574
45575   USES_CONTROLS=1
45576 fi
45577
45578 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45579   cat >>confdefs.h <<\_ACEOF
45580 #define wxUSE_DATEPICKCTRL 1
45581 _ACEOF
45582
45583   USES_CONTROLS=1
45584 fi
45585
45586 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45587   cat >>confdefs.h <<\_ACEOF
45588 #define wxUSE_DIRPICKERCTRL 1
45589 _ACEOF
45590
45591   USES_CONTROLS=1
45592 fi
45593
45594 if test "$wxUSE_FILECTRL" = "yes"; then
45595   cat >>confdefs.h <<\_ACEOF
45596 #define wxUSE_FILECTRL 1
45597 _ACEOF
45598
45599   USES_CONTROLS=1
45600 fi
45601
45602 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45603   cat >>confdefs.h <<\_ACEOF
45604 #define wxUSE_FILEPICKERCTRL 1
45605 _ACEOF
45606
45607   USES_CONTROLS=1
45608 fi
45609
45610 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45611   cat >>confdefs.h <<\_ACEOF
45612 #define wxUSE_FONTPICKERCTRL 1
45613 _ACEOF
45614
45615   USES_CONTROLS=1
45616 fi
45617
45618 if test "$wxUSE_DISPLAY" = "yes"; then
45619     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45620         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45621 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45622         wxUSE_DISPLAY=no
45623     else
45624         cat >>confdefs.h <<\_ACEOF
45625 #define wxUSE_DISPLAY 1
45626 _ACEOF
45627
45628         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45629     fi
45630 fi
45631
45632 if test "$wxUSE_DETECT_SM" = "yes"; then
45633     cat >>confdefs.h <<\_ACEOF
45634 #define wxUSE_DETECT_SM 1
45635 _ACEOF
45636
45637 fi
45638
45639 if test "$wxUSE_GAUGE" = "yes"; then
45640   cat >>confdefs.h <<\_ACEOF
45641 #define wxUSE_GAUGE 1
45642 _ACEOF
45643
45644   USES_CONTROLS=1
45645 fi
45646
45647 if test "$wxUSE_GRID" = "yes"; then
45648   cat >>confdefs.h <<\_ACEOF
45649 #define wxUSE_GRID 1
45650 _ACEOF
45651
45652   USES_CONTROLS=1
45653   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45654 fi
45655
45656 if test "$wxUSE_HEADERCTRL" = "yes"; then
45657   cat >>confdefs.h <<\_ACEOF
45658 #define wxUSE_HEADERCTRL 1
45659 _ACEOF
45660
45661   USES_CONTROLS=1
45662 fi
45663
45664 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45665   cat >>confdefs.h <<\_ACEOF
45666 #define wxUSE_HYPERLINKCTRL 1
45667 _ACEOF
45668
45669   USES_CONTROLS=1
45670 fi
45671
45672 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45673   cat >>confdefs.h <<\_ACEOF
45674 #define wxUSE_BITMAPCOMBOBOX 1
45675 _ACEOF
45676
45677   USES_CONTROLS=1
45678 fi
45679
45680 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45681   cat >>confdefs.h <<\_ACEOF
45682 #define wxUSE_DATAVIEWCTRL 1
45683 _ACEOF
45684
45685   USES_CONTROLS=1
45686   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45687 fi
45688
45689 if test "$wxUSE_IMAGLIST" = "yes"; then
45690     cat >>confdefs.h <<\_ACEOF
45691 #define wxUSE_IMAGLIST 1
45692 _ACEOF
45693
45694 fi
45695
45696 if test "$wxUSE_LISTBOOK" = "yes"; then
45697     cat >>confdefs.h <<\_ACEOF
45698 #define wxUSE_LISTBOOK 1
45699 _ACEOF
45700
45701     USES_CONTROLS=1
45702 fi
45703
45704 if test "$wxUSE_LISTBOX" = "yes"; then
45705     cat >>confdefs.h <<\_ACEOF
45706 #define wxUSE_LISTBOX 1
45707 _ACEOF
45708
45709     USES_CONTROLS=1
45710 fi
45711
45712 if test "$wxUSE_LISTCTRL" = "yes"; then
45713     if test "$wxUSE_IMAGLIST" = "yes"; then
45714         cat >>confdefs.h <<\_ACEOF
45715 #define wxUSE_LISTCTRL 1
45716 _ACEOF
45717
45718         USES_CONTROLS=1
45719         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45720     else
45721         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45722 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45723     fi
45724 fi
45725
45726 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45727     cat >>confdefs.h <<\_ACEOF
45728 #define wxUSE_EDITABLELISTBOX 1
45729 _ACEOF
45730
45731     USES_CONTROLS=1
45732 fi
45733
45734 if test "$wxUSE_NOTEBOOK" = "yes"; then
45735     cat >>confdefs.h <<\_ACEOF
45736 #define wxUSE_NOTEBOOK 1
45737 _ACEOF
45738
45739     USES_CONTROLS=1
45740     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45741 fi
45742
45743 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45744     cat >>confdefs.h <<\_ACEOF
45745 #define wxUSE_NOTIFICATION_MESSAGE 1
45746 _ACEOF
45747
45748 fi
45749
45750 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45751   cat >>confdefs.h <<\_ACEOF
45752 #define wxUSE_ODCOMBOBOX 1
45753 _ACEOF
45754
45755   USES_CONTROLS=1
45756   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45757 fi
45758
45759 if test "$wxUSE_RADIOBOX" = "yes"; then
45760     cat >>confdefs.h <<\_ACEOF
45761 #define wxUSE_RADIOBOX 1
45762 _ACEOF
45763
45764     USES_CONTROLS=1
45765 fi
45766
45767 if test "$wxUSE_RADIOBTN" = "yes"; then
45768     cat >>confdefs.h <<\_ACEOF
45769 #define wxUSE_RADIOBTN 1
45770 _ACEOF
45771
45772     USES_CONTROLS=1
45773 fi
45774
45775 if test "$wxUSE_REARRANGECTRL" = "yes"; then
45776     cat >>confdefs.h <<\_ACEOF
45777 #define wxUSE_REARRANGECTRL 1
45778 _ACEOF
45779
45780 fi
45781
45782 if test "$wxUSE_SASH" = "yes"; then
45783     cat >>confdefs.h <<\_ACEOF
45784 #define wxUSE_SASH 1
45785 _ACEOF
45786
45787     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45788 fi
45789
45790 if test "$wxUSE_SCROLLBAR" = "yes"; then
45791     cat >>confdefs.h <<\_ACEOF
45792 #define wxUSE_SCROLLBAR 1
45793 _ACEOF
45794
45795     USES_CONTROLS=1
45796     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
45797 fi
45798
45799 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45800     cat >>confdefs.h <<\_ACEOF
45801 #define wxUSE_SEARCHCTRL 1
45802 _ACEOF
45803
45804     USES_CONTROLS=1
45805 fi
45806
45807 if test "$wxUSE_SLIDER" = "yes"; then
45808     cat >>confdefs.h <<\_ACEOF
45809 #define wxUSE_SLIDER 1
45810 _ACEOF
45811
45812     USES_CONTROLS=1
45813 fi
45814
45815 if test "$wxUSE_SPINBTN" = "yes"; then
45816     cat >>confdefs.h <<\_ACEOF
45817 #define wxUSE_SPINBTN 1
45818 _ACEOF
45819
45820     USES_CONTROLS=1
45821 fi
45822
45823 if test "$wxUSE_SPINCTRL" = "yes"; then
45824     cat >>confdefs.h <<\_ACEOF
45825 #define wxUSE_SPINCTRL 1
45826 _ACEOF
45827
45828     USES_CONTROLS=1
45829 fi
45830
45831 if test "$wxUSE_SPLITTER" = "yes"; then
45832     cat >>confdefs.h <<\_ACEOF
45833 #define wxUSE_SPLITTER 1
45834 _ACEOF
45835
45836     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45837 fi
45838
45839 if test "$wxUSE_STATBMP" = "yes"; then
45840     cat >>confdefs.h <<\_ACEOF
45841 #define wxUSE_STATBMP 1
45842 _ACEOF
45843
45844     USES_CONTROLS=1
45845 fi
45846
45847 if test "$wxUSE_STATBOX" = "yes"; then
45848     cat >>confdefs.h <<\_ACEOF
45849 #define wxUSE_STATBOX 1
45850 _ACEOF
45851
45852     USES_CONTROLS=1
45853 fi
45854
45855 if test "$wxUSE_STATTEXT" = "yes"; then
45856     cat >>confdefs.h <<\_ACEOF
45857 #define wxUSE_STATTEXT 1
45858 _ACEOF
45859
45860     USES_CONTROLS=1
45861 fi
45862
45863 if test "$wxUSE_STATLINE" = "yes"; then
45864     cat >>confdefs.h <<\_ACEOF
45865 #define wxUSE_STATLINE 1
45866 _ACEOF
45867
45868     USES_CONTROLS=1
45869 fi
45870
45871 if test "$wxUSE_STATUSBAR" = "yes"; then
45872         cat >>confdefs.h <<\_ACEOF
45873 #define wxUSE_NATIVE_STATUSBAR 1
45874 _ACEOF
45875
45876     cat >>confdefs.h <<\_ACEOF
45877 #define wxUSE_STATUSBAR 1
45878 _ACEOF
45879
45880     USES_CONTROLS=1
45881
45882     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45883 fi
45884
45885 if test "$wxUSE_TEXTCTRL" = "yes"; then
45886     cat >>confdefs.h <<\_ACEOF
45887 #define wxUSE_TEXTCTRL 1
45888 _ACEOF
45889
45890     USES_CONTROLS=1
45891     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45892
45893             cat >>confdefs.h <<\_ACEOF
45894 #define wxUSE_RICHEDIT 1
45895 _ACEOF
45896
45897     cat >>confdefs.h <<\_ACEOF
45898 #define wxUSE_RICHEDIT2 1
45899 _ACEOF
45900
45901 fi
45902
45903 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45904     if test "$wxUSE_COCOA" = 1 ; then
45905         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45906 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45907         wxUSE_TOGGLEBTN=no
45908     fi
45909
45910     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45911         cat >>confdefs.h <<\_ACEOF
45912 #define wxUSE_TOGGLEBTN 1
45913 _ACEOF
45914
45915         USES_CONTROLS=1
45916     fi
45917 fi
45918
45919 if test "$wxUSE_TOOLBAR" = "yes"; then
45920     cat >>confdefs.h <<\_ACEOF
45921 #define wxUSE_TOOLBAR 1
45922 _ACEOF
45923
45924     USES_CONTROLS=1
45925
45926     if test "$wxUSE_UNIVERSAL" = "yes"; then
45927         wxUSE_TOOLBAR_NATIVE="no"
45928     else
45929         wxUSE_TOOLBAR_NATIVE="yes"
45930         cat >>confdefs.h <<\_ACEOF
45931 #define wxUSE_TOOLBAR_NATIVE 1
45932 _ACEOF
45933
45934     fi
45935
45936     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45937 fi
45938
45939 if test "$wxUSE_TOOLTIPS" = "yes"; then
45940     if test "$wxUSE_MOTIF" = 1; then
45941         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45942 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45943     else
45944         if test "$wxUSE_UNIVERSAL" = "yes"; then
45945             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45946 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45947         else
45948             cat >>confdefs.h <<\_ACEOF
45949 #define wxUSE_TOOLTIPS 1
45950 _ACEOF
45951
45952         fi
45953     fi
45954 fi
45955
45956 if test "$wxUSE_TREEBOOK" = "yes"; then
45957     cat >>confdefs.h <<\_ACEOF
45958 #define wxUSE_TREEBOOK 1
45959 _ACEOF
45960
45961     USES_CONTROLS=1
45962 fi
45963
45964 if test "$wxUSE_TOOLBOOK" = "yes"; then
45965     cat >>confdefs.h <<\_ACEOF
45966 #define wxUSE_TOOLBOOK 1
45967 _ACEOF
45968
45969     USES_CONTROLS=1
45970 fi
45971
45972 if test "$wxUSE_TREECTRL" = "yes"; then
45973     if test "$wxUSE_IMAGLIST" = "yes"; then
45974         cat >>confdefs.h <<\_ACEOF
45975 #define wxUSE_TREECTRL 1
45976 _ACEOF
45977
45978         USES_CONTROLS=1
45979         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45980     else
45981         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45982 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45983     fi
45984 fi
45985
45986 if test "$wxUSE_POPUPWIN" = "yes"; then
45987     if test "$wxUSE_COCOA" = 1 ; then
45988         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45989 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45990     else
45991         if test "$wxUSE_PM" = 1; then
45992             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45993 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45994         else
45995             cat >>confdefs.h <<\_ACEOF
45996 #define wxUSE_POPUPWIN 1
45997 _ACEOF
45998
45999             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46000
46001             USES_CONTROLS=1
46002         fi
46003     fi
46004 fi
46005
46006 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46007     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46008         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46009 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46010     else
46011         cat >>confdefs.h <<\_ACEOF
46012 #define wxUSE_DIALUP_MANAGER 1
46013 _ACEOF
46014
46015         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46016     fi
46017 fi
46018
46019 if test "$wxUSE_TIPWINDOW" = "yes"; then
46020     if test "$wxUSE_PM" = 1; then
46021         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46022 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46023     else
46024         cat >>confdefs.h <<\_ACEOF
46025 #define wxUSE_TIPWINDOW 1
46026 _ACEOF
46027
46028     fi
46029 fi
46030
46031 if test "$USES_CONTROLS" = 1; then
46032     cat >>confdefs.h <<\_ACEOF
46033 #define wxUSE_CONTROLS 1
46034 _ACEOF
46035
46036 fi
46037
46038
46039 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46040     cat >>confdefs.h <<\_ACEOF
46041 #define wxUSE_ACCESSIBILITY 1
46042 _ACEOF
46043
46044     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46045 fi
46046
46047 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46048     cat >>confdefs.h <<\_ACEOF
46049 #define wxUSE_DRAGIMAGE 1
46050 _ACEOF
46051
46052     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46053 fi
46054
46055 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46056     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46057         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46058 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46059     else
46060         cat >>confdefs.h <<\_ACEOF
46061 #define wxUSE_EXCEPTIONS 1
46062 _ACEOF
46063
46064         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46065     fi
46066 fi
46067
46068 USE_HTML=0
46069 if test "$wxUSE_HTML" = "yes"; then
46070     cat >>confdefs.h <<\_ACEOF
46071 #define wxUSE_HTML 1
46072 _ACEOF
46073
46074     USE_HTML=1
46075     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46076 fi
46077 if test "$wxUSE_WEBKIT" = "yes"; then
46078     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46079         old_CPPFLAGS="$CPPFLAGS"
46080         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46081         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46082 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46083 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46084   echo $ECHO_N "(cached) $ECHO_C" >&6
46085 else
46086   cat >conftest.$ac_ext <<_ACEOF
46087 /* confdefs.h.  */
46088 _ACEOF
46089 cat confdefs.h >>conftest.$ac_ext
46090 cat >>conftest.$ac_ext <<_ACEOF
46091 /* end confdefs.h.  */
46092
46093                            #include <Carbon/Carbon.h>
46094                            #include <WebKit/WebKit.h>
46095
46096
46097 #include <WebKit/HIWebView.h>
46098 _ACEOF
46099 rm -f conftest.$ac_objext
46100 if { (ac_try="$ac_compile"
46101 case "(($ac_try" in
46102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46103   *) ac_try_echo=$ac_try;;
46104 esac
46105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46106   (eval "$ac_compile") 2>conftest.er1
46107   ac_status=$?
46108   grep -v '^ *+' conftest.er1 >conftest.err
46109   rm -f conftest.er1
46110   cat conftest.err >&5
46111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112   (exit $ac_status); } && {
46113          test -z "$ac_c_werror_flag" ||
46114          test ! -s conftest.err
46115        } && test -s conftest.$ac_objext; then
46116   ac_cv_header_WebKit_HIWebView_h=yes
46117 else
46118   echo "$as_me: failed program was:" >&5
46119 sed 's/^/| /' conftest.$ac_ext >&5
46120
46121         ac_cv_header_WebKit_HIWebView_h=no
46122 fi
46123
46124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46125 fi
46126 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46127 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46128 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46129
46130                            cat >>confdefs.h <<\_ACEOF
46131 #define wxUSE_WEBKIT 1
46132 _ACEOF
46133
46134                            WEBKIT_LINK="-framework WebKit"
46135
46136 else
46137
46138                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46139 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46140                            wxUSE_WEBKIT=no
46141
46142 fi
46143
46144
46145         CPPFLAGS="$old_CPPFLAGS"
46146     elif test "$wxUSE_COCOA" = 1; then
46147         cat >>confdefs.h <<\_ACEOF
46148 #define wxUSE_WEBKIT 1
46149 _ACEOF
46150
46151     else
46152         wxUSE_WEBKIT=no
46153     fi
46154     if test "$wxUSE_WEBKIT" = "yes"; then
46155         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46156     fi
46157 fi
46158
46159 USE_XRC=0
46160 if test "$wxUSE_XRC" = "yes"; then
46161     if test "$wxUSE_XML" != "yes"; then
46162         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46163 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46164         wxUSE_XRC=no
46165     else
46166         cat >>confdefs.h <<\_ACEOF
46167 #define wxUSE_XRC 1
46168 _ACEOF
46169
46170         USE_XRC=1
46171         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46172     fi
46173 fi
46174
46175 USE_AUI=0
46176 if test "$wxUSE_AUI" = "yes"; then
46177    cat >>confdefs.h <<\_ACEOF
46178 #define wxUSE_AUI 1
46179 _ACEOF
46180
46181    USE_AUI=1
46182    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46183 fi
46184
46185 USE_PROPGRID=0
46186 if test "$wxUSE_PROPGRID" = "yes"; then
46187    cat >>confdefs.h <<\_ACEOF
46188 #define wxUSE_PROPGRID 1
46189 _ACEOF
46190
46191    USE_PROPGRID=1
46192    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46193 fi
46194
46195 USE_STC=0
46196 if test "$wxUSE_STC" = "yes"; then
46197    cat >>confdefs.h <<\_ACEOF
46198 #define wxUSE_STC 1
46199 _ACEOF
46200
46201    USE_STC=1
46202    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46203 fi
46204
46205 if test "$wxUSE_MENUS" = "yes"; then
46206     cat >>confdefs.h <<\_ACEOF
46207 #define wxUSE_MENUS 1
46208 _ACEOF
46209
46210     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46211 fi
46212
46213 if test "$wxUSE_METAFILE" = "yes"; then
46214     cat >>confdefs.h <<\_ACEOF
46215 #define wxUSE_METAFILE 1
46216 _ACEOF
46217
46218 fi
46219
46220 if test "$wxUSE_MIMETYPE" = "yes"; then
46221     cat >>confdefs.h <<\_ACEOF
46222 #define wxUSE_MIMETYPE 1
46223 _ACEOF
46224
46225 fi
46226
46227 if test "$wxUSE_MINIFRAME" = "yes"; then
46228     cat >>confdefs.h <<\_ACEOF
46229 #define wxUSE_MINIFRAME 1
46230 _ACEOF
46231
46232 fi
46233
46234 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46235     cat >>confdefs.h <<\_ACEOF
46236 #define wxUSE_SYSTEM_OPTIONS 1
46237 _ACEOF
46238
46239 fi
46240
46241 if test "$wxUSE_TASKBARICON" = "yes"; then
46242     cat >>confdefs.h <<\_ACEOF
46243 #define wxUSE_TASKBARICON 1
46244 _ACEOF
46245
46246     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46247 fi
46248
46249
46250 if test "$wxUSE_VALIDATORS" = "yes"; then
46251     cat >>confdefs.h <<\_ACEOF
46252 #define wxUSE_VALIDATORS 1
46253 _ACEOF
46254
46255     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46256 fi
46257
46258 if test "$wxUSE_PALETTE" = "yes" ; then
46259     if test "$wxUSE_DFB" = 1; then
46260         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46261 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46262         wxUSE_PALETTE=no
46263     else
46264         cat >>confdefs.h <<\_ACEOF
46265 #define wxUSE_PALETTE 1
46266 _ACEOF
46267
46268     fi
46269 fi
46270
46271 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46272     LIBS=" -lunicows $LIBS"
46273 fi
46274
46275 USE_RICHTEXT=0
46276 if test "$wxUSE_RICHTEXT" = "yes"; then
46277     cat >>confdefs.h <<\_ACEOF
46278 #define wxUSE_RICHTEXT 1
46279 _ACEOF
46280
46281     USE_RICHTEXT=1
46282     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46283 fi
46284
46285
46286 if test "$wxUSE_IMAGE" = "yes" ; then
46287     cat >>confdefs.h <<\_ACEOF
46288 #define wxUSE_IMAGE 1
46289 _ACEOF
46290
46291
46292     if test "$wxUSE_GIF" = "yes" ; then
46293       cat >>confdefs.h <<\_ACEOF
46294 #define wxUSE_GIF 1
46295 _ACEOF
46296
46297     fi
46298
46299     if test "$wxUSE_PCX" = "yes" ; then
46300       cat >>confdefs.h <<\_ACEOF
46301 #define wxUSE_PCX 1
46302 _ACEOF
46303
46304     fi
46305
46306     if test "$wxUSE_TGA" = "yes" ; then
46307       cat >>confdefs.h <<\_ACEOF
46308 #define wxUSE_TGA 1
46309 _ACEOF
46310
46311     fi
46312
46313     if test "$wxUSE_IFF" = "yes" ; then
46314       cat >>confdefs.h <<\_ACEOF
46315 #define wxUSE_IFF 1
46316 _ACEOF
46317
46318     fi
46319
46320     if test "$wxUSE_PNM" = "yes" ; then
46321       cat >>confdefs.h <<\_ACEOF
46322 #define wxUSE_PNM 1
46323 _ACEOF
46324
46325     fi
46326
46327     if test "$wxUSE_XPM" = "yes" ; then
46328       cat >>confdefs.h <<\_ACEOF
46329 #define wxUSE_XPM 1
46330 _ACEOF
46331
46332     fi
46333
46334     if test "$wxUSE_ICO_CUR" = "yes" ; then
46335       cat >>confdefs.h <<\_ACEOF
46336 #define wxUSE_ICO_CUR 1
46337 _ACEOF
46338
46339     fi
46340 fi
46341
46342
46343 if test "$wxUSE_ABOUTDLG" = "yes"; then
46344     cat >>confdefs.h <<\_ACEOF
46345 #define wxUSE_ABOUTDLG 1
46346 _ACEOF
46347
46348 fi
46349
46350 if test "$wxUSE_CHOICEDLG" = "yes"; then
46351     cat >>confdefs.h <<\_ACEOF
46352 #define wxUSE_CHOICEDLG 1
46353 _ACEOF
46354
46355 fi
46356
46357 if test "$wxUSE_COLOURDLG" = "yes"; then
46358     cat >>confdefs.h <<\_ACEOF
46359 #define wxUSE_COLOURDLG 1
46360 _ACEOF
46361
46362 fi
46363
46364 if test "$wxUSE_FILEDLG" = "yes"; then
46365     cat >>confdefs.h <<\_ACEOF
46366 #define wxUSE_FILEDLG 1
46367 _ACEOF
46368
46369 fi
46370
46371 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46372     cat >>confdefs.h <<\_ACEOF
46373 #define wxUSE_FINDREPLDLG 1
46374 _ACEOF
46375
46376 fi
46377
46378 if test "$wxUSE_FONTDLG" = "yes"; then
46379     cat >>confdefs.h <<\_ACEOF
46380 #define wxUSE_FONTDLG 1
46381 _ACEOF
46382
46383 fi
46384
46385 if test "$wxUSE_DIRDLG" = "yes"; then
46386     if test "$wxUSE_TREECTRL" != "yes"; then
46387         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46388 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46389     else
46390         cat >>confdefs.h <<\_ACEOF
46391 #define wxUSE_DIRDLG 1
46392 _ACEOF
46393
46394     fi
46395 fi
46396
46397 if test "$wxUSE_MSGDLG" = "yes"; then
46398     cat >>confdefs.h <<\_ACEOF
46399 #define wxUSE_MSGDLG 1
46400 _ACEOF
46401
46402 fi
46403
46404 if test "$wxUSE_NUMBERDLG" = "yes"; then
46405     cat >>confdefs.h <<\_ACEOF
46406 #define wxUSE_NUMBERDLG 1
46407 _ACEOF
46408
46409 fi
46410
46411 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46412     cat >>confdefs.h <<\_ACEOF
46413 #define wxUSE_PROGRESSDLG 1
46414 _ACEOF
46415
46416 fi
46417
46418 if test "$wxUSE_SPLASH" = "yes"; then
46419     cat >>confdefs.h <<\_ACEOF
46420 #define wxUSE_SPLASH 1
46421 _ACEOF
46422
46423     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46424 fi
46425
46426 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46427     cat >>confdefs.h <<\_ACEOF
46428 #define wxUSE_STARTUP_TIPS 1
46429 _ACEOF
46430
46431 fi
46432
46433 if test "$wxUSE_TEXTDLG" = "yes"; then
46434     cat >>confdefs.h <<\_ACEOF
46435 #define wxUSE_TEXTDLG 1
46436 _ACEOF
46437
46438 fi
46439
46440 if test "$wxUSE_WIZARDDLG" = "yes"; then
46441     cat >>confdefs.h <<\_ACEOF
46442 #define wxUSE_WIZARDDLG 1
46443 _ACEOF
46444
46445     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46446 fi
46447
46448
46449 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46450     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46451         cat >>confdefs.h <<\_ACEOF
46452 #define wxUSE_OWNER_DRAWN 1
46453 _ACEOF
46454
46455     fi
46456 fi
46457
46458
46459 if test "$wxUSE_MSW" = 1 ; then
46460
46461     if test "$wxUSE_DC_CACHEING" = "yes"; then
46462         cat >>confdefs.h <<\_ACEOF
46463 #define wxUSE_DC_CACHEING 1
46464 _ACEOF
46465
46466     fi
46467
46468     if test "$wxUSE_DIB" = "yes"; then
46469         cat >>confdefs.h <<\_ACEOF
46470 #define wxUSE_WXDIB 1
46471 _ACEOF
46472
46473     fi
46474
46475     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46476         cat >>confdefs.h <<\_ACEOF
46477 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46478 _ACEOF
46479
46480     fi
46481
46482     if test "$wxUSE_UXTHEME" = "yes"; then
46483         cat >>confdefs.h <<\_ACEOF
46484 #define wxUSE_UXTHEME 1
46485 _ACEOF
46486
46487     fi
46488
46489 fi
46490
46491 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46492     cat >>confdefs.h <<\_ACEOF
46493 #define wxUSE_AUTOID_MANAGEMENT 1
46494 _ACEOF
46495
46496 fi
46497
46498 if test "$USE_WIN32" = 1 ; then
46499     if test "$wxUSE_INICONF" = "yes"; then
46500         cat >>confdefs.h <<\_ACEOF
46501 #define wxUSE_INICONF 1
46502 _ACEOF
46503
46504     fi
46505
46506     if test "$wxUSE_REGKEY" = "yes"; then
46507         cat >>confdefs.h <<\_ACEOF
46508 #define wxUSE_REGKEY 1
46509 _ACEOF
46510
46511     fi
46512 fi
46513
46514
46515 if test "$wxUSE_MAC" = 1; then
46516         wxUSE_GRAPHICS_CONTEXT="yes"
46517 fi
46518
46519 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46520    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46521       cat >>confdefs.h <<\_ACEOF
46522 #define wxUSE_GRAPHICS_CONTEXT 1
46523 _ACEOF
46524
46525    elif test "$wxUSE_GTK" != 1; then
46526             cat >>confdefs.h <<\_ACEOF
46527 #define wxUSE_GRAPHICS_CONTEXT 1
46528 _ACEOF
46529
46530    else
46531
46532 pkg_failed=no
46533 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46534 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46535
46536 if test -n "$PKG_CONFIG"; then
46537     if test -n "$CAIRO_CFLAGS"; then
46538         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46539     else
46540         if test -n "$PKG_CONFIG" && \
46541     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46542   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46543   ac_status=$?
46544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46545   (exit $ac_status); }; then
46546   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46547 else
46548   pkg_failed=yes
46549 fi
46550     fi
46551 else
46552         pkg_failed=untried
46553 fi
46554 if test -n "$PKG_CONFIG"; then
46555     if test -n "$CAIRO_LIBS"; then
46556         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46557     else
46558         if test -n "$PKG_CONFIG" && \
46559     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46560   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46561   ac_status=$?
46562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46563   (exit $ac_status); }; then
46564   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46565 else
46566   pkg_failed=yes
46567 fi
46568     fi
46569 else
46570         pkg_failed=untried
46571 fi
46572
46573
46574
46575 if test $pkg_failed = yes; then
46576
46577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46578         _pkg_short_errors_supported=yes
46579 else
46580         _pkg_short_errors_supported=no
46581 fi
46582         if test $_pkg_short_errors_supported = yes; then
46583                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46584         else
46585                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46586         fi
46587         # Put the nasty error message in config.log where it belongs
46588         echo "$CAIRO_PKG_ERRORS" >&5
46589
46590         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46591 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46592
46593 elif test $pkg_failed = untried; then
46594         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46595 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46596
46597 else
46598         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46599         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46600         { echo "$as_me:$LINENO: result: yes" >&5
46601 echo "${ECHO_T}yes" >&6; }
46602         cat >>confdefs.h <<\_ACEOF
46603 #define wxUSE_GRAPHICS_CONTEXT 1
46604 _ACEOF
46605
46606 fi
46607    fi
46608 fi
46609
46610
46611 USE_MEDIA=0
46612
46613 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
46614     USE_MEDIA=1
46615
46616                 if test "$wxUSE_GTK" = 1; then
46617         wxUSE_GSTREAMER="no"
46618
46619                                                                 GST_VERSION_MAJOR=0
46620         GST_VERSION_MINOR=10
46621         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46622
46623         if test "$wxUSE_GSTREAMER8" = "no"; then
46624
46625 pkg_failed=no
46626 { echo "$as_me:$LINENO: checking for GST" >&5
46627 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46628
46629 if test -n "$PKG_CONFIG"; then
46630     if test -n "$GST_CFLAGS"; then
46631         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46632     else
46633         if test -n "$PKG_CONFIG" && \
46634     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46635   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46636   ac_status=$?
46637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638   (exit $ac_status); }; then
46639   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46640 else
46641   pkg_failed=yes
46642 fi
46643     fi
46644 else
46645         pkg_failed=untried
46646 fi
46647 if test -n "$PKG_CONFIG"; then
46648     if test -n "$GST_LIBS"; then
46649         pkg_cv_GST_LIBS="$GST_LIBS"
46650     else
46651         if test -n "$PKG_CONFIG" && \
46652     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46653   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46654   ac_status=$?
46655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46656   (exit $ac_status); }; then
46657   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46658 else
46659   pkg_failed=yes
46660 fi
46661     fi
46662 else
46663         pkg_failed=untried
46664 fi
46665
46666
46667
46668 if test $pkg_failed = yes; then
46669
46670 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46671         _pkg_short_errors_supported=yes
46672 else
46673         _pkg_short_errors_supported=no
46674 fi
46675         if test $_pkg_short_errors_supported = yes; then
46676                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46677         else
46678                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46679         fi
46680         # Put the nasty error message in config.log where it belongs
46681         echo "$GST_PKG_ERRORS" >&5
46682
46683
46684                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46685 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46686                     GST_VERSION_MINOR=8
46687
46688
46689 elif test $pkg_failed = untried; then
46690
46691                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46692 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46693                     GST_VERSION_MINOR=8
46694
46695
46696 else
46697         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46698         GST_LIBS=$pkg_cv_GST_LIBS
46699         { echo "$as_me:$LINENO: result: yes" >&5
46700 echo "${ECHO_T}yes" >&6; }
46701
46702                     wxUSE_GSTREAMER="yes"
46703                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46704
46705 fi
46706         else
46707                         GST_VERSION_MINOR=8
46708         fi
46709
46710         if test $GST_VERSION_MINOR = "8"; then
46711             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46712
46713 pkg_failed=no
46714 { echo "$as_me:$LINENO: checking for GST" >&5
46715 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46716
46717 if test -n "$PKG_CONFIG"; then
46718     if test -n "$GST_CFLAGS"; then
46719         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46720     else
46721         if test -n "$PKG_CONFIG" && \
46722     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46723   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46724   ac_status=$?
46725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46726   (exit $ac_status); }; then
46727   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46728 else
46729   pkg_failed=yes
46730 fi
46731     fi
46732 else
46733         pkg_failed=untried
46734 fi
46735 if test -n "$PKG_CONFIG"; then
46736     if test -n "$GST_LIBS"; then
46737         pkg_cv_GST_LIBS="$GST_LIBS"
46738     else
46739         if test -n "$PKG_CONFIG" && \
46740     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46741   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46742   ac_status=$?
46743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46744   (exit $ac_status); }; then
46745   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46746 else
46747   pkg_failed=yes
46748 fi
46749     fi
46750 else
46751         pkg_failed=untried
46752 fi
46753
46754
46755
46756 if test $pkg_failed = yes; then
46757
46758 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46759         _pkg_short_errors_supported=yes
46760 else
46761         _pkg_short_errors_supported=no
46762 fi
46763         if test $_pkg_short_errors_supported = yes; then
46764                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46765         else
46766                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46767         fi
46768         # Put the nasty error message in config.log where it belongs
46769         echo "$GST_PKG_ERRORS" >&5
46770
46771
46772                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46773 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46774
46775 elif test $pkg_failed = untried; then
46776
46777                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46778 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46779
46780 else
46781         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46782         GST_LIBS=$pkg_cv_GST_LIBS
46783         { echo "$as_me:$LINENO: result: yes" >&5
46784 echo "${ECHO_T}yes" >&6; }
46785         wxUSE_GSTREAMER="yes"
46786 fi
46787         fi
46788
46789
46790         if test "$wxUSE_GSTREAMER" = "yes"; then
46791             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46792             EXTRALIBS_MEDIA="$GST_LIBS"
46793
46794             cat >>confdefs.h <<\_ACEOF
46795 #define wxUSE_GSTREAMER 1
46796 _ACEOF
46797
46798         else
46799             USE_MEDIA=0
46800         fi
46801     fi
46802
46803     if test $USE_MEDIA = 1; then
46804         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46805         cat >>confdefs.h <<\_ACEOF
46806 #define wxUSE_MEDIACTRL 1
46807 _ACEOF
46808
46809     else
46810         if test "$wxUSE_MEDIACTRL" = "yes"; then
46811             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
46812 echo "$as_me: error: GStreamer not available" >&2;}
46813    { (exit 1); exit 1; }; }
46814         else
46815                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
46816 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
46817         fi
46818     fi
46819 fi
46820
46821
46822 if test "$cross_compiling" != "no"; then
46823         OSINFO="\"$host\""
46824 else
46825         OSINFO=`uname -s -r -m`
46826     OSINFO="\"$OSINFO\""
46827 fi
46828
46829 cat >>confdefs.h <<_ACEOF
46830 #define WXWIN_OS_DESCRIPTION $OSINFO
46831 _ACEOF
46832
46833
46834
46835 if test "x$prefix" != "xNONE"; then
46836     wxPREFIX=$prefix
46837 else
46838     wxPREFIX=$ac_default_prefix
46839 fi
46840
46841 cat >>confdefs.h <<_ACEOF
46842 #define wxINSTALL_PREFIX "$wxPREFIX"
46843 _ACEOF
46844
46845
46846
46847
46848 STD_BASE_LIBS="base"
46849 STD_GUI_LIBS=""
46850 BUILT_WX_LIBS="base"
46851 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46852
46853 if test "$wxUSE_SOCKETS" = "yes" ; then
46854     STD_BASE_LIBS="net $STD_BASE_LIBS"
46855     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46856 fi
46857 if test "$wxUSE_XML" = "yes" ; then
46858     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46859     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46860 fi
46861
46862 if test "$wxUSE_GUI" = "yes"; then
46863     STD_GUI_LIBS="adv core"
46864     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46865
46866     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46867         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46868         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46869     fi
46870     if test "$wxUSE_HTML" = "yes" ; then
46871         STD_GUI_LIBS="html $STD_GUI_LIBS"
46872         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46873     fi
46874     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46875         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46876     fi
46877     if test "$wxUSE_OPENGL" = "yes" ; then
46878         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46879     fi
46880     if test "$wxUSE_AUI" = "yes" ; then
46881         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46882     fi
46883     if test "$wxUSE_PROPGRID" = "yes" ; then
46884         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
46885     fi
46886     if test "$wxUSE_RICHTEXT" = "yes" ; then
46887         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
46888     fi
46889     if test "$wxUSE_STC" = "yes" ; then
46890         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46891     fi
46892     if test "$wxUSE_XRC" = "yes" ; then
46893         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46894         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46895     fi
46896 fi
46897
46898
46899
46900
46901
46902
46903
46904
46905 if test "$wxUSE_MAC" = 1 ; then
46906     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46907         if test "$USE_DARWIN" = 1; then
46908             LDFLAGS="$LDFLAGS -framework QuickTime"
46909         fi
46910     fi
46911     if test "$USE_DARWIN" = 1; then
46912         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
46913     fi
46914 fi
46915 if test "$wxUSE_COCOA" = 1 ; then
46916     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46917     if test "$wxUSE_MEDIACTRL" = "yes"; then
46918         LDFLAGS="$LDFLAGS -framework QuickTime"
46919     fi
46920 fi
46921 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46922     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46923 fi
46924
46925 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46926
46927 if test "$wxUSE_GUI" = "yes"; then
46928
46929
46930         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46931                      erase event exec font image minimal render \
46932                      shaped svg taborder vscroll widgets wrapsizer"
46933
46934     if test "$wxUSE_MONOLITHIC" != "yes"; then
46935         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46936     fi
46937     if test "$TOOLKIT" = "MSW"; then
46938         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46939         if test "$wxUSE_UNIVERSAL" != "yes"; then
46940             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46941         fi
46942     fi
46943     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46944         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46945     fi
46946 else
46947     SAMPLES_SUBDIRS="console"
46948     if test "$wxUSE_SOCKETS" = "yes" ; then
46949         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46950     fi
46951     if test "$wxUSE_IPC" = "yes" ; then
46952         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46953     fi
46954 fi
46955
46956
46957 if test "x$INTELCC" = "xyes" ; then
46958                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
46959 elif test "$GCC" = yes ; then
46960     CWARNINGS="-Wall -Wundef"
46961 fi
46962
46963 if test "x$INTELCXX" = "xyes" ; then
46964                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
46965 elif test "$GXX" = yes ; then
46966     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
46967     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
46968 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
46969 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
46970   echo $ECHO_N "(cached) $ECHO_C" >&6
46971 else
46972   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
46973
46974  ac_ext=cpp
46975 ac_cpp='$CXXCPP $CPPFLAGS'
46976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46979
46980  ac_save_CXXFLAGS="$CXXFLAGS"
46981 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
46982 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
46983    cat >conftest.$ac_ext <<_ACEOF
46984 /* confdefs.h.  */
46985 _ACEOF
46986 cat confdefs.h >>conftest.$ac_ext
46987 cat >>conftest.$ac_ext <<_ACEOF
46988 /* end confdefs.h.  */
46989
46990 int
46991 main ()
46992 {
46993 return 0;
46994   ;
46995   return 0;
46996 }
46997 _ACEOF
46998 rm -f conftest.$ac_objext
46999 if { (ac_try="$ac_compile"
47000 case "(($ac_try" in
47001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47002   *) ac_try_echo=$ac_try;;
47003 esac
47004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47005   (eval "$ac_compile") 2>conftest.er1
47006   ac_status=$?
47007   grep -v '^ *+' conftest.er1 >conftest.err
47008   rm -f conftest.er1
47009   cat conftest.err >&5
47010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47011   (exit $ac_status); } && {
47012          test -z "$ac_cxx_werror_flag" ||
47013          test ! -s conftest.err
47014        } && test -s conftest.$ac_objext; then
47015   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47016 else
47017   echo "$as_me: failed program was:" >&5
47018 sed 's/^/| /' conftest.$ac_ext >&5
47019
47020
47021 fi
47022
47023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47024 done
47025  CXXFLAGS="$ac_save_CXXFLAGS"
47026  ac_ext=c
47027 ac_cpp='$CPP $CPPFLAGS'
47028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47031
47032
47033 fi
47034 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47035 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47036 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47037      .ok|.ok,*)  ;;
47038    .|.no|.no,*)  ;;
47039    *)
47040    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47041    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47042   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47043   ac_status=$?
47044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47045   (exit $ac_status); }
47046    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47047   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47048   ac_status=$?
47049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47050   (exit $ac_status); }
47051                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47052    fi
47053  ;;
47054 esac
47055
47056 fi
47057
47058
47059 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47060 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47061
47062
47063 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47064  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47065  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47066  $CPPFLAGS `
47067
47068 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47069 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47070 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47071 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47072 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47073
47074 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47075
47076
47077 if test "x$MWCC" = "xyes"; then
47078
47079             CC="$CC -cwd source -I-"
47080     CXX="$CXX -cwd source -I-"
47081 fi
47082
47083
47084 LIBS=`echo $LIBS`
47085 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47086 EXTRALIBS_XML="$EXPAT_LINK"
47087 EXTRALIBS_HTML="$MSPACK_LINK"
47088 EXTRALIBS_MEDIA="$GST_LIBS"
47089 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47090 if test "$wxUSE_GUI" = "yes"; then
47091     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47092 fi
47093 if test "$wxUSE_OPENGL" = "yes"; then
47094     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47095 fi
47096
47097 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47098
47099 WXCONFIG_LIBS="$LIBS"
47100
47101 if test "$wxUSE_REGEX" = "builtin" ; then
47102     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47103 fi
47104 if test "$wxUSE_EXPAT" = "builtin" ; then
47105     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47106 fi
47107 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47108     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47109 fi
47110 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47111     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47112 fi
47113 if test "$wxUSE_LIBPNG" = "builtin" ; then
47114     wxconfig_3rdparty="png $wxconfig_3rdparty"
47115 fi
47116 if test "$wxUSE_ZLIB" = "builtin" ; then
47117     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47118 fi
47119
47120 for i in $wxconfig_3rdparty ; do
47121     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47122 done
47123
47124
47125 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47126     WXUNIV=1
47127
47128     case "$wxUNIV_THEMES" in
47129         ''|all)
47130             cat >>confdefs.h <<\_ACEOF
47131 #define wxUSE_ALL_THEMES 1
47132 _ACEOF
47133
47134             ;;
47135
47136         *)
47137             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47138                 cat >>confdefs.h <<_ACEOF
47139 #define wxUSE_THEME_$t 1
47140 _ACEOF
47141
47142             done
47143     esac
47144 else
47145     WXUNIV=0
47146 fi
47147
47148
47149
47150
47151
47152
47153
47154
47155 if test $wxUSE_MONOLITHIC = "yes" ; then
47156     MONOLITHIC=1
47157 else
47158     MONOLITHIC=0
47159 fi
47160
47161 if test $wxUSE_PLUGINS = "yes" ; then
47162     USE_PLUGINS=1
47163 else
47164     USE_PLUGINS=0
47165 fi
47166
47167 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47168     USE_QA=1
47169 else
47170     USE_QA=0
47171 fi
47172
47173 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47174     OFFICIAL_BUILD=1
47175 else
47176     OFFICIAL_BUILD=0
47177 fi
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
47205
47206 TOOLKIT_LOWERCASE=xxx
47207 if test "$TOOLKIT" = "MAC"; then
47208     TOOLKIT_LOWERCASE=osx_carbon
47209 fi
47210 if test "$TOOLKIT" = "OSX_CARBON"; then
47211     TOOLKIT_LOWERCASE=osx_carbon
47212 fi
47213 if test "$TOOLKIT" = "OSX_COCOA"; then
47214     TOOLKIT_LOWERCASE=osx_cocoa
47215 fi
47216 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47217     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47218 fi
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229 case "$TOOLKIT" in
47230     GTK)
47231         TOOLKIT_DESC="GTK+"
47232         if test "$WXGTK2" = 1; then
47233             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47234             if test "$wxUSE_GTKPRINT" = "yes" ; then
47235                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47236             fi
47237             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47238                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47239             fi
47240             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47241                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47242             fi
47243             if test "$wxUSE_LIBHILDON" = "yes"; then
47244                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47245             fi
47246
47247             if test "$TOOLKIT_EXTRA" != ""; then
47248                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47249             fi
47250         fi
47251         ;;
47252
47253     ?*)
47254         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47255         ;;
47256
47257     *)
47258         TOOLKIT_DESC="base only"
47259         ;;
47260 esac
47261
47262 if test "$wxUSE_WINE" = "yes"; then
47263     BAKEFILE_FORCE_PLATFORM=win32
47264 fi
47265
47266 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47267 then
47268     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47269 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47270 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47271   echo $ECHO_N "(cached) $ECHO_C" >&6
47272 else
47273
47274             echo '#include <stdio.h>
47275                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47276
47277             echo '#include "conftest.h"
47278                   int main()
47279                   {
47280                      printf("%ls", test_var);
47281                      return 0;
47282                   }' > conftest.cpp
47283
47284             wx_cv_gcc_pch_bug="pch not supported"
47285
47286             if $CXX conftest.h >/dev/null 2>&1
47287             then
47288                 wx_cv_gcc_pch_bug=
47289
47290                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47291                 then
47292                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47293                         grep awidetest >/dev/null
47294                     then
47295                         wx_cv_gcc_pch_bug=no
47296                     else
47297                         wx_cv_gcc_pch_bug=yes
47298                     fi
47299                 fi
47300             fi
47301
47302             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47303
47304 fi
47305 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47306 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47307
47308     if test "$wx_cv_gcc_pch_bug" = yes; then
47309                         bk_use_pch=no
47310     fi
47311 fi
47312
47313
47314
47315
47316
47317
47318
47319     if test "x$BAKEFILE_HOST" = "x"; then
47320                if test "x${host}" = "x" ; then
47321                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47322 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47323    { (exit 1); exit 1; }; }
47324                fi
47325
47326         BAKEFILE_HOST="${host}"
47327     fi
47328
47329     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47330
47331     if test -n "$ac_tool_prefix"; then
47332   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47336 if test "${ac_cv_prog_RANLIB+set}" = set; then
47337   echo $ECHO_N "(cached) $ECHO_C" >&6
47338 else
47339   if test -n "$RANLIB"; then
47340   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47341 else
47342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47343 for as_dir in $PATH
47344 do
47345   IFS=$as_save_IFS
47346   test -z "$as_dir" && as_dir=.
47347   for ac_exec_ext in '' $ac_executable_extensions; do
47348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47349     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47351     break 2
47352   fi
47353 done
47354 done
47355 IFS=$as_save_IFS
47356
47357 fi
47358 fi
47359 RANLIB=$ac_cv_prog_RANLIB
47360 if test -n "$RANLIB"; then
47361   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47362 echo "${ECHO_T}$RANLIB" >&6; }
47363 else
47364   { echo "$as_me:$LINENO: result: no" >&5
47365 echo "${ECHO_T}no" >&6; }
47366 fi
47367
47368
47369 fi
47370 if test -z "$ac_cv_prog_RANLIB"; then
47371   ac_ct_RANLIB=$RANLIB
47372   # Extract the first word of "ranlib", so it can be a program name with args.
47373 set dummy ranlib; ac_word=$2
47374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47377   echo $ECHO_N "(cached) $ECHO_C" >&6
47378 else
47379   if test -n "$ac_ct_RANLIB"; then
47380   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47381 else
47382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47383 for as_dir in $PATH
47384 do
47385   IFS=$as_save_IFS
47386   test -z "$as_dir" && as_dir=.
47387   for ac_exec_ext in '' $ac_executable_extensions; do
47388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47389     ac_cv_prog_ac_ct_RANLIB="ranlib"
47390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47391     break 2
47392   fi
47393 done
47394 done
47395 IFS=$as_save_IFS
47396
47397 fi
47398 fi
47399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47400 if test -n "$ac_ct_RANLIB"; then
47401   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47402 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47403 else
47404   { echo "$as_me:$LINENO: result: no" >&5
47405 echo "${ECHO_T}no" >&6; }
47406 fi
47407
47408   if test "x$ac_ct_RANLIB" = x; then
47409     RANLIB=":"
47410   else
47411     case $cross_compiling:$ac_tool_warned in
47412 yes:)
47413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47414 whose name does not start with the host triplet.  If you think this
47415 configuration is useful to you, please write to autoconf@gnu.org." >&5
47416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47417 whose name does not start with the host triplet.  If you think this
47418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47419 ac_tool_warned=yes ;;
47420 esac
47421     RANLIB=$ac_ct_RANLIB
47422   fi
47423 else
47424   RANLIB="$ac_cv_prog_RANLIB"
47425 fi
47426
47427     # Find a good install program.  We prefer a C program (faster),
47428 # so one script is as good as another.  But avoid the broken or
47429 # incompatible versions:
47430 # SysV /etc/install, /usr/sbin/install
47431 # SunOS /usr/etc/install
47432 # IRIX /sbin/install
47433 # AIX /bin/install
47434 # AmigaOS /C/install, which installs bootblocks on floppy discs
47435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47438 # OS/2's system install, which has a completely different semantic
47439 # ./install, which can be erroneously created by make from ./install.sh.
47440 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47442 if test -z "$INSTALL"; then
47443 if test "${ac_cv_path_install+set}" = set; then
47444   echo $ECHO_N "(cached) $ECHO_C" >&6
47445 else
47446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47447 for as_dir in $PATH
47448 do
47449   IFS=$as_save_IFS
47450   test -z "$as_dir" && as_dir=.
47451   # Account for people who put trailing slashes in PATH elements.
47452 case $as_dir/ in
47453   ./ | .// | /cC/* | \
47454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47455   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47456   /usr/ucb/* ) ;;
47457   *)
47458     # OSF1 and SCO ODT 3.0 have their own names for install.
47459     # Don't use installbsd from OSF since it installs stuff as root
47460     # by default.
47461     for ac_prog in ginstall scoinst install; do
47462       for ac_exec_ext in '' $ac_executable_extensions; do
47463         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47464           if test $ac_prog = install &&
47465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47466             # AIX install.  It has an incompatible calling convention.
47467             :
47468           elif test $ac_prog = install &&
47469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47470             # program-specific install script used by HP pwplus--don't use.
47471             :
47472           else
47473             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47474             break 3
47475           fi
47476         fi
47477       done
47478     done
47479     ;;
47480 esac
47481 done
47482 IFS=$as_save_IFS
47483
47484
47485 fi
47486   if test "${ac_cv_path_install+set}" = set; then
47487     INSTALL=$ac_cv_path_install
47488   else
47489     # As a last resort, use the slow shell script.  Don't cache a
47490     # value for INSTALL within a source directory, because that will
47491     # break other packages using the cache if that directory is
47492     # removed, or if the value is a relative name.
47493     INSTALL=$ac_install_sh
47494   fi
47495 fi
47496 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47497 echo "${ECHO_T}$INSTALL" >&6; }
47498
47499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47500 # It thinks the first close brace ends the variable substitution.
47501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47502
47503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47504
47505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47506
47507     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47509 LN_S=$as_ln_s
47510 if test "$LN_S" = "ln -s"; then
47511   { echo "$as_me:$LINENO: result: yes" >&5
47512 echo "${ECHO_T}yes" >&6; }
47513 else
47514   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47515 echo "${ECHO_T}no, using $LN_S" >&6; }
47516 fi
47517
47518
47519     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47520 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47521 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47522 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47523   echo $ECHO_N "(cached) $ECHO_C" >&6
47524 else
47525   cat >conftest.make <<\_ACEOF
47526 SHELL = /bin/sh
47527 all:
47528         @echo '@@@%%%=$(MAKE)=@@@%%%'
47529 _ACEOF
47530 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47531 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47532   *@@@%%%=?*=@@@%%%*)
47533     eval ac_cv_prog_make_${ac_make}_set=yes;;
47534   *)
47535     eval ac_cv_prog_make_${ac_make}_set=no;;
47536 esac
47537 rm -f conftest.make
47538 fi
47539 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47540   { echo "$as_me:$LINENO: result: yes" >&5
47541 echo "${ECHO_T}yes" >&6; }
47542   SET_MAKE=
47543 else
47544   { echo "$as_me:$LINENO: result: no" >&5
47545 echo "${ECHO_T}no" >&6; }
47546   SET_MAKE="MAKE=${MAKE-make}"
47547 fi
47548
47549
47550
47551     if test "x$SUNCXX" = "xyes"; then
47552                                 AR=$CXX
47553         AROPTIONS="-xar -o"
47554
47555     elif test "x$SGICC" = "xyes"; then
47556                 AR=$CXX
47557         AROPTIONS="-ar -o"
47558
47559     else
47560         if test -n "$ac_tool_prefix"; then
47561   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47562 set dummy ${ac_tool_prefix}ar; ac_word=$2
47563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47565 if test "${ac_cv_prog_AR+set}" = set; then
47566   echo $ECHO_N "(cached) $ECHO_C" >&6
47567 else
47568   if test -n "$AR"; then
47569   ac_cv_prog_AR="$AR" # Let the user override the test.
47570 else
47571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47572 for as_dir in $PATH
47573 do
47574   IFS=$as_save_IFS
47575   test -z "$as_dir" && as_dir=.
47576   for ac_exec_ext in '' $ac_executable_extensions; do
47577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47578     ac_cv_prog_AR="${ac_tool_prefix}ar"
47579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47580     break 2
47581   fi
47582 done
47583 done
47584 IFS=$as_save_IFS
47585
47586 fi
47587 fi
47588 AR=$ac_cv_prog_AR
47589 if test -n "$AR"; then
47590   { echo "$as_me:$LINENO: result: $AR" >&5
47591 echo "${ECHO_T}$AR" >&6; }
47592 else
47593   { echo "$as_me:$LINENO: result: no" >&5
47594 echo "${ECHO_T}no" >&6; }
47595 fi
47596
47597
47598 fi
47599 if test -z "$ac_cv_prog_AR"; then
47600   ac_ct_AR=$AR
47601   # Extract the first word of "ar", so it can be a program name with args.
47602 set dummy ar; ac_word=$2
47603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47605 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47606   echo $ECHO_N "(cached) $ECHO_C" >&6
47607 else
47608   if test -n "$ac_ct_AR"; then
47609   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47610 else
47611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47612 for as_dir in $PATH
47613 do
47614   IFS=$as_save_IFS
47615   test -z "$as_dir" && as_dir=.
47616   for ac_exec_ext in '' $ac_executable_extensions; do
47617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47618     ac_cv_prog_ac_ct_AR="ar"
47619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47620     break 2
47621   fi
47622 done
47623 done
47624 IFS=$as_save_IFS
47625
47626 fi
47627 fi
47628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47629 if test -n "$ac_ct_AR"; then
47630   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47631 echo "${ECHO_T}$ac_ct_AR" >&6; }
47632 else
47633   { echo "$as_me:$LINENO: result: no" >&5
47634 echo "${ECHO_T}no" >&6; }
47635 fi
47636
47637   if test "x$ac_ct_AR" = x; then
47638     AR="ar"
47639   else
47640     case $cross_compiling:$ac_tool_warned in
47641 yes:)
47642 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47643 whose name does not start with the host triplet.  If you think this
47644 configuration is useful to you, please write to autoconf@gnu.org." >&5
47645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47646 whose name does not start with the host triplet.  If you think this
47647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47648 ac_tool_warned=yes ;;
47649 esac
47650     AR=$ac_ct_AR
47651   fi
47652 else
47653   AR="$ac_cv_prog_AR"
47654 fi
47655
47656         AROPTIONS=rcu
47657     fi
47658
47659
47660     if test -n "$ac_tool_prefix"; then
47661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47662 set dummy ${ac_tool_prefix}strip; ac_word=$2
47663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47665 if test "${ac_cv_prog_STRIP+set}" = set; then
47666   echo $ECHO_N "(cached) $ECHO_C" >&6
47667 else
47668   if test -n "$STRIP"; then
47669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47670 else
47671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47672 for as_dir in $PATH
47673 do
47674   IFS=$as_save_IFS
47675   test -z "$as_dir" && as_dir=.
47676   for ac_exec_ext in '' $ac_executable_extensions; do
47677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47680     break 2
47681   fi
47682 done
47683 done
47684 IFS=$as_save_IFS
47685
47686 fi
47687 fi
47688 STRIP=$ac_cv_prog_STRIP
47689 if test -n "$STRIP"; then
47690   { echo "$as_me:$LINENO: result: $STRIP" >&5
47691 echo "${ECHO_T}$STRIP" >&6; }
47692 else
47693   { echo "$as_me:$LINENO: result: no" >&5
47694 echo "${ECHO_T}no" >&6; }
47695 fi
47696
47697
47698 fi
47699 if test -z "$ac_cv_prog_STRIP"; then
47700   ac_ct_STRIP=$STRIP
47701   # Extract the first word of "strip", so it can be a program name with args.
47702 set dummy strip; ac_word=$2
47703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47706   echo $ECHO_N "(cached) $ECHO_C" >&6
47707 else
47708   if test -n "$ac_ct_STRIP"; then
47709   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47710 else
47711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47712 for as_dir in $PATH
47713 do
47714   IFS=$as_save_IFS
47715   test -z "$as_dir" && as_dir=.
47716   for ac_exec_ext in '' $ac_executable_extensions; do
47717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47718     ac_cv_prog_ac_ct_STRIP="strip"
47719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47720     break 2
47721   fi
47722 done
47723 done
47724 IFS=$as_save_IFS
47725
47726 fi
47727 fi
47728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47729 if test -n "$ac_ct_STRIP"; then
47730   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47731 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47732 else
47733   { echo "$as_me:$LINENO: result: no" >&5
47734 echo "${ECHO_T}no" >&6; }
47735 fi
47736
47737   if test "x$ac_ct_STRIP" = x; then
47738     STRIP=":"
47739   else
47740     case $cross_compiling:$ac_tool_warned in
47741 yes:)
47742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47743 whose name does not start with the host triplet.  If you think this
47744 configuration is useful to you, please write to autoconf@gnu.org." >&5
47745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47746 whose name does not start with the host triplet.  If you think this
47747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47748 ac_tool_warned=yes ;;
47749 esac
47750     STRIP=$ac_ct_STRIP
47751   fi
47752 else
47753   STRIP="$ac_cv_prog_STRIP"
47754 fi
47755
47756     if test -n "$ac_tool_prefix"; then
47757   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47758 set dummy ${ac_tool_prefix}nm; ac_word=$2
47759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47761 if test "${ac_cv_prog_NM+set}" = set; then
47762   echo $ECHO_N "(cached) $ECHO_C" >&6
47763 else
47764   if test -n "$NM"; then
47765   ac_cv_prog_NM="$NM" # Let the user override the test.
47766 else
47767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47768 for as_dir in $PATH
47769 do
47770   IFS=$as_save_IFS
47771   test -z "$as_dir" && as_dir=.
47772   for ac_exec_ext in '' $ac_executable_extensions; do
47773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47774     ac_cv_prog_NM="${ac_tool_prefix}nm"
47775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47776     break 2
47777   fi
47778 done
47779 done
47780 IFS=$as_save_IFS
47781
47782 fi
47783 fi
47784 NM=$ac_cv_prog_NM
47785 if test -n "$NM"; then
47786   { echo "$as_me:$LINENO: result: $NM" >&5
47787 echo "${ECHO_T}$NM" >&6; }
47788 else
47789   { echo "$as_me:$LINENO: result: no" >&5
47790 echo "${ECHO_T}no" >&6; }
47791 fi
47792
47793
47794 fi
47795 if test -z "$ac_cv_prog_NM"; then
47796   ac_ct_NM=$NM
47797   # Extract the first word of "nm", so it can be a program name with args.
47798 set dummy nm; ac_word=$2
47799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47801 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47802   echo $ECHO_N "(cached) $ECHO_C" >&6
47803 else
47804   if test -n "$ac_ct_NM"; then
47805   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47806 else
47807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47808 for as_dir in $PATH
47809 do
47810   IFS=$as_save_IFS
47811   test -z "$as_dir" && as_dir=.
47812   for ac_exec_ext in '' $ac_executable_extensions; do
47813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47814     ac_cv_prog_ac_ct_NM="nm"
47815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47816     break 2
47817   fi
47818 done
47819 done
47820 IFS=$as_save_IFS
47821
47822 fi
47823 fi
47824 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47825 if test -n "$ac_ct_NM"; then
47826   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47827 echo "${ECHO_T}$ac_ct_NM" >&6; }
47828 else
47829   { echo "$as_me:$LINENO: result: no" >&5
47830 echo "${ECHO_T}no" >&6; }
47831 fi
47832
47833   if test "x$ac_ct_NM" = x; then
47834     NM=":"
47835   else
47836     case $cross_compiling:$ac_tool_warned in
47837 yes:)
47838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47839 whose name does not start with the host triplet.  If you think this
47840 configuration is useful to you, please write to autoconf@gnu.org." >&5
47841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47842 whose name does not start with the host triplet.  If you think this
47843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47844 ac_tool_warned=yes ;;
47845 esac
47846     NM=$ac_ct_NM
47847   fi
47848 else
47849   NM="$ac_cv_prog_NM"
47850 fi
47851
47852
47853             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47854 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47855     INSTALL_TEST_DIR=acbftest$$
47856     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47857     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47858         rmdir $INSTALL_TEST_DIR
47859                         INSTALL_DIR='$(INSTALL) -d'
47860         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47861 echo "${ECHO_T}$INSTALL -d" >&6; }
47862     else
47863         INSTALL_DIR="mkdir -p"
47864         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47865 echo "${ECHO_T}mkdir -p" >&6; }
47866     fi
47867
47868
47869     LDFLAGS_GUI=
47870     case ${BAKEFILE_HOST} in
47871         *-*-cygwin* | *-*-mingw32* )
47872         LDFLAGS_GUI="-mwindows"
47873     esac
47874
47875
47876     fi
47877
47878         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47879 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47880 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47881   echo $ECHO_N "(cached) $ECHO_C" >&6
47882 else
47883
47884         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47885                 egrep -s GNU > /dev/null); then
47886             bakefile_cv_prog_makeisgnu="yes"
47887         else
47888             bakefile_cv_prog_makeisgnu="no"
47889         fi
47890
47891 fi
47892 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47893 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47894
47895     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47896         IF_GNU_MAKE=""
47897     else
47898         IF_GNU_MAKE="#"
47899     fi
47900
47901
47902
47903     PLATFORM_UNIX=0
47904     PLATFORM_WIN32=0
47905     PLATFORM_MSDOS=0
47906     PLATFORM_MAC=0
47907     PLATFORM_MACOS=0
47908     PLATFORM_MACOSX=0
47909     PLATFORM_OS2=0
47910     PLATFORM_BEOS=0
47911
47912     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47913         case "${BAKEFILE_HOST}" in
47914             *-*-mingw32* )
47915                 PLATFORM_WIN32=1
47916             ;;
47917             *-pc-msdosdjgpp )
47918                 PLATFORM_MSDOS=1
47919             ;;
47920             *-pc-os2_emx | *-pc-os2-emx )
47921                 PLATFORM_OS2=1
47922             ;;
47923             *-*-darwin* )
47924                 PLATFORM_MAC=1
47925                 PLATFORM_MACOSX=1
47926             ;;
47927             *-*-beos* )
47928                 PLATFORM_BEOS=1
47929             ;;
47930             powerpc-apple-macos* )
47931                 PLATFORM_MAC=1
47932                 PLATFORM_MACOS=1
47933             ;;
47934             * )
47935                 PLATFORM_UNIX=1
47936             ;;
47937         esac
47938     else
47939         case "$BAKEFILE_FORCE_PLATFORM" in
47940             win32 )
47941                 PLATFORM_WIN32=1
47942             ;;
47943             msdos )
47944                 PLATFORM_MSDOS=1
47945             ;;
47946             os2 )
47947                 PLATFORM_OS2=1
47948             ;;
47949             darwin )
47950                 PLATFORM_MAC=1
47951                 PLATFORM_MACOSX=1
47952             ;;
47953             unix )
47954                 PLATFORM_UNIX=1
47955             ;;
47956             beos )
47957                 PLATFORM_BEOS=1
47958             ;;
47959             * )
47960                                             ;;
47961         esac
47962     fi
47963
47964
47965
47966
47967
47968
47969
47970
47971
47972
47973
47974     # Check whether --enable-omf was given.
47975 if test "${enable_omf+set}" = set; then
47976   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47977 fi
47978
47979
47980     case "${BAKEFILE_HOST}" in
47981       *-*-darwin* )
47982                         if test "x$GCC" = "xyes"; then
47983             CFLAGS="$CFLAGS -fno-common"
47984             CXXFLAGS="$CXXFLAGS -fno-common"
47985         fi
47986         if test "x$XLCC" = "xyes"; then
47987             CFLAGS="$CFLAGS -qnocommon"
47988             CXXFLAGS="$CXXFLAGS -qnocommon"
47989         fi
47990         ;;
47991
47992       *-pc-os2_emx | *-pc-os2-emx )
47993         if test "x$bk_os2_use_omf" = "xyes" ; then
47994             AR=emxomfar
47995             RANLIB=:
47996             LDFLAGS="-Zomf $LDFLAGS"
47997             CFLAGS="-Zomf $CFLAGS"
47998             CXXFLAGS="-Zomf $CXXFLAGS"
47999             OS2_LIBEXT="lib"
48000         else
48001             OS2_LIBEXT="a"
48002         fi
48003         ;;
48004
48005       i*86-*-beos* )
48006         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48007         ;;
48008     esac
48009
48010
48011     SO_SUFFIX="so"
48012     SO_SUFFIX_MODULE="so"
48013     EXEEXT=""
48014     LIBPREFIX="lib"
48015     LIBEXT=".a"
48016     DLLPREFIX="lib"
48017     DLLPREFIX_MODULE=""
48018     DLLIMP_SUFFIX=""
48019     dlldir="$libdir"
48020
48021     case "${BAKEFILE_HOST}" in
48022                         ia64-hp-hpux* )
48023         ;;
48024         *-hp-hpux* )
48025             SO_SUFFIX="sl"
48026             SO_SUFFIX_MODULE="sl"
48027         ;;
48028         *-*-aix* )
48029                                                                         SO_SUFFIX="a"
48030             SO_SUFFIX_MODULE="a"
48031         ;;
48032         *-*-cygwin* )
48033             SO_SUFFIX="dll"
48034             SO_SUFFIX_MODULE="dll"
48035             DLLIMP_SUFFIX="dll.a"
48036             EXEEXT=".exe"
48037             DLLPREFIX="cyg"
48038             dlldir="$bindir"
48039         ;;
48040         *-*-mingw32* )
48041             SO_SUFFIX="dll"
48042             SO_SUFFIX_MODULE="dll"
48043             DLLIMP_SUFFIX="dll.a"
48044             EXEEXT=".exe"
48045             DLLPREFIX=""
48046             dlldir="$bindir"
48047         ;;
48048         *-pc-msdosdjgpp )
48049             EXEEXT=".exe"
48050             DLLPREFIX=""
48051             dlldir="$bindir"
48052         ;;
48053         *-pc-os2_emx | *-pc-os2-emx )
48054             SO_SUFFIX="dll"
48055             SO_SUFFIX_MODULE="dll"
48056             DLLIMP_SUFFIX=$OS2_LIBEXT
48057             EXEEXT=".exe"
48058             DLLPREFIX=""
48059             LIBPREFIX=""
48060             LIBEXT=".$OS2_LIBEXT"
48061             dlldir="$bindir"
48062         ;;
48063         *-*-darwin* )
48064             SO_SUFFIX="dylib"
48065             SO_SUFFIX_MODULE="bundle"
48066         ;;
48067     esac
48068
48069     if test "x$DLLIMP_SUFFIX" = "x" ; then
48070         DLLIMP_SUFFIX="$SO_SUFFIX"
48071     fi
48072
48073
48074
48075
48076
48077
48078
48079
48080
48081
48082
48083
48084         PIC_FLAG=""
48085     if test "x$GCC" = "xyes"; then
48086                 PIC_FLAG="-fPIC"
48087     fi
48088
48089         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48090     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48091     WINDOWS_IMPLIB=0
48092
48093     case "${BAKEFILE_HOST}" in
48094       *-hp-hpux* )
48095                 if test "x$GCC" != "xyes"; then
48096                         LDFLAGS="$LDFLAGS -L/usr/lib"
48097
48098             SHARED_LD_CC="${CC} -b -o"
48099             SHARED_LD_CXX="${CXX} -b -o"
48100             PIC_FLAG="+Z"
48101         fi
48102       ;;
48103
48104       *-*-linux* )
48105                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48106             PIC_FLAG="-KPIC"
48107         elif test "x$SUNCXX" = "xyes"; then
48108             SHARED_LD_CC="${CC} -G -o"
48109             SHARED_LD_CXX="${CXX} -G -o"
48110             PIC_FLAG="-KPIC"
48111         fi
48112       ;;
48113
48114       *-*-solaris2* )
48115         if test "x$SUNCXX" = xyes ; then
48116             SHARED_LD_CC="${CC} -G -o"
48117             SHARED_LD_CXX="${CXX} -G -o"
48118             PIC_FLAG="-KPIC"
48119         fi
48120       ;;
48121
48122       *-*-darwin* )
48123
48124 D='$'
48125 cat <<EOF >shared-ld-sh
48126 #!/bin/sh
48127 #-----------------------------------------------------------------------------
48128 #-- Name:        distrib/mac/shared-ld-sh
48129 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48130 #-- Author:      Gilles Depeyrot
48131 #-- Copyright:   (c) 2002 Gilles Depeyrot
48132 #-- Licence:     any use permitted
48133 #-----------------------------------------------------------------------------
48134
48135 verbose=0
48136 args=""
48137 objects=""
48138 linking_flag="-dynamiclib"
48139 ldargs="-r -keep_private_externs -nostdlib"
48140
48141 if test "x${D}CXX" = "x"; then
48142     CXX="c++"
48143 fi
48144
48145 while test ${D}# -gt 0; do
48146     case ${D}1 in
48147
48148        -v)
48149         verbose=1
48150         ;;
48151
48152        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48153         # collect these options and values
48154         args="${D}{args} ${D}1 ${D}2"
48155         shift
48156         ;;
48157
48158        -arch|-isysroot)
48159         # collect these options and values
48160         ldargs="${D}{ldargs} ${D}1 ${D}2"
48161         shift
48162         ;;
48163
48164        -s|-Wl,*)
48165         # collect these load args
48166         ldargs="${D}{ldargs} ${D}1"
48167         ;;
48168
48169        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48170         # collect these options
48171         args="${D}{args} ${D}1"
48172         ;;
48173
48174        -dynamiclib|-bundle)
48175         linking_flag="${D}1"
48176         ;;
48177
48178        -*)
48179         echo "shared-ld: unhandled option '${D}1'"
48180         exit 1
48181         ;;
48182
48183         *.o | *.a | *.dylib)
48184         # collect object files
48185         objects="${D}{objects} ${D}1"
48186         ;;
48187
48188         *)
48189         echo "shared-ld: unhandled argument '${D}1'"
48190         exit 1
48191         ;;
48192
48193     esac
48194     shift
48195 done
48196
48197 status=0
48198
48199 #
48200 # Link one module containing all the others
48201 #
48202 if test ${D}{verbose} = 1; then
48203     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48204 fi
48205 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48206 status=${D}?
48207
48208 #
48209 # Link the shared library from the single module created, but only if the
48210 # previous command didn't fail:
48211 #
48212 if test ${D}{status} = 0; then
48213     if test ${D}{verbose} = 1; then
48214         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48215     fi
48216     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48217     status=${D}?
48218 fi
48219
48220 #
48221 # Remove intermediate module
48222 #
48223 rm -f master.${D}${D}.o
48224
48225 exit ${D}status
48226 EOF
48227
48228         chmod +x shared-ld-sh
48229
48230         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48231         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48232
48233
48234                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48235 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48236 if test "${bakefile_cv_gcc31+set}" = set; then
48237   echo $ECHO_N "(cached) $ECHO_C" >&6
48238 else
48239
48240            cat >conftest.$ac_ext <<_ACEOF
48241 /* confdefs.h.  */
48242 _ACEOF
48243 cat confdefs.h >>conftest.$ac_ext
48244 cat >>conftest.$ac_ext <<_ACEOF
48245 /* end confdefs.h.  */
48246
48247 int
48248 main ()
48249 {
48250
48251                    #if (__GNUC__ < 3) || \
48252                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48253                        This is old gcc
48254                    #endif
48255
48256   ;
48257   return 0;
48258 }
48259 _ACEOF
48260 rm -f conftest.$ac_objext
48261 if { (ac_try="$ac_compile"
48262 case "(($ac_try" in
48263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48264   *) ac_try_echo=$ac_try;;
48265 esac
48266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48267   (eval "$ac_compile") 2>conftest.er1
48268   ac_status=$?
48269   grep -v '^ *+' conftest.er1 >conftest.err
48270   rm -f conftest.er1
48271   cat conftest.err >&5
48272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48273   (exit $ac_status); } && {
48274          test -z "$ac_c_werror_flag" ||
48275          test ! -s conftest.err
48276        } && test -s conftest.$ac_objext; then
48277
48278                    bakefile_cv_gcc31=yes
48279
48280 else
48281   echo "$as_me: failed program was:" >&5
48282 sed 's/^/| /' conftest.$ac_ext >&5
48283
48284
48285                    bakefile_cv_gcc31=no
48286
48287
48288 fi
48289
48290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48291
48292 fi
48293 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48294 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48295         if test "$bakefile_cv_gcc31" = "no"; then
48296                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48297             SHARED_LD_CXX="$SHARED_LD_CC"
48298         else
48299                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48300             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48301         fi
48302
48303         if test "x$GCC" == "xyes"; then
48304             PIC_FLAG="-dynamic -fPIC"
48305         fi
48306         if test "x$XLCC" = "xyes"; then
48307             PIC_FLAG="-dynamic -DPIC"
48308         fi
48309       ;;
48310
48311       *-*-aix* )
48312         if test "x$GCC" = "xyes"; then
48313                                                             PIC_FLAG=""
48314
48315                                                                                     case "${BAKEFILE_HOST}" in
48316                 *-*-aix5* )
48317                     LD_EXPFULL="-Wl,-bexpfull"
48318                     ;;
48319             esac
48320
48321             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48322             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48323         else
48324                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48325 set dummy makeC++SharedLib; ac_word=$2
48326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48328 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48329   echo $ECHO_N "(cached) $ECHO_C" >&6
48330 else
48331   if test -n "$AIX_CXX_LD"; then
48332   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48333 else
48334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48335 for as_dir in $PATH
48336 do
48337   IFS=$as_save_IFS
48338   test -z "$as_dir" && as_dir=.
48339   for ac_exec_ext in '' $ac_executable_extensions; do
48340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48341     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48343     break 2
48344   fi
48345 done
48346 done
48347 IFS=$as_save_IFS
48348
48349   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48350 fi
48351 fi
48352 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48353 if test -n "$AIX_CXX_LD"; then
48354   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48355 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48356 else
48357   { echo "$as_me:$LINENO: result: no" >&5
48358 echo "${ECHO_T}no" >&6; }
48359 fi
48360
48361
48362             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48363             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48364         fi
48365       ;;
48366
48367       *-*-beos* )
48368                         SHARED_LD_CC="${LD} -nostart -o"
48369         SHARED_LD_CXX="${LD} -nostart -o"
48370       ;;
48371
48372       *-*-irix* )
48373                 if test "x$GCC" != "xyes"; then
48374             PIC_FLAG="-KPIC"
48375         fi
48376       ;;
48377
48378       *-*-cygwin* | *-*-mingw32* )
48379         PIC_FLAG=""
48380         SHARED_LD_CC="\$(CC) -shared -o"
48381         SHARED_LD_CXX="\$(CXX) -shared -o"
48382         WINDOWS_IMPLIB=1
48383       ;;
48384
48385       *-pc-os2_emx | *-pc-os2-emx )
48386         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48387         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48388         PIC_FLAG=""
48389
48390 D='$'
48391 cat <<EOF >dllar.sh
48392 #!/bin/sh
48393 #
48394 # dllar - a tool to build both a .dll and an .a file
48395 # from a set of object (.o) files for EMX/OS2.
48396 #
48397 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48398 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48399 #
48400 #  This script will accept a set of files on the command line.
48401 #  All the public symbols from the .o files will be exported into
48402 #  a .DEF file, then linker will be run (through gcc) against them to
48403 #  build a shared library consisting of all given .o files. All libraries
48404 #  (.a) will be first decompressed into component .o files then act as
48405 #  described above. You can optionally give a description (-d "description")
48406 #  which will be put into .DLL. To see the list of accepted options (as well
48407 #  as command-line format) simply run this program without options. The .DLL
48408 #  is built to be imported by name (there is no guarantee that new versions
48409 #  of the library you build will have same ordinals for same symbols).
48410 #
48411 #  dllar is free software; you can redistribute it and/or modify
48412 #  it under the terms of the GNU General Public License as published by
48413 #  the Free Software Foundation; either version 2, or (at your option)
48414 #  any later version.
48415 #
48416 #  dllar is distributed in the hope that it will be useful,
48417 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48418 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48419 #  GNU General Public License for more details.
48420 #
48421 #  You should have received a copy of the GNU General Public License
48422 #  along with dllar; see the file COPYING.  If not, write to the Free
48423 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48424 #  02111-1307, USA.
48425
48426 # To successfuly run this program you will need:
48427 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48428 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48429 #  - gcc
48430 #    (used to build the .dll)
48431 #  - emxexp
48432 #    (used to create .def file from .o files)
48433 #  - emximp
48434 #    (used to create .a file from .def file)
48435 #  - GNU text utilites (cat, sort, uniq)
48436 #    used to process emxexp output
48437 #  - GNU file utilities (mv, rm)
48438 #  - GNU sed
48439 #  - lxlite (optional, see flag below)
48440 #    (used for general .dll cleanup)
48441 #
48442
48443 flag_USE_LXLITE=1;
48444
48445 #
48446 # helper functions
48447 # basnam, variant of basename, which does _not_ remove the path, _iff_
48448 #                              second argument (suffix to remove) is given
48449 basnam(){
48450     case ${D}# in
48451     1)
48452         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48453         ;;
48454     2)
48455         echo ${D}1 | sed 's/'${D}2'${D}//'
48456         ;;
48457     *)
48458         echo "error in basnam ${D}*"
48459         exit 8
48460         ;;
48461     esac
48462 }
48463
48464 # Cleanup temporary files and output
48465 CleanUp() {
48466     cd ${D}curDir
48467     for i in ${D}inputFiles ; do
48468         case ${D}i in
48469         *!)
48470             rm -rf \`basnam ${D}i !\`
48471             ;;
48472         *)
48473             ;;
48474         esac
48475     done
48476
48477     # Kill result in case of failure as there is just to many stupid make/nmake
48478     # things out there which doesn't do this.
48479     if [ ${D}# -eq 0 ]; then
48480         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48481     fi
48482 }
48483
48484 # Print usage and exit script with rc=1.
48485 PrintHelp() {
48486  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48487  echo '       [-name-mangler-script script.sh]'
48488  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48489  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48490  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48491  echo '       [*.o] [*.a]'
48492  echo '*> "output_file" should have no extension.'
48493  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48494  echo '   The import library name is derived from this and is set to "name".a,'
48495  echo '   unless overridden by -import'
48496  echo '*> "importlib_name" should have no extension.'
48497  echo '   If it has the .o, or .a extension, it is automatically removed.'
48498  echo '   This name is used as the import library name and may be longer and'
48499  echo '   more descriptive than the DLL name which has to follow the old '
48500  echo '   8.3 convention of FAT.'
48501  echo '*> "script.sh may be given to override the output_file name by a'
48502  echo '   different name. It is mainly useful if the regular make process'
48503  echo '   of some package does not take into account OS/2 restriction of'
48504  echo '   DLL name lengths. It takes the importlib name as input and is'
48505  echo '   supposed to procude a shorter name as output. The script should'
48506  echo '   expect to get importlib_name without extension and should produce'
48507  echo '   a (max.) 8 letter name without extension.'
48508  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48509  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48510  echo '   These flags will be put at the start of GCC command line.'
48511  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48512  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48513  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48514  echo '   If the last character of a symbol is "*", all symbols beginning'
48515  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48516  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48517  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48518  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48519  echo '   C runtime DLLs.'
48520  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48521  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48522  echo '   unchanged to GCC at the end of command line.'
48523  echo '*> If you create a DLL from a library and you do not specify -o,'
48524  echo '   the basename for DLL and import library will be set to library name,'
48525  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48526  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48527  echo '   library will be renamed into gcc_s.a.'
48528  echo '--------'
48529  echo 'Example:'
48530  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48531  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48532  CleanUp
48533  exit 1
48534 }
48535
48536 # Execute a command.
48537 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48538 # @Uses    Whatever CleanUp() uses.
48539 doCommand() {
48540     echo "${D}*"
48541     eval ${D}*
48542     rcCmd=${D}?
48543
48544     if [ ${D}rcCmd -ne 0 ]; then
48545         echo "command failed, exit code="${D}rcCmd
48546         CleanUp
48547         exit ${D}rcCmd
48548     fi
48549 }
48550
48551 # main routine
48552 # setup globals
48553 cmdLine=${D}*
48554 outFile=""
48555 outimpFile=""
48556 inputFiles=""
48557 renameScript=""
48558 description=""
48559 CC=gcc.exe
48560 CFLAGS="-s -Zcrtdll"
48561 EXTRA_CFLAGS=""
48562 EXPORT_BY_ORDINALS=0
48563 exclude_symbols=""
48564 library_flags=""
48565 curDir=\`pwd\`
48566 curDirS=curDir
48567 case ${D}curDirS in
48568 */)
48569   ;;
48570 *)
48571   curDirS=${D}{curDirS}"/"
48572   ;;
48573 esac
48574 # Parse commandline
48575 libsToLink=0
48576 omfLinking=0
48577 while [ ${D}1 ]; do
48578     case ${D}1 in
48579     -ord*)
48580         EXPORT_BY_ORDINALS=1;
48581         ;;
48582     -o*)
48583         shift
48584         outFile=${D}1
48585         ;;
48586     -i*)
48587         shift
48588         outimpFile=${D}1
48589         ;;
48590     -name-mangler-script)
48591         shift
48592         renameScript=${D}1
48593         ;;
48594     -d*)
48595         shift
48596         description=${D}1
48597         ;;
48598     -f*)
48599         shift
48600         CFLAGS=${D}1
48601         ;;
48602     -c*)
48603         shift
48604         CC=${D}1
48605         ;;
48606     -h*)
48607         PrintHelp
48608         ;;
48609     -ex*)
48610         shift
48611         exclude_symbols=${D}{exclude_symbols}${D}1" "
48612         ;;
48613     -libf*)
48614         shift
48615         library_flags=${D}{library_flags}${D}1" "
48616         ;;
48617     -nocrt*)
48618         CFLAGS="-s"
48619         ;;
48620     -nolxl*)
48621         flag_USE_LXLITE=0
48622         ;;
48623     -* | /*)
48624         case ${D}1 in
48625         -L* | -l*)
48626             libsToLink=1
48627             ;;
48628         -Zomf)
48629             omfLinking=1
48630             ;;
48631         *)
48632             ;;
48633         esac
48634         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48635         ;;
48636     *.dll)
48637         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48638         if [ ${D}omfLinking -eq 1 ]; then
48639             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48640         else
48641             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48642         fi
48643         ;;
48644     *)
48645         found=0;
48646         if [ ${D}libsToLink -ne 0 ]; then
48647             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48648         else
48649             for file in ${D}1 ; do
48650                 if [ -f ${D}file ]; then
48651                     inputFiles="${D}{inputFiles} ${D}file"
48652                     found=1
48653                 fi
48654             done
48655             if [ ${D}found -eq 0 ]; then
48656                 echo "ERROR: No file(s) found: "${D}1
48657                 exit 8
48658             fi
48659         fi
48660       ;;
48661     esac
48662     shift
48663 done # iterate cmdline words
48664
48665 #
48666 if [ -z "${D}inputFiles" ]; then
48667     echo "dllar: no input files"
48668     PrintHelp
48669 fi
48670
48671 # Now extract all .o files from .a files
48672 newInputFiles=""
48673 for file in ${D}inputFiles ; do
48674     case ${D}file in
48675     *.a | *.lib)
48676         case ${D}file in
48677         *.a)
48678             suffix=".a"
48679             AR="ar"
48680             ;;
48681         *.lib)
48682             suffix=".lib"
48683             AR="emxomfar"
48684             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48685             ;;
48686         *)
48687             ;;
48688         esac
48689         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48690         mkdir ${D}dirname
48691         if [ ${D}? -ne 0 ]; then
48692             echo "Failed to create subdirectory ./${D}dirname"
48693             CleanUp
48694             exit 8;
48695         fi
48696         # Append '!' to indicate archive
48697         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48698         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48699         cd ${D}curDir
48700         found=0;
48701         for subfile in ${D}dirname/*.o* ; do
48702             if [ -f ${D}subfile ]; then
48703                 found=1
48704                 if [ -s ${D}subfile ]; then
48705                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48706                     newInputFiles="${D}newInputFiles ${D}subfile"
48707                 fi
48708             fi
48709         done
48710         if [ ${D}found -eq 0 ]; then
48711             echo "WARNING: there are no files in archive \\'${D}file\\'"
48712         fi
48713         ;;
48714     *)
48715         newInputFiles="${D}{newInputFiles} ${D}file"
48716         ;;
48717     esac
48718 done
48719 inputFiles="${D}newInputFiles"
48720
48721 # Output filename(s).
48722 do_backup=0;
48723 if [ -z ${D}outFile ]; then
48724     do_backup=1;
48725     set outFile ${D}inputFiles; outFile=${D}2
48726 fi
48727
48728 # If it is an archive, remove the '!' and the '_%' suffixes
48729 case ${D}outFile in
48730 *_%!)
48731     outFile=\`basnam ${D}outFile _%!\`
48732     ;;
48733 *)
48734     ;;
48735 esac
48736 case ${D}outFile in
48737 *.dll)
48738     outFile=\`basnam ${D}outFile .dll\`
48739     ;;
48740 *.DLL)
48741     outFile=\`basnam ${D}outFile .DLL\`
48742     ;;
48743 *.o)
48744     outFile=\`basnam ${D}outFile .o\`
48745     ;;
48746 *.obj)
48747     outFile=\`basnam ${D}outFile .obj\`
48748     ;;
48749 *.a)
48750     outFile=\`basnam ${D}outFile .a\`
48751     ;;
48752 *.lib)
48753     outFile=\`basnam ${D}outFile .lib\`
48754     ;;
48755 *)
48756     ;;
48757 esac
48758 case ${D}outimpFile in
48759 *.a)
48760     outimpFile=\`basnam ${D}outimpFile .a\`
48761     ;;
48762 *.lib)
48763     outimpFile=\`basnam ${D}outimpFile .lib\`
48764     ;;
48765 *)
48766     ;;
48767 esac
48768 if [ -z ${D}outimpFile ]; then
48769     outimpFile=${D}outFile
48770 fi
48771 defFile="${D}{outFile}.def"
48772 arcFile="${D}{outimpFile}.a"
48773 arcFile2="${D}{outimpFile}.lib"
48774
48775 #create ${D}dllFile as something matching 8.3 restrictions,
48776 if [ -z ${D}renameScript ] ; then
48777     dllFile="${D}outFile"
48778 else
48779     dllFile=\`${D}renameScript ${D}outimpFile\`
48780 fi
48781
48782 if [ ${D}do_backup -ne 0 ] ; then
48783     if [ -f ${D}arcFile ] ; then
48784         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48785     fi
48786     if [ -f ${D}arcFile2 ] ; then
48787         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48788     fi
48789 fi
48790
48791 # Extract public symbols from all the object files.
48792 tmpdefFile=${D}{defFile}_%
48793 rm -f ${D}tmpdefFile
48794 for file in ${D}inputFiles ; do
48795     case ${D}file in
48796     *!)
48797         ;;
48798     *)
48799         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48800         ;;
48801     esac
48802 done
48803
48804 # Create the def file.
48805 rm -f ${D}defFile
48806 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48807 dllFile="${D}{dllFile}.dll"
48808 if [ ! -z ${D}description ]; then
48809     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48810 fi
48811 echo "EXPORTS" >> ${D}defFile
48812
48813 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48814 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48815
48816 # Checks if the export is ok or not.
48817 for word in ${D}exclude_symbols; do
48818     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48819     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48820 done
48821
48822
48823 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48824     sed "=" < ${D}tmpdefFile | \\
48825     sed '
48826       N
48827       : loop
48828       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48829       t loop
48830     ' > ${D}{tmpdefFile}%
48831     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48832 else
48833     rm -f ${D}{tmpdefFile}%
48834 fi
48835 cat ${D}tmpdefFile >> ${D}defFile
48836 rm -f ${D}tmpdefFile
48837
48838 # Do linking, create implib, and apply lxlite.
48839 gccCmdl="";
48840 for file in ${D}inputFiles ; do
48841     case ${D}file in
48842     *!)
48843         ;;
48844     *)
48845         gccCmdl="${D}gccCmdl ${D}file"
48846         ;;
48847     esac
48848 done
48849 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48850 touch "${D}{outFile}.dll"
48851
48852 doCommand "emximp -o ${D}arcFile ${D}defFile"
48853 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48854     add_flags="";
48855     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48856         add_flags="-ynd"
48857     fi
48858     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48859 fi
48860 doCommand "emxomf -s -l ${D}arcFile"
48861
48862 # Successful exit.
48863 CleanUp 1
48864 exit 0
48865 EOF
48866
48867         chmod +x dllar.sh
48868       ;;
48869
48870       powerpc-apple-macos* | \
48871       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48872       *-*-mirbsd* | \
48873       *-*-sunos4* | \
48874       *-*-osf* | \
48875       *-*-dgux5* | \
48876       *-*-sysv5* | \
48877       *-pc-msdosdjgpp )
48878               ;;
48879
48880       *)
48881         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48882 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48883    { (exit 1); exit 1; }; }
48884     esac
48885
48886     if test "x$PIC_FLAG" != "x" ; then
48887         PIC_FLAG="$PIC_FLAG -DPIC"
48888     fi
48889
48890     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48891         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48892     fi
48893     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48894         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48895     fi
48896
48897
48898
48899
48900
48901
48902
48903
48904
48905     USE_SOVERSION=0
48906     USE_SOVERLINUX=0
48907     USE_SOVERSOLARIS=0
48908     USE_SOVERCYGWIN=0
48909     USE_SOSYMLINKS=0
48910     USE_MACVERSION=0
48911     SONAME_FLAG=
48912
48913     case "${BAKEFILE_HOST}" in
48914       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
48915       *-*-k*bsd*-gnu | *-*-mirbsd* )
48916         if test "x$SUNCXX" = "xyes"; then
48917             SONAME_FLAG="-h "
48918         else
48919             SONAME_FLAG="-Wl,-soname,"
48920         fi
48921         USE_SOVERSION=1
48922         USE_SOVERLINUX=1
48923         USE_SOSYMLINKS=1
48924       ;;
48925
48926       *-*-solaris2* )
48927         SONAME_FLAG="-h "
48928         USE_SOVERSION=1
48929         USE_SOVERSOLARIS=1
48930         USE_SOSYMLINKS=1
48931       ;;
48932
48933       *-*-darwin* )
48934         USE_MACVERSION=1
48935         USE_SOVERSION=1
48936         USE_SOSYMLINKS=1
48937       ;;
48938
48939       *-*-cygwin* )
48940         USE_SOVERSION=1
48941         USE_SOVERCYGWIN=1
48942       ;;
48943     esac
48944
48945
48946
48947
48948
48949
48950
48951
48952
48953
48954     # Check whether --enable-dependency-tracking was given.
48955 if test "${enable_dependency_tracking+set}" = set; then
48956   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48957 fi
48958
48959
48960     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48961 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48962
48963     BK_DEPS=""
48964     if test "x$bk_use_trackdeps" = "xno" ; then
48965         DEPS_TRACKING=0
48966         { echo "$as_me:$LINENO: result: disabled" >&5
48967 echo "${ECHO_T}disabled" >&6; }
48968     else
48969         DEPS_TRACKING=1
48970
48971         if test "x$GCC" = "xyes"; then
48972             DEPSMODE=gcc
48973             case "${BAKEFILE_HOST}" in
48974                 *-*-darwin* )
48975                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48976                 ;;
48977                 * )
48978                     DEPSFLAG="-MMD"
48979                 ;;
48980             esac
48981             { echo "$as_me:$LINENO: result: gcc" >&5
48982 echo "${ECHO_T}gcc" >&6; }
48983         elif test "x$MWCC" = "xyes"; then
48984             DEPSMODE=mwcc
48985             DEPSFLAG="-MM"
48986             { echo "$as_me:$LINENO: result: mwcc" >&5
48987 echo "${ECHO_T}mwcc" >&6; }
48988         elif test "x$SUNCC" = "xyes"; then
48989             DEPSMODE=unixcc
48990             DEPSFLAG="-xM1"
48991             { echo "$as_me:$LINENO: result: Sun cc" >&5
48992 echo "${ECHO_T}Sun cc" >&6; }
48993         elif test "x$SGICC" = "xyes"; then
48994             DEPSMODE=unixcc
48995             DEPSFLAG="-M"
48996             { echo "$as_me:$LINENO: result: SGI cc" >&5
48997 echo "${ECHO_T}SGI cc" >&6; }
48998         elif test "x$HPCC" = "xyes"; then
48999             DEPSMODE=unixcc
49000             DEPSFLAG="+make"
49001             { echo "$as_me:$LINENO: result: HP cc" >&5
49002 echo "${ECHO_T}HP cc" >&6; }
49003         elif test "x$COMPAQCC" = "xyes"; then
49004             DEPSMODE=gcc
49005             DEPSFLAG="-MD"
49006             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49007 echo "${ECHO_T}Compaq cc" >&6; }
49008         else
49009             DEPS_TRACKING=0
49010             { echo "$as_me:$LINENO: result: none" >&5
49011 echo "${ECHO_T}none" >&6; }
49012         fi
49013
49014         if test $DEPS_TRACKING = 1 ; then
49015
49016 D='$'
49017 cat <<EOF >bk-deps
49018 #!/bin/sh
49019
49020 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49021 # script. It is used to track C/C++ files dependencies in portable way.
49022 #
49023 # Permission is given to use this file in any way.
49024
49025 DEPSMODE=${DEPSMODE}
49026 DEPSFLAG="${DEPSFLAG}"
49027 DEPSDIRBASE=.deps
49028
49029 if test ${D}DEPSMODE = gcc ; then
49030     ${D}* ${D}{DEPSFLAG}
49031     status=${D}?
49032
49033     # determine location of created files:
49034     while test ${D}# -gt 0; do
49035         case "${D}1" in
49036             -o )
49037                 shift
49038                 objfile=${D}1
49039             ;;
49040             -* )
49041             ;;
49042             * )
49043                 srcfile=${D}1
49044             ;;
49045         esac
49046         shift
49047     done
49048     objfilebase=\`basename ${D}objfile\`
49049     builddir=\`dirname ${D}objfile\`
49050     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49051     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49052     depsdir=${D}builddir/${D}DEPSDIRBASE
49053     mkdir -p ${D}depsdir
49054
49055     # if the compiler failed, we're done:
49056     if test ${D}{status} != 0 ; then
49057         rm -f ${D}depfile
49058         exit ${D}{status}
49059     fi
49060
49061     # move created file to the location we want it in:
49062     if test -f ${D}depfile ; then
49063         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49064         rm -f ${D}depfile
49065     else
49066         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49067         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49068         if test ! -f ${D}depfile ; then
49069             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49070             depfile="${D}objfile.d"
49071         fi
49072         if test -f ${D}depfile ; then
49073             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49074             rm -f ${D}depfile
49075         fi
49076     fi
49077     exit 0
49078
49079 elif test ${D}DEPSMODE = mwcc ; then
49080     ${D}* || exit ${D}?
49081     # Run mwcc again with -MM and redirect into the dep file we want
49082     # NOTE: We can't use shift here because we need ${D}* to be valid
49083     prevarg=
49084     for arg in ${D}* ; do
49085         if test "${D}prevarg" = "-o"; then
49086             objfile=${D}arg
49087         else
49088             case "${D}arg" in
49089                 -* )
49090                 ;;
49091                 * )
49092                     srcfile=${D}arg
49093                 ;;
49094             esac
49095         fi
49096         prevarg="${D}arg"
49097     done
49098
49099     objfilebase=\`basename ${D}objfile\`
49100     builddir=\`dirname ${D}objfile\`
49101     depsdir=${D}builddir/${D}DEPSDIRBASE
49102     mkdir -p ${D}depsdir
49103
49104     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49105     exit 0
49106
49107 elif test ${D}DEPSMODE = unixcc; then
49108     ${D}* || exit ${D}?
49109     # Run compiler again with deps flag and redirect into the dep file.
49110     # It doesn't work if the '-o FILE' option is used, but without it the
49111     # dependency file will contain the wrong name for the object. So it is
49112     # removed from the command line, and the dep file is fixed with sed.
49113     cmd=""
49114     while test ${D}# -gt 0; do
49115         case "${D}1" in
49116             -o )
49117                 shift
49118                 objfile=${D}1
49119             ;;
49120             * )
49121                 eval arg${D}#=\\${D}1
49122                 cmd="${D}cmd \\${D}arg${D}#"
49123             ;;
49124         esac
49125         shift
49126     done
49127
49128     objfilebase=\`basename ${D}objfile\`
49129     builddir=\`dirname ${D}objfile\`
49130     depsdir=${D}builddir/${D}DEPSDIRBASE
49131     mkdir -p ${D}depsdir
49132
49133     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49134     exit 0
49135
49136 else
49137     ${D}*
49138     exit ${D}?
49139 fi
49140 EOF
49141
49142             chmod +x bk-deps
49143                                     BK_DEPS="`pwd`/bk-deps"
49144         fi
49145     fi
49146
49147
49148
49149
49150
49151     case ${BAKEFILE_HOST} in
49152         *-*-cygwin* | *-*-mingw32* )
49153                         if test -n "$ac_tool_prefix"; then
49154   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49155 set dummy ${ac_tool_prefix}windres; ac_word=$2
49156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49158 if test "${ac_cv_prog_WINDRES+set}" = set; then
49159   echo $ECHO_N "(cached) $ECHO_C" >&6
49160 else
49161   if test -n "$WINDRES"; then
49162   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49163 else
49164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49165 for as_dir in $PATH
49166 do
49167   IFS=$as_save_IFS
49168   test -z "$as_dir" && as_dir=.
49169   for ac_exec_ext in '' $ac_executable_extensions; do
49170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49171     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49173     break 2
49174   fi
49175 done
49176 done
49177 IFS=$as_save_IFS
49178
49179 fi
49180 fi
49181 WINDRES=$ac_cv_prog_WINDRES
49182 if test -n "$WINDRES"; then
49183   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49184 echo "${ECHO_T}$WINDRES" >&6; }
49185 else
49186   { echo "$as_me:$LINENO: result: no" >&5
49187 echo "${ECHO_T}no" >&6; }
49188 fi
49189
49190
49191 fi
49192 if test -z "$ac_cv_prog_WINDRES"; then
49193   ac_ct_WINDRES=$WINDRES
49194   # Extract the first word of "windres", so it can be a program name with args.
49195 set dummy windres; ac_word=$2
49196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49198 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49199   echo $ECHO_N "(cached) $ECHO_C" >&6
49200 else
49201   if test -n "$ac_ct_WINDRES"; then
49202   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49203 else
49204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49205 for as_dir in $PATH
49206 do
49207   IFS=$as_save_IFS
49208   test -z "$as_dir" && as_dir=.
49209   for ac_exec_ext in '' $ac_executable_extensions; do
49210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49211     ac_cv_prog_ac_ct_WINDRES="windres"
49212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49213     break 2
49214   fi
49215 done
49216 done
49217 IFS=$as_save_IFS
49218
49219 fi
49220 fi
49221 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49222 if test -n "$ac_ct_WINDRES"; then
49223   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49224 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49225 else
49226   { echo "$as_me:$LINENO: result: no" >&5
49227 echo "${ECHO_T}no" >&6; }
49228 fi
49229
49230   if test "x$ac_ct_WINDRES" = x; then
49231     WINDRES=""
49232   else
49233     case $cross_compiling:$ac_tool_warned in
49234 yes:)
49235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49236 whose name does not start with the host triplet.  If you think this
49237 configuration is useful to you, please write to autoconf@gnu.org." >&5
49238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49239 whose name does not start with the host triplet.  If you think this
49240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49241 ac_tool_warned=yes ;;
49242 esac
49243     WINDRES=$ac_ct_WINDRES
49244   fi
49245 else
49246   WINDRES="$ac_cv_prog_WINDRES"
49247 fi
49248
49249          ;;
49250
49251       *-*-darwin* | powerpc-apple-macos* )
49252             # Extract the first word of "Rez", so it can be a program name with args.
49253 set dummy Rez; ac_word=$2
49254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49256 if test "${ac_cv_prog_REZ+set}" = set; then
49257   echo $ECHO_N "(cached) $ECHO_C" >&6
49258 else
49259   if test -n "$REZ"; then
49260   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49261 else
49262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49263 for as_dir in $PATH
49264 do
49265   IFS=$as_save_IFS
49266   test -z "$as_dir" && as_dir=.
49267   for ac_exec_ext in '' $ac_executable_extensions; do
49268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49269     ac_cv_prog_REZ="Rez"
49270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49271     break 2
49272   fi
49273 done
49274 done
49275 IFS=$as_save_IFS
49276
49277   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49278 fi
49279 fi
49280 REZ=$ac_cv_prog_REZ
49281 if test -n "$REZ"; then
49282   { echo "$as_me:$LINENO: result: $REZ" >&5
49283 echo "${ECHO_T}$REZ" >&6; }
49284 else
49285   { echo "$as_me:$LINENO: result: no" >&5
49286 echo "${ECHO_T}no" >&6; }
49287 fi
49288
49289
49290             # Extract the first word of "SetFile", so it can be a program name with args.
49291 set dummy SetFile; ac_word=$2
49292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49294 if test "${ac_cv_prog_SETFILE+set}" = set; then
49295   echo $ECHO_N "(cached) $ECHO_C" >&6
49296 else
49297   if test -n "$SETFILE"; then
49298   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49299 else
49300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49301 for as_dir in $PATH
49302 do
49303   IFS=$as_save_IFS
49304   test -z "$as_dir" && as_dir=.
49305   for ac_exec_ext in '' $ac_executable_extensions; do
49306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49307     ac_cv_prog_SETFILE="SetFile"
49308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49309     break 2
49310   fi
49311 done
49312 done
49313 IFS=$as_save_IFS
49314
49315   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49316 fi
49317 fi
49318 SETFILE=$ac_cv_prog_SETFILE
49319 if test -n "$SETFILE"; then
49320   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49321 echo "${ECHO_T}$SETFILE" >&6; }
49322 else
49323   { echo "$as_me:$LINENO: result: no" >&5
49324 echo "${ECHO_T}no" >&6; }
49325 fi
49326
49327
49328         ;;
49329     esac
49330
49331
49332
49333
49334
49335
49336
49337
49338
49339     BAKEFILE_BAKEFILE_M4_VERSION="0.2.5"
49340
49341
49342 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.5"
49343
49344
49345
49346     # Check whether --enable-precomp-headers was given.
49347 if test "${enable_precomp_headers+set}" = set; then
49348   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49349 fi
49350
49351
49352     GCC_PCH=0
49353     ICC_PCH=0
49354     USE_PCH=0
49355     BK_MAKE_PCH=""
49356
49357     case ${BAKEFILE_HOST} in
49358         *-*-cygwin* )
49359                                                 bk_use_pch="no"
49360             ;;
49361     esac
49362
49363     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49364         if test "x$GCC" = "xyes"; then
49365                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49366 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49367             cat >conftest.$ac_ext <<_ACEOF
49368 /* confdefs.h.  */
49369 _ACEOF
49370 cat confdefs.h >>conftest.$ac_ext
49371 cat >>conftest.$ac_ext <<_ACEOF
49372 /* end confdefs.h.  */
49373
49374 int
49375 main ()
49376 {
49377
49378                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49379                         There is no PCH support
49380                     #endif
49381                     #if (__GNUC__ < 3)
49382                         There is no PCH support
49383                     #endif
49384                     #if (__GNUC__ == 3) && \
49385                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49386                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49387                        ( defined(__INTEL_COMPILER) )
49388                         There is no PCH support
49389                     #endif
49390
49391   ;
49392   return 0;
49393 }
49394 _ACEOF
49395 rm -f conftest.$ac_objext
49396 if { (ac_try="$ac_compile"
49397 case "(($ac_try" in
49398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49399   *) ac_try_echo=$ac_try;;
49400 esac
49401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49402   (eval "$ac_compile") 2>conftest.er1
49403   ac_status=$?
49404   grep -v '^ *+' conftest.er1 >conftest.err
49405   rm -f conftest.er1
49406   cat conftest.err >&5
49407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49408   (exit $ac_status); } && {
49409          test -z "$ac_c_werror_flag" ||
49410          test ! -s conftest.err
49411        } && test -s conftest.$ac_objext; then
49412
49413                     { echo "$as_me:$LINENO: result: yes" >&5
49414 echo "${ECHO_T}yes" >&6; }
49415                     GCC_PCH=1
49416
49417 else
49418   echo "$as_me: failed program was:" >&5
49419 sed 's/^/| /' conftest.$ac_ext >&5
49420
49421
49422                     if test "$INTELCXX8" = "yes"; then
49423                         { echo "$as_me:$LINENO: result: yes" >&5
49424 echo "${ECHO_T}yes" >&6; }
49425                         ICC_PCH=1
49426                         if test "$INTELCXX10" = "yes"; then
49427                             ICC_PCH_CREATE_SWITCH="-pch-create"
49428                             ICC_PCH_USE_SWITCH="-pch-use"
49429                         else
49430                             ICC_PCH_CREATE_SWITCH="-create-pch"
49431                             ICC_PCH_USE_SWITCH="-use-pch"
49432                         fi
49433                     else
49434                         { echo "$as_me:$LINENO: result: no" >&5
49435 echo "${ECHO_T}no" >&6; }
49436                     fi
49437
49438 fi
49439
49440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49441             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49442                 USE_PCH=1
49443
49444 D='$'
49445 cat <<EOF >bk-make-pch
49446 #!/bin/sh
49447
49448 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49449 # script. It is used to generated precompiled headers.
49450 #
49451 # Permission is given to use this file in any way.
49452
49453 outfile="${D}{1}"
49454 header="${D}{2}"
49455 shift
49456 shift
49457
49458 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49459
49460 compiler=""
49461 headerfile=""
49462
49463 while test ${D}{#} -gt 0; do
49464     add_to_cmdline=1
49465     case "${D}{1}" in
49466         -I* )
49467             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49468             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49469                 headerfile="${D}{incdir}/${D}{header}"
49470             fi
49471         ;;
49472         -use-pch|-use_pch|-pch-use )
49473             shift
49474             add_to_cmdline=0
49475         ;;
49476     esac
49477     if test ${D}add_to_cmdline = 1 ; then
49478         compiler="${D}{compiler} ${D}{1}"
49479     fi
49480     shift
49481 done
49482
49483 if test "x${D}{headerfile}" = "x" ; then
49484     echo "error: can't find header ${D}{header} in include paths" >&2
49485 else
49486     if test -f ${D}{outfile} ; then
49487         rm -f ${D}{outfile}
49488     else
49489         mkdir -p \`dirname ${D}{outfile}\`
49490     fi
49491     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49492     mkdir -p ${D}{builddir}/.deps
49493     if test "x${GCC_PCH}" = "x1" ; then
49494         # can do this because gcc is >= 3.4:
49495         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49496     elif test "x${ICC_PCH}" = "x1" ; then
49497         filename=pch_gen-${D}${D}
49498         file=${D}{filename}.c
49499         dfile=${D}{filename}.d
49500         cat > ${D}file <<EOT
49501 #include "${D}header"
49502 EOT
49503         # using -MF icc complains about differing command lines in creation/use
49504         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49505           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49506           rm -f ${D}file ${D}dfile ${D}{filename}.o
49507     fi
49508     exit ${D}{?}
49509 fi
49510 EOF
49511
49512                 chmod +x bk-make-pch
49513                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49514             fi
49515         fi
49516     fi
49517
49518
49519
49520
49521
49522
49523
49524     COND_BUILD_DEBUG="#"
49525     if test "x$BUILD" = "xdebug" ; then
49526         COND_BUILD_DEBUG=""
49527     fi
49528
49529     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49530     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49531         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49532     fi
49533
49534     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49535     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49536         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49537     fi
49538
49539     COND_BUILD_DEBUG_UNICODE_0="#"
49540     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49541         COND_BUILD_DEBUG_UNICODE_0=""
49542     fi
49543
49544     COND_BUILD_DEBUG_UNICODE_1="#"
49545     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49546         COND_BUILD_DEBUG_UNICODE_1=""
49547     fi
49548
49549     COND_BUILD_RELEASE="#"
49550     if test "x$BUILD" = "xrelease" ; then
49551         COND_BUILD_RELEASE=""
49552     fi
49553
49554     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49555     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49556         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49557     fi
49558
49559     COND_BUILD_RELEASE_UNICODE_0="#"
49560     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49561         COND_BUILD_RELEASE_UNICODE_0=""
49562     fi
49563
49564     COND_BUILD_RELEASE_UNICODE_1="#"
49565     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49566         COND_BUILD_RELEASE_UNICODE_1=""
49567     fi
49568
49569     COND_BUILD_debug="#"
49570     if test "x$BUILD" = "xdebug" ; then
49571         COND_BUILD_debug=""
49572     fi
49573
49574     COND_BUILD_debug_DEBUG_FLAG_default="#"
49575     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49576         COND_BUILD_debug_DEBUG_FLAG_default=""
49577     fi
49578
49579     COND_BUILD_debug_DEBUG_INFO_default="#"
49580     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49581         COND_BUILD_debug_DEBUG_INFO_default=""
49582     fi
49583
49584     COND_BUILD_debug_UNICODE_0="#"
49585     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49586         COND_BUILD_debug_UNICODE_0=""
49587     fi
49588
49589     COND_BUILD_debug_UNICODE_1="#"
49590     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49591         COND_BUILD_debug_UNICODE_1=""
49592     fi
49593
49594     COND_BUILD_release="#"
49595     if test "x$BUILD" = "xrelease" ; then
49596         COND_BUILD_release=""
49597     fi
49598
49599     COND_BUILD_release_DEBUG_INFO_default="#"
49600     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49601         COND_BUILD_release_DEBUG_INFO_default=""
49602     fi
49603
49604     COND_BUILD_release_UNICODE_0="#"
49605     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49606         COND_BUILD_release_UNICODE_0=""
49607     fi
49608
49609     COND_BUILD_release_UNICODE_1="#"
49610     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49611         COND_BUILD_release_UNICODE_1=""
49612     fi
49613
49614     COND_DEBUG_FLAG_1="#"
49615     if test "x$DEBUG_FLAG" = "x1" ; then
49616         COND_DEBUG_FLAG_1=""
49617     fi
49618
49619     COND_DEBUG_INFO_0="#"
49620     if test "x$DEBUG_INFO" = "x0" ; then
49621         COND_DEBUG_INFO_0=""
49622     fi
49623
49624     COND_DEBUG_INFO_1="#"
49625     if test "x$DEBUG_INFO" = "x1" ; then
49626         COND_DEBUG_INFO_1=""
49627     fi
49628
49629     COND_DEPS_TRACKING_0="#"
49630     if test "x$DEPS_TRACKING" = "x0" ; then
49631         COND_DEPS_TRACKING_0=""
49632     fi
49633
49634     COND_DEPS_TRACKING_1="#"
49635     if test "x$DEPS_TRACKING" = "x1" ; then
49636         COND_DEPS_TRACKING_1=""
49637     fi
49638
49639     COND_GCC_PCH_1="#"
49640     if test "x$GCC_PCH" = "x1" ; then
49641         COND_GCC_PCH_1=""
49642     fi
49643
49644     COND_ICC_PCH_1="#"
49645     if test "x$ICC_PCH" = "x1" ; then
49646         COND_ICC_PCH_1=""
49647     fi
49648
49649     COND_MONOLITHIC_0="#"
49650     if test "x$MONOLITHIC" = "x0" ; then
49651         COND_MONOLITHIC_0=""
49652     fi
49653
49654     COND_MONOLITHIC_0_SHARED_0="#"
49655     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49656         COND_MONOLITHIC_0_SHARED_0=""
49657     fi
49658
49659     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49660     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49661         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49662     fi
49663
49664     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49665     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49666         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49667     fi
49668
49669     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49670     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49671         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49672     fi
49673
49674     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49675     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49676         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49677     fi
49678
49679     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49680     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49681         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49682     fi
49683
49684     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49685     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49686         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49687     fi
49688
49689     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49690     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49691         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49692     fi
49693
49694     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49695     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49696         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49697     fi
49698
49699     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49700     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49701         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49702     fi
49703
49704     COND_MONOLITHIC_0_SHARED_1="#"
49705     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49706         COND_MONOLITHIC_0_SHARED_1=""
49707     fi
49708
49709     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49710     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49711         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49712     fi
49713
49714     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49715     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49716         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49717     fi
49718
49719     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49720     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49721         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49722     fi
49723
49724     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49725     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49726         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49727     fi
49728
49729     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49730     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49731         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49732     fi
49733
49734     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49735     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49736         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49737     fi
49738
49739     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49740     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49741         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49742     fi
49743
49744     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49745     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49746         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49747     fi
49748
49749     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49750     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49751         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49752     fi
49753
49754     COND_MONOLITHIC_0_USE_AUI_1="#"
49755     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49756         COND_MONOLITHIC_0_USE_AUI_1=""
49757     fi
49758
49759     COND_MONOLITHIC_0_USE_GUI_1="#"
49760     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49761         COND_MONOLITHIC_0_USE_GUI_1=""
49762     fi
49763
49764     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49765     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49766         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49767     fi
49768
49769     COND_MONOLITHIC_0_USE_HTML_1="#"
49770     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49771         COND_MONOLITHIC_0_USE_HTML_1=""
49772     fi
49773
49774     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49775     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49776         COND_MONOLITHIC_0_USE_MEDIA_1=""
49777     fi
49778
49779     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
49780     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49781         COND_MONOLITHIC_0_USE_PROPGRID_1=""
49782     fi
49783
49784     COND_MONOLITHIC_0_USE_QA_1="#"
49785     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49786         COND_MONOLITHIC_0_USE_QA_1=""
49787     fi
49788
49789     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49790     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49791         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49792     fi
49793
49794     COND_MONOLITHIC_0_USE_STC_1="#"
49795     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49796         COND_MONOLITHIC_0_USE_STC_1=""
49797     fi
49798
49799     COND_MONOLITHIC_0_USE_XRC_1="#"
49800     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49801         COND_MONOLITHIC_0_USE_XRC_1=""
49802     fi
49803
49804     COND_MONOLITHIC_1="#"
49805     if test "x$MONOLITHIC" = "x1" ; then
49806         COND_MONOLITHIC_1=""
49807     fi
49808
49809     COND_MONOLITHIC_1_SHARED_0="#"
49810     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49811         COND_MONOLITHIC_1_SHARED_0=""
49812     fi
49813
49814     COND_MONOLITHIC_1_SHARED_1="#"
49815     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49816         COND_MONOLITHIC_1_SHARED_1=""
49817     fi
49818
49819     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49820     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49821         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49822     fi
49823
49824     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49825     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49826         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49827     fi
49828
49829     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49830     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49831         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49832     fi
49833
49834     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49835     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49836         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49837     fi
49838
49839     COND_PLATFORM_MACOSX_1="#"
49840     if test "x$PLATFORM_MACOSX" = "x1" ; then
49841         COND_PLATFORM_MACOSX_1=""
49842     fi
49843
49844     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49845     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49846         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49847     fi
49848
49849     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
49850     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
49851         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
49852     fi
49853
49854     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
49855     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49856         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
49857     fi
49858
49859     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
49860     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
49861         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
49862     fi
49863
49864     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
49865     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49866         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
49867     fi
49868
49869     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49870     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49871         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49872     fi
49873
49874     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49875     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49876         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49877     fi
49878
49879     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49880     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49881         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49882     fi
49883
49884     COND_PLATFORM_MACOS_1="#"
49885     if test "x$PLATFORM_MACOS" = "x1" ; then
49886         COND_PLATFORM_MACOS_1=""
49887     fi
49888
49889     COND_PLATFORM_MAC_0="#"
49890     if test "x$PLATFORM_MAC" = "x0" ; then
49891         COND_PLATFORM_MAC_0=""
49892     fi
49893
49894     COND_PLATFORM_MAC_1="#"
49895     if test "x$PLATFORM_MAC" = "x1" ; then
49896         COND_PLATFORM_MAC_1=""
49897     fi
49898
49899     COND_PLATFORM_MSDOS_0="#"
49900     if test "x$PLATFORM_MSDOS" = "x0" ; then
49901         COND_PLATFORM_MSDOS_0=""
49902     fi
49903
49904     COND_PLATFORM_MSDOS_1="#"
49905     if test "x$PLATFORM_MSDOS" = "x1" ; then
49906         COND_PLATFORM_MSDOS_1=""
49907     fi
49908
49909     COND_PLATFORM_OS2_1="#"
49910     if test "x$PLATFORM_OS2" = "x1" ; then
49911         COND_PLATFORM_OS2_1=""
49912     fi
49913
49914     COND_PLATFORM_UNIX_0="#"
49915     if test "x$PLATFORM_UNIX" = "x0" ; then
49916         COND_PLATFORM_UNIX_0=""
49917     fi
49918
49919     COND_PLATFORM_UNIX_1="#"
49920     if test "x$PLATFORM_UNIX" = "x1" ; then
49921         COND_PLATFORM_UNIX_1=""
49922     fi
49923
49924     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49925     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49926         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49927     fi
49928
49929     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49930     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49931         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49932     fi
49933
49934     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49935     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49936         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49937     fi
49938
49939     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49940     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49941         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49942     fi
49943
49944     COND_PLATFORM_WIN32_0="#"
49945     if test "x$PLATFORM_WIN32" = "x0" ; then
49946         COND_PLATFORM_WIN32_0=""
49947     fi
49948
49949     COND_PLATFORM_WIN32_1="#"
49950     if test "x$PLATFORM_WIN32" = "x1" ; then
49951         COND_PLATFORM_WIN32_1=""
49952     fi
49953
49954     COND_SHARED_0="#"
49955     if test "x$SHARED" = "x0" ; then
49956         COND_SHARED_0=""
49957     fi
49958
49959     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49960     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49961         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49962     fi
49963
49964     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49965     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49966         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49967     fi
49968
49969     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49970     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49971         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49972     fi
49973
49974     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49975     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49976         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49977     fi
49978
49979     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
49980     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49981         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
49982     fi
49983
49984     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
49985     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49986         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
49987     fi
49988
49989     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
49990     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49991         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
49992     fi
49993
49994     COND_SHARED_0_USE_STC_1="#"
49995     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49996         COND_SHARED_0_USE_STC_1=""
49997     fi
49998
49999     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50000     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50001         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50002     fi
50003
50004     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50005     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50006         COND_SHARED_0_wxUSE_REGEX_builtin=""
50007     fi
50008
50009     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50010     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50011         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50012     fi
50013
50014     COND_SHARED_1="#"
50015     if test "x$SHARED" = "x1" ; then
50016         COND_SHARED_1=""
50017     fi
50018
50019     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50020     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50021         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50022     fi
50023
50024     COND_TOOLKIT_="#"
50025     if test "x$TOOLKIT" = "x" ; then
50026         COND_TOOLKIT_=""
50027     fi
50028
50029     COND_TOOLKIT_COCOA="#"
50030     if test "x$TOOLKIT" = "xCOCOA" ; then
50031         COND_TOOLKIT_COCOA=""
50032     fi
50033
50034     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50035     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50036         COND_TOOLKIT_COCOA_USE_GUI_1=""
50037     fi
50038
50039     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50040     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50041         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50042     fi
50043
50044     COND_TOOLKIT_DFB="#"
50045     if test "x$TOOLKIT" = "xDFB" ; then
50046         COND_TOOLKIT_DFB=""
50047     fi
50048
50049     COND_TOOLKIT_DFB_USE_GUI_1="#"
50050     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50051         COND_TOOLKIT_DFB_USE_GUI_1=""
50052     fi
50053
50054     COND_TOOLKIT_GTK="#"
50055     if test "x$TOOLKIT" = "xGTK" ; then
50056         COND_TOOLKIT_GTK=""
50057     fi
50058
50059     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50060     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50061         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50062     fi
50063
50064     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50065     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50066         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50067     fi
50068
50069     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50070     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50071         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50072     fi
50073
50074     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50075     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50076         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50077     fi
50078
50079     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50080     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50081         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50082     fi
50083
50084     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50085     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50086         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50087     fi
50088
50089     COND_TOOLKIT_GTK_USE_GUI_1="#"
50090     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50091         COND_TOOLKIT_GTK_USE_GUI_1=""
50092     fi
50093
50094     COND_TOOLKIT_MAC="#"
50095     if test "x$TOOLKIT" = "xMAC" ; then
50096         COND_TOOLKIT_MAC=""
50097     fi
50098
50099     COND_TOOLKIT_MGL="#"
50100     if test "x$TOOLKIT" = "xMGL" ; then
50101         COND_TOOLKIT_MGL=""
50102     fi
50103
50104     COND_TOOLKIT_MGL_USE_GUI_1="#"
50105     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50106         COND_TOOLKIT_MGL_USE_GUI_1=""
50107     fi
50108
50109     COND_TOOLKIT_MOTIF="#"
50110     if test "x$TOOLKIT" = "xMOTIF" ; then
50111         COND_TOOLKIT_MOTIF=""
50112     fi
50113
50114     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50115     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50116         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50117     fi
50118
50119     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50120     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50121         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50122     fi
50123
50124     COND_TOOLKIT_MSW="#"
50125     if test "x$TOOLKIT" = "xMSW" ; then
50126         COND_TOOLKIT_MSW=""
50127     fi
50128
50129     COND_TOOLKIT_MSW_USE_GUI_1="#"
50130     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50131         COND_TOOLKIT_MSW_USE_GUI_1=""
50132     fi
50133
50134     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50135     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50136         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50137     fi
50138
50139     COND_TOOLKIT_MSW_WXUNIV_0="#"
50140     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50141         COND_TOOLKIT_MSW_WXUNIV_0=""
50142     fi
50143
50144     COND_TOOLKIT_OSX_CARBON="#"
50145     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50146         COND_TOOLKIT_OSX_CARBON=""
50147     fi
50148
50149     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50150     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50151         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50152     fi
50153
50154     COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50155     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50156         COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50157     fi
50158
50159     COND_TOOLKIT_OSX_COCOA="#"
50160     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50161         COND_TOOLKIT_OSX_COCOA=""
50162     fi
50163
50164     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50165     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50166         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50167     fi
50168
50169     COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50170     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50171         COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50172     fi
50173
50174     COND_TOOLKIT_OSX_IPHONE="#"
50175     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50176         COND_TOOLKIT_OSX_IPHONE=""
50177     fi
50178
50179     COND_TOOLKIT_PM="#"
50180     if test "x$TOOLKIT" = "xPM" ; then
50181         COND_TOOLKIT_PM=""
50182     fi
50183
50184     COND_TOOLKIT_PM_USE_GUI_1="#"
50185     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50186         COND_TOOLKIT_PM_USE_GUI_1=""
50187     fi
50188
50189     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50190     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50191         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50192     fi
50193
50194     COND_TOOLKIT_WINCE="#"
50195     if test "x$TOOLKIT" = "xWINCE" ; then
50196         COND_TOOLKIT_WINCE=""
50197     fi
50198
50199     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50200     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50201         COND_TOOLKIT_WINCE_USE_GUI_1=""
50202     fi
50203
50204     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50205     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50206         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50207     fi
50208
50209     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50210     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50211         COND_TOOLKIT_WINCE_WXUNIV_0=""
50212     fi
50213
50214     COND_TOOLKIT_X11="#"
50215     if test "x$TOOLKIT" = "xX11" ; then
50216         COND_TOOLKIT_X11=""
50217     fi
50218
50219     COND_TOOLKIT_X11_USE_GUI_1="#"
50220     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50221         COND_TOOLKIT_X11_USE_GUI_1=""
50222     fi
50223
50224     COND_UNICODE_1="#"
50225     if test "x$UNICODE" = "x1" ; then
50226         COND_UNICODE_1=""
50227     fi
50228
50229     COND_USE_EXCEPTIONS_0="#"
50230     if test "x$USE_EXCEPTIONS" = "x0" ; then
50231         COND_USE_EXCEPTIONS_0=""
50232     fi
50233
50234     COND_USE_EXCEPTIONS_1="#"
50235     if test "x$USE_EXCEPTIONS" = "x1" ; then
50236         COND_USE_EXCEPTIONS_1=""
50237     fi
50238
50239     COND_USE_GUI_0="#"
50240     if test "x$USE_GUI" = "x0" ; then
50241         COND_USE_GUI_0=""
50242     fi
50243
50244     COND_USE_GUI_1="#"
50245     if test "x$USE_GUI" = "x1" ; then
50246         COND_USE_GUI_1=""
50247     fi
50248
50249     COND_USE_GUI_1_USE_OPENGL_1="#"
50250     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50251         COND_USE_GUI_1_USE_OPENGL_1=""
50252     fi
50253
50254     COND_USE_GUI_1_WXUNIV_0="#"
50255     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50256         COND_USE_GUI_1_WXUNIV_0=""
50257     fi
50258
50259     COND_USE_GUI_1_WXUNIV_1="#"
50260     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50261         COND_USE_GUI_1_WXUNIV_1=""
50262     fi
50263
50264     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50265     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50266         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50267     fi
50268
50269     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50270     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50271         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50272     fi
50273
50274     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50275     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50276         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50277     fi
50278
50279     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50280     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50281         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50282     fi
50283
50284     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50285     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50286         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50287     fi
50288
50289     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50290     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50291         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50292     fi
50293
50294     COND_USE_OPENGL_1="#"
50295     if test "x$USE_OPENGL" = "x1" ; then
50296         COND_USE_OPENGL_1=""
50297     fi
50298
50299     COND_USE_PCH_1="#"
50300     if test "x$USE_PCH" = "x1" ; then
50301         COND_USE_PCH_1=""
50302     fi
50303
50304     COND_USE_PLUGINS_0="#"
50305     if test "x$USE_PLUGINS" = "x0" ; then
50306         COND_USE_PLUGINS_0=""
50307     fi
50308
50309     COND_USE_RTTI_0="#"
50310     if test "x$USE_RTTI" = "x0" ; then
50311         COND_USE_RTTI_0=""
50312     fi
50313
50314     COND_USE_RTTI_1="#"
50315     if test "x$USE_RTTI" = "x1" ; then
50316         COND_USE_RTTI_1=""
50317     fi
50318
50319     COND_USE_SOSYMLINKS_1="#"
50320     if test "x$USE_SOSYMLINKS" = "x1" ; then
50321         COND_USE_SOSYMLINKS_1=""
50322     fi
50323
50324     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50325     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50326         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50327     fi
50328
50329     COND_USE_SOVERLINUX_1="#"
50330     if test "x$USE_SOVERLINUX" = "x1" ; then
50331         COND_USE_SOVERLINUX_1=""
50332     fi
50333
50334     COND_USE_SOVERSION_0="#"
50335     if test "x$USE_SOVERSION" = "x0" ; then
50336         COND_USE_SOVERSION_0=""
50337     fi
50338
50339     COND_USE_SOVERSOLARIS_1="#"
50340     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50341         COND_USE_SOVERSOLARIS_1=""
50342     fi
50343
50344     COND_USE_STC_1="#"
50345     if test "x$USE_STC" = "x1" ; then
50346         COND_USE_STC_1=""
50347     fi
50348
50349     COND_USE_THREADS_0="#"
50350     if test "x$USE_THREADS" = "x0" ; then
50351         COND_USE_THREADS_0=""
50352     fi
50353
50354     COND_USE_THREADS_1="#"
50355     if test "x$USE_THREADS" = "x1" ; then
50356         COND_USE_THREADS_1=""
50357     fi
50358
50359     COND_USE_XRC_1="#"
50360     if test "x$USE_XRC" = "x1" ; then
50361         COND_USE_XRC_1=""
50362     fi
50363
50364     COND_WINDOWS_IMPLIB_1="#"
50365     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50366         COND_WINDOWS_IMPLIB_1=""
50367     fi
50368
50369     COND_WITH_PLUGIN_SDL_1="#"
50370     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50371         COND_WITH_PLUGIN_SDL_1=""
50372     fi
50373
50374     COND_WXUNIV_0="#"
50375     if test "x$WXUNIV" = "x0" ; then
50376         COND_WXUNIV_0=""
50377     fi
50378
50379     COND_WXUNIV_1="#"
50380     if test "x$WXUNIV" = "x1" ; then
50381         COND_WXUNIV_1=""
50382     fi
50383
50384     COND_WXUSE_EXPAT_BUILTIN="#"
50385     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50386         COND_WXUSE_EXPAT_BUILTIN=""
50387     fi
50388
50389     COND_WXUSE_LIBJPEG_BUILTIN="#"
50390     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50391         COND_WXUSE_LIBJPEG_BUILTIN=""
50392     fi
50393
50394     COND_WXUSE_LIBPNG_BUILTIN="#"
50395     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50396         COND_WXUSE_LIBPNG_BUILTIN=""
50397     fi
50398
50399     COND_WXUSE_LIBTIFF_BUILTIN="#"
50400     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50401         COND_WXUSE_LIBTIFF_BUILTIN=""
50402     fi
50403
50404     COND_WXUSE_REGEX_BUILTIN="#"
50405     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50406         COND_WXUSE_REGEX_BUILTIN=""
50407     fi
50408
50409     COND_WXUSE_ZLIB_BUILTIN="#"
50410     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50411         COND_WXUSE_ZLIB_BUILTIN=""
50412     fi
50413
50414     COND_wxUSE_EXPAT_builtin="#"
50415     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50416         COND_wxUSE_EXPAT_builtin=""
50417     fi
50418
50419     COND_wxUSE_LIBJPEG_builtin="#"
50420     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50421         COND_wxUSE_LIBJPEG_builtin=""
50422     fi
50423
50424     COND_wxUSE_LIBPNG_builtin="#"
50425     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50426         COND_wxUSE_LIBPNG_builtin=""
50427     fi
50428
50429     COND_wxUSE_LIBTIFF_builtin="#"
50430     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50431         COND_wxUSE_LIBTIFF_builtin=""
50432     fi
50433
50434     COND_wxUSE_REGEX_builtin="#"
50435     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50436         COND_wxUSE_REGEX_builtin=""
50437     fi
50438
50439     COND_wxUSE_ZLIB_builtin="#"
50440     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50441         COND_wxUSE_ZLIB_builtin=""
50442     fi
50443
50444
50445
50446     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50447         { { 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
50448 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;}
50449    { (exit 1); exit 1; }; }
50450     fi
50451
50452     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50453         { { 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
50454 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;}
50455    { (exit 1); exit 1; }; }
50456     fi
50457
50458
50459 case ${INSTALL} in
50460   /* ) # Absolute
50461      ;;
50462   ?:* ) # Drive letter, considered as absolute.
50463      ;;
50464   *)
50465      INSTALL=`pwd`/${INSTALL} ;;
50466 esac
50467
50468 if test "$wxUSE_GUI" = "yes"; then
50469
50470 if test "$wxUSE_MSW" = 1 ; then
50471     if test "x$WINDRES" = "x"; then
50472         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50473 echo "$as_me: error: Required windres program not found" >&2;}
50474    { (exit 1); exit 1; }; }
50475     fi
50476
50477     RESCOMP="$WINDRES"
50478 fi
50479
50480 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50481             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50482     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50483
50484         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50485
50486     # Extract the first word of "DeRez", so it can be a program name with args.
50487 set dummy DeRez; ac_word=$2
50488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50490 if test "${ac_cv_prog_DEREZ+set}" = set; then
50491   echo $ECHO_N "(cached) $ECHO_C" >&6
50492 else
50493   if test -n "$DEREZ"; then
50494   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50495 else
50496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50497 for as_dir in $PATH
50498 do
50499   IFS=$as_save_IFS
50500   test -z "$as_dir" && as_dir=.
50501   for ac_exec_ext in '' $ac_executable_extensions; do
50502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50503     ac_cv_prog_DEREZ="DeRez"
50504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50505     break 2
50506   fi
50507 done
50508 done
50509 IFS=$as_save_IFS
50510
50511   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50512 fi
50513 fi
50514 DEREZ=$ac_cv_prog_DEREZ
50515 if test -n "$DEREZ"; then
50516   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50517 echo "${ECHO_T}$DEREZ" >&6; }
50518 else
50519   { echo "$as_me:$LINENO: result: no" >&5
50520 echo "${ECHO_T}no" >&6; }
50521 fi
50522
50523
50524
50525     MACSETFILE="\$(SETFILE)"
50526
50527             if test "$wxUSE_OSX_CARBON" = 1; then
50528         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50529         RESCOMP="$REZ"
50530         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50531     else
50532         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50533         RESCOMP="cat /dev/null \| $REZ"
50534         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50535     fi
50536
50537 else
50538         MACSETFILE="@true"
50539
50540     if test "$wxUSE_PM" = 1; then
50541         RESCOMP="emxbind"
50542         WXCONFIG_RESFLAGS="-ep"
50543
50544                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50545     else
50546         POSTLINK_COMMAND="@true"
50547     fi
50548 fi
50549
50550 fi
50551
50552
50553 if test $GCC_PCH = 1
50554 then
50555     if test "$wx_cv_gcc_pch_bug" = yes; then
50556         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50557 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50558         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50559 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50560         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50561 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50562     fi
50563
50564     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50565     # the headers that benefit from precompilation are mostly C++ headers.
50566     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50567     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50568     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50569 fi
50570
50571
50572 if test "$wxUSE_MAC" = 1 ; then
50573     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50574         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50575         mv temp bk-deps
50576         chmod +x bk-deps
50577     fi
50578 fi
50579
50580 if test "$wxUSE_SHARED" = "yes"; then
50581                 case "${host}" in
50582       *-pc-os2_emx | *-pc-os2-emx )
50583         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50584         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50585         cp -p ${srcdir}/src/os2/dllnames.sh .
50586         cp -p ${srcdir}/src/os2/dllar.sh .
50587       ;;
50588     esac
50589 fi
50590 if test "$wxUSE_OMF" = "yes"; then
50591     case "${host}" in
50592       *-pc-os2_emx | *-pc-os2-emx )
50593         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50594         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50595         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50596       ;;
50597     esac
50598 fi
50599
50600 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50601
50602
50603 case "${host}" in
50604     *-*-solaris2* )
50605                         if test "$GCC" = yes; then
50606             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50607             LIBS=`echo $LIBS | sed 's/-mt//'`
50608             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50609         fi
50610         ;;
50611
50612     *-*-linux* )
50613                         if test "x$SUNCXX" = xyes; then
50614             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50615             LIBS=`echo $LIBS | sed 's/-pthread//'`
50616             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50617         fi
50618         ;;
50619 esac
50620
50621 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50622 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50623 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50624 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50625
50626 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50627
50628
50629
50630
50631
50632
50633
50634
50635
50636
50637
50638
50639
50640
50641
50642
50643
50644
50645
50646
50647
50648
50649
50650
50651
50652
50653
50654
50655
50656
50657
50658
50659
50660
50661
50662
50663
50664
50665
50666
50667
50668
50669
50670
50671
50672
50673
50674
50675
50676
50677
50678
50679
50680
50681
50682
50683
50684
50685
50686
50687 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50688 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50689 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50690 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50691   echo $ECHO_N "(cached) $ECHO_C" >&6
50692 else
50693   cat >conftest.make <<\_ACEOF
50694 SHELL = /bin/sh
50695 all:
50696         @echo '@@@%%%=$(MAKE)=@@@%%%'
50697 _ACEOF
50698 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50699 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50700   *@@@%%%=?*=@@@%%%*)
50701     eval ac_cv_prog_make_${ac_make}_set=yes;;
50702   *)
50703     eval ac_cv_prog_make_${ac_make}_set=no;;
50704 esac
50705 rm -f conftest.make
50706 fi
50707 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50708   { echo "$as_me:$LINENO: result: yes" >&5
50709 echo "${ECHO_T}yes" >&6; }
50710   SET_MAKE=
50711 else
50712   { echo "$as_me:$LINENO: result: no" >&5
50713 echo "${ECHO_T}no" >&6; }
50714   SET_MAKE="MAKE=${MAKE-make}"
50715 fi
50716
50717
50718
50719 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50720
50721
50722 if test "$USE_WIN32" = 1; then
50723     ac_config_commands="$ac_config_commands
50724             rcdefs.h
50725         "
50726
50727 fi
50728
50729 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50730
50731
50732 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50733
50734
50735 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50736
50737
50738 if test "$wx_cv_version_script" = "yes"; then
50739     ac_config_files="$ac_config_files version-script"
50740
50741 fi
50742 ac_config_files="$ac_config_files Makefile"
50743
50744
50745 ac_config_commands="$ac_config_commands wx-config"
50746
50747
50748
50749 if test "$wxWITH_SUBDIRS" != "no"; then
50750 if test "$wxUSE_GUI" = "yes"; then
50751     SUBDIRS="samples demos utils"
50752 else
50753             SUBDIRS="samples utils"
50754 fi
50755
50756
50757
50758 # Check whether --with-cppunit-prefix was given.
50759 if test "${with_cppunit_prefix+set}" = set; then
50760   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50761 else
50762   cppunit_config_prefix=""
50763 fi
50764
50765
50766 # Check whether --with-cppunit-exec-prefix was given.
50767 if test "${with_cppunit_exec_prefix+set}" = set; then
50768   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50769 else
50770   cppunit_config_exec_prefix=""
50771 fi
50772
50773
50774   if test x$cppunit_config_exec_prefix != x ; then
50775      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50776      if test x${CPPUNIT_CONFIG+set} != xset ; then
50777         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50778      fi
50779   fi
50780   if test x$cppunit_config_prefix != x ; then
50781      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50782      if test x${CPPUNIT_CONFIG+set} != xset ; then
50783         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50784      fi
50785   fi
50786
50787   # Extract the first word of "cppunit-config", so it can be a program name with args.
50788 set dummy cppunit-config; ac_word=$2
50789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50791 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50792   echo $ECHO_N "(cached) $ECHO_C" >&6
50793 else
50794   case $CPPUNIT_CONFIG in
50795   [\\/]* | ?:[\\/]*)
50796   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50797   ;;
50798   *)
50799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50800 for as_dir in $PATH
50801 do
50802   IFS=$as_save_IFS
50803   test -z "$as_dir" && as_dir=.
50804   for ac_exec_ext in '' $ac_executable_extensions; do
50805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50806     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50808     break 2
50809   fi
50810 done
50811 done
50812 IFS=$as_save_IFS
50813
50814   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50815   ;;
50816 esac
50817 fi
50818 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50819 if test -n "$CPPUNIT_CONFIG"; then
50820   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50821 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50822 else
50823   { echo "$as_me:$LINENO: result: no" >&5
50824 echo "${ECHO_T}no" >&6; }
50825 fi
50826
50827
50828   cppunit_version_min=1.8.0
50829
50830   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50831 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50832   no_cppunit=""
50833   if test "$CPPUNIT_CONFIG" = "no" ; then
50834     { echo "$as_me:$LINENO: result: no" >&5
50835 echo "${ECHO_T}no" >&6; }
50836     no_cppunit=yes
50837   else
50838     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50839     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50840     cppunit_version=`$CPPUNIT_CONFIG --version`
50841
50842     cppunit_major_version=`echo $cppunit_version | \
50843            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50844     cppunit_minor_version=`echo $cppunit_version | \
50845            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50846     cppunit_micro_version=`echo $cppunit_version | \
50847            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50848
50849     cppunit_major_min=`echo $cppunit_version_min | \
50850            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50851     cppunit_minor_min=`echo $cppunit_version_min | \
50852            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50853     cppunit_micro_min=`echo $cppunit_version_min | \
50854            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50855
50856     cppunit_version_proper=`expr \
50857         $cppunit_major_version \> $cppunit_major_min \| \
50858         $cppunit_major_version \= $cppunit_major_min \& \
50859         $cppunit_minor_version \> $cppunit_minor_min \| \
50860         $cppunit_major_version \= $cppunit_major_min \& \
50861         $cppunit_minor_version \= $cppunit_minor_min \& \
50862         $cppunit_micro_version \>= $cppunit_micro_min `
50863
50864     if test "$cppunit_version_proper" = "1" ; then
50865       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50866 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50867     else
50868       { echo "$as_me:$LINENO: result: no" >&5
50869 echo "${ECHO_T}no" >&6; }
50870       no_cppunit=yes
50871     fi
50872   fi
50873
50874   if test "x$no_cppunit" = x ; then
50875      SUBDIRS="$SUBDIRS tests"
50876   else
50877      CPPUNIT_CFLAGS=""
50878      CPPUNIT_LIBS=""
50879      :
50880   fi
50881
50882
50883
50884
50885
50886 for subdir in $SUBDIRS; do
50887     if test -d ${srcdir}/${subdir} ; then
50888         if test "$wxUSE_GUI" = "yes"; then
50889             if test ${subdir} = "samples"; then
50890                                                 makefiles="samples/Makefile.in $makefiles"
50891                 for sample in $SAMPLES_SUBDIRS; do
50892                     if test -d $srcdir/samples/$sample; then
50893                         makefiles="samples/$sample/Makefile.in $makefiles"
50894                     fi
50895                 done
50896             else
50897                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50898                 eval "disabled=\$$disabled_var"
50899                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50900                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50901             fi
50902         else
50903                                     if test ${subdir} = "samples"; then
50904                                                 makefiles="samples/Makefile.in $makefiles"
50905                 for sample in `echo $SAMPLES_SUBDIRS`; do
50906                     if test -d $srcdir/samples/$sample; then
50907                         makefiles="samples/$sample/Makefile.in $makefiles"
50908                     fi
50909                 done
50910             elif test ${subdir} = "utils"; then
50911                 makefiles=""
50912                 for util in ifacecheck ; do
50913                     if test -d $srcdir/utils/$util ; then
50914                         makefiles="utils/$util/src/Makefile.in \
50915                                    $makefiles"
50916                     fi
50917                 done
50918             else
50919                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50920             fi
50921         fi
50922
50923         for mkin in $makefiles ; do
50924             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50925             ac_config_files="$ac_config_files $mk"
50926
50927         done
50928     fi
50929 done
50930 fi
50931 cat >confcache <<\_ACEOF
50932 # This file is a shell script that caches the results of configure
50933 # tests run on this system so they can be shared between configure
50934 # scripts and configure runs, see configure's option --config-cache.
50935 # It is not useful on other systems.  If it contains results you don't
50936 # want to keep, you may remove or edit it.
50937 #
50938 # config.status only pays attention to the cache file if you give it
50939 # the --recheck option to rerun configure.
50940 #
50941 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50942 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50943 # following values.
50944
50945 _ACEOF
50946
50947 # The following way of writing the cache mishandles newlines in values,
50948 # but we know of no workaround that is simple, portable, and efficient.
50949 # So, we kill variables containing newlines.
50950 # Ultrix sh set writes to stderr and can't be redirected directly,
50951 # and sets the high bit in the cache file unless we assign to the vars.
50952 (
50953   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50954     eval ac_val=\$$ac_var
50955     case $ac_val in #(
50956     *${as_nl}*)
50957       case $ac_var in #(
50958       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50959 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50960       esac
50961       case $ac_var in #(
50962       _ | IFS | as_nl) ;; #(
50963       *) $as_unset $ac_var ;;
50964       esac ;;
50965     esac
50966   done
50967
50968   (set) 2>&1 |
50969     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50970     *${as_nl}ac_space=\ *)
50971       # `set' does not quote correctly, so add quotes (double-quote
50972       # substitution turns \\\\ into \\, and sed turns \\ into \).
50973       sed -n \
50974         "s/'/'\\\\''/g;
50975           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50976       ;; #(
50977     *)
50978       # `set' quotes correctly as required by POSIX, so do not add quotes.
50979       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50980       ;;
50981     esac |
50982     sort
50983 ) |
50984   sed '
50985      /^ac_cv_env_/b end
50986      t clear
50987      :clear
50988      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50989      t end
50990      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50991      :end' >>confcache
50992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50993   if test -w "$cache_file"; then
50994     test "x$cache_file" != "x/dev/null" &&
50995       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50996 echo "$as_me: updating cache $cache_file" >&6;}
50997     cat confcache >$cache_file
50998   else
50999     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51000 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51001   fi
51002 fi
51003 rm -f confcache
51004
51005 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51006 # Let make expand exec_prefix.
51007 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51008
51009 DEFS=-DHAVE_CONFIG_H
51010
51011 ac_libobjs=
51012 ac_ltlibobjs=
51013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51014   # 1. Remove the extension, and $U if already installed.
51015   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51016   ac_i=`echo "$ac_i" | sed "$ac_script"`
51017   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51018   #    will be set to the directory where LIBOBJS objects are built.
51019   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51020   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51021 done
51022 LIBOBJS=$ac_libobjs
51023
51024 LTLIBOBJS=$ac_ltlibobjs
51025
51026
51027
51028 : ${CONFIG_STATUS=./config.status}
51029 ac_clean_files_save=$ac_clean_files
51030 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51031 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51032 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51033 cat >$CONFIG_STATUS <<_ACEOF
51034 #! $SHELL
51035 # Generated by $as_me.
51036 # Run this file to recreate the current configuration.
51037 # Compiler output produced by configure, useful for debugging
51038 # configure, is in config.log if it exists.
51039
51040 debug=false
51041 ac_cs_recheck=false
51042 ac_cs_silent=false
51043 SHELL=\${CONFIG_SHELL-$SHELL}
51044 _ACEOF
51045
51046 cat >>$CONFIG_STATUS <<\_ACEOF
51047 ## --------------------- ##
51048 ## M4sh Initialization.  ##
51049 ## --------------------- ##
51050
51051 # Be more Bourne compatible
51052 DUALCASE=1; export DUALCASE # for MKS sh
51053 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51054   emulate sh
51055   NULLCMD=:
51056   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51057   # is contrary to our usage.  Disable this feature.
51058   alias -g '${1+"$@"}'='"$@"'
51059   setopt NO_GLOB_SUBST
51060 else
51061   case `(set -o) 2>/dev/null` in
51062   *posix*) set -o posix ;;
51063 esac
51064
51065 fi
51066
51067
51068
51069
51070 # PATH needs CR
51071 # Avoid depending upon Character Ranges.
51072 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51073 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51074 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51075 as_cr_digits='0123456789'
51076 as_cr_alnum=$as_cr_Letters$as_cr_digits
51077
51078 # The user is always right.
51079 if test "${PATH_SEPARATOR+set}" != set; then
51080   echo "#! /bin/sh" >conf$$.sh
51081   echo  "exit 0"   >>conf$$.sh
51082   chmod +x conf$$.sh
51083   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51084     PATH_SEPARATOR=';'
51085   else
51086     PATH_SEPARATOR=:
51087   fi
51088   rm -f conf$$.sh
51089 fi
51090
51091 # Support unset when possible.
51092 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51093   as_unset=unset
51094 else
51095   as_unset=false
51096 fi
51097
51098
51099 # IFS
51100 # We need space, tab and new line, in precisely that order.  Quoting is
51101 # there to prevent editors from complaining about space-tab.
51102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51103 # splitting by setting IFS to empty value.)
51104 as_nl='
51105 '
51106 IFS=" ""        $as_nl"
51107
51108 # Find who we are.  Look in the path if we contain no directory separator.
51109 case $0 in
51110   *[\\/]* ) as_myself=$0 ;;
51111   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51112 for as_dir in $PATH
51113 do
51114   IFS=$as_save_IFS
51115   test -z "$as_dir" && as_dir=.
51116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51117 done
51118 IFS=$as_save_IFS
51119
51120      ;;
51121 esac
51122 # We did not find ourselves, most probably we were run as `sh COMMAND'
51123 # in which case we are not to be found in the path.
51124 if test "x$as_myself" = x; then
51125   as_myself=$0
51126 fi
51127 if test ! -f "$as_myself"; then
51128   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51129   { (exit 1); exit 1; }
51130 fi
51131
51132 # Work around bugs in pre-3.0 UWIN ksh.
51133 for as_var in ENV MAIL MAILPATH
51134 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51135 done
51136 PS1='$ '
51137 PS2='> '
51138 PS4='+ '
51139
51140 # NLS nuisances.
51141 for as_var in \
51142   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51143   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51144   LC_TELEPHONE LC_TIME
51145 do
51146   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51147     eval $as_var=C; export $as_var
51148   else
51149     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51150   fi
51151 done
51152
51153 # Required to use basename.
51154 if expr a : '\(a\)' >/dev/null 2>&1 &&
51155    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51156   as_expr=expr
51157 else
51158   as_expr=false
51159 fi
51160
51161 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51162   as_basename=basename
51163 else
51164   as_basename=false
51165 fi
51166
51167
51168 # Name of the executable.
51169 as_me=`$as_basename -- "$0" ||
51170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51171          X"$0" : 'X\(//\)$' \| \
51172          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51173 echo X/"$0" |
51174     sed '/^.*\/\([^/][^/]*\)\/*$/{
51175             s//\1/
51176             q
51177           }
51178           /^X\/\(\/\/\)$/{
51179             s//\1/
51180             q
51181           }
51182           /^X\/\(\/\).*/{
51183             s//\1/
51184             q
51185           }
51186           s/.*/./; q'`
51187
51188 # CDPATH.
51189 $as_unset CDPATH
51190
51191
51192
51193   as_lineno_1=$LINENO
51194   as_lineno_2=$LINENO
51195   test "x$as_lineno_1" != "x$as_lineno_2" &&
51196   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51197
51198   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51199   # uniformly replaced by the line number.  The first 'sed' inserts a
51200   # line-number line after each line using $LINENO; the second 'sed'
51201   # does the real work.  The second script uses 'N' to pair each
51202   # line-number line with the line containing $LINENO, and appends
51203   # trailing '-' during substitution so that $LINENO is not a special
51204   # case at line end.
51205   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51206   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51207   # E. McMahon (1931-1989) for sed's syntax.  :-)
51208   sed -n '
51209     p
51210     /[$]LINENO/=
51211   ' <$as_myself |
51212     sed '
51213       s/[$]LINENO.*/&-/
51214       t lineno
51215       b
51216       :lineno
51217       N
51218       :loop
51219       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51220       t loop
51221       s/-\n.*//
51222     ' >$as_me.lineno &&
51223   chmod +x "$as_me.lineno" ||
51224     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51225    { (exit 1); exit 1; }; }
51226
51227   # Don't try to exec as it changes $[0], causing all sort of problems
51228   # (the dirname of $[0] is not the place where we might find the
51229   # original and so on.  Autoconf is especially sensitive to this).
51230   . "./$as_me.lineno"
51231   # Exit status is that of the last command.
51232   exit
51233 }
51234
51235
51236 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51237   as_dirname=dirname
51238 else
51239   as_dirname=false
51240 fi
51241
51242 ECHO_C= ECHO_N= ECHO_T=
51243 case `echo -n x` in
51244 -n*)
51245   case `echo 'x\c'` in
51246   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51247   *)   ECHO_C='\c';;
51248   esac;;
51249 *)
51250   ECHO_N='-n';;
51251 esac
51252
51253 if expr a : '\(a\)' >/dev/null 2>&1 &&
51254    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51255   as_expr=expr
51256 else
51257   as_expr=false
51258 fi
51259
51260 rm -f conf$$ conf$$.exe conf$$.file
51261 if test -d conf$$.dir; then
51262   rm -f conf$$.dir/conf$$.file
51263 else
51264   rm -f conf$$.dir
51265   mkdir conf$$.dir
51266 fi
51267 echo >conf$$.file
51268 if ln -s conf$$.file conf$$ 2>/dev/null; then
51269   as_ln_s='ln -s'
51270   # ... but there are two gotchas:
51271   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51272   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51273   # In both cases, we have to default to `cp -p'.
51274   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51275     as_ln_s='cp -p'
51276 elif ln conf$$.file conf$$ 2>/dev/null; then
51277   as_ln_s=ln
51278 else
51279   as_ln_s='cp -p'
51280 fi
51281 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51282 rmdir conf$$.dir 2>/dev/null
51283
51284 if mkdir -p . 2>/dev/null; then
51285   as_mkdir_p=:
51286 else
51287   test -d ./-p && rmdir ./-p
51288   as_mkdir_p=false
51289 fi
51290
51291 if test -x / >/dev/null 2>&1; then
51292   as_test_x='test -x'
51293 else
51294   if ls -dL / >/dev/null 2>&1; then
51295     as_ls_L_option=L
51296   else
51297     as_ls_L_option=
51298   fi
51299   as_test_x='
51300     eval sh -c '\''
51301       if test -d "$1"; then
51302         test -d "$1/.";
51303       else
51304         case $1 in
51305         -*)set "./$1";;
51306         esac;
51307         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51308         ???[sx]*):;;*)false;;esac;fi
51309     '\'' sh
51310   '
51311 fi
51312 as_executable_p=$as_test_x
51313
51314 # Sed expression to map a string onto a valid CPP name.
51315 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51316
51317 # Sed expression to map a string onto a valid variable name.
51318 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51319
51320
51321 exec 6>&1
51322
51323 # Save the log message, to keep $[0] and so on meaningful, and to
51324 # report actual input values of CONFIG_FILES etc. instead of their
51325 # values after options handling.
51326 ac_log="
51327 This file was extended by wxWidgets $as_me 2.9.0, which was
51328 generated by GNU Autoconf 2.61.  Invocation command line was
51329
51330   CONFIG_FILES    = $CONFIG_FILES
51331   CONFIG_HEADERS  = $CONFIG_HEADERS
51332   CONFIG_LINKS    = $CONFIG_LINKS
51333   CONFIG_COMMANDS = $CONFIG_COMMANDS
51334   $ $0 $@
51335
51336 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51337 "
51338
51339 _ACEOF
51340
51341 cat >>$CONFIG_STATUS <<_ACEOF
51342 # Files that config.status was made for.
51343 config_files="$ac_config_files"
51344 config_headers="$ac_config_headers"
51345 config_commands="$ac_config_commands"
51346
51347 _ACEOF
51348
51349 cat >>$CONFIG_STATUS <<\_ACEOF
51350 ac_cs_usage="\
51351 \`$as_me' instantiates files from templates according to the
51352 current configuration.
51353
51354 Usage: $0 [OPTIONS] [FILE]...
51355
51356   -h, --help       print this help, then exit
51357   -V, --version    print version number and configuration settings, then exit
51358   -q, --quiet      do not print progress messages
51359   -d, --debug      don't remove temporary files
51360       --recheck    update $as_me by reconfiguring in the same conditions
51361   --file=FILE[:TEMPLATE]
51362                    instantiate the configuration file FILE
51363   --header=FILE[:TEMPLATE]
51364                    instantiate the configuration header FILE
51365
51366 Configuration files:
51367 $config_files
51368
51369 Configuration headers:
51370 $config_headers
51371
51372 Configuration commands:
51373 $config_commands
51374
51375 Report bugs to <bug-autoconf@gnu.org>."
51376
51377 _ACEOF
51378 cat >>$CONFIG_STATUS <<_ACEOF
51379 ac_cs_version="\\
51380 wxWidgets config.status 2.9.0
51381 configured by $0, generated by GNU Autoconf 2.61,
51382   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51383
51384 Copyright (C) 2006 Free Software Foundation, Inc.
51385 This config.status script is free software; the Free Software Foundation
51386 gives unlimited permission to copy, distribute and modify it."
51387
51388 ac_pwd='$ac_pwd'
51389 srcdir='$srcdir'
51390 INSTALL='$INSTALL'
51391 _ACEOF
51392
51393 cat >>$CONFIG_STATUS <<\_ACEOF
51394 # If no file are specified by the user, then we need to provide default
51395 # value.  By we need to know if files were specified by the user.
51396 ac_need_defaults=:
51397 while test $# != 0
51398 do
51399   case $1 in
51400   --*=*)
51401     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51402     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51403     ac_shift=:
51404     ;;
51405   *)
51406     ac_option=$1
51407     ac_optarg=$2
51408     ac_shift=shift
51409     ;;
51410   esac
51411
51412   case $ac_option in
51413   # Handling of the options.
51414   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51415     ac_cs_recheck=: ;;
51416   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51417     echo "$ac_cs_version"; exit ;;
51418   --debug | --debu | --deb | --de | --d | -d )
51419     debug=: ;;
51420   --file | --fil | --fi | --f )
51421     $ac_shift
51422     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51423     ac_need_defaults=false;;
51424   --header | --heade | --head | --hea )
51425     $ac_shift
51426     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51427     ac_need_defaults=false;;
51428   --he | --h)
51429     # Conflict between --help and --header
51430     { echo "$as_me: error: ambiguous option: $1
51431 Try \`$0 --help' for more information." >&2
51432    { (exit 1); exit 1; }; };;
51433   --help | --hel | -h )
51434     echo "$ac_cs_usage"; exit ;;
51435   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51436   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51437     ac_cs_silent=: ;;
51438
51439   # This is an error.
51440   -*) { echo "$as_me: error: unrecognized option: $1
51441 Try \`$0 --help' for more information." >&2
51442    { (exit 1); exit 1; }; } ;;
51443
51444   *) ac_config_targets="$ac_config_targets $1"
51445      ac_need_defaults=false ;;
51446
51447   esac
51448   shift
51449 done
51450
51451 ac_configure_extra_args=
51452
51453 if $ac_cs_silent; then
51454   exec 6>/dev/null
51455   ac_configure_extra_args="$ac_configure_extra_args --silent"
51456 fi
51457
51458 _ACEOF
51459 cat >>$CONFIG_STATUS <<_ACEOF
51460 if \$ac_cs_recheck; then
51461   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51462   CONFIG_SHELL=$SHELL
51463   export CONFIG_SHELL
51464   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51465 fi
51466
51467 _ACEOF
51468 cat >>$CONFIG_STATUS <<\_ACEOF
51469 exec 5>>config.log
51470 {
51471   echo
51472   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51473 ## Running $as_me. ##
51474 _ASBOX
51475   echo "$ac_log"
51476 } >&5
51477
51478 _ACEOF
51479 cat >>$CONFIG_STATUS <<_ACEOF
51480 #
51481 # INIT-COMMANDS
51482 #
51483
51484             CPP="$CPP"
51485             infile="$srcdir/include/wx/msw/genrcdefs.h"
51486             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51487
51488
51489  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51490  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51491  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51492                      LN_S="${LN_S}"
51493
51494
51495 _ACEOF
51496
51497 cat >>$CONFIG_STATUS <<\_ACEOF
51498
51499 # Handling of arguments.
51500 for ac_config_target in $ac_config_targets
51501 do
51502   case $ac_config_target in
51503     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51504     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51505     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51506     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51507     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51508     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51509     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51510     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51511     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51512
51513   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51514 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51515    { (exit 1); exit 1; }; };;
51516   esac
51517 done
51518
51519
51520 # If the user did not use the arguments to specify the items to instantiate,
51521 # then the envvar interface is used.  Set only those that are not.
51522 # We use the long form for the default assignment because of an extremely
51523 # bizarre bug on SunOS 4.1.3.
51524 if $ac_need_defaults; then
51525   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51526   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51527   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51528 fi
51529
51530 # Have a temporary directory for convenience.  Make it in the build tree
51531 # simply because there is no reason against having it here, and in addition,
51532 # creating and moving files from /tmp can sometimes cause problems.
51533 # Hook for its removal unless debugging.
51534 # Note that there is a small window in which the directory will not be cleaned:
51535 # after its creation but before its name has been assigned to `$tmp'.
51536 $debug ||
51537 {
51538   tmp=
51539   trap 'exit_status=$?
51540   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51541 ' 0
51542   trap '{ (exit 1); exit 1; }' 1 2 13 15
51543 }
51544 # Create a (secure) tmp directory for tmp files.
51545
51546 {
51547   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51548   test -n "$tmp" && test -d "$tmp"
51549 }  ||
51550 {
51551   tmp=./conf$$-$RANDOM
51552   (umask 077 && mkdir "$tmp")
51553 } ||
51554 {
51555    echo "$me: cannot create a temporary directory in ." >&2
51556    { (exit 1); exit 1; }
51557 }
51558
51559 #
51560 # Set up the sed scripts for CONFIG_FILES section.
51561 #
51562
51563 # No need to generate the scripts if there are no CONFIG_FILES.
51564 # This happens for instance when ./config.status config.h
51565 if test -n "$CONFIG_FILES"; then
51566
51567 _ACEOF
51568
51569
51570
51571 ac_delim='%!_!# '
51572 for ac_last_try in false false false false false :; do
51573   cat >conf$$subs.sed <<_ACEOF
51574 SHELL!$SHELL$ac_delim
51575 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51576 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51577 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51578 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51579 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51580 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51581 exec_prefix!$exec_prefix$ac_delim
51582 prefix!$prefix$ac_delim
51583 program_transform_name!$program_transform_name$ac_delim
51584 bindir!$bindir$ac_delim
51585 sbindir!$sbindir$ac_delim
51586 libexecdir!$libexecdir$ac_delim
51587 datarootdir!$datarootdir$ac_delim
51588 datadir!$datadir$ac_delim
51589 sysconfdir!$sysconfdir$ac_delim
51590 sharedstatedir!$sharedstatedir$ac_delim
51591 localstatedir!$localstatedir$ac_delim
51592 includedir!$includedir$ac_delim
51593 oldincludedir!$oldincludedir$ac_delim
51594 docdir!$docdir$ac_delim
51595 infodir!$infodir$ac_delim
51596 htmldir!$htmldir$ac_delim
51597 dvidir!$dvidir$ac_delim
51598 pdfdir!$pdfdir$ac_delim
51599 psdir!$psdir$ac_delim
51600 libdir!$libdir$ac_delim
51601 localedir!$localedir$ac_delim
51602 mandir!$mandir$ac_delim
51603 DEFS!$DEFS$ac_delim
51604 ECHO_C!$ECHO_C$ac_delim
51605 ECHO_N!$ECHO_N$ac_delim
51606 ECHO_T!$ECHO_T$ac_delim
51607 LIBS!$LIBS$ac_delim
51608 build_alias!$build_alias$ac_delim
51609 host_alias!$host_alias$ac_delim
51610 target_alias!$target_alias$ac_delim
51611 build!$build$ac_delim
51612 build_cpu!$build_cpu$ac_delim
51613 build_vendor!$build_vendor$ac_delim
51614 build_os!$build_os$ac_delim
51615 host!$host$ac_delim
51616 host_cpu!$host_cpu$ac_delim
51617 host_vendor!$host_vendor$ac_delim
51618 host_os!$host_os$ac_delim
51619 wx_top_builddir!$wx_top_builddir$ac_delim
51620 CC!$CC$ac_delim
51621 CFLAGS!$CFLAGS$ac_delim
51622 LDFLAGS!$LDFLAGS$ac_delim
51623 CPPFLAGS!$CPPFLAGS$ac_delim
51624 ac_ct_CC!$ac_ct_CC$ac_delim
51625 EXEEXT!$EXEEXT$ac_delim
51626 OBJEXT!$OBJEXT$ac_delim
51627 CPP!$CPP$ac_delim
51628 GREP!$GREP$ac_delim
51629 EGREP!$EGREP$ac_delim
51630 CXX!$CXX$ac_delim
51631 CXXFLAGS!$CXXFLAGS$ac_delim
51632 ac_ct_CXX!$ac_ct_CXX$ac_delim
51633 AR!$AR$ac_delim
51634 subdirs!$subdirs$ac_delim
51635 PKG_CONFIG!$PKG_CONFIG$ac_delim
51636 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51637 GTK_LIBS!$GTK_LIBS$ac_delim
51638 GTK_CONFIG!$GTK_CONFIG$ac_delim
51639 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51640 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51641 XMKMF!$XMKMF$ac_delim
51642 X_CFLAGS!$X_CFLAGS$ac_delim
51643 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51644 X_LIBS!$X_LIBS$ac_delim
51645 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51646 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51647 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51648 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51649 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51650 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51651 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51652 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51653 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51654 LIBICONV!$LIBICONV$ac_delim
51655 GXX_VERSION!$GXX_VERSION$ac_delim
51656 SDL_CONFIG!$SDL_CONFIG$ac_delim
51657 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51658 SDL_LIBS!$SDL_LIBS$ac_delim
51659 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51660 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51661 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51662 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51663 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51664 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51665 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51666 HILDON_LIBS!$HILDON_LIBS$ac_delim
51667 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51668 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51669 GST_CFLAGS!$GST_CFLAGS$ac_delim
51670 GST_LIBS!$GST_LIBS$ac_delim
51671 _ACEOF
51672
51673   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51674     break
51675   elif $ac_last_try; then
51676     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51677 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51678    { (exit 1); exit 1; }; }
51679   else
51680     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51681   fi
51682 done
51683
51684 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51685 if test -n "$ac_eof"; then
51686   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51687   ac_eof=`expr $ac_eof + 1`
51688 fi
51689
51690 cat >>$CONFIG_STATUS <<_ACEOF
51691 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51693 _ACEOF
51694 sed '
51695 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51696 s/^/s,@/; s/!/@,|#_!!_#|/
51697 :n
51698 t n
51699 s/'"$ac_delim"'$/,g/; t
51700 s/$/\\/; p
51701 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51702 ' >>$CONFIG_STATUS <conf$$subs.sed
51703 rm -f conf$$subs.sed
51704 cat >>$CONFIG_STATUS <<_ACEOF
51705 CEOF$ac_eof
51706 _ACEOF
51707
51708
51709 ac_delim='%!_!# '
51710 for ac_last_try in false false false false false :; do
51711   cat >conf$$subs.sed <<_ACEOF
51712 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51713 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51714 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51715 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51716 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51717 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51718 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51719 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51720 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51721 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51722 VENDOR!$VENDOR$ac_delim
51723 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51724 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51725 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51726 WXUNIV!$WXUNIV$ac_delim
51727 MONOLITHIC!$MONOLITHIC$ac_delim
51728 USE_PLUGINS!$USE_PLUGINS$ac_delim
51729 CXXWARNINGS!$CXXWARNINGS$ac_delim
51730 EXTRALIBS!$EXTRALIBS$ac_delim
51731 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51732 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51733 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51734 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51735 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51736 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51737 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51738 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51739 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51740 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51741 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51742 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51743 UNICODE!$UNICODE$ac_delim
51744 BUILD!$BUILD$ac_delim
51745 DEBUG_INFO!$DEBUG_INFO$ac_delim
51746 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51747 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51748 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51749 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
51750 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
51751 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51752 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
51753 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51754 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51755 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51756 RANLIB!$RANLIB$ac_delim
51757 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51758 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51759 INSTALL_DATA!$INSTALL_DATA$ac_delim
51760 LN_S!$LN_S$ac_delim
51761 SET_MAKE!$SET_MAKE$ac_delim
51762 MAKE_SET!$MAKE_SET$ac_delim
51763 AROPTIONS!$AROPTIONS$ac_delim
51764 STRIP!$STRIP$ac_delim
51765 NM!$NM$ac_delim
51766 INSTALL_DIR!$INSTALL_DIR$ac_delim
51767 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51768 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51769 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51770 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51771 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51772 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51773 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51774 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51775 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51776 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51777 SO_SUFFIX!$SO_SUFFIX$ac_delim
51778 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51779 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51780 LIBPREFIX!$LIBPREFIX$ac_delim
51781 LIBEXT!$LIBEXT$ac_delim
51782 DLLPREFIX!$DLLPREFIX$ac_delim
51783 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51784 dlldir!$dlldir$ac_delim
51785 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51786 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51787 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51788 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51789 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51790 PIC_FLAG!$PIC_FLAG$ac_delim
51791 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51792 USE_SOVERSION!$USE_SOVERSION$ac_delim
51793 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51794 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51795 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51796 USE_MACVERSION!$USE_MACVERSION$ac_delim
51797 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51798 SONAME_FLAG!$SONAME_FLAG$ac_delim
51799 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51800 BK_DEPS!$BK_DEPS$ac_delim
51801 WINDRES!$WINDRES$ac_delim
51802 REZ!$REZ$ac_delim
51803 SETFILE!$SETFILE$ac_delim
51804 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
51805 GCC_PCH!$GCC_PCH$ac_delim
51806 ICC_PCH!$ICC_PCH$ac_delim
51807 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
51808 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
51809 _ACEOF
51810
51811   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51812     break
51813   elif $ac_last_try; then
51814     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51815 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51816    { (exit 1); exit 1; }; }
51817   else
51818     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51819   fi
51820 done
51821
51822 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51823 if test -n "$ac_eof"; then
51824   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51825   ac_eof=`expr $ac_eof + 1`
51826 fi
51827
51828 cat >>$CONFIG_STATUS <<_ACEOF
51829 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51831 _ACEOF
51832 sed '
51833 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51834 s/^/s,@/; s/!/@,|#_!!_#|/
51835 :n
51836 t n
51837 s/'"$ac_delim"'$/,g/; t
51838 s/$/\\/; p
51839 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51840 ' >>$CONFIG_STATUS <conf$$subs.sed
51841 rm -f conf$$subs.sed
51842 cat >>$CONFIG_STATUS <<_ACEOF
51843 CEOF$ac_eof
51844 _ACEOF
51845
51846
51847 ac_delim='%!_!# '
51848 for ac_last_try in false false false false false :; do
51849   cat >conf$$subs.sed <<_ACEOF
51850 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51851 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51852 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51853 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51854 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51855 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51856 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51857 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51858 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51859 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51860 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
51861 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
51862 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
51863 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
51864 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
51865 COND_BUILD_release!$COND_BUILD_release$ac_delim
51866 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
51867 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
51868 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
51869 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51870 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51871 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51872 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51873 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51874 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51875 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51876 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51877 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51878 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51879 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51880 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51881 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51882 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51883 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
51884 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51885 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51886 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51887 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51888 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51889 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51890 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51891 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51892 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51893 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
51894 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51895 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51896 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51897 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51898 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51899 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51900 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51901 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51902 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
51903 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51904 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51905 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51906 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51907 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51908 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51909 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51910 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51911 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51912 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51913 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51914 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51915 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
51916 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
51917 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
51918 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
51919 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
51920 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51921 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
51922 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51923 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51924 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
51925 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51926 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51927 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51928 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51929 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51930 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51931 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51932 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51933 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51934 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51935 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51936 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51937 COND_SHARED_0!$COND_SHARED_0$ac_delim
51938 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51939 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51940 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51941 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51942 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
51943 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
51944 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
51945 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51946 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
51947 _ACEOF
51948
51949   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51950     break
51951   elif $ac_last_try; then
51952     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51954    { (exit 1); exit 1; }; }
51955   else
51956     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51957   fi
51958 done
51959
51960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51961 if test -n "$ac_eof"; then
51962   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51963   ac_eof=`expr $ac_eof + 1`
51964 fi
51965
51966 cat >>$CONFIG_STATUS <<_ACEOF
51967 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51969 _ACEOF
51970 sed '
51971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51972 s/^/s,@/; s/!/@,|#_!!_#|/
51973 :n
51974 t n
51975 s/'"$ac_delim"'$/,g/; t
51976 s/$/\\/; p
51977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51978 ' >>$CONFIG_STATUS <conf$$subs.sed
51979 rm -f conf$$subs.sed
51980 cat >>$CONFIG_STATUS <<_ACEOF
51981 CEOF$ac_eof
51982 _ACEOF
51983
51984
51985 ac_delim='%!_!# '
51986 for ac_last_try in false false false false false :; do
51987   cat >conf$$subs.sed <<_ACEOF
51988 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
51989 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
51990 COND_SHARED_1!$COND_SHARED_1$ac_delim
51991 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
51992 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
51993 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
51994 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
51995 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51996 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
51997 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
51998 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
51999 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52000 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52001 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52002 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52003 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52004 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52005 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52006 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52007 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52008 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52009 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52010 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52011 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52012 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52013 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52014 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52015 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52016 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52017 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52018 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52019 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52020 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52021 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52022 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52023 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52024 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52025 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52026 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52027 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52028 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52029 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52030 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52031 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52032 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52033 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52034 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52035 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52036 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52037 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52038 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52039 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52040 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52041 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52042 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52043 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52044 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52045 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52046 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52047 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52048 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52049 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52050 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52051 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52052 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52053 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52054 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52055 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52056 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52057 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52058 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52059 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52060 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52061 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52062 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52063 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52064 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52065 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52066 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52067 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52068 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52069 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52070 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52071 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52072 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52073 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52074 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52075 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52076 DEREZ!$DEREZ$ac_delim
52077 SHARED!$SHARED$ac_delim
52078 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52079 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52080 USE_GUI!$USE_GUI$ac_delim
52081 AFMINSTALL!$AFMINSTALL$ac_delim
52082 WIN32INSTALL!$WIN32INSTALL$ac_delim
52083 TOOLKIT!$TOOLKIT$ac_delim
52084 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52085 _ACEOF
52086
52087   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52088     break
52089   elif $ac_last_try; then
52090     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52092    { (exit 1); exit 1; }; }
52093   else
52094     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52095   fi
52096 done
52097
52098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52099 if test -n "$ac_eof"; then
52100   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52101   ac_eof=`expr $ac_eof + 1`
52102 fi
52103
52104 cat >>$CONFIG_STATUS <<_ACEOF
52105 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52107 _ACEOF
52108 sed '
52109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52110 s/^/s,@/; s/!/@,|#_!!_#|/
52111 :n
52112 t n
52113 s/'"$ac_delim"'$/,g/; t
52114 s/$/\\/; p
52115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52116 ' >>$CONFIG_STATUS <conf$$subs.sed
52117 rm -f conf$$subs.sed
52118 cat >>$CONFIG_STATUS <<_ACEOF
52119 CEOF$ac_eof
52120 _ACEOF
52121
52122
52123 ac_delim='%!_!# '
52124 for ac_last_try in false false false false false :; do
52125   cat >conf$$subs.sed <<_ACEOF
52126 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52127 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52128 cross_compiling!$cross_compiling$ac_delim
52129 WIDGET_SET!$WIDGET_SET$ac_delim
52130 WX_RELEASE!$WX_RELEASE$ac_delim
52131 WX_VERSION!$WX_VERSION$ac_delim
52132 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52133 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52134 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
52135 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52136 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52137 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52138 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52139 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52140 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52141 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52142 GUIDIST!$GUIDIST$ac_delim
52143 DISTDIR!$DISTDIR$ac_delim
52144 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52145 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52146 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52147 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52148 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52149 RESCOMP!$RESCOMP$ac_delim
52150 RESFLAGS!$RESFLAGS$ac_delim
52151 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52152 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52153 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52154 LIBWXMACRES!$LIBWXMACRES$ac_delim
52155 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52156 MACSETFILE!$MACSETFILE$ac_delim
52157 GCC!$GCC$ac_delim
52158 DLLTOOL!$DLLTOOL$ac_delim
52159 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52160 LIBOBJS!$LIBOBJS$ac_delim
52161 LTLIBOBJS!$LTLIBOBJS$ac_delim
52162 _ACEOF
52163
52164   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
52165     break
52166   elif $ac_last_try; then
52167     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52168 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52169    { (exit 1); exit 1; }; }
52170   else
52171     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52172   fi
52173 done
52174
52175 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52176 if test -n "$ac_eof"; then
52177   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52178   ac_eof=`expr $ac_eof + 1`
52179 fi
52180
52181 cat >>$CONFIG_STATUS <<_ACEOF
52182 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52184 _ACEOF
52185 sed '
52186 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52187 s/^/s,@/; s/!/@,|#_!!_#|/
52188 :n
52189 t n
52190 s/'"$ac_delim"'$/,g/; t
52191 s/$/\\/; p
52192 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52193 ' >>$CONFIG_STATUS <conf$$subs.sed
52194 rm -f conf$$subs.sed
52195 cat >>$CONFIG_STATUS <<_ACEOF
52196 :end
52197 s/|#_!!_#|//g
52198 CEOF$ac_eof
52199 _ACEOF
52200
52201
52202 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52203 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52204 # trailing colons and then remove the whole line if VPATH becomes empty
52205 # (actually we leave an empty line to preserve line numbers).
52206 if test "x$srcdir" = x.; then
52207   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52208 s/:*\$(srcdir):*/:/
52209 s/:*\${srcdir}:*/:/
52210 s/:*@srcdir@:*/:/
52211 s/^\([^=]*=[     ]*\):*/\1/
52212 s/:*$//
52213 s/^[^=]*=[       ]*$//
52214 }'
52215 fi
52216
52217 cat >>$CONFIG_STATUS <<\_ACEOF
52218 fi # test -n "$CONFIG_FILES"
52219
52220
52221 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52222 do
52223   case $ac_tag in
52224   :[FHLC]) ac_mode=$ac_tag; continue;;
52225   esac
52226   case $ac_mode$ac_tag in
52227   :[FHL]*:*);;
52228   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52229 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52230    { (exit 1); exit 1; }; };;
52231   :[FH]-) ac_tag=-:-;;
52232   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52233   esac
52234   ac_save_IFS=$IFS
52235   IFS=:
52236   set x $ac_tag
52237   IFS=$ac_save_IFS
52238   shift
52239   ac_file=$1
52240   shift
52241
52242   case $ac_mode in
52243   :L) ac_source=$1;;
52244   :[FH])
52245     ac_file_inputs=
52246     for ac_f
52247     do
52248       case $ac_f in
52249       -) ac_f="$tmp/stdin";;
52250       *) # Look for the file first in the build tree, then in the source tree
52251          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52252          # because $ac_f cannot contain `:'.
52253          test -f "$ac_f" ||
52254            case $ac_f in
52255            [\\/$]*) false;;
52256            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52257            esac ||
52258            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52259 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52260    { (exit 1); exit 1; }; };;
52261       esac
52262       ac_file_inputs="$ac_file_inputs $ac_f"
52263     done
52264
52265     # Let's still pretend it is `configure' which instantiates (i.e., don't
52266     # use $as_me), people would be surprised to read:
52267     #    /* config.h.  Generated by config.status.  */
52268     configure_input="Generated from "`IFS=:
52269           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52270     if test x"$ac_file" != x-; then
52271       configure_input="$ac_file.  $configure_input"
52272       { echo "$as_me:$LINENO: creating $ac_file" >&5
52273 echo "$as_me: creating $ac_file" >&6;}
52274     fi
52275
52276     case $ac_tag in
52277     *:-:* | *:-) cat >"$tmp/stdin";;
52278     esac
52279     ;;
52280   esac
52281
52282   ac_dir=`$as_dirname -- "$ac_file" ||
52283 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52284          X"$ac_file" : 'X\(//\)[^/]' \| \
52285          X"$ac_file" : 'X\(//\)$' \| \
52286          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52287 echo X"$ac_file" |
52288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52289             s//\1/
52290             q
52291           }
52292           /^X\(\/\/\)[^/].*/{
52293             s//\1/
52294             q
52295           }
52296           /^X\(\/\/\)$/{
52297             s//\1/
52298             q
52299           }
52300           /^X\(\/\).*/{
52301             s//\1/
52302             q
52303           }
52304           s/.*/./; q'`
52305   { as_dir="$ac_dir"
52306   case $as_dir in #(
52307   -*) as_dir=./$as_dir;;
52308   esac
52309   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52310     as_dirs=
52311     while :; do
52312       case $as_dir in #(
52313       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52314       *) as_qdir=$as_dir;;
52315       esac
52316       as_dirs="'$as_qdir' $as_dirs"
52317       as_dir=`$as_dirname -- "$as_dir" ||
52318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52319          X"$as_dir" : 'X\(//\)[^/]' \| \
52320          X"$as_dir" : 'X\(//\)$' \| \
52321          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52322 echo X"$as_dir" |
52323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52324             s//\1/
52325             q
52326           }
52327           /^X\(\/\/\)[^/].*/{
52328             s//\1/
52329             q
52330           }
52331           /^X\(\/\/\)$/{
52332             s//\1/
52333             q
52334           }
52335           /^X\(\/\).*/{
52336             s//\1/
52337             q
52338           }
52339           s/.*/./; q'`
52340       test -d "$as_dir" && break
52341     done
52342     test -z "$as_dirs" || eval "mkdir $as_dirs"
52343   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52344 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52345    { (exit 1); exit 1; }; }; }
52346   ac_builddir=.
52347
52348 case "$ac_dir" in
52349 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52350 *)
52351   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52352   # A ".." for each directory in $ac_dir_suffix.
52353   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52354   case $ac_top_builddir_sub in
52355   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52356   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52357   esac ;;
52358 esac
52359 ac_abs_top_builddir=$ac_pwd
52360 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52361 # for backward compatibility:
52362 ac_top_builddir=$ac_top_build_prefix
52363
52364 case $srcdir in
52365   .)  # We are building in place.
52366     ac_srcdir=.
52367     ac_top_srcdir=$ac_top_builddir_sub
52368     ac_abs_top_srcdir=$ac_pwd ;;
52369   [\\/]* | ?:[\\/]* )  # Absolute name.
52370     ac_srcdir=$srcdir$ac_dir_suffix;
52371     ac_top_srcdir=$srcdir
52372     ac_abs_top_srcdir=$srcdir ;;
52373   *) # Relative name.
52374     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52375     ac_top_srcdir=$ac_top_build_prefix$srcdir
52376     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52377 esac
52378 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52379
52380
52381   case $ac_mode in
52382   :F)
52383   #
52384   # CONFIG_FILE
52385   #
52386
52387   case $INSTALL in
52388   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52389   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52390   esac
52391 _ACEOF
52392
52393 cat >>$CONFIG_STATUS <<\_ACEOF
52394 # If the template does not know about datarootdir, expand it.
52395 # FIXME: This hack should be removed a few years after 2.60.
52396 ac_datarootdir_hack=; ac_datarootdir_seen=
52397
52398 case `sed -n '/datarootdir/ {
52399   p
52400   q
52401 }
52402 /@datadir@/p
52403 /@docdir@/p
52404 /@infodir@/p
52405 /@localedir@/p
52406 /@mandir@/p
52407 ' $ac_file_inputs` in
52408 *datarootdir*) ac_datarootdir_seen=yes;;
52409 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52410   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52411 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52412 _ACEOF
52413 cat >>$CONFIG_STATUS <<_ACEOF
52414   ac_datarootdir_hack='
52415   s&@datadir@&$datadir&g
52416   s&@docdir@&$docdir&g
52417   s&@infodir@&$infodir&g
52418   s&@localedir@&$localedir&g
52419   s&@mandir@&$mandir&g
52420     s&\\\${datarootdir}&$datarootdir&g' ;;
52421 esac
52422 _ACEOF
52423
52424 # Neutralize VPATH when `$srcdir' = `.'.
52425 # Shell code in configure.ac might set extrasub.
52426 # FIXME: do we really want to maintain this feature?
52427 cat >>$CONFIG_STATUS <<_ACEOF
52428   sed "$ac_vpsub
52429 $extrasub
52430 _ACEOF
52431 cat >>$CONFIG_STATUS <<\_ACEOF
52432 :t
52433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52434 s&@configure_input@&$configure_input&;t t
52435 s&@top_builddir@&$ac_top_builddir_sub&;t t
52436 s&@srcdir@&$ac_srcdir&;t t
52437 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52438 s&@top_srcdir@&$ac_top_srcdir&;t t
52439 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52440 s&@builddir@&$ac_builddir&;t t
52441 s&@abs_builddir@&$ac_abs_builddir&;t t
52442 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52443 s&@INSTALL@&$ac_INSTALL&;t t
52444 $ac_datarootdir_hack
52445 " $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
52446
52447 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52448   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52449   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52450   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52451 which seems to be undefined.  Please make sure it is defined." >&5
52452 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52453 which seems to be undefined.  Please make sure it is defined." >&2;}
52454
52455   rm -f "$tmp/stdin"
52456   case $ac_file in
52457   -) cat "$tmp/out"; rm -f "$tmp/out";;
52458   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52459   esac
52460  ;;
52461   :H)
52462   #
52463   # CONFIG_HEADER
52464   #
52465 _ACEOF
52466
52467 # Transform confdefs.h into a sed script `conftest.defines', that
52468 # substitutes the proper values into config.h.in to produce config.h.
52469 rm -f conftest.defines conftest.tail
52470 # First, append a space to every undef/define line, to ease matching.
52471 echo 's/$/ /' >conftest.defines
52472 # Then, protect against being on the right side of a sed subst, or in
52473 # an unquoted here document, in config.status.  If some macros were
52474 # called several times there might be several #defines for the same
52475 # symbol, which is useless.  But do not sort them, since the last
52476 # AC_DEFINE must be honored.
52477 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52478 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52479 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52480 # PARAMS is the parameter list in the macro definition--in most cases, it's
52481 # just an empty string.
52482 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52483 ac_dB='\\)[      (].*,\\1define\\2'
52484 ac_dC=' '
52485 ac_dD=' ,'
52486
52487 uniq confdefs.h |
52488   sed -n '
52489         t rset
52490         :rset
52491         s/^[     ]*#[    ]*define[       ][      ]*//
52492         t ok
52493         d
52494         :ok
52495         s/[\\&,]/\\&/g
52496         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52497         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52498   ' >>conftest.defines
52499
52500 # Remove the space that was appended to ease matching.
52501 # Then replace #undef with comments.  This is necessary, for
52502 # example, in the case of _POSIX_SOURCE, which is predefined and required
52503 # on some systems where configure will not decide to define it.
52504 # (The regexp can be short, since the line contains either #define or #undef.)
52505 echo 's/ $//
52506 s,^[     #]*u.*,/* & */,' >>conftest.defines
52507
52508 # Break up conftest.defines:
52509 ac_max_sed_lines=50
52510
52511 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52512 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52513 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52514 # et cetera.
52515 ac_in='$ac_file_inputs'
52516 ac_out='"$tmp/out1"'
52517 ac_nxt='"$tmp/out2"'
52518
52519 while :
52520 do
52521   # Write a here document:
52522     cat >>$CONFIG_STATUS <<_ACEOF
52523     # First, check the format of the line:
52524     cat >"\$tmp/defines.sed" <<\\CEOF
52525 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52526 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52527 b
52528 :def
52529 _ACEOF
52530   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52531   echo 'CEOF
52532     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52533   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52534   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52535   grep . conftest.tail >/dev/null || break
52536   rm -f conftest.defines
52537   mv conftest.tail conftest.defines
52538 done
52539 rm -f conftest.defines conftest.tail
52540
52541 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52542 cat >>$CONFIG_STATUS <<\_ACEOF
52543   if test x"$ac_file" != x-; then
52544     echo "/* $configure_input  */" >"$tmp/config.h"
52545     cat "$ac_result" >>"$tmp/config.h"
52546     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52547       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52548 echo "$as_me: $ac_file is unchanged" >&6;}
52549     else
52550       rm -f $ac_file
52551       mv "$tmp/config.h" $ac_file
52552     fi
52553   else
52554     echo "/* $configure_input  */"
52555     cat "$ac_result"
52556   fi
52557   rm -f "$tmp/out12"
52558  ;;
52559
52560   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52561 echo "$as_me: executing $ac_file commands" >&6;}
52562  ;;
52563   esac
52564
52565
52566   case $ac_file$ac_mode in
52567     "rcdefs.h":C)
52568             mkdir -p $outdir &&
52569             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52570          ;;
52571     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52572     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52573     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52574     "wx-config":C)  rm -f wx-config
52575                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52576                     ;;
52577
52578   esac
52579 done # for ac_tag
52580
52581
52582 { (exit 0); exit 0; }
52583 _ACEOF
52584 chmod +x $CONFIG_STATUS
52585 ac_clean_files=$ac_clean_files_save
52586
52587
52588 # configure is writing to config.log, and then calls config.status.
52589 # config.status does its own redirection, appending to config.log.
52590 # Unfortunately, on DOS this fails, as config.log is still kept open
52591 # by configure, so config.status won't be able to write to it; its
52592 # output is simply discarded.  So we exec the FD to /dev/null,
52593 # effectively closing config.log, so it can be properly (re)opened and
52594 # appended to by config.status.  When coming back to configure, we
52595 # need to make the FD available again.
52596 if test "$no_create" != yes; then
52597   ac_cs_success=:
52598   ac_config_status_args=
52599   test "$silent" = yes &&
52600     ac_config_status_args="$ac_config_status_args --quiet"
52601   exec 5>/dev/null
52602   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52603   exec 5>>config.log
52604   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52605   # would make configure fail if this is the last instruction.
52606   $ac_cs_success || { (exit 1); exit 1; }
52607 fi
52608
52609 #
52610 # CONFIG_SUBDIRS section.
52611 #
52612 if test "$no_recursion" != yes; then
52613
52614   # Remove --cache-file and --srcdir arguments so they do not pile up.
52615   ac_sub_configure_args=
52616   ac_prev=
52617   eval "set x $ac_configure_args"
52618   shift
52619   for ac_arg
52620   do
52621     if test -n "$ac_prev"; then
52622       ac_prev=
52623       continue
52624     fi
52625     case $ac_arg in
52626     -cache-file | --cache-file | --cache-fil | --cache-fi \
52627     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52628       ac_prev=cache_file ;;
52629     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52630     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52631     | --c=*)
52632       ;;
52633     --config-cache | -C)
52634       ;;
52635     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52636       ac_prev=srcdir ;;
52637     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52638       ;;
52639     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52640       ac_prev=prefix ;;
52641     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52642       ;;
52643     *)
52644       case $ac_arg in
52645       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52646       esac
52647       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52648     esac
52649   done
52650
52651   # Always prepend --prefix to ensure using the same prefix
52652   # in subdir configurations.
52653   ac_arg="--prefix=$prefix"
52654   case $ac_arg in
52655   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52656   esac
52657   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52658
52659   # Pass --silent
52660   if test "$silent" = yes; then
52661     ac_sub_configure_args="--silent $ac_sub_configure_args"
52662   fi
52663
52664   ac_popdir=`pwd`
52665   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52666
52667     # Do not complain, so a configure script can configure whichever
52668     # parts of a large source tree are present.
52669     test -d "$srcdir/$ac_dir" || continue
52670
52671     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52672     echo "$as_me:$LINENO: $ac_msg" >&5
52673     echo "$ac_msg" >&6
52674     { as_dir="$ac_dir"
52675   case $as_dir in #(
52676   -*) as_dir=./$as_dir;;
52677   esac
52678   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52679     as_dirs=
52680     while :; do
52681       case $as_dir in #(
52682       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52683       *) as_qdir=$as_dir;;
52684       esac
52685       as_dirs="'$as_qdir' $as_dirs"
52686       as_dir=`$as_dirname -- "$as_dir" ||
52687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52688          X"$as_dir" : 'X\(//\)[^/]' \| \
52689          X"$as_dir" : 'X\(//\)$' \| \
52690          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52691 echo X"$as_dir" |
52692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52693             s//\1/
52694             q
52695           }
52696           /^X\(\/\/\)[^/].*/{
52697             s//\1/
52698             q
52699           }
52700           /^X\(\/\/\)$/{
52701             s//\1/
52702             q
52703           }
52704           /^X\(\/\).*/{
52705             s//\1/
52706             q
52707           }
52708           s/.*/./; q'`
52709       test -d "$as_dir" && break
52710     done
52711     test -z "$as_dirs" || eval "mkdir $as_dirs"
52712   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52713 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52714    { (exit 1); exit 1; }; }; }
52715     ac_builddir=.
52716
52717 case "$ac_dir" in
52718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52719 *)
52720   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52721   # A ".." for each directory in $ac_dir_suffix.
52722   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52723   case $ac_top_builddir_sub in
52724   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52725   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52726   esac ;;
52727 esac
52728 ac_abs_top_builddir=$ac_pwd
52729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52730 # for backward compatibility:
52731 ac_top_builddir=$ac_top_build_prefix
52732
52733 case $srcdir in
52734   .)  # We are building in place.
52735     ac_srcdir=.
52736     ac_top_srcdir=$ac_top_builddir_sub
52737     ac_abs_top_srcdir=$ac_pwd ;;
52738   [\\/]* | ?:[\\/]* )  # Absolute name.
52739     ac_srcdir=$srcdir$ac_dir_suffix;
52740     ac_top_srcdir=$srcdir
52741     ac_abs_top_srcdir=$srcdir ;;
52742   *) # Relative name.
52743     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52744     ac_top_srcdir=$ac_top_build_prefix$srcdir
52745     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52746 esac
52747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52748
52749
52750     cd "$ac_dir"
52751
52752     # Check for guested configure; otherwise get Cygnus style configure.
52753     if test -f "$ac_srcdir/configure.gnu"; then
52754       ac_sub_configure=$ac_srcdir/configure.gnu
52755     elif test -f "$ac_srcdir/configure"; then
52756       ac_sub_configure=$ac_srcdir/configure
52757     elif test -f "$ac_srcdir/configure.in"; then
52758       # This should be Cygnus configure.
52759       ac_sub_configure=$ac_aux_dir/configure
52760     else
52761       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52762 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52763       ac_sub_configure=
52764     fi
52765
52766     # The recursion is here.
52767     if test -n "$ac_sub_configure"; then
52768       # Make the cache file name correct relative to the subdirectory.
52769       case $cache_file in
52770       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52771       *) # Relative name.
52772         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52773       esac
52774
52775       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52776 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52777       # The eval makes quoting arguments work.
52778       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52779            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52780         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52781 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52782    { (exit 1); exit 1; }; }
52783     fi
52784
52785     cd "$ac_popdir"
52786   done
52787 fi
52788
52789
52790 echo
52791 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52792 echo ""
52793 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52794 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52795
52796 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52797 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52798 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52799 if test "$wxUSE_UNICODE" = "yes"; then
52800     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52801         echo " (using UTF-8)"
52802     else
52803         echo " (using wchar_t)"
52804     fi
52805 else
52806     echo
52807 fi
52808
52809 echo "  What level of wxWidgets compatibility should be enabled?"
52810 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52811 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52812
52813 echo "  Which libraries should wxWidgets use?"
52814 echo "                                       STL                ${wxUSE_STL}"
52815 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52816 echo "                                       png                ${wxUSE_LIBPNG-none}"
52817 echo "                                       regex              ${wxUSE_REGEX}"
52818 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52819 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52820 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52821 fi
52822 echo "                                       zlib               ${wxUSE_ZLIB}"
52823 echo "                                       expat              ${wxUSE_EXPAT}"
52824 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52825 echo "                                       sdl                ${wxUSE_LIBSDL}"
52826
52827 echo ""
52828